:root { color-scheme: dark; --bg:#0d0d0e; --panel:#17191b; --line:#2c2f33; --text:#e6e8ea; --muted:#b9bdc1; --accent:#c7cacd; --accent-soft:#b9bdc1; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Inter,"Segoe UI",Arial,sans-serif; }
main { width:min(1500px,100%); margin:0 auto; padding:0 24px 64px; }
.hero { padding:72px 0 42px; max-width:980px; }
.eyebrow { margin:0 0 12px; color:var(--accent); font-size:.78rem; font-weight:800; letter-spacing:.18em; }
h1 { margin:0; max-width:900px; font-size:clamp(2.3rem,5vw,5.4rem); line-height:.98; letter-spacing:-.045em; }
.intro { max-width:790px; color:var(--muted); font-size:clamp(1rem,1.6vw,1.25rem); line-height:1.65; }
.viewer-shell { height:clamp(720px,88vh,900px); display:grid; grid-template-columns:minmax(0,1fr) 6px var(--slice-width,290px) 300px; overflow:hidden; border:1px solid var(--line); border-radius:22px; background:#0b0b0c; box-shadow:0 30px 90px rgb(0 0 0/.35); }
.viewer { position:relative; min-height:720px; }
.viewer canvas { display:block; width:100%; height:100%; }
.loading { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); color:var(--muted); }
.viewer-badge { position:absolute; z-index:2; top:18px; left:18px; padding:8px 11px; border:1px solid rgb(199 202 205/.45); border-radius:999px; color:var(--accent); background:rgb(13 13 14/.76); font-size:.72rem; font-weight:800; letter-spacing:.11em; backdrop-filter:blur(8px); }
.viewer-help { position:absolute; z-index:2; bottom:16px; left:18px; margin:0; color:#c7cacd; font-size:.76rem; text-shadow:0 1px 4px #000; }
.panel { overflow-y:auto; padding:28px 22px; background:linear-gradient(180deg,rgb(28 30 33/.96),rgb(17 18 20/.96)); border-left:1px solid var(--line); }
.panel h2 { margin:0 0 16px; font-size:.86rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.panel h2:not(:first-child) { margin-top:32px; }
.layer-row { display:grid; grid-template-columns:1fr auto; gap:12px; padding:12px 0; border-bottom:1px solid rgb(255 255 255/.08); }
.layer-row label { font-weight:650; }
.layer-row input[type="checkbox"] { accent-color:var(--accent); width:18px; height:18px; }
.layer-row input:disabled { opacity:.35; }
.panel input[type="range"] { width:100%; accent-color:var(--accent-soft); }
.pore-card { margin-top:24px; padding:16px; border:1px solid var(--line); border-radius:14px; color:var(--muted); background:rgb(0 0 0/.2); line-height:1.5; }
.pore-card strong { color:var(--text); }
.method { display:grid; grid-template-columns:.8fr 1.2fr; gap:48px; align-items:start; padding:72px 0 16px; }
.method h2 { margin:0; font-size:clamp(1.7rem,3vw,3rem); }
.method>p { margin:0; color:var(--muted); font-size:1.08rem; line-height:1.75; }
.deliverables { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:56px; align-items:start; margin:52px 0 18px; padding:36px; border:1px solid var(--line); border-radius:22px; background:linear-gradient(135deg,rgb(23 25 27/.94),rgb(11 11 12/.92)); }
.deliverables h2 { margin:.25rem 0 .8rem; font-size:clamp(1.6rem,3vw,2.7rem); letter-spacing:-.035em; }
.deliverables p { color:var(--muted); line-height:1.65; }
.download-grid { display:grid; gap:12px; }
.download-card { display:flex; flex-direction:column; gap:5px; padding:18px 20px; border:1px solid var(--line); border-radius:15px; color:var(--text); text-decoration:none; background:rgb(255 255 255/.025); transition:transform .18s ease,border-color .18s ease,background .18s ease; }
.download-card:hover { transform:translateY(-2px); border-color:rgb(199 202 205/.55); background:rgb(199 202 205/.055); }
.download-card.primary { border-color:rgb(199 202 205/.38); }
.download-card span { color:var(--muted); font-size:.82rem; }
.segmented { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.segmented button, .reset { padding:9px 8px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:rgb(255 255 255/.03); font:inherit; font-size:.82rem; font-weight:650; cursor:pointer; }
.segmented button[aria-pressed="true"] { color:var(--text); border-color:rgb(199 202 205/.6); background:rgb(199 202 205/.12); }
.segmented button:hover, .reset:hover { border-color:rgb(199 202 205/.45); }
.segmented-3 { grid-template-columns:repeat(3,1fr); }
.segmented-3 button { font-size:.76rem; padding:9px 4px; }
.status { min-height:1.2em; margin:10px 0 0; color:var(--muted); font-size:.76rem; line-height:1.4; }
.hint { margin:10px 0 4px; color:var(--muted); font-size:.76rem; line-height:1.45; }
.panel[data-mode="slices"] .only-volume, .panel[data-mode="volume"] .only-slices { display:none; }
.panel:not([data-mode="volume"]) .flip { visibility:hidden; }
.axis-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:4px 10px; padding:10px 0; border-bottom:1px solid rgb(255 255 255/.08); }
.axis-row label { display:flex; align-items:center; gap:8px; font-weight:700; }
.axis-row input[type="checkbox"] { accent-color:var(--accent); width:18px; height:18px; }
.axis-row output { color:var(--muted); font-size:.8rem; font-variant-numeric:tabular-nums; }
.axis-row input[type="range"] { grid-column:1/-1; }
.flip { width:30px; height:26px; border:1px solid var(--line); border-radius:8px; color:var(--muted); background:transparent; cursor:pointer; }
.flip.flipped { color:var(--accent-soft); border-color:rgb(185 189 193/.6); }
.threshold { display:flex; justify-content:space-between; margin-top:14px; font-weight:650; }
.threshold output { color:var(--muted); font-variant-numeric:tabular-nums; }
.reset { width:100%; margin-top:14px; }
.view-buttons { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:16px; }
.viewer-readout { position:absolute; z-index:2; left:18px; bottom:44px; max-width:min(360px,60%); padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:rgb(13 13 14/.82); color:var(--text); font-size:.8rem; line-height:1.55; backdrop-filter:blur(8px); pointer-events:none; }
.viewer-readout .coords { color:var(--muted); font-variant-numeric:tabular-nums; }
.legend { position:absolute; z-index:2; right:16px; bottom:16px; display:grid; gap:10px; width:min(300px,calc(100% - 32px)); pointer-events:none; }
.legend-block { padding:10px 12px 8px; border:1px solid var(--line); border-radius:12px; background:rgb(13 13 14/.82); backdrop-filter:blur(8px); }
.legend-title { margin:0 0 8px; font-size:.76rem; font-weight:750; }
.legend-title em { color:var(--muted); font-style:normal; font-weight:500; }
.legend-bar { position:relative; height:12px; border-radius:3px; border:1px solid rgb(255 255 255/.18); }
.legend-marker { position:absolute; top:-5px; width:2px; height:22px; margin-left:-1px; background:#fff; box-shadow:0 0 0 1px #000; }
.legend-threshold { position:absolute; top:-3px; height:18px; border-left:2px dashed var(--accent-soft); margin-left:-1px; }
.legend-ticks { position:relative; height:16px; margin-top:4px; color:var(--muted); font-size:.68rem; font-variant-numeric:tabular-nums; }
.legend-ticks span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
.legend-ticks span:first-child { transform:none; }
.legend-ticks span:last-child { transform:translateX(-100%); }
.legend-note { margin:4px 0 0; color:var(--muted); font-size:.66rem; }
.legend-classes { display:grid; grid-template-columns:repeat(6,1fr); gap:3px; }
.legend-class { display:flex; flex-direction:column; align-items:center; gap:2px; padding:2px 0; border-radius:6px; font-size:.68rem; }
.legend-class span { width:100%; height:12px; border-radius:3px; }
.legend-class small { color:var(--muted); font-size:.58rem; white-space:nowrap; }
.legend-class.active { outline:2px solid #fff; }
body.embed { min-height:100vh; }
body.embed .viewer-shell { height:100vh; min-height:560px; border:0; border-radius:0; box-shadow:none; }
body.embed .viewer { min-height:0; }
.panel h2:not(:first-child) { margin-top:24px; }
.pore-window { position:absolute; z-index:3; top:16px; left:16px; width:min(300px,calc(100% - 32px)); border:1px solid var(--line); border-radius:14px; background:rgb(13 13 14/.9); backdrop-filter:blur(8px); overflow:hidden; box-shadow:0 18px 40px rgb(0 0 0/.45); }
.pore-view { height:220px; background:radial-gradient(circle at 50% 40%,rgb(199 202 205/.08),transparent 70%); cursor:grab; }
.pore-view canvas { display:block; width:100%; height:100%; }
.pore-info { padding:12px 14px 14px; border-top:1px solid var(--line); font-size:.8rem; }
.pore-info strong { display:block; margin-bottom:8px; font-size:.92rem; }
.pore-info dl { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; margin:0; }
.pore-info dt { color:var(--muted); }
.pore-info dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.pore-close { position:absolute; top:8px; right:8px; width:28px; height:28px; border:1px solid var(--line); border-radius:8px; color:var(--text); background:rgb(13 13 14/.7); font-size:1.1rem; line-height:1; cursor:pointer; }
.pore-close:hover { border-color:rgb(199 202 205/.55); }
.cut-controls .threshold { margin-top:10px; }
.cut-controls input[type="range"] { width:100%; accent-color:var(--accent-soft); }
.slice-column { display:grid; grid-template-rows:1fr 6px 1fr 6px 1fr; min-height:0; background:#0b0b0c; }
.slice-view { display:flex; flex-direction:column; min-height:0; padding:8px 10px 6px; border-bottom:1px solid var(--line); border-left:3px solid var(--axis); }
.slice-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:.74rem; }
.slice-head strong { color:var(--axis); font-weight:750; }
.slice-head output { color:var(--muted); font-variant-numeric:tabular-nums; }
.slice-view canvas { flex:1; min-height:0; width:100%; margin:6px 0 4px; cursor:crosshair; }
.slice-view input[type="range"] { width:100%; accent-color:var(--axis); }
.slice-readout { margin:2px 0 0; overflow:hidden; color:var(--muted); font-size:.64rem; white-space:nowrap; text-overflow:ellipsis; }
.slice-readout strong { color:var(--text); }
.splitter-col, .splitter-row { background:var(--line); transition:background .15s; touch-action:none; }
.splitter-col { cursor:col-resize; }
.splitter-row { cursor:row-resize; }
.splitter-col:hover, .splitter-row:hover, .splitter-col.active, .splitter-row.active { background:var(--accent); }
.slice-view { border-bottom:0; }
.study-list { display:grid; gap:6px; }
.study-list button { display:flex; flex-direction:column; gap:2px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; color:var(--text); background:rgb(255 255 255/.03); font:inherit; text-align:left; cursor:pointer; }
.study-list button strong { font-size:.84rem; }
.study-list button small { color:var(--muted); font-size:.7rem; }
.study-list button:hover { border-color:rgb(199 202 205/.45); }
.study-list button[aria-pressed="true"] { border-color:rgb(199 202 205/.6); background:rgb(199 202 205/.12); }
@media (max-width:920px) { main{padding-inline:14px}.hero{padding-top:44px}.viewer-shell{grid-template-columns:1fr;height:auto}.splitter-col,.splitter-row{display:none}.slice-column{grid-template-rows:none!important;grid-template-columns:repeat(3,minmax(0,1fr));border-left:0;border-top:1px solid var(--line)}.slice-view{height:300px}body.embed .viewer-shell{height:auto}body.embed .viewer{min-height:62vh}.viewer{min-height:62vh}.panel{border-left:0;border-top:1px solid var(--line)}.method,.deliverables{grid-template-columns:1fr;gap:20px}.deliverables{padding:24px} }
