:root {
  color-scheme: light;
}

html,
body.viewer-v2 {
  background: #f6f8fb;
  color: #111827;
}

body.viewer-v2 {
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
}

.viewer-v2 .viewer-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e8ecf2;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px);
}

.viewer-v2 .viewer-nav a {
  color: #5b6474 !important;
}

.viewer-v2 .viewer-nav a:hover,
.viewer-v2 .viewer-nav .viewer-brand {
  color: #111827 !important;
}

.viewer-v2 .viewer-nav .viewer-brand-accent {
  color: #2563eb;
  text-shadow: none;
}

.viewer-v2 .viewer-nav .viewer-nav-cta {
  color: #fff !important;
  background: #111827 !important;
  box-shadow: none !important;
}

.viewer-v2 .viewer-hero {
  padding: 34px 24px 26px;
  background: #f6f8fb;
}

.viewer-v2 .viewer-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.viewer-v2 .viewer-eyebrow,
.viewer-v2 .section-eyebrow {
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.viewer-v2 .viewer-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 40px;
  align-items: center;
}

.viewer-v2 .viewer-hero h1 {
  margin: 0 0 10px;
  color: #111827;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.viewer-v2 .viewer-hero-copy {
  max-width: 720px;
  margin: 0;
  color: #5b6474;
  font-size: 16px;
  line-height: 1.65;
}

.viewer-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.viewer-hero-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  color: #111827;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.viewer-hero-actions > a.is-primary {
  border-color: #111827;
  color: #fff;
  background: #111827;
}

.viewer-hero-actions .material-symbols-outlined {
  font-size: 18px;
}

.viewer-hero-assurance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5b6474;
  font-size: 11px;
  font-weight: 600;
}

.viewer-hero-assurance .material-symbols-outlined {
  color: #0d9f6e;
  font-size: 15px;
}

.viewer-trust-summary {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  background: #fff;
}

.viewer-trust-summary > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-top: 1px solid #eef1f5;
}

.viewer-trust-summary > .viewer-summary-head {
  grid-template-columns: 1fr auto;
  min-height: 48px;
  border-top: 0;
  background: #f8fafc;
}

.viewer-trust-summary span {
  color: #697386;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.viewer-trust-summary strong {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

.viewer-trust-summary .viewer-summary-head strong {
  color: #2563eb;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.viewer-trust-summary .viewer-summary-head span {
  color: #0d9f6e;
  text-align: right;
}

.viewer-v2 .viewer-legacy-answer,
.viewer-v2 .viewer-legacy-ai-answers,
.viewer-v2 .viewer-legacy-ai-paths,
.viewer-v2 .viewer-legacy-format-help,
.viewer-v2 #viewerIntentPanel {
  display: none;
}

.viewer-v2 .viewer-workbench-section {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.viewer-format-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
}

.viewer-format-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 96px));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f1f4f8;
}

.viewer-v2 .format-tab {
  min-height: 32px;
  border: 0 !important;
  border-radius: 6px;
  color: #5b6474 !important;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.viewer-v2 .format-tab.active {
  color: #111827 !important;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.viewer-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.viewer-tool-button,
.viewer-open-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s, background .15s, color .15s;
}

.viewer-tool-button:hover {
  border-color: #93b4f4;
  background: #eff6ff;
}

.viewer-tool-button.is-active {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.viewer-open-button {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

.viewer-workbench {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 320px;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  background: #fff;
}

.viewer-file-panel,
.viewer-inspector {
  padding: 20px 16px;
  background: #fff;
}

.viewer-file-panel {
  border-right: 1px solid #e8ecf2;
}

.viewer-inspector {
  border-left: 1px solid #e8ecf2;
}

.viewer-panel-label {
  margin: 0 0 10px;
  color: #5b6474;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.viewer-file-name {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.viewer-file-meta {
  margin-top: 7px;
  color: #5b6474;
  font-size: 12px;
  line-height: 1.5;
}

.viewer-file-thumbnail {
  display: grid;
  place-items: center;
  height: 118px;
  margin: 16px 0;
  border-radius: 10px;
  color: #9fb0c9;
  background: #071120;
}

.viewer-file-thumbnail .material-symbols-outlined {
  font-size: 42px;
}

.viewer-panel-divider {
  height: 1px;
  margin: 16px 0;
  background: #e8ecf2;
}

.viewer-safety-row,
.viewer-view-button,
.viewer-inspector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  color: #5b6474;
  font-size: 13px;
}

.viewer-safety-row {
  justify-content: flex-start;
}

.viewer-status-pill {
  padding: 4px 9px;
  border-radius: 999px;
  color: #0d9f6e;
  background: #e9f8f1;
  font-size: 10px;
  font-weight: 800;
}

.viewer-view-button {
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
}

.viewer-view-button:hover,
.viewer-view-button.is-active {
  color: #2563eb;
  background: #eff6ff;
}

.viewer-privacy-note {
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  background: #e9f8f1;
}

.viewer-privacy-note strong {
  display: block;
  color: #0d9f6e;
  font-size: 12px;
}

.viewer-privacy-note span {
  color: #5b6474;
  font-size: 11px;
}

.viewer-center {
  position: relative;
  min-width: 0;
  background: #071120;
}

.viewer-center-status,
.viewer-canvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  color: #9fb0c9;
  background: #0b1930;
  font-size: 12px;
}

.viewer-canvas-footer {
  min-height: 64px;
}

.viewer-ready-pill {
  padding: 3px 9px;
  border-radius: 999px;
  color: #62e6b5;
  background: #153b32;
  font-size: 10px;
  font-weight: 800;
}

.viewer-v2 #dropZone {
  display: grid;
  place-items: center;
  min-height: 584px;
  padding: 42px;
  border: 0;
  border-radius: 0;
  color: #b8c4d8;
  background: #071120;
}

.viewer-v2 #dropZone.hidden,
.viewer-v2 #viewerContainer.hidden {
  display: none !important;
}

.viewer-v2 #dropZone.dragover {
  background: #0b1930;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.viewer-empty-card {
  max-width: 480px;
  padding: 34px;
  border: 1px solid #1b3558;
  border-radius: 14px;
  background: #0b1930;
  text-align: center;
}

.viewer-empty-card h2 {
  margin: 12px 0 6px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 21px;
}

body.viewer-v2 .viewer-empty-card h2 {
  color: #fff !important;
}

.viewer-empty-card p {
  color: #9fb0c9;
  font-size: 13px;
  line-height: 1.6;
}

.viewer-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.viewer-empty-actions a,
.viewer-empty-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #29405f;
  border-radius: 8px;
  color: #dce7f7;
  background: #10203a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.viewer-empty-actions .is-primary {
  border-color: #2563eb;
  color: #fff;
  background: #2563eb;
}

.viewer-v2 #viewerContainer {
  min-height: 584px;
  background: #071120;
}

.viewer-v2 #canvasWrapper {
  height: 584px !important;
  border: 0;
  border-radius: 0;
  background: #071120;
}

.viewer-v2 #modelInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  color: #b8c4d8;
  font-size: 12px;
}

.viewer-v2 #modelInfo strong {
  color: #fff;
}

.viewer-inspector h2 {
  margin: 0;
  color: #111827;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
}

.viewer-inspector-row strong {
  color: #111827;
  text-align: right;
}

.viewer-inspector-row strong.is-success {
  color: #0d9f6e;
}

.viewer-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #111827;
  font-size: 13px;
}

.viewer-check-row .is-review {
  color: #b76e00;
  background: #fff4d8;
}

.viewer-design-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  color: #5b6474;
  background: #fff4d8;
  font-size: 11px;
  line-height: 1.45;
}

.viewer-design-note strong {
  display: block;
  margin-bottom: 3px;
  color: #b76e00;
  font-size: 12px;
}

.viewer-after-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 8px;
  color: #111827;
  background: #eff6ff;
  font-size: 13px;
}

.viewer-after-strip a {
  color: #2563eb;
  font-weight: 700;
}

.viewer-v2 #postFileOpenCtas {
  margin-top: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #111827;
  background: #eff6ff;
}

.viewer-v2 main > section:not(.viewer-hero):not(.viewer-workbench-section) {
  color: #111827;
  background: #fff !important;
}

.viewer-v2 main > section.bg-surface-container-low\/40 {
  background: #f6f8fb !important;
}

.viewer-v2 .answer-panel,
.viewer-v2 .viewer-intent-panel,
.viewer-v2 .bg-surface-container,
.viewer-v2 .bg-surface-container\/60,
.viewer-v2 .bg-surface-container\/70,
.viewer-v2 .bg-surface-container-low\/50 {
  border-color: #e8ecf2 !important;
  color: #111827 !important;
  background: #fff !important;
}

.viewer-v2 .text-on-surface,
.viewer-v2 h1,
.viewer-v2 h2,
.viewer-v2 h3 {
  color: #111827 !important;
}

.viewer-v2 .text-on-surface-variant,
.viewer-v2 .text-outline {
  color: #5b6474 !important;
}

.viewer-v2 footer {
  margin-top: 0 !important;
  border-top: 0 !important;
  color: #b9c1ce;
  background: #111827;
}

.viewer-v2 footer a,
.viewer-v2 footer p {
  color: #b9c1ce !important;
}

@media (max-width: 1100px) {
  .viewer-v2 .viewer-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .viewer-trust-summary {
    max-width: 520px;
  }
  .viewer-workbench {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .viewer-inspector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    border-top: 1px solid #e8ecf2;
    border-left: 0;
  }
  .viewer-inspector > h2,
  .viewer-inspector > .viewer-panel-divider,
  .viewer-inspector > .viewer-design-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .viewer-v2 .viewer-nav .hidden.md\:flex {
    display: none !important;
  }
  .viewer-v2 .viewer-nav .max-w-7xl {
    padding-left: 16px;
    padding-right: 16px;
  }
  .viewer-v2 .viewer-hero {
    padding: 24px 16px 20px;
  }
  .viewer-v2 .viewer-hero h1 {
    font-size: 34px;
  }
  .viewer-trust-summary {
    max-width: none;
  }
  .viewer-trust-summary > div {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .viewer-trust-summary > .viewer-summary-head {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .viewer-trust-summary .viewer-summary-head span {
    text-align: left;
  }
  .viewer-hero-actions > a {
    flex: 1 1 160px;
  }
  .viewer-hero-assurance {
    flex-basis: 100%;
  }
  .viewer-v2 .viewer-workbench-section {
    padding: 0 12px 38px;
  }
  .viewer-format-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .viewer-format-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
  .viewer-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .viewer-open-button {
    grid-column: 1 / -1;
  }
  .viewer-workbench {
    display: flex;
    flex-direction: column;
  }
  .viewer-file-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 16px;
    border-right: 0;
    border-bottom: 1px solid #e8ecf2;
  }
  .viewer-file-panel .viewer-file-thumbnail,
  .viewer-file-panel .viewer-panel-divider,
  .viewer-file-panel .viewer-panel-label:nth-of-type(n+2),
  .viewer-file-panel .viewer-safety-row,
  .viewer-file-panel .viewer-view-button,
  .viewer-file-panel .viewer-privacy-note {
    display: none;
  }
  .viewer-center-status {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .viewer-v2 #dropZone,
  .viewer-v2 #viewerContainer,
  .viewer-v2 #canvasWrapper {
    min-height: 430px;
    height: 430px !important;
  }
  .viewer-canvas-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .viewer-inspector {
    display: block;
  }
  .viewer-after-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}
