/* Labahan Counter — light theme, detergent-box blue + claim-ticket yellow */
:root{
  --bg:#eef2fb; --surface:#fff; --surface-2:#f4f6fd; --line:#dbe1f2; --line-2:#c7cfea;
  --fg:#101a3d; --muted:#5d6789; --brand:#2340d4; --brand-2:#1a2f9e; --brand-soft:#e3e8fd;
  --tag:#ffd84d; --tag-2:#ffe98f; --tag-ink:#2b2205;
  --ok:#14804a; --ok-bg:#dcf3e6; --warn:#8a4a06; --warn-bg:#fdeed6; --bad:#b4232f; --bad-bg:#fde3e6;
  --shadow:0 6px 18px -10px rgba(16,26,61,.18);
  --f-display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  --f-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--fg);font:15px/1.45 var(--f-body);-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.5;cursor:not-allowed}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:10px}
[hidden]{display:none!important}
svg.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.small{font-size:13px}
.between{display:flex;justify-content:space-between;align-items:center;gap:12px}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row>*{flex:1 1 150px;min-width:0}
.stack{display:flex;flex-direction:column;gap:12px}

#app{max-width:560px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
.g{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

.demo-bar{background:var(--tag);color:var(--tag-ink);font-size:12.5px;font-weight:700;text-align:center;padding:6px 12px;padding-top:calc(6px + env(safe-area-inset-top,0px))}
.support-bar{background:#101a3d;color:#fff}
.demo-bar button{border:0;background:none;text-decoration:underline;font-weight:800;color:inherit;padding:0 4px}

.hdr{padding-block:20px 16px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(160deg,#e9eeff,#d3ddff);border-radius:0 0 26px 26px;border-bottom:1px solid #d3dbf3}
.eyebrow{font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.h1{font-family:var(--f-display);font-weight:800;font-size:26px;line-height:1.1;letter-spacing:-.015em;color:var(--brand-2);margin:2px 0 0;text-wrap:balance}
.h2{font-family:var(--f-display);font-weight:700;font-size:18px;line-height:1.2;margin:0}
.topbar{display:flex;align-items:center;gap:10px;padding-block:16px 10px}
.topbar .t{flex:1;min-width:0}
.topbar .t b{display:block;font-family:var(--f-display);font-weight:800;font-size:22px;color:var(--brand-2);line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

main.content{flex:1;padding-block:16px 120px;display:flex;flex-direction:column;gap:14px}
main.content.has-dock{padding-bottom:200px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.ph{display:flex;align-items:center;gap:10px}
.dot{width:30px;height:30px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.dot svg.i{width:17px;height:17px}

.field{display:flex;flex-direction:column;gap:6px}
.field label,.lbl{font-size:13px;font-weight:700}
.input{width:100%;min-height:50px;border:1.5px solid var(--line);background:var(--surface-2);border-radius:14px;padding:12px 14px;transition:border-color .15s}
.input:focus{border-color:var(--brand);background:var(--surface);outline:none}
.input.big{font:700 24px var(--f-mono);letter-spacing:.06em;min-height:58px}
.hint{font-size:12.5px;color:var(--muted)}
.err{color:var(--bad);font-size:13.5px;font-weight:700;display:flex;gap:6px;align-items:center}

.btn{min-height:50px;border-radius:15px;border:0;background:var(--brand);color:#fff;font-weight:800;font-size:15.5px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .1s}
.btn:active{transform:scale(.97)}
.btn.tag{background:var(--tag);color:var(--tag-ink)}
.btn.quiet{background:var(--surface-2);color:var(--fg);border:1.5px solid var(--line)}
.btn.danger{background:var(--surface);color:var(--bad);border:1.5px solid #f5c2c8}
.btn.sm{min-height:42px;font-size:14px;border-radius:12px;padding:0 14px}
.btn.wide{width:100%}
.iconbtn{width:44px;height:44px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center;flex:none}
.link{border:0;background:none;color:var(--brand);font-weight:800;font-size:14.5px;padding:8px 0;display:inline-flex;align-items:center;gap:6px}

.chip{border:1.5px solid var(--line);background:var(--surface-2);border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip em{font-style:normal;font-family:var(--f-mono);font-size:12.5px;opacity:.75}
.chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.scrollx{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}
.scrollx::-webkit-scrollbar{display:none}
.pill{font-size:12px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap}
.ok{background:var(--ok-bg);color:var(--ok)}.warn{background:var(--warn-bg);color:var(--warn)}.bad{background:var(--bad-bg);color:var(--bad)}.info{background:var(--brand-soft);color:var(--brand-2)}

.seg{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:var(--surface-2);border:1.5px solid var(--line);border-radius:14px;padding:4px;gap:4px}
.seg button{border:0;background:transparent;border-radius:10px;min-height:44px;font-weight:700;font-size:13.5px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 2px 8px -3px rgba(16,26,61,.25)}

.switch{width:46px;height:28px;border-radius:999px;border:0;background:var(--line-2);position:relative;flex:none;padding:0}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left .15s}
.switch[aria-pressed="true"]{background:var(--brand)}
.switch[aria-pressed="true"]::after{left:21px}

/* services grid */
.svcs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.svc{border:1.5px solid var(--line);background:var(--surface-2);border-radius:16px;padding:12px;text-align:left;display:flex;flex-direction:column;gap:6px;min-height:92px;position:relative}
.svc .ic{width:34px;height:34px;border-radius:11px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--brand)}
.svc b{font-size:14px;line-height:1.2}
.svc small{color:var(--muted);font-size:12.5px;font-family:var(--f-mono)}
.svc[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
.svc[aria-pressed="true"] .ic{background:var(--brand);color:#fff;border-color:var(--brand)}

.scale{background:var(--surface-2);border:1.5px solid var(--line);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:12px}
.scale-main{display:flex;align-items:center;gap:10px}
.stepbtn{width:54px;height:54px;border-radius:16px;border:1.5px solid var(--line-2);background:var(--surface);font-size:26px;font-weight:600;flex:none}
.stepbtn.sm{width:46px;height:46px;font-size:22px}
.readout{flex:1;min-width:0;text-align:center}
.readout input{width:100%;border:0;background:transparent;text-align:center;font:700 44px/1 var(--f-mono);padding:0;-moz-appearance:textfield}
.readout input::-webkit-outer-spin-button,.readout input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.readout input:focus{outline:none}
.readout span{display:block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:4px}
.quick{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.quick button{border:1px solid var(--line-2);background:var(--surface);border-radius:999px;padding:6px 12px;font:600 13px var(--f-mono)}
.quick button[aria-pressed="true"]{background:var(--fg);color:#fff;border-color:var(--fg)}

.lineitem{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1.5px solid var(--line);background:var(--surface-2);border-radius:14px}
.lineitem.on{border-color:var(--brand);background:var(--brand-soft)}
.lineitem .tx{flex:1;min-width:0;text-align:left}
.lineitem .tx b{display:block}
.lineitem .tx small{color:var(--muted);font-size:12.5px}
.dashed{min-height:46px;border-radius:14px;border:1.5px dashed #9aa4cf;background:var(--surface);font-weight:800;color:var(--brand);display:flex;align-items:center;justify-content:center;gap:8px}

.photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.photo{aspect-ratio:1;border-radius:14px;overflow:hidden;background:repeating-linear-gradient(135deg,#dfe5fb 0 10px,#eef2fb 10px 20px);border:1px solid var(--line-2);position:relative}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
.photo .x{position:absolute;top:6px;right:6px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(16,26,61,.7);color:#fff;display:grid;place-items:center}
.photo .x svg.i{width:14px;height:14px;stroke-width:2.6}
label.addphoto{aspect-ratio:1;border-radius:14px;border:1.5px dashed #9aa4cf;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--brand);font-weight:800;font-size:12.5px;cursor:pointer}
label.addphoto input{position:absolute;width:1px;height:1px;opacity:0}

/* ticket */
.ticket{background:linear-gradient(180deg,var(--tag-2),var(--tag));color:var(--tag-ink);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:7px;position:relative;box-shadow:0 10px 24px -14px rgba(120,90,0,.55);
  -webkit-mask:radial-gradient(circle 10px at 0 66%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 10px at 100% 66%,#0000 97%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 10px at 0 66%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 10px at 100% 66%,#0000 97%,#000) right/51% 100% no-repeat}
.ticket .tr{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px}
.ticket .stubno{font:700 42px/1 var(--f-mono)}
.ticket .who{font:700 19px/1.2 var(--f-display);overflow-wrap:anywhere}
.ticket .who.ph{opacity:.4}
.ticket .perf{border-top:2px dashed rgba(43,34,5,.28);margin:3px 0}
.ticket .due{font:700 22px var(--f-mono)}
.stamp{position:absolute;right:16px;top:16px;transform:rotate(-8deg);border:2.5px solid currentColor;border-radius:8px;padding:2px 8px;font-weight:800;font-size:13px;letter-spacing:.1em}
.stamp.paid{color:var(--ok)}.stamp.due{color:var(--bad)}.stamp.part{color:var(--warn)}
.ticket.qr{flex-direction:row;align-items:center;gap:14px}
.qrbox{background:#fff;border-radius:10px;padding:7px;flex:none;line-height:0}
.qrbox svg,.qrbox img{width:84px;height:84px}

/* board */
.live{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.live button{background:rgba(255,255,255,.8);border:1px solid var(--line-2);border-radius:14px;padding:9px 10px;text-align:left;display:flex;flex-direction:column;gap:1px;min-width:0}
.live b{font:700 22px/1.05 var(--f-mono)}
.live span{font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line-2);border-radius:14px;padding:0 12px;min-height:46px;color:var(--muted)}
.search input{border:0;background:transparent;flex:1;min-width:0;outline:none;color:var(--fg)}
.cycle{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:6px;gap:4px;box-shadow:var(--shadow)}
.cycle button{border:0;background:transparent;border-radius:14px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--muted);min-width:0}
.cycle button b{font:700 19px/1 var(--f-mono);color:var(--fg)}
.cycle button span{font-size:11px;font-weight:700;white-space:nowrap}
.cycle button svg.i{width:18px;height:18px}
.cycle button[aria-pressed="true"]{background:var(--brand);color:#fff}
.cycle button[aria-pressed="true"] b{color:#fff}
.cards{display:flex;flex-direction:column;gap:12px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);display:grid;grid-template-columns:72px minmax(0,1fr);overflow:hidden}
.card.late{border-color:#c42a3c;box-shadow:0 0 0 1px #c42a3c}
.card .stub{background:linear-gradient(180deg,var(--tag-2),var(--tag));color:var(--tag-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-right:2px dashed rgba(43,34,5,.25);padding:12px 4px}
.card .stub small{font-size:10px;font-weight:800;letter-spacing:.1em;opacity:.65}
.card .stub b{font:700 18px/1 var(--f-mono)}
.card .cb{padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.card .who{min-width:0;flex:1;text-align:left;border:0;background:none;padding:0}
.card .who b{display:block;font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .who small{color:var(--muted);font-size:13px}
.amt{text-align:right;flex:none}
.amt b{font:700 16px var(--f-mono)}
.amt small{display:block;font-size:12px;font-weight:800}
.stage{display:flex;align-items:center;gap:10px}
.ring{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center}
.ring i{width:30px;height:30px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--brand)}
.ring svg.i{width:17px;height:17px}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.actions .btn{flex:1 1 auto}
.empty{text-align:center;color:var(--muted);padding:32px 16px;border:2px dashed var(--line-2);border-radius:20px;display:flex;flex-direction:column;align-items:center;gap:8px}

/* lists */
.list{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:hidden}
.item{display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-bottom:1px solid var(--bg);background:none;width:100%;text-align:left}
.item:last-child{border-bottom:0}
.item .tx{flex:1;min-width:0}
.item .tx b{display:block;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .tx small{display:block;color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.av{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-weight:800;flex:none;background:var(--brand-soft);color:var(--brand-2)}
.ic2{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex:none;background:var(--brand-soft);color:var(--brand)}
.ic2 svg.i{width:18px;height:18px}
.grp{font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);padding:6px 4px 0}
.kv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--bg);font-size:14.5px}
.kv:last-child{border-bottom:0}
.kv b{font-family:var(--f-mono)}

/* timeline */
.step{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:start;padding-bottom:14px;position:relative}
.step .nd{width:28px;height:28px;border-radius:50%;background:var(--line);color:#fff;display:grid;place-items:center;position:relative;z-index:1}
.step.done .nd{background:var(--brand)}
.step.done.last .nd{background:var(--ok)}
.step .nd svg.i{width:15px;height:15px;stroke-width:2.6}
.step:not(:last-child)::after{content:"";position:absolute;left:13px;top:28px;bottom:0;width:2px;background:var(--line)}
.step.done:not(:last-child)::after{background:var(--brand)}
.step small{display:block;color:var(--muted);font-size:12.5px}
.step time{font-family:var(--f-mono);font-size:13px;color:var(--muted)}

.methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.method{border:1.5px solid var(--line);background:var(--surface-2);border-radius:14px;min-height:48px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}
.method i{width:10px;height:10px;border-radius:50%;flex:none}
.method[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}

/* receipt */
.receipt{background:var(--surface);padding:22px 18px 32px;font-family:var(--f-mono);border-radius:18px 18px 0 0;box-shadow:var(--shadow);
  -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/18px 100% repeat-x;
  mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/18px 100% repeat-x}
.receipt .ln{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}
.receipt .ln span{font-family:var(--f-body);font-weight:600;color:var(--muted)}
.split{display:flex;height:14px;border-radius:999px;overflow:hidden;background:var(--line)}
.split i{display:block;height:100%}
.legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.legend span{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--muted)}
.legend span i{width:10px;height:10px;border-radius:3px}
.legend b{font:700 16px var(--f-mono)}
.cell{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.cell span{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.cell b{font:700 18px var(--f-mono)}
.verdict{border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:10px;font-weight:800}
.verdict b{font-family:var(--f-mono);margin-left:auto}
.verdict.ok{background:var(--ok-bg);color:var(--ok)}.verdict.bad{background:var(--bad-bg);color:var(--bad)}.verdict.idle{background:var(--surface-2);color:var(--muted);border:1px dashed var(--line-2)}

/* docks and tab bar */
.dock{position:fixed;left:0;right:0;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:9;pointer-events:none}
.dock.bottom{bottom:0}
.dock .in{max-width:560px;margin:0 auto;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
.dock .box{pointer-events:auto;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:10px 10px 10px 18px;display:flex;align-items:center;gap:12px;box-shadow:0 14px 30px -12px rgba(16,26,61,.3)}
.dock.bottom .box{border-radius:22px 22px 0 0;padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px));flex-direction:column;align-items:stretch;gap:10px}
.dock .tot{flex:1;min-width:0}
.dock .tot span{display:block;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.dock .tot b{font:700 24px/1.1 var(--f-mono)}
nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:10;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));pointer-events:none}
nav.tabs .in{max-width:560px;margin:0 auto;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
nav.tabs .bar{pointer-events:auto;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 12px 30px -12px rgba(16,26,61,.35);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;height:68px}
nav.tabs a{text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;font-weight:800;color:var(--muted);padding:6px 0}
nav.tabs a[aria-current="page"]{color:var(--brand)}
nav.tabs a.plus{justify-self:center;width:58px;height:58px;border-radius:20px;background:var(--brand);color:#fff;display:grid;place-items:center;transform:translateY(-16px);box-shadow:0 10px 22px -8px var(--brand);padding:0}
nav.tabs a.plus svg.i{width:28px;height:28px;stroke-width:2.6}
nav.tabs a.plus[aria-current="page"]{outline:4px solid var(--brand-soft)}

.toast{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translateX(-50%);background:var(--fg);color:#fff;padding:11px 16px;border-radius:14px;font-weight:700;font-size:14px;z-index:50;max-width:calc(100% - 32px);display:flex;gap:8px;align-items:center;box-shadow:0 10px 26px -10px rgba(0,0,0,.5)}
.toast.bad{background:var(--bad)}
.toast svg.i{width:18px;height:18px;color:var(--tag)}

/* sign-in / pin */
.center{min-height:100vh;display:flex;flex-direction:column;align-items:center;gap:20px;padding:40px 20px 28px;background:linear-gradient(180deg,#d3ddff 0%,#e9eeff 34%,var(--bg) 60%)}
.logo{width:72px;height:72px;border-radius:24px;background:#fff;display:grid;place-items:center;box-shadow:0 14px 28px -14px rgba(31,63,209,.55);flex:none}
.logo svg{display:block}
.lockup{display:inline-flex;align-items:center;gap:.32em;font-family:"Fredoka",var(--f-display);font-weight:600;line-height:1;letter-spacing:-.02em;color:#1F3FD1}
.lockup .wm{transform:translateY(.03em)}
.lockup.on-blue{color:#fff}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.authcard{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 18px 40px -20px rgba(16,26,61,.4)}
.people{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.person{background:var(--surface);border:1.5px solid var(--line);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;width:96px}
.person[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.person .av{color:#fff}
.person small{font-size:11.5px;color:var(--muted);font-weight:600;margin-top:-6px;text-transform:capitalize}
.dots{display:flex;gap:16px;justify-content:center}
.dots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--brand)}
.dots i.f{background:var(--brand)}
.pad{display:grid;grid-template-columns:repeat(3,72px);gap:12px 22px;justify-content:center}
.key{width:72px;height:72px;border-radius:50%;border:0;background:var(--surface);font:600 26px var(--f-mono);box-shadow:0 4px 12px -6px rgba(16,26,61,.3)}
.key.ghost{background:transparent;box-shadow:none;font:700 14px var(--f-body);color:var(--brand)}
.prog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.prog i{height:6px;border-radius:3px;background:var(--line-2)}
.prog i.d{background:var(--brand)}

/* customer tracking */
.track-top{background:linear-gradient(160deg,#e9eeff,#d3ddff);padding:24px 20px 76px;border-bottom:1px solid #d3dbf3}
.shopmark{display:flex;align-items:center;gap:10px}
.shopmark span{width:36px;height:36px;border-radius:12px;background:var(--brand);color:#fff;display:grid;place-items:center}
.hero{margin:-60px 16px 0;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:16px;box-shadow:0 18px 40px -20px rgba(16,26,61,.4)}
.bigring{width:96px;height:96px;border-radius:50%;display:grid;place-items:center;margin:0 auto}
.bigring i{width:78px;height:78px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--brand)}
.bigring i svg.i{width:36px;height:36px;stroke-width:1.7}
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.steps div{display:flex;flex-direction:column;gap:6px;align-items:center;font-size:11px;font-weight:700;color:var(--muted)}
.steps i{display:block;height:6px;width:100%;border-radius:3px;background:var(--line)}
.steps .done i{background:var(--brand)}
.steps .now{color:var(--brand)}
.steps .now i{background:repeating-linear-gradient(90deg,var(--brand) 0 6px,#9fb0f3 6px 12px)}
.tip{background:#fff8d6;border:1px dashed #d9b52c;border-radius:16px;padding:12px 14px;display:flex;gap:10px;font-size:13.5px;color:#4a3c05}

@media (prefers-reduced-motion:no-preference){
  .card,.ticket,.panel,.hero{animation:rise .22s cubic-bezier(.2,.8,.2,1)}
  @keyframes rise{from{transform:translateY(6px);opacity:.7}to{transform:none;opacity:1}}
}
@media print{nav.tabs,.dock,.demo-bar,.noprint{display:none!important} body{background:#fff}}

/* ---------- Stage 3 ---------- */
.sheet-card{background:linear-gradient(180deg,#fff,#f6f8ff);border:1.5px solid var(--brand);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 8px 24px rgba(35,64,212,.12)}
.cando{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cando ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.cando li{display:flex;gap:6px;align-items:flex-start}
.cando li .i{width:16px;height:16px;flex:none;margin-top:2px}
.cando .yes .i{color:var(--ok)} .cando .no .i{color:var(--bad)}
.log-row{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid var(--bg)}
.log-row:last-child{border-bottom:0}
.log-row .when{font-size:12px;color:var(--muted);white-space:nowrap;min-width:64px}
textarea.input{font-family:var(--f-body);line-height:1.4}
@media (max-width:380px){.cando{grid-template-columns:1fr}}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12.5px;font-weight:700}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}

/* Install prompt */
.install-bar{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:20;max-width:520px;margin:0 auto;background:var(--surface,#fff);border:1.5px solid var(--line);border-radius:18px;padding:10px 10px 10px 12px;box-shadow:0 14px 34px -12px rgba(16,26,61,.35);display:flex;flex-direction:column;gap:8px;animation:ib-in .25s ease-out}
.install-bar.has-tabs{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.ib-row{display:flex;align-items:center;gap:10px}
.ib-icon img{width:40px;height:40px;border-radius:11px;display:block}
.ib-tx{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ib-tx b{font-size:14.5px}
.ib-tx small{color:var(--muted);font-size:12.5px}
.ib-x{border:0;background:none;color:var(--muted);width:32px;height:32px;display:grid;place-items:center;border-radius:10px;flex:none}
.ib-x .i{width:18px;height:18px}
.ib-steps{margin:0;padding:0 4px 4px 26px;font-size:14px;display:flex;flex-direction:column;gap:6px}
@keyframes ib-in{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
@media print{.install-bar{display:none!important}}

/* welcome page (first visit) */
.welcome{display:flex;flex-direction:column;min-height:100vh;background:var(--bg)}
.wl-hero{background:radial-gradient(120% 80% at 100% 0%,#3b5cf0 0%,#1F3FD1 45%,#1a2f9e 100%);color:#fff;padding:calc(18px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px));border-radius:0 0 32px 32px;overflow:hidden}
.wl-hero>.wl-wrap,.wl-copy{display:flex;flex-direction:column;gap:14px}
.wl-wrap{width:100%;max-width:1120px;margin-inline:auto}
.wl-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wl-brand{margin:0}
.wl-signin{color:#fff;font-weight:800;font-size:14.5px;text-decoration:none;border:1.5px solid rgba(255,255,255,.45);border-radius:999px;padding:8px 16px}
.wl-signin:hover{background:rgba(255,255,255,.12)}
.wl-eyebrow{margin:14px 0 0;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#FFD84D}
.wl-h{margin:0;font-family:var(--f-display);font-weight:800;font-size:clamp(28px,8vw,38px);line-height:1.06;letter-spacing:-.02em;text-wrap:balance}
.wl-lead{margin:0;color:#dfe6ff;font-size:16px;line-height:1.5;max-width:46ch}
.wl-lead b{color:#fff}
.wl-cta{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin-top:4px}
.wl-start{white-space:nowrap;background:#FFD84D;color:#2b2205;min-height:54px;font-size:16.5px;padding:0 22px;box-shadow:0 12px 24px -12px rgba(0,0,0,.5);text-decoration:none}
.wl-start:hover{background:#ffe17a}
.wl-note{font-size:13px;color:#c9d4ff}
.wl-phone{position:relative;margin:14px auto 0;width:min(320px,100%);height:150px;overflow:hidden;background:#101a3d;border-radius:30px 30px 0 0;padding:16px 14px 0;display:flex;flex-direction:column;gap:10px;box-shadow:0 -10px 30px -10px rgba(0,0,0,.4)}
.wl-notif{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.12);border-radius:16px;padding:10px 12px}
.wl-notif .mark{flex:none;background:#1F3FD1;border-radius:8px;padding:2px}
.wl-notif b{display:block;font-size:12.5px}
.wl-notif small{display:block;font-size:12px;color:#dfe6ff}
.wl-stub{align-self:center;background:#FFD84D;color:#2b2205;border-radius:14px 14px 0 0;padding:10px 18px 14px;display:flex;align-items:baseline;gap:10px;margin-top:auto}
.wl-stub small{font-size:10px;font-weight:800;letter-spacing:.1em}
.wl-stub b{font-family:var(--f-mono);font-size:24px}
.wl-stub span{font-size:12.5px;font-weight:700}
.wl-body{display:flex;flex-direction:column;gap:26px;padding-top:26px;padding-bottom:40px}
.wl-sec{display:flex;flex-direction:column;gap:12px}
.wl-bens,.wl-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.wl-ben{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px}
.wl-ic{flex:none;width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.wl-ben b,.wl-steps b{display:block;font-size:15px}
.wl-ben small,.wl-steps span{display:block;color:var(--muted);font-size:13.5px;margin-top:2px}
.wl-steps{counter-reset:s}
.wl-steps li{counter-increment:s;position:relative;padding:2px 0 2px 46px;min-height:34px}
.wl-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:#FFD84D;color:#2b2205;font-weight:800;display:grid;place-items:center;font-family:var(--f-mono)}
.wl-plans{display:grid;grid-template-columns:1fr;gap:10px}
.wl-plan{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.wl-plan.hot{border:2px solid var(--brand)}
.wl-pn{font-family:var(--f-display);font-size:19px}
.wl-pp{font-size:24px}
.wl-plan ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:5px;font-size:14px}
.wl-plan li{display:flex;gap:8px}
.wl-plan li svg.i{width:18px;height:18px;color:var(--ok);stroke-width:2.4}
.wl-final{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.wl-final b{font-family:var(--f-display);font-size:20px;line-height:1.2}
.wl-final a:not(.btn){color:var(--brand);font-weight:800}
.wl-final .btn{text-decoration:none}

/* get-started checklist (board) */
.ob{background:var(--surface);border:1.5px solid var(--brand-soft);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow)}
.ob-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.ob-bar i{display:block;height:100%;background:linear-gradient(90deg,#1F3FD1,#7FD3FF);border-radius:inherit;transition:width .3s}
.ob-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.ob-row{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-decoration:none;color:inherit;text-align:left}
a.ob-row:hover,button.ob-row:hover{border-color:var(--line-2);background:var(--surface-2)}
.ob-item.next .ob-row{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.ob-tick{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}
.ob-tick svg.i{width:18px;height:18px}
.ob-item.done .ob-row{border-style:dashed;background:transparent}
.ob-item.done .ob-tick{background:var(--ok-bg);color:var(--ok)}
.ob-item.done b{text-decoration:line-through;color:var(--muted);font-weight:600}
.ob-tx{flex:1;min-width:0}
.ob-tx b{display:block;font-size:14.5px}
.ob-tx small{display:block;color:var(--muted);font-size:12.5px}

.wl-mini{display:none}
#app:has(.welcome),#app:has(> .center){max-width:none}
@media (min-width:860px){
  .wl-hero{border-radius:0 0 48px 48px;padding-inline:40px}
  .wl-top{padding-top:8px}
  .wl-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:end;margin-top:20px}
  .wl-copy{padding-bottom:64px}
  .wl-h{font-size:clamp(40px,4.4vw,58px)}
  .wl-lead{font-size:18px}
  .wl-cta{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px 16px}
  .wl-phone{height:400px;width:340px;margin:0 0 0 auto;border-radius:40px 40px 0 0;padding:22px 18px 0;border:8px solid #0b1230;border-bottom:0;gap:14px}
  .wl-mini{display:flex;flex-direction:column;gap:8px}
  .wl-mrow{display:flex;align-items:center;gap:10px;background:#fff;color:#101a3d;border-radius:14px;padding:10px 12px}
  .wl-mrow i{width:10px;height:10px;border-radius:50%;background:#7FD3FF;flex:none}
  .wl-mrow i.ok{background:#14b86a}
  .wl-mrow span{flex:1;min-width:0}
  .wl-mrow b{display:block;font-size:13.5px}
  .wl-mrow small{display:block;font-size:12px;color:#5d6789}
  .wl-mrow em{font-style:normal;font-family:var(--f-mono);font-weight:700;font-size:13px}
  .wl-body{gap:56px;padding-top:56px;padding-bottom:72px;padding-inline:40px;max-width:1200px}
  .wl-sec{gap:18px}
  .wl-sec>.h2{font-size:28px}
  .wl-bens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .wl-ben{flex-direction:column;padding:20px;gap:14px}
  .wl-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .wl-steps li{padding:48px 0 0;min-height:0}
  .wl-plans{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
  .wl-plan{padding:20px}
  .wl-final{flex-direction:row;justify-content:space-between;text-align:left;padding:28px 32px;gap:20px}
  .wl-final b{flex:1;font-size:24px}
  .wl-final .btn.wide{width:auto}
}
/* bigger screens: give the app itself a little more room around it */
@media (min-width:860px){
  body:not(:has(.welcome)):not(:has(#app > .center)){background:linear-gradient(180deg,#dfe6fb,var(--bg) 40%)}
  #app:not(:has(.welcome)):not(:has(> .center)){box-shadow:0 0 0 1px var(--line),0 30px 60px -30px rgba(16,26,61,.25);background:var(--bg)}
}

.wl-foot{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;color:var(--muted);font-size:13.5px;padding-top:4px}
.wl-foot a{color:var(--muted)}

/* owner mobile + SMS code (setup) */
.otp-row{display:flex;gap:8px;align-items:center}
.otp-row .input{flex:1;min-width:0}
.otp-row .btn{flex:none;white-space:nowrap}
.otp-row .pill{display:inline-flex;align-items:center;gap:4px;flex:none}
.otp-row .pill svg.i{width:14px;height:14px;stroke-width:2.6}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.4;cursor:pointer}
.check input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--brand);flex:none}
.gbtn{min-height:44px;display:flex;justify-content:center}
.bc-prev{display:flex;gap:10px;align-items:flex-start;background:#101a3d;color:#fff;border-radius:16px;padding:12px 14px}
.bc-prev .mark{flex:none;background:#1F3FD1;border-radius:8px;padding:2px}
.bc-prev b{display:block;font-size:14px}
.bc-prev small{display:block;font-size:13px;color:#dfe6ff;white-space:pre-wrap}
