@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --paper-2: #e9e6dc;
  --paper-3: #fbfaf6;
  --ink: #111110;
  --ink-2: #4d4c46;
  --ink-3: #6f6d65;
  --rule: rgba(17, 17, 16, .13);
  --rule-2: rgba(17, 17, 16, .22);
  --accent: #1f3bff;
  --fix: #0b8f55;
  --float: #c98100;
  --bad: #d92d20;
  --chart-grid: rgba(17, 17, 16, .1);
  --chart-text: #8f8d84;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-sans: "Geist", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: "Geist Mono", "PingFang TC", "Microsoft JhengHei", ui-monospace, Menlo, monospace;
  --gutter: clamp(24px, 3.4vw, 56px);
  font-family: var(--font-sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; color: var(--ink); background: var(--paper); }
body { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--paper); background: var(--accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(17, 17, 16, .25); border: 3px solid var(--paper); border-radius: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
.hidden, [hidden] { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--ink-2); }
.mono, .tnum { font-variant-numeric: tabular-nums; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-fix { color: var(--fix); }
.required { color: var(--accent); }

.app-shell { position: relative; z-index: 1; height: 100vh; height: 100dvh; display: grid; grid-template-rows: 60px minmax(0, 1fr); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { position: relative; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--ink); }
.brand-mark::before { left: 50%; top: -5px; bottom: -5px; width: 1.5px; transform: translateX(-50%); }
.brand-mark::after { top: 50%; left: -5px; right: -5px; height: 1.5px; transform: translateY(-50%); }
.brand:hover .brand-mark { animation: spin 1.2s var(--ease); }
@keyframes spin { to { transform: rotate(90deg); } }
.brand-word { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.brand-tag { padding-left: 12px; color: var(--ink-3); border-left: 1px solid var(--rule-2); font: 500 11px/1 var(--font-mono); letter-spacing: .04em; }
.side-nav { display: flex; gap: 34px; }
.nav-item { position: relative; display: inline-flex; align-items: flex-start; gap: 5px; padding: 4px 0; color: var(--ink-3); font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: color .3s var(--ease); }
.nav-item sup { font: 500 10px/1 var(--font-mono); letter-spacing: .04em; }
.nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-item:hover, .nav-item.active { color: var(--ink); }
.nav-item:hover::after, .nav-item.active::after { transform: scaleX(1); transform-origin: left; }
.top-actions { display: flex; align-items: center; gap: 18px; justify-self: end; }
.gps-clock { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gps-clock span { color: var(--ink-3); font-size: 10px; letter-spacing: .08em; }
.gps-clock b { font-size: 12px; font-weight: 500; }
.gps-clock::before { content: ""; width: 6px; height: 6px; align-self: center; border-radius: 50%; background: var(--fix); box-shadow: 0 0 0 3px rgba(11, 143, 85, .15); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(11, 143, 85, 0); } }
.date-chip { color: var(--ink-3); font: 500 12px var(--font-mono); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--rule-2); border-radius: 50%; transition: background .3s var(--ease), color .3s, transform .6s var(--ease); }
.icon-button:hover { color: var(--paper); background: var(--ink); transform: rotate(-180deg); }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.page { min-height: 0; overflow: auto; overflow-x: hidden; }
.page:has(> #rasterWorkspace) { display: flex; flex-direction: column; gap: 16px; padding: 20px var(--gutter) 24px; overflow: hidden; }
.page:has(> .page-head), .page:has(> .result-title-line), .page:has(> .empty), .page:has(> .card) { padding: 24px var(--gutter) 64px; }
.loading { height: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--ink-2); font: 500 12px var(--font-mono); letter-spacing: .08em; }
.loading::before { content: ""; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 1.5px 32px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 32px 1.5px no-repeat; animation: spin .9s var(--ease) infinite; }
@keyframes spinLoop { to { transform: rotate(360deg); } }
.atlas-page { max-width: 1520px; margin: 0 auto; padding: 22px var(--gutter) 120px; }
.atlas-page.narrow { max-width: 1080px; }
.reveal { animation: reveal 1s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .06s; } .reveal:nth-child(3) { animation-delay: .12s; } .reveal:nth-child(4) { animation-delay: .18s; } .reveal:nth-child(5) { animation-delay: .24s; } .reveal:nth-child(6) { animation-delay: .3s; }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color .3s, gap .4s var(--ease); }
.back-link::before { content: "←"; font-family: var(--font-mono); }
.back-link:hover { gap: 14px; color: var(--ink); }
.kicker { display: flex; flex-wrap: wrap; margin-bottom: 18px; color: var(--ink-2); font: 500 12px/1 var(--font-mono); letter-spacing: .02em; }
.kicker span + span::before { content: "／"; margin: 0 10px; color: var(--ink-3); }
.kicker span:first-child { color: var(--ink); }
.kicker .coord { color: var(--accent); }
.display { margin: 0; font-size: clamp(60px, 7.6vw, 136px); font-weight: 650; letter-spacing: -.055em; line-height: .9; }
.display sup { position: relative; top: .5em; margin-left: .08em; color: var(--accent); font: 500 .2em/1 var(--font-mono); letter-spacing: 0; vertical-align: top; }
.index-hero, .project-hero, .run-hero { position: relative; padding: 24px 0 36px; isolation: isolate; }
.index-hero::after, .run-hero::after, .project-hero::after { content: ""; position: absolute; z-index: -1; top: -40px; right: -6%; width: 58%; height: 140%; pointer-events: none; opacity: .55; background: repeating-radial-gradient(ellipse 120% 90% at 78% 42%, transparent 0 17px, rgba(17, 17, 16, .07) 17px 18px), repeating-radial-gradient(ellipse 80% 110% at 30% 80%, transparent 0 23px, rgba(17, 17, 16, .05) 23px 24px); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.hero-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 34px; }
.lede { max-width: 620px; margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.55; letter-spacing: -.01em; }
.tally { display: flex; margin: 0; }
.tally div { min-width: 120px; padding: 0 28px 0 18px; border-left: 1px solid var(--rule-2); }
.tally dt { color: var(--ink-3); font: 500 11px/1.4 var(--font-mono); letter-spacing: .04em; }
.tally dd { margin: 6px 0 0; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tally dd small { margin-left: 2px; color: var(--ink-3); font-size: 15px; letter-spacing: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }

.btn, .button { position: relative; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 26px; overflow: hidden; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; isolation: isolate; transition: color .45s var(--ease), border-color .45s; }
.btn::before, .button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::before, .button:hover::before { transform: translateY(0); }
.btn:hover, .button:hover { border-color: var(--accent); }
.btn.arrow::after { content: "→"; font-family: var(--font-mono); transition: transform .45s var(--ease); }
.btn.arrow:hover::after { transform: translateX(4px); }
.btn.ghost, .button.secondary, .button.ghost { color: var(--ink); background: transparent; border-color: var(--rule-2); }
.btn.ghost::before, .button.secondary::before, .button.ghost::before { background: var(--ink); }
.btn.ghost:hover, .button.secondary:hover, .button.ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn.danger, .button.danger { color: var(--bad); background: transparent; border-color: rgba(217, 45, 32, .35); }
.btn.danger::before, .button.danger::before { background: var(--bad); }
.btn.danger:hover, .button.danger:hover { color: #fff; border-color: var(--bad); }
.button.primary { color: var(--paper); background: var(--ink); }
.btn.small, .button.small { height: 34px; padding: 0 16px; font-size: 13px; }
.button.block, .btn.block { width: 100%; }
.btn:disabled, .button:disabled { opacity: .3; cursor: not-allowed; }
.btn:disabled::before, .button:disabled::before { display: none; }
.tool-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--rule-2); border-radius: 50%; }
.tool-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note-menu-button { position: relative; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; background: transparent; border: 1px solid var(--rule-2); border-radius: 50%; transition: background .3s; }
.note-menu-button::before { content: ""; position: absolute; left: 13px; top: 50%; width: 3.5px; height: 3.5px; margin-top: -1.75px; background: var(--ink); border-radius: 50%; box-shadow: 5.5px 0 var(--ink), 11px 0 var(--ink); }
.note-menu-button:hover { background: var(--paper-2); }
.actions { display: flex; align-items: center; gap: 10px; }

input, select, textarea { min-width: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; outline: none; transition: border-color .3s; }
input, select { height: 42px; padding: 0 2px; }
select { padding-right: 22px; appearance: none; background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 9px) 52% / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink) 50%) calc(100% - 4px) 52% / 5px 5px no-repeat; }
textarea { padding: 10px 2px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:disabled, select:disabled { color: var(--ink-3); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--ink); }
.search { position: relative; }
.search input { width: 320px; padding-left: 26px; }
.search::before { content: ""; position: absolute; left: 1px; top: 14px; width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 11px; top: 25px; width: 5px; height: 1.5px; background: var(--ink); transform: rotate(45deg); transform-origin: left center; }
.filter-bar { display: flex; align-items: center; gap: 28px; padding: 6px 0 16px; border-bottom: 1px solid var(--ink); }
.filter-note { color: var(--ink-3); font: 500 11px var(--font-mono); letter-spacing: .04em; }

.index-list { margin: 0; padding: 0; list-style: none; }
.index-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 100px 120px 150px 110px 36px 28px; align-items: center; gap: 16px; min-height: 96px; padding: 14px 8px; border-bottom: 1px solid var(--rule-2); cursor: pointer; isolation: isolate; animation: rowIn .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + .15s); }
@keyframes rowIn { from { opacity: 0; transform: translateY(16px); } }
.index-row::before { content: ""; position: absolute; inset: -1px 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.index-row:hover::before { transform: scaleY(1); transform-origin: top; }
.index-row > * { transition: color .35s var(--ease); }
.index-row:hover > *, .index-row:hover small, .index-row:hover .row-figure small, .index-row:hover .idx { color: var(--paper); }
.idx { color: var(--ink-3); font: 500 12px var(--font-mono); }
.row-title { min-width: 0; }
.row-title strong { display: block; overflow: hidden; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; transition: transform .55s var(--ease); }
.index-row:hover .row-title strong { transform: translateX(10px); }
.row-title small { display: block; margin-top: 6px; overflow: hidden; color: var(--ink-2); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.row-cell { color: var(--ink-2); font-size: 13px; }
.row-cell b { margin-right: 6px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.index-row:hover .row-cell b { color: var(--paper); }
.row-figure { font-size: 34px; font-weight: 600; letter-spacing: -.05em; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.row-figure small { margin-left: 2px; color: var(--ink-3); font-size: 14px; letter-spacing: 0; }
.row-figure em { color: var(--ink-3); font-style: normal; font-weight: 400; }
.row-date { color: var(--ink-3); font: 500 12px var(--font-mono); text-align: right; }
.row-menu { width: 34px; height: 34px; padding: 0; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 50%; font-size: 10px; letter-spacing: 1px; transition: border-color .3s; }
.row-menu:hover { border-color: currentColor; }
.row-arrow { font: 400 22px var(--font-mono); opacity: 0; transform: translateX(-12px); transition: opacity .4s, transform .55s var(--ease), color .35s; }
.index-row:hover .row-arrow { opacity: 1; transform: translateX(0); }
.run-list .index-row { grid-template-columns: 56px minmax(0, 1fr) 120px 170px 28px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.dot.succeeded { background: var(--fix); }
.dot.failed, .dot.cancelled { background: var(--bad); }
.dot.running, .dot.queued { background: var(--accent); animation: blink 1.4s ease-in-out infinite; }
.dot.interrupted { background: var(--float); }
.index-row:hover .status { color: var(--paper); border-color: rgba(242, 240, 233, .4); }
.inline-progress { display: inline-flex; align-items: center; gap: 12px; }
.inline-progress .progress-track { width: 90px; }
.inline-progress b { font-size: 20px; font-weight: 600; }

.status { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; color: var(--ink-2); border: 1px solid var(--rule-2); border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.succeeded, .status.ready { color: var(--fix); border-color: rgba(11, 143, 85, .35); }
.status.running, .status.queued, .status.processing { color: var(--accent); border-color: rgba(31, 59, 255, .35); }
.status.running::before, .status.processing::before { animation: blink 1.4s ease-in-out infinite; }
.status.failed, .status.cancelled { color: var(--bad); border-color: rgba(217, 45, 32, .35); }
.status.interrupted, .status.incomplete { color: var(--float); border-color: rgba(201, 129, 0, .4); }
@keyframes blink { 50% { opacity: .25; } }
.q-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.q-pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.q-1 { color: var(--fix); } .q-2 { color: var(--float); } .q-other { color: var(--bad); }
.progress-track { display: block; height: 3px; overflow: hidden; background: var(--rule-2); }
.progress-bar { display: block; height: 100%; background: var(--accent); transition: width .6s var(--ease); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }

.atlas-section { padding-top: 56px; }
.section-head { display: grid; grid-template-columns: 56px auto 1fr; align-items: baseline; gap: 16px; margin-bottom: 22px; padding-top: 14px; border-top: 1px solid var(--ink); }
.section-head > span { color: var(--ink-3); font: 500 12px var(--font-mono); }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 13px; text-align: right; }
.atlas-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.spec { display: grid; }
.prop-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.prop-row > span { color: var(--ink-2); font-size: 13px; }
.prop-row > strong { font-size: 15px; font-weight: 550; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.list-empty { margin: 0; padding: 18px 0; color: var(--ink-3); }
.input-list { display: grid; }
.input-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.file-icon { height: 26px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; font: 600 10px var(--font-mono); letter-spacing: .04em; }
.file-info { min-width: 0; }
.file-info strong { display: block; overflow: hidden; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.file-info small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.ok-mark { color: var(--fix); font-weight: 700; }
.artifact-list { display: grid; }
.artifact-row { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 8px; border-bottom: 1px solid var(--rule); isolation: isolate; }
.artifact-row::before { content: ""; position: absolute; inset: -1px 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.artifact-row:hover::before { transform: scaleY(1); transform-origin: top; }
.artifact-row:hover, .artifact-row:hover small, .artifact-row:hover .file-icon { color: var(--paper); border-color: var(--paper); }
.artifact-row .file-info small { overflow: hidden; font-family: var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.download-mark { font: 500 12px var(--font-mono); }
.download-mark::after { content: " ↓"; }
.check-list { display: grid; }
.warning, .base-quality { position: relative; display: grid; gap: 3px; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--rule); line-height: 1.55; }
.warning::before, .base-quality::before { content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 10px; border-radius: 2px; background: var(--float); }
.base-quality::before { background: var(--ink-3); }
.base-quality.normal::before { background: var(--fix); }
.base-quality strong { font-weight: 600; }
.base-quality span { color: var(--ink-2); font-size: 13px; }
.base-quality.bad::before { background: var(--bad); }
.text-bad { color: var(--bad); }
.abnormal-photos { padding-top: 18px; }
.abnormal-photos h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.abnormal-photos h3 span { color: var(--bad); font: 500 12px var(--font-mono); }
.abnormal-photos .table-wrap { max-height: 320px; margin-top: 8px; }
.input-mode { margin-bottom: 18px; }
.user-chip { max-width: 160px; height: 34px; padding: 0 14px; overflow: hidden; color: var(--ink); background: transparent; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.user-chip:hover { color: var(--paper); background: var(--ink); }
.signed-out .side-nav, .signed-out .top-actions #refreshButton { visibility: hidden; }
.index-list .account-row { grid-template-columns: 56px minmax(0, 1fr) auto auto; cursor: default; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.scan-result { display: grid; gap: 22px; margin-top: 26px; }
.scan-group h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.scan-group h3 span { color: var(--ink-3); font: 500 11px var(--font-mono); }
.scan-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: baseline; gap: 3px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.scan-item > input, .scan-item > .ok-mark { grid-row: 1; }
.scan-item strong { font-weight: 600; overflow-wrap: anywhere; }
.scan-item small, .scan-item .item-warning { grid-column: 2; color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.scan-item .item-warning { color: var(--float); }
.warning.scan-error::before { background: var(--bad); }

.run-hero { padding-bottom: 8px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.figure-label { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font: 500 12px var(--font-mono); letter-spacing: .04em; }
.mega { display: flex; align-items: flex-start; margin: 4px 0 0 -.04em; font-size: clamp(140px, 15vw, 260px); font-weight: 600; letter-spacing: -.07em; line-height: .82; font-variant-numeric: tabular-nums; }
.mega sup { margin: .1em 0 0 .06em; color: var(--accent); font-size: .26em; font-weight: 500; letter-spacing: -.02em; }
.fix-meter { position: relative; height: 10px; margin: 26px 0 14px; background: repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px 10%); border-bottom: 1px solid var(--ink); }
.fix-meter i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--pct); background: var(--fix); transform-origin: left; animation: grow 1.4s var(--ease) both .2s; }
.fix-meter.progress i { background: var(--accent); }
.fix-meter .tick { position: absolute; bottom: -6px; width: 1px; height: 18px; background: var(--ink); }
.fix-meter .tick::after { content: "90"; position: absolute; top: -16px; left: 4px; color: var(--ink-3); font: 500 10px var(--font-mono); }
@keyframes grow { from { transform: scaleX(0); } }
.figure-note { margin: 0; color: var(--ink-2); font-size: 14px; }
.figure-note b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.spec-grid > div { padding: 18px 18px 20px 0; border-bottom: 1px solid var(--rule-2); }
.spec-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.spec-grid dt { color: var(--ink-2); font: 500 11px var(--font-mono); letter-spacing: .04em; }
.spec-grid dd { margin: 10px 0 4px; font-size: 38px; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.spec-grid dd small { margin-left: 3px; color: var(--ink-3); font-size: 15px; letter-spacing: 0; }
.spec-grid > div > small { color: var(--ink-3); font: 500 11px/1.5 var(--font-mono); }
.spec-grid .tone-fix dd { color: var(--fix); } .spec-grid .tone-float dd { color: var(--float); } .spec-grid .tone-bad dd { color: var(--bad); }
.run-hero .spec { border-top: 1px solid var(--ink); }

.map-card { position: relative; height: min(68vh, 680px); overflow: hidden; background: #101112; border-radius: 6px; }
#mapCanvas, #orthoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
#mapCanvas:focus-visible, #orthoCanvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
#mapCanvas.dragging, #orthoCanvas.dragging { cursor: grabbing; }
.map-overlay { position: absolute; z-index: 3; }
.map-frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
  linear-gradient(rgba(242, 240, 233, .55), rgba(242, 240, 233, .55)) 14px 14px / 1px 22px no-repeat, linear-gradient(rgba(242, 240, 233, .55), rgba(242, 240, 233, .55)) 4px 24px / 22px 1px no-repeat,
  linear-gradient(rgba(242, 240, 233, .55), rgba(242, 240, 233, .55)) calc(100% - 14px) calc(100% - 14px) / 1px 22px no-repeat, linear-gradient(rgba(242, 240, 233, .55), rgba(242, 240, 233, .55)) calc(100% - 4px) calc(100% - 24px) / 22px 1px no-repeat,
  repeating-linear-gradient(90deg, rgba(242, 240, 233, .35) 0 1px, transparent 1px 64px) 0 0 / 100% 7px no-repeat,
  repeating-linear-gradient(90deg, rgba(242, 240, 233, .35) 0 1px, transparent 1px 64px) 0 100% / 100% 7px no-repeat,
  repeating-linear-gradient(0deg, rgba(242, 240, 233, .35) 0 1px, transparent 1px 64px) 0 0 / 7px 100% no-repeat,
  repeating-linear-gradient(0deg, rgba(242, 240, 233, .35) 0 1px, transparent 1px 64px) 100% 0 / 7px 100% no-repeat; }
.layer-picker, .map-tools, .map-legend, .point-popup, .measure-panel, .raster-view-status { color: var(--ink); background: var(--paper-3); border: 1px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 rgba(17, 17, 16, .9); }
.layer-picker { top: 30px; left: 34px; }
.layer-picker select { min-width: 240px; height: 38px; padding: 0 30px 0 12px; border: 0; font-size: 13px; font-weight: 600; }
.map-tools { top: 30px; right: 30px; display: grid; overflow: hidden; }
.map-tool { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--ink); background: none; border: 0; font: 400 18px var(--font-mono); transition: background .2s, color .2s; }
.map-tool + .map-tool { border-top: 1px solid var(--rule-2); }
.map-tool:hover { color: var(--paper); background: var(--ink); }
.ruler-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ruler-tool.active { color: var(--paper); background: var(--accent); }
.map-legend { left: 34px; bottom: 30px; display: flex; gap: 18px; padding: 9px 14px; font: 500 12px var(--font-mono); }
.legend-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; }
.checkpoint-dot { background: var(--accent); }
.point-popup { right: 34px; bottom: 30px; width: 290px; padding: 14px 16px; }
.point-popup strong { display: block; margin-bottom: 8px; padding-bottom: 8px; font: 600 14px var(--font-mono); border-bottom: 1px solid var(--ink); }
.point-popup small { display: block; margin-top: 3px; color: var(--ink-2); font: 500 12px var(--font-mono); }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; font-size: 13px; }
.kv > span { color: var(--ink-2); }
.kv > b { font: 500 12.5px var(--font-mono); text-align: right; }
.kv .q-pill { margin-right: 8px; font-family: var(--font-sans); }
.measure-panel { top: 84px; left: 34px; width: min(380px, calc(100% - 90px)); padding: 14px 16px; }
.measure-panel strong { display: block; margin-bottom: 4px; font-weight: 700; }
.measure-panel small { display: block; margin-top: 3px; color: var(--ink-2); font: 500 12px var(--font-mono); }
.measure-values { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ink); }
.measure-values b { color: var(--accent); font: 600 13px var(--font-mono); }

.dock { display: flex; flex-direction: column; height: 460px; border-bottom: 1px solid var(--ink); }
.dock-tabs { display: flex; align-items: center; gap: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-2); }
.dock-tab { position: relative; padding: 6px 0; color: var(--ink-3); background: none; border: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: color .3s; }
.dock-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.dock-tab:hover, .dock-tab.active { color: var(--ink); }
.dock-tab.active::after { transform: scaleX(1); transform-origin: left; }
.dock-tab span { margin-left: 4px; color: var(--accent); font: 500 11px var(--font-mono); vertical-align: super; }
.dock-pane { flex: 1; min-height: 0; overflow: hidden; }
.dock-pane .table-wrap { height: 100%; }
.dock-pane[data-pane="chart"] { padding: 18px 0 8px; }
.chart-canvas { width: 100%; height: 100%; display: block; }
.log-view { margin: 0; padding: 18px 0; overflow: auto; color: var(--ink); background: transparent; font: 12.5px/1.75 var(--font-mono); white-space: pre-wrap; }
.dock-pane .log-view { height: 100%; }
.log-view.console { max-height: 560px; padding: 22px 24px; color: #e8e6df; background: var(--ink); border-radius: 6px; }

.grid-table, table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.grid-table th, table th { position: sticky; top: 0; z-index: 1; height: 40px; padding: 0 12px; color: var(--ink-3); background: var(--paper); border-bottom: 1px solid var(--ink); font: 500 11px var(--font-mono); letter-spacing: .03em; text-align: left; white-space: nowrap; }
.grid-table th:first-child, .grid-table td:first-child { padding-left: 0; }
.grid-table td, table td { height: 44px; padding: 0 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.grid-table td.num, .grid-table td.mono { font: 500 12.5px var(--font-mono); }
.grid-table th.num, .grid-table td.num { text-align: right; }
.grid-table tbody tr, table tbody tr { cursor: pointer; transition: background .2s; }
.grid-table tbody tr:hover, table tbody tr:hover { background: var(--paper-2); }
.grid-table tbody tr.selected, table tbody tr.selected { color: var(--paper); background: var(--ink); }
.grid-table tbody tr.selected .q-pill { color: var(--paper); }
.table-wrap { overflow: auto; }

.empty { max-width: 520px; margin: 80px 0; color: var(--ink-2); }
.empty.compact { margin: 24px 0 8px; }
.empty h2 { margin-bottom: 10px; color: var(--ink); font-size: 30px; font-weight: 650; letter-spacing: -.04em; }
.empty p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; color: var(--bad); border: 1px solid var(--bad); border-radius: 50%; font-size: 22px; font-weight: 700; }

.atlas-form .field { margin-bottom: 24px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label, .form-grid > label > span { color: var(--ink-2); font: 500 11px var(--font-mono); letter-spacing: .04em; }
.atlas-form .field input { height: 56px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.atlas-form .field textarea { font-size: 17px; }
.field input, .field textarea, .field select { width: 100%; }
.field input[type="checkbox"], .field input[type="radio"] { width: 16px; flex: 0 0 auto; margin: 0; }
.field textarea { min-height: 80px; }
.field-hint { color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form-grid .field { margin-bottom: 0; }
.form-grid > label { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.coordinate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.range-grid { align-items: end; }
.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; }
.check-card { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; font: 600 12px var(--font-mono); cursor: pointer; transition: background .3s, color .3s; }
.check-card + .check-card { border-left: 1px solid var(--ink); }
.check-card:has(input:checked) { color: var(--paper); background: var(--ink); }
.check-card input { accent-color: var(--paper); }
.base-coordinate-confirm { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(11, 143, 85, .4); border-left: 4px solid var(--fix); }
.base-coordinate-confirm strong { color: var(--fix); font-weight: 700; }
.base-coordinate-confirm span { font: 500 12.5px var(--font-mono); }
.base-coordinate-confirm small { color: var(--ink-2); font-size: 12px; }
.base-coordinate-confirm.invalid { border-color: rgba(201, 129, 0, .45); border-left-color: var(--float); }
.base-coordinate-confirm.invalid strong { color: var(--float); }
.confirmation-check { display: flex !important; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink) !important; font: 500 14px var(--font-sans) !important; letter-spacing: 0 !important; }
.advanced-toggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 2px; color: var(--accent); cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink); }

.upload-grid { display: grid; border-top: 1px solid var(--rule-2); }
.upload-box { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 84px; padding: 14px 0; border-bottom: 1px solid var(--rule-2); cursor: pointer; isolation: isolate; }
.upload-box::before { content: ""; position: absolute; inset: -1px 0; z-index: -1; background: var(--paper-2); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.upload-box:hover::before { transform: scaleY(1); }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-symbol { height: 30px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 999px; font: 600 11px var(--font-mono); letter-spacing: .04em; }
.upload-box.has-file .upload-symbol { color: var(--paper); background: var(--fix); border-color: var(--fix); }
.upload-copy { min-width: 0; }
.upload-copy strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.upload-name { display: block; margin-top: 2px; overflow: hidden; color: var(--ink-2); font: 500 12px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.upload-box.has-file .upload-name { color: var(--fix); }
.upload-browse { color: var(--ink); font: 600 12px var(--font-mono); }
.upload-browse::after { content: " ＋"; }
.info-note { margin-top: 16px; padding: 14px 16px; color: var(--ink-2); background: var(--paper-2); border-left: 2px solid var(--ink); line-height: 1.55; }
.upload-progress { display: grid; gap: 8px; margin-top: 16px; }
.upload-progress > div:first-child { display: flex; justify-content: space-between; color: var(--ink-2); font: 500 12px var(--font-mono); }
.upload-progress strong { color: var(--accent); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 28px; background: rgba(17, 17, 16, .42); backdrop-filter: blur(3px); animation: fadeIn .3s ease-out; }
.modal { width: min(680px, 94vw); max-height: 88vh; overflow: auto; background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--ink); animation: sheetIn .6s var(--ease); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 18px 28px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.modal-head h2 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.modal-head .subtitle { margin: 6px 0 0; color: var(--ink-2); font: 500 12px var(--font-mono); }
.modal-head .eyebrow { margin-bottom: 6px; color: var(--ink-3); font: 500 11px var(--font-mono); letter-spacing: .04em; }
.modal-head > .modal-close { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--rule-2); border-radius: 50%; font-size: 18px; transition: background .3s, color .3s, transform .5s var(--ease); }
.modal-head > .modal-close:hover { color: var(--paper); background: var(--ink); transform: rotate(90deg); }
.modal-body { padding: 22px 28px 18px; }
.modal-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 22px; background: var(--paper); border-top: 1px solid var(--ink); }
.modal .upload-box { min-height: 72px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px); box-shadow: 0 0 0 var(--ink); } }

.toast-host { position: fixed; z-index: 100; right: var(--gutter); bottom: 28px; display: grid; justify-items: end; gap: 10px; }
.toast { max-width: 440px; padding: 14px 20px; color: var(--paper); background: var(--ink); border-radius: 4px; font-weight: 500; animation: toastIn .6s var(--ease); }
.toast.error { background: var(--bad); }
.toast.success::before { content: "✓ "; color: #6ff0ad; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 28px; padding-top: 28px; border-top: 1px solid var(--ink); }
.project-grid > .empty { grid-column: 1 / -1; margin-top: 20px; }
.project-card.ortho-card { cursor: pointer; }
.ortho-card .project-card-head { position: relative; overflow: hidden; border-radius: 4px; }
.ortho-card .project-card-head .status { position: absolute; top: 12px; left: 12px; background: var(--paper); }
.ortho-card-preview { width: 100%; aspect-ratio: 4 / 3; height: auto; display: block; object-fit: cover; background: var(--paper-2); transition: transform 1.1s var(--ease); }
.ortho-card:hover .ortho-card-preview { transform: scale(1.05); }
.ortho-processing-preview { aspect-ratio: 4 / 3; display: grid; align-content: center; gap: 14px; padding: 0 40px; background: var(--paper-2); }
.ortho-processing-preview > span { font-size: 64px; font-weight: 600; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.ortho-card h2 { margin: 16px 0 4px; overflow: hidden; font-size: 24px; font-weight: 650; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.ortho-card > p { margin: 0 0 10px; overflow: hidden; color: var(--ink-2); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ortho-card .project-meta { display: grid; gap: 2px; padding-top: 10px; color: var(--ink-2); border-top: 1px solid var(--rule-2); font: 500 11.5px var(--font-mono); }
.ortho-card .project-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--ink-3); font: 500 11px var(--font-mono); }
.raster-card-error { margin-top: 8px; color: var(--bad); font-size: 12px; line-height: 1.5; }

.ws { min-height: 100%; }
.ws-center { display: grid; place-items: center; padding: 40px var(--gutter) 64px; }
.dialog-panel { width: min(720px, 100%); background: var(--paper); border: 1px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 var(--ink); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 18px 28px; border-bottom: 1px solid var(--ink); }
.dialog-head h2 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.045em; }
.dialog-body { padding: 0 28px 8px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px 22px; border-top: 1px solid var(--ink); }
.raster-processing-copy h3 { margin: 18px 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.03em; }
.raster-processing-copy p { color: var(--ink-2); line-height: 1.6; }
.progress-readout { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.progress-readout .progress-track { flex: 1; }
.progress-readout strong { font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.panel-toolbar.ws-toolbar { display: flex; align-items: flex-end; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.ws-toolbar .panel-title { margin: 0; font-size: 40px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.ws-toolbar .muted { color: var(--ink-2); }

.raster-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; }
.raster-sidebar { overflow: auto; padding-right: 6px; }
.raster-sidebar section { padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
.raster-sidebar section:first-child { padding-top: 0; }
.raster-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.raster-section-head h3 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.raster-section-head span { color: var(--ink-3); font: 500 11px var(--font-mono); }
.raster-section-head button { padding: 0; color: var(--accent); background: none; border: 0; font: 600 12px var(--font-mono); }
.raster-button-grid, .raster-tool-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; overflow: hidden; border: 1px solid var(--ink); border-radius: 999px; }
.raster-tool-grid { grid-template-columns: repeat(4, 1fr); }
.raster-button-grid button, .raster-tool-grid button { height: 36px; color: var(--ink); background: transparent; border: 0; font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.raster-button-grid button + button, .raster-tool-grid button + button { border-left: 1px solid var(--ink); }
.raster-button-grid button.active, .raster-tool-grid button.active { color: var(--paper); background: var(--ink); }
.raster-button-grid button:disabled { opacity: .3; }
.draft-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.draft-actions button { height: 36px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 600; }
.draft-actions #finishDraft { color: var(--paper); background: var(--ink); }
.probe-info { display: grid; gap: 3px; margin-top: 12px; color: var(--ink-2); font: 500 12px var(--font-mono); }
.probe-info strong { color: var(--ink); font-family: var(--font-sans); font-weight: 600; }
.checkpoint-library-control { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 8px; margin-top: 10px; }
.checkpoint-add-button { width: 36px; height: 36px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 50%; font-size: 18px; line-height: 1; }
.checkpoint-current { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--ink-2); font: 500 12px var(--font-mono); }
.checkpoint-current span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkpoint-current a { flex: 0 0 auto; color: var(--accent); }
.checkpoint-library-hint { margin: 10px 0 0; color: var(--ink-3); font-size: 12px; }
.checkpoint-create-upload > label:first-child { display: block; margin-bottom: 8px; }
.checkpoint-upload-button { display: inline-flex; margin-right: 8px; }
.checkpoint-create-upload > span { color: var(--ink-2); font-size: 12px; }
.checkpoint-create-editor { width: 100%; height: 180px; padding: 12px; border: 1px solid var(--rule-2); font: 12.5px/1.6 var(--font-mono); }
.raster-list { display: grid; margin-top: 10px; }
.raster-list-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.raster-list-row div { min-width: 0; }
.raster-list-row strong, .raster-list-row small { display: block; }
.raster-list-row strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.raster-list-row small { color: var(--ink-2); font: 500 11px var(--font-mono); }
.raster-list-row button { min-width: 28px; height: 26px; padding: 0 8px; color: var(--ink); background: transparent; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 12px; }
.row-actions { display: flex; gap: 6px; }
.comparison-row { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.comparison-row strong { color: var(--accent); font-weight: 700; }
.comparison-row span, .comparison-row small { color: var(--ink-2); font: 500 11px var(--font-mono); }
.raster-empty { margin: 8px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.raster-viewport { position: relative; min-width: 0; overflow: hidden; background: #101112; border-radius: 6px; }
.raster-viewport canvas { position: absolute; inset: 0; display: block; }
#rasterCanvas { z-index: 1; }
#rasterOverlay { z-index: 2; cursor: crosshair; }
.raster-viewport.dragging #rasterOverlay { cursor: grabbing; }
.raster-view-status { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: grid; gap: 3px; max-width: 480px; padding: 10px 14px; pointer-events: none; }
.raster-view-status span { font: 500 12px var(--font-mono); }
.raster-view-status small { color: var(--ink-2); font-size: 12px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.page-head h1 { margin: 0; font-size: 48px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.eyebrow { margin-bottom: 8px; color: var(--ink-3); font: 500 11px var(--font-mono); letter-spacing: .04em; }
.subtitle { margin: 6px 0 0; color: var(--ink-2); }
.result-title-line { min-width: 0; display: flex; align-items: baseline; gap: 14px; }
.result-title-line h1 { margin: 0; font-size: 40px; font-weight: 650; letter-spacing: -.05em; }
.result-title-line span { color: var(--ink-2); }
.result-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 28px; border-top: 1px solid var(--ink); }
.metric { padding: 16px 18px 18px 0; border-bottom: 1px solid var(--rule-2); }
.metric + .metric { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.metric span { color: var(--ink-2); font: 500 11px var(--font-mono); }
.metric strong { display: block; margin-top: 8px; font-size: 34px; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric small { color: var(--ink-3); font: 500 11px var(--font-mono); }
.card { margin-bottom: 28px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0 14px; border-top: 1px solid var(--ink); }
.card-head h2, .card-head h3 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.04em; }
.card-body { padding: 4px 0 0; }
.card .table-wrap { max-height: 400px; }
.ortho-preview-card { position: relative; height: 560px; overflow: hidden; background: #101112; border-radius: 6px; }
.skeleton { color: transparent !important; background: var(--paper-2) !important; }

@supports (animation-timeline: view()) {
  .atlas-section.reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; animation-delay: 0s; }
}

@media (max-width: 1280px) {
  .index-row { grid-template-columns: 44px minmax(0, 1fr) 96px 120px 130px 30px 24px; }
  .index-row .row-date { display: none; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .side-nav { gap: 22px; }
  .brand-tag { display: none; }
}

@media (max-width: 1024px) {
  .masthead { grid-template-columns: auto 1fr auto; gap: 20px; }
  .side-nav { justify-self: center; }
  .date-chip { display: none; }
  .atlas-columns { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .index-row { grid-template-columns: 40px minmax(0, 1fr) 110px 90px 30px; }
  .index-row .row-cell, .index-row .row-arrow { display: none; }
  .run-list .index-row { grid-template-columns: 40px minmax(0, 1fr) 110px 120px; }
  .map-card { height: min(62vh, 620px); }
  .dock { height: 420px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .index-list .account-row { grid-template-columns: 36px minmax(0, 1fr); }
  .index-list .account-row .row-state, .account-actions { grid-column: 2; justify-content: flex-start; }
  .user-chip { max-width: 72px; padding: 0 10px; }
  .brand-word { display: none; }
  .nav-item { white-space: nowrap; }
  .top-actions { gap: 8px; }
  .app-shell { grid-template-rows: 52px minmax(0, 1fr); }
  .masthead { grid-template-columns: auto 1fr auto; gap: 12px; }
  .brand-word { font-size: 15px; }
  .side-nav { gap: 16px; }
  .nav-item { font-size: 14px; }
  .nav-item sup, .gps-clock { display: none; }
  .atlas-page { padding: 16px var(--gutter) 72px; }
  .display { font-size: clamp(40px, 12vw, 60px); }
  .lede { font-size: 16px; }
  .tally { flex-wrap: wrap; row-gap: 14px; }
  .tally div { min-width: 0; padding: 0 18px 0 12px; }
  .tally dd { font-size: 26px; }
  .hero-actions .btn, .hero-actions .button { flex: 1 1 auto; }
  .hero-actions .spacer { display: none; }
  .mega { font-size: clamp(88px, 30vw, 140px); }
  .spec-grid dd { font-size: 28px; }
  .spec-grid > div { padding: 14px 10px 16px 0; }
  .spec-grid > div:nth-child(even) { padding-left: 12px; }
  .atlas-section { padding-top: 40px; }
  .section-head { grid-template-columns: 28px minmax(0, 1fr); row-gap: 4px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { grid-column: 2; text-align: left; }
  .index-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; min-height: 76px; padding: 12px 4px; }
  .index-row .row-state, .index-row .row-date { display: none; }
  .index-row .row-menu { grid-column: 3; }
  .project-row .row-figure { display: none; }
  .run-list .index-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .row-title strong { font-size: 19px; }
  .row-figure { font-size: 26px; }
  .index-row:hover .row-title strong { transform: none; }
  .prop-row { grid-template-columns: minmax(96px, 40%) 1fr; }
  .map-card { height: min(72svh, 560px); border-radius: 4px; }
  .layer-picker { top: 12px; left: 12px; max-width: calc(100% - 80px); }
  .layer-picker select { min-width: 0; width: 100%; max-width: 230px; height: 40px; }
  .map-tools { top: 12px; right: 12px; }
  .map-tool { width: 44px; height: 44px; }
  .map-legend { left: 12px; bottom: 12px; gap: 12px; padding: 7px 10px; font-size: 11px; }
  .point-popup { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .measure-panel { top: 64px; left: 12px; width: calc(100% - 80px); }
  .dock { height: 380px; }
  .dock-tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .dock-tab { flex: none; font-size: 14px; }
  .filter-bar { flex-wrap: wrap; gap: 6px 16px; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .form-grid, .coordinate-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, 1fr); border-radius: 20px; }
  .upload-box { grid-template-columns: 48px minmax(0, 1fr); }
  .upload-box > :last-child { grid-column: 1 / -1; }
  .modal-backdrop { padding: 12px; align-items: end; }
  .modal { width: 100%; max-height: 92dvh; }
  .modal-body { padding: 18px 18px 14px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > * { flex: 1 1 auto; }
  .project-grid { grid-template-columns: 1fr; gap: 28px; }
  .ortho-preview-card { height: 60svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
