.kind-wall { background: #9ca6aa; }
.kind-beam { background: #567690; }
.kind-column { background: #274f70; }
.kind-slab { background: #788a95; }

/* Site design tokens and app shell for the older pages, matched to the glass pages (glass.css):
   blueprint base layer, frosted white panels, charcoal text, dark glass buttons.
   Shared here because a release may not add files under app/. The 3D viewer (bim-view.html) does not load this file. */
:root {
  --cb-page:linear-gradient(#9cc7e838 1px,transparent 1px) 0 0/120px 120px,linear-gradient(90deg,#9cc7e838 1px,transparent 1px) 0 0/120px 120px,
    linear-gradient(#9cc7e814 1px,transparent 1px) 0 0/24px 24px,linear-gradient(90deg,#9cc7e814 1px,transparent 1px) 0 0/24px 24px,
    radial-gradient(1000px 640px at 85% 0,#1d4a76 0,transparent 70%) 0 0/100% 640px no-repeat,#0e2a47;
  --cb-on-page:#e8f1f8; --cb-on-page-muted:#9db7cc;
  --cb-bg:#f3f0eb; --cb-surface:#ffffffd1; --cb-surface-solid:#fbfaf8eb;
  --cb-control:#0e0f12d1; --cb-control-hover:#26282ed9; --cb-control-press:#050506eb; --cb-control-text:#fff; --cb-input:#ffffffd9;
  --cb-line:#0000001a; --cb-line-strong:#00000038; --cb-edge:#ffffff8c;
  --cb-text:#23272b; --cb-muted:#565b61; --cb-label:#3d4246;
  --cb-accent:#14865f; --cb-link:#0b5f45;
  --cb-selected-bg:#d8f3e3; --cb-selected-text:#0b5f45; --cb-selected-line:#14865f;
  --cb-warn:#8a5a10; --cb-warn-bg:#f8ebcd; --cb-danger:#b23b32; --cb-ok:#14865f;
  --cb-radius-s:10px; --cb-radius-m:14px; --cb-radius-l:20px;
  --cb-shadow:0 18px 50px #04101e47; --cb-blur:blur(30px) saturate(1.25);
  --cb-font:Inter,Manrope,-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;
  color-scheme:light;
}

/* Buttons on these pages are dark glass with white text (glass.css .g-btn); hover lifts, press shrinks. */
:where(button,.primary,.secondary) {transition:transform .12s,background-color .12s,box-shadow .12s;-webkit-tap-highlight-color:transparent}
@media(hover:hover) {:where(button,.primary,.secondary):not(:disabled):hover {filter:brightness(1.18)}}
:where(button,.primary,.secondary):not(:disabled):active {transform:scale(.96);box-shadow:inset 0 2px 7px #00000080}
@media(prefers-reduced-motion:reduce) {:where(button,.primary,.secondary) {transition:none}:where(button,.primary,.secondary):not(:disabled):active {transform:none}}
:is(a,button,input,select,textarea,summary):focus-visible {outline:2px solid var(--cb-accent);outline-offset:2px}
/* Pages carry their own bare element rules, so the shell sets every property it relies on. */
body .cb-shell {
  position:sticky;top:0;z-index:50;box-sizing:border-box;display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;gap:20px;
  min-height:56px;margin:12px 16px 0;padding:6px 10px 6px 20px;border:1px solid var(--cb-edge);border-radius:999px;top:12px;
  background:var(--cb-surface);backdrop-filter:var(--cb-blur);-webkit-backdrop-filter:var(--cb-blur);box-shadow:var(--cb-shadow);color:var(--cb-text);color-scheme:light;
  font:14px/1.4 var(--cb-font);letter-spacing:0;
}
body .cb-shell .brand,body .cb-shell .system-title {display:none}
body .cb-shell .cb-brand {display:flex;flex:none;flex-direction:column;gap:2px;margin:0;color:var(--cb-text);text-decoration:none}
body .cb-shell .cb-brand small {font-size:9px;line-height:1.2;letter-spacing:.19em;color:var(--cb-muted)}
body .cb-shell .cb-brand strong {font-size:15px;line-height:1.2;letter-spacing:.05em}
body .cb-shell .cb-drawer {display:flex;flex:1;align-items:center;gap:20px;min-width:0}
body .cb-shell .cb-nav {display:flex;align-items:center;gap:4px;min-width:0}
body .cb-shell .cb-nav a {
  display:inline-flex;align-items:center;height:38px;margin:0;padding:0 14px;border:1px solid transparent;border-radius:999px;
  background:transparent;color:var(--cb-label);font:inherit;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;
}
body .cb-shell .cb-nav a:hover {background:#ffffff99;color:var(--cb-text)}
body .cb-shell .cb-nav a[aria-current=page] {background:var(--cb-control);border-color:#ffffff2e;color:var(--cb-control-text);box-shadow:inset 0 1px 0 #ffffff38}
body .cb-shell .cb-nav a[aria-disabled=true] {opacity:.45;cursor:default;pointer-events:none}
body .cb-shell .topbar-account,body .cb-shell .cb-account {display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 0 auto;min-width:0}
body .cb-shell :is(.account-action,.cb-account-action,.topbar-engineering-menu>summary) {
  box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;width:auto;height:38px;min-width:0;min-height:0;margin:0;padding:0 14px;
  border:1px solid #ffffff2e;border-radius:999px;background:var(--cb-control);box-shadow:inset 0 1px 0 #ffffff38,0 6px 16px #04101e33;
  color:var(--cb-control-text);font:inherit;font-size:13px;font-weight:400;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;
}
body .cb-shell :is(.account-action,.cb-account-action,.topbar-engineering-menu>summary):hover {background:var(--cb-control-hover)}
body .cb-shell :is(.account-action,.cb-account-action,.topbar-engineering-menu>summary):active {background:var(--cb-control-press);transform:scale(.96)}
body .cb-shell .account-action :is(span,small,strong) {color:inherit}
body .cb-shell .cb-account-name {max-width:120px;overflow:hidden;text-overflow:ellipsis;color:var(--cb-muted);font-size:13px;white-space:nowrap}
body .cb-shell #logout-button small {border-left:1px solid #ffffff40;padding-left:8px;color:#ffffffc0}
body .cb-shell .revit-center-toggle.revit-center-toggle {height:auto;min-height:48px;width:100%;border-radius:var(--cb-radius-m);background:var(--cb-control)!important;border-color:#ffffff2e!important;color:var(--cb-control-text)}
body .cb-shell :is(a,button,summary):focus-visible {outline:2px solid var(--cb-accent);outline-offset:3px}
body .cb-shell .topbar-engineering-menu>div>.account-action {display:flex;justify-content:flex-start;width:100%;margin-top:6px}
body .cb-shell .topbar-engineering-menu>div>.account-action.hidden {display:none}
body .cb-shell .cb-menu-toggle {display:none}
body>header.cb-page-title {padding:18px 24px 0;background:transparent;color:var(--cb-on-page)}
body>header.cb-page-title a {display:none}
body[data-cb-shell=layers]>header.cb-page-title {padding:0}
body[data-cb-shell]>.topbar:not(.cb-shell) {display:none}
body[data-cb-shell=layers] .cb-shell {margin:-4px 0 16px}
@media(max-width:1180px) {
  body .cb-shell .cb-menu-toggle {
    display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:40px;height:40px;min-height:0;margin:0 0 0 auto;padding:0;
    border:1px solid #ffffff2e;border-radius:50%;background:var(--cb-control);color:var(--cb-control-text);font-size:19px;line-height:1;cursor:pointer;
  }
  body .cb-shell .cb-drawer {
    display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;flex-direction:column;align-items:stretch;gap:12px;max-height:calc(100dvh - 90px);overflow:auto;
    padding:12px 16px 16px;border:1px solid var(--cb-edge);border-radius:22px;background:#fbfaf8;box-shadow:var(--cb-shadow);/* Nested in the blurred bar, so its own blur would not see the page. */
  }
  body .cb-shell[data-menu-open] .cb-drawer {display:flex}
  body .cb-shell .cb-nav {flex-direction:column;align-items:stretch}
  body .cb-shell .cb-nav a {height:44px}
  body .cb-shell :is(.topbar-account,.cb-account) {flex-wrap:wrap;justify-content:flex-start;margin:0;padding-top:12px;border-top:1px solid var(--cb-line)}
  body .cb-shell :is(.account-action,.cb-account-action,.topbar-engineering-menu>summary) {height:44px}
  body .cb-shell .topbar-account>.account-action {width:auto}
  body .cb-shell .revit-center-toggle.revit-center-toggle {width:100%}
  body .cb-shell .topbar-engineering-menu>div {position:static;width:100%;max-width:none;margin-top:8px}
}
@media(max-width:600px) {
  body .cb-shell {margin:10px 10px 0;top:10px;padding:6px 8px 6px 16px}
  body .cb-shell .cb-drawer {padding:12px}
}
@media print {body .cb-shell {display:none}}

/* The shared same-version panel: glass surfaces and dark glass buttons. */
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 {background:transparent;color:var(--cb-text);border-color:var(--cb-line)}
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 :is(select,input) {background:var(--cb-input);color:var(--cb-text);border-color:var(--cb-line-strong)}
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 button {background:var(--cb-control);color:var(--cb-control-text);border-color:#ffffff2e}
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 button[aria-pressed=true] {background:var(--cb-selected-bg);color:var(--cb-selected-text);border-color:var(--cb-selected-line)}
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 small {color:var(--cb-muted)}
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 .p5-warning {color:var(--cb-warn)}
:is(#p5-viewer-panels,#bim-p5-panels) .bim-p5 .p5-error {color:var(--cb-danger)}
