.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 41vw);
  width: 100%;
  height: calc(100% - var(--header-height));
}

.viewer-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: #e9e9e7;
  background-image: linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.viewer-pane::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.8), transparent 48%);
}

model-viewer {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --progress-bar-color: var(--ink);
  --progress-bar-height: 2px;
}

.viewer-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}

.viewer-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 100ms linear;
}

.drop-surface {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  text-align: center;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.drop-surface.loaded {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.viewer-privacy-block {
  position: absolute;
  inset: clamp(20px, 6vw, 72px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(24px, 5vw, 52px);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.22), 0 18px 48px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}

.viewer-privacy-block[hidden] {
  display: none;
}

.privacy-block-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  color: #92400e;
  background: #fff7ed;
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.2);
  border-radius: 50%;
  font-family: "Geist Mono", monospace;
  font-size: 22px;
}

.viewer-privacy-block h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.viewer-privacy-block > p:not(.drop-kicker) {
  max-width: 520px;
  margin: 14px 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.drop-graphic {
  position: relative;
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  transform: rotate(-4deg);
}

.cube-face {
  position: absolute;
  display: block;
  background: rgba(23, 23, 23, 0.94);
}

.cube-front {
  left: 14px;
  top: 27px;
  width: 44px;
  height: 39px;
  clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 84%);
}

.cube-top {
  left: 14px;
  top: 10px;
  width: 50px;
  height: 24px;
  background: #545454;
  clip-path: polygon(0 70%, 68% 0, 100% 28%, 88% 100%);
}

.cube-side {
  left: 58px;
  top: 17px;
  width: 20px;
  height: 49px;
  background: #303030;
  clip-path: polygon(0 8%, 100% 0, 100% 80%, 0 100%);
}

.drop-kicker,
.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.drop-surface h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.drop-surface > p:not(.drop-kicker) {
  max-width: 460px;
  margin: 14px 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.drop-surface > p.drop-format-support {
  max-width: 520px;
  margin: -10px 0 20px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.drop-hint {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 12px;
}

.drop-active-message {
  position: absolute;
  inset: 16px;
  z-index: 12;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 2px var(--ink);
  border-radius: 12px;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.drop-active-message span {
  padding: 14px 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
}

.viewer-pane.drag-active .drop-active-message {
  visibility: visible;
  opacity: 1;
}

.privacy-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  gap: 7px;
  color: #27523e;
  background: rgba(236, 253, 243, 0.94);
  box-shadow: 0 0 0 1px rgba(22, 121, 75, 0.18);
  border-radius: 999px;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

.privacy-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 121, 75, 0.12);
}

.viewer-toolbar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  border-radius: 8px;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.toolbar-control {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.checkbox-control input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--ink);
}

.exposure-control {
  box-shadow: -1px 0 0 var(--line), 1px 0 0 var(--line);
}

.exposure-control input {
  width: 88px;
  accent-color: var(--ink);
}

.exposure-control output {
  min-width: 30px;
  color: var(--ink);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
}
