/* S&E Doggy Days app. Same look as the prototype: the logo's cream, gold and chocolate. */
@font-face { font-family: "Allura"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/allura.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/jost.woff2") format("woff2"); }

/* Layout: sticky brand bar, sidebar nav on desktop / bottom tab bar on phones, one working column of cards. Palette taken from the S&E logo. */
:root {
  --bg: #F3ECE1;          /* logo paper */
  --surface: #FBF8F2;
  --surface-2: #EEE5D7;
  --ink: #1F1A15;         /* S & E lettering */
  --muted: #6C5F51;
  --line: #E0D3BF;
  --gold: #AE8D5A;        /* ampersand, ring, paw */
  --gold-ink: #7C5F33;
  --gold-soft: #F0E3CB;
  --choc: #4A3022;        /* chocolate lab */
  --lab: #E6CFA5;         /* golden lab */
  --pink: #D9ADA0;        /* tongue */
  --btn-bg: #4A3022;
  --btn-fg: #FBF8F2;
  --ok: #4A7046; --ok-soft: #E1EAD9;
  --warn: #8F5C1C; --warn-soft: #F4E4C9;
  --bad: #9B3F33; --bad-soft: #F3DDD7;
  --shade: rgba(31, 26, 21, .45);
  --shadow: 0 1px 2px rgba(74, 48, 34, .06), 0 8px 24px rgba(74, 48, 34, .07);
  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-script: "Allura", "Brush Script MT", cursive;
  --r: 14px;
  /* One look everywhere: the logo's cream palette, even when the phone is in dark mode. */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* iPhone: no double-tap zoom (pinch still works) and no automatic text enlarging. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: var(--bg); }
body { margin: 0; overflow-x: clip; color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1, h2, h3, .timer, .stat b, .kpi b, .total, .day b, .counter b, .slotcard .time { font-variant-numeric: lining-nums tabular-nums; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }

/* Top bar */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px 12px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.mark { width: 46px; height: 46px; border-radius: 50%; flex: none; border: 1.5px solid var(--gold);
  background: var(--lab) url("logo.jpg") 50% 16% / 175% auto no-repeat; }
/* The logo, trimmed to the dogs, "S&E" and "DOGGY DAYS" (source pixels 130–950 across, 15–856 down). */
.brand.logo-crop { display: block; width: 200px; max-width: 60vw; aspect-ratio: 820 / 841; overflow: hidden; border-radius: 12px; }
.logo-crop img { display: block; width: 131.83%; max-width: none; margin: -1.83% 0 0 -15.85%; }
.proto { font-size: 11px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.viewas { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.navsec { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 16px 12px 4px; }

/* Shell */
.shell { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 28px 48px; }
.sidenav { position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.navbtn { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; color: var(--muted); font-weight: 500; }
.navbtn svg { width: 19px; height: 19px; flex: none; }
.navbtn:hover { background: var(--surface-2); color: var(--ink); }
.navbtn[aria-current="page"] { background: var(--gold-soft); color: var(--ink); }
.navbtn .count { margin-left: auto; background: var(--gold); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.sidenav .picker { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tabbar { display: none; position: fixed; inset: auto 0 0 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); overflow: hidden; }
/* Tabs share the width equally so the bar never scrolls sideways, even on a 320px phone. */
.tabbar .tb { flex: 1 1 0; min-width: 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 1px 6px; font-size: 10.5px; letter-spacing: -.01em; color: var(--muted); cursor: pointer; position: relative; }
.tabbar .tb > span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar .tb svg { width: 21px; height: 21px; }
.tabbar .ic { position: relative; display: block; line-height: 0; }
.tabbar .badge { position: absolute; top: -4px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.tabbar .tb[aria-current="page"] { color: var(--ink); }
.tabbar .tb[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--gold); border-radius: 2px; }
.card.mobile-picker { display: none; }

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-block: 18px 104px; }
  .sidenav { display: none; }
  .tabbar { display: flex; }
  .card.mobile-picker { display: flex; }
}
@media (max-width: 560px) {
  .brand.logo-crop { width: 160px; }
  .seg { width: 100%; max-width: 360px; }
  .seg button { flex: 1; padding: 8px 6px; }
  .proto { display: none; }
}

/* Building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.card.raised { box-shadow: var(--shadow); }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pagehead .stack { gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--gold-ink); padding-inline: 8px; }
.btn.danger { color: var(--bad); }
.btn.big { padding: 13px 22px; font-size: 15.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn svg { width: 17px; height: 17px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 8px; background: var(--surface-2); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--choc); background: var(--lab); background-size: cover; background-position: center; border: 1px solid var(--line); }
.avatar.sm { width: 34px; height: 34px; font-size: 17px; }
.avatars { display: flex; }
.avatars .avatar { margin-right: -10px; border: 2px solid var(--surface); }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.li:first-child { border-top: 0; padding-top: 0; }
.li:last-child { padding-bottom: 0; }
.li .grow { flex: 1 1 200px; min-width: 0; }
.li strong { font-weight: 500; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-soft); border-radius: 12px; padding: 13px 15px; font-size: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold-ink); margin-top: 1px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, select.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--choc); margin-top: 2px; flex: none; }

/* Booking */
.steps { display: flex; flex-direction: column; gap: 22px; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 13px; font-weight: 500; flex: none; }
.opt { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; display: flex; gap: 12px; align-items: center; }
.opt:hover { border-color: var(--gold); }
.opt[aria-pressed="true"] { border-color: var(--choc); box-shadow: inset 0 0 0 1px var(--choc); background: var(--gold-soft); }
.opt .grow { flex: 1; min-width: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
/* Two weeks as two rows of seven, so nothing slides sideways. */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.day b { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
@media (max-width: 420px) { .days { gap: 4px; } .day b { font-size: 18px; } .day span { font-size: 10px; } }
.day span { font-size: 11.5px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.day[aria-pressed="true"] span { color: inherit; opacity: .8; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 4px; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 500; }
.slot small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.slot[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.slot[aria-pressed="true"] small { color: inherit; }
.slot:disabled { cursor: not-allowed; opacity: .5; text-decoration: line-through; }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.summary { position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); }
@media (max-width: 1000px) { .book-layout { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.sumrow span:first-child { color: var(--muted); }
.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-family: var(--f-display); font-size: 26px; font-weight: 600; display: flex; justify-content: space-between; }

/* Walk report + live walk */
.map { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; background: var(--surface-2); }
.map .grid { stroke: var(--line); stroke-width: 1; }
.map .route { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.map .start { fill: var(--choc); }
.map .end { fill: var(--surface); stroke: var(--gold); stroke-width: 3; }
.map text { fill: var(--muted); font: 12px var(--f-body); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.walknote { font-family: var(--f-display); font-size: 19px; font-style: italic; line-height: 1.4; border-left: 2px solid var(--gold); padding-left: 14px; }
.timer { font-family: var(--f-display); font-size: clamp(56px, 12vw, 84px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.counter { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.counter b { font-family: var(--f-display); font-size: 28px; min-width: 24px; text-align: center; }
.counter .grow { flex: 1; }
.live-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .live-layout { grid-template-columns: minmax(0, 1fr); } }

/* Slots for walker */
.slotcard { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
.slotcard .time { font-family: var(--f-display); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.slotcard .time small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.dogline { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.dogline:first-child { border-top: 0; padding-top: 0; }
.access { background: var(--warn-soft); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
@media (max-width: 520px) { .slotcard { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Business */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.attn { border-color: var(--gold); background: var(--gold-soft); }
.table-wrap { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
/* On phones each booking becomes a small card instead of a wide table row. */
@media (max-width: 700px) {
  .table-wrap { overflow: visible; margin-inline: 0; padding-inline: 0; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  tr:first-child { padding-top: 0; }
  tr:last-child { border-bottom: 0; padding-bottom: 0; }
  td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right !important; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; }
  td:first-child { font-weight: 600; font-size: 15.5px; }
  td:first-child::before, td:last-child::before { content: none; }
  td:last-child { justify-content: flex-start; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  td:last-child:empty { display: none; }
}
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; cursor: pointer; font-size: 13.5px; }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.log { display: flex; flex-direction: column; gap: 0; font-size: 13.5px; }
.log div { display: grid; grid-template-columns: 48px 58px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.log div:first-child { border-top: 0; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log .ch { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); padding-top: 2px; }
.pipeline { display: flex; gap: 0; }
.pipeline span { flex: 1; text-align: center; font-size: 12px; padding: 6px 4px; border-top: 3px solid var(--line); color: var(--muted); }
.pipeline span.done { border-color: var(--gold); color: var(--ink); }

/* Messages */
.chat { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 460px; padding: 0; overflow: hidden; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; }
.thread { display: flex; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; width: 100%; text-align: left; cursor: pointer; }
.thread[aria-current="true"] { background: var(--gold-soft); }
.thread .grow { min-width: 0; }
.thread p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.convo { display: flex; flex-direction: column; min-width: 0; }
.msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 520px; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--btn-bg); color: var(--btn-fg); }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 3px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
@media (max-width: 680px) { .chat { grid-template-columns: minmax(0, 1fr); } .threads { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); } .thread { width: auto; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; align-items: center; } .thread p { display: none; } }

/* Hero / onboarding */
.hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.tagline { font-family: var(--f-script); font-size: 30px; color: var(--gold-ink); line-height: 1; }
.logo-full { width: 220px; max-width: 100%; border-radius: 16px; display: block; }
@media (max-width: 560px) { .hello { grid-template-columns: minmax(0, 1fr); } }

/* Sheet + toast */
.sheet { position: fixed; inset: 0; z-index: 50; background: var(--shade); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet-panel { background: var(--surface); border-radius: 18px; width: min(580px, 100%); max-height: 88vh; overflow-y: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 16px; }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.x { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; flex: none; }
@media (max-width: 600px) {
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-panel { border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
@media (max-width: 820px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* Phones: iPhones zoom into any text box under 16px when tapped, and the zoomed page then slides
   sideways. 16px boxes stop that. Older iPhones also ignore overflow-x: clip, so hide sideways overflow too. */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  input, select, textarea, .field input, .field select, .field textarea, select.input, .composer input, td select { font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Real app additions ---------- */
.topbar-in { position: relative; }
.viewas#who { gap: 8px; }
.sidenav .picker .btn { width: 100%; }
.signin { max-width: 440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
body.signed-out .shell { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
body.busy { cursor: progress; }
body.busy .btn { pointer-events: none; }
.linkrow { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.linkrow:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }
.walk.is-cancelled { opacity: .7; }
.walk .access svg, .ic-inline svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold-ink); }
.details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14.5px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.check.chip { padding: 6px 12px; font-size: 14.5px; }
.check.chip input { margin-top: 0; }
input.cell { width: 96px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
td input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--choc); }
table.prices-t { min-width: 0; }
details > summary { cursor: pointer; }
fieldset { margin: 0; min-width: 0; }
.field select:disabled { opacity: .75; }
textarea[readonly] { font-size: 14px; }
@media (max-width: 700px) { input.cell { width: 110px; } }
@media (max-width: 820px) { input.cell { font-size: 16px; } }
