/* Tochi shell styling. OWNER: shell (lead). Modules add their own scoped styles with AH.css(id, text)
   using class prefix ah-<module>-; they never edit this file. Own palette (pine and clay on warm paper); not any portal's. */
:root {
  --paper:#FBF8F3; --surface:#FFFFFF; --surface-2:#F2ECE1; --ink:#1D2421; --ink-2:#46504B;
  --line:#8C8577; --rule:#D9D2C5; --pine:#1B5546; --on-pine:#FFFFFF; --pine-tint:#DCEBE4;
  --clay:#9A3F17; --ok-bg:#E4F2E8; --ok:#17592F; --warn-bg:#FFF1CC; --warn:#6B4500; --stop-bg:#FBE6E2; --stop:#8E2418;
  --sample-bg:#FFE9A8; --sample:#5A3A00; --infer-bg:#E7E4F7; --infer:#3B2E7A; --focus:#1D2421;
  --shadow:0 6px 24px rgba(20,30,25,.18); --radius:12px; --gutter:16px; --tap:44px;
  --font-body:system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-head:Georgia,"Times New Roman",serif;
  --panel-w:440px; --sheet-peek:132px; --top-h:56px; --scale:100%;
}
:root[data-theme="dark"] { --paper:#111613; --surface:#1A211D; --surface-2:#242D28; --ink:#EEE9DE; --ink-2:#B9C1BB; --line:#6E7A73; --rule:#35403A;
  --pine:#86CDB5; --on-pine:#0C1A14; --pine-tint:#1D3A31; --clay:#F2A57D; --ok-bg:#16301F; --ok:#9BDDB0; --warn-bg:#3A2C08; --warn:#F3D07A;
  --stop-bg:#4A1A14; --stop:#FFB4A8; --sample-bg:#4A3908; --sample:#FFE08A; --infer-bg:#2A2547; --infer:#CFC6FF; --focus:#EEE9DE; --shadow:0 6px 24px rgba(0,0,0,.5); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --paper:#111613; --surface:#1A211D; --surface-2:#242D28; --ink:#EEE9DE; --ink-2:#B9C1BB; --line:#6E7A73; --rule:#35403A;
  --pine:#86CDB5; --on-pine:#0C1A14; --pine-tint:#1D3A31; --clay:#F2A57D; --ok-bg:#16301F; --ok:#9BDDB0; --warn-bg:#3A2C08; --warn:#F3D07A;
  --stop-bg:#4A1A14; --stop:#FFB4A8; --sample-bg:#4A3908; --sample:#FFE08A; --infer-bg:#2A2547; --infer:#CFC6FF; --focus:#EEE9DE; --shadow:0 6px 24px rgba(0,0,0,.5); } }

*,*::before,*::after { box-sizing:border-box; }
html { font-size:var(--scale); -webkit-text-size-adjust:100%; }
html,body { height:100%; margin:0; }
body { background:var(--paper); color:var(--ink); font:1rem/1.5 var(--font-body); overflow:hidden; overscroll-behavior:none; }
h1,h2,h3,h4 { font-family:var(--font-head); font-weight:600; line-height:1.25; margin:0 0 .5em; }
h2 { font-size:1.35rem; } h3 { font-size:1.15rem; } h4 { font-size:1rem; }
p { margin:0 0 .75em; } a { color:var(--pine); }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.ah-skip { position:absolute; left:-999px; top:0; background:var(--surface); padding:8px 12px; z-index:100; } .ah-skip:focus { left:8px; top:8px; }
.ah-visually-hidden { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
[hidden] { display:none!important; }

/* ---------- layout ---------- */
#app { height:100dvh; display:flex; flex-direction:column; min-width:0; }
.ah-top { display:grid; grid-template-columns:1fr auto; grid-template-areas:"brand actions" "search search"; gap:8px 12px; align-items:center;
  padding:8px var(--gutter); background:var(--surface); border-bottom:1px solid var(--rule); z-index:20; padding-top:max(8px,env(safe-area-inset-top)); }
.ah-brand { grid-area:brand; display:flex; align-items:center; gap:8px; min-width:0; }
.ah-logo { color:var(--clay); font-size:1.3rem; line-height:1; }
.ah-name { font:600 1.3rem/1.1 var(--font-head); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ah-demo-chip { font-size:.8rem; border:1px solid var(--line); border-radius:99px; padding:0 8px; color:var(--ink-2); white-space:nowrap; }
.ah-search { grid-area:search; position:relative; min-width:0; }
.ah-actions { grid-area:actions; display:flex; gap:6px; }
.ah-main { position:relative; flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) var(--panel-w); }
.ah-mapwrap { position:relative; min-width:0; min-height:0; background:var(--surface-2); }
.ah-map { position:absolute; inset:0; }
.ah-map-tools { position:absolute; left:var(--gutter); top:12px; display:flex; flex-wrap:wrap; gap:8px; max-width:calc(100% - 80px); z-index:5; pointer-events:none; }
.ah-map-tools > * { pointer-events:auto; }
.ah-lens-bar { position:absolute; left:var(--gutter); right:var(--gutter); bottom:12px; z-index:5; pointer-events:none; }
.ah-lens-bar > * { pointer-events:auto; }
.ah-panel { display:flex; flex-direction:column; min-height:0; min-width:0; background:var(--surface); border-left:1px solid var(--rule); z-index:10; }
.ah-handle { display:none; }
.ah-tabs { display:flex; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid var(--rule); background:var(--surface); flex:none; scroll-snap-type:x proximity; }
.ah-tabs::-webkit-scrollbar { display:none; }
.ah-tab { flex:none; min-height:var(--tap); padding:0 14px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--ink-2);
  font:700 .95rem/1 var(--font-body); cursor:pointer; white-space:nowrap; scroll-snap-align:start; }
.ah-tab[aria-selected="true"] { color:var(--pine); border-bottom-color:var(--pine); }
.ah-count { display:inline-block; min-width:1.4em; padding:0 .35em; border-radius:99px; background:var(--clay); color:var(--paper); font-size:.8rem; text-align:center; margin-left:4px; }
.ah-panes { flex:1; min-height:0; overflow:auto; -webkit-overflow-scrolling:touch; }
.ah-pane { padding:var(--gutter); }
.ah-foot { flex:none; border-top:1px solid var(--rule); background:var(--surface-2); padding:6px var(--gutter) max(6px,env(safe-area-inset-bottom)); font-size:1rem; }
.ah-foot summary { cursor:pointer; min-height:var(--tap); display:flex; align-items:center; color:var(--ink-2); font-size:.85rem; }
.ah-foot p { font-size:1rem; margin:0 0 8px; } .ah-attrib { color:var(--ink-2); }
.ah-toast { position:fixed; left:50%; bottom:calc(var(--sheet-peek) + 16px); transform:translateX(-50%); background:var(--ink); color:var(--paper); padding:10px 16px; border-radius:99px; z-index:60; max-width:90vw; }

/* ---------- phone: bottom sheet ---------- */
@media (max-width: 899px) {
  :root { --top-h:104px; }
  .ah-main { display:block; }
  .ah-mapwrap { position:absolute; inset:0; }
  .ah-panel { position:absolute; left:0; right:0; bottom:0; border-left:0; border-radius:16px 16px 0 0; box-shadow:var(--shadow); transition:height .22s ease; }
  .ah-panel[data-sheet="peek"] { height:var(--sheet-peek); }
  .ah-panel[data-sheet="half"] { height:52%; }
  .ah-panel[data-sheet="full"] { height:90%; }
  .ah-handle { display:flex; justify-content:center; align-items:center; width:100%; min-height:44px; border:0; background:transparent; cursor:pointer; padding:0; }
  .ah-handle span { width:44px; height:5px; border-radius:99px; background:var(--line); }
  .ah-panel[data-sheet="peek"] .ah-panes, .ah-panel[data-sheet="peek"] .ah-foot { display:none; }
  .ah-lens-bar { bottom:calc(var(--sheet-peek) + 8px); }
}
@media (min-width: 900px) { .ah-top { grid-template-columns:auto minmax(220px,560px) 1fr; grid-template-areas:"brand search actions"; } .ah-actions { justify-content:flex-end; } }
@media (min-width: 1280px) { :root { --panel-w:480px; } }

/* ---------- shared components ---------- */
.ah-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:var(--tap); min-width:var(--tap); padding:0 16px; border-radius:10px;
  border:1px solid var(--pine); background:var(--pine); color:var(--on-pine); font:700 1rem/1 var(--font-body); cursor:pointer; }
.ah-btn-quiet { background:var(--surface); color:var(--ink); border-color:var(--line); padding:0 12px; }
.ah-btn-ghost { background:transparent; color:var(--pine); border-color:var(--pine); }
.ah-btn[aria-pressed="true"] { background:var(--pine-tint); color:var(--ink); border-color:var(--pine); }
.ah-btn:disabled { opacity:.5; cursor:not-allowed; }
.ah-field { display:block; margin:0 0 12px; } .ah-field > span { display:block; font-weight:700; margin-bottom:4px; }
.ah-input, .ah-select { width:100%; min-height:var(--tap); padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); font:1rem var(--font-body); }
.ah-card { background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius); padding:var(--gutter); margin:0 0 12px; min-width:0; }
.ah-card.ah-tint { background:var(--pine-tint); }
.ah-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ah-muted { color:var(--ink-2); }
.ah-table { width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums lining-nums; }
.ah-table th,.ah-table td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--rule); vertical-align:top; }
.ah-num { font-variant-numeric:tabular-nums lining-nums; }
.ah-chip { display:inline-flex; align-items:center; gap:4px; border-radius:99px; padding:2px 10px; font-size:.85rem; font-weight:700; line-height:1.4; white-space:nowrap; border:1px solid transparent; }
.ah-chip.sample { background:var(--sample-bg); color:var(--sample); border-color:var(--sample); }
.ah-chip.fact { background:var(--ok-bg); color:var(--ok); }
.ah-chip.inference { background:var(--infer-bg); color:var(--infer); }
.ah-chip.src { background:var(--surface-2); color:var(--ink-2); font-weight:400; white-space:normal; border-color:var(--rule); }
.ah-chip.warn { background:var(--warn-bg); color:var(--warn); }
.ah-chip.stop { background:var(--stop-bg); color:var(--stop); }
.ah-sample-box { border:2px dashed var(--sample); background:var(--sample-bg); color:var(--sample); border-radius:var(--radius); padding:8px 12px; margin:0 0 12px; font-weight:700; }
.ah-lock { border:1px dashed var(--line); border-radius:var(--radius); padding:12px; background:var(--surface-2); }
.ah-note { font-size:.95rem; color:var(--ink-2); }
.ah-stub { border:2px dashed var(--line); background:var(--surface-2); }
.ah-stub h3 { margin-bottom:.25em; } .ah-stub ul { margin:.25em 0 .5em 1.1em; padding:0; }
.ah-stub .ah-stub-sel { font-family:ui-monospace,Menlo,monospace; font-size:.85rem; word-break:break-all; }

/* ---------- print: the report module marks its sheet with .ah-print-area ---------- */
@media print {
  body { overflow:visible; background:#fff; color:#000; }
  #app, .ah-top, .ah-mapwrap, .ah-tabs, .ah-handle, .ah-foot, .ah-toast { display:none!important; }
  .ah-print-area { display:block!important; }
  .ah-chip { border:1px solid #000!important; background:#fff!important; color:#000!important; }
}
.ah-print-area { display:none; }
@media (prefers-reduced-motion: reduce) { * { transition:none!important; animation:none!important; } }

@media (max-width: 560px) { .ah-demo-chip { display:none; } .ah-actions .ah-btn { padding:0 10px; } }
.ah-lens-bar .ah-stub { padding:8px 12px; margin:0; max-width:420px; } .ah-lens-bar .ah-stub p, .ah-lens-bar .ah-stub ul, .ah-lens-bar .ah-stub .ah-stub-sel { display:none; } .ah-lens-bar .ah-stub h3 { margin:0; font-size:1rem; }

/* ---- loading overlay (shell) ---- */
.ah-loading{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--paper) 82%,transparent);transition:opacity .35s ease;pointer-events:none;padding:16px}
.ah-loading.is-done{opacity:0}
.ah-loading[hidden]{display:none}
.ah-loading-box{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;max-width:300px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 6px 24px rgba(0,0,0,.12)}
.ah-loading-box strong{font-family:Georgia,"Times New Roman",serif;font-size:1.05rem}
.ah-loading-box span:last-child{font-size:.85rem;color:var(--ink-2)}
.ah-spin{width:26px;height:26px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--pine);animation:ah-rot .9s linear infinite}
.ah-loading.is-slow .ah-spin{animation:none;border-top-color:var(--clay)}
@keyframes ah-rot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ah-spin{animation:none}.ah-loading{transition:none}}

/* ===== fixer round (20 Nov 2026): landscape, sheet drag, compact footer, 44 px targets, dark contrast ===== */
.ah-handle{touch-action:none;}
.ah-tabs{position:relative;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);}
.ah-tabs.is-end{-webkit-mask-image:none;mask-image:none;}
.ah-foot summary{display:flex;align-items:center;gap:8px;}
.ah-foot summary #foot-short{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}
.ah-foot[open],.ah-foot details[open]{max-height:45vh;overflow:auto;}
.ah-pane summary,.ah-pane select,.ah-pane input:not([type=checkbox]):not([type=radio]):not([type=range]){min-height:44px;}
.ah-pane p a,.ah-pane li a,.ah-pane td a,.ah-pane span a{display:inline-flex;align-items:center;padding:11px 2px;margin:-11px 0;}
.ah-pane input[type=checkbox],.ah-pane input[type=radio]{width:24px;height:24px;margin:10px;flex:none;}
.ah-pane label:has(input[type=checkbox]),.ah-pane label:has(input[type=radio]){display:flex;align-items:center;min-height:44px;gap:4px;}
.ah-pane select,.ah-pane input:not([type=checkbox]):not([type=radio]):not([type=range]){font-size:1rem;}
.ah-pane [style*="font-size:11px"],.ah-pane [style*="font-size:10px"]{font-size:12px!important;}
.ah-pane [style*="color:#333"],.ah-pane [style*="color:#555"],.ah-pane [style*="color:#666"]{color:var(--ink)!important;}
.ah-pane [style*="color:#8a5a00"]{color:var(--sample)!important;}
@media (max-width: 899px) {
  .ah-panel[data-sheet="half"] { height:58%; }
  .ah-top{grid-template-columns:minmax(0,1fr) auto;}
  .ah-name{font-size:1.15rem;}
  .ah-brand{min-width:0;flex-shrink:1;}
  .ah-foot{padding:0 var(--gutter) max(2px,env(safe-area-inset-bottom));}
  .ah-foot summary{min-height:44px;font-size:.85rem;}
  .ah-panel[data-sheet="half"] .ah-foot:not(:has(details[open])){flex:none;}
}
@media (max-width: 899px) and (max-height:500px) and (orientation:landscape) {
  .ah-top{grid-template-columns:auto minmax(150px,1fr) auto;grid-template-areas:"brand search actions";padding:4px var(--gutter);gap:6px 10px;}
  .ah-name{font-size:1.05rem;}
  .ah-main{display:grid;grid-template-columns:minmax(0,1fr) min(46%,420px);}
  .ah-mapwrap{position:relative;inset:auto;}
  .ah-panel,.ah-panel[data-sheet="peek"],.ah-panel[data-sheet="half"],.ah-panel[data-sheet="full"]{position:relative;left:auto;right:auto;bottom:auto;height:auto!important;border-radius:0;border-left:1px solid var(--rule);box-shadow:none;}
  .ah-handle{display:none;}
  .ah-panel[data-sheet="peek"] .ah-panes{display:block;}
  .ah-panel[data-sheet="peek"] .ah-foot{display:block;}
  .ah-lens-bar{bottom:8px;}
  .ah-toast{bottom:16px;}
}

/* ---- TQ brand pass (atlas-9, 22 Nov 2026; Gerald: "a logo ... more visually appealing ... as good as the Stacked Homes home page").
   Maps the prototype's tokens onto the Tochi brand (Parcel mark; green #0F6E64, sun #F2B33D, ink #0E1B2A, mist #EEF3F1). ---- */
:root { --tq-green:#0F6E64; --tq-sun:#F2B33D; --tq-ink:#0E1B2A;
  --paper:#F6F9F8; --surface:#FFFFFF; --surface-2:#EEF3F1; --ink:#0E1B2A; --ink-2:#3E4C5A; --rule:#D6E2DE;
  --pine:#0F6E64; --on-pine:#FFFFFF; --pine-tint:#DCEFEA; --clay:#B26A00;
  --font-head:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; }
:root[data-theme="dark"] { --tq-green:#3FB9A8; --tq-sun:#F5C15A; --paper:#0B141C; --surface:#121D27; --surface-2:#1A2733; --ink:#EAF1EF; --ink-2:#AEBDC4; --rule:#2A3946;
  --pine:#3FB9A8; --on-pine:#06201C; --pine-tint:#123A35; --clay:#F5C15A; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --tq-green:#3FB9A8; --tq-sun:#F5C15A; --paper:#0B141C; --surface:#121D27; --surface-2:#1A2733; --ink:#EAF1EF; --ink-2:#AEBDC4; --rule:#2A3946;
  --pine:#3FB9A8; --on-pine:#06201C; --pine-tint:#123A35; --clay:#F5C15A; } }
.ah-brand { display:flex; align-items:center; gap:8px; }
.ah-brand .tq-mark { flex:none; display:block; }
.ah-name { font-family:var(--font-head); font-weight:800; letter-spacing:-.02em; }
.tq-hero { position:absolute; inset:0; z-index:16; display:flex; align-items:center; justify-content:center; padding:16px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--paper) 55%, transparent), color-mix(in srgb, var(--paper) 88%, transparent)); }
.tq-hero[hidden] { display:none; }
.tq-hero.is-out { opacity:0; transition:opacity .25s ease; pointer-events:none; }
.tq-hero-card { width:min(560px,100%); box-sizing:border-box; background:var(--surface); color:var(--ink); border:1px solid var(--rule);
  border-radius:20px; padding:28px 24px; box-shadow:0 24px 60px -24px rgba(14,27,42,.35); }
.tq-eyebrow { display:inline-block; font:600 12px/1 var(--font-body); letter-spacing:.08em; text-transform:uppercase; color:var(--pine);
  background:var(--pine-tint); padding:6px 10px; border-radius:999px; }
.tq-hero h1 { font:800 clamp(26px,5.4vw,38px)/1.12 var(--font-head); letter-spacing:-.025em; margin:14px 0 10px; }
.tq-sub { font:400 16px/1.5 var(--font-body); color:var(--ink-2); margin:0 0 18px; }
.tq-search { display:flex; gap:6px; background:var(--surface-2); border:1px solid var(--rule); border-radius:999px; padding:5px; }
.tq-search input { flex:1; min-width:0; border:0; background:transparent; color:var(--ink); font:500 16px var(--font-body); padding:10px 14px; outline:none; }
.tq-search:focus-within { border-color:var(--pine); box-shadow:0 0 0 3px var(--pine-tint); }
.tq-btn { font:600 15px var(--font-body); border-radius:999px; padding:11px 18px; cursor:pointer; border:1px solid transparent; min-height:44px; }
.tq-btn-pri { background:var(--pine); color:var(--on-pine); }
.tq-btn-pri:hover { filter:brightness(1.08); }
.tq-btn-ghost { background:transparent; color:var(--pine); border-color:var(--rule); width:100%; margin-top:14px; }
.tq-proof { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:8px; font:400 14px/1.4 var(--font-body); color:var(--ink-2); }
.tq-proof li { position:relative; padding-left:18px; }
.tq-proof li::before { content:""; position:absolute; left:0; top:.45em; width:8px; height:8px; border-radius:2px; background:var(--tq-sun); }
.tq-proof b { color:var(--ink); font-weight:600; }
@media (min-width:720px) { .tq-hero-card { padding:36px 34px; } }
@media (prefers-reduced-motion:no-preference) {
  .tq-hero-card { animation:tq-rise .45s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes tq-rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
}

/* ---- TQ round 3 (atlas-9, 22 Nov 2026): softer pill buttons, a glass finish on map controls, tabs that fit on desktop,
   gentle hover motion, and the Why Tochi strip. ---- */
.ah-btn { border-radius:999px; font-weight:600; transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease; }
.ah-btn-quiet { border-color:var(--rule); box-shadow:0 1px 2px rgba(14,27,42,.06); }
.ah-btn-quiet:hover { border-color:var(--pine); color:var(--pine); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .ah-btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 4px 12px -4px rgba(14,27,42,.25); } }
.ah-mapwrap .ah-btn-quiet { background:color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.ah-card { border-color:var(--rule); border-radius:16px; }
.ah-panel h2, .ah-panel h3 { font-family:var(--font-head); letter-spacing:-.01em; }
@media (min-width:900px) {
  .ah-tabs { flex-wrap:wrap; gap:6px; padding:10px 12px; overflow:visible; -webkit-mask-image:none; mask-image:none; }
  .ah-tab { min-height:34px; padding:0 12px; border:1px solid transparent; border-radius:999px; font-weight:600; font-size:.9rem; }
  .ah-tab:hover { background:var(--surface-2); color:var(--ink); }
  .ah-tab[aria-selected="true"] { background:var(--pine-tint); color:var(--pine); border-color:transparent; }
}
.tq-why { background:linear-gradient(135deg, var(--pine-tint), var(--surface) 70%); }
.tq-why h3 { margin:0 0 8px; }
.tq-why ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.tq-why li { position:relative; padding-left:18px; line-height:1.45; color:var(--ink-2); }
.tq-why li::before { content:""; position:absolute; left:0; top:.5em; width:8px; height:8px; border-radius:2px; background:var(--tq-sun); }
.tq-why strong { color:var(--ink); font-weight:600; }

/* ---- TQ usability round 1 (atlas-9, 22 Nov 2026): 44 px map buttons, the first-visit hint. ---- */
.maplibregl-ctrl-group button { width:44px; height:44px; }
.maplibregl-ctrl-group { border-radius:14px !important; overflow:hidden; box-shadow:0 2px 10px -4px rgba(14,27,42,.3) !important; }
.tq-hint { position:absolute; left:12px; right:12px; bottom:76px; z-index:15; max-width:380px; margin:0 auto; box-sizing:border-box;
  background:var(--surface); color:var(--ink); border:1px solid var(--rule); border-radius:16px; padding:14px 16px;
  box-shadow:0 16px 40px -18px rgba(14,27,42,.45); font:400 14px/1.45 var(--font-body); }
.tq-hint ol { margin:0 0 10px; padding-left:20px; display:grid; gap:4px; }
.tq-hint b { font-weight:600; }
.tq-hint .tq-btn { min-height:44px; width:100%; }
@media (prefers-reduced-motion:no-preference) { .tq-hint { animation:tq-rise .35s cubic-bezier(.2,.7,.2,1) both; } }
.tq-glance { display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; box-sizing:border-box; margin:10px 0 6px; padding:10px 12px;
  border:1px solid transparent; border-radius:12px; background:var(--pine-tint); color:var(--ink); text-align:left; cursor:pointer; min-height:44px; }
.tq-glance:hover { border-color:var(--pine); }
.tq-glance-n { font:700 18px/1.25 var(--font-head); font-variant-numeric:tabular-nums; letter-spacing:-.01em; }
.tq-glance-s { font:400 12.5px/1.35 var(--font-body); color:var(--ink-2); }

/* ==== TQ REDESIGN (atlas-9, 22 Nov 2026; Gerald: "I told u to increase the aesthetics"). A real landing page, an editorial type pair
   (Fraunces display, Inter body, Plus Jakarta Sans for the wordmark and UI labels), one line-icon family on the tabs, a calmer header,
   a polished price card, skeleton loading and soft transitions. Two brand colours (green, sun) plus ink neutrals. ==== */
:root { --font-display:"Fraunces",Georgia,"Times New Roman",serif; --r-sm:10px; --r-md:14px; --r-lg:20px;
  --sh-1:0 1px 2px rgba(14,27,42,.06),0 1px 1px rgba(14,27,42,.04); --sh-2:0 10px 30px -12px rgba(14,27,42,.28); --sh-3:0 30px 80px -30px rgba(14,27,42,.45);
  --ease:cubic-bezier(.2,.7,.2,1); }
/* header */
.ah-top { background:color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter:saturate(1.4) blur(14px); backdrop-filter:saturate(1.4) blur(14px); border-bottom:1px solid var(--rule); box-shadow:var(--sh-1); }
.ah-brand .tq-mark { width:32px; height:32px; }
.ah-name { font-size:1.45rem; }
.ah-demo-chip { border-color:var(--rule); background:var(--surface-2); font-weight:600; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:3px 9px; }
.ah-top .ah-actions .ah-btn { min-width:44px; font-weight:600; }
/* tabs with icons */
.ah-tab { display:inline-flex; align-items:center; gap:7px; transition:background-color .2s var(--ease), color .2s var(--ease); }
.ah-tab:not([data-tab]):not(#tab-facts):not(#tab-sunview):not(#tab-pricemap)::before { display:none; }
.ah-tab::before { content:""; width:18px; height:18px; flex:none; background:currentColor; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; opacity:.9; }
.ah-tab[data-tab="building"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V5a2%202%200%200%201%202-2h8a2%202%200%200%201%202%202v16M16%209h2a2%202%200%200%201%202%202v10M2%2021h20M8%207h4M8%2011h4M8%2015h4%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="stack"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l9%205-9%205-9-5zM3%2013l9%205%209-5M3%2017.5l9%205%209-5%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="floorplan"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h18v18H3zM3%2012h8M11%203v13M15%2012h6M15%2012v9%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="report"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203h7l5%205v13H7zM14%203v5h5M10%2013h6M10%2017h6%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="tracked"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h12v18l-6-4-6%204z%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="walkaway"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M13%204.5a1.5%201.5%200%201%200%200-.01M10%2021l2-6%203%203v3M9%2012l2-4%204%202%202%203M11%208l-3%202v3%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="ask"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16v11H9l-5%204zM8%2010h8M8%2013h5%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="explore"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18zM15.5%208.5l-2%205-5%202%202-5z%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="premium"] { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l2.4%205.6L20%209.3l-4.3%203.9L17%2019l-5-3-5%203%201.3-5.8L4%209.3l5.6-.7z%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="facts"], #tab-facts { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18zM12%2011v6M12%207.5v.5%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="sunview"], #tab-sunview { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%208a4%204%200%201%200%200%208%204%204%200%200%200%200-8zM12%202v2M12%2020v2M4.9%204.9l1.4%201.4M17.7%2017.7l1.4%201.4M2%2012h2M20%2012h2M4.9%2019.1l1.4-1.4M17.7%206.3l1.4-1.4%22/%3E%3C/svg%3E"); }
.ah-tab[data-tab="pricemap"], #tab-pricemap { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2012V4h8l10%2010-8%208zM7.5%207.5v.01%22/%3E%3C/svg%3E"); }
@media (max-width:899px) { .ah-tab { flex-direction:column; gap:3px; min-width:64px; padding:6px 10px 4px; font-size:.75rem; font-weight:600; justify-content:center; }
  .ah-tab::before { width:20px; height:20px; } .ah-tab[aria-selected="true"] { border-bottom-color:var(--pine); } }
/* panel, cards, transitions */
.ah-panel { box-shadow:-1px 0 0 var(--rule), var(--sh-2); }
.ah-card { background:var(--surface); box-shadow:var(--sh-1); border-radius:var(--r-lg); }
.ah-panel .ah-building-title { font:600 1.65rem/1.15 var(--font-display); letter-spacing:-.015em; }
.ah-panel h3 { font-family:var(--font-display); font-weight:600; font-size:1.2rem; }
@media (prefers-reduced-motion:no-preference) {
  [role="tabpanel"]:not([hidden]) { animation:tq-fade .28s var(--ease) both; }
  @keyframes tq-fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
  .ah-panel { transition:height .3s var(--ease), transform .3s var(--ease); }
  .ah-btn:active:not(:disabled), .tq-btn:active, .ah-tab:active { transform:scale(.97); }
}
.ah-chip.src { border-radius:999px; background:var(--surface-2); border-color:transparent; font-size:.8rem; padding:3px 10px; }
.ah-chip.src a { color:var(--ink-2); text-decoration-color:color-mix(in srgb, var(--ink-2) 40%, transparent); text-underline-offset:2px; }
/* price glance and estimate card */
.tq-glance { position:relative; overflow:hidden; padding:14px 16px; border-radius:var(--r-md); background:linear-gradient(135deg, var(--pine) 0%, color-mix(in srgb, var(--pine) 78%, #000) 100%); color:var(--on-pine); }
.tq-glance::after { content:""; position:absolute; right:-18px; top:-18px; width:84px; height:84px; border-radius:22px; background:var(--tq-sun); opacity:.9; transform:rotate(12deg); }
.tq-glance-n { position:relative; z-index:1; font:600 1.6rem/1.15 var(--font-display); letter-spacing:-.01em; padding-right:64px; }
.tq-glance-s { position:relative; z-index:1; color:color-mix(in srgb, var(--on-pine) 82%, transparent); padding-right:64px; }
.tq-glance:hover { filter:brightness(1.06); border-color:transparent; }
.ahm-est { border-radius:var(--r-lg) !important; box-shadow:var(--sh-1); border-color:var(--rule) !important; padding:18px !important; }
.ahm-est h3 { font-family:var(--font-display) !important; font-size:1.2rem !important; }
.ahm-est .ahm-est-range { font-family:var(--font-display) !important; font-weight:600 !important; font-size:clamp(28px,6vw,36px) !important; letter-spacing:-.015em; color:var(--pine); }
.ahm-est .ahm-est-types button { border-radius:999px !important; border-color:var(--rule) !important; font-weight:600 !important; }
.ahm-est .ahm-est-types button[aria-pressed="true"] { background:var(--pine) !important; border-color:var(--pine) !important; color:var(--on-pine) !important; }
.ahm-est dl { background:var(--surface-2); border-radius:var(--r-sm); padding:10px 12px; }
/* map controls */
.ah-mapwrap .ah-btn-quiet { box-shadow:var(--sh-2); border-color:color-mix(in srgb, var(--rule) 60%, transparent); }
/* skeleton loading */
.ah-loading-box { border-color:var(--rule); border-radius:var(--r-lg); box-shadow:var(--sh-3); padding:22px 24px; }
.ah-loading-box strong { font:600 1.1rem var(--font-display); }
.ah-loading-box::after { content:""; display:block; width:220px; height:8px; margin-top:6px; border-radius:99px; background:linear-gradient(90deg, var(--surface-2) 0, var(--pine-tint) 50%, var(--surface-2) 100%); background-size:200% 100%; animation:tq-shimmer 1.2s linear infinite; }
@keyframes tq-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* ---- landing page ---- */
.tq-hero { position:fixed; inset:0; z-index:60; display:block; padding:0; background:var(--paper); color:var(--ink); overflow:hidden; }
.tq-hero-bg { position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(1200px 520px at 85% -10%, color-mix(in srgb, var(--tq-sun) 22%, transparent), transparent 60%),
             radial-gradient(900px 600px at -10% 10%, color-mix(in srgb, var(--pine) 16%, transparent), transparent 65%), var(--paper); }
.tq-sky { position:absolute; left:0; right:0; bottom:0; width:100%; height:42vh; min-height:220px; fill:color-mix(in srgb, var(--pine) 13%, transparent); }
.tq-sky rect:nth-child(9n) { fill:color-mix(in srgb, var(--tq-sun) 40%, transparent); }
@media (prefers-reduced-motion:no-preference) { .tq-sky rect { transform-box:fill-box; transform-origin:bottom; animation:tq-grow 1.1s var(--ease) both; animation-delay:var(--d); } }
@keyframes tq-grow { from { transform:scaleY(.15); opacity:0; } to { transform:none; opacity:1; } }
.tq-hero-scroll { position:relative; height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:0 20px 40px; box-sizing:border-box; }
.tq-hero-scroll > * { max-width:1120px; margin-left:auto; margin-right:auto; }
.tq-hero-head { display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.tq-lockup { display:inline-flex; align-items:center; gap:10px; font:800 1.6rem/1 "Plus Jakarta Sans",var(--font-head); letter-spacing:-.035em; }
.tq-lockup .tq-mk { width:36px; height:36px; }
.tq-hero-tag { font:600 .72rem var(--font-body); letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); border:1px solid var(--rule); border-radius:999px; padding:5px 10px; background:var(--surface); }
.tq-hero-main { display:grid; gap:28px; padding:20px 0 8px; align-items:center; }
@media (min-width:960px) { .tq-hero-main { grid-template-columns:1.15fr .85fr; gap:56px; padding:56px 0 24px; } }
.tq-hero .tq-eyebrow { background:var(--surface); border:1px solid var(--rule); color:var(--pine); }
.tq-hero h1 { font:600 clamp(36px,7.4vw,68px)/1.02 var(--font-display); letter-spacing:-.03em; margin:18px 0 16px; max-width:14ch; }
.tq-hero .tq-sub { font-size:clamp(16px,2vw,19px); line-height:1.55; max-width:52ch; margin:0 0 24px; }
.tq-hero .tq-search { background:var(--surface); border:1px solid var(--rule); box-shadow:var(--sh-2); padding:6px 6px 6px 16px; align-items:center; max-width:560px; }
.tq-hero .tq-search .tq-ic { width:20px; height:20px; flex:none; fill:none; stroke:var(--ink-2); stroke-width:2; stroke-linecap:round; }
.tq-hero .tq-search input { font-size:17px; padding:12px 10px; }
.tq-hero .tq-btn-pri { padding:12px 22px; }
.tq-link { display:inline-flex; gap:6px; align-items:center; margin-top:14px; min-height:44px; padding:0 4px; border:0; background:none; color:var(--pine); font:600 15px var(--font-body); cursor:pointer; }
.tq-link:hover span { transform:translateX(3px); } .tq-link span { transition:transform .2s var(--ease); }
.tq-shot { margin:0; }
.tq-shot-card { background:var(--surface); border:1px solid var(--rule); border-radius:24px; padding:22px; box-shadow:var(--sh-3); }
@media (min-width:960px) { .tq-shot-card { transform:rotate(-1.2deg); } }
.tq-shot-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.tq-shot-blk { font:600 1.05rem var(--font-body); }
.tq-chip-fact { font:600 .75rem var(--font-body); color:var(--ok); background:var(--ok-bg); border-radius:999px; padding:3px 9px; }
.tq-shot-type { display:block; color:var(--ink-2); font-size:.9rem; margin-top:2px; }
.tq-shot-range { font:600 clamp(30px,5vw,42px)/1.1 var(--font-display); letter-spacing:-.02em; color:var(--pine); margin:16px 0 14px; }
.tq-shot-range span { font-size:.55em; color:var(--ink-2); font-family:var(--font-body); font-weight:500; }
.tq-bar { position:relative; height:12px; border-radius:99px; background:var(--surface-2); }
.tq-bar-fill { position:absolute; top:0; bottom:0; border-radius:99px; background:linear-gradient(90deg, color-mix(in srgb, var(--pine) 55%, transparent), var(--pine)); }
.tq-bar-mid { position:absolute; top:-4px; width:4px; height:20px; margin-left:-2px; border-radius:2px; background:var(--tq-sun); box-shadow:0 0 0 2px var(--surface); }
.tq-bar-ends { display:flex; justify-content:space-between; font:500 .78rem var(--font-body); color:var(--ink-2); margin-top:6px; font-variant-numeric:tabular-nums; }
.tq-shot-dl { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:16px 0 0; }
.tq-shot-dl div { background:var(--surface-2); border-radius:12px; padding:10px; }
.tq-shot-dl dt { font-size:.75rem; color:var(--ink-2); } .tq-shot-dl dd { margin:2px 0 0; font:600 .98rem var(--font-body); font-variant-numeric:tabular-nums; }
.tq-shot-src { margin:14px 0 0; font-size:.78rem; color:var(--ink-2); }
.tq-shot figcaption { font-size:.82rem; color:var(--ink-2); margin-top:12px; text-align:center; }
.tq-stats { list-style:none; padding:0; display:grid; gap:12px; margin-top:28px; margin-bottom:8px; }
@media (min-width:720px) { .tq-stats { grid-template-columns:repeat(3,1fr); } }
.tq-stats li { background:color-mix(in srgb, var(--surface) 88%, transparent); border:1px solid var(--rule); border-radius:var(--r-lg); padding:18px 20px; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.tq-stats b { display:block; font:600 2rem/1.1 var(--font-display); letter-spacing:-.02em; color:var(--ink); }
.tq-stats span { font-size:.9rem; color:var(--ink-2); }
.tq-how, .tq-why2 { padding-top:44px; }
.tq-how h2, .tq-why2 h2 { font:600 clamp(26px,4vw,36px)/1.1 var(--font-display); letter-spacing:-.02em; margin:0 0 18px; }
.tq-how ol { list-style:none; padding:0; margin:0; display:grid; gap:12px; counter-reset:s; }
@media (min-width:720px) { .tq-how ol, .tq-why-grid { grid-template-columns:repeat(3,1fr); } }
.tq-how li, .tq-why-grid article { display:flex; flex-direction:column; gap:6px; background:var(--surface); border:1px solid var(--rule); border-radius:var(--r-lg); padding:20px; box-shadow:var(--sh-1); }
.tq-how li .tq-ic { width:40px; height:40px; padding:9px; box-sizing:border-box; border-radius:12px; background:var(--pine-tint); fill:none; stroke:var(--pine); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; margin-bottom:6px; }
.tq-how b, .tq-why-grid b { font:600 1.08rem var(--font-body); } .tq-how li span, .tq-why-grid span { color:var(--ink-2); line-height:1.5; }
.tq-why-grid { display:grid; gap:12px; }
.tq-why-grid article { border-top:4px solid var(--tq-sun); }
.tq-hero-foot { padding-top:36px; font-size:.78rem; color:var(--ink-2); line-height:1.5; }
.tq-hero.is-out { opacity:0; transform:scale(1.01); transition:opacity .3s var(--ease), transform .3s var(--ease); }
.tq-hero-main { grid-template-columns:minmax(0,1fr); } .tq-hero-main > *, .tq-stats > *, .tq-how li, .tq-why-grid article { min-width:0; }
@media (min-width:960px) { .tq-hero-main { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); } }
.tq-hero .tq-search { width:100%; box-sizing:border-box; }
.tq-sky { height:34vh; opacity:.75; }
@media (max-width:420px) { .tq-shot-dl { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; } .tq-shot-dl dd { font-size:.88rem; } .tq-shot-card { padding:18px; } }
.tq-glance::after { right:-26px; top:-26px; width:90px; height:90px; border-radius:50%; opacity:.28; transform:none; }
.tq-glance-n, .tq-glance-s { padding-right:24px; }

/* ==== TQ HUD (atlas-9, drop 2, 22 Nov 2026; Gerald: "futuristic, with animations and moving things", "words a bit too big and not enough
   info compressed"). Dark by default (index.html data-theme="dark"; the Theme button still switches), one electric accent, glass panels
   with thin luminous borders, denser type, a price-heat wave across the landing skyline, a self-filling range bar, staggered reveals,
   hover tilt, and icon buttons for theme and text size. CSS and tokens only. ==== */
:root[data-theme="dark"] { --paper:#060B12; --surface:#0C1620; --surface-2:#112130; --ink:#E6F4F2; --ink-2:#8FA8B4; --rule:rgba(46,230,214,.16); --line:rgba(46,230,214,.3);
  --pine:#2EE6D6; --tq-green:#2EE6D6; --on-pine:#03201D; --pine-tint:rgba(46,230,214,.12); --tq-sun:#FFC24B; --clay:#FFC24B;
  --glow:0 0 0 1px rgba(46,230,214,.14), 0 0 28px -6px rgba(46,230,214,.28); }
:root { --glow:var(--sh-2); }
html { font-size:14px; }
.ah-panel { font-size:13.5px; }
.ah-panel .ah-building-title { font-size:1.45rem; }
.ah-panel h3 { font-size:1.05rem; }
.ah-note, .ah-panel small { font-size:12px; }
:root[data-theme="dark"] .ah-top { background:rgba(6,11,18,.72); border-bottom-color:var(--rule); box-shadow:0 1px 0 rgba(46,230,214,.12), 0 8px 30px -12px rgba(0,0,0,.6); }
:root[data-theme="dark"] .ah-panel { background:rgba(8,15,23,.82); -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3); box-shadow:-1px 0 0 var(--rule), -20px 0 60px -30px rgba(46,230,214,.25); }
:root[data-theme="dark"] .ah-card, :root[data-theme="dark"] .ahm-est { background:linear-gradient(180deg, rgba(17,33,48,.85), rgba(12,22,32,.85)) !important; border:1px solid var(--rule) !important; box-shadow:var(--glow) !important; }
:root[data-theme="dark"] .ah-btn-quiet { background:rgba(17,33,48,.7); border-color:var(--rule); color:var(--ink); }
:root[data-theme="dark"] .ah-btn-quiet:hover { border-color:var(--pine); box-shadow:0 0 16px -4px rgba(46,230,214,.5); color:var(--pine); }
:root[data-theme="dark"] .ah-btn:not(.ah-btn-quiet):not(.ah-btn-ghost) { box-shadow:0 0 22px -6px rgba(46,230,214,.7); }
:root[data-theme="dark"] .tq-glance { background:linear-gradient(120deg, rgba(46,230,214,.22), rgba(46,230,214,.06)); color:var(--ink); border:1px solid rgba(46,230,214,.35); box-shadow:0 0 30px -10px rgba(46,230,214,.6); }
:root[data-theme="dark"] .tq-glance-n { color:var(--pine); text-shadow:0 0 18px rgba(46,230,214,.45); }
:root[data-theme="dark"] .tq-glance-s { color:var(--ink-2); }
:root[data-theme="dark"] .ah-tab[aria-selected="true"] { box-shadow:inset 0 0 0 1px rgba(46,230,214,.35), 0 0 16px -6px rgba(46,230,214,.6); }
/* header buttons: theme and text size become icons with their labels kept for screen readers; the plan reads as a badge */
#btn-theme, #btn-text { font-size:0 !important; width:44px; padding:0 !important; }
#btn-theme::before, #btn-text::before { content:""; width:20px; height:20px; background:currentColor; -webkit-mask:var(--ic) center/contain no-repeat; mask:var(--ic) center/contain no-repeat; }
#btn-theme { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203a9%209%200%201%200%209%209%207%207%200%200%201-9-9z%22/%3E%3C/svg%3E"); } #btn-text { --ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2019l5-14%205%2014M5%2014h6M15%2019l3-8%203%208M16%2016.5h4%22/%3E%3C/svg%3E"); }
#btn-plan::before { content:"Plan"; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.6; margin-right:6px; }
/* landing page: always the dark HUD */
.tq-hero { --paper:#060B12; --surface:#0C1620; --surface-2:#112130; --ink:#E6F4F2; --ink-2:#8FA8B4; --rule:rgba(46,230,214,.18); --pine:#2EE6D6; --tq-green:#2EE6D6; --on-pine:#03201D; --pine-tint:rgba(46,230,214,.12); --tq-sun:#FFC24B; --ok:#7CF0C2; --ok-bg:rgba(124,240,194,.12); }
.tq-hero-bg { background:radial-gradient(900px 500px at 80% -5%, rgba(46,230,214,.18), transparent 60%), radial-gradient(700px 500px at 0% 30%, rgba(255,194,75,.08), transparent 60%),
  linear-gradient(rgba(46,230,214,.05) 1px, transparent 1px) 0 0/48px 48px, linear-gradient(90deg, rgba(46,230,214,.05) 1px, transparent 1px) 0 0/48px 48px, #060B12; }
.tq-sky { opacity:1; fill:rgba(46,230,214,.12); }
.tq-sky rect:nth-child(9n) { fill:rgba(255,194,75,.25); }
@media (prefers-reduced-motion:no-preference) {
  .tq-sky rect { animation:tq-grow 1.1s var(--ease) both, tq-heat 6s ease-in-out infinite; animation-delay:var(--d), calc(var(--d) * 2 + 1.2s); }
  @keyframes tq-heat { 0%,100% { fill:rgba(46,230,214,.12); } 8% { fill:rgba(46,230,214,.55); } 16% { fill:rgba(255,194,75,.6); } 26% { fill:rgba(46,230,214,.12); } }
  .tq-bar-fill { animation:tq-fill 1.4s .6s var(--ease) both; transform-origin:left; } @keyframes tq-fill { from { transform:scaleX(0); } to { transform:none; } }
  .tq-bar-mid { animation:tq-pop .4s 1.8s var(--ease) both; } @keyframes tq-pop { from { transform:scaleY(0); } to { transform:none; } }
  .tq-hero-copy > *, .tq-shot, .tq-stats li, .tq-how li, .tq-why-grid article { animation:tq-rise .6s var(--ease) both; }
  .tq-hero-copy > :nth-child(2) { animation-delay:.08s; } .tq-hero-copy > :nth-child(3) { animation-delay:.16s; } .tq-hero-copy > :nth-child(4) { animation-delay:.24s; }
  .tq-shot { animation-delay:.3s; } .tq-stats li:nth-child(2), .tq-how li:nth-child(2), .tq-why-grid article:nth-child(2) { animation-delay:.1s; } .tq-stats li:nth-child(3), .tq-how li:nth-child(3), .tq-why-grid article:nth-child(3) { animation-delay:.2s; }
  .tq-shot-card { transition:transform .5s var(--ease), box-shadow .5s var(--ease); }
  .tq-shot-card:hover { transform:perspective(900px) rotateX(4deg) rotateY(-6deg) translateY(-4px); box-shadow:0 30px 80px -30px rgba(46,230,214,.45); }
  .tq-eyebrow::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--pine); margin-right:8px; box-shadow:0 0 10px var(--pine); animation:tq-blink 1.6s ease-in-out infinite; }
  @keyframes tq-blink { 50% { opacity:.25; } }
}
.tq-hero h1 { font-size:clamp(30px,5.4vw,56px); }
.tq-hero h1, .tq-shot-range, .tq-stats b { text-shadow:0 0 30px rgba(46,230,214,.25); }
.tq-hero .tq-sub { font-size:15px; }
.tq-hero .tq-search { background:rgba(12,22,32,.8); border-color:rgba(46,230,214,.35); box-shadow:0 0 0 1px rgba(46,230,214,.12), 0 0 40px -10px rgba(46,230,214,.5); }
.tq-shot-card, .tq-stats li, .tq-how li, .tq-why-grid article { background:linear-gradient(180deg, rgba(17,33,48,.82), rgba(10,19,28,.82)); border-color:rgba(46,230,214,.18); box-shadow:0 0 0 1px rgba(46,230,214,.06), 0 20px 60px -30px rgba(0,0,0,.8); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.tq-stats b { font-size:1.7rem; color:var(--pine); } .tq-stats span, .tq-how li span, .tq-why-grid span { font-size:13px; }
.tq-how, .tq-why2 { padding-top:32px; } .tq-how li, .tq-why-grid article { padding:16px; }
.tq-hero-tag { background:rgba(12,22,32,.8); }
.tq-bar { background:rgba(46,230,214,.1); } .tq-bar-fill { background:linear-gradient(90deg, rgba(46,230,214,.35), #2EE6D6); box-shadow:0 0 14px rgba(46,230,214,.6); }
:root[data-theme="dark"] .tq-glance::after { opacity:.12; }
