/* GO3D Studio brand layer. Original source art is preserved; no image filters. */
:root,
html[data-theme="light"] {
  color-scheme: light;
  --brand-blue: #087cff;
  --brand-cyan: #69d8ff;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel2: #eef3f8;
  --line: #ccd7e3;
  --muted: #526477;
  --text: #15263a;
  --accent: #075fca;
  --cyan: #086482;
  --danger: #ad302d;
  --success: #247346;
  --warning: #80520b;
  --nav-bg: #ffffff;
  --hover-bg: #e7eef7;
  --active-bg: #e7f0ff;
  --input-bg: #ffffff;
  --tag-bg: #eaf0f6;
  --shadow: 0 6px 22px rgb(20 45 75 / 5%);
  --viewport-bg: #080d13;
  --viewport-control: #142332ed;
  --viewport-text: #d2e4f2;
  --viewport-line: #51657b;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d13;
  --panel: #101822;
  --panel2: #162230;
  --line: #314153;
  --muted: #adbdcf;
  --text: #f3f7fc;
  --accent: #69d8ff;
  --cyan: #69d8ff;
  --danger: #ffaba8;
  --success: #94e1b3;
  --warning: #f7cd83;
  --nav-bg: #0c131d;
  --hover-bg: #1e2e40;
  --active-bg: #173149;
  --input-bg: #0a121c;
  --tag-bg: #213247;
  --shadow: 0 6px 22px rgb(0 0 0 / 13%);
}
body { background: var(--bg); color: var(--text); font-size: 14px; }
h1,h2,h3,.brand-word,.metric strong,.result-number {
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", Arial, sans-serif;
}
h1 { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -.6px; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 650; }
p { font-size: 14px; line-height: 1.65; color: var(--muted); }
button,input,select,textarea { font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; }
button { background: var(--panel2); color: var(--text); border-color: var(--line); min-height: 36px; }
button:hover { background: var(--hover-bg); border-color: var(--accent); }
button.primary { background: #075fca; color: #fff; border-color: #075fca; font-weight: 650; }
button.primary:hover { background: #064fa8; border-color: #064fa8; }
html[data-theme="dark"] button.primary { background: #69d8ff; border-color: #69d8ff; color: #081522; }
html[data-theme="dark"] button.primary:hover { background: #a8eaff; border-color: #a8eaff; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
button:disabled { opacity: .55; }
a { color: var(--accent); }
.sidebar { background: var(--nav-bg); border-color: var(--line); padding-top: 23px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 8px 24px; color: var(--text); }
.brand-mark { display: none; }
.brand-logo { display: block; width: 174px; max-width: 100%; height: 55px; object-fit: contain; }
.brand-logo-dark { display: none; }
.brand-logo-light { display: block; }
html[data-theme="dark"] .brand-logo-dark { display: block; }
html[data-theme="dark"] .brand-logo-light { display: none; }
.brand-word { font-size: 25px; letter-spacing: -.5px; font-weight: 700; color: var(--text); }
.brand-package { display: block; font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: 2px; color: var(--muted); }
.brand>div>span { font-size: 11px; letter-spacing: 1.3px; color: var(--muted); }
.workspace-label { font-size: 11px; letter-spacing: 1px; color: var(--muted); line-height: 1.5; }
.workspace-label span { color: var(--accent); }
nav button { color: var(--muted); font-size: 13px; min-height: 41px; padding-top: 11px; padding-bottom: 11px; }
nav button.active { background: var(--active-bg); color: var(--accent); font-weight: 650; }
nav button .nav-num { color: var(--muted); font-size: 11px; }
.engine,.profile { color: var(--text); font-size: 12px; }
.engine small,.profile small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.avatar { color: var(--text); background: var(--tag-bg); font-size: 12px; }
.avatar.small { font-size: 11px; }
.topbar { background: var(--panel); border-color: var(--line); min-height: 68px; height: auto; padding-top: 12px; padding-bottom: 12px; }
.breadcrumbs,.command-button,.local-indicator { font-size: 12px; color: var(--muted); }
.breadcrumbs span,.breadcrumbs strong { color: var(--text); }
.command-button { background: var(--bg); }
.command-button kbd { color: var(--muted); font: 11px "Segoe UI", Arial, sans-serif; border-color: var(--line); }
.theme-toggle,#themeButton { white-space: nowrap; color: var(--text); background: var(--panel2); font-size: 12px; }
footer { height: auto; min-height: 39px; font-size: 11px; color: var(--muted); gap: 14px; padding-top: 8px; padding-bottom: 8px; }
footer b { color: var(--muted); }
.eyebrow { font-size: 11px; line-height: 1.4; letter-spacing: 1.6px; color: var(--accent); }
.page-heading { margin-bottom: 26px; }
.heading-actions button,.actions button { font-size: 13px; }
.metric,.panel,.card,.workbench { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow); }
.metric { padding: 19px; }
.metric .label { font-size: 12px; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.metric strong { color: var(--text); font-size: 27px; line-height: 1.2; }
.metric strong small { font-size: 12px; color: var(--muted); }
.metric .sub { font-size: 11px; line-height: 1.5; color: var(--muted); }
.metric .sub.good { color: var(--success); }
.metric .metric-icon { color: var(--accent); border-color: var(--line); }
.badge,.badge.green,.badge.cyan,.badge.amber,.badge.red { font-size: 11px; line-height: 1.4; padding: 4px 7px; background: var(--tag-bg); color: var(--muted); }
.badge.green { color: var(--success); }
.badge.cyan { color: var(--cyan); }
.badge.amber { color: var(--warning); }
.badge.red { color: var(--danger); }
.workbench-head { height: auto; min-height: 51px; padding-top: 7px; padding-bottom: 7px; border-color: var(--line); }
.project-name { font-size: 13px; }
.tabs button { font-size: 12px; color: var(--muted); min-height: 36px; }
.tabs button.active { color: var(--accent); }
.tree { background: var(--panel2); font-size: 12px; }
.section-label { font-size: 11px; line-height: 1.4; color: var(--muted); letter-spacing: .8px; }
.tree-item { color: var(--text); padding: 10px 6px; }
.tree-item.active { background: var(--active-bg); color: var(--accent); }
.tree-child,.tree-note { color: var(--muted); font-size: 11px; line-height: 1.65; }
.inspector { background: var(--panel); }
.inspector h3 { font-size: 14px; }
.prop { font-size: 12px; line-height: 1.5; gap: 9px; }
.prop span:first-child,.prop span:last-child { color: var(--muted); }
.prop span:last-child { color: var(--text); overflow-wrap: anywhere; }
.prop code { font-size: 12px; font-family: Consolas, "Courier New", monospace; }
.field-label { font-size: 12px; color: var(--muted); }
.input-unit { background: var(--input-bg); border-color: var(--line); }
.input-unit input { color: var(--text); font-size: 13px; }
.input-unit span { color: var(--muted); font-size: 11px; }
.inspector button.primary { font-size: 13px; }
.inspector p { font-size: 12px; }
.workbench-foot { font-size: 11px; line-height: 1.5; color: var(--muted); height: auto; min-height: 37px; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.viewport { background: var(--viewport-bg); }
.viewport-label,.viewer-caption,.scale-legend { color: var(--viewport-text); font-size: 11px; text-shadow: 0 1px 2px #080d13; }
.viewport-tools button,.view-cube button { background: var(--viewport-control); color: var(--viewport-text); border-color: var(--viewport-line); }
.viewport-tools button.active { color: #69d8ff; border-color: #69d8ff; }
.view-cube button { font-size: 11px; min-height: 31px; }
.panel-title button,.text-button { font-size: 12px; color: var(--accent); }
.step { border-color: var(--line); }
.step .step-num,.step strong,.activity strong { font-size: 12px; }
.step p,.activity small,.activity>span:last-child { color: var(--muted); font-size: 12px; }
.activity .activity-icon,.card-icon { color: var(--accent); background: var(--active-bg); }
.dropzone { border-color: var(--accent); background: var(--active-bg); }
.dropzone.drag { background: var(--hover-bg); }
table { font-size: 13px; }
th { color: var(--muted); font-size: 11px; background: var(--panel2); line-height: 1.5; }
td { color: var(--text); }
td small,td .badge { color: var(--muted); font-size: 12px; }
.notice { color: var(--text); background: var(--active-bg); border-color: var(--line); font-size: 13px; }
.notice.amber { color: var(--warning); background: var(--panel2); border-color: var(--line); }
input:not([type=file]):not([type=checkbox]),select,textarea { background: var(--input-bg); color: var(--text); border-color: var(--line); font-size: 13px; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: 1; }
.form-row label { color: var(--muted); font-size: 13px; }
.form-row button { font-size: 13px; min-height: 37px; }
textarea,.output,.code-example { font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.75; }
.output { background: var(--input-bg); border-color: var(--line); color: var(--text); }
.code-example { color: var(--text); }
.guide-step .number { border-color: var(--line); font-size: 12px; }
.result-number { color: var(--accent); }
.result-number small { font-size: 13px; }
.report-summary>div { color: var(--muted); font-size: 12px; }
.pill-tabs button { font-size: 13px; }
.pill-tabs button.active { background: var(--active-bg); color: var(--accent); }
#toast { background: #152d46; color: #f3f7fc; font-size: 13px; box-shadow: var(--shadow); }
dialog { background: var(--panel); color: var(--text); border-color: var(--line); }
dialog::backdrop { background: rgb(5 12 22 / 65%); }
@media (min-width:1500px) { main { max-width: 1720px; width: 100%; align-self: center; } }
@media (max-width:1200px) {
  .brand-logo { width: 150px; height: 49px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 24px; }
  .stage-layout { grid-template-columns: 135px minmax(180px,1fr) 210px; }
}
@media (max-width:950px) {
  .brand { padding: 0 0 21px; align-items: center; }
  .brand-logo { width: 48px; height: 31px; }
  .brand-package { display: none; }
  .brand-word { font-size: 12px; letter-spacing: -.5px; }
  .stage-layout { grid-template-columns: minmax(200px,1fr) 210px; }
  .metric .label { font-size: 11px; }
  .metric .sub { font-size: 11px; }
  .heading-actions button { font-size: 12px; }
  .page-heading h1 { font-size: 28px; }
}
@media (max-width:620px) {
  .topbar { padding: 10px 12px; }
  .breadcrumbs { font-size: 12px; }
  .breadcrumbs span { margin: 0 5px; }
  .topbar-actions { gap: 5px; }
  .command-button { font-size: 0; }
  .theme-toggle,#themeButton { font-size: 11px; padding: 7px; }
  .stage-layout { display: flex; }
  .tabs button { font-size: 11px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps .step p { font-size: 12px; }
  .workbench-foot,footer { font-size: 11px; }
  .viewer-caption { font-size: 10px; max-width: 135px; }
  .scale-legend { font-size: 10px; }
  .metric strong { font-size: 23px; }
  .brand-logo { width: 48px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
  :root { color-scheme: light; }
  body { color: #15263a; background: #fff; }
  .sidebar,.topbar,footer,.heading-actions { display: none; }
  .main { margin: 0; width: 100%; }
  .panel,.card,.workbench { box-shadow: none; break-inside: avoid; }
}
/* Keep narrow navigation and viewport controls inside their own panels. */
@media (max-width:620px) {
  .topbar { gap: 8px; }
  .breadcrumbs { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
  .command-button,.topbar-actions { flex: 0 0 auto; }
  .workbench-head { flex-wrap: wrap; gap: 5px 10px; padding: 9px 10px; }
  .workbench-head>div:first-child { flex: 1 1 100%; min-width: 0; }
  .workbench-head .project-name { max-width: calc(100% - 28px); }
  .workbench-head .tabs { flex: 1 1 100%; height: 32px; gap: 20px; }
  .viewport-label { right: 10px; font-size: 9px; white-space: nowrap; }
  .view-cube { top: 39px; right: 10px; }
}
@media (max-width:620px) {
  .inspector { display: block; }
  .inspector .field-label { margin: 14px 0 6px; }
  .inspector .input-unit { width: 100%; }
}
