/* Reelroom — one stylesheet, no build step.
   Motif: the 9:16 frame. Every post is shown as a small vertical frame, like the reel it becomes. */

:root {
  color-scheme: light;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #14162a;
  --ink-2: #454b63;
  --muted: #6b7189;
  --line: #e2e5ef;
  --line-strong: #cdd2e0;
  --accent: #3b55f2;
  --accent-ink: #ffffff;
  --accent-soft: #e9edff;
  --rail: #14162a;
  --rail-ink: #f2f3f9;
  --rail-muted: #9aa0ba;
  --rail-hover: #22253f;
  --good: #117a37;
  --good-soft: #e1f4e7;
  --warn: #8a5a00;
  --warn-soft: #fff0cf;
  --bad: #bf2c2c;
  --bad-soft: #fde7e7;
  --frame: #1b1e36;
  --shadow: 0 1px 2px rgba(20, 22, 42, 0.06), 0 8px 24px -12px rgba(20, 22, 42, 0.18);
  --radius: 14px;
  --radius-s: 9px;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --text: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* chart roles */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --grid: #e7e9f1;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1020;
    --surface: #171a2d;
    --surface-2: #1d2136;
    --ink: #f1f2f8;
    --ink-2: #c5c9db;
    --muted: #9298b2;
    --line: #2a2e47;
    --line-strong: #3a3f5c;
    --accent: #8194ff;
    --accent-ink: #0e1020;
    --accent-soft: #232a55;
    --rail: #0a0b17;
    --rail-hover: #171a2d;
    --good: #58d184;
    --good-soft: #143222;
    --warn: #f4c15a;
    --warn-soft: #3a2c0c;
    --bad: #ff8a8a;
    --bad-soft: #3d1717;
    --frame: #05060d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
    --series-7: #9085e9;
    --series-8: #e66767;
    --grid: #262a42;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.015em; margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.boot { padding: 48px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 14px; }
.stack.tight { gap: 6px; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-family: var(--display); font-weight: 750; font-size: 19px; letter-spacing: -0.02em; color: var(--rail-ink); }
.brand svg { width: 22px; height: 22px; }
.rail a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--rail-muted); font-weight: 500; }
.rail a.nav:hover { background: var(--rail-hover); color: var(--rail-ink); text-decoration: none; }
.rail a.nav[aria-current='page'] { background: var(--rail-hover); color: #fff; }
.rail a.nav[aria-current='page'] .icon { color: #9fb0ff; }
.rail a.nav.create, .rail a.nav.create[aria-current='page'] { margin: 0 0 12px; justify-content: center; background: #fff; color: #14162a; font-weight: 600; }
.rail a.nav.create:hover { background: #e9ecff; color: #14162a; }
.rail a.nav.create .icon { color: inherit; }
.rail .spacer { flex: 1; min-height: 16px; }
.rail .who { padding: 12px 10px 2px; border-top: 1px solid #2a2e47; margin-top: 8px; font-size: 13px; color: var(--rail-muted); }
.rail .who strong { display: block; color: var(--rail-ink); font-weight: 600; font-size: 14px; }
.rail .linklike { background: none; border: 0; padding: 0; color: var(--rail-muted); cursor: pointer; text-decoration: underline; font-size: 13px; }
.main { padding: 30px clamp(18px, 4vw, 44px) 80px; max-width: 1240px; width: 100%; }
.topbar { display: none; }
.banner { background: var(--warn-soft); color: var(--warn); padding: 9px 14px; border-radius: var(--radius-s); font-size: 14px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.banner.info { background: var(--accent-soft); color: var(--ink); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pagehead p { color: var(--muted); margin-top: 6px; max-width: 62ch; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform 0.18s ease; }
  .shell.open .rail { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 11, 23, 0.5); }
  .topbar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--rail); color: var(--rail-ink); position: sticky; top: 0; z-index: 30; font-family: var(--display); font-weight: 700; }
  .topbar button { background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; display: flex; }
  .main { padding-top: 22px; }
}

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card > h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.divider { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1.3; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 12px 20px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn .icon { width: 16px; height: 16px; }
label.field { display: grid; gap: 6px; font-weight: 550; font-size: 14px; }
label.field .hint, .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type='text'], input[type='email'], input[type='password'], input[type='datetime-local'], input[type='time'], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.seg { display: inline-flex; justify-self: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 550; color: var(--ink-2); }
.seg button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 22, 42, 0.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 500; }
.chip.plain { padding: 7px 13px; }
.chip[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.chip[disabled] { opacity: 0.5; cursor: not-allowed; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 0; background: var(--line-strong); cursor: pointer; flex: none; transition: background 0.15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.switch[aria-checked='true'] { background: var(--good); }
.switch[aria-checked='true']::after { transform: translateX(18px); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill .icon { width: 13px; height: 13px; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.live { background: var(--accent-soft); color: var(--accent); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } * { transition: none !important; } }

/* ---------- network marks ---------- */
.net { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex: none; }
.net svg { width: 13px; height: 13px; }
.net.facebook { background: #1877f2; }
.net.instagram { background: #d6249f; }
.net.tiktok { background: #111; box-shadow: inset 0 0 0 1px #3a3f5c; }
.net.demo, .net.removed { background: #7a8098; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--line); object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.who-chip { position: relative; display: inline-flex; }
.who-chip .net { position: absolute; right: -5px; bottom: -4px; width: 16px; height: 16px; box-shadow: 0 0 0 2px var(--surface); }
.who-chip .net svg { width: 9px; height: 9px; }

/* ---------- the 9:16 frame ---------- */
.frame { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; background: var(--frame); overflow: hidden; color: #fff; flex: none; }
.frame > video, .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .words { position: absolute; inset: 0; padding: 12% 10%; display: flex; align-items: center; font-family: var(--display); font-weight: 650; line-height: 1.2; overflow: hidden; background: linear-gradient(160deg, #2a2f63, #14162a); }
.frame .veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10%; background: rgba(12, 13, 28, 0.72); font-size: 13px; gap: 8px; align-content: center; }
.frame .tag { position: absolute; left: 8px; top: 8px; background: rgba(12, 13, 28, 0.7); padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.frame.xs { width: 44px; border-radius: 7px; }
.frame.xs .words { font-size: 6px; padding: 8%; }
.frame.s { width: 96px; }
.frame.s .words { font-size: 10px; }

/* filmstrip of upcoming posts (home) */
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.strip .take { width: 150px; flex: none; scroll-snap-align: start; color: inherit; }
.strip .take:hover { text-decoration: none; }
.strip .take .frame { width: 100%; box-shadow: var(--shadow); }
.strip .take .when { margin-top: 9px; font-family: var(--display); font-weight: 650; font-size: 15px; }
.strip .take .nets { display: flex; gap: 4px; margin-top: 5px; }
.strip .add { width: 150px; flex: none; aspect-ratio: 9 / 16; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 12px; font-weight: 550; }
.strip .add:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.tile .value { font-family: var(--display); font-weight: 750; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile .delta { font-size: 12.5px; color: var(--muted); }
.tile .delta.up { color: var(--good); }
.tile .delta.down { color: var(--bad); }

/* ---------- lists & tables ---------- */
.list > .item { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.list > .item:first-child { border-top: 0; }
.list .daymark { padding: 10px 18px; background: var(--surface-2); font-family: var(--display); font-weight: 650; font-size: 14px; border-top: 1px solid var(--line); }
.list .daymark:first-child { border-top: 0; }
.list .time { width: 58px; flex: none; font-family: var(--display); font-weight: 650; font-variant-numeric: tabular-nums; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.targets { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.targets .t { display: inline-flex; align-items: center; gap: 6px; }
.targets .net { width: 18px; height: 18px; }
.targets .net svg { width: 10px; height: 10px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td .cap { max-width: 320px; }

/* ---------- compose ---------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.compose .preview { position: sticky; top: 24px; }
.compose .preview .frame { width: 100%; box-shadow: var(--shadow); }
.compose .preview .overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(8, 9, 20, 0.85)); font-size: 13px; line-height: 1.35; }
.compose .preview .overlay strong { display: block; margin-bottom: 3px; }
.stepno { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); display: inline-grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; flex: none; }
.step h2 { display: flex; align-items: center; gap: 10px; }
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.source { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.source:hover { border-color: var(--accent); background: var(--accent-soft); }
.source strong { font-weight: 600; }
.source .icon { color: var(--accent); width: 20px; height: 20px; margin-bottom: 4px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 84px; }
.thumb .frame { width: 100%; border-radius: 9px; }
.thumb .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.thumb .x .icon { width: 12px; height: 12px; }
.aibox { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 16px; }
.counter { font-size: 12.5px; color: var(--muted); text-align: right; }
.counter.over { color: var(--bad); font-weight: 600; }
@media (max-width: 980px) { .compose { grid-template-columns: 1fr; } .compose .preview { position: static; max-width: 260px; } }

/* ---------- studio ---------- */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.reel .frame { width: 100%; cursor: pointer; border: 0; padding: 0; display: block; }
.reel .title { font-weight: 600; margin-top: 9px; line-height: 1.3; }
.reel .meta { color: var(--muted); font-size: 12.5px; }
.reel .actions { justify-content: flex-start; margin-top: 8px; }

/* ---------- modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 11, 23, 0.55); z-index: 60; display: grid; place-items: center; padding: 18px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; padding: 24px; width: min(560px, 100%); box-shadow: var(--shadow); max-height: calc(100vh - 36px); overflow-y: auto; }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin-bottom: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.player { width: min(360px, 100%); aspect-ratio: 9 / 16; background: #000; border-radius: 14px; display: block; margin: 0 auto; }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--ink); color: var(--surface); padding: 11px 15px; border-radius: 11px; box-shadow: var(--shadow); font-weight: 500; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- sign in ---------- */
.door { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.door .pitch { background: var(--rail); color: var(--rail-ink); padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.door .pitch h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; max-width: 12ch; }
.door .pitch .line { display: flex; gap: 12px; align-items: flex-end; }
.door .pitch .line .frame { width: 74px; background: #22253f; }
.door .pitch .line .frame:nth-child(2) { width: 96px; background: #3b55f2; }
.door .pitch .line .frame:nth-child(3) { width: 62px; background: #2c3055; }
.door .pitch p { color: var(--rail-muted); max-width: 40ch; }
.door .form { display: grid; place-items: center; padding: 32px 20px; }
.door .form .inner { width: min(380px, 100%); }
.door .form h2 { font-size: 24px; margin-bottom: 6px; }
@media (max-width: 820px) { .door { grid-template-columns: 1fr; } .door .pitch { display: none; } }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--text); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4; white-space: nowrap; transform: translate(-50%, -100%); z-index: 5; box-shadow: var(--shadow); }
.chart .tip b { font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- checklist ---------- */
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; }
.todo .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--warn-soft); color: var(--warn); margin-top: 1px; }
.todo.done .dot { background: var(--good-soft); color: var(--good); }
.todo .dot .icon { width: 13px; height: 13px; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line); padding: 7px 10px; border-radius: 8px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- small screens ---------- */
.stack > *, .grid > *, .compose > * { min-width: 0; }
.shell > div { min-width: 0; }
@media (max-width: 700px) {
  .list > .item { flex-wrap: wrap; row-gap: 10px; }
  .list > .item > .grow { flex-basis: 60%; }
  .list > .item > .stack { justify-items: start !important; flex-basis: 100%; }
  .list .actions { justify-content: flex-start; }
  .pagehead { align-items: flex-start; flex-direction: column; }
  .tile .value { font-size: 24px; }
  .modal { padding: 18px; }
}
/* visually hidden labels are absolutely positioned; keep them inside their scrollers */
.tablewrap, .strip, .net, .list { position: relative; }
