:root { color-scheme:dark; --bg:#101819; --panel:#151e20; --line:#ffffff12; --muted:#96a9aa; --text:#e4eded; --mint:#92dfcd; font-family:Inter,"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif; font-synthesis:none }
* { box-sizing:border-box } body { margin:0; background:var(--bg); color:var(--text); font-size:13px }
button,input { font:inherit } button,input,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation }
button { cursor:pointer; color:inherit; border:0; background:none; transition:background .15s,color .15s } button:disabled { cursor:default; opacity:.5 }
a { color:inherit; text-decoration:none } a:hover { color:var(--mint) } button:hover:not(:disabled) { background:#ffffff0d }
button:focus-visible,a:focus-visible,input:focus-visible,#viewport:focus-visible { outline:2px solid var(--mint); outline-offset:4px }
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0 } [hidden] { display:none!important }
.app-header { height:84px; display:flex; align-items:center; border-bottom:1px solid var(--line); padding:0 30px; gap:26px; background:#121b1d; position:relative; z-index:4 }
.brand { display:flex; align-items:center; gap:12px }.brand>span { font-size:17px; letter-spacing:3px; font-weight:650 }.brand small { display:block; color:var(--muted); font-size:8px; letter-spacing:1.7px; margin-top:6px; font-weight:400 }
.header-divider { height:28px; width:1px; background:var(--line); margin-left:15px }.header-caption { font-size:11px; color:var(--muted); letter-spacing:1px }.header-actions { margin-left:auto; display:flex; align-items:center; gap:23px }
.quiet-button { color:var(--muted); padding:8px; border-radius:6px; font-size:11px }
.primary-button { display:flex; align-items:center; justify-content:center; gap:10px; background:var(--mint); color:#122826; padding:12px 19px; border-radius:7px; font-weight:650; font-size:12px; min-width:152px }.primary-button:hover:not(:disabled) { background:#b4f2e4 }.primary-button:disabled { opacity:1; background:#243333; color:#91a7a7 }
.workspace { display:grid; grid-template-columns:300px minmax(0,1fr); height:calc(100dvh - 84px); min-height:570px }
.library { background:var(--panel); border-right:1px solid var(--line); padding:29px 19px 0; display:flex; flex-direction:column; min-height:0 }
.library-heading { display:flex; align-items:center; justify-content:space-between; padding:0 8px }.eyebrow { font-size:9px; letter-spacing:2px; font-weight:600; color:var(--muted) }.count { font:9px ui-monospace,monospace; letter-spacing:1px; color:#6d8587 }
h1 { font-size:22px; letter-spacing:1px; font-weight:500; margin:13px 8px 23px }.accent { color:var(--mint); font-size:30px; margin-left:4px }
.search-box { height:38px; min-height:38px; border:1px solid #ffffff12; border-radius:6px; display:flex; align-items:center; gap:9px; padding:0 11px; margin:0 6px; background:#10191b; color:#7f9697 }.search-box svg { width:15px; height:15px }.search-box input { width:100%; min-width:0; border:0; outline:none; background:none; color:var(--text); font-size:11px }.search-box input::placeholder { color:#809395 }
.filters { display:flex; gap:5px; margin:15px 5px 20px }.filters button { flex:1; white-space:nowrap; font-size:10px; color:var(--muted); padding:7px 5px; border-radius:4px }.filters button.active { background:#283b3b; color:var(--mint) }
.model-list { overflow:auto; min-height:0; scrollbar-width:thin; scrollbar-color:#3b5152 transparent; padding:0 3px 12px; flex:1 }.model-card { width:100%; display:flex; align-items:center; text-align:left; gap:12px; padding:11px 9px; margin-bottom:5px; min-height:64px; border:1px solid transparent; border-radius:7px; position:relative }.model-card.active { background:#223636; border-color:#80dfcb34 }.model-card.active:before { content:""; position:absolute; left:-1px; width:3px; height:23px; background:var(--mint); border-radius:2px }
.model-symbol { width:40px; height:40px; border-radius:6px; background:#1c2c2e; color:#6d9693; display:grid; place-items:center; flex-shrink:0 }.model-symbol svg { width:29px; height:29px; stroke-width:.85 }.model-card.active .model-symbol { color:#a5e7d7; background:#294342 }.model-card .card-text { min-width:0; flex:1 }.model-card strong { display:block; font-size:11px; font-weight:500; line-height:1.5 }.model-card small { display:block; font-size:9px; color:var(--muted); margin-top:4px; line-height:1.4 }.card-number { align-self:flex-start; margin-top:3px; font:9px ui-monospace,monospace; color:#587475 }.model-card.active .card-number { color:var(--mint) }
.library-footer { border-top:1px solid var(--line); margin-top:auto; padding:16px 6px 21px }.import-button { display:flex; width:100%; align-items:center; gap:7px; font-size:11px; border:1px dashed #6e909043; border-radius:6px; padding:10px; margin-bottom:19px }.import-button>span:first-child { font-size:17px }.file-tag { margin-left:auto; font:8px ui-monospace,monospace; color:#789594; letter-spacing:1px }.library-footer>a { display:flex; align-items:center; justify-content:space-between; font-size:10px; color:#b9cccb }.footer-caption { display:block; font-size:8px; color:#718b8d; margin-top:8px }.empty-state { text-align:center; color:var(--muted); line-height:2; font-size:11px }
.stage { position:relative; overflow:hidden; background:#111c1e; min-width:0 } #viewport { position:absolute; inset:0; outline-offset:-3px!important } #viewport canvas { display:block; width:100%; height:100%; touch-action:none }
.stage-heading { position:absolute; left:38px; top:32px; pointer-events:none }.stage-heading .eyebrow { display:flex; align-items:center; gap:8px; font-size:9px }.live-dot { width:5px; height:5px; border-radius:50%; background:var(--mint); box-shadow:0 0 10px #92dfcd30 }.stage-index { margin-left:18px; color:#6d8b8c; font-family:ui-monospace,monospace; letter-spacing:1px }.stage-heading h2 { font-size:28px; letter-spacing:1px; font-weight:400; margin:15px 0 10px; line-height:1.3 }.stage-heading p { color:var(--muted); font-size:11px; margin:0 }
.stage-tools { display:flex; gap:9px; position:absolute; right:27px; top:29px }.icon-button { display:grid; place-items:center; width:34px; height:34px; border:1px solid #92b8b51c; border-radius:7px; color:#a3baba; font-size:23px; background:#16232590 }.icon-button svg { width:16px; height:16px }
.view-presets { position:absolute; right:29px; top:45%; display:flex; flex-direction:column; align-items:center; gap:8px }.view-presets>span { font:8px ui-monospace,monospace; letter-spacing:1px; color:#6e8889; margin-bottom:3px }.view-presets button { width:33px; height:33px; background:#18282bd9; border:1px solid #ffffff10; border-radius:6px; font-size:10px; color:#aac2c2 }
.model-caption { position:absolute; bottom:195px; left:38px; pointer-events:none; max-width:350px }.caption-rule { display:block; width:24px; height:2px; background:#668f89; margin-bottom:11px }.model-caption p { font-size:10px; line-height:1.9; color:#a3bdbb; margin:0 0 8px }.model-caption>span:last-child { font:9px ui-monospace,monospace; color:#7c9a9b; letter-spacing:1px }
.viewer-controls { position:absolute; bottom:55px; left:50%; transform:translateX(-50%); background:#1a292ce8; backdrop-filter:blur(16px); border:1px solid #84b2b526; border-radius:12px; width:max-content; max-width:calc(100% - 72px); box-shadow:0 14px 45px #0003 }.control-main { display:flex; align-items:center; padding:9px; gap:6px; border-bottom:1px solid #93b5b313 }.display-modes { display:flex; align-items:center; gap:3px; background:#111d20; border-radius:6px; padding:3px }.display-modes button { font-size:11px; padding:9px 16px; border-radius:4px; color:#9ab4b4 }.display-modes button.active { background:#304c4a; color:#b6eddf }.control-divider { width:1px; height:22px; background:#ffffff12; margin:0 4px }.tool-button { padding:9px 10px; border-radius:5px; font-size:10px; color:#a2bdbd; white-space:nowrap; display:flex; align-items:center; gap:6px }.tool-button>span[aria-hidden] { font-size:17px; line-height:16px }.tool-button.active { color:var(--mint); background:#92dfcd0a }
.control-secondary { padding:12px 18px; display:flex; align-items:center; gap:24px }.swatches { display:flex; gap:9px }.swatches button { background:var(--swatch); width:12px; height:12px; border-radius:50%; padding:0; position:relative }.swatches button:hover { background:var(--swatch) }.swatches button.selected:after { content:""; position:absolute; inset:-4px; border:1px solid var(--swatch); border-radius:50% }.scale-control { display:flex; align-items:center; gap:12px; flex:1; color:#93abaa; font-size:10px; white-space:nowrap }.scale-control input { width:100px; min-width:50px; height:3px; accent-color:var(--mint); cursor:pointer; flex:1 }.scale-control output { font:10px ui-monospace,monospace; color:#c2d6d2; min-width:40px }.grid-button { padding:2px 0; font-size:10px }.grid-button.active { color:var(--mint) }
.stage-footer { position:absolute; left:38px; right:29px; bottom:20px; display:flex; justify-content:space-between; gap:14px; color:#809d9e; font-size:9px; pointer-events:none }.stage-footer>span:last-child { font-size:9px; color:#82a59e }.dot-separator { margin:0 6px; color:#517573 }
.loading-card { position:absolute; left:50%; top:45%; transform:translate(-50%,-50%); display:flex; align-items:center; gap:12px; background:#182b30f5; border:1px solid #537c7d60; border-radius:10px; padding:20px; max-width:85%; box-shadow:0 10px 40px #0005; font-size:12px; line-height:1.8; z-index:2 }.loading-card.error { border-color:#cb997862; flex-wrap:wrap; color:#f0c4a6 }.spinner { width:17px; height:17px; border:2px solid #709f9340; border-top-color:var(--mint); border-radius:50%; animation:spin 1s linear infinite; flex-shrink:0 }@keyframes spin { to { transform:rotate(360deg) } }
.toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%); background:#c5eee2; color:#173b33; border:1px solid #d8f8ee; padding:12px 20px; border-radius:7px; z-index:12; font-size:12px; box-shadow:0 8px 25px #0004; max-width:90vw }.drop-overlay { position:absolute; inset:18px; display:flex; flex-direction:column; justify-content:center; align-items:center; background:#1c3d3bf2; border:2px dashed var(--mint); border-radius:14px; z-index:6; font-size:24px; color:var(--mint); pointer-events:none }.drop-overlay small { font-size:13px; margin-top:15px }
dialog { border:1px solid #6b8e8b55; border-radius:15px; background:#182628; color:var(--text); padding:25px 32px 32px; width:540px; max-width:calc(100vw - 30px); max-height:85dvh; box-shadow:0 35px 100px #0007 }dialog::backdrop { background:#041011ba; backdrop-filter:blur(6px) }.dialog-heading { display:flex; justify-content:space-between; align-items:center }dialog h2 { font-size:26px; font-weight:450; letter-spacing:1px; margin:15px 0 }.dialog-intro { color:var(--muted); font-size:12px; line-height:1.9 }.guide-section { padding-top:13px; margin-top:18px; border-top:1px solid var(--line) }.guide-section h3 { font-size:13px; color:var(--mint); font-weight:500 }.guide-section p { font-size:11px; color:#9cb6b6; line-height:1.9 }.guide-section dl { display:grid; grid-template-columns:108px 1fr; font-size:11px; gap:13px 10px; line-height:1.7 }.guide-section dt { color:#c6d9d6 }.guide-section dd { margin:0; color:var(--muted) }.guide-section a { font-size:11px; color:var(--mint) }.guide-section .guide-note { color:#89a6a5; font-size:10px }.fatal-notice { position:fixed; inset:40% 15%; background:#314747; padding:30px; border-radius:12px; z-index:10 }.mobile-only,.library-backdrop { display:none }.xr-active .app-header,.xr-active .workspace { visibility:hidden }
@media(min-width:1600px) { .workspace { grid-template-columns:320px minmax(0,1fr) }.stage-heading { top:42px; left:50px }.stage-heading h2 { font-size:33px }.model-card { min-height:72px }.model-caption { left:50px } }
@media(max-width:1150px) { .workspace { grid-template-columns:265px minmax(0,1fr) }.library { padding-left:12px; padding-right:12px }.header-caption,.header-divider { display:none }.stage-heading { left:25px }.stage-heading h2 { font-size:24px }.viewer-controls { max-width:calc(100% - 40px) }.display-modes button { padding:8px 11px }.tool-button { padding:8px 6px; gap:4px }.control-main { gap:3px }.control-secondary { gap:17px }.stage-footer { left:25px; right:23px }.stage-footer>span:last-child { max-width:135px; text-align:right }.model-caption { left:25px; max-width:260px } }
@media(max-width:850px) { .app-header { height:70px; padding:0 18px; gap:14px }.header-actions { gap:10px }.brand>span { font-size:14px; letter-spacing:2px }.brand small { font-size:7px }.workspace { height:calc(100dvh - 70px); grid-template-columns:1fr; min-height:540px }.mobile-only { display:grid }.library { position:fixed; top:70px; bottom:0; left:0; width:290px; z-index:8; transform:translateX(-100%); transition:transform .2s }.library.is-open { transform:translateX(0) }.library-backdrop:not([hidden]) { display:block; position:fixed; inset:70px 0 0; background:#020d13a8; backdrop-filter:blur(3px); z-index:7 }.stage-heading { top:25px }.stage-heading h2 { font-size:27px }.stage-tools { top:23px; right:22px }.primary-button { min-width:130px; padding:10px 12px }.stage-footer>span:last-child { max-width:none }.model-caption { bottom:190px; max-width:340px }.viewer-controls { bottom:55px }.help-label { display:none } }
@media(max-width:520px) { .app-header { padding:0 12px; gap:9px }.brand { gap:8px }.brand img { width:28px; height:28px }.brand>span { font-size:12px; letter-spacing:1.7px }.brand small { font-size:6px; letter-spacing:.8px }.primary-button { min-width:auto; font-size:10px; gap:6px; padding:10px }.primary-button svg { width:16px; height:16px }.header-actions { gap:3px }.app-header .quiet-button { padding:6px }.stage-heading { left:21px; top:25px; max-width:calc(100% - 94px) }.stage-heading .eyebrow { font-size:8px; letter-spacing:1px }.stage-index { margin-left:5px }.stage-heading h2 { font-size:23px; line-height:1.4; margin-top:12px }.stage-heading p { font-size:10px; line-height:1.7 }.stage-tools { right:16px; gap:6px; flex-direction:column }.stage-tools .icon-button { width:29px; height:29px }.view-presets { right:16px; top:35%; gap:7px }.view-presets button { width:29px; height:29px }.model-caption { left:21px; bottom:182px; max-width:calc(100% - 75px) }.model-caption p { font-size:9px; line-height:1.6 }.model-caption>span:last-child { font-size:8px }.caption-rule { margin-bottom:7px }.viewer-controls { max-width:calc(100% - 28px); width:calc(100% - 28px); bottom:56px; border-radius:10px }.control-main { padding:7px; justify-content:space-between; gap:2px }.display-modes button { font-size:10px; padding:8px 9px }.tool-button { font-size:9px; padding:7px 5px; gap:3px; flex-direction:column }.tool-button>span[aria-hidden] { font-size:16px }.control-divider { margin:0 1px }.control-secondary { padding:12px 13px; gap:14px }.scale-control { gap:9px; font-size:9px }.scale-control input { width:50px }.swatches { gap:9px }.swatches button { width:10px; height:10px }.grid-button { font-size:9px }.stage-footer { left:21px; right:21px; bottom:15px; flex-direction:column; align-items:center; gap:5px; font-size:8px }.stage-footer>span:last-child { font-size:8px }.guide-section dl { grid-template-columns:85px 1fr; gap:11px 6px; font-size:10px }dialog { padding:21px }dialog h2 { font-size:23px }.loading-card { font-size:11px; padding:16px }.toast { font-size:11px; bottom:20px } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition:none!important } }
/* Keep compact color chips easy to hit with a pointer or a fingertip. */
.swatches { gap:2px }
.swatches button { width:24px; height:24px; background:transparent }
.swatches button:hover { background:#ffffff0d }
.swatches button::before { content:""; position:absolute; inset:6px; border-radius:50%; background:var(--swatch) }
.swatches button.selected::after { inset:2px }
@media(max-width:850px) { .library:not(.is-open) { visibility:hidden } }
@media(max-width:520px) { .swatches { gap:0 }.swatches button { width:22px; height:24px }.control-secondary { gap:10px } }
.language-select { color:var(--text); background:#1a292c; border:1px solid #92b8b52b; border-radius:6px; padding:8px 7px; font:inherit; font-size:11px; cursor:pointer; max-width:92px }
.language-select:focus-visible { outline:2px solid var(--mint); outline-offset:3px }
html[lang="en"] .filters button { font-size:9px; padding:7px 4px }
html[lang="en"] .display-modes button { padding-left:12px; padding-right:12px }
html[lang="en"] .stage-heading { max-width:calc(100% - 140px) }
@media(max-width:1150px) { .header-actions { gap:14px } html[lang="en"] .display-modes button { padding-left:9px; padding-right:9px } }
@media(max-width:520px) {
  .brand>span { display:none }
  .header-actions { gap:5px }
  .language-select { font-size:10px; padding:8px 4px; max-width:77px }
  html[lang="en"] .stage-heading { max-width:calc(100% - 85px) }
  html[lang="en"] .display-modes button { font-size:9px; padding:8px 6px }
  html[lang="en"] .tool-button { font-size:9px; padding:7px 4px }
  html[lang="en"] .control-main { gap:1px }
}
