/* LiFT portal. Look and feel matched to Basya's prototype (hub.kingfisher.health/lift/onboarding):
   Hanken Grotesk, lime signal colour, warm off-white, black hero, one column, big rounded cards. */
@font-face {
  font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/hanken-grotesk-latin.woff2) format('woff2');
}
:root {
  --bg: #f4f4f1; --card: #ffffff; --paper: #ecebe6; --ink: #0a0a0a; --mute: #6b6b66; --line: #dcdcd6;
  --sig: #CBF11C; --sig2: #A6CC0C; --sig-ink: #0a0a0a; --hero: #0a0a0a; --hero-ink: #ffffff;
  --muted: var(--mute); --navy-2: var(--ink);
  --err: #b42318; --r: 18px; --r-sm: 12px; --gut: 20px;
  --font: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --card: #1b1b1b; --paper: #232323; --ink: #f2f2f2; --mute: #9a9a95; --line: #2c2c2c; --hero: #000000; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 30px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sig2); outline-offset: 2px; }

/* Top bar: black, logo left, quiet links right. Blends into the hero below it. */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gut); padding-top: max(10px, env(safe-area-inset-top));
  background: var(--hero); color: var(--hero-ink);
}
.brand { display: block; color: var(--hero-ink); }
.top .wm { width: 46px; height: auto; display: block; }
.nav { display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 600; }
.nav a, .nav .link { color: var(--hero-ink); text-decoration: none; opacity: .8; }
.nav form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }

.feed { max-width: 640px; margin: 0 auto; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.pad { padding: 20px var(--gut) 4px; }
.label { font-size: 14px; font-weight: 700; color: var(--mute); letter-spacing: 0; margin: 0 0 10px; }
.lede { color: var(--mute); font-size: 16px; margin: 8px 0 18px; }
.fine { color: var(--mute); font-size: 13px; margin-top: 10px; }
.center { text-align: center; }
.muted { color: var(--mute); }
.note { background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.error { color: var(--err); font-size: 15px; }
.error:empty { display: none; }

/* Buttons: pills. Lime = the one thing to do. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0; background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn.sig { background: var(--sig); color: var(--sig-ink); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.big { width: 100%; min-height: 56px; font-size: 17px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; text-decoration: none; cursor: pointer;
}
.chip.ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 4px rgba(203,241,28,.18); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 10px; }

/* Fields: label sits inside the box, like the prototype. */
.field { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 9px 14px 8px; background: var(--card); }
.field span { display: block; font-size: 12px; color: var(--mute); }
.field input { display: block; width: 100%; border: 0; padding: 2px 0 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; outline: none; }
.field:focus-within { border-color: var(--ink); }
.field input[readonly] { color: var(--mute); }
.field .code { font-size: 28px; letter-spacing: .3em; font-weight: 700; }

/* Hero: the black block at the top of home. */
.hero { background: var(--hero); color: var(--hero-ink); padding: 18px var(--gut) 26px; }
.hero h1 { font-size: 34px; }
.hero .role { font-size: 13px; font-weight: 600; color: var(--sig); margin-bottom: 6px; }
.hero-short { padding-bottom: 20px; }
.hero-dim { min-height: 40vh; }

/* Number tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--card); border-radius: 14px; padding: 12px 12px 14px; min-width: 0; }
.tile b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; line-height: 1.25; }

/* Ask LiFT */
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.ask input:focus { outline: none; border-color: var(--ink); }

/* Share the film */
.film-share { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 10px; position: relative; }
.film-mini { cursor: pointer; width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; flex: none; }
.film-share-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.film-share-body b { font-size: 17px; }

/* Collapsible sections with a round x, like the prototype */
.sec { border-top: 1px solid var(--line); margin: 20px var(--gut) 0; }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 16px 0 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary h2 { font-size: 18px; }
.sec .count { color: var(--mute); font-size: 13px; }
.sec .x { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; transition: transform .2s ease; }
.sec .x::before, .sec .x::after { content: ''; position: absolute; left: 8px; top: 12px; width: 10px; height: 2px; background: var(--bg); }
.sec .x::after { transform: rotate(90deg); }
.sec[open] .x { transform: rotate(45deg); }

/* File rail: swipe sideways, cards snap. */
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 14px; scroll-padding: 0 var(--gut); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.fc { flex: 0 0 42%; max-width: 190px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.pv { display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.pv img { width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); }
.pv-none { display: flex; height: 100%; align-items: center; justify-content: center; text-transform: uppercase; font-weight: 800; color: var(--mute); }
.fc .meta { font-size: 14px; font-weight: 700; line-height: 1.25; }
.fc .sub { font-size: 12px; color: var(--mute); margin-top: -4px; }
.fc .sub:empty { display: none; }
.fc:active .pv { transform: scale(.98); }

/* Rows (hospitals, activity) */
.rows { list-style: none; padding: 0; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main b { font-weight: 700; }
.row small { color: var(--mute); font-size: 12px; }
.row-num { display: flex; flex-direction: column; align-items: flex-end; min-width: 52px; }
.row-num b { font-size: 18px; }

/* Tables (LiFT team revenue) */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.table th { color: var(--mute); font-weight: 600; }
.table.small { font-size: 12px; }
.scroll-x { overflow-x: auto; margin-bottom: 12px; }

.foot { text-align: center; padding: 30px var(--gut) 10px; font-size: 13px; color: var(--mute); }

/* Toast for "Link copied" on computers */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 14px; word-break: break-all; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* ---------- Film page: full screen, phone first ---------- */
body[data-page='film'] { background: #000; }
body[data-page='film'] .top { display: none; }
body[data-page='invite-welcome'] .nav, body[data-page='login'] .nav, body[data-page='login-code'] .nav { display: none; }
body[data-page='film'] .feed { max-width: none; padding: 0; }
.stage { position: relative; height: 100vh; height: 100dvh; background: #000; color: #fff; overflow: hidden; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
@media (min-aspect-ratio: 3/4) { .stage-video { object-fit: contain; } }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 62%, rgba(0,0,0,.7)); pointer-events: none; transition: opacity .4s ease; }
.stage-top { position: absolute; top: max(18px, env(safe-area-inset-top)); left: var(--gut); }
.stage-top .wm { width: 54px; height: auto; }
.stage-intro { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(110px + env(safe-area-inset-bottom)); transition: opacity .4s ease, transform .4s ease; }
.stage-intro h1 { font-size: 32px; }
.stage-intro p { opacity: .75; margin-top: 6px; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; background: var(--sig); color: #0a0a0a; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .15s ease, opacity .3s ease; }
.play svg { width: 38px; height: 38px; margin-left: 4px; }
.play:active { transform: scale(.94); }
.stage-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(76px + env(safe-area-inset-bottom)); height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; opacity: 0; transition: opacity .3s ease; }
.stage-bar span { display: block; height: 100%; width: 0; background: var(--sig); }
.stage-bottom { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 10px; }
.stage.playing .stage-intro { opacity: 0; transform: translateY(10px); pointer-events: none; }
.stage.playing .play { opacity: 0; pointer-events: none; }
.stage.playing .stage-bar { opacity: 1; }
.stage.playing .stage-shade { opacity: .5; }
.stage.paused .play { opacity: 1; pointer-events: auto; }
.stage.ending { animation: fadeout .7s ease forwards; }
@keyframes fadeout { to { opacity: 0; } }

/* ---------- Sign-in and message pages: a white card that rises from the bottom ---------- */
body[data-page='invite-welcome'], body[data-page='login'], body[data-page='login-code'], body[data-page='message'] { background: var(--hero); }
.sheet-page { min-height: calc(100dvh - 64px); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-card { background: var(--card); color: var(--ink); border-radius: 28px 28px 0 0; padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom)); animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.sheet-card h1 { margin-bottom: 18px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet-page { justify-content: center; padding: 40px 0; }
  .sheet-card { border-radius: 28px; }
}

/* ---------- Welcome cards: one at a time over a dimmed home ---------- */
body[data-page='welcome'] { background: var(--hero); }
.onboard { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 640px; margin: 0 auto; }
.onboard .step h2 { margin-bottom: 4px; }
.onboard .step + .step { margin-top: 12px; }
.onboard.js .step { display: none; }
.onboard.js .step.on { display: block; }
.onboard.js .step + .step { margin-top: 0; }
.step-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); }
.dots i.on { width: 18px; background: var(--ink); }
.onboard:not(.js) { position: static; }

/* ---------- File page ---------- */
.file-page { background: var(--bg); }
.file-hero { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: var(--paper); }
.doc-open { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 14px; background: var(--paper); text-decoration: none; }
.file-page h1 { font-size: 26px; }

/* ---------- LiFT team pages (admin) keep a plain card look ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.stats div { background: var(--bg); border-radius: 12px; padding: 12px; }
.stats b { display: block; font-size: 22px; font-weight: 800; }
.stats span { font-size: 12px; color: var(--mute); }
.hint { color: var(--mute); font-size: 13px; }
.reach { background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 8px; }
.doc-count a { color: var(--ink); }
.card { background: var(--card); border-radius: var(--r); margin: 14px var(--gut) 0; overflow: hidden; }
.card-body { padding: 18px; }
.card h1 { font-size: 24px; margin-bottom: 12px; }
.card h3 { font-size: 14px; color: var(--mute); margin: 16px 0 8px; }
.card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mute); }
.card input, .card select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.btn.primary { background: var(--sig); color: var(--sig-ink); }
.notice { font-size: 14px; color: var(--mute); }
.notice.ok { background: var(--paper); color: var(--ink); padding: 12px; border-radius: 12px; margin-bottom: 12px; }
.copy { width: 100%; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; }
.list { padding-left: 18px; }

@media (min-width: 700px) {
  .fc { flex-basis: 30%; }
  .hero h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Documents as swipeable pages (each page read is timed) */
.doc-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--paper); -webkit-overflow-scrolling: touch; }
.doc-page { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; justify-content: center; align-items: center; }
.doc-page img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; background: #fff; }
.doc-count { padding-top: 8px; padding-bottom: 0; }

/* LiFT team dashboards */
.card-pad { padding: 0 18px; }
nav.admin-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; color: var(--ink); }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fun-row { display: grid; grid-template-columns: 9.5em 1fr 2.5em; align-items: center; gap: 10px; font-size: 14px; }
.fun-row b { text-align: right; }
svg.bar { width: 100%; height: 12px; display: block; }
svg.daily { width: 100%; height: 120px; display: block; }
svg.strips { width: 100%; height: 14px; display: block; }
svg.pageheat { width: 100%; min-width: 120px; height: 28px; display: block; }
svg.spark { width: 110px; height: 22px; display: block; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: middle; }
.key.k1 { background: var(--ink); } .key.k2 { background: var(--sig2); }
.heat { letter-spacing: 1px; color: var(--navy-2); white-space: nowrap; }
.tree { list-style: none; padding-left: 0; margin: 0; }
.tree .tree { padding-left: 16px; border-left: 2px solid var(--line); margin-left: 6px; }
.tree li { margin: 10px 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ---------- Phone or computer ----------
   On a computer a text link cannot open Messages, so those spots show the LiFT number and a QR code
   to scan with the phone instead. "Computer" = a mouse or trackpad, whatever the window size. */
.desk-only { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  .desk-only { display: flex; }
  .phone-only { display: none !important; }
}
.qr-box { flex: none; background: #fff; border-radius: 14px; padding: 6px; line-height: 0; }
svg.qr { width: 132px; height: 132px; display: block; }
.big-num { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.text-desk { gap: 16px; align-items: center; background: rgba(255,255,255,.08); border-radius: var(--r); padding: 12px 18px 12px 12px; margin-top: 16px; max-width: 460px; }
.text-desk .label { color: var(--sig); margin: 0; }
.text-desk .fine { color: rgba(255,255,255,.7); margin-top: 4px; }
.say-hi-desk { gap: 16px; align-items: center; background: var(--paper); border-radius: var(--r); padding: 12px; }
.say-hi-desk .btn { margin-top: 6px; min-height: 40px; }
.desk-ask { display: flex; gap: 16px; align-items: center; margin-top: 14px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 12px; }
.desk-q { font-size: 18px; font-weight: 700; margin: 6px 0; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }

/* ---------- Computer screens: use the width ---------- */
.wrap { width: 100%; }
@media (min-width: 1000px) {
  :root { --gut: 28px; }
  .feed { max-width: none; }
  body:not([data-page='home']):not([data-page='files']):not([data-page='file']):not([data-page='film']) .feed { max-width: 1240px; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 12px; }
  .top { padding-left: max(var(--gut), calc((100vw - 1240px) / 2 + 40px)); padding-right: max(var(--gut), calc((100vw - 1240px) / 2 + 40px)); }
  .top .wm { width: 54px; }
  .nav { gap: 26px; font-size: 16px; }
  .nav a:hover, .nav .link:hover { opacity: 1; }

  /* Home: black band with name and the number/QR side by side, then two columns. */
  .hero { padding: 34px 0 40px; }
  .hero .wrap { padding: 0 40px; }
  .hero-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .hero h1 { font-size: 52px; }
  .hero-sub { color: rgba(255,255,255,.7); margin-top: 10px; font-size: 17px; }
  .text-desk { margin-top: 0; }
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px 36px; align-items: start; padding-top: 12px; }
  .col-side { position: sticky; top: 84px; }
  .tile { padding: 18px 18px 20px; }
  .tile b { font-size: 36px; }
  .tile span { font-size: 14px; }

  /* Files: a grid of covers instead of a sideways rail. */
  .rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; overflow: visible; margin: 0; padding: 2px 0 18px; scroll-snap-type: none; }
  .fc { max-width: none; }
  .fc:hover .pv { box-shadow: inset 0 0 0 2px var(--ink); }
  .files-page .rail { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* One file: the document on the left, title and buttons on the right. */
  .file-page { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 36px; align-items: start; padding-top: 24px; }
  .file-view { border-radius: var(--r); overflow: hidden; background: var(--paper); }
  .file-side { position: sticky; top: 84px; padding-top: 8px; }
  .file-hero, .doc-page img { max-height: 80vh; }
  .file-page h1 { font-size: 34px; }

  /* Sign-in and welcome cards float in the middle. */
  .onboard { top: 50%; bottom: auto; transform: translateY(-50%); max-width: 520px; }
  .onboard .sheet-card { border-radius: 28px; }

  /* LiFT team pages */
  .card { margin: 18px 0 0; }
  .card-body { padding: 26px 28px; }
  .card h1 { font-size: 30px; }
  .card.narrow { max-width: 760px; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .table { font-size: 15px; }
  .table.small { font-size: 14px; }
  .fun-row { grid-template-columns: 14em 1fr 3em; font-size: 16px; }
}
@media (min-width: 700px) {
  .sheet-card { max-width: 480px; width: 100%; margin: 0 auto; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .feed:has(.admin-nav) { max-width: 960px; }
}

/* Phone order of the home page (the two computer columns run as one list). */
@media (max-width: 999px) {
  .home { display: flex; flex-direction: column; }
  .col-main, .col-side { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; } .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; }
}

/* LiFT team menu: tabs that wrap. */
nav.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
nav.admin-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; }
nav.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (min-width: 1000px) { nav.admin-nav { padding: 22px 0 0; } }
.table td.yes { font-weight: 700; }
.table td.muted { color: var(--mute); }
.table b { font-weight: 700; }

/* Activity: one sentence per line, grouped by day */
.feed-day { font-size: 16px; margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.feed-list { list-style: none; padding: 0; margin: 0; }
.feed-list li { display: grid; grid-template-columns: 3.4em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feed-list time { font-variant-numeric: tabular-nums; font-weight: 700; }
.feed-list li.quiet { color: var(--mute); font-size: 13px; }
.feed-list li.quiet time { font-weight: 400; }

/* Invite form: tick hospitals by name */
.picks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; }
.picks legend { font-size: 14px; color: var(--mute); padding: 0 4px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 16px; max-height: 300px; overflow-y: auto; }
.card label.pick { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; padding: 6px 0; }
.card .pick input { width: 18px; height: 18px; padding: 0; accent-color: var(--ink); }
.desk-ask { flex-wrap: wrap; }
.desk-ask > div:last-child { flex: 1; min-width: 170px; }
.desk-ask svg.qr { width: 112px; height: 112px; }
.desk-ask .chips .btn { min-height: 38px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.film-share-body { flex: 1; min-width: 0; }
.film-share-body .btn { white-space: nowrap; padding: 0 18px; }
@media (min-width: 1000px) {
  body[data-page='welcome'] .hero-dim { padding-left: 40px; padding-right: 40px; }
}
.feed-list li { grid-template-columns: 52px 1fr; }
.feed-more { margin: 6px 0 4px; }
.feed-more summary { cursor: pointer; color: var(--mute); font-size: 13px; padding: 8px 0; }
.team-line { margin-top: 14px; background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; }
.card h2 + .funnel { margin-top: 12px; }
