/* Shared application chrome. Technical drawings, instruments and printed reports keep their own palette. */
@media screen {
  html:has(body.studio-charcoal) { background: #101113; color-scheme: dark; }
  body.studio-charcoal {
    --page: #101113; --surface: #191a1d; --raised: #24262a; --hover: #303238;
    --text: #f1f1f2; --muted: #a7a9af; --quiet: #8e9199; --line: #ffffff0f;
    --accent: #dcc293; --paper: #101113; --white: #191a1d; --ink: #f1f1f2;
    --dark: #17181b; --lime: #dcc293; --amber: #d9b878;
    --shell-solid: #1c1d21; --shell: var(--shell-solid);
    --control: #2b2d32; --control-hover: #393c43;
    background: var(--page); color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; scrollbar-color: #484b51 #191a1d;
  }
  body.studio-charcoal :where(button, input, select, textarea) { font-family: inherit; }
  body.studio-charcoal :where(button, a.button) {
    background: var(--control); color: var(--text); border-color: transparent;
    border-radius: 5px; box-shadow: inset 0 1px 0 #ffffff08;
    transition: background .16s, color .16s;
  }
  body.studio-charcoal :where(button, a.button):hover { background: var(--control-hover); border-color: #ffffff14; }
  body.studio-charcoal :is(button.primary, a.button.primary) { background: #ececed; color: #151618; border-color: transparent; }
  body.studio-charcoal :is(button.primary, a.button.primary):hover { background: #fff; }
  body.studio-charcoal :where(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) {
    background: #222428; color: #ededf0; border-color: #ffffff18; border-radius: 5px;
    font-variant-numeric: tabular-nums;
  }
  body.studio-charcoal :where(input, textarea)::placeholder { color: #92959e; opacity: 1; }
  /* Outrank legacy dialog accents so every editor control shares the studio palette. */
  body.studio-charcoal :is(input[type=range], input[type=checkbox], input[type=radio]) { accent-color: #d2bd96; }
  body.studio-charcoal :where(input, select, textarea):user-invalid { border-color: #e49b8b; }
  body.studio-charcoal :focus-visible { outline: 2px solid #e6c99a; outline-offset: 3px; }
  body.studio-charcoal :where(button, input, select, textarea):disabled { opacity: .45; cursor: not-allowed; }
  body.studio-charcoal :where(dialog) { background: var(--shell); color: var(--text); border-color: #ffffff0b; border-radius: 10px; box-shadow: 0 22px 80px #0007; }
  body.studio-charcoal :where(dialog)::backdrop { background: #050608b8; }
  body.studio-charcoal .feedback-dialog { background: #1c1d21; color: #e6e7eb; border-color: #ffffff12; }
  body.studio-charcoal .feedback-dialog :is(header, footer) { background: transparent; border-color: #ffffff0f; }
  body.studio-charcoal .feedback-dialog :is(nav, .feedback-report, .library-floor) { border-color: #ffffff10; }
  body.studio-charcoal .feedback-dialog :is(input, select, textarea) { background: #131417; color: #ececf0; border-color: #ffffff1c; }
  body.studio-charcoal .feedback-dialog button { background: #303238; color: #ececf0; border-color: transparent; }
  body.studio-charcoal .feedback-dialog button:hover { background: #41444c; }
  body.studio-charcoal .feedback-dialog button[aria-pressed=true] { background: #484b54; color: #fff; box-shadow: inset 0 -2px #d2bd96; }
  body.studio-charcoal .feedback-dialog :is(.help, summary small, h3) { color: #b3b6bf; }
  body.studio-charcoal .modeled-lmi dd, body.studio-charcoal .tour-transport output { font-variant-numeric: tabular-nums; }
}
@media screen {
  @supports (backdrop-filter: blur(8px)) {
    body.studio-charcoal {
      --shell: rgb(28 29 33 / 90%);
      --control: rgb(255 255 255 / 6%);
      --control-hover: rgb(255 255 255 / 11%);
    }
  }
  @media (prefers-reduced-transparency: reduce) {
    body.studio-charcoal {
      --shell: var(--shell-solid);
      --control: #2b2d32;
      --control-hover: #393c43;
    }
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  body.studio-charcoal :where(button, a.button) { transition: none; }
}

@media screen {
  /* Preserve transparent gesture targets around the small on-model controls. */
  body.studio-charcoal :is(.equipment-hotspot, .pose-launch button, .gizmo-handle),
  body.studio-charcoal :is(.equipment-hotspot, .pose-launch button, .gizmo-handle):hover {
    background: transparent; border-color: transparent; box-shadow: none;
  }
  body.studio-charcoal :is(.updates-running, .release-card, .updates-empty) { background: #202227; border-color: #ffffff0e; color: #dfe1e6; }
  body.studio-charcoal :is(.updates-hero, .updates-context, .release-body, .release-links) { border-color: #ffffff10; }
  body.studio-charcoal .release-card[open] { border-color: #ffffff20; }
  body.studio-charcoal .release-card>summary:hover { background: #2d3036; }
  body.studio-charcoal :is(.updates-running strong, .release-heading h3, .release-change h4) { color: #ececf0; }
  body.studio-charcoal :is(.updates-running small, .updates-running span, .release-version time, .release-chevron, .updates-context) { color: #a7acb6; }
  body.studio-charcoal .release-version span { color: #d3c1a0; }
  body.studio-charcoal :is(.release-heading p, .release-change p, .updates-count, .updates-provenance) { color: #afb3bd!important; }
  body.studio-charcoal .updates-launch .updates-version { color: #b6bac4; }
  body.studio-charcoal .release-current { background: #34373e; color: #e6e7eb; border-color: #ffffff12; }
  body.studio-charcoal .updates-new { background: #d7c4a2; color: #25211c; }
  body.studio-charcoal .workflow-launch .updates-launch { border-color: transparent!important; }
  body.studio-charcoal .tour-launch { background: #e7e7e9!important; color: #18191c!important; border-color: transparent!important; }
}
@media screen and (max-width:750px) {
  body.studio-charcoal .plant-tour>header { padding: 8px 10px; gap: 10px; }
  body.studio-charcoal .plant-tour>header>div { min-width: 0; }
  body.studio-charcoal .plant-tour>header small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.studio-charcoal .plant-tour>header h2 { font-size: 12px; line-height: 1.3; }
  body.studio-charcoal .plant-tour>header button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
  body.studio-charcoal .plant-tour .tour-review-tools { padding: 5px 8px; gap: 4px; }
  body.studio-charcoal .tour-review-tools :is(button,a), body.studio-charcoal .tour-camera button { min-height: 32px; padding: 5px 7px; font-size: 10px; }
  body.studio-charcoal .plant-tour .tour-transport { padding: 5px 8px; gap: 4px; }
  body.studio-charcoal .tour-transport :is(button,select) { min-height: 34px; padding: 5px 7px; font-size: 10px; }
  body.studio-charcoal .plant-tour aside { padding: 12px; }
}

@media screen {
/* Shared viewer surfaces, reused by the homepage, planner and packet preview. */
body.studio-charcoal .modeled-lmi { border: 0; border-radius: 10px; background: #25272c; color: #e4e5e8; }
body.studio-charcoal .modeled-lmi>summary span, body.studio-charcoal .modeled-lmi header span, body.studio-charcoal .lmi-picker { color: #a9adb7; }
body.studio-charcoal .modeled-lmi header strong { color: #dfc9a6; }
body.studio-charcoal .lmi-picker select, body.studio-charcoal .lmi-entry input { background: #191b1f; border-color: #ffffff18; color: #ebebed; border-radius: 6px; }
body.studio-charcoal .lmi-boom-strip, body.studio-charcoal .lmi-bar-scale, body.studio-charcoal .lmi-geometry dt, body.studio-charcoal .modeled-lmi p, body.studio-charcoal .lmi-entry small { color: #b6bac3; }
body.studio-charcoal .lmi-geometry, body.studio-charcoal .lmi-entry, body.studio-charcoal .demo-playback { border-color: #ffffff10; }
body.studio-charcoal .demo-playback>summary { color: #b9bdc5; }
body.studio-charcoal .lmi-load-bar { background: #3b3e45; border-color: #50545d; }
body.studio-charcoal .measurement-settings, body.studio-charcoal .pose-panel { background: var(--shell); border-color: #ffffff0b; color: #e0e2e7; }
body.studio-charcoal .measurement-reading { border-color: var(--line); }
body.studio-charcoal .measurement-reading>span { color: #b6bac3; }
body.studio-charcoal .modeled-lmi p { color: #b6bac3!important; }
body.studio-charcoal .lmi-weight-note { border-color: var(--line); }
body.studio-charcoal .lmi-weight-note b { color: #e4e5e8; }
body.studio-charcoal .measurement-settings select, body.studio-charcoal .measurement-settings input[type=number] { background: #2f3239; border-color: #ffffff14; color: #f0f0f2; }
body.studio-charcoal .measurement-settings small { color: #afb4bf; }
body.studio-charcoal .pose-title { background: #202227; }
body.studio-charcoal .pose-panel [aria-pressed=true] { background: #4a4f59; color: #fff; border-color: #ffffff24; }
body.studio-charcoal .pose-field input[type=range] { accent-color: #d2bd96; }
body.studio-charcoal .lab-explain, body.studio-charcoal .lab-note, body.studio-charcoal .lab-sources { color: #b2b5bf; border-color: #ffffff10; }
body.studio-charcoal .plant-tour { background: #17181b; border: 0; border-radius: 12px; color: #e9e9eb; }
body.studio-charcoal .plant-tour::backdrop { background: #050506e6; }
body.studio-charcoal .plant-tour>header { background: #17181b; border: 0; }
body.studio-charcoal .plant-tour>header small, body.studio-charcoal .plant-tour aside>small { color: #aaaeb7; }
body.studio-charcoal .plant-tour button, body.studio-charcoal .plant-tour select { background: #2b2d33; border-color: transparent; color: #e6e7eb; border-radius: 6px; }
body.studio-charcoal .plant-tour button:hover { background: #3b3e46; }
body.studio-charcoal .plant-tour .tour-review-tools { background: #1e2024; border: 0; }
body.studio-charcoal .sample-packet-link { background: #2b2d33; border-color: transparent; border-radius: 6px; color: #e3e4e8; }
body.studio-charcoal .tour-review-tools [aria-pressed=true] { background: #464951; color: #fff; border-color: #ffffff30; }
body.studio-charcoal .plant-tour aside { background: #1c1d21; border: 0; }
body.studio-charcoal .plant-tour p { color: #b8bbc3; }
body.studio-charcoal .tour-shot span { color: #c1c4cc; }
body.studio-charcoal .tour-hazard { background: #ffffff03; border-color: #a28f6c; }
body.studio-charcoal .plant-tour [data-tour-findings], body.studio-charcoal .plant-tour summary { color: #aeb3be; }
body.studio-charcoal .plant-tour [data-tour-edit] { background: #33363d; border-color: transparent; }
body.studio-charcoal .plant-tour aside>details { border-color: #ffffff0d; }
body.studio-charcoal .plant-tour nav small { color: #a3a9b4; }
body.studio-charcoal .plant-tour nav [aria-current=true] { background: #454951; border-color: #ffffff24; }
body.studio-charcoal .plant-tour .tour-transport { background: #17181bf5; border: 0; }
body.studio-charcoal .plant-tour .tour-transport [data-tour-time] { accent-color: #d2bd96; }
body.studio-charcoal .plant-tour [data-tour-play] { background: #e7e7e9; color: #17181b; border-color: transparent; }
body.studio-charcoal .plant-tour footer { color: #a0a5b0; background: #17181b; }
body.studio-charcoal .plant-tour .tour-guide { background: #2c2e33; border: 0; border-radius: 9px; box-shadow: none; padding: 17px; }
body.studio-charcoal .plant-tour .tour-guide p, body.studio-charcoal .plant-tour .tour-guide .tour-guide-detail { color: #c3c6ce; }
body.studio-charcoal .tour-guide>a { border-color: #ffffff14; color: #e3cfaa; }
body.studio-charcoal .tour-guide>small { color: #a5abb6; }
body.studio-charcoal .plant-tour .tour-guide-actions [data-guide-next] { background: #e7e7e9; color: #17181b; border-color: transparent; }
body.studio-charcoal .plant-tour [data-tour-guide-toggle][aria-expanded=true] { background: #454951; color: #fff; border-color: #ffffff24; }

/* A soft glass shell lets the surrounding workspace remain perceptible. */
body.studio-charcoal .plant-tour {
  background: rgb(23 24 27 / 86%);
  box-shadow: 0 24px 100px #0007, inset 0 1px 0 #ffffff0b;
  backdrop-filter: blur(14px);
}
body.studio-charcoal .plant-tour::backdrop { background: rgb(5 6 8 / 62%); }
body.studio-charcoal .plant-tour>header,
body.studio-charcoal .plant-tour .tour-review-tools,
body.studio-charcoal .plant-tour footer { background: rgb(25 27 31 / 48%); }
body.studio-charcoal .plant-tour aside { background: rgb(30 32 37 / 66%); }
body.studio-charcoal .plant-tour .modeled-lmi { background: rgb(52 55 62 / 62%); }
body.studio-charcoal .plant-tour .tour-transport {
  background: rgb(29 31 36 / 82%);
  backdrop-filter: blur(12px);
}
body.studio-charcoal .plant-tour .tour-guide { background: rgb(57 60 67 / 60%); }
@supports not (backdrop-filter: blur(6px)) {
  body.studio-charcoal .plant-tour { background: #1a1c20; }
  body.studio-charcoal .plant-tour .tour-transport { background: #202227; }
}

/* Compact workspace chrome and stable numeric columns support close technical review. */
body.studio-charcoal .showcase-tabs button,
body.studio-charcoal .scene-tools button,
body.studio-charcoal .demo-view-tools button,
body.studio-charcoal .demo-view-tools a,
body.studio-charcoal .plant-tour button,
body.studio-charcoal .plant-tour select,
body.studio-charcoal .sample-packet-link { border-radius: 4px; }
body.studio-charcoal .demo-readout strong,
body.studio-charcoal .modeled-lmi dd,
body.studio-charcoal #demoControls output,
body.studio-charcoal .tour-transport output {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
body.studio-charcoal .modeled-lmi dd { font-weight: 500; }
body.studio-charcoal .showcase-top,
body.studio-charcoal .inspector-heading,
body.studio-charcoal .lmi-boom-strip { font-variant-numeric: tabular-nums; }

/* Translucency belongs to the controls, never their labels or the scene itself. */
body.studio-charcoal .scene-tools button,
body.studio-charcoal .demo-view-tools button,
body.studio-charcoal .demo-view-tools a,
body.studio-charcoal .tour-camera button {
  background: rgb(54 56 62 / 82%);
  color: #f4f4f6;
  border-color: transparent;
  box-shadow: inset 0 1px 0 #ffffff0b, 0 2px 6px #0002;
}
body.studio-charcoal .scene-tools button:hover,
body.studio-charcoal .demo-view-tools button:hover,
body.studio-charcoal .demo-view-tools a:hover,
body.studio-charcoal .tour-camera button:hover { background: rgb(82 85 94 / 94%); }
body.studio-charcoal .demo-view-tools [aria-pressed=true],
body.studio-charcoal .tour-camera [aria-pressed=true] {
  background: rgb(95 99 109 / 90%); color: #fff; border-color: transparent;
  box-shadow: inset 0 -2px 0 #d4c7ad;
}
@supports (backdrop-filter: blur(6px)) {
  body.studio-charcoal .scene-tools button,
  body.studio-charcoal .demo-view-tools button,
  body.studio-charcoal .demo-view-tools a,
  body.studio-charcoal .tour-camera button { backdrop-filter: blur(6px); }
}
@media (prefers-reduced-transparency: reduce) {
  body.studio-charcoal .plant-tour,
  body.studio-charcoal .plant-tour>header,
  body.studio-charcoal .plant-tour .tour-review-tools,
  body.studio-charcoal .plant-tour footer,
  body.studio-charcoal .plant-tour .tour-transport { background: #1a1c20; backdrop-filter: none; }
  body.studio-charcoal .plant-tour aside { background: #202227; }
  body.studio-charcoal .plant-tour .modeled-lmi,
  body.studio-charcoal .plant-tour .tour-guide { background: #303239; }
  body.studio-charcoal .scene-tools button,
  body.studio-charcoal .demo-view-tools button,
  body.studio-charcoal .demo-view-tools a,
  body.studio-charcoal .tour-camera button { background: #36383e; backdrop-filter: none; }
  body.studio-charcoal .demo-view-tools [aria-pressed=true],
  body.studio-charcoal .tour-camera [aria-pressed=true] { background: #5f636d; }
}


}
