/* Dialbird portal — shared styles (customer panel, admin, login). Light, warm paper + ink + yellow. */
:root {
  --bg: #F5F3EC; --card: #FFFFFF; --ink: #15140F; --muted: #5E5A4F; --line: #E4E0D6; --track: #EEEBE3; --soft: #FAF9F5;
  --y: oklch(0.9 0.16 98); --ysoft: oklch(0.95 0.08 98); --yline: oklch(0.83 0.13 95); --ydeep: oklch(0.8 0.15 95);
  --up: #1E8A52; --upBg: #E3F3E9; --down: #8A5A12; --downBg: #F7EDD8; --hot: #B8361A; --hotBg: #FCE9E4; --navy: #0B2545;
  --off: #D6D2C6; --live: #5CC98C;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 "Geist", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration: none }
a:hover { opacity: .75 }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px }
[hidden] { display: none !important }
h1, h2, h3 { margin: 0; text-wrap: balance }
p { margin: 0 }

/* shell */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px }
.brand img { width: 30px; height: 30px; border-radius: 8px }
.brand span { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.03em }
.bizcard { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px }
.bizcard .mono { width: 36px; height: 36px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none }
.bizcard strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bizcard small { font-size: 12px; color: var(--muted) }
.nav { display: grid; gap: 2px }
.nav button { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; font-size: 15px; font-weight: 600; text-align: left }
.nav button[aria-current="page"] { background: var(--card); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line) }
.nav button span { flex: 1 }
.nav small { font-size: 12px; color: var(--muted) }
.side-foot { margin-top: auto; display: grid; gap: 12px }
.live { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px; display: grid; gap: 4px }
.live b { display: flex; align-items: center; gap: 8px; font-size: 13px }
.live small { font-size: 12px; color: #C9C5B8; line-height: 1.4 }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; display: inline-block }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px }
.me .av { width: 32px; height: 32px; font-size: 13px; background: var(--y) }
.me strong { display: block; font-size: 14px }
.me small { font-size: 12px; color: var(--muted) }
.me > div { flex: 1; line-height: 1.2; min-width: 0 }
.linkbtn { border: 0; background: none; font-size: 13px; color: var(--muted); padding: 8px 4px }

main { min-width: 0; padding: 28px 32px 48px }
.wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 20px }
.topbar { display: none }
.mnav { display: none }
.banner { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px }
.banner button { border: 0; background: #fff; color: var(--navy); border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 13px }

.head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap }
.head > div:first-child { display: grid; gap: 6px; min-width: 0 }
.head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.035em; line-height: 1.02 }
.head p { color: var(--muted); font-size: 15px; text-wrap: pretty; max-width: 62ch }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 600 }
.btn.yellow { background: var(--y); color: var(--ink) }
.btn.danger { background: none; color: var(--hot); padding: 0 12px; font-weight: 600 }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13px }
.btn:disabled { opacity: .5; cursor: default }
.seg { display: flex; gap: 4px; background: var(--track); border-radius: 10px; padding: 4px; justify-self: start; max-width: 100%; overflow-x: auto }
.seg button { height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: none; font-size: 14px; font-weight: 600; white-space: nowrap }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(21, 20, 15, .12) }
.chip { height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; font-size: 13px; font-weight: 600 }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink) }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600 }
.input, .field input, .field select, .field textarea { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 15px; font-weight: 400; background: #fff; width: 100%; min-width: 0 }
.field textarea { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px }
.switch { width: 46px; height: 28px; border: 0; border-radius: 99px; background: var(--off); 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-checked="true"] { background: var(--ink) }
.switch[aria-checked="true"]::after { left: 21px }
.dark .switch { width: 52px; height: 30px; background: #4A473D }
.dark .switch::after { width: 24px; height: 24px }
.dark .switch[aria-checked="true"] { background: var(--ydeep) }
.dark .switch[aria-checked="true"]::after { left: 25px }
.radio { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; text-align: left; width: 100% }
.radio[aria-checked="true"] { border: 2px solid var(--ink); background: var(--soft) }
.radio strong { display: block; font-size: 14px }
.radio small { font-size: 12px; color: var(--muted) }
.radio i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; flex: none }
.radio[aria-checked="true"] i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink) }

/* surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0 }
.card.list { padding: 6px 18px; gap: 0 }
.card h2, .h2 { font-size: 16px; font-weight: 700 }
.card .sub, .muted { color: var(--muted); font-size: 13px }
.dark { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap }
.dark b { display: flex; align-items: center; gap: 8px; font-size: 17px }
.dark p { font-size: 14px; color: #C9C5B8; margin-top: 4px }
.dark .dot.off { background: #8A8578 }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; align-content: start }
.kpi > span { font-size: 13px; font-weight: 600; color: var(--muted) }
.kpi .v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap }
.kpi .v b { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums }
.kpi small { font-size: 13px; color: var(--muted); line-height: 1.4 }
.delta { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 8px; color: var(--up); background: var(--upBg) }
.delta.neg { color: var(--down); background: var(--downBg) }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line) }
.card.list > .row:first-child, .card.list > h2 + .row { border-top: 0 }
.row > div { display: grid; gap: 2px; flex: 1; line-height: 1.4; min-width: 0 }
.row strong { font-size: 15px }
.row small { font-size: 13px; color: var(--muted); text-wrap: pretty }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px }
.kv span { color: var(--muted) }
.kv strong { text-align: right; word-break: break-word }
.bar { height: 8px; background: var(--track); border-radius: 99px }
.bar > i { display: block; height: 8px; border-radius: 99px; background: var(--ink) }
.bar.y > i { background: var(--ydeep) }
.meter { display: grid; gap: 5px }
.meter > div:first-child { display: flex; justify-content: space-between; font-size: 14px }
.chart { height: 200px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line) }
.chart i { flex: 1; min-width: 0; background: var(--ink); border-radius: 4px 4px 0 0 }
.chart i.today { background: var(--ydeep) }
.xlab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted) }
.job { display: grid; grid-template-columns: 70px 1fr; gap: 10px; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 10px 0; width: 100% }
.job .t { font-family: var(--mono); font-size: 13px; padding-top: 2px }
.job strong { display: block; font-size: 15px }
.job small { font-size: 13px; color: var(--muted) }
.act { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px }
.act time { font-size: 12px; color: var(--muted); white-space: nowrap }
.empty { padding: 22px; text-align: center; color: var(--muted); font-size: 14px }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 4px 10px; background: var(--track); white-space: nowrap }
.pill.on { background: var(--upBg); color: #145C37 }
.pill.y { background: var(--ysoft); border: 1px solid var(--yline) }
.pill.warn { background: var(--downBg); color: var(--down) }
.pill.bad { background: var(--hotBg); color: var(--hot) }
.tag { font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--y); border-radius: 5px; padding: 3px 7px; white-space: nowrap }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; text-wrap: pretty }
.err { background: var(--hotBg); color: var(--hot); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600 }
.ok { background: var(--upBg); color: #145C37; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600 }
.copy { display: flex; gap: 6px }
.copy input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-family: var(--mono); font-size: 12px; background: var(--bg) }

/* table-ish customer list */
.tbl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden }
.tbl .th, .tbl .tr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 60px 90px 80px 110px; gap: 12px; align-items: center; padding: 12px 18px }
.tbl .th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line) }
.tbl .tr { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums }
.tbl .th + .tr { border-top: 0 }
.tbl .tr:hover { background: var(--soft) }
.who { display: flex; gap: 12px; align-items: center; min-width: 0 }
.who > span:last-child { display: grid; line-height: 1.3; min-width: 0 }
.who strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.who small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* calendar */
.calbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap }
.calbar > div { display: flex; align-items: center; gap: 6px }
.sq { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; font-size: 18px }
.syncchip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; font-size: 13px; color: var(--muted) }
.week { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden }
.week .dh, .week .body { display: grid; grid-template-columns: 60px repeat(7, minmax(0, 1fr)) }
.week .dh { border-bottom: 1px solid var(--line) }
.week .dh > div { padding: 10px 6px; display: flex; align-items: center; justify-content: center; gap: 8px; border-left: 1px solid var(--line) }
.week .dh > div:first-child { border: 0 }
.week .dh span { font-size: 13px; color: var(--muted); font-weight: 600 }
.week .dh b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px }
.week .dh .today b { background: var(--ink); color: #fff }
.week .hrs div { height: 56px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; padding: 4px 8px 0 0 }
.week .col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 55px, var(--track) 55px, var(--track) 56px); cursor: copy }
.week .col.today { background-color: #FFFDF3 }
.week .col.wkend { background-color: #FBFAF6 }
.week .col .closed { position: absolute; left: 0; right: 0; background: rgba(21, 20, 15, .035); pointer-events: none }
.ev { position: absolute; left: 4px; right: 4px; border: 1px solid var(--yline); background: var(--ysoft); border-radius: 8px; padding: 5px 7px; text-align: left; overflow: hidden; display: grid; align-content: start; gap: 1px; cursor: pointer }
.ev.pending { border-style: dashed }
.ev.busy { border: 1px solid #D6D1C3; background: repeating-linear-gradient(135deg, #ECEAE2 0 4px, #DDD8CB 4px 8px) }
.ev strong { font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 5px; align-items: center }
.ev strong .tag { font-size: 9px; padding: 1px 4px; border-radius: 4px }
.ev small { font-size: 12px; color: var(--muted); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--hot); pointer-events: none }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted) }
.legend span { display: flex; align-items: center; gap: 6px }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--ysoft); border: 1px solid var(--yline) }
.legend i.b { background: repeating-linear-gradient(135deg, #ECEAE2 0 4px, #DDD8CB 4px 8px); border: 0 }
.strip { display: none; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px }
.strip button { height: 64px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0 }
.strip button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink) }
.strip span { font-size: 11px; font-weight: 600 }
.strip b { font-size: 17px }
.strip i { width: 5px; height: 5px; border-radius: 50%; background: transparent }
.strip i.has { background: var(--ydeep) }
.agenda { display: none; gap: 8px }
.agenda .ev { position: static; display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 12px; border-radius: 14px }
.agenda .ev .t { font-family: var(--mono); font-size: 13px }
.fab { display: none }

/* modal */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(21, 20, 15, .45); display: flex; align-items: center; justify-content: center; padding: 16px }
.modal { background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 18px; padding: 20px; display: grid; gap: 12px }
.modal.wide { max-width: 760px }
.modal .mh { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.modal .mh h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em }
.x { width: 40px; height: 40px; border: 0; background: var(--track); border-radius: 50%; font-size: 18px; flex: none }
.check { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: var(--bg); border-radius: 10px; padding: 12px; width: 100% }
.check > i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; font-style: normal; font-size: 13px; font-weight: 800; color: var(--y) }
.check[aria-checked="true"] > i { background: var(--ink) }
.check strong { display: block; font-size: 14px }
.check small { font-size: 12px; color: var(--muted) }
.mfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.stats3 div { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px }
.stats3 span { font-size: 12px; color: var(--muted) }
.stats3 strong { font-size: 18px }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 50; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px) }

/* newsletter preview, sms bubble */
.mail { border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.mail header { background: var(--bg); padding: 12px 16px; display: grid; gap: 3px; border-bottom: 1px solid var(--line); font-size: 13px }
.mail header span span { color: var(--muted) }
.mail > div { padding: 20px 18px; display: grid; gap: 12px }
.mail h3 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.15 }
.mail p { font-size: 15px; line-height: 1.55; color: #33312A }
.tip { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 15px; line-height: 1.5 }
.tip b { width: 22px; height: 22px; border-radius: 50%; background: var(--y); display: grid; place-items: center; font-size: 12px }
.offer { background: var(--ysoft); border: 1px solid var(--yline); border-radius: 12px; padding: 14px; display: grid; gap: 4px }
.sms { background: #E9E9EE; border-radius: 18px; padding: 14px; display: grid; gap: 6px }
.sms > span { font-size: 11px; color: #6B6B73; text-align: center }
.sms > div { background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; max-width: 92% }
.reward { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line) }
.reward input { height: 38px }
.reward .cost { width: 96px; font-family: var(--mono); font-size: 13px; text-align: center; background: var(--ysoft); border: 1px solid var(--yline) }

/* billing */
.plan { display: grid; gap: 4px }
.plan b { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.03em }
.inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums }
.inv strong { display: block; font-size: 15px }
.inv small { color: var(--muted); font-size: 13px }

/* hours editor */
.hrow { display: grid; grid-template-columns: 64px 46px minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px }
.hrow select { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; min-width: 0 }

/* password field: eye toggle + live rules */
.pw { position: relative; display: block }
.pw input { padding-right: 48px }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); display: grid; place-items: center }
.eye:hover { color: var(--ink); background: var(--track) }
.pwrules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; color: var(--muted) }
.pwrules li { display: flex; align-items: center; gap: 8px }
.pwrules i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--off); display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; flex: none }
.pwrules li.done { color: var(--up) }
.pwrules li.done i { background: var(--up); border-color: var(--up); color: #fff }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px }
.auth .card { width: 100%; max-width: 400px; padding: 28px; gap: 16px }
.auth h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em }

@media (max-width: 1000px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .cols { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr) }
  .side { display: none }
  main { padding: 16px 16px 96px }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px }
  .topbar > div { display: flex; align-items: center; gap: 8px; min-width: 0 }
  .topbar img { width: 28px; height: 28px; border-radius: 7px }
  .topbar strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .topbar .pill { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 6px }
  .mnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--card); border-top: 1px solid var(--line); grid-template-columns: repeat(5, 1fr); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)) }
  .mnav button { height: 56px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; display: grid; place-items: center; align-content: center; gap: 3px }
  .mnav button[aria-current="page"] { color: var(--ink) }
  .week, .legend { display: none }
  .strip, .agenda { display: grid }
  .fab { display: block; position: fixed; right: 16px; bottom: 86px; z-index: 20; height: 52px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(21, 20, 15, .25) }
  .tbl .th { display: none }
  .tbl .tr { grid-template-columns: minmax(0, 1fr) auto }
  .tbl .tr .wide { display: none }
  .scrim { align-items: flex-end; padding: 0 }
  .modal { border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) }
  .toast { bottom: 90px }
  .inv { grid-template-columns: minmax(0, 1fr) auto }
  .inv .wide { display: none }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: minmax(0, 1fr) }
  .hrow { grid-template-columns: 44px 46px minmax(0, 1fr) auto minmax(0, 1fr) }
}
