/* Global Choices member app. Visual design lifted from portal/docs/poc/global-choices-pwa-poc.html (brand: Global Navy, Coral Orange, Poppins).
   Layout: phone = bottom tabs, one column. Tablet (560px+) = roomier tiles, two-column lists. Laptop (860px+) = side menu, two columns. */
:root { color-scheme: light; --bg: #f3f4f8; --surface: #ffffff; --ink: #1b2247; --muted: #555c7c; --line: #e4e7f0;
  --accent: #e17a4e; --accent-soft: #fbe6dc; --navy: #2e3a7c; --warn: #c4512a; --warn-soft: #fbe6dc;
  --sos: #e17a4e; --sos-dark: #c4512a; --muted2: #8a90a8; --line2: #d5d9e8; --line3: #eef0f6; --ok: #25a36b; --on-navy: #ffffff;
  --red: #c62828; --red-soft: #fdecea;
  --body: "Poppins", "Avenir Next", "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 13px; line-height: 1.38; -webkit-text-size-adjust: 100%; }
button, input, select { font-family: var(--body); }
p { margin: 0 0 12px; }

.aitag { display: table; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: #9c3f1c; background: var(--accent-soft); border-radius: 4px; padding: 1px 6px; margin-bottom: 4px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; display: grid; gap: 4px; font-size: 12px; }
.pcard small { color: var(--muted2); font-size: 11px; }
.prow { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.pbar { height: 7px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.pbar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.pcard .stage { color: var(--navy); font-weight: 600; }
.winp { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.winp input, .winp select { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; width: 100%; }
.wbtn { font: inherit; font-weight: 600; font-size: 13px; background: var(--accent); color: var(--on-navy); border: 0; border-radius: 12px; padding: 10px; cursor: pointer; }
.wbtn:disabled { background: #c9ccd8; cursor: not-allowed; }
.wbtn.ghost { background: var(--surface); color: var(--navy); border: 1px solid var(--navy); }
.wphotos { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px dashed var(--muted2); border-radius: 12px; padding: 9px 11px; font: inherit; font-size: 15px; color: var(--navy); cursor: pointer; text-align: left; }
.wphotos small { display: block; font-size: 11px; color: var(--muted2); }
.wphotos b { display: block; font-size: 12.5px; color: var(--ink); } /* the POC renders in quirks mode, where this line has no 15px strut */
.wtog { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; text-align: left; }
.wtog span { width: 34px; height: 20px; border-radius: 10px; background: #c9ccd8; position: relative; flex: none; }
.wtog span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); }
.wtog.on span { background: var(--navy); }
.wtog.on span::after { left: 16px; }
/* ---- app ---- */
.app { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 13px; }
.offbar { background: var(--ink); color: var(--on-navy); font-size: 11px; padding: 5px 12px; text-align: center; }
.appbar { display: flex; justify-content: space-between; align-items: center; background: var(--surface); padding: 6px 14px 8px; border-bottom: 1px solid var(--line); }
.appbar img { height: 30px; width: auto; }
.appbar-r { display: flex; gap: 8px; }
.iconbtn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font: 700 11px var(--body); cursor: pointer; display: grid; place-items: center; }
.appview { flex: 1; overflow-y: auto; padding: 14px 14px 18px; display: grid; gap: 10px; align-content: start; scrollbar-width: none; }
.appview::-webkit-scrollbar { display: none; }
.tabbar { display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px 16px; }
.tabbar button { flex: 1; background: none; border: 0; font: 500 10px var(--body); color: var(--muted2); display: grid; justify-items: center; gap: 3px; cursor: pointer; padding: 2px 0; }
.tabbar button.on { color: var(--navy); font-weight: 700; }
.ti { width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 6px; position: relative; display: block; }
.ti.home { border-radius: 4px 4px 6px 6px; } .ti.assist { border-radius: 50%; } .ti.claims { border-radius: 4px 4px 9px 9px; } .ti.prof { border-radius: 50%; width: 18px; }
.tabbar button.on .ti::after { content: ""; position: absolute; right: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hello { font-weight: 700; font-size: 17px; }
.h1 { font-weight: 700; font-size: 17px; line-height: 1.25; }
.sub2 { color: var(--muted); font-size: 12.5px; }
.ttl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted2); margin-top: 4px; }
.backrow { justify-self: start; background: none; border: 0; color: var(--navy); font: 600 12.5px var(--body); padding: 0; cursor: pointer; }
.sosbig { position: relative; overflow: hidden; background: var(--sos); color: var(--on-navy); border: 0; border-radius: 20px; padding: 18px; text-align: left; font-family: var(--body); cursor: pointer; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--sos) 95%, transparent); touch-action: none; user-select: none; }
.sosbig b { display: block; font-size: 23px; font-weight: 800; position: relative; }
.sosbig small { font-size: 11.5px; opacity: 0.95; position: relative; }
.sosbig .ring { --p: 0; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.28) calc(var(--p) * 100%), transparent calc(var(--p) * 100%)); }
.sosbig.holding { transform: scale(0.985); }
.isoffline .sosbig { background: var(--sos-dark); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 4px 9px; font: 500 10.5px var(--body); color: var(--ink); display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.ic2 { width: 24px; height: 24px; border: 2px solid var(--navy); border-radius: 50%; position: relative; display: block; flex: none; }
.ic2::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ic2.doc, .ic2.claims { border-radius: 5px; } .ic2.home { border-radius: 4px 4px 7px 7px; } .ic2.phone { border-radius: 8px 8px 12px 12px; width: 18px; } .ic2.shield { border-radius: 6px 6px 12px 12px; }
.askbar { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 22px; padding: 10px 14px; font: 500 12.5px var(--body); color: var(--muted2); cursor: pointer; text-align: left; }
.askbar:first-letter { color: var(--accent); }
.arow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
.arow span { flex: 1; min-width: 0; }
.arow b { display: block; font-size: 13px; font-weight: 600; }
.arow small { display: block; color: var(--muted2); font-size: 11px; }
.chev { font-style: normal; color: var(--muted2); font-size: 16px; }
.svchead { display: flex; gap: 12px; align-items: flex-start; }
.svchead .ic2 { width: 34px; height: 34px; margin-top: 2px; }
.bigbtn { display: block; text-align: center; background: var(--accent); color: var(--on-navy); border: 0; border-radius: 14px; padding: 12px; font: 600 13.5px var(--body); text-decoration: none; cursor: pointer; }
.bigbtn.ghost { background: var(--surface); color: var(--navy); border: 1px solid var(--navy); }
.bigbtn.wa { color: #1f7a54; border-color: #1f7a54; }
.callcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.callcard small { display: block; color: var(--muted2); font-size: 11px; }
/* Home: the announcement banner and hero image set in Genesis (Features and wording) */
.announce { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-size: 13px; background: var(--line3); color: var(--ink); border: 1px solid var(--line); }
.announce.warning { background: var(--accent-soft); border-color: var(--accent); }
.announce.urgent { background: var(--warn); border-color: var(--warn); color: var(--on-navy); }
.announce a { font-weight: 700; color: inherit; text-decoration: underline; }
.homehero { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 16px; margin: 8px 0; }
.trackmap { position: relative; height: 150px; border-radius: 16px; overflow: hidden; background: #e7ecf3; background-image: linear-gradient(90deg, rgba(46,58,124,0.06) 1px, transparent 1px), linear-gradient(rgba(46,58,124,0.06) 1px, transparent 1px), linear-gradient(115deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%); background-size: 22px 22px, 22px 22px, 100% 100%; }
.pin { position: absolute; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin.me { left: 64%; top: 34%; background: var(--sos); }
.pin.them { left: 14%; top: 70%; background: var(--navy); transition: left 6s linear, top 6s linear; }
.pin.them.moving { left: 46%; top: 48%; }
.eta { position: absolute; left: 10px; bottom: 10px; background: var(--surface); border-radius: 10px; padding: 4px 9px; font-weight: 700; font-size: 11.5px; color: var(--navy); }
.statusline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.statusline .d { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #c9ccd8; }
.statusline .d.on { background: var(--ok); border-color: var(--ok); }
.pcard3 { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; width: 100%; }
.pcard3 b { font-size: 13px; }
.pcard3 small { color: var(--muted2); font-size: 11px; }
.pcard3 .stage { color: var(--navy); font-weight: 600; }
.kv { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line3); font-size: 12px; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted2); }
.kv b { text-align: right; font-weight: 600; }
.me { display: flex; gap: 12px; align-items: center; }
.me .av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-weight: 700; }
.me small { display: block; color: var(--muted2); font-size: 11px; }
.bankrow { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--ink); }
.linkb { background: none; border: 0; color: var(--accent); font: 600 12px var(--body); cursor: pointer; }
.note3 { font-size: 11px; color: var(--muted2); }
.offnote { display: none; background: var(--red-soft); color: var(--red); border: 1px solid var(--red); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; }
.isoffline .offnote { display: block; }
.ropt { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 500 12.5px var(--body); color: var(--ink); text-align: left; cursor: pointer; }
.ropt.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
/* Call me back: a service with sub-services opens them under it (schema/023) */
.ropt.acc { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.ropt.acc i { font-style: normal; color: var(--muted2); font-size: 14px; transition: transform .2s; }
.ropt.acc.open i { transform: rotate(90deg); color: var(--navy); }
.ropt.acc small { display: block; font-weight: 400; font-size: 11px; color: var(--muted2); }
.subwrap { display: grid; gap: 6px; margin: -2px 0 4px 12px; padding-left: 10px; border-left: 2px solid var(--line2); }
.subwrap .q { font-size: 11px; color: var(--muted); margin: 2px 0 0; }
.ropt.sub { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.ropt.sub .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.ropt.sub.on .dot { border-color: var(--navy); box-shadow: inset 0 0 0 3px var(--surface); background: var(--navy); }
.chatbox { display: grid; gap: 7px; max-height: 300px; overflow-y: auto; }
.cm { max-width: 86%; padding: 8px 11px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; }
.cm.them { background: var(--surface); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 4px; }
.cm.me { background: var(--navy); color: var(--on-navy); justify-self: end; border-bottom-right-radius: 4px; }
.cm.sys { justify-self: center; background: #fff1d6; color: #7a4f00; font-size: 11px; }
.cm .who { display: block; font-size: 10.5px; font-weight: 600; color: var(--warn); }
.cm .aitag { margin-bottom: 3px; }
.cm .aisrc { display: block; font-size: 10.5px; color: var(--muted2); margin-top: 4px; }
.aibtns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.aiform { display: flex; gap: 6px; }
.aiform input { flex: 1; min-width: 0; font: inherit; font-size: 12.5px; border: 1px solid var(--line2); border-radius: 18px; padding: 8px 12px; background: var(--surface); color: var(--ink); }
.aiform button { font: 600 12px var(--body); background: var(--navy); color: var(--on-navy); border: 0; border-radius: 18px; padding: 0 14px; cursor: pointer; }
.chipsx { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { font: 500 11.5px var(--body); background: var(--surface); border: 1px solid var(--line2); color: var(--ink); border-radius: 16px; padding: 6px 10px; cursor: pointer; }
.tchip.on { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.webpage { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 12.5px; }
.wurl { font-size: 10.5px; color: var(--muted2); margin-bottom: 6px; }
ol.tl2 { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 10px; }
ol.tl2 li { position: relative; padding-left: 22px; color: var(--muted2); font-size: 12.5px; }
ol.tl2 li::before { content: ""; position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #c9ccd8; background: var(--surface); }
ol.tl2 li.done { color: var(--ink); } ol.tl2 li.done::before { background: var(--ok); border-color: var(--ok); }
ol.tl2 li.now { color: var(--ink); } ol.tl2 li.now::before { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
ol.tl2 li small { display: block; color: var(--muted); font-size: 11px; }
.done2, .sosdone { display: grid; gap: 10px; justify-items: center; text-align: center; padding-top: 18px; }
.done2 .bigbtn, .sosdone .bigbtn { justify-self: stretch; }
.tickbig { width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: var(--on-navy); display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.pulse { width: 64px; height: 64px; border-radius: 50%; background: var(--sos); box-shadow: 0 0 0 0 color-mix(in srgb, var(--sos) 60%, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.refbig { font-weight: 800; font-size: 15px; color: var(--navy); }
.casebox { display: grid; gap: 2px; justify-items: center; }
.casebig { font-weight: 800; font-size: 28px; letter-spacing: .5px; color: var(--navy); display: flex; gap: 8px; align-items: center; justify-content: center; }
.casebig.casesmall { font-size: 15px; letter-spacing: 0; }
.spin { width: 18px; height: 18px; border: 3px solid var(--line2); border-top-color: var(--navy); border-radius: 50%; display: inline-block; animation: gcspin .8s linear infinite; }
@keyframes gcspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.kvl { display: flex; gap: 4px; }
.kvl span { color: var(--muted2); } .kvl b { display: inline; color: var(--ink); font-size: 11px; }
.winp.locked input { opacity: .65; background: var(--bg); cursor: not-allowed; }
.lockic { width: 12px; height: 12px; vertical-align: -2px; margin-left: 4px; }
.lockhint { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.lockhint .lockic { margin: 0; }
.lockhint .linkb { padding: 0; font-size: inherit; }
.appscrim { position: absolute; inset: 0; background: rgba(27,34,71,0.4); z-index: 7; }
.appsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 16px 22px; display: grid; gap: 10px; }
.appsheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto 4px; }
.locask, .inst { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 8px 0; }
.locicon { width: 44px; height: 44px; border-radius: 50%; background: #e4e7f6; color: var(--navy); display: grid; place-items: center; font-size: 20px; }
.locask small, .inst small { color: var(--muted2); font-size: 11px; }
.inst { display: flex; gap: 12px; text-align: left; justify-content: flex-start; }
.inst img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.docprev { display: grid; gap: 4px; justify-items: center; padding: 6px 0; text-align: center; }
.pdfbig { width: 54px; height: 66px; border-radius: 6px; background: #e2483d; color: var(--on-navy); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.docprev small { color: var(--muted2); font-size: 11px; }
.push { position: absolute; left: 10px; right: 10px; top: 46px; z-index: 9; display: flex; gap: 10px; background: rgba(255,255,255,0.97); border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 30px -10px rgba(10,16,50,0.5); cursor: pointer; font-size: 12px; }
.push img { width: 34px; height: 34px; border-radius: 9px; }
.push b { font-size: 12px; } .push small { color: var(--muted2); margin-left: 6px; font-size: 10.5px; } .push span span { display: block; color: var(--ink); }
.push.drop { animation: drop 0.4s ease-out both; }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 11; background: var(--ink); color: var(--on-navy); font-size: 11.5px; padding: 7px 14px; border-radius: 16px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .pulse, .push.drop { animation: none; } .pin.them { transition: none; } }

/* grid rows size to their content (overflow:hidden items otherwise shrink, which clipped Help now) */
.appview { grid-auto-rows: max-content; }
.sosbig small { display: block; line-height: 1.35; margin-top: 2px; }
/* real line icons */
.ic2 { width: 28px; height: 28px; border: 0; border-radius: 0; color: var(--navy); display: grid; place-items: center; position: relative; }
.ic2 svg { width: 24px; height: 24px; }
.ic2::after { right: 0; top: 1px; width: 7px; height: 7px; }
.svchead .ic2 { width: 36px; height: 36px; } .svchead .ic2 svg { width: 30px; height: 30px; }
.ti { width: 22px; height: 22px; border: 0; border-radius: 0; display: grid; place-items: center; }
.ti svg { width: 22px; height: 22px; }
.tabbar button.on .ti::after { right: -3px; top: -2px; }

/* ---- real-app shell (replaces the POC device frame) ---- */
.app { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.appbar { padding-top: max(6px, env(safe-area-inset-top)); }
.tabbar { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.installbar { display: flex; align-items: center; gap: 8px; background: #f1f2f6; border-bottom: 1px solid var(--line); padding: 6px 12px; font-size: 11.5px; color: var(--muted); }
.installbar span { flex: 1; }
.installbar .bbtn { font: inherit; font-weight: 600; font-size: 11.5px; background: var(--navy); color: var(--on-navy); border: 0; border-radius: 10px; padding: 4px 12px; cursor: pointer; }
.installbar .xbtn { background: none; border: 0; color: var(--muted2); font-size: 15px; cursor: pointer; padding: 0 4px; }
.iconbtn, .tabbar button, .qt, .arow, .pcard3, .ropt, .tchip, .wtog, .wbtn, .bigbtn, .sosbig { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.winp input:focus, .winp select:focus { outline: 2px solid var(--navy); outline-offset: 0; }
a.bigbtn, a.arow { text-decoration: none; }
.appview.dim { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- tablet (560px to 859px): bottom tabs, roomier tiles, two-column lists ---- */
@media (min-width: 560px) and (max-width: 859px) {
  .appbar { padding: 10px 24px; }
  .appview { padding: 24px 28px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .appview > * { grid-column: 1 / -1; }
  .appview > .arow, .appview > .pcard3, .appview > .ropt { grid-column: auto; }
  .hello { font-size: 22px; }
  .h1 { font-size: 21px; }
  .sub2 { font-size: 13.5px; }
  .sosbig { padding: 24px 26px; border-radius: 22px; }
  .sosbig b { font-size: 28px; }
  .sosbig small { font-size: 13px; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .qt { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; gap: 12px; padding: 14px 16px; font-size: 13px; border-radius: 16px; }
  .askbar { padding: 12px 16px; font-size: 13.5px; }
  .arow { padding: 14px; }
  .arow b { font-size: 14px; }
  .pcard3 { padding: 14px 16px; }
  .tabbar { padding: 8px 40px 16px; }
  .tabbar button { font-size: 11.5px; gap: 4px; }
  .ti, .ti svg { width: 24px; height: 24px; }
  .appview .winp, .appview .wbtn, .appview .wtog, .appview .wphotos, .appview .bigbtn { max-width: 560px; }
  .appsheet { left: 50%; right: auto; bottom: auto; top: 22%; transform: translateX(-50%); width: min(460px, 88%); border-radius: 20px; }
  .push { left: auto; right: 18px; width: 340px; }
  .trackmap { height: 240px; }
  .chatbox { max-height: 420px; }
}

/* ---- laptop (860px and up): side menu, two-column lists ---- */
@media (min-width: 860px) {
  .app { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); }
  .installbar, .offbar, .appbar { grid-column: 1 / -1; }
  .appbar { padding: 10px 22px; }
  .tabbar { grid-column: 1; grid-row: 4; flex-direction: column; justify-content: flex-start; gap: 4px; border-top: 0; border-right: 1px solid var(--line); padding: 16px 10px; }
  .tabbar button { flex: none; grid-template-columns: 26px 1fr; justify-items: start; align-items: center; text-align: left; gap: 10px; font-size: 13px; padding: 9px 12px; border-radius: 10px; }
  .tabbar button.on { background: #e8eaf5; }
  .appview { grid-column: 2; grid-row: 4; padding: 22px 28px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .appview > * { grid-column: 1 / -1; }
  .appview > .arow, .appview > .pcard3, .appview > .ropt, .appview > .qtw { grid-column: auto; }
  .grid3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sosbig { padding: 22px 26px; }
  .sosbig b { font-size: 26px; }
  .appview .winp, .appview .wbtn, .appview .wtog, .appview .wphotos { max-width: 520px; }
  .appsheet { left: 50%; right: auto; bottom: auto; top: 18%; transform: translateX(-50%); width: min(440px, 90%); border-radius: 18px; }
  .push { left: auto; right: 16px; width: 330px; }
  .trackmap { height: 220px; }
  .appview > .full { grid-column: 1 / -1; }
}

/* ---- sign in with WhatsApp (new screen, not in the POC: same tokens, type, buttons and spacing) ---- */
.app.signedout .tabbar, .app.signedout .appbar-r { display: none; }
.lgerr { color: var(--warn); font-weight: 500; font-size: 12px; }
.lgstart { justify-self: start; padding: 4px 0; }
.bankrow #lg-msg { font-size: 14px; letter-spacing: 0.02em; user-select: all; -webkit-user-select: all; word-break: break-all; }
#lg-code { font-size: 18px; font-weight: 600; letter-spacing: 0.3em; text-align: center; }
@media (min-width: 860px) {
  .app.signedout { grid-template-columns: minmax(0, 1fr); }
  .app.signedout .appview { grid-column: 1; }
  .app.signedout .appview > .arow { grid-column: auto; }
}

/* ---- Home Safe Chauffeur and Airport Drive bookings (not in the POC: the native app's forms, in this app's tokens and components) ---- */
.fgrp { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.bksec { display: grid; gap: 10px; }
.fgrp .wtog { border: 0; border-radius: 0; padding: 2px 0; background: none; }
.wtog .tl { font-style: normal; }
.wcount { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink); }
.wcc { display: flex; align-items: center; gap: 6px; flex: none; }
.wcc button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--navy); background: var(--surface); color: var(--navy); font: 600 16px var(--body); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wcc button:disabled { border-color: #c9ccd8; color: #c9ccd8; cursor: not-allowed; }
.wcc input { width: 44px; text-align: center; font: 600 13px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 4px; }
.winp input[type="datetime-local"] { min-height: 36px; }
a.callcard { display: block; color: inherit; text-decoration: none; }
.appsheet { max-height: 88%; overflow-y: auto; }
@media (min-width: 560px) { .appview .fgrp, .appview .bksec { max-width: 560px; } .appview .fgrp .winp, .appview .fgrp .wtog { max-width: none; } }

/* ---- from the native app: call lines, bank card fraud, settings (not in the POC; this app's tokens) ---- */
.calls2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.callln { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.callln small { display: block; font-size: 11px; font-weight: 600; color: var(--navy); }
.callln b { display: block; font-size: 13.5px; white-space: nowrap; }
.callln .ic2 { width: 24px; height: 24px; } .callln .ic2 svg { width: 20px; height: 20px; } .callln .ic2::after { display: none; }
.callpill { font-style: normal; flex: none; font-size: 12px; font-weight: 600; color: var(--on-navy); background: var(--navy); border-radius: 16px; padding: 5px 12px; }
.wbtn.danger { background: #b3402a; }
.wtog .tl b { display: block; font-weight: 600; } .wtog .tl small { display: block; font-size: 11px; color: #656b88; }
.wtog:disabled { cursor: default; }

/* ---- HaloNxt member data (schema/012): policy-driven Assist, policy detail, family, profile photo, link ---- */
.polpick { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #e8eaf5; border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { flex: none; font-size: 11px; font-weight: 700; color: #1f7a54; background: #dff3ea; border-radius: 10px; padding: 3px 10px; }
.badge.off { color: var(--muted); background: var(--line); }
.seg2 { display: flex; gap: 4px; background: var(--line); border-radius: 12px; padding: 4px; }
.seg2 button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 12.5px var(--body); cursor: pointer; }
.seg2 button.on { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(27,34,71,0.15); }
.webpage.txt { white-space: pre-line; line-height: 1.5; }
.ini { flex: none !important; width: 38px; height: 38px; border-radius: 50%; background: #e8eaf5; color: var(--navy); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.me img.av { object-fit: cover; } .me .av.soft { background: #e8eaf5; color: var(--navy); }
.fgrp.photo { display: flex; align-items: center; gap: 12px; }
.avbig { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.avbig img { width: 100%; height: 100%; object-fit: cover; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font: 600 12px var(--body); border-radius: 16px; padding: 7px 12px; min-height: 36px; border: 1px solid var(--navy); background: var(--surface); color: var(--navy); cursor: pointer; }
.pill.on { background: var(--navy); color: var(--on-navy); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.linkb#fam-reload { justify-self: center; padding: 8px 0; }

/* ---- dark mode (Settings; this device only). Overrides the POC's light colours. ---- */
html.dark { color-scheme: dark; --red: #ff8a80; --red-soft: #3a1c1f; }
html.dark body, html.dark .app { background: #0f1426; color: #e6e8f2; }
html.dark .appbar, html.dark .tabbar, html.dark .installbar { background: #161c33; border-color: #262d4a; }
html.dark .appbar img { filter: brightness(0) invert(1); opacity: 0.92; }
html.dark .iconbtn, html.dark .qt, html.dark .arow, html.dark .pcard, html.dark .pcard3, html.dark .kv, html.dark .callcard, html.dark .callln, html.dark .webpage, html.dark .fgrp,
html.dark .ropt, html.dark .wtog, html.dark .tchip, html.dark .cm.them, html.dark .askbar, html.dark .bankrow, html.dark .wphotos, html.dark .appsheet, html.dark .push { background: #161c33; border-color: #2a3254; color: #e6e8f2; }
html.dark .kv div { border-color: #262d4a; }
html.dark .h1, html.dark .hello, html.dark .arow b, html.dark .pcard3 b, html.dark .wphotos b, html.dark .callln b { color: #f2f3fa; }
html.dark .sub2, html.dark .winp, html.dark .note3, html.dark .arow small, html.dark .pcard small, html.dark .pcard3 small, html.dark .kv span, html.dark .callln small, html.dark .ttl, html.dark .chev, html.dark .wtog .tl small { color: #a9aecb; }
html.dark .winp input, html.dark .winp select, html.dark .aiform input, html.dark .wcc input { background: #0f1426; border-color: #343d63; color: #e6e8f2; }
html.dark .ic2, html.dark .backrow, html.dark .tabbar button.on, html.dark .callln small, html.dark .pcard3 .stage, html.dark .refbig, html.dark .linkb { color: #9fb0ff; }
html.dark .tabbar button { color: #8a90b0; }
html.dark .wbtn.ghost, html.dark .bigbtn.ghost, html.dark .pill, html.dark .wcc button { background: #161c33; color: #c9d1ff; border-color: #6f7fd6; }
html.dark .pill.on, html.dark .callpill, html.dark .wtog.on span, html.dark .tchip.on, html.dark .aiform button { background: #4b5bb8; border-color: #4b5bb8; color: #fff; }
html.dark .polpick, html.dark .seg2, html.dark .ini, html.dark .me .av.soft, html.dark .pbar { background: #232a48; color: #e6e8f2; }
html.dark .seg2 button { color: #a9aecb; } html.dark .seg2 button.on { background: #161c33; color: #c9d1ff; }
@media (min-width: 860px) { html.dark .tabbar button.on { background: #232a48; } html.dark .tabbar { border-color: #262d4a; } }

/* ---- native-app parity: panic states, address search, details header, photo preview ---- */
.sosbig.counting { background: var(--sos-dark); }
.sosbig.active { background: var(--sos-dark); }
.acl { display: grid; margin-top: -4px; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(27, 34, 71, 0.12); }
.acl button { display: flex; gap: 8px; align-items: flex-start; text-align: left; font: inherit; font-size: 12.5px; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line3); padding: 9px 10px; cursor: pointer; }
.acl button:last-child { border-bottom: 0; }
.acl button:hover, .acl button:focus-visible { background: #f2f4fa; }
.acl button svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.merow { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.merow > span { flex: 1; } .merow b { display: block; }
button.avbig { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.phprev { display: grid; place-items: center; }
.phprev img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
html.dark .acl { background: #0f1426; border-color: #343d63; } html.dark .acl button { color: #e6e8f2; border-color: #262d4a; }
html.dark .acl button:hover, html.dark .acl button:focus-visible { background: #232a48; }

/* ---- policy benefits (HaloNxt Policies/Utilization) ---- */
.pcard.benefit { display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: inherit; }
button.pcard.benefit { cursor: pointer; }
.pcard.benefit small.incl { color: var(--muted); }

/* ---- emergency contacts kept in HaloNxt ---- */
.pcard.ctrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard.ctrow b, .pcard.ctrow small { display: block; }
/* Travel Monitor trip tracking (schema/024): the Home banner and the trip screen */
.tripban { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-family: var(--body); color: var(--ink); cursor: pointer; }
.tripban b { display: block; font-size: 13px; }
.tripban small { display: block; font-size: 11px; color: var(--muted2); }
.tripban i { margin-left: auto; font-style: normal; font-weight: 700; font-size: 12px; color: var(--navy); }
.tdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.trstat { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.trstat.off .tdot { background: var(--muted2); }
.trstat.warn { border-color: var(--warn); }
.trstat.warn .tdot { background: var(--warn); }
.tripnote { font-size: 12px; line-height: 1.45; color: var(--ink); }
