/* The placement editor (Colocar, static/wizard/editor.js + templates/design/_colocar.html).
   Shared by the wizard and the public website, which copies this file: it uses only the
   design tokens of core/static/base.css, which the website defines too. */
.place {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
.stage {
  background: var(--canvas-bg);
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
}
/* product at true proportions: JS sets its px size; rulers use --cm (px per centimetre) */
.area {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.area.circle {
  border-radius: 50%;
}
.measured {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  justify-content: center;
  align-items: end;
}
.ruler-x,
.ruler-y {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
}
.ruler-x {
  flex-direction: column;
}
.ruler-y {
  flex-direction: row;
  justify-self: end;
}
.ruler-y b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-right: 6px;
}
.ruler-x i,
.ruler-y i {
  display: block;
  --tick: repeating-linear-gradient(var(--dir), #fff 0 2px, transparent 2px var(--cm));
  --tick5: repeating-linear-gradient(var(--dir), #fff 0 3px, transparent 3px calc(5 * var(--cm)));
}
.ruler-x i {
  --dir: to right;
  width: 100%;
  height: 14px;
  background:
    var(--tick) bottom / 100% 8px no-repeat,
    var(--tick5) bottom / 100% 14px no-repeat;
}
.ruler-y i {
  --dir: to bottom;
  height: 100%;
  width: 14px;
  background:
    var(--tick) right / 8px 100% no-repeat,
    var(--tick5) right / 14px 100% no-repeat;
}
.area img {
  width: 100%;
  height: 100%;
  display: block;
}
.place-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.model3d {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model3d-view {
  height: 300px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, #ffffff, var(--canvas-bg));
  overflow: hidden;
  cursor: grab;
}
.place-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.layouts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-title {
  font-size: 22px;
  margin: 8px 0 0;
}
.side-hint {
  margin: 0;
  font-size: 18px;
}
.adjust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.adjust .btn {
  padding: 0 12px;
}
.fade-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fade-size {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.fade-size .btn {
  padding: 0 8px;
}
.quality {
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 700;
  background: var(--card);
  border: 3px solid var(--line);
}
.quality.ok {
  border-color: var(--ok);
}
.quality.warn {
  border-color: var(--warn);
}
.quality.bad {
  border-color: var(--bad);
}

@media (max-width: 900px) {
  .place {
    grid-template-columns: 1fr;
  }
}
