*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0}
[hidden]{display:none!important}
img{max-width:100%}

/* Layout: one-screen phone app — header, scrolling view, bottom tab bar. Pharmacy-cross green on a cool, green-tinted ground. */
:root{
  --bg:#f2f5f3; --surface:#ffffff; --ink:#13201a; --muted:#5b6a63; --line:#d8e1dc;
  --green:#0b7a52; --green-soft:#e0f0e8; --on-green:#ffffff;
  --urgent:#c23b2d; --urgent-soft:#fbe8e5; --amber:#9a6200; --amber-soft:#fbefd6;
  --blue:#2a5fa8; --blue-soft:#e3ecf8;
  --f-body:"Commissioner", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:"Noto Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r:12px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0e1412; --surface:#16201c; --ink:#e4ede8; --muted:#93a39b; --line:#29362f;
  --green:#40c08b; --green-soft:#16382a; --on-green:#062316;
  --urgent:#ff7b6c; --urgent-soft:#3a1c18; --amber:#e6a83c; --amber-soft:#382a10;
  --blue:#7fa9e8; --blue-soft:#18263b; color-scheme:dark;}}
:root[data-theme="dark"]{
  --bg:#0e1412; --surface:#16201c; --ink:#e4ede8; --muted:#93a39b; --line:#29362f;
  --green:#40c08b; --green-soft:#16382a; --on-green:#062316;
  --urgent:#ff7b6c; --urgent-soft:#3a1c18; --amber:#e6a83c; --amber-soft:#382a10;
  --blue:#7fa9e8; --blue-soft:#18263b; color-scheme:dark;}
html,body{height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45;display:flex;flex-direction:column;overflow:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.top{display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line);flex:none}
.cross{width:26px;height:26px;flex:none}
.brand{font-weight:700;font-size:17px;letter-spacing:-.01em;flex:1;min-width:0}
.brand small{display:block;font-weight:500;font-size:12px;color:var(--muted);letter-spacing:0}
.me{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:5px 12px 5px 5px;font-weight:600;font-size:14px;max-width:55%}
.me span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;flex:none}
main{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.view{padding:16px 16px 24px;max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.view[hidden]{display:none!important}
h2{font-size:20px;margin:0;letter-spacing:-.01em;text-wrap:balance}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.spread{justify-content:space-between}
.muted{color:var(--muted)}
.notice{padding:10px 12px;border-radius:var(--r);background:var(--amber-soft);color:var(--ink);font-size:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
form.card{padding:12px;display:flex;flex-direction:column;gap:10px}
label.f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;flex:1;min-width:130px}
input[type=text],input[type=date],select,textarea{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:16px;width:100%;min-width:0;text-transform:none;letter-spacing:0;font-weight:400;color:var(--ink)}
textarea{resize:vertical;min-height:44px}
.btn{border:0;border-radius:10px;padding:10px 16px;font-weight:600;background:var(--green);color:var(--on-green);min-height:42px}
.btn.ghost{background:transparent;color:var(--green);border:1px solid var(--line)}
.btn.small{padding:6px 12px;min-height:32px;font-size:14px}
.btn.danger{background:transparent;color:var(--urgent);border:1px solid var(--line)}
.btn.danger.armed{background:var(--urgent);color:#fff;border-color:var(--urgent)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.toggle{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.toggle input{width:20px;height:20px;accent-color:var(--urgent)}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 14px;font-size:14px;font-weight:600;color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.list{display:flex;flex-direction:column}
.list>.item+.item{border-top:1px solid var(--line)}
.item{display:flex;gap:12px;padding:12px;align-items:flex-start}
.item .body{flex:1;min-width:0}
.item .title{font-weight:600;overflow-wrap:anywhere}
.item.done .title{text-decoration:line-through;color:var(--muted)}
.meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;font-size:13px;color:var(--muted);align-items:center}
.pill{display:inline-flex;align-items:center;gap:4px;border-radius:6px;padding:1px 7px;font-size:12px;font-weight:700;letter-spacing:.02em}
.pill.urgent{background:var(--urgent-soft);color:var(--urgent)}
.pill.late{background:var(--urgent);color:#fff}
.pill.today{background:var(--amber-soft);color:var(--amber)}
.pill.need{background:var(--urgent-soft);color:var(--urgent)}
.pill.ordered{background:var(--blue-soft);color:var(--blue)}
.pill.arrived{background:var(--green-soft);color:var(--green)}
.check{width:26px;height:26px;border-radius:8px;border:2px solid var(--line);background:var(--bg);flex:none;display:grid;place-items:center;margin-top:1px}
.check.on{background:var(--green);border-color:var(--green);color:var(--on-green)}
.iconbtn{border:0;background:transparent;color:var(--muted);padding:4px 6px;border-radius:8px;font-size:18px;line-height:1}
.empty{padding:28px 16px;text-align:center;color:var(--muted)}
.empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}
.note{font-size:14px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.section-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:6px 2px -6px}
details.add>summary{list-style:none;cursor:pointer}
details.add>summary::-webkit-details-marker{display:none}
/* chat */
#v-chat{height:100%;padding-bottom:0}
.chatwrap{display:flex;flex-direction:column;gap:6px;flex:1}
.msg{max-width:82%;display:flex;flex-direction:column;align-self:flex-start}
.msg.mine{align-self:flex-end;align-items:flex-end}
.bubble{background:var(--surface);border:1px solid var(--line);border-radius:14px 14px 14px 4px;padding:8px 12px;overflow-wrap:anywhere;white-space:pre-wrap}
.msg.mine .bubble{background:var(--green);color:var(--on-green);border-color:var(--green);border-radius:14px 14px 4px 14px}
.msg .who{font-size:12px;font-weight:600;color:var(--muted);margin:0 4px 2px}
.msg time{font-size:11px;color:var(--muted);margin:2px 4px 0;font-family:var(--f-mono)}
.daysep{align-self:center;font-size:12px;font-weight:600;color:var(--muted);background:var(--line);border-radius:999px;padding:2px 10px;margin:8px 0}
.composer{position:sticky;bottom:0;background:var(--bg);padding:10px 0 12px;display:flex;gap:8px;align-items:flex-end;border-top:1px solid var(--line)}
.composer textarea{flex:1;max-height:120px}
/* shifts */
.gridwrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table.shifts{border-collapse:collapse;width:100%;min-width:560px;font-size:13px}
.shifts th,.shifts td{border-bottom:1px solid var(--line);padding:6px 4px;text-align:center}
.shifts thead th{font-weight:600;color:var(--muted);font-size:12px;line-height:1.2}
.shifts thead th b{display:block;color:var(--ink);font-size:14px;font-family:var(--f-mono)}
.shifts th.name{text-align:left;padding-left:12px;font-weight:600;color:var(--ink);white-space:nowrap;position:sticky;left:0;background:var(--surface);z-index:1;max-width:120px;overflow:hidden;text-overflow:ellipsis}
.shifts .today{background:var(--green-soft)}
.shifts tr:last-child td,.shifts tr:last-child th{border-bottom:0}
.cell{width:100%;min-width:52px;min-height:44px;border:1px dashed var(--line);background:transparent;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;line-height:1.1;padding:2px}
.cell small{font-family:var(--f-mono);font-weight:500;font-size:10px;color:inherit;opacity:.85}
.cell.P{background:var(--green-soft);color:var(--green);border:0}
.cell.A{background:var(--blue-soft);color:var(--blue);border:0}
.cell.O{background:var(--green);color:var(--on-green);border:0}
.cell.E{background:var(--amber-soft);color:var(--amber);border:0}
.cell.R{background:var(--bg);color:var(--muted);border:0}
.cell.X{background:var(--bg);color:var(--ink);border:1px solid var(--line)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted)}
.legend span b{font-family:var(--f-mono);color:var(--ink)}
.weeknav{display:flex;align-items:center;gap:8px}
.weeknav .lbl{font-weight:600;font-family:var(--f-mono);font-size:14px;min-width:0}
/* tabs */
nav.tabs{flex:none;display:grid;grid-template-columns:repeat(5,1fr);background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
nav.tabs button{border:0;background:transparent;padding:8px 2px 9px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-weight:600;color:var(--muted);position:relative}
nav.tabs button svg{width:24px;height:24px}
nav.tabs button[aria-current="page"]{color:var(--green)}
.badge{position:absolute;top:4px;left:calc(50% + 6px);background:var(--urgent);color:#fff;border-radius:999px;font-size:11px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;font-family:var(--f-mono)}
/* sheet */
.overlay{position:fixed;inset:0;background:rgba(8,15,12,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.sheet{background:var(--surface);width:100%;max-width:560px;border-radius:18px 18px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));max-height:85%;overflow-y:auto;display:flex;flex-direction:column;gap:12px}
.sheet header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sheet h3{margin:0;font-size:18px}
.pick{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:var(--bg);border-radius:var(--r);padding:10px 12px;font-weight:600}
.pick[aria-pressed="true"]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.pick .sub{display:block;font-weight:400;font-size:13px;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:10px;font-size:14px;font-weight:600;z-index:30;max-width:calc(100% - 32px)}
@media (prefers-reduced-motion:no-preference){.sheet{animation:up .18s ease-out}@keyframes up{from{transform:translateY(24px);opacity:.6}}}

/* --- NAS edition additions --- */
body{padding-top:env(safe-area-inset-top,0px)}
.auth{flex:1;overflow-y:auto;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.auth .card{width:100%;max-width:380px;padding:20px;display:flex;flex-direction:column;gap:14px}
.auth h1{margin:0;font-size:22px;letter-spacing:-.01em;display:flex;align-items:center;gap:10px}
.auth p{margin:0;color:var(--muted)}
.err{color:var(--urgent);font-size:14px;font-weight:600;min-height:1em}
input.pin{font-family:var(--f-mono);letter-spacing:.4em;font-size:20px;text-align:center}
.setrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border-top:1px solid var(--line)}
.setrow:first-child{border-top:0}
.setrow .lbl{font-weight:600}
.setrow .sub{font-size:13px;color:var(--muted);font-weight:400}
.tip{padding:10px 12px;border-radius:var(--r);background:var(--green-soft);font-size:14px}
.offline{position:fixed;top:calc(env(safe-area-inset-top,0px) + 56px);left:50%;transform:translateX(-50%);background:var(--amber-soft);color:var(--amber);font-weight:600;font-size:13px;padding:4px 12px;border-radius:999px;z-index:15}

/* ===== Visual refresh ===== */
:root{--hero-a:#0b7a52;--hero-b:#0a5a3e;--on-hero:#ffffff;--tile-shadow:0 1px 2px rgba(16,40,30,.06),0 4px 14px rgba(16,40,30,.06)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--hero-a:#0f5a3f;--hero-b:#0a3b2a;--on-hero:#eafff5;--tile-shadow:none}}
:root[data-theme="dark"]{--hero-a:#0f5a3f;--hero-b:#0a3b2a;--on-hero:#eafff5;--tile-shadow:none}

.hero{flex:none;color:var(--on-hero);padding:14px 16px 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M18 10h8v8h8v8h-8v8h-8v-8h-8v-8h8z' fill='%23ffffff' fill-opacity='.07'/%3E%3C/svg%3E"),
    linear-gradient(135deg,var(--hero-a),var(--hero-b))}
.hero-row{display:flex;align-items:center;gap:12px;max-width:720px;margin:0 auto}
.hero-txt{flex:1;min-width:0}
.hello{font-size:21px;font-weight:700;letter-spacing:-.01em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.date{font-size:13px;opacity:.85;font-weight:500}
.hero .me{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.25);color:var(--on-hero)}
.hero .me .av{box-shadow:0 0 0 2px rgba(255,255,255,.6)}
.offline{top:calc(env(safe-area-inset-top,0px) + 70px)}

/* icons & avatars */
.ico{width:1em;height:1em;flex:none;vertical-align:-.125em}
.av.xs{width:18px;height:18px;font-size:9px}
.av.sm{width:30px;height:30px;font-size:12px}
.av.md{width:40px;height:40px;font-size:15px}
.av.anyone{background:var(--line);color:var(--muted)}
.by{display:inline-flex;align-items:center;gap:5px}
.pill{gap:4px}
.pill.plain{background:var(--bg);color:var(--muted);border:1px solid var(--line)}
.pill .ico{width:12px;height:12px}

/* home tiles */
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.tile{border:0;border-radius:16px;padding:12px 10px;text-align:left;display:flex;flex-direction:column;gap:2px;background:var(--surface);box-shadow:var(--tile-shadow);border:1px solid var(--line);min-width:0}
.tile b{font-size:28px;line-height:1.1;font-family:var(--f-mono);font-weight:500;color:var(--ink)}
.tile>span:last-child{font-size:12.5px;color:var(--muted);font-weight:600;line-height:1.25}
.tile-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:18px;margin-bottom:6px}
.t-green .tile-ico{background:var(--green-soft);color:var(--green)}
.t-blue .tile-ico{background:var(--blue-soft);color:var(--blue)}
.t-amber .tile-ico{background:var(--amber-soft);color:var(--amber)}
.t-red .tile-ico{background:var(--urgent);color:#fff}
.t-red b{color:var(--urgent)}
.sec-h{display:flex;justify-content:space-between;align-items:baseline;margin:6px 2px -4px}
.sec-h h3{margin:0;font-size:16px}
.link{border:0;background:none;color:var(--green);font-weight:600;font-size:14px;padding:4px}

/* shift cards */
.shiftcards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shiftcard{border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);background:var(--surface);min-width:0}
.shiftcard.wide{grid-column:1/-1}
.shiftcard.s-P{background:linear-gradient(160deg,var(--amber-soft),var(--surface) 70%)}
.shiftcard.s-A{background:linear-gradient(160deg,var(--blue-soft),var(--surface) 70%)}
.shiftcard.s-E{background:linear-gradient(160deg,var(--green-soft),var(--surface) 70%)}
.shiftcard.now{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.sc-head{display:flex;align-items:center;gap:10px}
.sc-ico{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:18px;background:var(--surface);flex:none}
.s-P .sc-ico{color:var(--amber)} .s-A .sc-ico{color:var(--blue)} .s-E .sc-ico{color:var(--green)}
.sc-title{font-weight:700}
.sc-time{font-family:var(--f-mono);font-size:12px;color:var(--muted)}
.live{margin-left:auto;background:var(--green);color:var(--on-green);font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;display:inline-flex;align-items:center;gap:5px}
.live::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
@media (prefers-reduced-motion:no-preference){.live::before{animation:blink 1.6s ease-in-out infinite}@keyframes blink{50%{opacity:.25}}}
.sc-people{display:flex;flex-wrap:wrap;gap:10px}
.person{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:600;max-width:72px;text-align:center}
.person span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:72px}

/* tasks */
.check{border-radius:50%;width:28px;height:28px;font-size:16px}
.check.on{background:var(--green)}
.item.hot{background:linear-gradient(90deg,var(--urgent-soft),transparent 40%)}
.progress{display:flex;align-items:center;gap:14px;padding:12px 14px}
.progress .title{font-weight:700}
.ringwrap{position:relative;width:64px;height:64px;flex:none}
.ringwrap b{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--f-mono);font-size:14px}
.ring-bg{fill:none;stroke:var(--green-soft);stroke-width:7}
.ring-fg{fill:none;stroke:var(--green);stroke-width:7;stroke-linecap:round;transition:stroke-dashoffset .6s ease}

/* chat */
.msgrow{display:flex;align-items:flex-end;gap:8px;align-self:flex-start;max-width:88%}
.msgrow .msg{max-width:100%}
.avspace{width:30px;flex:none}
.msgrow:not(.first){margin-top:-2px}
.preview{width:100%;text-align:left;border:0;background:transparent;align-items:center}
.preview .body b{font-size:14px}
.preview time{font-size:12px;color:var(--muted);font-family:var(--f-mono)}
.snippet{font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* shortages */
.ico-badge{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:19px;flex:none}
.ico-badge.amber{background:var(--amber-soft);color:var(--amber)}
.ico-badge.red{background:var(--urgent);color:#fff}
.ico-badge.blue{background:var(--blue-soft);color:var(--blue)}
.ico-badge.green{background:var(--green-soft);color:var(--green)}
.stepper{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px;max-width:260px}
.step{display:flex;flex-direction:column;gap:3px;min-width:0}
.step i{height:5px;border-radius:3px;background:var(--line)}
.step.on i{background:var(--green)}
.step small{font-size:10.5px;color:var(--muted);font-weight:600}
.step.cur small{color:var(--ink)}

/* empty-state art */
.art{width:84px;height:78px;display:block;margin:0 auto 8px}
.a-fill{fill:var(--green-soft);stroke:var(--green);stroke-width:2.5;stroke-linejoin:round}
.a-line{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.a-dot{fill:var(--green)}
.a-cross{fill:none;stroke:var(--urgent);stroke-width:3;stroke-linecap:round}
.empty.small{padding:18px 12px}
.empty.small .art{width:60px;height:56px}
.empty .btn{margin-top:10px}

/* tab bar */
nav.tabs button{font-size:11px}
nav.tabs button svg{box-sizing:content-box;padding:3px 16px;border-radius:999px;transition:background .2s}
nav.tabs button[aria-current="page"] svg{background:var(--green-soft)}
@media (max-width:360px){.tiles{gap:6px}.tile b{font-size:22px}.shiftcards{grid-template-columns:1fr}}

.card.list{overflow:hidden}
.hero #meName{display:none}
.hero .me{padding:4px}
.shiftcard{position:relative}
.live{position:absolute;top:-10px;right:12px;margin:0;box-shadow:0 0 0 3px var(--bg)}
.sc-time{white-space:nowrap}
.step small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sitem{flex-wrap:wrap}
.sitem .body{flex:1 1 200px}
.acts{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%;padding-left:50px}

/* ===== Features: alerts, announcements, segments, photos, orders ===== */
.alerts{display:flex;flex-direction:column;gap:8px}
.alerts:empty{display:none}
.alert{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border-radius:14px;padding:10px 12px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.alert .tile-ico{margin:0;flex:none}
.alert>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.alert small{color:var(--muted);font-size:12.5px}
.alert>.ico{color:var(--muted);font-size:18px}
.a-amber{background:linear-gradient(90deg,var(--amber-soft),var(--surface) 70%)}
.a-amber .tile-ico{background:var(--amber);color:#fff}
.a-blue{background:linear-gradient(90deg,var(--blue-soft),var(--surface) 70%)}
.a-blue .tile-ico{background:var(--blue);color:#fff}
.posts{display:flex;flex-direction:column;gap:10px}
.posts:empty{display:none}
.post{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;position:relative}
.post::before{content:"";position:absolute;inset:0 auto 0 0;width:0}
.post-head{display:flex;align-items:center;gap:8px}
.post-head b{flex:1;min-width:0;overflow-wrap:anywhere}
.pin-ico{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--amber-soft);color:var(--amber);font-size:15px;flex:none;transform:rotate(-12deg)}
.post-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14.5px}
.post-meta{font-size:12px;color:var(--muted)}
.seg{display:inline-flex;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px}
.seg button{border:0;background:transparent;border-radius:999px;padding:6px 14px;font-weight:600;font-size:14px;color:var(--muted);position:relative}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg .dot{position:absolute;top:4px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--urgent)}
.photo-pick{display:flex}
.ph-add{display:inline-flex;align-items:center;gap:6px}
.ph-prev{display:flex;align-items:center;gap:10px}
.ph-prev img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.thumb{border:0;padding:0;background:none;margin-top:6px;display:block;border-radius:10px;overflow:hidden;width:84px;height:84px}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ph-full{width:100%;max-height:70vh;object-fit:contain;border-radius:12px;background:var(--bg)}
.tel{display:inline-flex;align-items:center;gap:4px;color:var(--blue);font-weight:600;text-decoration:none}
a.btn{text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.item.callme{background:linear-gradient(90deg,var(--blue-soft),transparent 45%)}
.stepper.s4{grid-template-columns:repeat(4,1fr);max-width:300px}

/* online orders & SMS */
.acts{flex-wrap:wrap}
.acts .btn{white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
input[type=tel]{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:16px;width:100%;min-width:0;color:var(--ink)}
.toggle.ok input{accent-color:var(--green)}
