:root{
  --ground:#E9ECE7; --surface:#FFFFFF; --surface2:#F3F5F1; --ink:#18222D; --muted:#56616C; --line:#D6DBD4;
  --sign:#1C2733; --signInk:#F4F6F7; --signMuted:#A9B4BE; --amber:#F2B90F; --amberInk:#1C2733;
  --ok:#1D7F55; --okSoft:#DDF0E6; --warn:#A8480A; --warnSoft:#FBE9DC; --focus:#2F6FEB;
  --shadow:0 30px 60px -30px rgba(28,39,51,.35), 0 2px 6px rgba(28,39,51,.06);
  --display:"Archivo","Arial Narrow",system-ui,sans-serif;
  --body:"Atkinson Hyperlegible",system-ui,-apple-system,"Segoe UI",sans-serif;
  --arabic:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --ground:#0B1015; --surface:#141B23; --surface2:#1A232D; --ink:#E6EAEE; --muted:#9AA5B0; --line:#29333E;
    --sign:#080C10; --signInk:#F4F6F7; --signMuted:#8E99A4; --amber:#F2B90F; --amberInk:#141B23;
    --ok:#46C08A; --okSoft:#15342A; --warn:#F2914A; --warnSoft:#3A2517; --focus:#7AA5FF;
    --shadow:0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ground:#0B1015; --surface:#141B23; --surface2:#1A232D; --ink:#E6EAEE; --muted:#9AA5B0; --line:#29333E;
  --sign:#080C10; --signInk:#F4F6F7; --signMuted:#8E99A4; --amber:#F2B90F; --amberInk:#141B23;
  --ok:#46C08A; --okSoft:#15342A; --warn:#F2914A; --warnSoft:#3A2517; --focus:#7AA5FF;
  --shadow:0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--ground);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;padding-inline:16px;padding-block:24px;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
h1,h2,h3{text-wrap:balance;margin:0}

.stage{display:flex;gap:56px;justify-content:center;align-items:center;min-height:100%}

/* ---------- Arrival poster (desktop only) ---------- */
.poster{width:320px;flex:none;display:flex;flex-direction:column;gap:20px}
.poster-sign{background:var(--sign);color:var(--signInk);border-radius:6px;padding:28px 26px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}
.poster-sign .kick{font-family:var(--display);font-stretch:85%;font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:12px;color:var(--signMuted)}
.poster-sign h2{font-family:var(--display);font-stretch:80%;font-weight:800;font-size:40px;line-height:1;color:var(--amber);text-transform:uppercase}
.poster-sign p{margin:0;color:var(--signInk);font-size:15px}
.qr-row{display:flex;gap:16px;align-items:center}
.qr-row canvas{width:96px;height:96px;background:#fff;border-radius:4px;padding:6px;flex:none}
.qr-row span{font-size:13px;color:var(--signMuted)}
.poster-notes{display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--muted)}
.poster-notes strong{color:var(--ink)}
.scan-as{display:flex;flex-wrap:wrap;gap:8px}
.scan-as button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 12px;font-size:13px}
.scan-as button[aria-pressed="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
@media (max-width:900px){.poster{display:none}}

/* ---------- Device ---------- */
.device{width:100%;max-width:400px;height:min(840px,calc(100dvh - 48px));min-height:640px;background:var(--surface);border-radius:32px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;position:relative}
.device[lang="ar"],
.device[lang="ur"]{font-family:var(--arabic)}
@media (max-width:520px){
  body{padding-inline:0;padding-block:0}
  .stage{display:block;height:100%;min-height:0}
  .device{max-width:none;height:100%;min-height:0;border-radius:0;border:0;box-shadow:none}
}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line);flex:none}
.brand{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:800;font-stretch:90%;font-size:20px;letter-spacing:-.01em;background:none;border:0;padding:0}
.brand-mark{width:22px;height:22px;flex:none}
.top-actions{display:flex;align-items:center;gap:8px}
.badge{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);border:1px dashed var(--line);border-radius:4px;padding:2px 6px}
.device[lang="ar"] .badge,
.device[lang="ur"] .badge{letter-spacing:0}
.lang-toggle{border:1px solid var(--line);background:var(--surface2);border-radius:999px;padding:4px 12px;font-size:14px;min-height:32px}

.scroll{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}
.content{padding:20px;display:flex;flex-direction:column;gap:18px;flex:1}
.actions{flex:none;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);display:flex;gap:10px;background:var(--surface)}
.actions:empty{display:none}

/* Wayfinding sign header */
.sign{background:var(--sign);color:var(--signInk);padding:20px;display:flex;flex-direction:column;gap:6px;flex:none}
.sign .eyebrow{font-family:var(--display);font-weight:700;font-stretch:85%;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--signMuted);display:flex;align-items:center;gap:8px}
.device[lang="ar"] .sign .eyebrow,
.device[lang="ur"] .sign .eyebrow{font-family:var(--arabic);letter-spacing:0;font-size:13px}
.sign h1{font-family:var(--display);font-stretch:82%;font-weight:800;font-size:30px;line-height:1.05;color:var(--amber)}
.device[lang="ar"] .sign h1,
.device[lang="ur"] .sign h1{font-family:var(--arabic);font-weight:700;font-size:27px;line-height:1.3}
.sign p{margin:0;color:var(--signInk);opacity:.9;font-size:15px}
.sign-row{display:flex;align-items:center;gap:12px}
.sign-icon{width:40px;height:40px;border-radius:6px;background:var(--amber);color:var(--amberInk);display:grid;place-items:center;flex:none}
.sign-icon svg{width:24px;height:24px}

.lead{font-size:15px;color:var(--muted);margin:0}
.label{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.device[lang="ar"] .label,
.device[lang="ur"] .label{letter-spacing:0;font-size:13px}

/* Buttons */
.btn{border:0;border-radius:12px;padding:14px 18px;font-weight:700;font-size:16px;min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1}
.btn-primary{background:var(--amber);color:var(--amberInk)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-quiet{background:var(--surface2);color:var(--ink);border:1px solid var(--line);flex:0 0 auto}
.btn-help{background:var(--surface);color:var(--ink);border:2px solid var(--ink);flex:0 0 auto;padding-inline:16px}
.btn-help:hover{background:var(--surface2)}
.help-ico{width:22px;height:22px;flex:none;color:var(--ink)}
.chev{width:18px;height:18px;flex:none}
.device[dir="rtl"] .chev,.device [dir="rtl"] .chev{transform:scaleX(-1)}

/* Choice lists */
.choices{display:flex;flex-direction:column;gap:10px}
.choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:start;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;min-height:56px;font-size:17px}
.choice:hover:not([disabled]){border-color:var(--ink)}
.choice[aria-pressed="true"]{border-color:var(--ink);background:var(--surface2);box-shadow:inset 0 0 0 1.5px var(--ink)}
.choice[disabled]{color:var(--muted);cursor:default;background:var(--surface2);border-style:dashed}
.choice small{font-size:13px;color:var(--muted)}
.choice .main{display:flex;flex-direction:column;gap:2px}
.pill{font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px;white-space:nowrap}
.pill-ok{background:var(--okSoft);color:var(--ok)}
.pill-soon{background:var(--surface2);color:var(--muted);border:1px solid var(--line)}
.pill-amber{background:var(--amber);color:var(--amberInk)}

/* Needs grid */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:start;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:14px;min-height:108px;position:relative}
.tile svg{width:26px;height:26px}
.tile .t{font-weight:700;font-size:15px;line-height:1.25}
.tile .s{font-size:12px;color:var(--muted);margin-top:auto}
.tile.ready{border-color:var(--ink)}
.tile.ready .s{color:var(--ok);font-weight:700}
.tile:hover{border-color:var(--ink)}
.tile.wide{grid-column:1 / -1;flex-direction:row;align-items:center;min-height:0;background:var(--surface2)}
.tile.wide .s{margin-top:0;margin-inline-start:auto}

/* Metro-line journey map */
.line{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;position:relative}
.station{position:relative;padding-inline-start:44px}
.station::before{content:"";position:absolute;inset-inline-start:15px;top:0;bottom:0;width:6px;background:var(--line)}
.station:first-child::before{top:26px}
.station:last-child::before{bottom:calc(100% - 26px)}
.station.done::before{background:var(--ok)}
.station.done + .station::before{background:linear-gradient(var(--ok) 26px,var(--line) 26px)}
.station button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:none;border:0;padding:12px 0;text-align:start;border-bottom:1px solid var(--line)}
.station:last-child button{border-bottom:0}
.station .dot{position:absolute;inset-inline-start:6px;top:14px;width:24px;height:24px;border-radius:50%;background:var(--surface);border:5px solid var(--line);display:grid;place-items:center}
.station.done .dot{background:var(--ok);border-color:var(--ok)}
.station.done .dot::after{content:"";width:8px;height:5px;border-inline-start:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.station.current .dot{border-color:var(--amber);box-shadow:0 0 0 4px color-mix(in srgb,var(--amber) 30%,transparent)}
.station .n{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.station .nm{font-weight:700;font-size:16px}
.station .sub{font-size:14px;color:var(--muted)}

.progress{display:flex;flex-direction:column;gap:8px}
.bar{height:8px;border-radius:99px;background:var(--surface2);border:1px solid var(--line);overflow:hidden}
.bar i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .4s ease}
.progress-text{display:flex;justify-content:space-between;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}

/* Step content blocks */
.stepnav{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--signMuted);font-variant-numeric:tabular-nums}
.ticks{display:flex;gap:4px}
.ticks i{width:18px;height:4px;border-radius:2px;background:#3A4652}
.ticks i.on{background:var(--amber)}
.ticks i.ok{background:var(--ok)}
.blk-p{margin:0;font-size:17px;line-height:1.55}
.blk-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.blk-list li{position:relative;padding-inline-start:22px;font-size:16px}
.blk-list li::before{content:"";position:absolute;inset-inline-start:2px;top:.55em;width:8px;height:8px;border-radius:2px;background:var(--amber)}
.blk-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:0;counter-reset:s}
.blk-steps li{counter-increment:s;display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line);font-size:16px}
.blk-steps li:last-child{border-bottom:0}
.blk-steps li::before{content:counter(s);flex:none;width:30px;height:30px;border-radius:6px;background:var(--sign);color:var(--amber);font-family:var(--display);font-weight:800;display:grid;place-items:center;font-size:15px}
.cards{display:flex;flex-direction:column;gap:10px}
.card{border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.card.rec{border-color:var(--ink)}
.card-head{display:flex;align-items:center;gap:10px}
.swatch{width:34px;height:22px;border-radius:4px;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.card-head strong{font-size:16px}
.card-head .pill{margin-inline-start:auto}
.card p{margin:0;font-size:15px;color:var(--muted)}
.tip{background:var(--surface2);border-inline-start:4px solid var(--amber);border-radius:8px;padding:12px 14px;font-size:15px}
.tip b{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
.device[lang="ar"] .tip b,
.device[lang="ur"] .tip b{letter-spacing:0}
.linkish{background:none;border:0;padding:0;color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-weight:700}

.source{margin-top:auto;border-top:1px solid var(--line);padding-top:14px;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.source a{color:var(--ink);font-weight:700}
.source .meta{display:flex;flex-wrap:wrap;gap:4px 14px}
.source .verify{color:var(--warn)}

/* Sheets (overlay) */
.sheet-wrap{position:absolute;inset:0;background:rgba(10,15,20,.5);display:flex;align-items:flex-end;z-index:5;animation:fade .2s ease}
.sheet{background:var(--surface);width:100%;max-height:88%;overflow-y:auto;border-radius:22px 22px 0 0;padding:10px 20px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px;animation:up .25s ease}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);align-self:center}
.sheet h2{font-family:var(--display);font-stretch:85%;font-weight:800;font-size:24px}
.device[lang="ar"] .sheet h2,
.device[lang="ur"] .sheet h2{font-family:var(--arabic);font-weight:700}
.answer{background:var(--surface2);border-inline-start:4px solid var(--amber);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.answer h3{font-size:17px;color:var(--ink)}
.answer p{margin:0;font-size:16px}
.sheet.full{height:100%;max-height:100%;border-radius:0;padding-top:16px;gap:18px}
.sheet-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.back-link{white-space:nowrap;display:inline-flex;align-items:center;gap:4px;text-decoration:none;font-size:15px}
.back-link .chev{transform:scaleX(-1)}
.device[dir="rtl"] .back-link .chev{transform:none}
.calm{background:var(--okSoft);color:var(--ink);border-radius:14px;padding:16px;font-size:17px;line-height:1.5;border-inline-start:4px solid var(--ok)}
.gstep{display:flex;flex-direction:column;gap:12px}
.gcount{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.gticks i{background:var(--line)}
.gstep h3{font-family:var(--display);font-stretch:85%;font-weight:800;font-size:28px;line-height:1.1}
.device[lang="ar"] .gstep h3,
.device[lang="ur"] .gstep h3{font-family:var(--arabic);font-weight:700;font-size:26px;line-height:1.35}
.gstep p{margin:0;font-size:19px;line-height:1.55}
.gnav{display:flex;gap:10px;margin-top:auto}
.outcome{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.outcome .linkish{align-self:center;padding:6px}
.btn.wide{flex:1}
.help-card{border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.help-card strong{font-size:17px}
.help-card p{margin:0;font-size:15px;color:var(--muted)}
.phone{font-family:var(--display);font-weight:800;font-size:30px;letter-spacing:.02em;font-variant-numeric:tabular-nums;user-select:all;align-self:flex-start}
.field-label{font-size:14px;font-weight:700}
.field{width:100%;font:inherit;font-size:17px;padding:12px 14px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface2);color:var(--ink)}
.field:focus{border-color:var(--ink);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 35%,transparent)}
.sign-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:6px}
.listen{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 14px;min-height:36px;font-weight:700;font-size:14px;background:var(--amber);color:var(--amberInk);border:0}
.gcount .listen{margin-inline-start:auto}
.lic{width:18px;height:18px}
.vchip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px;align-self:flex-start;margin-top:4px}
.vchip .lv-dot,.ladder .lv-dot{width:8px;height:8px;border-radius:50%;flex:none}
.v-draft{border:1px dashed var(--line);color:var(--muted)}
.v-draft .lv-dot,.lv-draft .lv-dot{background:transparent;border:2px solid var(--muted)}
.v-source{background:color-mix(in srgb,var(--focus) 14%,transparent);color:var(--focus)}
.v-source .lv-dot,.lv-source .lv-dot{background:var(--focus)}
.v-site{background:var(--okSoft);color:var(--ok)}
.v-site .lv-dot,.lv-site .lv-dot{background:var(--ok)}
.vchip.on-dark{margin-top:0}
.vchip.on-dark.v-draft{border-color:#4A5663;color:var(--signMuted)}
.vchip.on-dark.v-draft .lv-dot{border-color:var(--signMuted)}
.ladder{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ladder li{display:flex;gap:10px;align-items:baseline;opacity:.75}
.ladder li .lv-dot{transform:translateY(-1px)}
.ladder li.here{opacity:1;color:var(--ink)}
.ladder li strong{color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}
.chips .vchip{margin-top:0}
.warn-tip{border-inline-start-color:var(--warn)}
.linkbtn{text-decoration:none;flex:0 0 auto}
.now-box{background:var(--sign);color:var(--signInk);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.now-box .label{color:var(--amber)}
.now-box p{margin:0;font-size:16px}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(30px);opacity:.4}}

.phrase{background:var(--sign);color:var(--signInk);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:16px}
.phrase .ar{font-family:var(--arabic);font-size:28px;line-height:1.5;color:var(--amber);font-weight:700}
.phrase .en{font-size:20px;font-weight:700;font-family:var(--body)}
.phrase hr{border:0;border-top:1px solid #3A4652;margin:0}

/* Welcome */
.hero-sign{background:var(--sign);color:var(--signInk);padding:28px 22px 26px;display:flex;flex-direction:column;gap:12px}
.hero-sign .kick{font-family:var(--display);font-stretch:85%;font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--signMuted)}
.device[lang="ar"] .hero-sign .kick,
.device[lang="ur"] .hero-sign .kick{font-family:var(--arabic);letter-spacing:0;font-size:14px}
.hero-sign h1{font-family:var(--display);font-stretch:78%;font-weight:800;font-size:46px;line-height:.98;text-transform:uppercase;color:var(--amber)}
.device[lang="ar"] .hero-sign h1,
.device[lang="ur"] .hero-sign h1{font-family:var(--arabic);font-weight:700;font-size:38px;line-height:1.25;text-transform:none}
.hero-sign p{margin:0;font-size:16px;opacity:.92;max-width:30ch}
.arrow-row{display:flex;gap:6px;align-items:center;color:var(--amber);margin-top:4px}
.arrow-row svg{width:28px;height:28px}
.device[dir="rtl"] .arrow-row svg{transform:scaleX(-1)}
.lang-name{font-size:18px;font-weight:700}
.disclaimer{font-size:13px;color:var(--muted);margin:0}

.week{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:w}

.done-hero{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.done-hero .big{width:64px;height:64px;border-radius:50%;background:var(--ok);display:grid;place-items:center}
.done-hero .big::after{content:"";width:22px;height:12px;border-inline-start:4px solid #fff;border-bottom:4px solid #fff;transform:translateY(-3px) rotate(-45deg)}
.device[dir="rtl"] .done-hero .big::after{transform:translateY(-3px) rotate(45deg) scaleX(-1)}

.toast{position:absolute;left:50%;bottom:92px;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:10px 16px;border-radius:999px;font-size:14px;z-index:6;white-space:nowrap;animation:fade .2s ease}

@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}

/* ---------- Real-app additions ---------- */
:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
[hidden]{display:none!important}
html,body{margin:0}
.v-official{background:color-mix(in srgb,var(--focus) 14%,transparent);color:var(--focus)}
.v-official .lv-dot,.lv-official .lv-dot{background:var(--focus)}
.v-reviewed{background:var(--okSoft);color:var(--ok)}
.v-reviewed .lv-dot,.lv-reviewed .lv-dot{background:var(--ok)}
.v-tested{background:color-mix(in srgb,var(--amber) 22%,transparent);color:var(--ink)}
.v-tested .lv-dot,.lv-tested .lv-dot{background:var(--amber)}
.vchip.on-dark.v-tested{color:var(--amber)}
.ladder li.off{opacity:.55}
.ladder li.off .lv-dot{background:transparent;border:2px solid var(--muted)}
.install-bar{position:absolute;inset-inline:12px;bottom:88px;z-index:4;background:var(--sign);color:var(--signInk);border-radius:16px;padding:14px 16px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);animation:up .25s ease}
.install-bar div{display:flex;flex-direction:column;gap:2px;flex:1;font-size:14px}
.install-bar strong{color:var(--amber);font-size:15px}
.install-bar .btn{flex:0 0 auto;min-height:40px;padding:8px 16px}
.install-bar .linkish{color:var(--signInk);font-weight:400;font-size:14px}
.offline-note{background:var(--warnSoft);color:var(--warn);font-size:14px;font-weight:700;padding:8px 20px;flex:none}
.save-card{border:1.5px solid var(--ink);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.save-text{display:flex;flex-direction:column;gap:2px}
.save-text strong{font-size:16px}
.save-text span{font-size:14px;color:var(--muted)}
.save-actions{display:flex;align-items:center;gap:14px}
.save-actions .btn{flex:0 0 auto;min-height:44px;padding:10px 18px;font-size:15px}
.guide-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;counter-reset:g}
.guide-steps li{display:flex;gap:14px;align-items:center;font-size:17px;counter-increment:g}
.gicon{width:48px;height:48px;border-radius:12px;background:var(--sign);color:var(--amber);display:grid;place-items:center;flex:none;position:relative}
.gicon svg{width:26px;height:26px}
.gicon::after{content:counter(g);position:absolute;top:-6px;inset-inline-start:-6px;width:20px;height:20px;border-radius:50%;background:var(--amber);color:var(--amberInk);font-size:12px;font-weight:800;display:grid;place-items:center}
.guide-hint{font-size:14px;color:var(--muted)}
.jlink{border-style:solid;border-color:var(--ink);background:var(--surface2);font-size:16px;font-weight:700}
.emergency-box{background:#B3261E;color:#fff;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.emergency-box .label{color:#FFD9D6}
.em-nums{display:flex;gap:10px}
.em-nums a{flex:1;background:rgba(255,255,255,.14);border:1.5px solid rgba(255,255,255,.4);border-radius:12px;padding:10px 12px;color:#fff;text-decoration:none;display:flex;flex-direction:column;gap:2px;min-height:64px}
.em-nums b{font-family:var(--display);font-size:30px;line-height:1;font-weight:800}
.em-nums span{font-size:14px}
a.phone{color:var(--ink);text-decoration:none}
.top-left{display:flex;align-items:center;gap:6px}
.top-back{width:40px;height:40px;margin-inline-start:-10px;border:0;background:none;border-radius:50%;display:grid;place-items:center;color:var(--ink)}
.top-back:hover{background:var(--surface2)}
.top-back .chev{width:22px;height:22px;transform:scaleX(-1)}
.device[dir="rtl"] .top-back .chev{transform:none}

/* ---------- Laptop landing page ---------- */
.landing{display:none}
.demo-cap,.demo-tools{display:none}
.demo-col{display:contents}
@media (min-width:901px){
  body{padding-inline:40px;padding-block:32px;height:auto;min-height:100%}
  .stage{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:72px;max-width:1240px;margin:0 auto;align-items:start;min-height:0}
  .landing{display:flex;flex-direction:column;gap:56px;padding-block:8px 40px;max-width:680px}
  .demo-col{display:flex;flex-direction:column;gap:12px;position:sticky;top:24px}
  .demo-col .device{height:min(780px,calc(100dvh - 130px));min-height:600px}
  .demo-cap{display:block;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-align:center}
  .demo-tools{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
  .demo-tools .linkish{font-size:13px}
}
.land-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.land-brand{display:flex;align-items:center;gap:8px;font-family:var(--display);font-weight:800;font-stretch:90%;font-size:24px}
.land-brand svg{width:26px;height:26px}
.land-hero{display:flex;flex-direction:column;gap:18px}
.land-eyebrow,.land-label{font-family:var(--display);font-stretch:85%;font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.land-hero h1{font-family:var(--display);font-stretch:80%;font-weight:800;font-size:clamp(40px,4.6vw,60px);line-height:1.02;letter-spacing:-.01em}
.land-lead{margin:0;font-size:19px;line-height:1.55;color:var(--ink);max-width:56ch}
.land-qr{display:flex;align-items:center;gap:18px;background:var(--sign);color:var(--signInk);border-radius:16px;padding:16px 20px 16px 16px;align-self:flex-start}
.land-qr img{border-radius:8px;background:#fff;flex:none}
.land-qr div{display:flex;flex-direction:column;gap:4px}
.land-qr strong{color:var(--amber);font-size:18px}
.land-qr span{font-size:14px;color:var(--signInk);opacity:.9}
.land-qr .land-url{font-family:var(--display);font-weight:700;opacity:1}
.land-sec{display:flex;flex-direction:column;gap:16px}
.land-sec h2{font-family:var(--display);font-stretch:85%;font-weight:800;font-size:30px;line-height:1.1}
.land-p{margin:0;font-size:17px;line-height:1.6;max-width:60ch}
.land-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;counter-reset:ls}
.land-steps li{counter-increment:ls;display:grid;grid-template-columns:44px 1fr;gap:16px;padding:16px 0;border-top:1px solid var(--line);font-size:17px;line-height:1.55}
.land-steps li::before{content:counter(ls);width:36px;height:36px;border-radius:8px;background:var(--sign);color:var(--amber);font-family:var(--display);font-weight:800;font-size:18px;display:grid;place-items:center}
.land-steps b{display:block;font-size:18px}
.land-diff{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.land-diff div{border:1.5px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.land-diff div:first-child{border-color:var(--ink)}
.land-diff h3{font-size:17px;line-height:1.3}
.land-diff p{margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.land-trust{display:grid;grid-template-columns:auto 1fr;gap:10px 14px;align-items:center}
.land-trust .vchip{justify-self:start;margin:0}
.land-trust-t{font-size:15px;color:var(--muted)}
.land-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:8px}
.land-stats div{display:flex;flex-direction:column;gap:2px;padding:16px 12px 16px 0}
.land-stats b{font-family:var(--display);font-weight:800;font-size:36px;line-height:1;font-variant-numeric:tabular-nums}
.land-stats span{font-size:13px;color:var(--muted)}
.land-journeys{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.land-need{border:1.5px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--surface)}
.land-need-h{display:flex;align-items:center;gap:10px;font-weight:700;font-size:16px}
.land-need-h svg{width:22px;height:22px}
.land-need ul{margin:0;padding-inline-start:18px;display:flex;flex-direction:column;gap:4px;font-size:15px;color:var(--muted)}
.land-partner{background:var(--sign);color:var(--signInk);border-radius:20px;padding:28px}
.land-partner .land-label{color:var(--signMuted)}
.land-partner h2{color:var(--amber)}
.land-partner .land-p{color:var(--signInk)}
.land-foot{border-top:1px solid var(--line);padding-top:18px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.land-foot p{margin:0}
@media (max-width:1100px) and (min-width:901px){ .land-diff{grid-template-columns:1fr} .land-stats{grid-template-columns:repeat(2,1fr)} .land-journeys{grid-template-columns:1fr} }

/* ---------- Brand (brand board: navy #1C2733, yellow #F2B90F, Archivo headings, Atkinson body, geometric wordmark) ---------- */
:root{--brand:"Montserrat","Archivo",system-ui,sans-serif}
.wordmark{font-family:var(--brand);font-weight:600;letter-spacing:.06em;font-stretch:normal}
.brand .brand-mark{width:20px;height:20px;color:var(--ink)}
.brand .wordmark{font-size:18px}
.land-brand{gap:14px}
.land-brand > svg{width:38px;height:38px;color:var(--ink)}
.land-brand-text{display:flex;flex-direction:column;gap:3px;line-height:1}
.land-brand .wordmark{font-size:26px}
.tagline{font-family:var(--brand);font-weight:500;font-size:10.5px;letter-spacing:.32em;text-transform:uppercase;color:var(--muted)}

/* Urdu and Hindi fonts */
.device[lang="ur"]{font-family:"Noto Naskh Arabic",var(--arabic);line-height:1.75}
.device[lang="hi"]{font-family:"Noto Sans Devanagari",var(--body)}
.device[lang="bn"]{font-family:"Noto Sans Bengali",var(--body)}
.device[lang="bn"] .sign h1,.device[lang="bn"] .hero-sign h1{font-family:"Noto Sans Bengali",var(--display);line-height:1.35}
.device[lang="ml"]{font-family:"Noto Sans Malayalam",var(--body)}
.device[lang="ml"] .sign h1,.device[lang="ml"] .hero-sign h1{font-family:"Noto Sans Malayalam",var(--display);line-height:1.35;font-size:26px}
.device[lang="zh"]{font-family:var(--body),"PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC",sans-serif}
.device[lang="zh"] .sign h1,.device[lang="zh"] .hero-sign h1{font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC",sans-serif;letter-spacing:0}
.device[lang="hi"] .sign h1,.device[lang="hi"] .hero-sign h1{font-family:"Noto Sans Devanagari",var(--display);line-height:1.3}
.device[lang="hi"] .hero-sign h1{text-transform:none}
.beta-tr{border-color:var(--warn);color:var(--warn)}
.lang-toggle{display:inline-flex;align-items:center;gap:6px}
.globe{width:16px;height:16px}
.beta-tr{white-space:nowrap;font-size:10px;letter-spacing:.04em}
.topbar{min-width:0}.top-actions{flex-wrap:nowrap;min-width:0}
/* Staff phrase outside Dubai: English large for staff, reader's language underneath */
.phrase .en.big{font-size:26px;line-height:1.35;color:var(--amber)}
.phrase .mine{font-size:17px;line-height:1.5;font-weight:600;opacity:.9}
.phrase .mine[lang="ar"],.phrase .mine[lang="ur"]{font-family:var(--arabic);font-size:19px}

/* ---------- Your journeys (hub) ---------- */
.hub-card{border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px;background:var(--surface)}
.hub-title{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;font-family:var(--display);font-weight:800;font-size:21px;line-height:1.2}
.hub-title:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:6px}
.hub-here{display:flex;align-items:center;gap:10px;font-size:15px}
.hub-here .dot{width:12px;height:12px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 4px rgba(242,185,15,.25);flex:none}
.hub-state{border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;background:var(--surface2);border-inline-start:5px solid var(--ink)}
.hub-state strong{font-size:17px;line-height:1.35}
.hub-state .muted{font-size:14px;color:var(--muted)}
.hub-state.next{background:var(--sign);color:var(--signInk);border-color:var(--amber)}
.hub-state.next .label{color:var(--signMuted)}
.hub-state.waiting{border-color:var(--amber)}
.hub-state.blocked{background:var(--warnSoft);border-color:var(--warn)}
.hub-state.blocked .label{color:var(--warn)}
.hub-state.blocked .btn{align-self:flex-start;margin-top:6px}
.hub-state.done{border-color:var(--ok);background:var(--okSoft)}
.hub-need{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;font-weight:700}
.hub-need:focus-visible{outline:3px solid var(--focus)}
.hub-up ol{margin:6px 0 0;padding-inline-start:20px;color:var(--muted);font-size:14px;display:flex;flex-direction:column;gap:4px}
.hub-link{border-color:var(--amber);border-width:2px}
.test-panel{border:1px dashed var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--muted)}
.test-actions{display:flex;gap:12px;align-items:center}

/* ---------- What you'll need (checklist) ---------- */
.need-box{border:2px solid var(--ink);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.need-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.need-list{display:flex;flex-direction:column;gap:8px}
.need-item{all:unset;cursor:pointer;display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:12px;background:var(--surface2);border:1px solid var(--line)}
.need-item:focus-visible{outline:3px solid var(--focus)}
.need-item .tickbox{width:24px;height:24px;border-radius:7px;border:2px solid var(--ink);flex:none;display:grid;place-items:center;margin-top:1px}
.need-item.on .tickbox{background:var(--ok);border-color:var(--ok)}
.need-item.on .tickbox::after{content:"";width:6px;height:12px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg);margin-top:-3px}
.need-item.on .need-text > span{text-decoration:line-through;text-decoration-color:var(--muted)}
.need-text{display:flex;flex-direction:column;gap:2px;flex:1;font-size:16px}
.need-text small{color:var(--muted);font-size:13px}
.form-tag{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;border:1px solid var(--line);border-radius:6px;padding:2px 6px;color:var(--muted);flex:none;margin-top:2px}
.need-hint{font-size:13px;color:var(--muted)}

/* ---------- Places, maps and appointments ---------- */
.places{display:flex;flex-direction:column;gap:10px}
.place,.appt,.appt-form{border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.place-head,.appt-when{display:flex;align-items:flex-start;gap:10px}
.place-head strong{font-size:16px;line-height:1.35}
.appt-when strong{font-size:19px}
.place-ico{width:22px;height:22px;flex:none;color:var(--ink)}
.place p{margin:0;font-size:15px}
.place-addr{font-size:14px;color:var(--muted)}
.place-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:4px}
.place-actions .btn{flex:0 1 auto;display:inline-flex;align-items:center;gap:8px;text-decoration:none;min-height:44px;padding-inline:14px}
.btn-ico{width:18px;height:18px;flex:none}
.place-src{font-size:12px;color:var(--muted)}
.place-src a{color:inherit}
.choice.near{text-decoration:none;color:inherit}
.appt{border:2px solid var(--amber);background:var(--surface2)}
.appt .muted{font-size:14px;color:var(--muted)}
.appt.past{border-color:var(--ok)}
.appt .linkish{align-self:flex-start}
.appt-add{border-style:dashed}
.appt-form .field{margin-bottom:4px}

/* ---------- Ask Orivia ---------- */
.ask-inline{all:unset;cursor:pointer;display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface2);color:var(--muted);font-size:16px}
.ask-inline:focus-visible{outline:3px solid var(--focus)}
.ask-ctx{font-size:14px;color:var(--muted)}
.ask-try{color:var(--muted);font-size:15px;margin:4px 0}
.ask-type{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ask-none{display:flex;flex-direction:column;gap:12px}
#askOut{display:flex;flex-direction:column;gap:10px}

/* ---------- Partner mode ---------- */
.partner-note{border-radius:14px;padding:14px 16px;background:#EEF3FB;border-inline-start:5px solid #2F6DB5;display:flex;flex-direction:column;gap:6px;color:#18222D}
.partner-note p{margin:0;font-size:16px}
.partner-note .label{color:#2F4F7F}
.partner-note .muted{font-size:13px;color:#4A5A6C}
.partner-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.partner-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-radius:12px;background:#EEF3FB;color:#18222D;font-size:14px;flex-wrap:wrap}
.partner-card{border-color:#2F6DB5}
.land-cta{display:inline-block;background:var(--amber);color:var(--amberInk);font-weight:700;text-decoration:none;padding:10px 16px;border-radius:12px}
.stats-note{font-size:13px;color:var(--muted);margin:0}

/* ---------- Document expiry ---------- */
.docs-card{border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.docs-card .linkish{align-self:flex-start}
.pill.doc-ok{background:var(--okSoft);color:var(--ok)}
.pill.doc-warn{background:var(--amber);color:var(--amberInk)}
.pill.doc-soon,.pill.doc-gone{background:var(--warn);color:#fff}
.doc-alert{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-radius:14px;border-inline-start:5px solid var(--amber);background:var(--surface2)}
.doc-alert.doc-soon,.doc-alert.doc-gone{border-color:var(--warn);background:var(--warnSoft)}
.doc-alert .main{display:flex;flex-direction:column;gap:2px}
.doc-alert strong{font-size:18px}
.doc-alert:focus-visible{outline:3px solid var(--focus)}
.doc-big{border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px;background:var(--okSoft)}
.doc-big strong{font-size:22px;font-family:var(--display)}
.doc-big.doc-warn{background:#FFF4CC}
.doc-big.doc-soon,.doc-big.doc-gone{background:var(--warnSoft)}
.doc-big span{color:var(--muted);font-size:14px}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .doc-big.doc-warn{background:#3A3010} }
.muted{color:var(--muted)}
a.choice{text-decoration:none;color:inherit}

/* ---------- Navigation layer ---------- */
.wait-card{border-radius:16px;padding:16px;background:var(--surface2);border-inline-start:5px solid var(--amber);display:flex;flex-direction:column;gap:10px}
.wait-head{display:flex;align-items:center;gap:8px}
.wait-for{margin:0;font-size:17px;line-height:1.4}
.wait-calm{margin:0;font-weight:700;color:var(--ok)}
.wait-tips{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px;font-size:15px}
.before-btn{all:unset;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;background:var(--sign);color:var(--signInk)}
.before-btn .place-ico{color:var(--amber)}
.before-btn span{display:flex;flex-direction:column;flex:1}
.before-btn small{color:var(--signMuted);font-size:13px}
.before-btn:focus-visible{outline:3px solid var(--focus)}
.bg-sec{display:flex;flex-direction:column;gap:8px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.bg-sec:last-of-type{border-bottom:0}
.bg-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.bg-list li{display:flex;gap:10px;align-items:flex-start}
.tickmini{width:18px;height:18px;border-radius:5px;border:2px solid var(--ink);flex:none;margin-top:2px;display:grid;place-items:center}
.bg-list li.on .tickmini{background:var(--ok);border-color:var(--ok)}
.bg-list li.on .tickmini::after{content:"";width:4px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}
.expect{border:1px dashed var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.expect-list,.rec-steps{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px}
.term{all:unset;cursor:pointer;border-bottom:2px dotted var(--amber);font-weight:inherit}
.term:focus-visible{outline:2px solid var(--focus)}
.why-link{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:4px}
.dots{display:flex;gap:6px;align-items:center}
.dots i{flex:1;height:8px;border-radius:4px;background:var(--line)}
.dots i.ok{background:var(--ok)}
.dots i.on{background:var(--amber)}
.changed-row{border-style:dashed}
.src-row small{word-break:break-all}

/* ---------- Navigation shell ---------- */
.tabbar{flex:none;display:grid;grid-template-columns:repeat(4,1fr);align-items:end;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}
.tab{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;font-size:12px;color:var(--muted);border-radius:10px;min-height:44px;justify-content:center}
.tab.on{color:var(--ink);font-weight:700}
.tab.on .tab-ico{color:var(--ink)}
.tab-ico{width:22px;height:22px}
.tab:focus-visible{outline:3px solid var(--focus)}
.tab-help{color:var(--amberInk);font-weight:700}
.tab-help .tab-ico{width:26px;height:26px;background:var(--amber);border-radius:50%;padding:9px;box-sizing:content-box;margin-top:-22px;box-shadow:0 4px 12px rgba(28,39,51,.25);color:var(--amberInk)}
.device.has-tabs .actions{border-top:1px solid var(--line)}
.search-big{border:2px solid var(--ink);color:var(--ink);background:var(--surface)}
.unsure-row{background:var(--surface2)}
.goal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.goal{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:16px;border:1px solid var(--line);background:var(--surface);min-height:104px}
.goal svg{width:26px;height:26px;color:var(--ink)}
.goal .t{font-weight:700;line-height:1.25}
.goal .s{font-size:12px;color:var(--muted);margin-top:auto}
.goal:focus-visible{outline:3px solid var(--focus)}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.gchip{all:unset;cursor:pointer;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface2);font-size:14px}
.gchip:focus-visible{outline:3px solid var(--focus)}
.jhead{display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.jback{all:unset;cursor:pointer;display:flex;align-items:center;gap:6px;color:var(--signMuted);font-size:13px;font-weight:700}
.jback .chev{width:14px;height:14px;transform:scaleX(-1)}
.device[dir="rtl"] .jback .chev{transform:none}
.stage-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.stage-chips::-webkit-scrollbar{display:none}
.schip{all:unset;cursor:pointer;flex:none;display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;border:1px solid #3A4652;color:var(--signMuted);font-size:12px;white-space:nowrap}
.schip .sdot{width:8px;height:8px;border-radius:50%;border:1.5px solid currentColor}
.schip.ok{color:#9FD8BC;border-color:#2E5C47}
.schip.ok .sdot{background:#3FB37F;border-color:#3FB37F}
.schip.on{color:var(--amberInk);background:var(--amber);border-color:var(--amber);font-weight:700}
.schip.on .sdot{background:var(--amberInk);border-color:var(--amberInk)}
.device.big .scroll{zoom:1.18}

/* ---------- Simpler screens ---------- */
.hero-small{padding-block:20px 18px}
.hero-small h1{font-size:34px}
.lang-row{min-height:56px;font-size:18px}
.lang-row .flag{font-size:24px;line-height:1}
.lang-row .lang-name{flex:1}
.change-note{margin:0;font-size:15px;font-weight:700;color:var(--ok)}
.goal-wrong{border-color:var(--warn);background:var(--warnSoft)}
.goal-wrong svg{color:var(--warn)}
.status-card{border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;background:var(--surface2);border-inline-start:5px solid var(--amber)}
.status-card.waiting{border-color:var(--amber)}
.status-card.blocked{border-color:var(--warn);background:var(--warnSoft)}
.status-card.done{border-color:var(--ok);background:var(--okSoft)}
.st-row{display:flex;flex-direction:column;gap:2px}
.st-row strong{font-size:17px;line-height:1.35}
.st-calm{margin:0;font-weight:700;color:var(--ok);font-size:16px}
.st-warn{margin:0;font-weight:700;color:var(--warn)}
.trust-badge{all:unset;cursor:pointer;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--okSoft);color:var(--ok);font-size:14px}
.trust-badge span{flex:1}
.trust-badge:focus-visible{outline:3px solid var(--focus)}
.quick{border:2px solid var(--ink);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.q-row{display:grid;grid-template-columns:78px 1fr;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);align-items:start}
.q-row:last-child{border-bottom:0}
.q-k{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:3px}
.q-v{font-size:16px;line-height:1.45}
.q-v .linkish{margin-inline-start:6px}
.q-bring{display:flex;flex-direction:column;gap:6px}
.q-item{all:unset;cursor:pointer;display:flex;gap:8px;align-items:flex-start}
.q-item.on .tickmini{background:var(--ok);border-color:var(--ok)}
.q-item.on .tickmini::after{content:"";width:4px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}
.q-item.on > span:last-child{text-decoration:line-through;text-decoration-color:var(--muted)}
.q-item:focus-visible{outline:2px solid var(--focus)}
.more-details{border:1px solid var(--line);border-radius:14px}
.more-details summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-weight:700}
.more-details summary::-webkit-details-marker{display:none}
.more-details summary .chev{transform:rotate(90deg);transition:transform .2s}
.more-details[open] summary .chev{transform:rotate(-90deg)}
.md-body{display:flex;flex-direction:column;gap:14px;padding:0 16px 16px}
.wrong-inline{border-radius:16px;padding:14px;background:var(--warnSoft);display:flex;flex-direction:column;gap:10px}
.wrong-inline .label{color:var(--warn)}
.wrong-inline .choice{background:var(--surface)}
.staff-btn{background:var(--signInk);color:var(--sign)}
.staff-full{position:absolute;inset:0;z-index:9;background:var(--sign);color:var(--signInk);display:flex;flex-direction:column;justify-content:safe center;overflow-y:auto;padding:72px 22px 28px;animation:fade .15s ease}
.staff-full .staff-card{display:flex;flex-direction:column;gap:22px}
.staff-full .ar{font-family:var(--arabic);font-size:30px;line-height:1.55;color:var(--amber);font-weight:700}
.staff-full .en{font-size:26px;line-height:1.35;font-weight:700}
.staff-full .en.big{font-size:30px;color:var(--amber)}
.staff-full .mine{font-size:18px;opacity:.85}
.staff-full .staff-card p{margin:0}
.staff-full .sc-hello{font-size:.8em;font-weight:600;margin-bottom:10px!important}
.staff-full .sc-l{font-size:.6em;font-weight:600;opacity:.75;letter-spacing:.02em}
.staff-full .sc-step{font-size:1.15em;line-height:1.25}
.staff-full .sc-part{font-size:.6em;font-weight:600;opacity:.75;margin-top:6px!important}
.staff-full .ar .sc-l,.staff-full .ar .sc-part{font-size:.7em}
.staff-full hr{border:0;border-top:1px solid #3A4652;margin:0}
.staff-x{all:unset;cursor:pointer;position:absolute;top:14px;inset-inline-end:16px;font-size:34px;line-height:1;color:var(--signInk);width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.staff-x:focus-visible{outline:3px solid var(--amber)}
.offline-chip{align-self:flex-start;font-size:13px;font-weight:700;color:var(--ok);background:var(--okSoft);border-radius:999px;padding:4px 10px}
.next-list{display:flex;flex-direction:column;gap:10px}
.next-card{all:unset;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:var(--surface)}
.next-card.waiting{border-inline-start:5px solid var(--amber)}
.next-card.blocked{border-inline-start:5px solid var(--warn)}
.next-card.active{border-inline-start:5px solid var(--ink)}
.next-card.todo{background:var(--surface2)}
.next-card .main{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.nc-t{font-weight:700;font-size:16px;line-height:1.3}
.next-card small{color:var(--muted);font-size:14px;line-height:1.35}
.nc-ico{width:26px;height:26px;flex:none}
.next-card:focus-visible{outline:3px solid var(--focus)}
.dots.mini i{height:5px}
.start-btn{font-weight:700}
.goal-grid .goal{min-height:88px}
.wide-goal{flex-direction:row;align-items:center;min-height:0;padding:16px}
.wide-goal .t{flex:1}
.wide-goal svg{width:24px;height:24px}
.photo{margin:0;display:flex;flex-direction:column;gap:6px}
.photo img{width:100%;height:auto;border-radius:14px;border:1px solid var(--line);display:block}
.photo figcaption{font-size:14px;color:var(--muted);line-height:1.45}

/* Letter-spacing breaks joined letters in Indic scripts and looks odd in Chinese */
.device[lang="hi"] *,.device[lang="bn"] *,.device[lang="ml"] *,.device[lang="zh"] *{letter-spacing:0!important}

.land-nav{display:flex;gap:4px;font-size:13px;font-weight:700}
.land-nav a{color:inherit;text-decoration:none;padding:6px 10px;border-radius:999px;border:1px solid var(--line)}
.land-nav a:hover,.land-nav a:focus-visible{background:var(--surface2)}
.land-org{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;margin:14px 0}
.land-org h3{font-size:15px;margin:0 0 4px}
.land-org p{margin:0;font-size:14px;color:var(--muted)}
@media (max-width:700px){.land-org{grid-template-columns:1fr}}

/* Smart layer */
.esc{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface)}
.esc h3{margin:0;font-size:18px}
.esc p{margin:0}
.esc .esc-h{margin-top:4px}
.esc .blk-list{margin:0}
.esc-say{margin:0;padding:12px 14px;border-inline-start:4px solid var(--amber);background:var(--surface2);border-radius:10px;font-size:15px;line-height:1.5}
.esc-mine{font-size:14px;color:var(--muted)}
.reply-card{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:16px;background:var(--surface2);border-inline-start:5px solid var(--amber);margin-bottom:12px}
.reply-card.late{border-inline-start-color:var(--warn);background:var(--warnSoft)}
.reply-card p{margin:0;font-size:14px}
.reply-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.reply-btns .btn{flex:1 1 auto;min-width:0}
.ld-row{justify-content:flex-start;gap:12px}
.ld-box{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;border:2px solid var(--ink);font-weight:800;flex:none}
.ld-row[aria-pressed="false"] span:last-child{text-decoration:line-through;opacity:.6}
.choice-quiet{background:transparent;border-style:dashed}
.qa-fails li{font-size:14px}
.qa-fails small{color:var(--muted)}
