/* ==========================================================
   RiderTap app screens (tap page, account, dashboard, admin)
   Builds on the tokens in site.css.
   ========================================================== */
[hidden]{display:none!important}
.app-body{background:var(--bg);min-height:100vh;min-height:100dvh}
.row2{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:480px){.row2{grid-template-columns:1fr 1fr}}
.app-top{display:flex;align-items:center;justify-content:space-between;padding:14px var(--gutter);max-width:720px;margin:0 auto}
.app-top .brand span{font-size:13px}
.app-top .brand svg{width:22px;height:22px}
.app-top a.small{text-decoration:none;font-weight:600;color:var(--ink-2)}
.app-wrap{width:min(720px,100% - var(--gutter)*2);margin:0 auto;padding:4px 0 120px}
.app-narrow{width:min(520px,100% - var(--gutter)*2);margin:0 auto;padding:4px 0 120px}

/* panels + forms */
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 20px;display:grid;gap:16px}
.panel + .panel{margin-top:12px}
.panel h2{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:-.02em;line-height:1.15}
.panel .hint{font-size:14px;color:var(--muted);line-height:1.5}
.field .row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field small{font-size:12.5px;color:var(--muted)}
.field input[type=checkbox]{width:auto}
.check{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;line-height:1.45;cursor:pointer}
.check input{width:22px;height:22px;flex:none;margin-top:1px;accent-color:var(--ink)}
.pw{position:relative}
.pw button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:none;font-weight:600;font-size:13px;color:var(--muted);cursor:pointer;padding:8px}
.err{background:#FDE7E5;color:#7A1A12;border-radius:12px;padding:12px 14px;font-size:14.5px}
.okmsg{background:#E9F6EC;color:#1E5A2C;border-radius:12px;padding:12px 14px;font-size:14.5px}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;color:inherit}
.btn-danger{background:#FFF;color:#A3271B;box-shadow:inset 0 0 0 1.5px #E7B8B3}
.btn-danger:hover{background:#FDECEA}
.btn-row{display:flex;flex-wrap:wrap;gap:10px}
.btn[aria-busy="true"]{opacity:.6;pointer-events:none}

/* toggle switch */
.toggle{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:6px 0}
.toggle b{display:block;font-size:15.5px}
.toggle small{display:block;color:var(--muted);font-size:13.5px;margin-top:2px;line-height:1.4}
.switch{position:relative;flex:none;width:52px;height:32px}
.switch input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0;z-index:1}
.switch span{position:absolute;inset:0;background:#CFD0CC;border-radius:999px;transition:background .2s}
.switch span::after{content:"";position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s var(--ease)}
.switch input:checked + span{background:var(--ink)}
.switch input:checked + span::after{transform:translateX(20px)}
.switch input:focus-visible + span{outline:3px solid var(--y);outline-offset:2px}

/* contacts editor */
.contact-row{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:var(--r-md);background:#FBFBF9}
.contact-row .head{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14px}

/* photos */
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.photo-tile{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--surface)}
.photo-tile img{width:100%;height:100%;object-fit:cover}
.photo-tile button{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(14,15,16,.78);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.photo-add{display:grid;place-items:center;aspect-ratio:1;border-radius:14px;border:1.5px dashed #BDBFBB;color:var(--muted);font-weight:600;font-size:13.5px;text-align:center;cursor:pointer;padding:8px}
.photo-add:hover{border-color:var(--ink);color:var(--ink)}
.photo-add input{display:none}
.avatar-edit{display:flex;align-items:center;gap:16px}
.avatar-edit .av{width:84px;height:84px;border-radius:50%;background:var(--surface);overflow:hidden;flex:none;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:28px;color:var(--muted)}
.avatar-edit .av img{width:100%;height:100%;object-fit:cover}
.cover-edit{position:relative;aspect-ratio:16/7;border-radius:var(--r-md);background:var(--surface);overflow:hidden;display:grid;place-items:center;color:var(--muted);font-size:14px;font-weight:600}
.cover-edit img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.upload-label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.upload-label input{display:none}
.progress{font-size:13px;color:var(--muted)}

/* stepper (onboarding) */
.stepper{display:flex;gap:6px;margin:8px 0 18px}
.stepper i{flex:1;height:5px;border-radius:5px;background:#DADAD6}
.stepper i.on{background:var(--ink)}
.stepper i.done{background:var(--y)}
.step-head{display:grid;gap:8px;margin-bottom:16px}
.step-head .eyebrow{color:var(--muted)}
.step-head h1{font-family:var(--display);font-weight:800;font-size:clamp(30px,7vw,40px);letter-spacing:-.035em;line-height:1.02}
.step-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:18px}
.sticky-save{position:sticky;bottom:10px;z-index:5}

/* dashboard */
.fob-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:14px;scrollbar-width:none}
.fob-tab{flex:none;display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:6px 14px 6px 6px;font-weight:600;font-size:14px;cursor:pointer}
.fob-tab[aria-selected="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.fob-tab .dot{width:28px;height:28px;border-radius:50%;background:var(--y);overflow:hidden;display:grid;place-items:center;font-size:12px;font-weight:800}
.fob-tab .dot img{width:100%;height:100%;object-fit:cover}
.dash-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:10px 0 18px}
.dash-head h1{font-family:var(--display);font-weight:800;font-size:clamp(30px,7vw,42px);letter-spacing:-.035em;line-height:1}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.quick a,.quick button{display:flex;flex-direction:column;gap:4px;text-align:left;text-decoration:none;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:14px;font:inherit;cursor:pointer;color:inherit}
.quick b{font-size:15px}
.quick small{color:var(--muted);font-size:12.5px}
.quick .on{background:var(--ink);color:#fff;border-color:var(--ink)}
.quick .on small{color:var(--dark-muted)}
.sec{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);margin-bottom:10px;overflow:hidden}
.sec > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:14px;padding:18px 20px}
.sec > summary::-webkit-details-marker{display:none}
.sec > summary .ic{width:36px;height:36px;border-radius:10px;background:var(--surface);display:grid;place-items:center;flex:none;font-family:var(--display);font-weight:800;font-size:14px}
.sec.key > summary .ic{background:var(--y)}
.sec > summary .t{flex:1}
.sec > summary b{display:block;font-size:16px}
.sec > summary small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.sec > summary::after{content:"";width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);transition:transform .2s;margin-right:4px}
.sec[open] > summary::after{transform:rotate(225deg)}
.sec .inner{padding:0 20px 22px;display:grid;gap:16px}
.badge-ok{display:inline-block;font-size:11.5px;font-weight:700;background:#E9F6EC;color:#1E5A2C;border-radius:999px;padding:3px 9px}
.badge-warn{display:inline-block;font-size:11.5px;font-weight:700;background:#FFF3C2;color:#5A4600;border-radius:999px;padding:3px 9px}
.lock-preview{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:center}
.lock-preview canvas{width:110px;height:auto;border-radius:14px;box-shadow:0 10px 24px -12px rgba(0,0,0,.5)}

/* ---------- public tap page ---------- */
.tp-cover{height:190px;background:var(--ink);position:relative;overflow:hidden}
.tp-cover img{width:100%;height:100%;object-fit:cover}
.tp-card{width:min(520px,100% - 24px);margin:-60px auto 0;position:relative;background:var(--card);border-radius:var(--r-xl);padding:0 20px 22px;box-shadow:0 20px 40px -30px rgba(0,0,0,.4)}
.tp-card.no-cover{margin-top:16px}
.tp-av{width:104px;height:104px;border-radius:50%;border:5px solid #fff;background:var(--y);overflow:hidden;margin:0 auto;transform:translateY(-52px);margin-bottom:-40px;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:40px}
.tp-card.no-cover .tp-av{transform:none;margin:20px auto 12px}
.tp-av img{width:100%;height:100%;object-fit:cover}
.tp-name{text-align:center;font-family:var(--display);font-weight:800;font-size:34px;letter-spacing:-.03em;line-height:1}
.tp-bike{text-align:center;color:var(--muted);font-size:15px;margin-top:6px}
.tp-bio{text-align:center;font-size:15.5px;line-height:1.5;margin-top:12px;color:var(--ink-2)}
.tp-socials{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:18px}
.tp-socials a{text-decoration:none;font-weight:700;font-size:14px;padding:10px 16px;border-radius:999px;background:var(--surface)}
.tp-socials a:hover{background:#DDDDD9}
.tp-videos{display:grid;gap:8px;margin-top:16px}
.tp-videos a{display:flex;justify-content:space-between;align-items:center;text-decoration:none;border:1.5px solid var(--line);border-radius:14px;padding:12px 14px;font-weight:600;font-size:14.5px}
.tp-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:18px}
.tp-photos button{padding:0;border:0;aspect-ratio:1;border-radius:12px;overflow:hidden;cursor:zoom-in;background:var(--surface)}
.tp-photos img{width:100%;height:100%;object-fit:cover}
.tp-sos-bar{position:fixed;left:0;right:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(243,243,241,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:20}
.steps-list{display:grid;gap:4px}
.tp-sos{display:flex;align-items:center;justify-content:center;gap:10px;width:min(520px,100%);margin:0 auto;min-height:62px;border-radius:18px;background:var(--ink);color:#fff;font-weight:800;font-size:17px;text-decoration:none;border:0;cursor:pointer;box-shadow:0 14px 30px -14px rgba(0,0,0,.6)}
.tp-sos::before{content:"";width:12px;height:12px;border-radius:3px;background:var(--y)}
.tp-lost{width:min(520px,100% - 24px);margin:12px auto 0;background:var(--y);border-radius:var(--r-lg);padding:18px 20px;display:grid;gap:10px}
.tp-lost h3{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:-.02em}
.tp-foot{width:min(520px,100% - 24px);margin:18px auto 0;text-align:center;font-size:13px;color:var(--muted);display:grid;gap:6px}
.tp-foot a{font-weight:600}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:50;display:grid;place-items:center;padding:16px}
.lightbox img{max-width:100%;max-height:100%;border-radius:12px}
.lightbox button{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;font-size:20px;cursor:pointer}

/* emergency view: big, calm, fast */
.em{min-height:100vh;min-height:100dvh;background:#fff}
.em-top{background:var(--y);padding:22px 20px 26px}
.em-top .in{width:min(520px,100%);margin:0 auto}
.em-top small{display:block;font-family:var(--display);font-stretch:112%;font-weight:800;font-size:12px;letter-spacing:.16em}
.em-top h1{font-family:var(--display);font-weight:800;font-size:clamp(44px,12vw,60px);letter-spacing:-.035em;line-height:1;margin-top:8px}
.em-top p{margin-top:6px;font-weight:600}
.em-body{width:min(520px,100% - 32px);margin:0 auto;padding:18px 0 40px;display:grid;gap:12px}
.em-999{display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;border-radius:18px;background:#C8231B;color:#fff;font-weight:800;font-size:19px;text-decoration:none}
.em-label{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:10px}
.em-call{display:flex;align-items:center;justify-content:space-between;gap:12px;border:2px solid var(--ink);border-radius:18px;padding:14px 16px;text-decoration:none;min-height:72px}
.em-call b{display:block;font-size:19px}
.em-call small{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.em-call i{font-style:normal;font-weight:800;background:var(--y);border-radius:999px;padding:10px 16px;font-size:15px;white-space:nowrap}
.em-med{background:#F6F6F4;border-radius:18px;padding:16px;display:grid;gap:10px}
.em-med div{display:grid;gap:2px}
.em-med dt{font-size:12.5px;font-weight:700;color:var(--muted)}
.em-med dd{margin:0;font-size:17px;font-weight:600}
.em-note{font-size:13px;color:var(--muted);line-height:1.5;text-align:center;margin-top:8px}

/* setup landing */
.setup-hero{text-align:center;display:grid;gap:14px;justify-items:center;padding:10px 0 6px}
.setup-hero h1{font-family:var(--display);font-weight:800;font-size:clamp(34px,9vw,46px);letter-spacing:-.035em;line-height:1}
.setup-hero p{color:var(--ink-2);max-width:34ch}

/* loading */
.skeleton{display:grid;place-items:center;min-height:60vh;color:var(--muted);font-size:14px}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid #DADAD6;border-top-color:var(--ink);animation:spin .8s linear infinite;margin-bottom:12px}
@keyframes spin{to{transform:rotate(360deg)}}

/* admin */
.admin-table{width:100%;border-collapse:collapse;font-size:13.5px;background:var(--card);border-radius:var(--r-md);overflow:hidden}
.admin-table th,.admin-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.admin-table th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.admin-table code{font-size:12.5px;background:var(--surface);padding:2px 6px;border-radius:6px}
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:14px}
.stat b{display:block;font-family:var(--display);font-weight:800;font-size:28px}
.stat small{color:var(--muted)}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-md)}

/* toast */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-weight:600;font-size:14.5px;z-index:100;transition:all .3s var(--ease);max-width:calc(100% - 32px);text-align:center}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.err{background:#A3271B}

/* ---------- tap animation (also used on the marketing site) ---------- */
.tapdemo{position:relative;width:260px;height:300px;margin:0 auto}
.tapdemo .td-fob{position:absolute;left:28px;bottom:30px;width:96px;height:96px;border-radius:24px;background:var(--y);box-shadow:inset 0 -4px 0 rgba(0,0,0,.08),0 18px 30px -18px rgba(0,0,0,.5);display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:11px;letter-spacing:.08em;color:#B59400}
.tapdemo .td-fob::before{content:"";position:absolute;left:12px;top:12px;width:13px;height:13px;border-radius:50%;background:var(--bg);box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
.tapdemo .td-wave{position:absolute;left:76px;bottom:78px;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;border:3px solid var(--y);opacity:0;animation:tdWave 4.8s infinite}
.tapdemo .td-wave.w2{animation-delay:.25s}
.tapdemo .td-wave.w3{animation-delay:.5s}
.tapdemo .td-phone{position:absolute;right:20px;top:6px;width:128px;height:250px;border-radius:26px;background:#0B0B0C;padding:7px;box-shadow:0 26px 40px -24px rgba(0,0,0,.7);animation:tdPhone 4.8s infinite var(--ease);transform-origin:20% 90%}
.tapdemo .td-screen{position:relative;width:100%;height:100%;border-radius:20px;background:#F3F3F1;overflow:hidden}
.tapdemo .td-screen .s{position:absolute;inset:0;padding:22px 10px;display:grid;gap:6px;align-content:start;opacity:0;animation:tdScreen 4.8s infinite}
.tapdemo .td-screen .s .av{width:36px;height:36px;border-radius:50%;background:var(--y);margin:8px auto 2px}
.tapdemo .td-screen .s .nm{height:9px;width:60%;margin:0 auto;border-radius:5px;background:var(--ink)}
.tapdemo .td-screen .s .ln{height:6px;width:80%;margin:0 auto;border-radius:4px;background:#CFD0CC}
.tapdemo .td-screen .s .pills{display:flex;gap:4px;justify-content:center;margin-top:6px}
.tapdemo .td-screen .s .pills i{width:28px;height:12px;border-radius:6px;background:#DDDDD9}
.tapdemo .td-screen .s .sos{position:absolute;left:10px;right:10px;bottom:12px;height:22px;border-radius:8px;background:var(--ink)}
.tapdemo .td-screen .idle{position:absolute;inset:0;display:grid;place-items:center;font-size:10px;color:#9A9DA1;font-weight:600;animation:tdIdle 4.8s infinite}
.tapdemo .td-label{position:absolute;left:0;right:0;bottom:-6px;text-align:center;font-size:13.5px;font-weight:700}
.tapdemo .td-label span{position:absolute;left:0;right:0;opacity:0;animation:tdLabel 4.8s infinite}
.tapdemo .td-label span:nth-child(2){animation-delay:2.4s}
@keyframes tdPhone{0%,8%{transform:translate(0,0) rotate(0)}30%,58%{transform:translate(-62px,58px) rotate(-14deg)}78%,100%{transform:translate(0,0) rotate(0)}}
@keyframes tdWave{0%,26%{opacity:0;transform:scale(.4)}32%{opacity:.9}52%{opacity:0;transform:scale(4.2)}100%{opacity:0}}
@keyframes tdScreen{0%,36%{opacity:0}42%,92%{opacity:1}100%{opacity:0}}
@keyframes tdIdle{0%,34%{opacity:1}40%,94%{opacity:0}100%{opacity:1}}
@keyframes tdLabel{0%{opacity:0}6%,44%{opacity:1}50%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.tapdemo *{animation:none!important}.tapdemo .td-screen .s{opacity:1}.tapdemo .td-screen .idle{opacity:0}.tapdemo .td-label span:first-child{opacity:1}}

/* setup animation (phone stepping through screens) */
.setupdemo{width:172px;height:344px;margin:0 auto;border-radius:36px;background:#0B0B0C;padding:9px;box-shadow:0 30px 50px -30px rgba(0,0,0,.7)}
.setupdemo .sd-screen{position:relative;width:100%;height:100%;border-radius:28px;background:#fff;overflow:hidden}
.setupdemo .st{position:absolute;inset:0;padding:30px 14px 14px;display:grid;gap:8px;align-content:start;opacity:0;animation:sdStep 12s infinite}
.setupdemo .st:nth-child(2){animation-delay:3s}
.setupdemo .st:nth-child(3){animation-delay:6s}
.setupdemo .st:nth-child(4){animation-delay:9s}
.setupdemo .st small{font-size:9px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.setupdemo .st b{font-family:var(--display);font-weight:800;font-size:17px;letter-spacing:-.02em;line-height:1.05}
.setupdemo .st .inp{height:26px;border:1.5px solid var(--line);border-radius:8px;font-size:10px;display:flex;align-items:center;padding:0 8px;color:var(--ink-2)}
.setupdemo .st .typ{overflow:hidden;white-space:nowrap;width:0;animation:sdType 12s infinite steps(14)}
.setupdemo .st:nth-child(2) .typ{animation-delay:3s}
.setupdemo .st .go{height:28px;border-radius:9px;background:var(--ink);margin-top:4px}
.setupdemo .st .y{background:var(--y)}
.setupdemo .st .tick{width:56px;height:56px;border-radius:50%;background:var(--y);display:grid;place-items:center;margin:30px auto 6px;font-size:28px;font-weight:800}
@keyframes sdStep{0%{opacity:0;transform:translateX(16px)}3%,22%{opacity:1;transform:none}25%,100%{opacity:0;transform:translateX(-16px)}}
@keyframes sdType{0%,4%{width:0}16%,100%{width:100%}}
@media (prefers-reduced-motion:reduce){.setupdemo .st{animation:none}.setupdemo .st:first-child{opacity:1}.setupdemo .st .typ{width:100%;animation:none}}

/* =================== v2: icon-led onboarding, tabs, sheets =================== */
.icw{display:inline-grid;place-items:center;line-height:0}
.ic{width:22px;height:22px}
.ic.lg{width:30px;height:30px}
.ic.sm{width:18px;height:18px}

/* choice cards (gender, who is this for) */
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.choice{display:grid;justify-items:center;gap:10px;padding:20px 12px 16px;border-radius:20px;border:1.5px solid var(--line);background:var(--card);cursor:pointer;font:inherit;font-weight:700;font-size:15px;color:var(--ink);transition:border-color .15s,box-shadow .15s,transform .1s}
.choice:active{transform:scale(.98)}
.choice .bub{width:58px;height:58px;border-radius:50%;background:var(--surface);display:grid;place-items:center;transition:background .15s}
.choice small{font-weight:500;color:var(--muted);font-size:12.5px;margin-top:-6px}
.choice[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.choice[aria-pressed="true"] .bub{background:var(--y)}

/* chips */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:9px 14px;font:inherit;font-weight:600;font-size:14px;cursor:pointer;color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.chip .ic{width:18px;height:18px}
.chip.add{border-style:dashed;color:var(--ink-2)}

/* list rows (contacts, bikes, meds) */
.rows{display:grid;gap:8px}
.row{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 12px 12px 14px}
.row .bub{width:42px;height:42px;border-radius:12px;background:var(--surface);display:grid;place-items:center;flex:none}
.row.y .bub{background:var(--y)}
.row .t{flex:1;min-width:0}
.row b{display:block;font-size:15.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row small{display:block;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iconbtn{width:38px;height:38px;border-radius:12px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--ink-2)}
.iconbtn:hover{background:var(--surface);color:var(--ink)}
.addrow{display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px dashed #BDBFBB;border-radius:16px;padding:14px;font:inherit;font-weight:700;background:transparent;cursor:pointer;color:var(--ink)}
.addrow:hover{border-color:var(--ink)}
.inline-form{display:grid;gap:12px;background:#FBFBF9;border:1px solid var(--line);border-radius:18px;padding:16px}

/* onboarding shell */
.ob{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;width:min(560px,100%);margin:0 auto;padding:0 var(--gutter)}
.ob-top{display:flex;align-items:center;gap:12px;padding:14px 0 6px}
.ob-bar{flex:1;height:6px;border-radius:6px;background:#DADAD6;overflow:hidden}
.ob-bar i{display:block;height:100%;background:var(--ink);border-radius:6px;transition:width .35s var(--ease)}
.ob-body{flex:1;padding:18px 0 24px;display:grid;gap:18px;align-content:start}
.ob-q{font-family:var(--display);font-weight:800;font-size:clamp(30px,8vw,38px);letter-spacing:-.03em;line-height:1.05}
.ob-sub{color:var(--muted);font-size:15.5px;line-height:1.5;margin-top:-8px}
.ob-foot{position:sticky;bottom:0;padding:12px 0 calc(14px + env(safe-area-inset-bottom));background:var(--bg);display:grid;gap:8px}
.ob-foot .skip{background:none;border:0;font:inherit;font-weight:600;color:var(--muted);cursor:pointer;padding:6px}
.big-input{font-family:var(--display);font-weight:700;font-size:24px!important;padding:16px 18px!important}
.welcome-icons{display:grid;gap:10px}
.example{background:var(--surface);border-radius:14px;padding:12px 14px;font-size:13.5px;color:var(--ink-2)}
.example b{color:var(--ink)}

/* sheet (edit panel) */
.sheet-bg{position:fixed;inset:0;background:rgba(14,15,16,.45);z-index:80;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .2s}
.sheet{background:var(--bg);width:min(560px,100%);max-height:92vh;max-height:92dvh;overflow:auto;border-radius:24px 24px 0 0;padding:8px 18px calc(18px + env(safe-area-inset-bottom));animation:up .28s var(--ease)}
.sheet-head{position:sticky;top:0;background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:10px 0 12px;z-index:2}
.sheet-head h3{font-family:var(--display);font-weight:800;font-size:22px;letter-spacing:-.02em}
.sheet .grab{width:42px;height:5px;border-radius:5px;background:#CFD0CC;margin:4px auto 0}
.sheet-foot{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));background:var(--bg);padding:12px 0 4px;margin-top:12px}
@media (min-width:700px){.sheet-bg{align-items:center}.sheet{border-radius:24px;max-height:86vh}}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes fadeIn{from{opacity:0}}

/* dashboard profile header */
.dhead{background:var(--card);border:1px solid var(--line);border-radius:var(--r-xl);overflow:hidden;margin-bottom:12px}
.dhead .cov{height:120px;background:var(--ink);position:relative}
/* no cover yet: light panel with a bike, like LinkedIn / X's empty banner */
.dhead .cov.empty{background:linear-gradient(0deg,#ECECE8,#F4F4F1);display:grid;place-items:center;color:#B9BBB6}
.dhead .cov.empty .cov-ic .ic{width:54px;height:54px;stroke-width:1.4}
.dhead .cov.empty button{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
@media (min-width:700px){.dhead .cov{height:150px}}
.pill-btn{border:0;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;color:var(--ink)}
.pill-btn .ic:last-child{width:14px;height:14px;opacity:.6}
.dhead .cov img{width:100%;height:100%;object-fit:cover}
.dhead .cov button{position:absolute;right:10px;bottom:10px;background:rgba(255,255,255,.9);border:0;border-radius:999px;padding:7px 12px;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer;display:flex;gap:6px;align-items:center}
.dhead .in{padding:0 18px 18px;display:grid;gap:10px}
.dhead .av{width:84px;height:84px;border-radius:50%;border:4px solid #fff;background:var(--y);overflow:hidden;margin-top:-42px;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:32px;position:relative}
.dhead .av img{width:100%;height:100%;object-fit:cover}
.dhead h1{font-family:var(--display);font-weight:800;font-size:30px;letter-spacing:-.03em;line-height:1}
.dhead .meta{display:flex;flex-wrap:wrap;gap:6px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;border-radius:999px;padding:5px 10px;background:var(--surface)}
.pill.y{background:var(--y)}
.pill.ink{background:var(--ink);color:#fff}
.fobbar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:12px}
.fobbar::-webkit-scrollbar{display:none}
.fobchip{flex:none;display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--card);border-radius:14px;padding:6px 14px 6px 6px;font:inherit;cursor:pointer;text-align:left;color:var(--ink);transition:background .15s,border-color .15s}
.fobchip[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.fobchip[aria-selected="true"] small{color:#A9ACB0}
.fobchip .dot{width:34px;height:34px;border-radius:9px;background:var(--y);color:var(--ink);display:grid;place-items:center;overflow:hidden;font-weight:800}
.fobchip .dot img{width:100%;height:100%;object-fit:cover}
.fobchip b{display:block;font-size:14px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fobchip small{display:block;font-size:12px;color:var(--muted)}
.fobchip.add{border-style:dashed;background:transparent}
.card-sec{background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px;display:grid;gap:12px;margin-bottom:10px}
.card-sec .hd{display:flex;align-items:center;justify-content:space-between;gap:10px}
.card-sec .hd b{font-family:var(--display);font-weight:800;font-size:18px;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
.card-sec .hd .edit{display:inline-flex;align-items:center;gap:6px;border:0;background:var(--surface);border-radius:999px;padding:8px 12px;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.card-sec .empty{color:var(--muted);font-size:14px}
.dash-grid{display:grid;gap:0}
@media (min-width:900px){.dash-grid{grid-template-columns:1fr 1fr;gap:0 12px;align-items:start}}

/* bottom tab bar (tap page + dashboard) */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
.tabbar .in{display:flex;justify-content:space-around;width:min(560px,100%);margin:0 auto}
.tabbar button{flex:1;display:grid;justify-items:center;gap:3px;padding:7px 4px;border:0;background:none;font:inherit;font-size:11.5px;font-weight:700;color:var(--muted);cursor:pointer;border-radius:12px;position:relative}
.tabbar button[aria-selected="true"]{color:var(--ink)}
.tabbar button[aria-selected="true"] .icw{background:var(--y)}
.tabbar .icw{width:44px;height:30px;border-radius:999px;transition:background .15s}
.tabbar button.sos[aria-selected="true"] .icw{background:#FFD200}
.tabbar .badge{position:absolute;top:4px;right:calc(50% - 26px);min-width:18px;height:18px;border-radius:9px;background:#C8231B;color:#fff;font-size:11px;display:grid;place-items:center;padding:0 5px}

/* branded tap page header */
.tp-brand{display:flex;align-items:center;justify-content:space-between;padding:12px var(--gutter);background:var(--ink);color:#fff}
.tp-brand .brand{color:#fff}
.tp-brand .brand svg{width:22px;height:22px}
.tp-brand .brand span{font-size:13px}
.tp-brand a.own{color:#fff;font-size:13px;font-weight:700;text-decoration:none;background:rgba(255,255,255,.12);padding:7px 12px;border-radius:999px}
.tp-bikes{display:grid;gap:8px;margin-top:16px;text-align:left}
.tp-styles{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:12px}
.tp-socials a{display:inline-flex;align-items:center;gap:8px}
.em2{width:min(560px,100%);margin:0 auto;padding:16px var(--gutter) 110px;display:grid;gap:12px}
.em2-card{background:var(--y);border-radius:var(--r-xl);padding:22px 20px}
.em2-card small{display:flex;align-items:center;gap:8px;font-family:var(--display);font-stretch:112%;font-weight:800;font-size:12px;letter-spacing:.14em}
.em2-card h1{font-family:var(--display);font-weight:800;font-size:clamp(40px,11vw,54px);letter-spacing:-.035em;line-height:1;margin-top:10px}
.em2-card p{font-weight:600;margin-top:4px}
.em-notice{display:flex;gap:12px;align-items:flex-start;background:#FFF;border:2px solid var(--ink);border-radius:18px;padding:14px 16px;font-weight:600;line-height:1.4}
.em-notice .bub{width:36px;height:36px;border-radius:50%;background:#C8231B;color:#fff;display:grid;place-items:center;flex:none}
.em-call2{display:flex;align-items:center;gap:12px;background:var(--card);border:1.5px solid var(--line);border-radius:18px;padding:12px 12px 12px 14px;text-decoration:none;color:var(--ink)}
.em-call2 .bub{width:44px;height:44px;border-radius:12px;background:var(--surface);display:grid;place-items:center;flex:none}
.em-call2 .t{flex:1}
.em-call2 b{display:block;font-size:18px}
.em-call2 small{display:block;color:var(--muted);font-size:14px}
.em-call2 .go{display:inline-flex;align-items:center;gap:6px;background:var(--ink);color:#fff;border-radius:999px;padding:11px 16px;font-weight:800;font-size:15px}
.lost2{width:min(560px,100%);margin:0 auto;padding:16px var(--gutter) 110px;display:grid;gap:14px}
.lost2 .hero-ic{width:64px;height:64px;border-radius:18px;background:var(--y);display:grid;place-items:center}
.lost2 h1{font-family:var(--display);font-weight:800;font-size:34px;letter-spacing:-.03em;line-height:1.02}
.steps3{display:grid;gap:8px}
.steps3 div{display:flex;gap:10px;align-items:center;font-size:14.5px}
.steps3 i{font-style:normal;width:26px;height:26px;border-radius:8px;background:var(--surface);display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}

.app-body .toast{bottom:calc(96px + env(safe-area-inset-bottom))}

/* marketing phone mockups (scaled copies of the real tap page) */
.phone .screen{overflow:hidden}
.phone .live{position:absolute;left:0;top:0;width:375px;transform-origin:0 0;overflow:hidden;background:var(--bg);color:var(--ink);pointer-events:none;font-size:16px;line-height:1.55;text-align:left}
.phone .live .tp-brand{padding-top:40px}
.phone .live .tp-cover{height:150px}
.phone .live .tp-card{padding-bottom:16px}
.phone .live .em2,.phone .live .lost2{padding-bottom:20px}
.phone .live .tabbar{bottom:0}
.tp-soc{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;padding:10px 16px;border-radius:999px;background:var(--surface)}
.tp-ph{display:block;aspect-ratio:1;border-radius:12px;overflow:hidden}
.tp-ph img{width:100%;height:100%;object-fit:cover}
.mock-input{border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;color:#9A9DA1;background:#fff;font-size:15px}
.mock-input.tall{min-height:90px}

/* =================== v3: linked badge, add-lists, counter, cropper =================== */
/* still "this fob is yours" picture used after a tap (no tap animation once they've tapped) */
.linked{position:relative;width:132px;height:132px;margin:6px auto 0}
.linked-fob{position:absolute;inset:8px;border-radius:30px;background:var(--y);box-shadow:inset 0 -5px 0 rgba(0,0,0,.08),0 22px 34px -22px rgba(0,0,0,.55);display:grid;place-items:center;transform:rotate(-6deg)}
.linked-fob::before{content:"";position:absolute;left:15px;top:15px;width:15px;height:15px;border-radius:50%;background:var(--bg);box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
.linked-fob span{font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:.1em;color:#B59400}
.linked-tick{position:absolute;right:-4px;bottom:-2px;width:46px;height:46px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;border:4px solid var(--bg);animation:tickPop .5s .15s var(--ease) both}
.linked-tick .ic{width:24px;height:24px;stroke-width:2.6}
@keyframes tickPop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
.done-badge{width:72px;height:72px;border-radius:50%;background:var(--y);display:grid;place-items:center;margin-top:20px;animation:tickPop .45s var(--ease) both}
@media (prefers-reduced-motion:reduce){.linked-tick,.done-badge{animation:none}}

/* "Add a fob" sheet: room around the demo */
.sheet-add{display:grid;gap:14px}
.sheet-add > p{margin:0}
.tapdemo-wrap{display:grid;place-items:center;padding:10px 0 6px;background:var(--surface);border-radius:20px;overflow:hidden}
.tapdemo-wrap .tapdemo{transform:scale(.82);margin:-24px auto}

/* add your own items (allergies, conditions) */
.add-item{display:flex;gap:8px}
.add-item input{flex:1;min-width:0}
.add-item .btn{flex:none}
.chip-x{border:0;background:rgba(255,255,255,.18);color:inherit;width:22px;height:22px;border-radius:50%;margin:-4px -6px -4px 2px;font:inherit;font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center}
.chip-x:hover{background:rgba(255,255,255,.32)}
span.chip{cursor:default}

/* character countdown */
.counter{display:block;text-align:right;color:var(--muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.counter.low{color:#B4232C;font-weight:700}

/* photo cropper */
.crop-ov{position:fixed;inset:0;z-index:120;background:rgba(10,10,11,.86);display:grid;place-items:center;padding:16px;animation:fadeIn .2s}
.crop-box{background:var(--bg);border-radius:24px;padding:18px;display:grid;gap:14px;justify-items:center;max-width:100%}
.crop-title{font-family:var(--display);font-weight:800;font-size:20px;letter-spacing:-.02em;justify-self:start}
.crop-frame{position:relative;border-radius:14px;overflow:hidden;touch-action:none;background:#fff;box-shadow:0 0 0 1px var(--line)}
.crop-frame.round::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(255,255,255,.55);pointer-events:none}
.crop-canvas{display:block;cursor:grab;touch-action:none}
.crop-canvas:active{cursor:grabbing}
.crop-zoom{display:flex;align-items:center;gap:10px;width:100%;font-weight:800;color:var(--muted)}
.crop-zoom input{flex:1;accent-color:var(--ink)}
.crop-hint{font-size:13px;color:var(--muted);margin:-6px 0 0}
.crop-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
/* form rows never push the page wider than the phone */
.form > *,.ob-body > *,.sheet > *{min-width:0}
.social-row input{width:100%}
/* every text box in a form looks the same, labelled or not */
.form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.form textarea{width:100%;background:var(--card);border:1.5px solid var(--line);border-radius:14px;padding:13px 15px;font-size:16px;transition:border-color .15s}
.form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,.form textarea:focus{outline:none;border-color:var(--ink)}
.add-item input{width:auto!important}
.dhead .cov.empty button{color:var(--ink)}

/* =================== admin v3: lists that work on phone and desktop =================== */
.admin-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:6px 0 18px;padding:4px;background:var(--card);border:1px solid var(--line);border-radius:16px}
.admin-tabs::-webkit-scrollbar{display:none}
.admin-tabs button{flex:none;display:flex;align-items:center;gap:6px;border:0;background:none;font:inherit;font-weight:700;font-size:14px;padding:9px 12px;border-radius:12px;cursor:pointer;color:var(--muted)}
.admin-tabs button[aria-current="page"]{background:var(--ink);color:#fff}
.admin-body{display:grid;gap:12px}
.admin-body > *{min-width:0}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
@media (min-width:700px){.stat-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}
.stat{display:grid;gap:2px}
.stat b{font-size:26px;line-height:1.1;letter-spacing:-.02em}
.stat small{font-size:12.5px}
.stat .sub{font-size:11.5px}
.hd-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.empty-box{background:var(--card);border:1px dashed var(--line);border-radius:16px;padding:22px;text-align:center}
.toolbar{display:grid;gap:10px}
.search{display:flex;align-items:center;gap:8px;background:var(--card);border:1.5px solid var(--line);border-radius:14px;padding:0 12px;color:var(--muted)}
.search:focus-within{border-color:var(--ink)}
.search input{flex:1;min-width:0;border:0;background:none;padding:12px 0;font-size:16px;outline:none;color:var(--ink)}
.scroll-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.scroll-chips::-webkit-scrollbar{display:none}
.scroll-chips .chip{flex:none}
.chip.danger{color:#B4232C;border-color:#F1C9C6}
.chip.danger:hover{background:#FDF0EF}
.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13.5px;letter-spacing:.02em}

/* status labels: soft fill + text, never colour alone */
.ost{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px;background:var(--surface);color:var(--ink);white-space:nowrap}
.ost-paid{background:var(--y)}
.ost-packing,.ost-printing{background:#FFF0A8}
.ost-shipped{background:#DCEBFF;color:#123E73}
.ost-delivered{background:#E3F4E7;color:#1D5A2C}
.ost-cancelled{background:#ECECEA;color:#55585C}
.ost-refunded{background:#FCE4E2;color:#8A1F17}

/* order + fob rows */
.olist{display:grid;gap:8px}
.orow{display:flex;align-items:stretch;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;transition:border-color .15s,background .15s}
.orow.on{border-color:var(--ink);background:#FFFDF0}
.ocheck{display:grid;place-items:center;padding:0 4px 0 14px;cursor:pointer}
.ocheck input,.list-head input{width:20px;height:20px;accent-color:var(--ink);cursor:pointer}
.omain{flex:1;min-width:0;display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"num who end" "what what what";gap:4px 12px;align-items:center;text-align:left;border:0;background:none;font:inherit;color:inherit;padding:12px 14px;cursor:pointer}
.omain:hover{background:rgba(0,0,0,.015)}
.onum{grid-area:num;display:grid}
.onum b{font-size:15px}
.onum small,.owho small,.owhat small{color:var(--muted);font-size:12.5px}
.owho{grid-area:who;display:grid;min-width:0}
.owho b,.owho small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.owhat{grid-area:what;display:flex;flex-wrap:wrap;gap:2px 10px;font-size:13.5px;color:var(--ink-2)}
.oend{grid-area:end;display:grid;justify-items:end;gap:4px}
@media (min-width:800px){
  .omain{grid-template-columns:110px minmax(160px,1.2fr) minmax(160px,1fr) auto;grid-template-areas:"num who what end"}
  .owhat{display:grid}
}
.frow{align-items:center;padding:12px 14px;gap:12px;flex-wrap:wrap}
.frow .onum{min-width:130px}
.frow .owho{flex:1;min-width:140px}
.frow .btn-row{gap:6px}
.list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 4px 8px}
.list-head .check{display:flex;align-items:center;gap:8px}
.pager{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:14px;font-weight:600;font-size:14px}
.pager .btn[disabled]{opacity:.4;pointer-events:none}

/* bulk actions bar: sticks to the bottom while orders are ticked */
.bulkbar{position:sticky;bottom:12px;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;background:var(--ink);color:#fff;border-radius:18px;padding:12px 14px;box-shadow:0 18px 40px -18px rgba(0,0,0,.6);order:9}
.bulkbar .bacts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.bulkbar select{border-radius:12px;border:0;padding:9px 10px;font:inherit;font-weight:600;background:#fff;color:var(--ink)}
.bulkbar .btn-ink{background:#fff;color:var(--ink)}
.bulkbar .check{display:flex;align-items:center;gap:8px;color:#D3D5D8}
.bulkbar .check input{accent-color:var(--y)}
.bulkbar .linkbtn{color:#D3D5D8}

/* messages */
.mlist{display:grid;gap:10px}
.msg.new{border-color:var(--ink);box-shadow:inset 4px 0 0 var(--y)}
.msg-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.msg .btn-row{gap:6px}
.msg .chip{text-decoration:none}

/* fob writer */
.wlink{display:block;font-size:15px;word-break:break-all;background:var(--surface);border-radius:12px;padding:14px}

/* analytics: one series, single hue, hover a bar for its numbers */
.chart{position:relative;display:grid;gap:6px}
.cmax{font-size:12px;color:var(--muted)}
.cbars{display:flex;align-items:flex-end;gap:2px;height:160px;border-bottom:1px solid var(--line)}
.cbar{flex:1;height:100%;display:flex;align-items:flex-end;cursor:pointer;outline:none}
.cbar i{display:block;width:100%;background:var(--ink);border-radius:4px 4px 0 0;min-height:0}
.cbar:hover i,.cbar:focus i{background:#4A4D52}
.caxis{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}
.ctip{font-size:13px;font-weight:600;background:var(--surface);border-radius:10px;padding:8px 10px;justify-self:start}
.blist{display:grid;gap:10px}
.brow{display:grid;grid-template-columns:1fr auto;gap:4px 10px;font-size:14px}
.brow .bl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.brow .bv{font-variant-numeric:tabular-nums;color:var(--ink-2)}
.brow .bt{grid-column:1/-1;height:6px;background:var(--surface);border-radius:6px;overflow:hidden}
.brow .bt i{display:block;height:100%;background:var(--ink);border-radius:6px}
/* setup demo phone: bigger and legible (overrides the original 172px version) */
.setupdemo{width:min(280px,78vw);height:auto;aspect-ratio:1/2;border-radius:44px;padding:11px;margin:0 auto}
.setupdemo .sd-screen{border-radius:34px}
.setupdemo .st{padding:44px 20px 20px;gap:12px}
.setupdemo .st small{font-size:11.5px}
.setupdemo .st b{font-size:24px;line-height:1.1}
.setupdemo .st .inp{height:40px;font-size:14px;border-radius:11px;padding:0 12px;white-space:nowrap;overflow:hidden}
.setupdemo .st .go{height:42px;border-radius:12px;margin-top:6px}
.setupdemo .st .tick{width:76px;height:76px;font-size:36px;margin:60px auto 10px}
/* empty cover on the public profile: light panel + motorbike */
.tp-cover.empty{background:linear-gradient(0deg,#ECECE8,#F4F4F1);display:grid;place-items:center;color:#B9BBB6}
.tp-cover.empty .ic{width:64px;height:64px;stroke-width:1.3;margin-top:-30px}
/* bigger motorbike on the dashboard's empty cover */
.dhead .cov.empty .cov-ic .ic{width:68px;height:68px;stroke-width:1.3}
/* bike photos in rows */
.row .bub.has-img{padding:0;overflow:hidden;width:56px;height:56px;border-radius:12px}
.row .bub.has-img img,.bub-btn img{width:100%;height:100%;object-fit:cover;display:block}
.bub-btn{border:0;padding:0;width:100%;height:100%;cursor:zoom-in;background:none}
.bike-pic{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bike-pic.busy{opacity:.5;pointer-events:none}
.bike-pic-btn{position:relative;display:grid;place-items:center;width:132px;aspect-ratio:4/3;border:1.5px dashed #BDBFBB;border-radius:14px;overflow:hidden;cursor:pointer;background:var(--card);color:var(--muted);font-size:12.5px;font-weight:600;text-align:center}
.bike-pic-btn span{display:grid;justify-items:center;gap:4px;padding:6px}
.bike-pic-btn img{width:100%;height:100%;object-fit:cover}
.bike-pic-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}
/* "who's this fob for" with six choices: smaller cards, three across on wider screens */
.choice small{text-align:center}
@media (min-width:520px){.form > .choice-grid:has(> :nth-child(6)){grid-template-columns:repeat(3,1fr)}}
.msg-card.unread{border-color:var(--ink);box-shadow:inset 4px 0 0 var(--y)}
.msg-card .btn-row{gap:6px}
/* discount form: % or £, one value */
.seg{display:inline-flex;background:var(--surface);border-radius:12px;padding:3px;gap:3px;width:max-content}
.seg-btn{border:0;background:none;font:inherit;font-weight:700;font-size:14px;padding:8px 16px;border-radius:9px;cursor:pointer;color:var(--muted)}
.seg-btn[aria-pressed="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.val-wrap{position:relative;max-width:200px;margin-top:8px}
.val-wrap input{padding-right:40px!important}
.val-wrap .unit{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-weight:800;color:var(--muted)}
.val-wrap .unit.pre{right:auto;left:14px}
.val-wrap .unit.pre + input{padding-left:30px!important;padding-right:15px!important}
.disc-preview{font-size:14px;font-weight:600;color:var(--ink-2);min-height:1.4em;margin:0}
.disc-made{display:flex;align-items:center;gap:12px;background:#E9F6EC;border-radius:16px;padding:14px;flex-wrap:wrap}
.disc-made > div:nth-child(2){flex:1;min-width:180px;display:grid;gap:2px}
.disc-made small{color:#2F5B39}
.dm-tick{width:36px;height:36px;border-radius:50%;background:#1D5A2C;color:#fff;display:grid;place-items:center;flex:none}
.dm-tick .ic{width:20px;height:20px;stroke-width:2.6}
.tp-cover.empty{place-items:start center;padding-top:26px}
.tp-cover.empty .ic{width:56px;height:56px;margin-top:0}
.ost-stealth{background:#151617;color:#fff}
.print-grid{display:grid;gap:8px}
@media (min-width:700px){.print-grid{grid-template-columns:1fr 1fr}}
.print-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;text-decoration:none;color:var(--ink);background:var(--card)}
.print-card:hover{border-color:var(--ink)}
.print-card > span:nth-child(2){flex:1;display:grid}
.print-card small{color:var(--muted)}
.pc-sw{width:34px;height:34px;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
/* dashboard header: tap photo to edit */
.dhead button.av{border:4px solid #fff;padding:0;cursor:pointer;color:var(--ink);font:inherit;font-family:var(--display);font-weight:800;font-size:32px;overflow:visible}
.dhead button.av img{border-radius:50%}
.dhead .av-edit{position:absolute;right:-2px;bottom:-2px;width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;border:3px solid #fff}
.dhead .av-edit .ic{width:15px;height:15px}
.sheet-small{display:grid;gap:12px}
.pm-preview{justify-self:center;overflow:hidden;background:var(--surface)}
.pm-preview img{width:100%;height:100%;object-fit:cover;display:block}
.pm-preview.avatar{width:140px;height:140px;border-radius:50%}
.pm-preview.cover{width:100%;aspect-ratio:16/7;border-radius:16px}
/* account settings rows */
.acct-email{display:flex;align-items:center;gap:12px;background:var(--bg);border-radius:14px;padding:12px}
.acct-email .bub,.acct-row .bub{width:40px;height:40px;border-radius:12px;background:var(--surface);display:grid;place-items:center;flex:none}
.acct-email .t{display:grid;min-width:0}
.acct-email small{color:var(--muted);font-size:12.5px}
.acct-email b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-rows{display:grid;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.acct-row{display:flex;align-items:center;gap:12px;width:100%;border:0;background:var(--card);padding:12px 14px;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.acct-row + .acct-row{border-top:1px solid var(--line)}
.acct-row:hover{background:#FAFAF8}
.acct-row .t{flex:1;display:grid}
.acct-row small{color:var(--muted);font-size:12.5px}
.acct-row .chev{color:var(--muted)}
.acct-row.danger{color:#B4232C}
.acct-row.danger .bub{background:#FDECEA}
.sheet-small .pw{position:relative}
/* ============ log in / sign up: form + brand panel ============ */
.auth{min-height:100vh;min-height:100dvh;display:grid}
.auth-main{display:flex;flex-direction:column;min-width:0}
.auth-main .app-top{width:100%}
.auth-main .app-narrow{width:min(440px,100% - var(--gutter)*2);margin:8px auto 0;flex:none}
.auth-trust{width:min(440px,100% - var(--gutter)*2);margin:28px auto 0;display:grid;gap:10px;font-size:14px;color:var(--ink-2)}
.auth-trust > div{display:flex;gap:10px;align-items:flex-start}
.auth-trust .dot{width:8px;height:8px;border-radius:2px;background:var(--y);margin-top:7px;flex:none}
.auth-foot{margin:auto auto 0;padding:32px var(--gutter) calc(20px + env(safe-area-inset-bottom));display:flex;gap:18px;font-size:13px}
.auth-foot a{color:var(--muted);text-decoration:none}
.auth-foot a:hover{color:var(--ink)}
.auth-side{display:none}
@media (min-width:960px){
  .auth{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .auth-main .app-top{max-width:none;padding:22px 40px}
  .auth-main .app-narrow{margin-top:auto}
  .auth-side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:#0E0F10;color:#fff;overflow:hidden}
  .auth-photo{flex:1;min-height:0;position:relative}
  .auth-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.92}
  .auth-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,15,16,0) 55%,#0E0F10 100%)}
  .auth-copy{padding:0 48px 48px;display:grid;gap:16px;position:relative;margin-top:-40px}
  .auth-copy .eyebrow{color:#9EA1A5}
  .auth-copy h2{font-family:var(--display);font-weight:800;font-size:clamp(34px,3.4vw,48px);letter-spacing:-.035em;line-height:1}
  .auth-copy ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;color:#C9CBCF;font-size:15px}
  .auth-copy li{display:flex;gap:10px}
  .auth-copy li::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--y);margin-top:7px;flex:none}
}
.auth-main .app-narrow{padding-bottom:0}
