/* =========================================================
   Fusion AI — 웹 데모 (AI CAM)  ·  앱 전용 스타일
   styles.css 의 토큰/버튼을 그대로 사용 (demo.html에서 먼저 link)
   ========================================================= */

:root {
  --vp-bg: #0C0C0E;
  --vp-grid: rgba(255,255,255,0.05);
  --panel: #FFFFFF;
  --panel-2: #F5F6F7;
  --app-line: rgba(10,10,10,0.10);
  --app-top-h: 60px;
}

html, body { height: 100%; }
body.demo {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--vp-bg);
  overflow: hidden; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased;
}
.demo * { box-sizing: border-box; }
.demo h1,.demo h2,.demo h3,.demo p { margin: 0; }
.demo button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }

/* ---------- top bar ---------- */
.app-top {
  height: var(--app-top-h); display: flex; align-items: center; gap: 20px;
  padding: 0 22px; background: #0A0A0A; border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 30;
}
.app-top .brand { display: flex; align-items: center; gap: 14px; }
.app-top .brand img { height: 22px; }
.app-top .tagpill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 4px 9px; border-radius: 2px;
}
.app-top .crumbs { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.4); font-size: 13px; font-family: var(--mono); }
.app-top .crumbs b { color: rgba(255,255,255,0.85); font-weight: 500; }
.app-top .top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-top .t-link { color: rgba(255,255,255,0.6); font-size: 13.5px; font-weight: 500; padding: 8px 10px; transition: color .2s; text-decoration: none; white-space: nowrap; }
.app-top .t-link:hover { color: #fff; }
.btn-support {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; white-space: nowrap; text-decoration: none;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px; font-size: 13.5px; font-weight: 600; transition: border-color .2s, background .2s;
}
.btn-support:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.btn-support .dotg { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,0.18); }

/* ---------- layout ---------- */
.app-body { display: grid; grid-template-columns: 1fr 384px; height: calc(100vh - var(--app-top-h)); }

/* ---------- viewport ---------- */
.viewport { position: relative; background:
    radial-gradient(120% 120% at 50% 8%, #16161A 0%, #0C0C0E 60%);
  overflow: hidden; }
.vp-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--vp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--vp-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(95% 85% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(95% 85% at 50% 45%, #000 55%, transparent 100%);
}
.vp-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.vp-stage svg { width: 100%; height: 100%; }

/* viewport HUD */
.vp-hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); }
.vp-axis { position: absolute; left: 22px; bottom: 20px; width: 64px; height: 64px; }
.vp-cube { position: absolute; right: 22px; top: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.vp-cube .vc { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.5);
  display: grid; place-items: center; font-size: 10px; letter-spacing: 0.06em; background: rgba(255,255,255,0.03); border-radius: 2px; pointer-events: auto; cursor: pointer; }
.vp-cube .vc.on { border-color: var(--accent); color: var(--accent); }
.vp-readout { position: absolute; left: 22px; top: 18px; font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); line-height: 1.7; }
.vp-readout .k { color: rgba(255,255,255,0.32); }
.vp-readout .ac { color: var(--accent); }
.vp-scalebar { position: absolute; right: 22px; bottom: 20px; font-size: 11px; color: rgba(255,255,255,0.45); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.vp-scalebar .bar { width: 80px; height: 1px; background: rgba(255,255,255,0.35); position: relative; }
.vp-scalebar .bar::before, .vp-scalebar .bar::after { content:""; position: absolute; top: -3px; width: 1px; height: 7px; background: rgba(255,255,255,0.35); }
.vp-scalebar .bar::before { left: 0; } .vp-scalebar .bar::after { right: 0; }

/* upload dropzone (empty state) */
.dropzone {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; padding: 24px;
}
.dz-card {
  width: min(560px, 92%); border: 1.5px dashed rgba(255,255,255,0.22); border-radius: 8px;
  background: rgba(255,255,255,0.02); padding: 48px 40px; text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.dropzone.drag .dz-card { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); transform: scale(1.01); }
.dz-ico { width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; color: var(--accent); }
.dz-ico svg { width: 26px; height: 26px; }
.dz-title { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.dz-sub { color: rgba(255,255,255,0.5); font-size: 14.5px; margin-top: 10px; line-height: 1.55; }
.dz-formats { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); }
.dz-or { margin: 24px 0 16px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.3); font-size: 12px; }
.dz-or::before, .dz-or::after { content:""; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.dz-samples { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sample-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 2px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.78);
  font-size: 13px; font-weight: 500; transition: border-color .2s, color .2s, background .2s;
}
.sample-chip:hover { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.sample-chip .sw { width: 9px; height: 9px; border-radius: 1px; }

/* computing overlay bottom log */
.compute-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  background: linear-gradient(180deg, transparent, rgba(8,8,9,0.9) 40%);
  padding: 40px 24px 20px;
}
.cb-inner { max-width: 760px; margin: 0 auto; }
.cb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cb-stage { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.cb-spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cb-pct { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.cb-track { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.cb-fill { height: 100%; background: var(--accent); width: 0; transition: width .25s var(--ease); }
.cb-log { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,0.5); height: 54px; overflow: hidden; }
.cb-log .ln { opacity: 0; animation: logln .3s var(--ease) forwards; }
.cb-log .ln .ok { color: #34D399; }
.cb-log .ln .ac { color: var(--accent); }
@keyframes logln { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none; } }

/* ---------- right panel ---------- */
.panel { background: var(--panel); border-left: 1px solid var(--app-line); display: flex; flex-direction: column; min-height: 0; }
.panel-scroll { flex: 1; overflow-y: auto; }
.panel-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; color: var(--muted); }
.panel-empty .pe-ico { width: 48px; height: 48px; color: var(--muted-2); margin-bottom: 18px; }
.panel-empty .pe-t { font-weight: 700; color: var(--ink); font-size: 17px; white-space: nowrap; }
.panel-empty .pe-s { font-size: 14px; margin-top: 8px; line-height: 1.55; max-width: 240px; }

/* part info block (ready state) */
.p-sec { padding: 22px 22px; border-bottom: 1px solid var(--app-line); }
.p-sec-t { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.p-file { display: flex; align-items: center; gap: 12px; }
.p-file .pf-ico { width: 38px; height: 38px; border-radius: 4px; background: var(--panel-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.p-file .pf-name { font-weight: 600; font-size: 15px; }
.p-file .pf-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.specrows { display: flex; flex-direction: column; gap: 0; }
.specrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.specrow:last-child { border-bottom: none; }
.specrow .k { color: var(--muted); white-space: nowrap; }
.specrow .v { font-weight: 600; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

/* setup selects */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; height: 38px; border: 1px solid var(--app-line); background: #fff; border-radius: 2px; font-size: 13px; font-weight: 500; color: var(--ink-500); transition: all .18s var(--ease); }
.seg button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.selectbox { width: 100%; height: 40px; border: 1px solid var(--app-line); border-radius: 2px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }

/* CTA in panel */
.panel-foot { padding: 16px 22px; border-top: 1px solid var(--app-line); background: var(--panel); }
.btn-run { width: 100%; height: 52px; border: none; border-radius: 2px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .2s, transform .2s; }
.btn-run:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-run:disabled { background: var(--paper-3); color: var(--muted-2); cursor: not-allowed; transform: none; filter: none; }
.btn-sec2 { width: 100%; height: 44px; margin-top: 9px; border: 1px solid var(--app-line); background: #fff; color: var(--ink); border-radius: 2px; font-size: 14px; font-weight: 600; }
.btn-sec2:hover { border-color: var(--ink); }

/* result summary */
.res-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: 4px; overflow: hidden; }
.res-cell { background: #fff; padding: 16px 16px; }
.res-cell.big { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.res-cell .rc-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.res-cell.big .rc-k { color: rgba(255,255,255,0.5); }
.res-cell .rc-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.res-cell.big .rc-v { font-size: 34px; }
.res-cell .rc-v .u { color: var(--accent); font-size: 0.6em; }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 0 22px; border-bottom: 1px solid var(--app-line); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.tabs button { height: 46px; padding: 0 4px; margin-right: 18px; background: none; border: none; border-bottom: 2px solid transparent; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color .18s, border-color .18s; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }

/* operation list */
.oplist { display: flex; flex-direction: column; }
.op {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s;
}
.op:hover { background: var(--panel-2); }
.op.on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.op .op-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: var(--panel-2); color: var(--ink-500); }
.op.on .op-n { background: var(--accent); color: #fff; }
.op .op-name { font-weight: 600; font-size: 14.5px; }
.op .op-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; }
.op .op-sub .sw { display:inline-flex; align-items:center; gap:5px; }
.op .op-sub .dot { width: 8px; height: 8px; border-radius: 1px; }
.op .op-time { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; }
.op .op-time small { display: block; font-weight: 400; color: var(--muted-2); font-size: 11px; }

/* tool list */
.toollist { padding: 8px 0; }
.tool { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 13px 22px; border-bottom: 1px solid var(--line-2); }
.tool:last-child { border-bottom: none; }
.tool .tl-ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--panel-2); border-radius: 4px; }
.tool .tl-id { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.tool .tl-name { font-weight: 600; font-size: 14.5px; margin-top: 1px; }
.tool .tl-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.tool .tl-sf { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink-500); line-height: 1.5; }
.tool .tl-sf .k { color: var(--muted-2); }

/* cutting condition rows */
.condlist { padding: 4px 0; }
.cond { padding: 14px 22px; border-bottom: 1px solid var(--line-2); }
.cond-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cond-h .cn { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cond-h .ct { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.cond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.cond-grid .cg { background: var(--panel-2); border-radius: 3px; padding: 8px 9px; }
.cond-grid .cg .cgk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted-2); text-transform: uppercase; }
.cond-grid .cg .cgv { font-family: var(--mono); font-size: 13px; font-weight: 600; margin-top: 3px; }

.note-demo { padding: 14px 22px; font-size: 12px; color: var(--muted-2); line-height: 1.5; background: var(--panel-2); border-top: 1px solid var(--app-line); }

/* result export footer */
.res-foot { padding: 14px 22px; border-top: 1px solid var(--app-line); display: flex; gap: 10px; }
.res-foot .btn-x { flex: 1; height: 44px; border-radius: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.res-foot .x-primary { background: var(--ink); color: #fff; border: none; }
.res-foot .x-ghost { background: #fff; color: var(--ink); border: 1px solid var(--app-line); }
.res-foot .x-ghost:hover { border-color: var(--ink); }

/* ---------- modal (support / video) ---------- */
.dlg-wrap { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; }
.dlg-wrap.open { display: grid; }
.dlg-bd { position: absolute; inset: 0; background: rgba(6,6,8,0.7); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.dlg { position: relative; z-index: 2; width: min(520px, 100%); background: #fff; border-radius: 8px; overflow: hidden; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dlg-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--app-line); }
.dlg-head .dh-eye { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.dlg-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-top: 10px; }
.dlg-head p { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.dlg-body { padding: 22px 26px; }
.dlg-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--panel-2); color: var(--muted); display: grid; place-items: center; font-size: 15px; }
.dlg-x:hover { background: var(--paper-3); color: var(--ink); }

.steps-rd { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.step-rd { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.step-rd:last-child { border-bottom: none; }
.step-rd .sn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--app-line); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.step-rd .st { font-weight: 600; font-size: 14.5px; }
.step-rd .sd { color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.code-box { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--app-line); border-radius: 4px; padding: 12px 14px; margin-bottom: 18px; }
.code-box .cb-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.code-box .cb-v { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; flex: 1; }
.code-box .cb-copy { border: 1px solid var(--app-line); background: #fff; border-radius: 2px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
.code-box .cb-copy:hover { border-color: var(--ink); }
.btn-crd { width: 100%; height: 50px; border: none; border-radius: 2px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-crd:hover { filter: brightness(1.06); }
.dlg-contact { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.dlg-contact a { color: var(--ink); font-weight: 600; }

/* video dialog */
.dlg.video { width: min(900px, 100%); aspect-ratio: 16/9; background: #000; display: grid; place-items: center; }
.dlg.video .ph { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.7; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 4px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .tk { color: #34D399; }

/* toolpath svg classes */
.cam-edge { stroke: rgba(255,255,255,0.5); stroke-width: 1; fill: none; }
.cam-top { stroke: rgba(255,255,255,0.42); stroke-width: 1; }
.cam-hole { fill: #08080A; stroke: rgba(255,255,255,0.3); stroke-width: 1; }
.cam-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 60%, transparent)); }
.cam-path.rapid { stroke: rgba(255,255,255,0.35); stroke-width: 1; stroke-dasharray: 4 4; filter: none; }
.cam-tool { fill: var(--accent); }
.cam-tool-axis { stroke: var(--accent); stroke-width: 1.5; opacity: 0.6; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  body.demo { overflow: auto; }
  .app-body { grid-template-columns: 1fr; height: auto; }
  .viewport { height: 56vh; min-height: 360px; }
  .panel { border-left: none; border-top: 1px solid var(--app-line); height: auto; }
  .panel-scroll { overflow: visible; }
  .app-top .crumbs { display: none; }
}
@media (max-width: 560px) {
  .app-top .brand .tagpill { display: none; }
  .app-top .t-link { display: none; }
  .res-summary { grid-template-columns: 1fr; }
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   LIGHT THEME (밝은 배경 버전) — data-theme="light"
   패널(우측)은 라이트/다크 공통(흰색). 상단바·뷰포트만 전환.
   ========================================================= */
body.demo[data-theme="light"] { background: #EDEFF2; }
[data-theme="light"] .app-top { background: #fff; border-bottom-color: var(--app-line); }
[data-theme="light"] .app-top .tagpill { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
[data-theme="light"] .app-top .crumbs { color: var(--muted-2); }
[data-theme="light"] .app-top .crumbs b { color: var(--ink); }
[data-theme="light"] .app-top .t-link { color: var(--muted); }
[data-theme="light"] .app-top .t-link:hover { color: var(--ink); }
[data-theme="light"] .btn-support { color: var(--ink); border-color: var(--app-line); }
[data-theme="light"] .btn-support:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

[data-theme="light"] .viewport { background: radial-gradient(120% 120% at 50% 6%, #FCFCFD 0%, #E9EBEF 62%); }
[data-theme="light"] .vp-grid {
  background-image: linear-gradient(rgba(10,10,10,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10,10,10,0.05) 1px, transparent 1px);
}
[data-theme="light"] .vp-readout { color: var(--muted); }
[data-theme="light"] .vp-readout .k { color: var(--muted-2); }
[data-theme="light"] .vp-cube .vc { border-color: var(--app-line); color: var(--muted); background: rgba(255,255,255,0.7); }
[data-theme="light"] .vp-cube .vc.on { border-color: var(--accent); color: var(--accent); background: #fff; }
[data-theme="light"] .vp-scalebar { color: var(--muted); }
[data-theme="light"] .vp-scalebar .bar { background: var(--muted-2); }
[data-theme="light"] .vp-scalebar .bar::before, [data-theme="light"] .vp-scalebar .bar::after { background: var(--muted-2); }

[data-theme="light"] .dz-card { border-color: rgba(10,10,10,0.18); background: rgba(10,10,10,0.015); }
[data-theme="light"] .dropzone.drag .dz-card { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
[data-theme="light"] .dz-ico { border-color: var(--app-line); }
[data-theme="light"] .dz-title { color: var(--ink); }
[data-theme="light"] .dz-sub { color: var(--muted); }
[data-theme="light"] .dz-formats { color: var(--muted-2); }
[data-theme="light"] .dz-or { color: var(--muted-2); }
[data-theme="light"] .dz-or::before, [data-theme="light"] .dz-or::after { background: var(--app-line); }
[data-theme="light"] .sample-chip { border-color: var(--app-line); background: #fff; color: var(--ink-500); }
[data-theme="light"] .sample-chip:hover { border-color: var(--accent); color: var(--ink); background: color-mix(in srgb, var(--accent) 9%, transparent); }

[data-theme="light"] .compute-bar { background: linear-gradient(180deg, rgba(233,235,239,0), rgba(233,235,239,0.96) 42%); }
[data-theme="light"] .cb-stage { color: var(--ink); }
[data-theme="light"] .cb-spin { border-color: rgba(10,10,10,0.18); border-top-color: var(--accent); }
[data-theme="light"] .cb-track { background: rgba(10,10,10,0.10); }
[data-theme="light"] .cb-log { color: var(--muted); }
[data-theme="light"] .cb-log .ln .ok { color: #15803D; }

[data-theme="light"] .cam-path.rapid { stroke: rgba(10,10,10,0.40); }
