/* Jobline, the tradie's app. Built to feel like Apple's own apps: system font with Dynamic Type,
   large titles that collapse into the bar, plain lists for feeds, inset grouped lists for detail,
   sheets that rise from the bottom. Always dark. Gold is the only tint. */

:root {
  --bg: #000;
  --cell: #1a1916;          /* grouped cell */
  --cell-hi: #2a2824;       /* pressed */
  --sheet: #151412;         /* sheet background */
  --sheet-cell: #24221e;
  --fill: rgb(120 116 108 / .24);   /* segmented track, text field fill */
  --fill-2: rgb(120 116 108 / .36);
  --label: #f5f3ef;
  --label-2: rgb(235 231 222 / .62);
  --label-3: rgb(235 231 222 / .34);
  --sep: rgb(100 96 88 / .48);
  --gold: #f2a33a;
  --gold-ink: #1b1205;
  --gold-soft: rgb(242 163 58 / .16);
  --danger: #ff7b63;
  --bar: rgb(18 17 15 / .78);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --rounded: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  --top: env(safe-area-inset-top); --bot: env(safe-area-inset-bottom);
  --side: max(16px, env(safe-area-inset-left));
  --spring: cubic-bezier(.32, .72, 0, 1);
  color-scheme: dark;
}
html { font-size: 17px; background: var(--bg); -webkit-text-size-adjust: 100%; }
/* Follow the iPhone's text size setting (Dynamic Type). Body is 17 pt at the default size. */
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--label); font-family: var(--font); font-size: 1rem; line-height: 1.29; letter-spacing: -.024em; -webkit-font-smoothing: antialiased; min-height: 100dvh; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(242 163 58 / .4); }
input, textarea { caret-color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.sub { color: var(--label-2); }

/* ---------- screen + navigation bar ---------- */
.screen { min-height: 100dvh; padding-bottom: calc(var(--bot) + 84px); max-width: 680px; margin: 0 auto; }
.screen--modal { padding-bottom: calc(var(--bot) + 32px); }
.nav { position: sticky; top: 0; z-index: 20; padding-top: var(--top); transition: background-color .2s, box-shadow .2s; }
.nav.is-scrolled, .nav--detail.is-scrolled { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 var(--sep); }
.nav__bar { height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px; }
.nav__title { grid-column: 2; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58vw; opacity: 0; transition: opacity .15s; }
.nav--detail .nav__title, .nav.is-scrolled .nav__title { opacity: 1; }
.nav__lead { grid-column: 1; justify-self: start; display: flex; }
.nav__trail { grid-column: 3; justify-self: end; display: flex; gap: 4px; }
.nav__btn { display: flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 8px; color: var(--gold); font-size: 1rem; white-space: nowrap; }
.nav__btn:active { opacity: .45; }
.nav__btn svg { width: 1.3rem; height: 1.3rem; }
.nav__btn--back { padding-left: 2px; }
.nav__btn--back svg { width: 1.45rem; height: 1.45rem; margin-right: -2px; }
.nav__btn--bold { font-weight: 600; }
.nav__btn:disabled { color: var(--label-3); }
.large { font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: .011em; padding: 2px var(--side) 0; }
.large-sub { padding: 2px var(--side) 0; color: var(--label-2); font-size: .882rem; display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--label-3); flex: none; }
.dot--on { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--sep); padding-bottom: var(--bot); }
.tabbar__in { display: flex; max-width: 680px; margin: 0 auto; height: 50px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: rgb(235 231 222 / .5); font-size: max(11px, .647rem); font-weight: 500; letter-spacing: .01em; position: relative; min-height: 50px; }
.tab svg { width: 1.6rem; height: 1.6rem; }
.tab .i-on { display: none; }
.tab[aria-current] { color: var(--gold); }
.tab[aria-current] .i-on { display: block; } .tab[aria-current] .i-off { display: none; }
.badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: max(11px, .647rem); font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- segmented control ---------- */
.seg { margin: 12px var(--side) 4px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 9px; padding: 2px; position: relative; }
.seg button { min-height: 32px; border-radius: 7px; font-size: .765rem; font-weight: 500; text-align: center; color: var(--label); position: relative; }
.seg button[aria-selected="true"] { background: #5d5952; font-weight: 600; box-shadow: 0 3px 8px rgb(0 0 0 / .25), 0 0 0 .5px rgb(0 0 0 / .1); }

/* ---------- plain list (feeds: Jobs, Calls, Quotes) ---------- */
.list { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 0 0 0 var(--side); position: relative; min-height: 76px; }
.row:active, .row.is-pressed { background: var(--cell-hi); }
.row__lead { position: relative; flex: none; padding: 10px 0; }
.row__body { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 10px var(--side) 10px 0; box-shadow: inset 0 -.5px 0 var(--sep); }
.row:last-child .row__body { box-shadow: none; }
.row__text { flex: 1; min-width: 0; }
.row__top { display: flex; align-items: baseline; gap: 8px; }
.row__t { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__when { color: var(--label-2); font-size: .882rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row__s, .row__s2 { color: var(--label-2); font-size: .882rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row__s2 b { color: var(--gold); font-weight: 500; }
.row__chev { color: var(--label-3); width: .8rem; height: .8rem; }
.row__amount { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.unread { position: absolute; left: -12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--gold); }
.av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(180deg, #6d675d, #4a463f); color: #fff; display: grid; place-items: center; font-size: .94rem; font-weight: 600; letter-spacing: .02em; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av--call { background: var(--fill); color: var(--label-2); }
.av--call svg { width: 1.2rem; height: 1.2rem; }
.av--big { width: 76px; height: 76px; font-size: 1.65rem; }
.list-head { padding: 22px var(--side) 6px; font-size: 1.18rem; font-weight: 700; }

/* ---------- inset grouped list (detail, settings) ---------- */
.group { margin: 0 var(--side); }
.group + .group { margin-top: 35px; }
.group-foot + .group { margin-top: 28px; }
.group-head { padding: 22px calc(var(--side) + 16px) 7px; font-size: .765rem; color: var(--label-2); text-transform: uppercase; letter-spacing: .02em; }
.group-foot { padding: 7px calc(var(--side) + 16px) 0; font-size: .765rem; line-height: 1.38; color: var(--label-2); letter-spacing: -.005em; }
.group-foot a { color: var(--gold); }
.cells { background: var(--cell); border-radius: 12px; overflow: hidden; }
.sheet .cells { background: var(--sheet-cell); }
.cell { display: flex; align-items: center; gap: 12px; min-height: 46px; padding-left: 16px; position: relative; width: 100%; }
button.cell, a.cell, label.cell { cursor: pointer; }
button.cell:active, a.cell:active, label.cell:active { background: var(--cell-hi); }
.cell__body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; align-self: stretch; padding: 11px 16px 11px 0; box-shadow: inset 0 -.5px 0 var(--sep); }
.cell:last-child > .cell__body { box-shadow: none; }
.cell__t { flex: 1; min-width: 0; }
.cell__t small { display: block; color: var(--label-2); font-size: .882rem; margin-top: 2px; line-height: 1.33; }
.cell__v { color: var(--label-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.cell__v--ink { color: var(--label); }
.cell__v svg { width: 1.15rem; height: 1.15rem; color: var(--gold); }
.cell .av { width: 52px; height: 52px; margin: 2px 0; }
.cell__t b { font-weight: 600; font-size: 1.1rem; }
.mt12 { margin-top: 12px; }
.group.first { margin-top: 18px; }
.group.last { margin-top: 32px; }
.cell__chev { color: var(--label-3); width: .8rem; height: .8rem; margin-right: -4px; }
.cell--action .cell__t { color: var(--gold); }
.cell--danger .cell__t { color: var(--danger); }
.cell--center .cell__t { text-align: center; }
.cell__icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.cell__icon svg { width: 1.05rem; height: 1.05rem; }
.cell--block .cell__body { display: block; }
.cell__total { font-weight: 600; }
.cell input.cell__in, .cell select.cell__in { flex: 1; min-width: 0; background: none; border: 0; outline: none; text-align: right; color: var(--label-2); padding: 0; font-size: 1rem; }
.cell input.cell__in:focus { color: var(--label); }
.cell input.cell__in::placeholder, .cell textarea::placeholder { color: rgb(235 231 222 / .5); } /* 4.6:1 on the cell; --label-3 stays for chevrons */
.cell input.cell__in--left { text-align: left; color: var(--label); }
/* compact date and time pickers, like UIDatePicker: a grey pill of text; the real input sits invisibly on top */
.pick { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px; border-radius: 7px; background: var(--fill); color: var(--label); font-size: 1rem; font-variant-numeric: tabular-nums; }
.pick:focus-within { color: var(--gold); }
.cell .pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; border: 0; padding: 0; margin: 0; color-scheme: dark; cursor: pointer; }
.cell textarea { width: 100%; min-height: 96px; background: none; border: 0; outline: none; resize: none; font-size: 1rem; line-height: 1.35; color: var(--label); padding: 0; display: block; }
.cell select.cell__in { appearance: none; -webkit-appearance: none; text-align: right; text-align-last: right; }

/* iOS switch */
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--fill-2); position: relative; flex: none; transition: background-color .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 3px 1px rgb(0 0 0 / .06); transition: transform .25s var(--spring); }
[aria-checked="true"] > .cell__body > .switch, .switch[aria-checked="true"] { background: var(--gold); }
[aria-checked="true"] > .cell__body > .switch::after, .switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- job detail ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px var(--side) 0; }
.hero .av { margin-bottom: 10px; }
.hero__name { font-size: 1.62rem; font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
.hero__sub { color: var(--label-2); font-size: .882rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 18px var(--side) 0; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 60px; border-radius: 12px; background: var(--cell); color: var(--gold); font-size: .706rem; font-weight: 500; letter-spacing: 0; }
.act svg { width: 1.3rem; height: 1.3rem; }
.act:active { background: var(--cell-hi); }
.act:disabled { color: var(--label-3); }
.card-t { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.card-s { color: var(--label-2); font-size: .94rem; margin-top: 4px; line-height: 1.35; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); font-size: .706rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 8px; }
.words { font-size: .94rem; line-height: 1.42; white-space: pre-line; color: var(--label); }
.words-when { color: var(--label-2); font-size: .765rem; margin-bottom: 4px; display: block; }
.photos { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.photos::-webkit-scrollbar { display: none; }
.ph { flex: none; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; position: relative; scroll-snap-align: start; background: var(--fill); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph--add { display: grid; place-items: center; color: var(--gold); border: 0; background: var(--fill); }
.ph--add svg { width: 1.6rem; height: 1.6rem; }
.ph--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph__mine { position: absolute; left: 6px; bottom: 6px; font-size: max(11px, .647rem); font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgb(0 0 0 / .6); color: #fff; }
.ph__tick { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #fff; background: rgb(0 0 0 / .3); display: grid; place-items: center; color: var(--gold-ink); }
.ph__tick svg { width: 14px; height: 14px; opacity: 0; }
.ph[aria-pressed="true"] .ph__tick { background: var(--gold); border-color: var(--gold); }
.ph[aria-pressed="true"] .ph__tick svg { opacity: 1; }
.ph[aria-pressed="false"] img { opacity: .55; }
.ph.is-busy::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.tl { padding: 4px 0; }
.tl li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; padding: 9px 16px 9px 14px; position: relative; }
.tl li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--label-3); margin: 6px 0 0 6px; }
.tl li.on::before { background: var(--gold); }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 23.5px; top: 25px; bottom: -7px; width: 1px; background: var(--sep); }
.tl b { font-weight: 400; font-size: .94rem; }
.tl span { grid-column: 2; color: var(--label-2); font-size: .765rem; margin-top: 1px; font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 12px; background: var(--gold); color: var(--gold-ink); font-size: 1rem; font-weight: 600; transition: opacity .15s, transform .15s; }
.btn:active { opacity: .7; }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn--tinted { background: var(--gold-soft); color: var(--gold); }
.btn--plain { background: none; color: var(--gold); font-weight: 400; min-height: 44px; }
.btn-wrap { padding: 24px var(--side) 0; }

/* ---------- empty state (ContentUnavailableView) ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 36px 24px; }
.empty svg { width: 3.2rem; height: 3.2rem; color: var(--label-3); margin-bottom: 14px; }
.empty b { font-size: 1.3rem; font-weight: 700; }
.empty p { color: var(--label-2); font-size: .94rem; margin-top: 6px; max-width: 30ch; line-height: 1.38; }
.empty .empty__plan { color: var(--gold); font-weight: 600; font-size: .88rem; margin-top: 12px; }
.empty .btn { width: auto; padding: 0 22px; margin-top: 22px; min-height: 44px; }

/* ---------- week ---------- */

/* ---------- sign in ---------- */
.signin { min-height: 100dvh; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(var(--top) + 9vh) var(--side) calc(var(--bot) + 24px); }
.signin__icon { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto 18px; box-shadow: 0 0 0 .5px rgb(255 255 255 / .12); }
.signin h1 { font-size: 1.65rem; font-weight: 700; text-align: center; letter-spacing: .01em; }
.signin p.sub { text-align: center; margin: 8px auto 26px; font-size: .94rem; max-width: 30ch; line-height: 1.38; }
.signin .group { margin: 0; }
.signin .btn { margin-top: 18px; }
.code-in { width: 100%; background: var(--cell); border: 0; outline: none; border-radius: 12px; min-height: 64px; text-align: center; font-size: 1.9rem; letter-spacing: .45em; text-indent: .45em; font-variant-numeric: tabular-nums; font-weight: 600; }
.err { color: var(--danger); font-size: .882rem; min-height: 1.3em; padding: 8px 16px 0; }
.signin__note { color: var(--label-2); font-size: .765rem; text-align: center; margin-top: auto; padding-top: 24px; line-height: 1.38; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 0); transition: background-color .3s; }
.scrim.is-in { background: rgb(0 0 0 / .5); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 680px; margin: 0 auto; max-height: calc(100dvh - var(--top) - 12px); display: flex; flex-direction: column; background: var(--sheet); border-radius: 12px 12px 0 0; transform: translateY(100%); transition: transform .42s var(--spring); padding-bottom: var(--bot); }
.sheet.is-in { transform: none; }
.sheet__grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 6px auto 0; flex: none; }
.sheet .nav__bar { flex: none; }
.sheet .nav__title { opacity: 1; }
.sheet__body { overflow-y: auto; padding-bottom: 24px; overscroll-behavior: contain; }
.sheet__lead { color: var(--label-2); font-size: .765rem; text-align: center; padding: 12px 28px 4px; line-height: 1.38; }
.sheet:focus, .asheet:focus { outline: none; }
.presets .cell__t { font-size: .94rem; }

/* action sheet */
.asheet { position: fixed; left: 8px; right: 8px; bottom: calc(var(--bot) + 8px); z-index: 51; max-width: 520px; margin: 0 auto; transform: translateY(calc(100% + 40px)); transition: transform .38s var(--spring); display: flex; flex-direction: column; gap: 8px; }
.asheet.is-in { transform: none; }
.asheet__grp { background: rgb(40 38 34 / .94); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-radius: 14px; overflow: hidden; }
.asheet__head { padding: 14px 16px; text-align: center; color: var(--label-2); font-size: .765rem; line-height: 1.38; box-shadow: inset 0 -.5px 0 var(--sep); }
.asheet__head b { display: block; font-size: .765rem; font-weight: 600; margin-bottom: 2px; }
.asheet__btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 57px; color: var(--gold); font-size: 1.18rem; text-align: center; box-shadow: inset 0 -.5px 0 var(--sep); }
.asheet__btn:last-child { box-shadow: none; }
.asheet__btn:active { background: rgb(255 255 255 / .08); }
.asheet__btn--cancel { font-weight: 600; background: rgb(40 38 34 / .98); border-radius: 14px; }
.asheet__btn svg { width: 1.1rem; height: 1.1rem; }
.asheet__btn--danger { color: var(--danger); }

/* banner (top, like a system notification) */
.hud { position: fixed; top: calc(var(--top) + 8px); left: 50%; z-index: 80; transform: translate(-50%, -140%); max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 22px; background: rgb(44 42 38 / .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 8px 30px rgb(0 0 0 / .45); font-size: .882rem; font-weight: 500; transition: transform .45s var(--spring); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud.is-in { transform: translate(-50%, 0); }
.hud svg { width: 1.05rem; height: 1.05rem; color: var(--gold); }

/* photo viewer */
.viewer { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.viewer.is-in { opacity: 1; }
.viewer img { max-width: 100%; max-height: 100%; }
.viewer .nav__btn { position: absolute; top: calc(var(--top) + 4px); right: 8px; font-weight: 600; }

/* install hint */
.hint { margin: 12px var(--side) 0; background: var(--cell); border-radius: 12px; padding: 12px 8px 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.hint img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.hint div { flex: 1; font-size: .882rem; color: var(--label-2); line-height: 1.35; }
.hint b { display: block; color: var(--label); font-size: .94rem; font-weight: 600; margin-bottom: 1px; }
.hint button { color: var(--label-3); min-width: 36px; min-height: 36px; display: grid; place-items: center; }
.hint button svg { width: 1rem; height: 1rem; }

/* copyable code (missed-call setup) */
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .882rem; letter-spacing: 0; color: var(--label); }

/* ---------- motion ---------- */
@keyframes push-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes pop-in { from { transform: translateX(-28%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.anim-push { animation: push-in .42s var(--spring); }
.anim-pop { animation: pop-in .38s var(--spring); }
.anim-fade { animation: fade-in .2s ease-out; }
body.is-swiping { overflow: hidden; }
.screen.is-dragging { transition: none; box-shadow: -12px 0 30px rgb(0 0 0 / .5); }
.screen.is-settling { transition: transform .32s var(--spring); }
@media (prefers-reduced-motion: reduce) {
  .anim-push, .anim-pop { animation: fade-in .2s ease-out; }
  .sheet, .asheet, .hud, .switch::after { transition-duration: .01s; }
}

/* wider screens: keep the phone column, centred */
@media (min-width: 700px) {
  .tabbar__in { max-width: 680px; }
  .row__body { margin-right: var(--side); padding-right: 0; }
  .sheet { border-radius: 14px; bottom: 24px; padding-bottom: 0; max-height: calc(100dvh - 48px); }
}
