/* © 2026 Techverse Smart Solutions LLC. All rights reserved. TSS Site Survey — proprietary software of Techverse Smart Solutions LLC. */
/* v1.8.7 "first light" look: sign-up hero, site-drawing home, site-map survey screen, Night / Sunlight modes.
   Loaded after app.css; overrides its colour tokens and adds the rd- (redesign) and su- (sign-up) components.
   Fonts are bundled locally (SIL Open Font License) so the look holds in airplane mode. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-wdth.woff2) format("woff2-variations"), url(../fonts/archivo-wdth.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --f-display: "Archivo", "Arial Narrow", Helvetica, Arial, sans-serif;
  --f-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --teal: #3fc4c0; --indigo: #5b5fe0; --gold-brand: #e4c24a;
  /* Sunlight (light) values are the defaults; Night overrides below */
  --rd-raise: #eef1f8; --rd-ground: #e3e8f3; --rd-line-2: #b4bed6;
  --rd-draw: #23305e; --rd-draw-fill: #ffffff; --rd-dim: #b4bed6;
  --rd-teal-ink: #0d7f7b; --rd-teal-soft: #d4f1ef; --rd-amber: #c06a00; --rd-amber-soft: #fbe5c8; --rd-gold: #9a7700;
  --rd-shadow: 0 8px 22px rgba(22, 35, 74, .12); --rd-ring: rgba(154, 119, 0, .3);
}
:root[data-theme="light"] {
  --bg: #eef1f7; --card: #ffffff; --text: #0b1230; --muted: #3c4770; --line: #d3d9e8; --chip: #eef1f8; --icon: #16234a;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 2px 6px rgba(16,24,40,.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1230; --card: #111a38; --text: #eef1fb; --muted: #a3aed0; --line: #26335f; --chip: #18234d; --chip-active: #3fc4c0; --icon: #a9b8ff;
  --shadow: 0 1px 2px rgba(0,0,0,.45);
  --rd-raise: #18234d; --rd-ground: #0f1838; --rd-line-2: #3a4a80;
  --rd-draw: #a3aed0; --rd-draw-fill: #121d44; --rd-dim: #3a4a80;
  --rd-teal-ink: #3fc4c0; --rd-teal-soft: #17414f; --rd-amber: #f0a64a; --rd-amber-soft: #3d3122; --rd-gold: #e4c24a;
  --rd-shadow: 0 12px 30px rgba(3, 7, 22, .45); --rd-ring: rgba(228, 194, 74, .3);
  color-scheme: dark;
}

html, body { font-family: var(--f-body); }
.appbar { background: #0b1230; border-image: linear-gradient(90deg, var(--teal), var(--indigo), var(--gold-brand)) 1; }
.appbar .title { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; letter-spacing: .005em; }
.appbar .sub { font-family: var(--f-body); font-stretch: 100%; font-weight: 400; }
.offline-pill { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; font-size: 10px; }
.card h2, .sheet h3, .section-head h2 { font-family: var(--f-display); font-stretch: 108%; }
.rd-mode { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.22) !important; font-family: var(--f-mono); font-size: 10.5px !important; letter-spacing: .06em; text-transform: uppercase; }
.rd-mode[aria-pressed="true"] { background: rgba(228,194,74,.18) !important; border-color: rgba(228,194,74,.6) !important; }
.no-flexgap .rd-mode > * + * { margin-left: 6px; }
@media (max-width: 520px) { .rd-mode span { display: none; } .rd-mode { min-width: 44px; padding: 8px !important; } }

/* Shared buttons */
.rd-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 16px; border-radius: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.no-flexgap .rd-btn > * + * { margin-left: 8px; }
.rd-btn-prime { border: 0; color: #0b1230; font-family: var(--f-display); font-stretch: 112%; font-weight: 800; letter-spacing: .01em;
  background: #3fc4c0; background: linear-gradient(100deg, #3fc4c0, #8fd9c4 55%, #e4c24a); box-shadow: 0 10px 26px rgba(63,196,192,.25); }
.rd-btn-sec { background: var(--card); border-color: var(--rd-line-2); }
.rd-btn:active { transform: scale(.98); }
.fab-bar .rd-btn { flex: 1; min-height: 56px; border-radius: 16px; }
.fab-bar .inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-gap: 10px; }
.rd :focus-visible, .su :focus-visible, .rd-btn:focus-visible { outline: 2px solid #e4c24a; outline-offset: 2px; }

/* ══ Sign-up (always the dark "first light" look) ═══════════════════════ */
body.su-screen .appbar { display: none; }
body.su-screen { background: #0b1230; }
body.su-screen main#view { max-width: 520px; padding: 0 16px calc(28px + var(--safe-bottom)); }
.su { color: #eef1fb; }
.su-hero { position: relative; overflow: hidden; margin: 0 -16px; padding-top: var(--safe-top);
  background: radial-gradient(120% 90% at 50% 100%, #2a3a86 0%, #16234a 45%, #0b1230 100%); }
.su-hero:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background-image: linear-gradient(rgba(63,196,192,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(63,196,192,.06) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.su-readout { position: relative; z-index: 2; display: flex; justify-content: space-between; padding: 14px 16px 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: #9ea9cc; text-transform: uppercase; }
.su-readout b { color: #3fc4c0; font-weight: 500; }
.su-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fc4c0; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 8px #3fc4c0; }
.su-brand { position: relative; z-index: 2; padding: 18px 16px 0; }
.su-eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #3fc4c0; margin: 0 0 6px; }
.su-brand h1 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 34px; font-size: clamp(28px, 8.4vw, 40px); line-height: .98; margin: 0; color: #eef1fb; }
.su-brand h1 span { color: #e4c24a; }
.su-scene { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
#su-sun { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.su-rays { transform-box: fill-box; transform-origin: center; -webkit-animation: rd-spin 80s linear infinite; animation: rd-spin 80s linear infinite; }
.su-pv polygon { fill: #1a2552; stroke: #3a4a80; transition: fill .9s, stroke .9s; }
.su-pv polygon.on { fill: #24418f; stroke: #3fc4c0; }
.su-pv polygon.full { fill: #2f74c9; }
@-webkit-keyframes rd-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes rd-spin { to { transform: rotate(360deg); } }

.su-sheet { position: relative; z-index: 3; margin-top: -26px; background: #111a38; border: 1px solid #26335f; border-radius: 20px; padding: 20px 18px 18px; box-shadow: 0 -10px 40px rgba(5,9,26,.55); }
.su-head { display: flex; align-items: baseline; justify-content: space-between; }
.su-head h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 600; font-size: 20px; margin: 0; }
.su-meter { font-family: var(--f-mono); font-size: 12px; color: #9ea9cc; white-space: nowrap; }
.su-meter b { color: #e4c24a; font-weight: 500; }
.su-track { height: 4px; border-radius: 4px; background: #26335f; overflow: hidden; margin: 10px 0 16px; }
.su-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5b5fe0, #3fc4c0, #e4c24a); transition: width .6s ease; }
.su-lede { color: #9ea9cc; font-size: 14px; margin: 0 0 16px; }
.su-grid { display: grid; grid-gap: 12px; }
.su-f { display: grid; grid-gap: 6px; }
.su-f label { font-size: 13px; font-weight: 600; color: #eef1fb; display: flex; justify-content: space-between; }
.su-f label small { font-weight: 400; color: #9ea9cc; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.su-in { position: relative; }
.su-in svg { position: absolute; left: 13px; top: 50%; margin-top: -9px; width: 18px; height: 18px; stroke: #9ea9cc; fill: none; stroke-width: 1.6; pointer-events: none; }
.su-in input { width: 100%; min-height: 50px; padding: 12px 40px 12px 42px; background: #0c1430; border: 1px solid #26335f; border-radius: 12px; color: #eef1fb; outline: none; -webkit-appearance: none; appearance: none; }
.su-in input::placeholder { color: #5f6a91; }
.su-in input:focus { border-color: #3fc4c0; box-shadow: 0 0 0 3px rgba(63,196,192,.18); }
.su-in.ok svg, .su-in input:focus + svg { stroke: #3fc4c0; }
.su-tick { position: absolute; right: 13px; top: 50%; margin-top: -11px; color: #3fc4c0; opacity: 0; transition: opacity .25s; }
.su-in.ok .su-tick { opacity: 1; }
.su-in.bad input { border-color: #ff7a7a; }
.su-err { color: #ff7a7a; font-size: 12.5px; margin: 0; }
.su-row2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; }
@media (max-width: 420px) { .su-row2 { grid-template-columns: 1fr; } }
.su-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-gap: 8px; }
.su-role { display: grid; justify-items: center; grid-gap: 6px; padding: 12px 6px 10px; min-height: 84px; border-radius: 12px; border: 1px solid #26335f; background: #0c1430; color: #eef1fb; font-size: 12.5px; font-weight: 500; line-height: 1.2; text-align: center; }
.su-role svg { width: 26px; height: 26px; stroke: #9ea9cc; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.su-role[aria-pressed="true"] { border-color: #3fc4c0; background: rgba(63,196,192,.12); }
.su-role[aria-pressed="true"] svg { stroke: #3fc4c0; }
.su-optin { display: flex; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px dashed #26335f; font-size: 13px; color: #9ea9cc; }
.su-optin input { width: 20px; height: 20px; margin: 1px 12px 0 0; accent-color: #3fc4c0; flex-shrink: 0; }
.su-optin b { color: #eef1fb; }
.su-privacy { display: flex; align-items: flex-start; font-size: 12.5px; color: #9ea9cc; }
.su-privacy svg { flex-shrink: 0; width: 18px; height: 18px; stroke: #3fc4c0; fill: none; stroke-width: 1.6; margin: 1px 10px 0 0; }
.su-go { position: relative; overflow: hidden; width: 100%; min-height: 54px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 16px; color: #0b1230; background: #3fc4c0; background: linear-gradient(100deg, #3fc4c0, #8fd9c4 55%, #e4c24a); }
.su-go svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; margin-left: 10px; }
.su-go[aria-disabled="true"] { filter: saturate(.25) brightness(.7); }
.su-go[aria-disabled="false"]:after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); -webkit-animation: su-sheen 2.8s ease-in-out infinite; animation: su-sheen 2.8s ease-in-out infinite; }
@-webkit-keyframes su-sheen { from { -webkit-transform: translateX(-100%); } 60%, to { -webkit-transform: translateX(100%); } }
@keyframes su-sheen { from { transform: translateX(-100%); } 60%, to { transform: translateX(100%); } }
.su-foot { text-align: center; color: #9ea9cc; font-size: 12px; margin-top: 18px; display: grid; grid-gap: 4px; }
.su-mono { font-family: var(--f-mono); letter-spacing: .06em; font-size: 11px; text-transform: uppercase; }

/* ══ Home ═══════════════════════════════════════════════════════════════ */
.rd .home-main { display: grid; grid-gap: 18px; align-content: start; }
.rd .install-banner { margin: 0; }
.rd-sky { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 0; color: #fff; box-shadow: var(--rd-shadow); background: #16234a; }
.rd-skycv { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.rd-sky > *:not(canvas) { position: relative; }
.rd-eyebrow { margin: 0 0 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.rd-sky h1 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 30px; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.02; margin: 0; max-width: 15ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); color: #fff; }
.rd-sky h1 em { font-style: normal; color: #ffe08a; }
.rd-tally { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; grid-gap: 22px; margin-top: 16px; padding: 12px 0 14px; border-top: 1px solid rgba(255,255,255,.2); }
.rd-tally div { display: grid; }
.rd-tally b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.rd-tally span { font-size: 11px; color: rgba(255,255,255,.78); }
.rd-sky-empty { padding-bottom: 20px; }
.rd-sky-p { margin: 10px 0 12px; max-width: 46ch; color: rgba(255,255,255,.9); font-size: 14.5px; }
.rd-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-gap: 8px; font-size: 14px; }
.rd-steps li { display: flex; align-items: center; }
.rd-steps li span { width: 24px; height: 24px; border-radius: 50%; margin-right: 10px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; flex-shrink: 0; }
.rd-sky-actions { display: grid; grid-gap: 10px; justify-items: start; }
.rd-sky-actions .rd-btn { width: 100%; max-width: 340px; }
.rd-sky-link { color: #fff; display: inline-flex; align-items: center; font-size: 14px; }
.rd-sky-link svg { margin-right: 6px; }

.rd-resume { display: grid; grid-template-columns: 92px 1fr auto; grid-gap: 12px; align-items: center; width: 100%; text-align: left; margin-top: -8px; padding: 10px 12px 10px 10px; border-radius: 18px; border: 1px solid var(--rd-line-2); background: var(--card); color: var(--text); box-shadow: var(--rd-shadow); }
.rd-resume .rd-art { border-radius: 12px; overflow: hidden; background: var(--rd-ground); }
.rd-resume-t { min-width: 0; display: grid; grid-gap: 2px; }
.rd-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--rd-amber); }
.rd-resume b { font-size: 15.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-resume-t > span:last-child { color: var(--muted); font-size: 13px; }
.rd-go { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0b1230; background: #3fc4c0; background: linear-gradient(135deg, #3fc4c0, #e4c24a); }

.rd-head { display: flex; align-items: baseline; justify-content: space-between; }
.rd-head h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 19px; margin: 0; }
.rd-head .home-new { display: none; }
.rd-mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rd-filters { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: -6px; padding-bottom: 2px; }
.rd-filters button { flex-shrink: 0; margin-right: 8px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.rd-filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rd-filters em { font-style: normal; font-family: var(--f-mono); font-size: 11px; opacity: .7; margin-left: 5px; }
.rd-cards { display: grid; grid-gap: 12px; }
@media (min-width: 640px) { .rd-cards { grid-template-columns: 1fr 1fr; } }
.rd-none { color: var(--muted); text-align: center; padding: 14px; margin: 0; }

.rd-site { display: block; width: 100%; padding: 0; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--text); overflow: hidden; box-shadow: var(--rd-shadow); --st: var(--muted); }
.rd-site[data-stage="prog"] { --st: var(--rd-amber); } .rd-site[data-stage="ready"] { --st: var(--rd-teal-ink); } .rd-site[data-stage="sent"] { --st: var(--rd-gold); }
.rd-site:active { transform: scale(.99); }
.rd-art { position: relative; background: var(--rd-raise); background: linear-gradient(180deg, var(--rd-raise), var(--rd-ground)); }
.rd-site .rd-art { border-bottom: 1px solid var(--line); }
.rd-art svg.scene { display: block; width: 100%; height: auto; }
.rd-flag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--st); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.rd-flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--st); margin-right: 6px; }
.rd-job { position: absolute; right: 12px; top: 14px; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; }
.rd-info { padding: 12px 14px 14px; display: grid; grid-gap: 7px; }
.rd-name { font-size: 16.5px; line-height: 1.2; }
.rd-addr { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.rd-tags { display: flex; flex-wrap: wrap; }
.rd-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--rd-raise); color: var(--muted); margin: 0 5px 3px 0; }
.rd-tag-s { color: var(--text); border: 1px solid var(--line); background: transparent; }
.rd-tag-g { color: var(--rd-gold); }
.rd-segs { display: flex; }
.rd-segs i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); margin-right: 3px; }
.rd-segs i:last-child { margin-right: 0; }
.rd-segs i.done { background: var(--rd-teal-ink); } .rd-segs i.prog { background: var(--rd-amber); } .rd-segs i.skip { background: var(--rd-line-2); }
.rd-foot { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

.rd-tools { display: grid; grid-gap: 10px; }
@media (min-width: 640px) { .rd-tools { grid-template-columns: 1fr 1fr; } }
.rd-tool { display: grid; grid-template-columns: auto 1fr; grid-gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; text-decoration: none; }
.rd-tool svg { color: var(--rd-teal-ink); }
.rd-tool b { display: block; font-size: 14.5px; }
.rd-tool span { display: block; color: var(--muted); font-size: 12.5px; }

/* Plan-set card (home, settings, reports) — Techverse navy in both modes */
.rd-crm { position: relative; overflow: hidden; display: grid; grid-gap: 12px; border-radius: 22px !important; padding: 20px 18px 18px !important; background: #16234a !important; color: #eef1fb; border: 0 !important; box-shadow: var(--rd-shadow); }
.rd-crm:before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(228,194,74,.35), rgba(63,196,192,.12) 50%, transparent 70%); }
.rd-crm > * { position: relative; margin: 0 !important; }
.rd-crm-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e4c24a; }
.rd-crm h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 22px; line-height: 1.05; color: #fff; max-width: 17ch; }
.rd-crm p { color: #b7c0de; font-size: 14px; }
.rd-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; grid-gap: 6px; text-align: center; font-size: 11.5px; color: #dfe4f5; }
.rd-flow div { display: grid; justify-items: center; grid-gap: 3px; padding: 8px 4px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.rd-flow div svg { color: #3fc4c0; }
.rd-flow i { font-style: normal; color: #7f8ab3; }
.rd-crm .rd-btn-prime { box-shadow: none; }
.rd-contact { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; }
.rd-btn-wa { background: transparent; color: #4be08a; border-color: rgba(37,211,102,.45); }
.rd-btn-line { background: transparent; color: #eef1fb; border-color: rgba(255,255,255,.2); }
.rd-mail { text-align: center; color: #b7c0de; font-size: 12.5px; -webkit-user-select: all; user-select: all; }

@media (min-width: 900px) { .rd-head .home-new { display: inline-flex; } }

/* ══ Survey screen (site map + site walk) ═══════════════════════════════ */
.rd-hub { display: grid; grid-gap: 16px; }
.rd-map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--rd-raise); background: linear-gradient(180deg, var(--rd-raise), var(--rd-ground)); box-shadow: var(--rd-shadow); }
.rd-map svg.scene { display: block; width: 100%; height: auto; }
.rd-map-over { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.rd-map-over b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.rd-map-over small { font-size: 14px; color: var(--muted); }
.rd-map-over span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rd-legend { display: flex; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12px; }
.rd-legend span { display: inline-flex; align-items: center; margin-right: 14px; }
.rd-legend i { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.rd-legend i.done { background: var(--rd-teal-ink); } .rd-legend i.prog { background: var(--rd-amber); } .rd-legend i.todo { border: 2px solid var(--rd-dim); } .rd-legend i.skip { border: 2px dashed var(--rd-dim); }

.rd-facts { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.rd-facts div { background: var(--card); padding: 10px 12px; min-width: 0; }
.rd-facts div.w { grid-column: 1 / -1; }
.rd-facts div:last-child:nth-child(even) { grid-column: 1 / -1; }
.rd-facts span { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rd-facts b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-facts b i { font-style: normal; color: var(--muted); font-weight: 400; }

.rd-pdf { display: grid; grid-template-columns: auto 1fr; grid-gap: 10px 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.rd-pdf.missing { border: 1px dashed var(--rd-line-2); }
.rd-doc { width: 38px; height: 46px; border-radius: 6px; background: #fff; color: #c23b3b; border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-family: var(--f-mono); font-size: 9.5px; }
.rd-pdf-t { min-width: 0; }
.rd-pdf-t b { display: block; font-size: 14.5px; }
.rd-pdf-t span { color: var(--muted); font-size: 12.5px; word-break: break-word; }
.rd-pdf-a { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-gap: 8px; }
.rd-pdf-a .btn-primary { display: flex; align-items: center; justify-content: center; }
.rd-pdf-a .btn-primary svg { margin-right: 8px; }

.rd-tip { display: flex; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: -6px 0 0; }
.rd-tip svg { color: var(--rd-gold); flex-shrink: 0; margin: 1px 10px 0 0; }
.rd-walk { list-style: none; margin: 0; padding: 0; display: grid; }
.rd-walk li { position: relative; padding: 0 0 10px 46px; }
.rd-walk li:before { content: ""; position: absolute; left: 17px; top: 40px; bottom: -2px; width: 2px; background: var(--line); }
.rd-walk li:last-child:before { display: none; }
.rd-walk li.done:before { background: var(--rd-teal-ink); }
.rd-n { position: absolute; left: 0; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; border: 2px solid var(--rd-line-2); background: var(--bg); color: var(--muted); }
.rd-walk .done .rd-n { border-color: var(--rd-teal-ink); background: var(--rd-teal-ink); color: #fff; }
:root[data-theme="dark"] .rd-walk .done .rd-n { color: #0b1230; }
.rd-walk .prog .rd-n { border-color: var(--rd-amber); color: var(--rd-amber); }
.rd-walk .skip .rd-n { border-style: dashed; }
.rd-step { display: grid; grid-template-columns: auto 1fr auto; grid-gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.rd-walk .prog .rd-step { border-color: var(--rd-amber); }
.rd-step:active { transform: scale(.99); }
.rd-step-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--rd-raise); display: flex; align-items: center; justify-content: center; color: var(--icon); }
.rd-step-t { min-width: 0; }
.rd-step-t b { display: block; font-weight: 600; font-size: 15px; }
.rd-step-t span { display: block; color: var(--muted); font-size: 12.5px; }
.rd-chip { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.rd-chip.done { color: var(--rd-teal-ink); background: var(--rd-teal-soft); }
.rd-chip.prog { color: var(--rd-amber); background: var(--rd-amber-soft); }
.rd-chip.todo, .rd-chip.skip { color: var(--muted); background: var(--rd-raise); }
@media (max-width: 360px) { .rd-step { grid-template-columns: 1fr auto; } .rd-step-ic { display: none; } }

.rd-extras { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; }
@media (max-width: 480px) { .rd-extras { grid-template-columns: 1fr 1fr; } .rd-extras .rd-tile:first-child { grid-column: 1 / -1; } }
.rd-tile { display: grid; grid-gap: 6px; align-content: start; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.rd-tile svg { color: var(--rd-teal-ink); }
.rd-tile b { font-weight: 600; font-size: 14.5px; }
.rd-tile b small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.rd-tile span { color: var(--muted); font-size: 12.5px; }

/* ── Site drawings ── */
svg.scene .d-ground { fill: var(--rd-ground); }
svg.scene .d-horizon { stroke: var(--rd-line-2); stroke-width: 1; }
svg.scene .d-line { stroke: var(--rd-draw); fill: var(--rd-draw-fill); stroke-width: 1.4; stroke-linejoin: round; }
svg.scene .d-thin { stroke: var(--rd-draw); fill: none; stroke-width: 1; }
svg.scene .d-dash { stroke-dasharray: 2 4; opacity: .6; }
svg.scene .el { stroke-width: 1.4; stroke-linejoin: round; transition: stroke .4s, fill .4s; }
svg.scene .el.done { stroke: var(--rd-teal-ink); fill: var(--rd-teal-soft); }
svg.scene .el.prog { stroke: var(--rd-amber); fill: var(--rd-amber-soft); }
svg.scene .el.todo { stroke: var(--rd-dim); fill: var(--rd-draw-fill); }
svg.scene .el.skip { stroke: var(--rd-dim); fill: var(--rd-draw-fill); stroke-dasharray: 3 2; }
svg.scene .d-attic { fill: none !important; stroke-dasharray: 3 3; stroke-width: 1.2; }
svg.scene .d-arrow { fill: none !important; stroke-width: 2.2; stroke-linecap: round; }
svg.scene .hs { cursor: pointer; }
svg.scene .hs .ring { fill: var(--bg); stroke-width: 2; }
svg.scene .hs text { font-family: var(--f-mono); font-size: 9.5px; text-anchor: middle; dominant-baseline: central; }
svg.scene .hs.done .ring { stroke: var(--rd-teal-ink); fill: var(--rd-teal-ink); }
svg.scene .hs.done text { fill: #fff; }
:root[data-theme="dark"] svg.scene .hs.done text { fill: #0b1230; }
svg.scene .hs.prog .ring { stroke: var(--rd-amber); }
svg.scene .hs.prog text { fill: var(--rd-amber); }
svg.scene .hs.todo .ring, svg.scene .hs.skip .ring { stroke: var(--rd-dim); }
svg.scene .hs.todo text, svg.scene .hs.skip text { fill: var(--text); }
svg.scene .hs .halo { fill: none; stroke: var(--rd-amber); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; -webkit-animation: rd-halo 1.8s ease-out infinite; animation: rd-halo 1.8s ease-out infinite; }
svg.scene .hs:focus .ring { stroke-width: 3; }
@-webkit-keyframes rd-halo { from { -webkit-transform: scale(1); opacity: .9; } to { -webkit-transform: scale(2.1); opacity: 0; } }
@keyframes rd-halo { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* Desktop: wider site map beside nothing — keep it readable */
@media (min-width: 900px) { .rd-hub { max-width: 760px; margin: 0 auto; } }

@media (prefers-reduced-motion: reduce) {
  .su-rays, .su-go:after, svg.scene .hs .halo { -webkit-animation: none !important; animation: none !important; }
  #su-sun, .su-pv polygon, .su-track i { transition: none !important; }
}

/* Narrow phones: give the screen title more room in the app bar */
@media (max-width: 520px) {
  .offline-pill { font-size: 9px; letter-spacing: .03em; padding: 3px 6px; }
  .appbar { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .appbar button { min-width: 40px; padding: 8px 6px; }
}
