/* 黑紫配色 3D 深度檢測研究網站 */
:root {
  --bg: #07111f;
  --bg-soft: #0d1c2d;
  --panel: #11263d;
  --line: #29435b;
  --text: #eff7ff;
  --muted: #a6bed3;
  --violet: #4cc9ff;
  --lilac: #87ddff;
  --defect: #ff5c93;
  --radius: 14px;
  --wrap: 1180px;
  --font-latin: "Schibsted Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[lang="zh-Hant"] body { font-family: var(--font-latin), "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html[lang="ja"] body { font-family: var(--font-latin), "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
html[lang="en"] body { font-family: var(--font-latin), "Noto Sans TC", sans-serif; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--lilac); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- 標題層級 ---------- */
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: 0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; margin-top: 20px; }
.prose { max-width: 42em; }
.prose + .prose { margin-top: 1em; }
.note { color: var(--muted); font-size: 0.95rem; max-width: 46em; margin-top: 28px; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 13, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 12px; color: var(--muted); text-decoration: none; border-radius: var(--radius); font-size: 0.97rem; }
.nav-list a:hover { color: #fff; }
.nav-list a.is-current { color: #fff; box-shadow: inset 0 -2px 0 var(--violet); border-radius: 0; }
.nav-list a.nav-cta { background: var(--violet); color: #042035; font-weight: 700; margin-left: 8px; }
.nav-list a.nav-cta:hover { background: var(--lilac); color: #042035; }
.nav-list a.nav-cta.is-current { box-shadow: none; border-radius: var(--radius); }
.nav-toggle { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 0.9rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang[open] summary { color: #fff; border-color: var(--violet); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px; margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.lang li a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; border-radius: 4px; font-size: 0.95rem; }
.lang li a:hover { background: var(--line); }
.lang li a[aria-current="true"] { color: var(--lilac); font-weight: 700; }

/* ---------- 首頁主視覺 ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 14em; }
.hero .lead { margin-top: 24px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.scan-fig { margin: 0; }
.scan-fig canvas { width: 100%; height: auto; aspect-ratio: 3 / 2; background: #07192a; border: 1px solid var(--line); border-radius: var(--radius); }
.scan-fig figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 12px; line-height: 1.6; }

.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 700; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.4; }
.btn-primary { background: var(--violet); color: #042035; }
.btn-primary:hover { background: var(--lilac); color: #042035; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--violet); color: #fff; }

/* ---------- 內容區塊 ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.block { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.block.tint { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); }
.split > h2 { position: sticky; top: 88px; align-self: start; }
.inline-h { margin-bottom: 28px; }
.text-link { display: inline-block; margin-top: 24px; font-weight: 700; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 20px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows h3 { margin-bottom: 6px; color: #fff; }
.rows p { color: var(--muted); max-width: 40em; }
.prose + .rows { margin-top: 24px; }

.plain { margin: 16px 0 0; padding-left: 1.2em; max-width: 42em; }
.plain li { margin-top: 8px; padding-left: 4px; }
.plain li::marker { color: var(--violet); }

/* 兩個月計畫：真的是順序，所以用依序排列 */
.steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: stage; }
.steps li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.when { color: var(--lilac); font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--violet); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 42em; }

.cta { padding: clamp(48px, 7vw, 88px) 0; background: linear-gradient(180deg, var(--bg) 0%, #102d49 100%); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.cta p { color: var(--muted); margin: 14px 0 28px; max-width: 36em; }

/* ---------- 研究頁流程圖 ---------- */
.pipe-scroll { overflow-x: auto; padding-bottom: 8px; }
.pipe { width: 100%; min-width: 760px; height: auto; }
.pipe .node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.pipe .node text { fill: var(--text); font-size: 17px; font-weight: 700; }
.pipe .node.is-end rect { stroke: var(--violet); }
.pipe .arrow { fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 專案 ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.proj { display: flex; flex-direction: column; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proj-art { background: #07192a; color: var(--violet); border-bottom: 1px solid var(--line); }
.thumb { width: 100%; height: auto; }
.proj-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.proj-body p:not(.status) { color: var(--muted); }
.status { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--line); }
.status.s-progress { color: var(--lilac); }
.status.s-progress::before { background: var(--violet); }
.status.s-done::before { background: #6be3a2; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 0; padding: 0; }
.tags li { border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; font-size: 0.85rem; color: var(--muted); }

/* ---------- 計畫表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.plan { width: 100%; border-collapse: collapse; min-width: 640px; }
.plan th, .plan td { text-align: left; padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--line); }
.plan thead th { background: var(--panel); border-top: 0; font-size: 0.95rem; color: var(--lilac); }
.plan tbody th { white-space: nowrap; color: #fff; }
.plan td:last-child { color: var(--text); }
.plan td:nth-child(2) { color: var(--muted); }

/* ---------- 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); }
.mail-form { display: grid; gap: 18px; max-width: 34rem; }
.mail-form label { display: grid; gap: 6px; font-weight: 700; }
.mail-form input, .mail-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.mail-form input:focus, .mail-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.mail-form .btn { justify-self: start; }
.mail-form .note { margin-top: 0; }
.info { list-style: none; margin: 0; padding: 0; }
.info li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.info li:first-child { border-top: 0; padding-top: 0; }
.info span { color: var(--muted); font-size: 0.9rem; }
.info a { overflow-wrap: anywhere; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 48px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { font-weight: 700; font-size: 1.125rem; }
.foot-note { color: var(--muted); max-width: 28em; margin-top: 8px; font-size: 0.95rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-copy { padding: 28px 0 36px; color: var(--muted); font-size: 0.875rem; }

/* ---------- 手機版 ---------- */
@media (max-width: 880px) {
  .hero-grid, .split, .contact-grid, .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .split > h2 { position: static; }
  .nav-toggle { display: inline-block; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font: inherit; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 12px 8px; }
  .nav-list a.is-current { box-shadow: inset 3px 0 0 var(--violet); padding-left: 14px; }
  .nav-list a.nav-cta { margin: 8px 0 0; text-align: center; }
  .lang ul { position: static; margin-top: 6px; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ===== Portfolio redesign v1: original content & i18n preserved ===== */
:root { --glow: rgba(76,201,255,.23); --shadow: 0 24px 70px rgba(0,0,0,.25); }
body { background: radial-gradient(ellipse 80% 42% at 85% -5%, rgba(20,103,159,.20), transparent 75%), var(--bg); }
.site-header { background: rgba(7,17,31,.86); border-bottom: 1px solid rgba(135,221,255,.11); }
.bar { min-height: 78px; }
.brand { letter-spacing: .035em; font-size: 1.02rem; }
.brand img { width: 35px; height: 35px; filter: drop-shadow(0 0 12px rgba(76,201,255,.2)); }
.nav-list a { transition: color .2s, background .2s; }
.nav-list a:hover { background: rgba(135,221,255,.085); }
.nav-list a.nav-cta { box-shadow: 0 5px 24px rgba(76,201,255,.13); }
.hero { position: relative; overflow: hidden; min-height: min(82vh,820px); display: grid; align-items: center; padding-block: clamp(76px, 9vw, 130px); }
.hero::before { content: ''; position: absolute; width: 58vw; height: 58vw; border-radius: 50%; right: -25vw; top: -24vw; background: radial-gradient(circle, rgba(44,156,230,.17), transparent 68%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; gap: clamp(26px, 6vw, 88px); grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.hero-kicker { display: flex; gap: 8px; align-items: center; color: var(--violet); font-size: .78rem; letter-spacing: .2em; font-weight: 700; margin-bottom: 22px; text-transform: uppercase; }
.hero-kicker::before { content: ''; display: inline-block; width: 27px; height: 2px; background: currentColor; }
.hero-kicker span { color: var(--muted); }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 4.6rem); line-height: 1.16; letter-spacing: -.035em; max-width: 15em; text-wrap: balance; }
.hero .lead { max-width: 35em; line-height: 1.9; }
.btn { border-radius: 10px; transition: transform .22s, background .22s, border .22s, box-shadow .22s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { box-shadow: 0 9px 32px rgba(76,201,255,.14); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(76,201,255,.28); }
.btn-ghost { border-color: #426179; }
.scan-fig { position: relative; padding: 12px; border: 1px solid rgba(135,221,255,.18); border-radius: 22px; background: linear-gradient(145deg, rgba(31,68,104,.35), rgba(5,17,31,.7)); box-shadow: var(--shadow), 0 0 80px rgba(49,142,216,.08); }
.scan-fig::before { content: 'LIVE SCAN  /  3D SURFACE PROFILE'; position: absolute; left: 24px; top: 24px; z-index: 2; font-size: .6rem; color: #a8edff; letter-spacing: .16em; opacity: .85; }
.scan-fig canvas { border: 0; border-radius: 13px; background: #071522; }
.scan-fig figcaption { padding-inline: 6px; }
.block { padding-block: clamp(68px, 8vw, 116px); }
.block.tint { background: linear-gradient(180deg, rgba(15,37,57,.86), rgba(11,27,45,.76)); }
.split { gap: clamp(26px, 5vw, 76px); }
.split > h2 { font-size: clamp(1.65rem, 2.6vw, 2.45rem); max-width: 10em; letter-spacing: -.025em; }
.split > h2::before { content: ' / '; color: var(--violet); font-size: .9em; }
.rows { display: grid; gap: 14px; }
.rows li { background: linear-gradient(145deg, rgba(20,45,71,.79), rgba(9,27,46,.77)); padding: 25px 27px !important; border: 1px solid rgba(125,207,251,.14) !important; border-radius: 16px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.rows li:hover { transform: translateY(-4px); border-color: rgba(76,201,255,.52) !important; box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.rows h3 { color: #f8fcff; }
.steps { border-left: 1px solid #2b739d; margin-left: 8px; }
.steps li { position: relative; margin-left: 24px; padding: 20px 0; }
.steps li::before { content: ''; position: absolute; left: -30px; top: 29px; width: 11px; height: 11px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px rgba(76,201,255,.09); }
.proj-grid { gap: 24px; }
.proj { border-radius: 18px; background: linear-gradient(155deg, #122940, #0a192a); transition: transform .26s, box-shadow .26s, border-color .26s; }
.proj:hover { transform: translateY(-6px); box-shadow: 0 28px 65px rgba(0,0,0,.26); border-color: rgba(76,201,255,.65); }
.proj-art { background: radial-gradient(circle at 70% 30%, #153b57, #081a2b 70%); }
.proj-art .thumb { transition: transform .4s, opacity .4s; }
.proj:hover .thumb { transform: scale(1.035); }
.proj-body { padding: 28px; }
.tags li { background: rgba(75,169,223,.06); }
.page-head { background: radial-gradient(ellipse at 80% 0%, rgba(44,139,207,.16), transparent 68%); padding-block: clamp(84px, 10vw, 140px); }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -.035em; }
.faq details { background: rgba(18,42,65,.48); border: 1px solid rgba(125,207,251,.13) !important; border-radius: 12px; margin-bottom: 10px; padding-inline: 20px; }
.cta { background: radial-gradient(ellipse at center, rgba(23,95,147,.34), transparent 67%), linear-gradient(180deg, #0b1d30, #07111f); text-align: center; }
.cta p { margin-inline: auto; }
.table-wrap { border-radius: 16px; }
.site-footer { padding-top: 70px; background: #06111e; }
.foot-overline { color: var(--violet); font-size: .7rem; font-weight: 700; letter-spacing: .18em; margin-bottom: 12px; }
.foot-copy { border-top: 1px solid var(--line); margin-top: 30px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.18,.7,.24,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 880px) { .hero { min-height: auto; } .hero-grid { grid-template-columns: minmax(0,1fr); } .hero h1 { font-size: clamp(2.25rem, 8vw, 4rem); } .hero-kicker { font-size: .66rem; } .split > h2 { max-width: none; } .rows { gap: 12px; } .bar { min-height: 66px; } }
@media (max-width: 480px) { .wrap { width: min(100% - 32px, var(--wrap)); } .hero { padding-block: 52px 60px; } .hero-kicker span { letter-spacing: .05em; } .scan-fig { padding: 8px; } .scan-fig::before { top: 16px; left: 16px; font-size: .48rem; } .rows li { padding: 20px !important; } .btns .btn { flex: 1; text-align: center; padding-inline: 10px; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .proj, .rows li, .btn { transition: none; } }


/* v2: slim header, dropdown menus, light/dark themes, research log */
.site-header { position: sticky; top: 0; z-index: 60; }
.bar { display:flex; align-items:center; gap:20px; }
.top-links { margin-left:auto; display:flex; gap:20px; align-items:center; }
.top-links a { text-decoration:none; color:var(--text); font-weight:600; }
.site-controls { display:flex; align-items:center; gap:10px; }
.theme-toggle, .site-menu>summary, .lang>summary { color:var(--text); background:var(--bg-soft); border:1px solid var(--line); border-radius:10px; padding:10px 12px; cursor:pointer; font:inherit; }
.site-menu,.lang {position:relative;}
.site-menu>summary, .lang>summary {list-style:none; white-space:nowrap;}
.site-menu>summary::-webkit-details-marker, .lang>summary::-webkit-details-marker { display:none; }
.site-menu nav, .site-controls .lang ul { position:absolute; right:0; top:calc(100% + 10px); width:min(310px,86vw); z-index:90; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--bg-soft); box-shadow:0 22px 70px rgba(0,0,0,.28); }
.site-menu .nav-list {display:grid; gap:4px; list-style:none; margin:0; padding:0;}
.site-menu .nav-list li a {display:block; padding:12px; text-decoration:none; border-radius:8px; color:var(--text);}
.site-menu .nav-list li a:hover,.site-menu .nav-list li a.is-current {background:rgba(70,165,210,.14);color:var(--text);}
.site-controls .lang ul {width:160px; margin:0; list-style:none;}
.nav-toggle {display:none!important}
.record-layout {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);gap:40px;align-items:start;}
.record-layout h2 {margin-bottom:20px;}
.record-list {display:grid;gap:14px;}
.record-card {border:1px solid var(--line);border-radius:16px;padding:22px;background:var(--bg-soft);}
.record-card h3 {margin:8px 0;}
.record-card p {margin:8px 0;white-space:pre-wrap;}
.record-meta {color:var(--muted);font-size:.87rem;}
.record-editor {border:1px solid var(--line);border-radius:16px;background:var(--bg-soft);}
.record-editor>summary {cursor:pointer;padding:20px;font-weight:700;}
.editor-inner {padding:0 20px 22px;}
.editor-warning {border-left:3px solid var(--violet); padding:12px 14px;background:rgba(91,170,220,.09);font-size:.9rem;}
#record-form {display:grid;gap:14px;margin:20px 0;}
#record-form label {display:grid;gap:5px;}
#record-form input,#record-form textarea,#record-form select {width:100%;padding:12px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;}
.editor-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;}
.import-button {display:inline-flex;align-items:center;cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:10px 16px;}
.import-button input {display:none;}
.record-delete {background:transparent;border:1px solid var(--line);color:var(--muted);padding:6px 12px;border-radius:8px;cursor:pointer;}
:root[data-theme="light"] {--bg:#f5f8fc; --bg-soft:#ffffff; --text:#12273b; --muted:#526a7a; --line:#d8e3ec; --violet:#087eaf; --glow:rgba(21,141,192,.1);color-scheme:light;}
:root[data-theme="light"] body {background:var(--bg);color:var(--text);}
:root[data-theme="light"] .site-header {background:rgba(255,255,255,.94);border-color:var(--line);}
:root[data-theme="light"] .block.tint,:root[data-theme="light"] .cta {background:#eaf2f8;}
:root[data-theme="light"] .site-footer {background:#e8f1f7;}
:root[data-theme="light"] .rows li,:root[data-theme="light"] .proj,:root[data-theme="light"] .faq details {background:#fff;color:var(--text);border-color:var(--line)!important;}
:root[data-theme="light"] .rows h3 {color:var(--text);}
:root[data-theme="light"] .hero h1,:root[data-theme="light"] .page-head h1,:root[data-theme="light"] h2,:root[data-theme="light"] h3 {color:var(--text);}
:root[data-theme="light"] .foot-links a:hover {color:var(--text);}
:root[data-theme="light"] .page-head {background:linear-gradient(135deg,#edf7fd,#f6f9ff);}
:root[data-theme="light"] .scan-fig {background:#0b1b30;}
@media(max-width:880px){.top-links{margin-left:auto}.site-nav{display:none!important}.site-menu nav {left:auto;right:0;}.record-layout {grid-template-columns:1fr;}.bar{gap:8px;}.brand{margin-right:auto;}.top-links{display:none;}.site-controls{gap:5px}.theme-toggle,.site-menu>summary,.lang>summary{font-size:.82rem;padding:8px;}}
