/* Design language: soft grey canvas, white and tinted surfaces, Space Grotesk numerals, an accent colour.
   Light only, on purpose.
   The brand colours, status colours and fonts are NOT set here: they come from config/brand.js, which the server turns
   into /brand.css (loaded before this file). Change them there.
   Rules every screen follows:
   1. Surfaces rank the page: white and raised = act on this first, soft tint and flat = useful but secondary, black = selected or the main button.
   2. Each colour means one thing: grey = information, blue = waiting for review, green = looks right, orange = late or
      worth a second look, red = needs a phone call or probably the wrong file; the accent is the brand and the menu
      counts. Colour lives in small marks (a dot, a pill, one soft glow), never a full fill.
   3. Progress is always Requested, Received, Approved. */
:root {
  --bg-2: #dcdcdf;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(15, 15, 17, 0.08);
  --line-2: rgba(15, 15, 17, 0.16);
  --fill: rgba(15, 15, 17, 0.045);
  --fill-2: rgba(15, 15, 17, 0.09);
  --r-card: 28px;
  --r-in: 16px;
  --shadow: 0 1px 1px rgba(15, 15, 17, 0.03), 0 10px 26px -20px rgba(15, 15, 17, 0.25);
  --shadow-up: 0 1px 1px rgba(15, 15, 17, 0.04), 0 22px 44px -22px rgba(15, 15, 17, 0.32);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(1200px 700px at 85% -10%, #f1f1f3 0%, transparent 60%), var(--bg); min-height: 100vh; min-height: 100dvh; }
h1, h2, h3 { margin: 0; font-weight: 560; letter-spacing: -0.025em; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
a { color: var(--ink); }
.muted { color: var(--ink-3); }
.small, small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.ico { display: inline-flex; flex: none; }
.bignum { font-family: var(--num); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; display: inline-block; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Layout ---- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { padding: 28px 18px 24px 28px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
.brand { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; padding: 0 6px 24px; display: flex; align-items: center; gap: 9px; }
.brand img { display: block; width: 12px; height: 12px; }
.brand img.full { width: auto; height: 24px; }
.brand b { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(15, 15, 17, 0.9) inset; }
.side-avatar { display: none; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: var(--fill); }
.nav a.active { background: var(--ink); color: #fff; }
.nav a .lbl { flex: 1; }
/* Every count sits in the same width box with its number centred, so plain counts and the lime ones line up (Jack, 27 Oct 2026) */
.nav .count { font-size: 13px; min-width: 34px; box-sizing: border-box; padding: 1px 6px; border-radius: 999px; text-align: center; color: var(--ink-3); font-weight: 560; }
.nav a.active .count { color: #fff; }
.nav .count.hot, .nav a.active .count.hot { background: var(--lime); color: var(--ink); }
.nav .count:empty { display: none; }
.nav-sec { font-size: 12px; letter-spacing: 0.02em; color: var(--ink-3); padding: 20px 16px 6px; }
.side > * { flex-shrink: 0; } /* a short window scrolls the menu instead of squashing the setup card */
.setupslot { margin-top: auto; }
.setupcard { margin-top: 12px; background: rgba(255, 255, 255, 0.78); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.setupcard .sc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.setupcard .sc-top b { font-size: 14.5px; font-weight: 600; }
.setupcard .sc-bar { height: 6px; border-radius: 9px; background: #d4d4d8; margin: 10px 0 12px; overflow: hidden; }
.setupcard .sc-bar i { display: block; height: 100%; background: var(--ink); border-radius: 9px; }
.setupcard p { margin: 0 0 12px; color: var(--ink-3); font-size: 13px; }
/* The dashboard's to-do list for a new practice (Jack, 11 Nov 2026): the setup steps above the tiles, the next one outlined. */
.todo { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 24px 26px 22px; margin-bottom: 16px; background: linear-gradient(160deg, #fff, #f2f2f5); box-shadow: var(--shadow); }
.todo::before { content: ''; position: absolute; z-index: -1; right: -90px; top: -120px; width: 260px; height: 260px; border-radius: 50%; background: var(--lime); filter: blur(60px); opacity: 0.5; }
.todo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.todo-top h2 { font-size: 22px; }
.todo-top span { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.todo > p { margin: 4px 0 14px; color: var(--ink-3); }
.todo .sc-bar { height: 6px; border-radius: 9px; background: #d4d4d8; margin: 0 0 16px; overflow: hidden; }
.todo .sc-bar i { display: block; height: 100%; background: var(--ink); border-radius: 9px; }
.todo ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.todo li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.8); }
.todo li.next { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.todo .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--pill-open-bg); color: var(--ink-2); }
.todo li.next .n { background: var(--ink); color: #fff; }
.todo li.done .n { background: var(--pill-ok-bg); color: var(--pill-ok-fg); }
.todo li.done b { color: var(--ink-3); }
.todo li b { font-weight: 600; }
.todo li .s { color: var(--ink-3); font-size: 13.5px; flex: 1; }
.todo li .btn { margin-top: 4px; }
.todo li .ok { margin-top: 4px; font-size: 13px; font-weight: 560; color: var(--pill-ok-fg); }
.acct { padding: 10px 0 0; position: relative; }
.acct .acctbtn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); border: 0; text-align: left; font: inherit; box-shadow: var(--shadow); }
.acct .acctbtn:hover { background: rgba(255, 255, 255, 0.85); }
.acct .acctbtn .who { flex: 1; min-width: 0; }
.acct .acctbtn b { display: block; color: var(--ink); font-size: 14px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .acctbtn .sub { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .chev { flex: none; color: var(--ink-3); display: grid; transition: transform 0.15s; }
.acct.open .chev { transform: rotate(180deg); }
.acct .menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #fff; border-radius: 24px; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04); z-index: 30; }
.acct .menu[hidden] { display: none; }
.acct .menu button, .acct .menu a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; font-size: 14px; color: var(--ink); background: none; border: 0; box-shadow: none; text-align: left; text-decoration: none; min-height: 0; height: auto; }
.acct .menu button:hover, .acct .menu a:hover, .acct .menu button:focus-visible, .acct .menu a:focus-visible { background: #f1f1f3; }
.acct .menu .ico { color: var(--ink-3); display: grid; }
.acct .menu hr { border: 0; border-top: 1px solid #ececef; margin: 6px 8px; }
button.link { background: none; box-shadow: none; padding: 0; min-height: 0; text-decoration: underline; border-radius: 0; font-weight: 500; color: var(--ink-2); }
button.link:hover { background: none; color: var(--ink); }
.main { padding: 28px 34px 70px 8px; max-width: 1360px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head > div { min-width: 0; }
.page-head p { margin: 6px 0 0; color: var(--ink-3); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 13px; font-weight: 500; text-decoration: none; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.stack > * + * { margin-top: 16px; }
.topbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 6px; }
.round { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; padding: 0; justify-content: center; }

/* ---- Surfaces: white and raised, soft tint and flat ---- */
.panel, .glass { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow); }
.panel { overflow: hidden; }
.panel.soft { background: rgba(255, 255, 255, 0.45); box-shadow: none; }
.panel-head { padding: 22px 26px 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head p { margin: 3px 0 0; color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.panel-body { padding: 8px 26px 24px; }
.panel-head + .panel-body { padding-top: 6px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2e { grid-template-columns: 1fr 1fr; }
.stat { padding: 16px 20px; }
.stat .n { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.stat .l { color: var(--ink-3); font-size: 12.5px; }
.seehead { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.seehead h2 { font-size: 18px; }

/* ---- Status marks: dots, pills, tags, avatars ---- */
.dt { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--s-grey); }
.dt.d-lime { background: var(--s-lime); box-shadow: 0 0 0 1.5px rgba(15, 15, 17, 0.45) inset; }
.dt.d-orange { background: var(--s-orange); }
.dt.d-blue { background: var(--s-blue); }
.dt.d-green { background: var(--s-green); }
.dt.d-red { background: var(--s-red); }
.dt.d-ink { background: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 560; white-space: nowrap; line-height: 1.25; }
.pill.sm { padding: 2px 9px; font-size: 12px; }
.p-open { background: var(--pill-open-bg); color: var(--pill-open-fg); }
.p-rev { background: var(--pill-rev-bg); color: var(--pill-rev-fg); }
.p-right { background: var(--pill-ok-bg); color: var(--pill-ok-fg); }
.p-over, .p-check { background: var(--pill-late-bg); color: var(--pill-late-fg); }
.p-call, .p-wrong { background: var(--pill-call-bg); color: var(--pill-call-fg); }
.p-done { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.p-need { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(15, 15, 17, 0.2); }
.p-ok { background: var(--pill-open-bg); color: var(--pill-open-fg); }
.tagx { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 15, 17, 0.06); font-size: 12px; font-weight: 540; color: var(--ink-2); white-space: nowrap; max-width: 100%; }
.tagx.k { background: var(--ink); color: #fff; }
.tagx.dash { background: transparent; border: 1px dashed rgba(15, 15, 17, 0.35); }
.av { width: 40px; height: 40px; border-radius: 50%; background: #ececef; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink-2); flex: none; letter-spacing: 0; }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.cnt { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; background: var(--fill); font-weight: 600; padding: 0 6px; }
.late { color: var(--pill-late-fg); font-weight: 560; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: rgba(255, 255, 255, 0.85); color: var(--ink-2); letter-spacing: 0.01em; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.07); white-space: nowrap; }
.chip.lime { background: var(--lime); color: var(--ink); box-shadow: none; }
/* older small badge, still used for a few small tags */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.9); color: var(--ink-2); white-space: nowrap; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.08); }
.badge.solid { background: var(--ink); color: #fff; box-shadow: none; }
.badge.outline { background: var(--lime); color: var(--ink); box-shadow: none; }
.badge.dash { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); font-weight: 500; }

/* ---- Progress: Requested, Received, Approved ---- */
.stepper { display: flex; align-items: center; width: 100%; }
.stepper .n { width: 16px; height: 16px; border-radius: 50%; flex: none; background: #c9c9ce; display: grid; place-items: center; }
.stepper .n.on { background: var(--ink); }
.stepper .n.on::after { content: ""; width: 6px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg) translate(0, -1px); }
.stepper .n.half { background: #fff; border: 2px solid var(--ink); }
.stepper .s { height: 3px; flex: 1; background: #c9c9ce; }
.stepper .s.on { background: var(--ink); }
.stlbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.stwrap { min-width: 130px; max-width: 190px; }
.meter { height: 6px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--ink); }
.bar { height: 6px; background: var(--fill-2); border-radius: 6px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.seg { display: flex; gap: 4px; margin-top: 14px; }
.seg i { flex: 1; height: 6px; border-radius: 9px; background: rgba(15, 15, 17, 0.14); }
.seg i.on { background: var(--ink); }

/* ---- Timeline: dot, dotted line, text, time ---- */
.tline { list-style: none; margin: 0; padding: 0; }
.tline .day { font-size: 12px; color: var(--ink-3); margin: 16px 0 2px; padding-left: 34px; letter-spacing: 0.04em; text-transform: uppercase; }
.tline .day:first-child { margin-top: 4px; }
.ev { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; position: relative; cursor: default; }
.ev.click { cursor: pointer; }
.ev::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: -12px; border-left: 2px dotted #a9a9b0; }
.ev.bridge::before { bottom: -47px; }
.ev.last::before { display: none; }
.ev .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); margin-top: 2px; }
.ev .dot.ring { background: #fff; border: 2px solid var(--ink); }
.ev .dot.red { background: var(--s-red); }
.ev b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .sub { font-size: 12.5px; color: var(--ink-3); display: block; }
.ev .when { font-size: 13px; color: var(--ink-3); }

/* ---- Gradient tiles: one soft glow each, in that tile's own colour ---- */
.gts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.gt { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 22px 24px 20px; min-height: 194px; background: linear-gradient(160deg, #fff, #f2f2f5); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: stretch; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border: 0; transition: transform 0.15s; }
.gt:hover { transform: translateY(-2px); background: linear-gradient(160deg, #fff, #f2f2f5); }
.gt:active { transform: scale(0.99); }
.gt.on { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.gclip { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); }
.gt .orb { position: absolute; z-index: auto; right: -64px; bottom: -84px; width: 200px; height: 200px; border-radius: 50%; filter: blur(30px); opacity: 0.85; }
.gt-grey .orb { background: radial-gradient(circle at 40% 40%, #cfcfd2, #e4e4e6 60%, #f3f3f4 85%); } /* true grey, no blue tint: blue means waiting for review */
.gt-lime .orb { background: radial-gradient(circle at 40% 40%, #d3e55a, #e3eea0 55%, #f1f5d6 85%); }
.gt-blue .orb { background: radial-gradient(circle at 40% 40%, #7da2ea, #b7cdf4 55%, #e2ebfb 85%); }
.gt-green .orb { background: radial-gradient(circle at 40% 40%, #6fc48a, #b3e0c1 55%, #e2f3e7 85%); }
.gt-orange .orb { background: radial-gradient(circle at 40% 40%, #efa768, #f4c9a0 55%, #f9e6d4 85%); }
.gt-red .orb { background: radial-gradient(circle at 40% 40%, #e5605a, #ee9d97 55%, #f8d8d5 85%); }
.gt-green .orb { background: radial-gradient(circle at 40% 40%, #9fcf9a, #c6e3c0 55%, #e4f1e0 85%); }
.gt .rings { position: absolute; z-index: auto; right: 36px; bottom: 28px; width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; }
.gt .rings i { width: 60%; height: 60%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; }
.gt .rings b { width: 26%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, 0.95); }
.gt .gt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gt .gt-lab { display: flex; align-items: center; gap: 8px; font-weight: 540; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.gt .go { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); display: grid; place-items: center; flex: none; }
.gt .gt-num { margin-top: 18px; font-size: 56px; }
.gt .gt-tag { margin-top: auto; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.gt.clear .gt-num { color: #b5b5bb; }
.gt.clear .orb { display: none; }
.gt.clear .gt-tag { color: var(--ink); font-weight: 560; }
.gt .seg { margin-top: 12px; }
.gt .gt-num small { font-size: 0.55em; color: var(--ink-3); letter-spacing: -0.03em; }

/* ---- Next 14 days: dots for reminders and due dates ---- */
.week { display: flex; align-items: center; gap: 26px; padding: 10px 30px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.week .wl { flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #fff; border-radius: 999px; padding: 0 34px 0 30px; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.07), 0 8px 22px -14px rgba(15, 15, 17, 0.25); }
.week .wl b { font-weight: 600; display: block; font-size: 15px; }
.week .keyline { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: center; margin-top: 3px; }
.week .keyline span { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.week .days { flex: 1; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); min-width: 0; }
.week .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.week .stackd { height: 62px; display: flex; flex-direction: column-reverse; gap: 5px; align-items: center; justify-content: flex-start; }
.week .cchip { font-size: 11px; font-weight: 600; background: var(--ink); color: #fff; padding: 3px 6px; border-radius: 999px; line-height: 1; font-variant-numeric: tabular-nums; }
.week .sd { width: 9px; height: 9px; border-radius: 50%; }
.week .sd.r { background: var(--ink); }
.week .sd.d { background: var(--s-orange); }
.week .dn { font-size: 12px; color: var(--ink-3); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 540; }
.week .dn.now { background: var(--ink); color: #fff; }
.week { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Hover card (laptop) and tap sheet (phone, tablet) for one day of the strip */
.week .col.has { position: relative; isolation: isolate; cursor: pointer; border-radius: 18px; outline-offset: 2px; }
.week .col.has::before { content: ""; position: absolute; inset: -8px 2px -6px; border-radius: 18px; z-index: -1; transition: background 0.12s; }
.week .col.has.hv-col::before { background: rgba(15, 15, 17, 0.06); }
.hv { position: absolute; z-index: 30; width: min(344px, 100%); background: #fff; border-radius: 24px; padding: 18px 20px 14px; font-size: 14px; color: var(--ink); text-align: left;
  box-shadow: 0 1px 1px rgba(15, 15, 17, 0.04), 0 26px 50px -18px rgba(15, 15, 17, 0.38); animation: hv-in 0.14s ease-out; outline: none; }
.hv::before { content: ""; position: absolute; top: -7px; left: var(--arrow, 50%); width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
@keyframes hv-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hv-h { margin: 0 0 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hvc .hv-h { font-size: 18px; }
.hv-sub { color: var(--ink-3); font-size: 12.5px; margin-bottom: 10px; }
.hv-lab { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 12px 0 4px; display: flex; align-items: center; gap: 7px; }
.hv-lab .sd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.hv-lab .sd.r { background: var(--ink); }
.hv-lab .sd.d { background: var(--s-orange); }
.hv-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hv-lab + .hv-row { border-top: 0; }
.hv-row:hover b { text-decoration: underline; }
.hv-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.hv-txt { min-width: 0; flex: 1; }
.hv-row b { display: block; font-weight: 600; font-size: 14.5px; }
.hv-row .s { display: block; color: var(--ink-3); font-size: 12.5px; }
.hv-row .t { margin-left: auto; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.hv-list { max-height: 300px; overflow-y: auto; margin: 0 -20px; padding: 0 20px; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
.hv-list:not([tabindex]) { -webkit-mask-image: none; mask-image: none; }
.hv-list .hv-lab { position: sticky; top: 0; background: #fff; z-index: 1; margin: 0; padding: 10px 0 4px; }
.hv-lab em { font-style: normal; background: var(--line); border-radius: 999px; padding: 1px 7px; letter-spacing: 0; font-size: 11px; }
.sheet.hvc .hv-list { max-height: 52vh; }
.hv-more { color: var(--ink-3); font-size: 12.5px; padding: 8px 0 0; }
.hv-foot { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.sheet.hvc { padding-top: 10px; background: #fff; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: #d4d4d8; margin: 0 auto 14px; }
.sheet.hvc .hv-row { padding: 12px 0; }
.sheet.hvc .hv-row b { font-size: 16px; }
.sheet.hvc .hv-row .s, .sheet.hvc .hv-row .t, .sheet.hvc .hv-sub, .sheet.hvc .hv-foot, .sheet.hvc .hv-more { font-size: 14px; }

/* ---- Sign in and sign up: a form beside a soft panel ---- */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 24px; min-height: 100vh; min-height: 100dvh; }
.auth-form { background: #fff; border-radius: 36px; box-shadow: var(--shadow); padding: 36px 64px 36px; display: flex; flex-direction: column; }
.auth-form .brand { padding: 0 0 0; }
.auth-form .af-body { margin: auto 0; padding: 36px 0; width: 100%; max-width: 440px; }
.auth-form h1 { font-size: 44px; margin-bottom: 8px; }
.auth-form .af-sub { color: var(--ink-3); font-size: 16px; margin: 0 0 32px; }
.auth-form .af-foot { color: var(--ink-3); font-size: 12.5px; }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 52px; }
.pwwrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; box-shadow: none; padding: 8px; min-height: 40px; color: var(--ink-3); }
.pwwrap button:hover { background: var(--fill); }
.auth-art { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; background: radial-gradient(90% 70% at 50% 46%, #efeff1, #d9dadf 70%, #cfd0d6); box-shadow: var(--shadow); min-height: 560px; display: flex; flex-direction: column; padding: 50px 46px 40px; }
.auth-art .orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); }
.auth-art .o-a { width: 520px; height: 520px; left: -200px; top: -190px; background: radial-gradient(circle at 40% 40%, #c9d0e2, #dde1ee 55%, #eef0f6 85%); opacity: 0.7; }
.auth-art .o-b { width: 620px; height: 620px; right: -230px; bottom: -250px; background: radial-gradient(circle at 40% 40%, #d9d9dc, #e9e9eb 60%, #f6f6f7 85%); opacity: 0.85; }
.auth-art .aa-head h2 { font-size: 40px; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 10px; font-weight: 650; color: var(--ink); }
.auth-art .aa-head p { margin: 0; color: var(--ink-3); font-size: 15.5px; max-width: 360px; line-height: 1.45; }
.auth-art .aa-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding-top: 24px; }
.auth-art .aa-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 80%; height: 70%; transform: translate(-50%, -48%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); filter: blur(40px); z-index: -1; }
.auth-art .lap { width: min(100%, 580px); filter: drop-shadow(0 36px 36px rgba(15, 15, 17, 0.3)); }
.auth-art .lid { position: relative; background: #0d0d0f; border-radius: 26px; padding: 13px; box-shadow: inset 0 0 0 1.5px #2b2b2f, 0 0 0 1px #3a3a3f; }
.auth-art .lid::before { content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #26262b; }
.auth-art .scr { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1180 / 740; background: #e6e7eb; }
.auth-art .scr img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.auth-art .scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 26%, rgba(255, 255, 255, 0) 44%), linear-gradient(0deg, rgba(15, 15, 17, 0.1), rgba(15, 15, 17, 0) 30%); pointer-events: none; }
.auth-art .base { position: relative; height: 17px; margin: 0 -26px; border-radius: 2px 2px 26px 26px / 2px 2px 18px 18px; background: linear-gradient(#f1f1f3, #c3c4ca 62%, #a9aab1); box-shadow: inset 0 1px 0 #fff; }
.auth-art .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 130px; height: 6px; margin-left: -65px; border-radius: 0 0 10px 10px; background: linear-gradient(#b3b4ba, #d4d5da); }
@media (max-height: 760px) { .auth-art .aa-head p { display: none; } .auth-art .aa-head h2 { font-size: 32px; } .auth-art { padding-top: 36px; } }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; padding: 12px; }
  .auth-art { display: none; }
  .auth-form { padding: 26px 22px; border-radius: 28px; }
  .auth-form h1 { font-size: 34px; }
  .auth-form .af-body { padding: 28px 0; }
}

/* ---- Slim notice strips ---- */
.strip { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 9px 10px 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); color: var(--ink-2); font-size: 13.5px; }
.strip.call { background: var(--pill-call-bg); color: var(--pill-call-fg); border-radius: 22px; padding: 12px 18px; }
.strip .st-text { flex: 1; min-width: 0; }
.strip .st-text b { color: var(--ink); }
.strip.call .st-text b { color: var(--pill-call-fg); }
.strip .btn, .strip button { flex: none; }

/* ---- Dashboard ---- */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.rowlist { list-style: none; margin: 0; padding: 0; }
.rowlist li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); cursor: pointer; transition: background 0.12s; }
.rowlist li:first-child { border-top: 0; }
.rowlist .rl-main { flex: 1; min-width: 0; }
.rowlist .rl-main b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowlist .rl-main .rl-sub { display: block; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowlist .rl-side { text-align: right; white-space: nowrap; font-size: 12.5px; color: var(--ink-3); }
.nlist li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 118px; gap: 20px; align-items: center; }
.nlist .rl-pill { justify-self: end; }
.nlist .stwrap-col { min-width: 0; max-width: 220px; }
.kv { display: flex; gap: 16px; font-size: 13px; margin-top: 3px; flex-wrap: wrap; }
.kv .l { color: var(--ink-3); }
.kv .v { color: var(--ink); font-weight: 560; margin-left: 5px; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }
/* Call backs asked for: a strip across the whole dashboard. One call back fills the width; more sit side by side. */
.callstrip { margin-bottom: 16px; }
.callstrip h2 { display: flex; align-items: center; }
.callrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; padding: 0 16px 16px; }
.callcard { background: rgba(255, 255, 255, 0.75); border-radius: 20px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; min-width: 0; }
.callcard .cc-who { display: flex; flex-direction: column; min-width: 150px; }
.callcard .cc-who b { font-size: 16px; font-weight: 600; }
.callcard .cc-when { display: flex; flex-direction: column; gap: 1px; min-width: 150px; }
.callcard .cc-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.callcard .cc-note { flex: 1 1 200px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.callcard button, .callcard .pill { margin-left: auto; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1500px) { .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gcard { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 0; min-height: 300px; --a: #8a8a93; --al: #55555c; --ab1: #4a4a50; --ab2: #0f0f11; --ai: #fff; }
.gcard.lime { --a: #cfe03a; --al: #a9bd10; --ab1: #e9f78a; --ab2: #cfe03a; --ai: #1a1d00; }
.gcard.green { --a: var(--s-green); --al: #3f9a5c; --ab1: #9ed8b0; --ab2: #4cae6c; --ai: #fff; }
.gcard.grey { --a: #8a8a93; --al: #55555c; --ab1: #4a4a50; --ab2: #0f0f11; --ai: #fff; }
.gcard.orange { --a: var(--s-orange); --al: #d98a42; --ab1: #f3b57a; --ab2: #e08a3c; --ai: #fff; }
.gcard.red { --a: var(--s-red); --al: #d64545; --ab1: #ec7a6f; --ab2: #d64545; --ai: #fff; }
.ghd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ghd h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pillsel { font-size: 12px; font-weight: 540; background: #f1f1f3; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.gsub { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); }
.gn { display: flex; align-items: flex-start; gap: 4px; margin-top: 4px; }
.gn .bignum { line-height: 1.05; }
.gn .u { font-size: 15px; color: var(--ink-3); align-self: flex-end; margin: 0 0 7px 6px; }
.gn .tr { margin-top: 9px; color: var(--al); display: grid; }
.gn .tr.down { transform: rotate(90deg); }
.curve { position: relative; height: 96px; margin-top: 14px; }
.curve svg { width: calc(100% - 6px); height: 100%; display: block; overflow: visible; } /* ends on the dashed line, not at the card edge */
.curve .dot { position: absolute; right: -3px; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; border: 5px solid var(--a); box-shadow: 0 0 0 6px color-mix(in srgb, var(--a) 28%, transparent); }
.curve .vl { position: absolute; right: 6px; top: 0; bottom: 0; border-right: 1.5px dotted color-mix(in srgb, var(--al) 60%, transparent); }
.gf { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 14px; }
.gf span { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.rb { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; background: linear-gradient(145deg, var(--ab1), var(--ab2)); border: 0; display: grid; place-items: center; color: var(--ai); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--ab2) 80%, transparent); }
.rb, .rb:hover, .rb:active { color: var(--ai); }
.rb .ico { color: var(--ai); display: grid; }
.rb:disabled { opacity: 0.4; box-shadow: none; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 4px 14px; gap: 12px; }
.section-head h2 { font-size: 20px; font-weight: 540; }
.section-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 12.5px; }
.pillbtn { background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; text-decoration: none; font-weight: 560; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.08); color: var(--ink); }
.panel.soft .pillbtn { background: #fff; }

/* Gradient tile for the client pages (upload and status) */
.tile { position: relative; overflow: hidden; border-radius: 30px; color: var(--ink); padding: 22px 24px 20px; min-height: 210px; isolation: isolate; display: flex; flex-direction: column; background: linear-gradient(160deg, #fff, #f2f2f5); box-shadow: var(--shadow); text-decoration: none; }
.tile::before { content: ''; position: absolute; z-index: -1; right: -70px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; filter: blur(30px); opacity: 0.9; background: var(--mesh); }
.tile .tl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 540; color: var(--ink-2); }
.tile .tl::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tint, #7fbf79); flex: none; }
.tile .big { margin-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--ink); }
.tile .big .bignum small { font-size: 0.6em; color: var(--ink-3); }
.tile .ts { align-self: flex-start; font-size: 12.5px; font-weight: 500; background: rgba(255, 255, 255, 0.75); color: var(--ink-2); padding: 5px 12px; border-radius: 999px; max-width: 100%; }
.tile-green { --mesh: radial-gradient(circle at 40% 40%, #9fcf9a, #c6e3c0 55%, #e4f1e0 85%); --tint: #7fbf79; }
.tile-brand { --mesh: radial-gradient(circle at 40% 40%, var(--brand, #9fcf9a), color-mix(in srgb, var(--brand, #9fcf9a) 45%, #fff) 55%, color-mix(in srgb, var(--brand, #9fcf9a) 15%, #fff) 85%); --tint: var(--brand, #7fbf79); }
.tile .seg { margin-top: 16px; }
.ruler { position: relative; height: 22px; margin-top: 10px; color: var(--ink); background: repeating-linear-gradient(90deg, rgba(15, 15, 17, 0.32) 0 1px, transparent 1px 6px) 0 100% / 100% 11px no-repeat; }
.ruler i { position: absolute; bottom: 0; width: 2px; height: 22px; background: currentColor; border-radius: 2px; transform: translateX(-1px); }
.ruler.light { color: #fff; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px 6px); }

/* ---- Import centre ---- */
.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.source { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--fill); box-shadow: none; font-weight: 400; position: relative; }
.source:hover { background: var(--fill-2); }
.source.on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.source.on::after { content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.source b { font-size: 15px; font-weight: 560; }
.source span { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.source.soon { cursor: default; }
.source.soon:hover { background: var(--fill); }
.source.soon:active { transform: none; }
.filedrop { display: block; border-radius: 24px; padding: 36px 18px; text-align: center; cursor: pointer; color: var(--ink); font-weight: 560; font-size: 15px; background: var(--fill); border: 1.5px dashed rgba(15, 15, 17, 0.25); margin: 0; position: relative; }
.filedrop:hover, .filedrop.over { background: #fff; border-color: var(--ink); }
.filedrop input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.filedrop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.filedrop .fd-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; margin-bottom: 12px; }
.filedrop small { display: block; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.isteps { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.isteps .is { display: flex; align-items: center; gap: 10px; font-weight: 560; }
.isteps .is i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; background: #fff; color: var(--ink-3); }
.isteps .is.on i, .isteps .is.done i { background: var(--ink); color: #fff; }
.isteps .is.next { color: var(--ink-3); font-weight: 500; }
.isteps .ln { height: 2px; width: 70px; background: #c9c9ce; }
.isteps .ln.on { background: var(--ink); }
.stepn { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; margin-right: 12px; flex: none; }
.tally { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 16px; }
.tally div { display: flex; align-items: baseline; gap: 8px; color: var(--ink-3); font-size: 13px; }
.tally div.go { color: var(--ink); }

/* ---- Templates and outbox ---- */
.tcols { column-count: 3; column-gap: 16px; }
.tcard { break-inside: avoid; margin-bottom: 16px; }
.tlist li { padding: 9px 0; font-size: 13.5px; }
.mbody { white-space: pre-wrap; font-family: inherit; margin: 0; background: var(--fill); padding: 14px 16px; border-radius: 16px; font-size: 13.5px; }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 12px 14px; white-space: nowrap; letter-spacing: 0.03em; text-transform: uppercase; }
td { padding: 14px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 26px; }
th:last-child, td:last-child { padding-right: 26px; }
tbody tr.click { cursor: pointer; transition: background 0.12s; }
tbody tr.click:hover { background: var(--fill); }
.table-wrap { overflow-x: auto; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who b { display: block; font-weight: 600; font-size: 15px; }
.who span.sub { display: block; color: var(--ink-3); font-size: 13px; }
.dueb b { display: block; font-weight: 600; white-space: nowrap; }
.dueb span { font-size: 12.5px; color: var(--ink-3); }
.rqgroup { display: flex; align-items: center; gap: 10px; padding: 22px 26px 6px; }
.rqgroup h2 { font-size: 19px; }
.rqcards { display: none; }
.rqtable table { table-layout: fixed; }
.rqtable th, .rqtable td { padding-left: 10px; padding-right: 10px; }
.rqtable th:first-child, .rqtable td:first-child { padding-left: 26px; }
.rqtable th:last-child, .rqtable td:last-child { padding-right: 22px; }
.rqtable th:nth-child(1) { width: auto; } .rqtable th:nth-child(2) { width: 84px; } .rqtable th:nth-child(3) { width: 124px; }
.rqtable th:nth-child(4) { width: 168px; } .rqtable th:nth-child(5) { width: 116px; }
.rqtable .stwrap { min-width: 0; max-width: 96px; }
.rqtable td:nth-child(3) .small { white-space: nowrap; font-size: 11.5px; }
.rqtable td:nth-child(5) { white-space: nowrap; }
.rqtable td.chasing b { display: block; font-weight: 600; white-space: nowrap; }
.rqtable td.chasing b i { font-style: normal; font-weight: 440; color: var(--ink-3); }
.rqtable td.chasing span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (min-width: 1300px) { .rqtable th:nth-child(2) { width: 11%; } .rqtable th:nth-child(3) { width: 17%; } .rqtable th:nth-child(4) { width: 20%; } .rqtable th:nth-child(5) { width: 13%; } }
.rqtable td { overflow-wrap: anywhere; }

/* ---- Controls ---- */
button, .btn { font: inherit; font-weight: 540; cursor: pointer; border-radius: 999px; padding: 9px 17px; border: 0; background: #fff; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.2; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.1); transition: background 0.12s, transform 0.12s; }
button:hover, .btn:hover { background: #f7f7f8; }
button:active, .btn:active { transform: scale(0.98); }
button.primary, .btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 15, 17, 0.6); }
button.primary:hover, .btn.primary:hover { background: var(--primary-hover); }
button.danger, .btn.danger { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(15, 15, 17, 0.25); }
button.danger:hover { background: var(--fill); }
button.ghost, .btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
button.ghost:hover, .btn.ghost:hover { background: var(--fill); }
button.out { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(15, 15, 17, 0.25); }
button.out:hover { background: var(--fill); }
.btn.out { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(15, 15, 17, 0.25); }
.btn.soft, button.soft { background: rgba(255, 255, 255, 0.7); box-shadow: none; }
button.sm, .btn.sm { padding: 6px 14px; font-size: 13px; }
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--fill); border: 1px solid transparent; border-radius: var(--r-in); padding: 12px 16px; width: 100%; }
input::placeholder, textarea::placeholder { color: #80808a; }
select { -webkit-appearance: none; appearance: none; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362626a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; padding-right: 40px; }
input[type=search] { background-color: #fff; border-radius: 999px; padding-left: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380808a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 16px center; background-size: 18px; }
textarea { resize: vertical; min-height: 84px; }
input[type=checkbox] { accent-color: var(--ink); }
label { display: block; font-weight: 520; font-size: 12.5px; margin-bottom: 6px; color: var(--ink-3); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 450; color: var(--ink); font-size: 14px; margin: 0; }
.check input { width: auto; }
.tgl { justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 560; font-size: 14.5px; cursor: pointer; }
.tgl:first-of-type { border-top: 0; }
.tgl input[type=checkbox] { -webkit-appearance: none; appearance: none; order: 2; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #d0d0d5; position: relative; margin: 0; padding: 0; cursor: pointer; transition: background 0.15s; border: 0; }
.tgl input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left 0.15s; }
.tgl input[type=checkbox]:checked { background: var(--ink); }
.tgl input[type=checkbox]:checked::after { left: 21px; }
.tgl-hint { margin: -8px 0 6px; max-width: 560px; }
.tgl .tgl-sub { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hint { color: var(--ink-3); font-size: 12.5px; margin-top: 5px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fields-2 > *, .fields-3 > * { min-width: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); cursor: pointer; font-weight: 540; font-size: 13.5px; color: var(--ink-2); box-shadow: none; }
.tab:hover { background: #fff; }
.tab.on { background: var(--ink); color: #fff; }
.tab b { font-weight: 600; margin-left: 6px; opacity: 0.55; }

/* ---- Items, documents, feeds ---- */
.item { padding: 20px 26px; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.item-head h3 { font-size: 16px; font-weight: 600; }
.item-head .ih-side { display: flex; gap: 12px; align-items: center; flex: none; }
.doc { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 20px; margin-top: 12px; background: var(--fill); flex-wrap: wrap; }
.doc .name { flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.doc .fico { color: var(--ink-3); }
.callout { border-radius: 22px; padding: 12px 16px; background: rgba(255, 255, 255, 0.65); color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(15, 15, 17, 0.08); }
.callout.warn { background: var(--pill-late-bg); box-shadow: none; color: var(--pill-late-fg); }
.callout.strong { background: rgba(15, 15, 17, 0.06); color: var(--ink); box-shadow: none; }
.callout.call { background: var(--pill-call-bg); color: var(--pill-call-fg); box-shadow: none; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.feed li:first-child { border-top: 0; }
.feed .who { width: 54px; flex: none; color: var(--ink-3); font-size: 12px; padding-top: 2px; display: block; }
.feed .when { margin-left: auto; color: var(--ink-3); font-size: 12px; white-space: nowrap; padding-left: 8px; }
.thread .msg { padding: 11px 15px; border-radius: 20px; margin-bottom: 8px; max-width: 85%; background: var(--fill); }
.thread .msg.staff { margin-left: auto; background: var(--soft-lime); }
.thread .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.thread .msg.staff .meta { color: rgba(15, 15, 17, 0.6); }
.toast { position: fixed; bottom: calc(26px + env(safe-area-inset-bottom)); width: max-content; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; z-index: 50; max-width: 90vw; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
.modal-back { overflow-y: auto; overscroll-behavior: contain; position: fixed; inset: 0; background: rgba(20, 20, 24, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.modal { background: #f6f6f7; border-radius: 30px; padding: 26px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.modal h2 { margin-bottom: 14px; }
.auth { max-width: 420px; margin: 9vh auto; padding: 0 16px; }
.auth .panel { padding: 30px; }
.auth h1 { margin-bottom: 4px; font-size: 32px; }
.pick { max-height: 330px; overflow: auto; border-radius: 20px; }
.pick label { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); margin: 0; font-weight: 450; color: var(--ink); cursor: pointer; font-size: 14.5px; }
.pick label:first-child { border-top: 0; }
.pick input[type=checkbox] { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid #b5b5bb; background: transparent; flex: none; margin: 0; padding: 0; }
.pick input[type=checkbox]:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ink); }
.item-edit { display: grid; grid-template-columns: 1.1fr 1.5fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.banner { background: var(--ink); color: #fff; padding: 9px 32px; font-size: 13px; display: flex; gap: 10px; align-items: center; }

.doc .answer { flex: 1 1 100%; white-space: pre-wrap; background: #fff; border-radius: 14px; padding: 9px 13px; }
.check-note { flex: 1 1 100%; display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--pill-late-fg); background: var(--pill-late-bg); border-radius: 14px; padding: 6px 11px; }
.check-note .ico { margin-top: 2px; }

/* ---- Right document check: pills and the one line reason ---- */
.vchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 20px; white-space: nowrap; }
.vchip.v-ok { background: var(--pill-ok-bg); color: var(--pill-ok-fg); }
.vchip.v-check { background: var(--pill-late-bg); color: var(--pill-late-fg); }
.vchip.v-wrong { background: var(--pill-call-bg); color: var(--pill-call-fg); }
.demo-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 20px; border: 1px dashed rgba(15, 15, 17, 0.35); color: var(--ink-2); white-space: nowrap; }
.check-line { flex: 1 1 100%; border-radius: 18px; padding: 12px 16px; background: #fff; font-size: 12.5px; }
.check-line.cl-ok { background: #f6f9dc; }
.check-line.cl-check { background: #fff2e2; }
.check-line.cl-wrong { background: #fdeceb; }
.check-line .cl-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.check-line .cl-reason { color: var(--ink); font-size: 14px; }
.cl-basis { color: var(--ink-3); font-size: 12px; margin-top: 3px; }
.rq-list { display: block; }
.rq-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 142px; gap: 26px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.rq-card:first-child { border-top: 0; }
.rq-who { display: flex; align-items: center; gap: 12px; }
.rq-left { min-width: 0; }
.rq-who b { display: block; font-weight: 600; }
.rq-who a { text-decoration: none; }
.rq-who span.sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.rq-item { font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 14px 0 2px; display: block; }
.rq-file { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rq-file .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; font-weight: 560; }
.rq-mid .check-line, .rq-mid > .cl-basis { margin-top: 0; }
.rq-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.rq-actions button, .rq-actions .btn { justify-content: center; }
.rq-ago { font-size: 12px; color: var(--ink-3); }
.rq-sent { grid-column: 1 / -1; font-size: 13px; }

/* ---- Smart chasers ---- */
.hist { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); }
.hist.hist-late { background: var(--pill-late-bg); color: var(--pill-late-fg); }
.hist.hist-slow { background: #fff; }
.hints { display: grid; gap: 6px; margin-top: 10px; }
.hint-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; padding: 9px 14px; border-radius: 14px; background: var(--fill); }
.hint-row .ico { margin-top: 2px; flex: none; }
.hint-row.hr-warn { background: var(--pill-late-bg); color: var(--pill-late-fg); }
.minitiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.mt { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: 20px 22px; min-height: 118px; background: linear-gradient(160deg, #fff, #f2f2f5); box-shadow: var(--shadow); }
.mt .orb { position: absolute; z-index: auto; right: -50px; bottom: -70px; width: 150px; height: 150px; border-radius: 50%; filter: blur(28px); opacity: 0.85; background: radial-gradient(circle at 40% 40%, #c9d0e0, #e3e6ee 60%, #f1f2f6 85%); }
.mt.late .orb { background: radial-gradient(circle at 40% 40%, #efa768, #f4c9a0 55%, #f9e6d4 85%); }
.mt .bignum { font-size: 44px; }
.mt p { margin: 8px 0 0; font-weight: 540; font-size: 14px; }

/* ---- Client status page and call backs ---- */
.cb-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.cb-row:first-of-type { border-top: 0; }
.cb-row a[href^="tel:"] { white-space: nowrap; }

/* ---- Review header: dashboard style tiles that double as the key and the filter ---- */
.rvnote { margin: 0 8px 14px; color: var(--ink-3); font-size: 12.5px; }
.rvnote button.link { font-size: 12.5px; color: var(--ink); font-weight: 600; text-decoration: none; }
.howcheck { margin: 0 4px 14px; }
.howcheck summary { cursor: pointer; color: var(--ink-2); font-weight: 520; font-size: 13px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.howcheck summary::-webkit-details-marker { display: none; }
.howcheck p { margin: 8px 0 0; font-size: 13px; max-width: 640px; }

/* ---- Request detail ---- */
.summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; align-items: center; padding: 22px 28px; margin-bottom: 16px; }
.summary .sm-due { font-size: 17px; font-weight: 600; }
.summary .stwrap { max-width: 560px; width: 100%; }
.summary .sm-big { text-align: right; }
.summary .sm-big .bignum { font-size: 48px; }
.summary .sm-big .bignum small { font-size: 0.55em; color: var(--ink-3); }
.sendways { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qrbox { padding: 12px; background: var(--fill); border-radius: 18px; flex: none; }
.addr { display: block; padding: 12px 14px; border-radius: 16px; background: var(--fill); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; user-select: all; font-family: ui-monospace, Menlo, Consolas, monospace; }
.qr { display: block; width: 112px; height: 112px; border-radius: 4px; background: #fff; flex: none; }
.ways-text { flex: 1 1 180px; min-width: 0; }
.ways-email { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.sched-edit { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sched-edit summary { cursor: pointer; font-weight: 560; font-size: 13.5px; }
.samples { border: 0; padding: 0; margin: 12px 0 0; }
.samples legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
.samples .check { display: flex; margin-bottom: 4px; }
.print-sheet { text-align: center; padding: 8px 8px 0; overflow-wrap: anywhere; }
.print-sheet h1 { font-size: 26px; margin: 0 0 6px; }
.print-sheet .qr.big { width: min(260px, 70vw); height: auto; aspect-ratio: 1; margin: 18px auto; box-shadow: none; }
.ps-for { color: #666; margin: 0; }
.ps-link { font-size: 12px; overflow-wrap: anywhere; color: #555; }
.print-modal { max-width: 520px; }
.via-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: rgba(15, 15, 17, 0.06); color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.qr-card { text-align: center; }
.qr-card .qr { margin: 10px auto; }
.photo-card .tray { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.photo-card .tray .thumb { position: relative; width: 72px; height: 72px; }
.photo-card .tray img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; box-shadow: inset 0 0 0 1px var(--line-2); }
.photo-card .tray .thumb button { position: absolute; top: -12px; right: -12px; width: 44px; height: 44px; min-height: 44px; padding: 0; background: transparent; border: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; }
.photo-card .tray .thumb button span { width: 24px; height: 24px; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; }
.photo-card select { width: 100%; }
.only-wide { display: block; }

/* ---- New request ---- */
.nr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nr-side { position: sticky; top: 20px; }
.stephead { display: flex; align-items: center; gap: 12px; }
.stephead h2 { font-size: 19px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chipbtn { padding: 7px 14px; border-radius: 999px; background: var(--fill); font-weight: 540; font-size: 13.5px; box-shadow: none; color: var(--ink); }
.chipbtn.on { background: var(--ink); color: #fff; }
.selbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.whom { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.avpair { display: flex; }
.avpair .av { border: 2px solid #fff; }
.avpair .av + .av { margin-left: -12px; }
.lab2 { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 16px 0 6px; }

/* ---- Settings ---- */
.sgrid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.snav { position: sticky; top: 20px; padding: 12px; border-radius: 28px; background: rgba(255, 255, 255, 0.45); display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 40px); overflow-y: auto; }
.snav button { justify-content: flex-start; background: transparent; box-shadow: none; padding: 9px 14px; font-weight: 520; font-size: 14px; color: var(--ink-2); text-align: left; }
.snav button:hover { background: var(--fill); }
.snav button.on { background: var(--ink); color: #fff; }
.savebar { display: flex; justify-content: flex-end; margin-top: 4px; }

@media (max-width: 1200px) {
  .tcols { column-count: 2; }
  .week { gap: 16px; padding: 10px 20px 10px 10px; }
}
@media (min-width: 1101px) and (max-width: 1250px) {
  .nlist li { grid-template-columns: minmax(0, 1fr) 118px; }
  .nlist li .stwrap-col { display: none; }
}
@media (max-width: 1000px) {
  .hm { display: none; }
}
@media (max-width: 1100px) {
  .dash-cols, .nr { grid-template-columns: 1fr; }
  .nr-side { position: static; }
  .g2 { grid-template-columns: 1fr; }
  .rq-card { grid-template-columns: minmax(0, 1fr) 142px; }
  .rq-card .rq-mid { grid-column: 1 / -1; grid-row: 2; }
  .gts { gap: 12px; }
  .gt { padding: 18px 18px 16px; }
}
@media (max-width: 1000px) { .grid[data-impgrid] { grid-template-columns: 1fr !important; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .gts { grid-template-columns: 1fr 1fr; }
  .g3, .g2e, .fields-2, .fields-3, .glance { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr; }
  .item-edit { grid-template-columns: 1fr; }
  .sgrid { grid-template-columns: 1fr; }
  .snav { display: none; }
  .summary { grid-template-columns: 1fr auto; gap: 18px 24px; }
  .summary .sm-mid { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- Touch: on phones, tablets and any touch screen every control is at least 44px tall ---- */
@media (max-width: 900px), (pointer: coarse) {
  button, .btn, select, textarea, summary, .tab, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]) { min-height: 44px; }
  button.link, button.ghost { min-height: 44px; }
  .check, .pick label { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; flex: none; }
  .tgl input[type=checkbox] { width: 44px; height: 26px; min-height: 0; }
  .nav a { min-height: 44px; }
  input[type=color] { min-height: 44px; height: 44px !important; }
  .only-wide { display: none; }
}
@media (hover: none) and (pointer: coarse), (max-width: 700px) { .only-wide { display: none; } }

@media print {
  body.printing > *:not(.print-back) { display: none !important; }
  body.printing .print-back { position: static; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; display: block; }
  body.printing .modal { box-shadow: none; background: #fff; max-width: none; padding: 0; }
  .no-print { display: none !important; }
}

/* ---- Phones and tablets: floating pill menu, bigger type, tables as cards ---- */
.tabbar { display: none; }
.sheet-back { align-items: flex-end; padding: 0; }
.sheet { border-radius: 28px 28px 0 0; max-width: 560px; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 88vh; max-height: 88dvh; animation: sheet-up 0.2s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sheet-head h2 { margin: 0; }
.sheet-links { display: grid; gap: 6px; }
.sheet-links a { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.7); text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 500; }
.sheet-links a.active { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sheet-links .lbl { flex: 1; }
.sheet-links .count, .tabbar .count { font-size: 12px; min-width: 22px; text-align: center; background: var(--fill-2); color: var(--ink-2); border-radius: 20px; padding: 1px 7px; font-weight: 600; }
.sheet-links .count.hot, .tabbar .count.hot { background: var(--lime); color: var(--ink); }
.sheet-acct { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sheet-acct .row { gap: 8px; }

@media (max-width: 900px) {
  .side { position: sticky; top: 0; z-index: 20; height: auto; overflow: visible; padding: calc(12px + env(safe-area-inset-top)) 18px 10px; background: rgba(228, 228, 230, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); flex-direction: row; align-items: center; justify-content: space-between; }
  .side .brand { padding: 0; font-size: 18px; }
  .side .nav, .side .setupslot, .side .acct { display: none; }
  .side-avatar { display: inline-grid; width: 38px; height: 38px; min-height: 38px; padding: 0; background: #fff; border-radius: 50%; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink-2); box-shadow: none; }
  .main { padding: 18px 16px calc(120px + env(safe-area-inset-bottom)); max-width: none; }
  .tabbar { display: flex; justify-content: space-between; align-items: center; position: fixed; left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 420px); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 30px -8px rgba(15, 15, 17, 0.3), 0 0 0 1px rgba(15, 15, 17, 0.05); }
  .tabbar a, .tabbar button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; min-width: 50px; min-height: 50px; padding: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--ink-3); text-decoration: none; font-size: 13.5px; font-weight: 560; position: relative; }
  .tabbar .tl { display: none; white-space: nowrap; }
  .tabbar a.active, .tabbar button.active { background: var(--ink); color: #fff; padding: 0 18px; }
  .tabbar a.active .tl, .tabbar button.active .tl { display: inline; }
  .tabbar .ti { position: relative; display: inline-flex; }
  .tabbar .count { position: absolute; top: -9px; left: calc(100% - 8px); line-height: 1.3; }
  .tabbar a.active .count, .tabbar button.active .count { display: none; }
  .tabbar .count:empty, .tabbar .count:not(.hot) { display: none; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 16px; }
  h1 { font-size: 30px; }
  .gt { min-height: 160px; padding: 16px 16px 14px; border-radius: 26px; }
  .gt .gt-num { font-size: 44px; margin-top: 12px; }
  .gt .gt-lab { font-size: 13.5px; }
  .gt .go { display: none; }
  .gt .orb { width: 150px; height: 150px; right: -50px; bottom: -60px; }
  .gt .rings { right: 22px; bottom: 20px; width: 56px; height: 56px; }
  .gt .gt-tag { font-size: 12.5px; padding: 4px 11px; }
  .week { flex-direction: column; align-items: stretch; gap: 10px; border-radius: 28px; padding: 8px 8px 12px; }
  .week .wl { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; align-self: auto; text-align: left; border-radius: 22px; padding: 12px 16px; }
  .week .keyline { margin-top: 0; flex-wrap: wrap; justify-content: flex-end; }
  .week .days { padding: 0 6px; }
  .week .stackd { height: 48px; gap: 3px; }
  .week .cchip { font-size: 9px; padding: 2px 4px; }
  .week .sd { width: 7px; height: 7px; }
  .week .dn { font-size: 11px; width: 22px; height: 22px; }
}
@media (max-width: 900px), (pointer: coarse) {
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px; } /* under 16px makes iPhones zoom in when a field is tapped */
  .small, .hint, .muted.small { font-size: 13px; }
  .gcard { min-height: 0; }
  label { font-size: 14px; }
  .rowlist .rl-main .rl-sub, .rowlist .rl-side { font-size: 13px; }
  a.muted.small, .acct a, .page-head p a, .rowlist a { display: inline-flex; align-items: center; min-height: 44px; }
  .page-head p a { display: inline-block; min-height: 0; padding: 12px 0; margin: -12px 0; }
  .tabs .tab { font-size: 14px; }
}
@media (max-width: 700px) {
  .page-head > .row { width: 100%; }
  .page-head > .row > .primary { order: -1; flex: 1 1 100%; }
  .page-head > .row > a.btn.primary { width: 100%; }
  .page-head > div + a.btn.primary { width: 100%; }
  .panel-head { padding: 18px 18px 8px; flex-wrap: wrap; }
  .panel-body { padding: 8px 18px 20px; }
  .item { padding: 16px 18px; }
  .item-head { flex-direction: column; gap: 8px; }
  .doc { padding: 12px; }
  .doc .name { flex: 1 1 100%; }
  .rq-actions { flex-direction: row; flex-wrap: wrap; }
  .rq-actions button, .rq-actions .btn { flex: 1 1 auto; }
  .rq-card { grid-template-columns: 1fr; gap: 14px; }
  .rq-card .rq-mid { grid-column: auto; grid-row: auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 36px; }
  .row > input[type=search] { max-width: none !important; width: 100%; flex: 1 1 100%; }
  .modal { padding: 20px; border-radius: 26px; }
  .modal .row.end { justify-content: stretch; }
  .modal .row.end > button, .modal .row.end > .btn { flex: 1 1 auto; }
  .feed .who { width: 48px; }
  .thread .msg { max-width: 94%; }
  .auth { margin: 4vh auto; }
  .auth .panel { padding: 22px; }
  .tcols { column-count: 1; }
  .minitiles { grid-template-columns: 1fr; gap: 12px; }
  .mt { min-height: 96px; padding: 16px 18px; }
  .mt .bignum { font-size: 38px; }
  .strip { border-radius: 22px; padding-left: 16px; }
  .strip .st-more { display: none; }
  .isteps { flex-direction: column; align-items: flex-start; gap: 8px; }
  .isteps .ln { display: none; }
  .isteps .is i { width: 26px; height: 26px; }
  .page-head > .row > .btn:not(.primary), .page-head > .row > button:not(.primary) { flex: 1 1 auto; }
  table.cards td.stackc { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
  .hm { display: block; }
  .rowlist li { gap: 12px; }
  .nlist li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main pill" "step step"; row-gap: 12px; }
  .nlist .rl-main { grid-area: main; }
  .nlist .rl-pill { grid-area: pill; align-self: start; }
  .nlist li .stwrap-col { display: block; grid-area: step; max-width: none; }
  .summary { padding: 18px; }
  .summary .sm-big .bignum { font-size: 40px; }

  /* the request list swaps the table for one card per request */
  .rqtable { display: none; }
  .rqcards { display: block; padding: 4px 14px 14px; }
  .rqc { display: block; width: 100%; text-align: left; background: #fff; border-radius: 24px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); cursor: pointer; }
  .rqc .rqc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
  .rqc h3 { font-size: 16px; }
  .rqc .sub { color: var(--ink-3); font-size: 13.5px; }
  .rqc .stepper { margin-bottom: 4px; }
  .rqgroup { padding: 18px 6px 8px; }
  .rqpanel, .rqpanel.soft { background: transparent; box-shadow: none; overflow: visible; }
  .rqcards { padding: 4px 0 6px; }

  /* tables become cards: one card per row, the column heading beside each value */
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards tr { padding: 12px 18px; border-top: 1px solid var(--line); }
  table.cards tbody tr:first-child { border-top: 0; }
  table.cards td, table.cards td:first-child, table.cards td:last-child { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; min-width: 0; overflow-wrap: anywhere; }
  table.cards td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; font-weight: 500; text-align: left; flex: none; }
  table.cards td:first-child { font-size: 17px; justify-content: flex-start; text-align: left; padding-bottom: 6px; }
  table.cards td:first-child::before { display: none; }
  table.cards td:empty { display: none; }
  table.cards td > div { min-width: 0; }
  .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source { padding: 14px; }
  table.cards .bar { min-width: 100px; }
  .week .days { gap: 0; }
}
/* Approve: green ring and tint, then the card folds away */
.rq-card, .doc { transition: box-shadow 0.25s ease, background-color 0.25s ease, height 0.38s ease, opacity 0.38s ease, margin 0.38s ease, padding 0.38s ease; }
.approving { background-color: #e3f6e8 !important; box-shadow: 0 0 0 3px #2f9e55, 0 0 0 9px rgba(47, 158, 85, 0.22) !important; animation: approve-pop 0.5s ease; border-radius: 20px; }
.approving .badge, .approving .pill { color: #14683a; }
.approving button.primary, .approving button.primary:disabled { background: #2f9e55; color: #fff; opacity: 1; }
.rq-card.leaving { opacity: 0; overflow: hidden; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
@keyframes approve-pop { 0% { transform: scale(1); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 900px), (pointer: coarse) {
  .rq-who a, .rowlist a, .panel-body a:not(.btn) { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* ---- Client pages: upload and status ---- */
.wrap { max-width: 640px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-left)) calc(90px + env(safe-area-inset-bottom)); }
.firm { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 22px; font-size: 15px; }
.firm .fb { display: flex; align-items: center; gap: 9px; min-width: 0; }
.firm .fb b { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--ink) inset; display: inline-block; flex: none; }
.firm .lockico { color: var(--ink-3); }
.hello { font-size: 40px; letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; }
.card { background: #fff; border-radius: 26px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.soft { background: rgba(255, 255, 255, 0.55); box-shadow: none; }
.card .in { padding: 20px; }
.it-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.it-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.drop { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; font-size: 16px; margin-top: 14px; border-radius: 999px; padding: 15px 18px; text-align: center; cursor: pointer; color: var(--ink); font-weight: 560; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(15, 15, 17, 0.2); border: 0; position: relative; }
.drop:hover, .drop.over { background: var(--fill); box-shadow: inset 0 0 0 1.5px var(--ink); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop.busy { opacity: 0.55; pointer-events: none; }
.file { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; padding: 12px 14px; background: var(--fill); border-radius: 16px; }
.file .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.done { text-align: center; padding: 26px 16px; }
.done h2 { font-size: 20px; margin-bottom: 6px; }
.reject { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: #fff2e2; color: var(--ink); }
.warn { flex: 1 1 100%; margin-top: 4px; font-size: 13px; padding: 10px 14px; border-radius: 14px; background: #fff2e2; }
.warn.w-ok { background: #f6f9dc; }
.warn.w-wrong { background: #fdeceb; }
.warn.w-check { background: #fff2e2; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card textarea:disabled { opacity: 0.75; }
.hero-tile { margin: 18px 0 16px; min-height: 210px; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.st-list li:first-child { border-top: 0; padding-top: 4px; }
.st-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.6px #b5b5bb; color: #fff; }
.st-dot.got { background: var(--ink); box-shadow: none; }
.st-dot.na { background: var(--fill-2); box-shadow: none; color: var(--ink-3); }
.fields .field { margin-bottom: 10px; }
.cbico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill-call-bg); color: var(--pill-call-fg); flex: none; }
.bigbtn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 14px 18px; font-size: 16px; }

.flash-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; max-width: 616px; margin: 0 auto; padding: 14px 18px; border-radius: 22px; background: var(--ink); color: #fff; font-weight: 500; font-size: 16px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
.na-box { margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--fill); }
.na-box textarea { margin-top: 8px; }
@media (max-width: 700px) {
  .hero-tile { min-height: 190px !important; padding: 18px 20px; }
  .hello { font-size: 34px; }
  .wrap .card .in { padding: 18px; }
  .it-head { flex-wrap: wrap; }
}
.drop .dtxt { pointer-events: none; display: inline-flex; align-items: center; gap: 9px; }
.drop.drop-main { background: var(--ink); color: #fff; box-shadow: 0 10px 20px -12px rgba(15, 15, 17, 0.6); }
.drop.drop-main:hover, .drop.drop-main.over { background: #26262b; box-shadow: 0 10px 20px -12px rgba(15, 15, 17, 0.6); }
.drop.drop-main:focus-within { outline-offset: 3px; }

/* Pop-ups taller than the screen: the buttons stay in view while the form scrolls */
.modal > .row.end { position: sticky; bottom: -26px; margin: 16px -26px -26px; padding: 14px 26px 26px; background: linear-gradient(rgba(246, 246, 247, 0), #f6f6f7 14px); z-index: 1; }
.modal textarea { max-height: 40vh; max-height: 40dvh; }
.sheet > .row.end { position: static; }
@media (max-width: 700px) { .modal > .row.end { bottom: -20px; margin: 16px -20px -20px; padding: 14px 20px 20px; } }
@media (max-width: 900px), (pointer: coarse) {
  .pillbtn, a.small { display: inline-flex; align-items: center; min-height: 44px; }
  .pillbtn { padding: 7px 18px; }
}

/* Phone held sideways: very little height, so the bars get slimmer and the top bar scrolls away */
@media (max-width: 900px) and (max-height: 480px) {
  .side { position: static; padding-top: 8px; padding-bottom: 8px; }
  .tabbar { padding: 4px; bottom: calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { height: 44px; min-height: 44px; }
  .main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .modal { max-height: calc(100dvh - 16px); }
  .toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .hero-tile { min-height: 150px !important; }
}
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.doc-actions:empty { display: none; }
@media (max-width: 700px) {
  .doc-actions { flex: 1 1 100%; }
  .doc-actions > * { flex: 1 1 0; min-width: 0; }
}

/* Safari on iPhone and iPad: date and search boxes keep the same shape and height as the other fields */
input[type=date] { -webkit-appearance: none; appearance: none; min-height: 44px; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
input[type=search] { -webkit-appearance: none; appearance: none; }
input[type=search]::-webkit-search-decoration { display: none; }
@media (max-width: 900px), (pointer: coarse) { .auth p a { display: inline-block; padding: 14px 6px; margin: -14px -6px; } }

/* Two step sign in: recovery codes, one or two columns depending on width */
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.codes span { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill-2); text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0.02em; overflow-wrap: anywhere; user-select: all; }
.callout .meter i { background: var(--ink); }

/* ---- Who's working: profile picker, PIN, device code (a calm full-page gate in the app's look) ---- */
.gatepage { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.gorb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.gorb.ga { width: 640px; height: 640px; right: -180px; top: -220px; background: radial-gradient(circle at 40% 40%, #d9d9dc, #e9e9eb 60%, #f6f6f7 85%); opacity: 0.7; }
.gorb.gb { width: 720px; height: 720px; left: -240px; bottom: -340px; background: radial-gradient(circle at 40% 40%, #c9d0e0, #e3e6ee 60%, #f1f2f6 85%); }
.gate-hd { display: flex; align-items: center; justify-content: space-between; padding: 24px 36px; }
.glass-tag { padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 540; color: var(--ink-2); box-shadow: 0 1px 2px rgba(15, 15, 17, 0.06); }
.gate-st { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 24px 40px; }
.gate-foot { text-align: center; color: var(--ink-3); font-size: 12.5px; margin: 0; padding: 0 24px 28px; }
.gate-card { width: 100%; max-width: 440px; padding: 34px 34px 28px; border-radius: 36px; text-align: left; }
.gate-card h1 { font-size: 30px; }
.gate-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 24px; font-weight: 500; background: radial-gradient(circle at 30% 25%, #fff, #d9dde8); border: 3px solid #fff; box-shadow: 0 14px 26px -14px rgba(15, 15, 17, 0.45); margin-bottom: 16px; color: var(--ink); }
.gate-h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.035em; font-weight: 600; margin: 0 0 8px; text-align: center; }
.gate-sub { color: var(--ink-3); font-size: 17px; margin: 0 0 44px; text-align: center; }
.gate-note { margin: 28px 0 0; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.ptiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 1100px; }
.pt { position: relative; overflow: hidden; isolation: isolate; width: 214px; height: 280px; border-radius: 32px; padding: 20px; background: linear-gradient(160deg, #fff, #f2f2f5); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: stretch; text-align: left; white-space: normal; border: 0; color: var(--ink); cursor: pointer; font: inherit; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.pt .orb { position: absolute; z-index: auto; right: -70px; bottom: -90px; width: 210px; height: 210px; border-radius: 50%; filter: blur(30px); opacity: 0.85; background: radial-gradient(circle at 40% 40%, #c9d0e0, #e3e6ee 60%, #f1f2f6 85%); }
.pt-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pt .ph { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 30px; font-weight: 500; border: 4px solid #fff; background: radial-gradient(circle at 30% 25%, #fff, #d9dde8); box-shadow: 0 14px 26px -14px rgba(15, 15, 17, 0.45); color: var(--ink); }
.pt .go { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); display: grid; place-items: center; }
.pt .nm { margin-top: auto; font-family: var(--num); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.pt .tg { margin-top: 8px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.pt:hover, .pt:focus-visible { background: var(--ink); transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(15, 15, 17, 0.6); }
.pt:hover .orb, .pt:focus-visible .orb { background: radial-gradient(circle at 40% 40%, #3a3d46, #1c1d22 70%); opacity: 1; }
.pt:hover .nm, .pt:focus-visible .nm { color: #fff; }
.pt:hover .tg, .pt:focus-visible .tg { background: rgba(255, 255, 255, 0.14); color: #e8e8ec; }
.pt:hover .go, .pt:focus-visible .go { background: var(--lime); color: var(--ink); }
.pt:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pt.is-locked { opacity: 0.7; }
.pt.is-locked .ph { color: var(--ink-3); background: #ececef; }
.psearch-wrap { position: relative; width: 100%; max-width: 420px; margin: 0 auto 26px; color: var(--ink-3); }
.psearch-wrap svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.psearch-wrap input { width: 100%; height: 50px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow); padding: 0 20px 0 50px; font-size: 16px; }
.psearch-wrap input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ptiles [hidden] { display: none; }
.ptiles.many { max-width: 1320px; gap: 14px; }
.many .pt { width: 176px; height: 132px; padding: 14px 16px; border-radius: 26px; }
.many .pt .ph { width: 52px; height: 52px; font-size: 17px; border-width: 3px; }
.many .pt .go { width: 28px; height: 28px; }
.many .pt .go svg { width: 13px; height: 13px; }
.many .pt .nm { font-size: 19px; line-height: 1.1; }
.many .pt .tg { margin-top: 6px; padding: 3px 10px; font-size: 11.5px; }
.many .pt .orb { width: 140px; height: 140px; right: -50px; bottom: -60px; }
.many .pt:hover, .many .pt:focus-visible { transform: translateY(-4px); }
@media (max-width: 640px) {
  .gate-hd { padding: 18px 20px; }
  .ptiles { gap: 12px; }
  .pt { width: calc(50% - 6px); height: 220px; padding: 16px; border-radius: 26px; }
  .many .pt { width: calc(50% - 6px); height: 128px; border-radius: 24px; }
  .ptiles.many { gap: 10px; }
  .pt .ph { width: 72px; height: 72px; font-size: 24px; }
  .pt .go { width: 30px; height: 30px; }
  .pt .nm { font-size: 20px; }
  .gate-sub { margin-bottom: 28px; }
  .gate-card { padding: 28px 22px 22px; border-radius: 30px; }
}
input.pin { font-family: var(--num); font-size: 22px; letter-spacing: 0.5em; text-align: center; }
.who .lastact, .lastact { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.acct .who b { font-size: 14px; }

/* ---- Assignment ---- */
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.assigned { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.chipx { gap: 6px; padding-right: 6px; }
.chipx .x { min-height: 0; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: rgba(15, 15, 17, 0.1); box-shadow: none; font-size: 14px; line-height: 1; color: var(--ink-2); }
.chipx .x:hover { background: var(--ink); color: #fff; }
select.addsel { width: auto; min-height: 0; padding: 4px 28px 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 560; }
@media (max-width: 900px), (pointer: coarse) { select.addsel { font-size: 16px; min-height: 44px; } } /* 16px or iPhones zoom in when "+ Add" is tapped */
.pick { max-height: none; }
.pickrow { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); margin: 0; font-weight: 450; cursor: pointer; }
.pickrow:first-child { border-top: 0; }
.pickrow:hover { background: rgba(255, 255, 255, 0.7); }
.pickrow input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.pickrow b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pickrow .also { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -12px rgba(15, 15, 17, 0.35); font-weight: 560; }
@media (max-width: 900px) { .savebar { bottom: 96px; border-radius: 24px; } }

/* ---- photos: the circle shows a picture when there is one, initials when not ---- */
.av.has-photo, .pt .ph.has-photo { overflow: hidden; padding: 0; }
.av img, .pt .ph img, .pf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.pf { display: flex; align-items: center; gap: 28px; padding: 26px; flex-wrap: wrap; }
.pf-av { position: relative; flex: none; }
.pf-photo { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 40px; font-weight: 500; background: radial-gradient(circle at 30% 25%, #fff, #d9dde8); border: 4px solid #fff; box-shadow: 0 14px 26px -14px rgba(15, 15, 17, 0.45); overflow: hidden; color: var(--ink); }
.pf-cam { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 3px solid #fff; cursor: pointer; }
.pf-txt h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.pf-txt .btn { cursor: pointer; }

/* ---- Client upload page: filling bar, "Next" pointer, item states, info button, ways to send pills ---- */
.prog-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.prog-line b { color: var(--ink); font-size: 15px; }
.tile .seg.fillbar { margin-top: 8px; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(15, 15, 17, 0.1); }
.seg.fillbar i { height: 100%; border-radius: 0; background: rgba(15, 15, 17, 0.1); transition: background 0.4s ease; }
.seg.fillbar i.on { background: var(--ink); }
.nextbtn { margin-top: 14px; align-self: stretch; justify-content: flex-start; gap: 8px; min-height: 48px; padding: 10px 18px; font-size: 16px; text-align: left; background: #fff; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.08); }
.nextbtn .nb-l { color: var(--ink-3); font-weight: 500; flex: none; }
.nextbtn .nb-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ways { margin: 0 0 16px; }
.ways-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 0 4px 8px; }
.ways-row { display: flex; flex-wrap: wrap; gap: 8px; }
button.way { background: #fff; border-radius: 999px; padding: 9px 16px; min-height: 44px; font-size: 14.5px; font-weight: 560; box-shadow: 0 1px 2px rgba(15, 15, 17, 0.08); color: var(--ink); max-width: 100%; }
button.way:hover { background: #f7f7f8; }
button.way.on { background: var(--ink); color: #fff; }
.panel button.way { background: var(--fill); box-shadow: none; }
.panel button.way:hover { background: var(--fill-2); }
.way-panel { margin-top: 10px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.7); }
.way-panel.qr-card .qr { margin: 12px auto 0; width: 132px; height: 132px; }
.card.it { scroll-margin: 16px; }
.card.it:focus { outline: none; }
.card.it:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.it-title { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 200px; min-width: 0; }
.it-title .st-dot { margin-top: -1px; }
.it-tools { display: flex; gap: 8px; align-items: center; flex: none; max-width: 100%; }
.st-dot.redo { background: var(--pill-late-bg); color: var(--pill-late-fg); box-shadow: none; }
.it-nexttag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 1px 9px; margin-bottom: 4px; }
.card.it-next { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow); }
.card.it-redo { box-shadow: inset 0 0 0 2px var(--s-orange), var(--shadow); }
.card.it-na { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1.5px rgba(15, 15, 17, 0.14); }
.card.it-na .it-name { color: var(--ink-2); }
.card.it-done .it-name { color: var(--ink-2); }
button.infobtn { width: 32px; height: 32px; min-height: 32px; padding: 0; flex: none; border-radius: 50%; background: var(--fill); box-shadow: inset 0 0 0 1.5px rgba(15, 15, 17, 0.2); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 16px; line-height: 1; }
button.infobtn:hover { background: var(--fill-2); }
button.infobtn[aria-expanded=true] { background: var(--ink); color: #fff; box-shadow: none; }
.info-box { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--fill); }
.info-box p { margin: 2px 0 10px; font-size: 14.5px; }
.info-box p:last-child { margin-bottom: 0; font-size: 13.5px; }
@media (max-width: 900px), (pointer: coarse) { button.infobtn { width: 44px; height: 44px; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .seg.fillbar i { transition: none; } }
button.way.only-wide { display: inline-flex; }
@media (max-width: 900px), (pointer: coarse) { button.way.only-wide { display: none; } }

/* ---- First-time walkthrough (staff side) ---- */
.tour-back { position: fixed; inset: 0; z-index: 60; }
.tour-spot { position: fixed; border-radius: 999px; background: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(20, 20, 24, 0.55), 0 0 26px 6px rgba(214, 235, 80, 0.45); pointer-events: none; transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 18px 20px 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.tour-card.mid { left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5), 0 0 0 9999px rgba(20, 20, 24, 0.5); }
.tour-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tour-count { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.tour-card h2 { font-size: 19px; margin: 6px 0 6px; letter-spacing: -0.01em; }
.tour-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.tour-btns { margin-top: 16px; }
.tour-btns button { min-width: 88px; min-height: 44px; background: var(--fill); }
.tour-btns button.primary { background: var(--primary); }
button.tour-skip { min-height: 44px; font-size: 13.5px; }
@media (max-width: 700px) { .tour-btns button { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }

/* ---- Plan and price (Settings), and the public pricing page ---- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .bignum { font-size: 44px; }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; font-size: 13.5px; }
.plan-use .meter { height: 8px; }
.plan-lines, .price-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.plan-lines li, .price-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.plan-lines li > span:first-child, .price-lines li > span:first-child { min-width: 0; }
.plan-lines li.total { border-top: 2px solid var(--ink); font-size: 16px; }
.archive-box { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.pricepage { overflow: visible; overflow-x: clip; }
.price-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 24px 40px; }
.price-main .gate-sub { margin-bottom: 32px; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { padding: 24px 22px 22px; border-radius: 30px; overflow: visible; transition: box-shadow 0.15s; }
.price-card.on { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.price-card h2 { font-size: 18px; }
.price-amt { margin: 14px 0 16px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amt .bignum { font-size: 48px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.price-list li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.price-list li .ico { flex: none; margin-top: 2px; }
.price-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.price-note { text-align: center; color: var(--ink-3); font-size: 13.5px; margin: 18px 0 28px; }
.price-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.price-two > *, .price-grid > * { min-width: 0; }
.price-inc { margin-top: 16px; }
.price-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.price-total .bignum { font-size: 44px; }
.price-out { min-height: 150px; }
.price-cta { justify-content: center; margin-top: 28px; }
.price-cta .btn { min-height: 48px; padding: 12px 26px; font-size: 15.5px; }
a.glass-tag { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .price-grid, .price-two, .price-list.cols { grid-template-columns: minmax(0, 1fr); }
  .price-main { padding: 8px 16px 32px; }
  .price-cta .btn { flex: 1 1 100%; }
  .pricepage .gate-hd { padding: 18px 16px; }
  .plan-uses { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Terms, data processing agreement and privacy notice ---- */
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; }
.agree input { width: 22px; height: 22px; flex: none; margin: 11px 0 0; accent-color: var(--ink); }
.agree label { margin: 0; padding: 11px 0; font-weight: 450; font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 44px; }
.legal-links { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: inherit; margin: 0; font-size: 12.5px; }
.gate-foot .legal-links { justify-content: center; }
.legal-links a { color: var(--ink-3); }
.terms-docs { list-style: none; margin: 0 0 16px; padding: 0; }
.terms-docs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid var(--line); min-height: 44px; }
.terms-docs li:first-child { border-top: 0; }
.terms-docs a { font-weight: 560; padding: 10px 0; }
a.privacy-link { display: inline-block; padding: 12px 10px; color: var(--ink-3); }
.legal { max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; }
.legal-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.legal-hd .brand { padding: 0; color: inherit; text-decoration: none; }
.legal-nav, .legal-foot { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 13.5px; }
.legal-nav a, .legal-foot a { color: var(--ink-2); padding: 12px 0; }
.legal-foot { justify-content: center; margin: 22px 0 0; }
.legal-doc { padding: 34px 40px 40px; overflow: visible; font-size: 15.5px; line-height: 1.6; }
.legal-doc h1 { font-size: 36px; margin: 22px 0 6px; }
.legal-doc h2 { font-size: 19px; margin: 30px 0 8px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal-doc li { margin-bottom: 7px; }
.legal-meta { color: var(--ink-3); font-size: 13.5px; }
.legal-draft { font-size: 14px; line-height: 1.5; }
.legal-table { overflow-x: auto; margin: 0 0 14px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); }
.legal-table th { border-top: 0; color: var(--ink-3); font-weight: 560; }
@media (max-width: 700px) {
  .legal-doc { padding: 22px 18px 26px; border-radius: 26px; }
  .legal-doc h1 { font-size: 28px; }
  .legal-table { overflow-x: visible; }
  .legal-table thead { display: none; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .legal-table td { border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  .legal-table td::before { content: attr(data-label) ': '; color: var(--ink-3); }
  .legal-table td:first-child { font-weight: 600; }
  .legal-table td:first-child::before { content: none; }
}
@media print { .legal-hd, .legal-foot { display: none; } .legal-doc { box-shadow: none; padding: 0; } }
@media (max-width: 900px), (pointer: coarse) { .legal-links a { display: inline-block; padding: 12px 4px; } }
.terms-docs.accepted li { padding: 10px 0; }
.terms-docs li > span { min-width: 0; }
.terms-docs .tagx { white-space: normal; }
/* ---- file links (the eye) and the in-app file viewer ---- */
.eye { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 2px 0; border: 0; background: none; box-shadow: none; color: var(--ink); font-weight: 560; text-align: left; border-radius: 8px; cursor: pointer; }
.eye svg { flex: none; color: var(--ink-3); }
.eye .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(15, 15, 17, 0.25); text-underline-offset: 3px; }
.eye:hover, .eye:focus-visible { background: none; transform: none; }
.eye:hover svg, .eye:focus-visible svg { color: var(--ink); }
.eye:hover .name, .eye:focus-visible .name { text-decoration-color: var(--ink); }
.eye:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vb { position: fixed; inset: 0; z-index: 90; background: rgba(15, 15, 17, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.vw { position: relative; width: min(1120px, 100%); height: min(780px, 100%); background: #fff; border-radius: 34px; box-shadow: 0 40px 90px -30px rgba(15, 15, 17, 0.55); display: flex; flex-direction: column; overflow: hidden; }
.vh { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.vh .t { flex: 1; min-width: 0; }
.vh b { display: block; font-size: 17px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh span { color: var(--ink-3); font-size: 13px; }
.vx { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: var(--fill); box-shadow: none; display: grid; place-items: center; }
.vbody { flex: 1; min-height: 0; background: #ececef; display: flex; align-items: center; justify-content: center; position: relative; overflow: auto; }
.vimg { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vpdf { width: 100%; height: 100%; border: 0; background: #fff; }
.vopen { position: absolute; right: 16px; bottom: 14px; }
.vtext { margin: 0; padding: 24px; width: 100%; height: 100%; overflow: auto; background: #fff; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.vnone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px; color: var(--ink-3); max-width: 420px; }
.vnone b { color: var(--ink); font-size: 17px; }
.varrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; min-height: 46px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-up); display: grid; place-items: center; transform: translateY(-50%); }
.varrow.l { left: 18px; } .varrow.r { right: 18px; }
.vf { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vf .sp { flex: 1; } .vf small { color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) {
  .vb { padding: 0; }
  .vw { height: 100%; border-radius: 0; }
  .vh { padding: 14px 16px; } .vf { padding: 12px 16px; }
  .varrow.l { left: 8px; } .varrow.r { right: 8px; }
}

/* Team page: the action buttons stay on one line, and only the primary one is a raised pill (design pass, October) */
.ptable td .row.end { gap: 6px; flex-wrap: nowrap; }
.ptable td .row.end button, .ptable td .row.end .btn { white-space: nowrap; min-width: 0; padding: 7px 15px; }
.ptable td .row.end .btn.primary { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 16px -8px rgba(15, 15, 17, 0.35); }
.ptable td .row.end button:not(.danger) { background: transparent; box-shadow: none; border: 0; color: var(--ink-2); }
.ptable td .row.end button:not(.danger):hover { background: rgba(15, 15, 17, 0.06); }
.ptable td .row.end button.danger { background: transparent; border: 0; box-shadow: none; color: #a4211c; }
.ptable td:nth-child(4) { white-space: nowrap; }

/* Terms, Data Processing Agreement and Privacy notice: the same soft glows and frosted card as the pricing page */
.legal { position: relative; isolation: isolate; }
.legal::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 95% 0%, rgba(211, 229, 90, 0.6), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(190, 200, 228, 0.8), transparent 70%); }
.legal-doc.panel { background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-radius: 32px; box-shadow: 0 30px 60px -36px rgba(15, 15, 17, 0.35); }
.legal-doc h1 { font-size: 44px; letter-spacing: -0.02em; }
.legal-doc .legal-draft.callout { background: rgba(15, 15, 17, 0.05); color: var(--ink-2); border-radius: 20px; }
.legal-nav a, .legal-foot a { background: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.legal-nav { gap: 8px; }
.legal-foot { gap: 8px; }

/* ---- Request page: call back strip, chasing line, customer portal card, conversation, activity ---- */
.cb-strip { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 22px; margin-bottom: 12px; background: var(--pill-call-bg); color: var(--pill-call-fg); }
.cb-strip .cb-ico { width: 34px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); display: grid; place-items: center; flex: none; }
.cb-strip .cb-txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.cb-strip .cb-txt b { color: #7d1511; }
.cb-strip .cb-txt a { color: inherit; }
.cb-strip .cb-txt span { display: block; opacity: 0.85; font-size: 12.5px; }
.cb-strip button { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 560; flex: none; }
.cs-card { padding: 16px 20px 14px; margin-bottom: 16px; }
.cs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-top h2 { margin: 0; font-size: 15px; }
.cs-top .muted { max-width: 640px; text-align: right; }
.cs-track { display: flex; align-items: flex-start; overflow-x: auto; padding-bottom: 4px; }
.cs-step { flex: 1 0 92px; text-align: center; position: relative; font-size: 12.5px; color: var(--ink-3); padding: 0 4px; }
.cs-step::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--ink); }
.cs-step:first-child::before { display: none; }
.cs-step.todo::before { background: repeating-linear-gradient(90deg, rgba(15, 15, 17, 0.3) 0 4px, transparent 4px 8px); }
.cs-step i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); margin: 0 auto 8px; position: relative; z-index: 1; box-shadow: 0 0 0 4px #f4f4f6; }
.cs-step.todo i { background: #fff; border: 2px solid rgba(15, 15, 17, 0.3); }
.cs-step.call i { background: var(--s-red); box-shadow: 0 0 0 4px #f4f4f6, 0 0 14px 2px rgba(214, 69, 69, 0.45); }
.cs-step b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.cs-card .sched-edit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.cp-card { padding-bottom: 6px; }
.cp-main { padding: 4px 20px 16px; }
.cp-main p { margin: 0 0 12px; color: var(--ink-3); font-size: 13.5px; }
.cp-send { width: 100%; padding: 12px; border-radius: 999px; font-weight: 600; justify-content: center; margin-bottom: 8px; }
.cp-two { display: flex; gap: 8px; }
.cp-two .sm { flex: 1; justify-content: center; border-radius: 999px; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); }
.cp-tile { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, #d9d9de, #b9b9c0); color: #2a2a2f; }
.cp-t { flex: 1; min-width: 0; }
.cp-t b { display: block; font-size: 14px; }
.cp-t span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-acts { display: flex; gap: 6px; flex: none; }
.cp-acts .sm { padding: 7px 13px; font-size: 12.5px; border-radius: 999px; min-height: 0; }
/* Phones (Jack, 21 Oct 2026): every button is at least 44px to tap. Print, Copy and Test grow; the round arrows
   and the small × keep their look and get an invisible 44px tap area. */
@media (max-width: 900px), (pointer: coarse) {
  .cp-acts .sm { min-height: 44px; padding: 10px 16px; }
  .rb, .chipx .x { position: relative; }
  .rb::after, .chipx .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}
.cv-list { padding: 4px 22px 6px; display: flex; flex-direction: column; gap: 14px; }
.cv-msg { display: flex; gap: 12px; align-items: flex-start; }
.cv-av { width: 32px; height: 32px; border-radius: 50%; background: #e1e1e5; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex: none; }
.cv-msg.me .cv-av { background: var(--ink); color: #fff; }
.cv-mh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cv-mh em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.cv-mb { font-size: 14px; margin-top: 2px; max-width: 560px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cv-msg:not(.me) .cv-mb { background: var(--fill); padding: 10px 14px; border-radius: 6px 18px 18px 18px; display: inline-block; }
.cv-comp { padding: 16px 22px 22px; }
.cv-comp textarea { width: 100%; min-height: 76px; }
.cv-cb { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cv-cb .primary { display: inline-flex; gap: 8px; align-items: center; border-radius: 999px; padding: 10px 18px; }
.cv-feed { list-style: none; margin: 0; padding: 4px 0 6px; }
.cv-ev { display: flex; gap: 12px; padding: 10px 20px; align-items: flex-start; }
.cv-ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-grey); margin-top: 6px; flex: none; }
.cv-ev i.r { background: var(--s-red); }
.cv-et { flex: 1; min-width: 0; font-size: 13px; }
.cv-et b { font-weight: 560; display: block; }
.cv-et span { display: block; color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.cv-ev em { font-style: normal; color: var(--ink-3); font-size: 12px; flex: none; }
.cv-more { padding: 0 20px 14px; }
.cv-more summary { cursor: pointer; font-size: 13px; font-weight: 560; color: var(--ink-2); padding: 6px 0; }
.cv-more .cv-feed { margin: 0 -20px; }
@media (max-width: 700px) { .cs-top .muted { text-align: left; } .cb-strip { flex-wrap: wrap; } }

/* Email preview in Settings (Jack, 21 Oct 2026) */
.mp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.mp-tab { border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 560; background: var(--fill); box-shadow: none; }
.mp-tab.on { background: var(--ink); color: #fff; }
.mp-mail { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mp-subj { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.mp-body { padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
@media (min-width: 701px) { .mp-body { max-height: 46vh; overflow-y: auto; } }
.modal:has(.mp-mail) { max-width: 640px; }

/* Client upload page: the product's small "Powered by" line (text from config/brand.js) */
.powered { text-align: center; margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.01em; }

/* ---- Saving to the practice's own records (chaser-not-holder). Pale purple means "awaiting save" and nothing else. ---- */
.dt.d-purple { background: var(--s-purple); }
.p-save { background: var(--pill-save-bg); color: var(--pill-save-fg); }
.gt-purple .orb { background: radial-gradient(circle at 40% 40%, #b3a6dc, #d3cbee 55%, #ece8f8 85%); }
.gts.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gts.five .gt .gt-num { font-size: 50px; }
@media (max-width: 1280px) { .gts.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .gts.five { grid-template-columns: 1fr 1fr; } .gts.five > :last-child { grid-column: 1 / -1; min-height: 0; } }
.cdown { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 540; color: var(--pill-save-fg); white-space: nowrap; }
.cdown.soon { color: var(--pill-call-fg); }
.notstored { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 14px; border-radius: 18px; background: var(--pill-save-bg); color: var(--pill-save-fg); font-size: 13.5px; }
.notstored .ico { flex: none; margin-top: 2px; }
.callout.save { background: var(--pill-save-bg); color: var(--pill-save-fg); box-shadow: none; margin-bottom: 14px; }
.callout.save b { color: var(--ink); }
.save-panel .panel-head .pill { margin-left: auto; }
.sv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 10px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.7); }
.sv-bar .sp { flex: 1; }
.sv-all { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 540; font-size: 13.5px; }
.sv-group { margin-bottom: 16px; }
.sv-group .panel-head { gap: 10px; flex-wrap: wrap; }
.sv-group .panel-head h2 a { color: inherit; text-decoration: none; }
.svlist, .rclist { list-style: none; margin: 0; padding: 0 26px 12px; }
.rclist { padding: 0; }
.sv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sv-row:first-child { border-top: 0; }
.sv-row input[type=checkbox] { width: 20px; height: 20px; flex: none; }
.sv-main { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sv-main .eye { align-self: flex-start; max-width: 100%; }
.sv-main .name { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-main .sub, .rc-main .sub { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.sv-act { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-row { display: flex; align-items: flex-start; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rc-row:first-child { border-top: 0; }
.rc-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.receipts .panel-head .btn { margin-left: auto; }
@media (max-width: 700px) {
  .svlist { padding: 0 16px 10px; }
  .sv-act { flex-basis: 100%; }
  .sv-act button { flex: 1; }
}

/* "Skip to content": hidden until a keyboard user tabs to it (audit R85). */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 14px; background: #000; color: #fff; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* ---- Request screen rejig: one call card, vertical schedule, dropdown notes, menu ---- */
.btn.round, summary.btn.round { width: 38px; height: 38px; padding: 0; list-style: none; }
.menu { position: relative; }
.menu summary { cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 210px; background: #fff; border-radius: 22px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 50px -20px rgba(15, 15, 17, 0.4), 0 0 0 1px var(--line); }
.menu-pop button { justify-content: flex-start; background: transparent; box-shadow: none; border-radius: 14px; padding: 10px 14px; }
.menu-pop button:hover { background: var(--fill); }
.menu-pop .danger { color: #9b2c2c; }

.summary { position: relative; }
.summary::before { content: ''; position: absolute; right: -50px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(220, 245, 0, 0.4), rgba(255, 196, 150, 0.22) 60%, transparent); filter: blur(22px); pointer-events: none; }
.summary > * { position: relative; }

.panel.rq-call { display: flex; gap: 22px; align-items: center; padding: 22px 26px; margin-bottom: 16px; background: linear-gradient(135deg, #fbe4e4, #f6d0d9); position: relative; }
.rq-call .ring { position: relative; flex: none; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; }
.rq-call .ring::before, .rq-call .ring::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid rgba(155, 44, 44, 0.2); inset: 0; }
.rq-call .ring::after { inset: 10px; border-color: rgba(155, 44, 44, 0.3); }
.rq-call .ic { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #9b2c2c; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px rgba(155, 44, 44, 0.5); }
.rq-call .txt { flex: 1; min-width: 0; }
.rq-call h2 { margin: 0; }
.rq-call p { margin: 6px 0 0; color: #6b2b2b; }
.rq-call p a { color: inherit; font-weight: 600; white-space: nowrap; }
.rq-call .q { margin-top: 10px; font-style: italic; color: #3f2020; background: rgba(255, 255, 255, 0.7); padding: 10px 14px; border-radius: 16px 16px 16px 5px; }
@media (max-width: 700px) { .panel.rq-call { flex-wrap: wrap; } }

/* the chasing schedule becomes a vertical timeline in the right column */
.cs-card.v { padding: 22px 24px; }
.cs-card.v .cs-top { display: block; margin-bottom: 16px; }
.cs-card.v .cs-top .muted { display: block; max-width: none; text-align: left; margin-top: 6px; }
.cs-card.v .cs-track { display: block; position: relative; padding: 0 0 0 34px; overflow: visible; }
.cs-card.v .cs-track::before { content: ''; position: absolute; left: 10px; top: 10px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--fill-2); }
.cs-card.v .cs-step { text-align: left; flex: none; padding: 0 0 18px; }
.cs-card.v .cs-step:last-child { padding-bottom: 0; }
.cs-card.v .cs-step::before { display: none; }
.cs-card.v .cs-step i { position: absolute; left: -34px; top: 1px; width: 22px; height: 22px; margin: 0; background: var(--lime); box-shadow: none; }
.cs-card.v .cs-step.todo i { background: #fff; border: 3px solid rgba(15, 15, 17, 0.25); box-sizing: border-box; }
.cs-card.v .cs-step.call i { background: var(--s-red); box-shadow: 0 0 0 6px rgba(201, 82, 74, 0.18); }
.cs-card.v .cs-step b { font-size: 14px; }

.panel.good { padding: 0; margin-bottom: 16px; }
.panel.good > summary { display: flex; align-items: center; gap: 12px; padding: 16px 22px; cursor: pointer; list-style: none; }
.panel.good > summary::-webkit-details-marker { display: none; }
.panel.good > summary h2 { margin: 0; }
.panel.good .bulb { width: 38px; height: 38px; border-radius: 13px; background: var(--lime); display: flex; align-items: center; justify-content: center; flex: none; }
.panel.good .cnt { margin-left: auto; background: var(--lime); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.panel.good .chev { width: 30px; height: 30px; border-radius: 50%; background: var(--fill); display: flex; align-items: center; justify-content: center; flex: none; }
.panel.good[open] .chev svg { transform: rotate(180deg); }
.panel.good .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 18px; }
.panel.good .gchip { background: var(--fill); color: var(--ink-2); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 520; }
.panel.good[open] .chips { display: none; }
.panel.good .gi-wrap { padding: 0 22px 8px; }
.panel.good .gi { padding: 13px 0; border-top: 1px solid var(--line); }
.panel.good .gi .k { display: block; color: var(--ink-3); font-size: 12.5px; }
.panel.good .gi div { font-weight: 560; margin-top: 3px; }

/* ---- Sign-up steps: plan, payment, welcome ---- */
.su-prog { list-style: none; margin: 0 auto 26px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.su-prog li { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.su-prog li + li::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--line-2); margin-right: 2px; }
.su-prog li.done + li::before, .su-prog li.on::before { background: var(--lime); }
.su-prog i { width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 650; color: var(--ink-2, #4d4d52); }
.su-prog li.on { color: var(--ink); }
.su-prog li.on i { background: var(--ink); color: #fff; }
.su-prog li.done i { background: var(--lime); color: var(--ink); }
.su-tier { text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px; min-height: 190px; }
.su-tier .price-amt { margin-top: auto; }
.su-tier.on { background: var(--ink); color: #fff; box-shadow: var(--shadow-up); }
.su-tier.on .muted { color: #c8c8cf; }
.su-tier:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.su-incl { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; }
.su-incl li { display: flex; gap: 10px; align-items: flex-start; }
.su-pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; text-align: left; }
.su-pay, .su-sum { padding: 28px 30px; border-radius: 30px; }
.su-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.su-lock { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; }
.su-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.su-tot .bignum { font-size: 40px; }
.su-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; }
.su-step { padding: 24px; border-radius: 28px; display: flex; flex-direction: column; gap: 6px; min-height: 230px; }
.su-step p { margin: 0 0 14px; }
.su-step button { margin-top: auto; align-self: flex-start; }
.su-n { width: 36px; height: 36px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; font-weight: 650; margin-bottom: 8px; }
.su-step.d .su-n { background: var(--ink); color: var(--lime); }
@media (max-width: 900px) { .su-pay-grid, .su-steps, .su-incl { grid-template-columns: 1fr; } .su-tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .su-tiers { grid-template-columns: 1fr; } .su-pay, .su-sum { padding: 22px 20px; } }
.su-pay .callout { margin: 0 0 16px; }

/* ---- Sign in / create account: one calm card on the left ---- */
.af-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--fill-2); border-radius: 999px; padding: 4px; margin-bottom: 30px; }
.af-seg a { height: 42px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.af-seg a.on { background: var(--ink); color: #fff; box-shadow: 0 8px 16px -8px rgba(15, 15, 17, 0.6); }
.af-seg a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.auth-form h1 { font-size: 36px; }
.auth-form .af-sub { font-size: 15.5px; margin-bottom: 22px; }
.af-demo { margin-top: 16px; border-radius: 16px; background: color-mix(in srgb, var(--lime) 35%, transparent); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.af-demo button { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; box-shadow: none; white-space: nowrap; }
.auth-form .af-foot .legal-links { gap: 4px 18px; }
.auth-form .af-body { margin: 0 0 auto; padding: 56px 0 24px; } /* the switch stays in the same place on both screens */
.auth-form .pilot-draft { font-size: 12.5px; padding: 10px 12px; line-height: 1.4; }
@media (max-width: 900px) { .auth-form .af-body { padding: 28px 0 12px; } }
.su-custom { cursor: default; background: var(--fill); box-shadow: none; }
.su-custom .btn { align-self: flex-start; margin-top: 8px; }

/* ---- Price calculator: a slider and a gradient answer box, like the dashboard tiles ---- */
.calc { margin-top: 16px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding: 8px 6px 6px; align-items: stretch; }
.calc-lab { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.calc-n { font-size: 40px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; margin: 22px 0 8px; padding: 0; border: 0; box-shadow: none; --pct: 20%; background: linear-gradient(90deg, var(--ink) var(--pct), var(--fill-2) var(--pct)); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 8px 16px -6px rgba(15, 15, 17, 0.5); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--ink), 0 8px 16px -6px rgba(15, 15, 17, 0.5); cursor: grab; }
.calc input[type=range]:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.calc-ticks { position: relative; height: 18px; font-size: 12.5px; color: var(--ink-3); }
.calc-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.calc-ticks span:first-child { transform: none; }
.calc-team { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.calc-step { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 22px; line-height: 1; display: grid; place-items: center; padding: 0; }
.calc-out { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 24px 26px; min-height: 300px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, #fff, #f2f2f5); box-shadow: var(--shadow); --m1: #9fcf9a; --m2: #e4f1e0; }
.calc-out::before { content: ''; position: absolute; z-index: -1; right: -80px; bottom: -100px; width: 300px; height: 300px; border-radius: 50%; filter: blur(34px); opacity: 0.9; background: radial-gradient(circle at 40% 40%, var(--m1), var(--m2) 70%); }
.calc-out.m-blue { --m1: #a9c2f2; --m2: #e4ecfb; }
.calc-out.m-orange { --m1: #f6c29a; --m2: #fbe8d9; }
.calc-out.m-pink { --m1: #f3b0c8; --m2: #fbe3ec; }
.calc-chip { align-self: flex-start; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.8); padding: 5px 12px; border-radius: 999px; }
.calc-price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.calc-price .bignum { font-size: 58px; }
.calc-per { margin: 2px 0 6px; font-weight: 560; }
.calc-out .price-lines { margin-top: 10px; }
.calc-out .price-lines li { border-top-color: rgba(15, 15, 17, 0.1); }
.calc-out .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }

/* The calculator is the first thing on the page and stands apart from the plan cards under it. */
.calc { margin: 28px 0 0; padding: 30px 34px 34px; border-radius: 38px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 1px rgba(15, 15, 17, 0.04), 0 36px 70px -34px rgba(15, 15, 17, 0.4); }
.calc .panel-head { border: 0; padding: 0 0 10px; }
.calc .panel-head h2 { font-size: 24px; }
.calc-grid { padding: 10px 0 0; gap: 40px; }
.calc-n { font-size: 52px; }
.calc input[type=range] { height: 12px; margin: 26px 0 10px; }
.price-or { text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-3); margin: 54px 0 16px; letter-spacing: 0; }
@media (max-width: 900px) { .calc { padding: 22px 20px 24px; border-radius: 30px; } .calc-n { font-size: 42px; } }
/* Room under the last thing on the pricing page, so the buttons and the footer links never sit against the edge. */
.price-main { padding-bottom: 72px; }
.pricepage .gate-foot { padding-bottom: 36px; }
@media (max-width: 900px) { .price-main { padding-bottom: 56px; } .pricepage .gate-foot { padding-bottom: 28px; } }

/* ---- Tablet: the Clients and Team tables turn into cards too, so nothing is cut off at the edge ---- */
@media (min-width: 701px) and (max-width: 1360px) {
  table.cards.tcards, table.cards.tcards tbody, table.cards.tcards tr, table.cards.tcards td { display: block; width: 100%; }
  table.cards.tcards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards.tcards tr { padding: 12px 22px; border-top: 1px solid var(--line); }
  table.cards.tcards tbody tr:first-child { border-top: 0; }
  table.cards.tcards td, table.cards.tcards td:first-child, table.cards.tcards td:last-child { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; min-width: 0; overflow-wrap: anywhere; }
  table.cards.tcards td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; font-weight: 500; text-align: left; flex: none; }
  table.cards.tcards td:first-child { font-size: 17px; justify-content: flex-start; text-align: left; padding-bottom: 6px; }
  table.cards.tcards td:first-child::before { display: none; }
  table.cards.tcards td:empty { display: none; }
  table.cards.tcards td > div { min-width: 0; }
  .ptable td .row.end { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---- Touch targets: the look stays the same, the tappable area is at least 44px ---- */
@media (max-width: 900px), (pointer: coarse) {
  .skip-link { padding: 12px 14px; }
  .side-avatar { position: relative; }
  .side-avatar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
  a.back { min-height: 44px; margin-bottom: 0; }
  /* Small tick boxes keep their drawn size (20px). The box you can tap is 44px, and a negative margin keeps the layout. */
  .sv-row input[type=checkbox], .sv-all input[type=checkbox] { -webkit-appearance: none; appearance: none; position: relative; width: 44px; height: 44px; min-height: 44px; margin: -12px; padding: 0; border: 0; background: transparent; flex: none; cursor: pointer; }
  .sv-row input[type=checkbox]::before, .sv-all input[type=checkbox]::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 6px; border: 1.6px solid #b5b5bb; background: #fff; }
  .sv-row input[type=checkbox]:checked::before, .sv-all input[type=checkbox]:checked::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ink); }
  .sv-all { min-height: 44px; }
  /* Links in lists and tables get a 44px tap area */
  .sv-main .sub a, .sv-group .panel-head h2 a, a.cc-phone, section.panel li > a, section.panel li > div > a:not(.btn), td a:not(.btn), .rowlist a, .cv-list a, a.muted:not(.small) { display: inline-flex; align-items: center; min-height: 44px; }
  .sv-main .sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
}
/* (20 Nov 2026) The touch target block above was never closed, so every rule below it only applied on phones and touch
   screens. Closed here, so the rules below apply on every screen as intended. */
/* Client upload page: long unbroken names and titles wrap instead of pushing the page sideways on a phone. */
#root, #root p, #root h1, #root h2, #root .it-name, #root .callout, #root .card { overflow-wrap: anywhere; min-width: 0; }

/* Name and size only tile on Review: a plain light grey orb, different from the progress tile. */
.gt-plain .orb { background: radial-gradient(circle at 40% 40%, #d9d9dc, #e9e9eb 60%, #f6f6f7 85%); }

/* Needs-a-call card on a phone: the name, number and note each get a full line, and the button sits underneath instead of squeezing the words. */
.callcard .cc-who b, .callcard .cc-phone { overflow-wrap: anywhere; }
.callcard button { white-space: nowrap; }
@media (max-width: 560px) {
  .callcard { flex-direction: column; align-items: stretch; gap: 10px; }
  .callcard .cc-who, .callcard .cc-when, .callcard .cc-note { min-width: 0; flex: 0 0 auto; width: 100%; }
  .callcard button, .callcard .pill { margin-left: 0; align-self: flex-start; }
}

/* Short desktop windows (for example 1280 by 800): a tighter side menu so the setup card and account button both fit */
@media (min-width: 901px) and (max-height: 860px) {
  .side { padding-top: 18px; padding-bottom: 14px; }
  .setupcard { padding: 12px 14px; border-radius: 20px; }
  .setupcard .sc-bar { margin: 8px 0 8px; }
  .setupcard p { margin-bottom: 8px; font-size: 12.5px; }
  .acct { padding-top: 6px; }
}

/* Round two: the touch box is the real box now, not a hidden extra, so it measures 44px as well as feeling it. */
.tcard .panel-head .row button { padding: 7px 10px; }
@media (max-width: 900px), (pointer: coarse) {
  .side-avatar { width: 44px; height: 44px; min-height: 44px; }
  .side-avatar::after { display: none; }
  .rb { width: 44px; height: 44px; }
  .rb::after, .chipx .x::after { display: none; }
  .chipx .x { width: 44px; height: 44px; margin: -12px -10px -12px -4px; font-size: 18px; }
  .tcard .panel-head .row button { min-width: 44px; min-height: 44px; justify-content: center; }
  .panel-body.row > button, .panel-body.row > select { min-height: 44px; min-width: 44px; }
  .item-head button.sm { min-height: 44px; min-width: 44px; }
}
@media (max-width: 700px) {
  /* Fourteen days cannot each be 44px wide on a phone, so the strip slides sideways inside its own box (the page does not move). */
  .week .days { grid-template-columns: repeat(14, 44px); overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .week .col { min-height: 44px; }
}

/* Sign-up steps stay on one line on a phone: only the step you are on keeps its word. */
@media (max-width: 560px) {
  .su-prog { flex-wrap: nowrap; gap: 6px; }
  .su-prog li { gap: 6px; flex: none; }
  .su-prog li + li::before { width: 14px; margin-right: 0; }
  .su-prog li:not(.on) .su-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* The download panel and the items card below it no longer touch. */
.save-panel { margin-bottom: 16px; }

/* Client upload page: "you can close this window" bar, shown once the client reaches the bottom (Jack, 20 Nov 2026) */
body.has-done-bar { padding-bottom: 96px; }
.done-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06); font-size: 15px; font-weight: 500; line-height: 1.35; transform: translateY(110%); transition: transform 0.25s ease; }
.done-bar > span:last-child { max-width: 560px; }
.done-bar.show { transform: none; }
.done-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e4f2e1; color: #2f5d50; display: grid; place-items: center; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .done-bar { transition: none; } }

/* Settings: the Save button floats centred with no bar behind it, and the page scrolls a little past the last section so
   at the end it sits in its own space and covers nothing (Jack, 20 Nov 2026, mockups/settings-save-and-password.jpg) */
.savebar.savebar-centre { justify-content: center; padding: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0; margin: 28px 0 28px; pointer-events: none; }
.savebar.savebar-centre > button { pointer-events: auto; padding: 14px 34px; font-size: 15px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.45); }
