/* agm-demo: one stylesheet, tokens first. The look is "K3": a navy side bar
   and page head around a white work surface, Georgia headlines, mono
   eyebrows, hairlines. Light by default, dark when the device asks and
   nothing was chosen, or when the reader chose dark. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #0f1d2b; --navy-2: #13263a; --on-navy: #eef3f6; --on-navy-muted: #9fb3c2; --mint: #7fd6c8;
  --bg: #ffffff; --surface: #ffffff; --soft: #f4f6f7; --line: #e3e7ea; --line-strong: #cfd6dc;
  --text: #0f1d2b; --muted: #56636e; --accent: #0e6f6c; --btn: #0f1d2b; --on-btn: #ffffff;
  --late: #c4462b; --on-late: #ffffff; --warn: #98620e; --focus: #0e6f6c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px; --side: 248px;
  /* Controls: one radius and one height for every input, select, button and
     card, so they line up wherever they meet. Pills are for status chips. */
  /* Buttons: primary filled, secondary tinted with a coloured line, danger
     a restrained warm tint. None of them looks like an input. */
  --btn-hover: #1d3550;
  --btn2-bg: #e2f2ef; --btn2-line: #0e6f6c; --btn2-text: #0a5551; --btn2-hover: #cbe9e3;
  --btn3-bg: #fbebe6; --btn3-line: #c4462b; --btn3-text: #a3341b; --btn3-hover: #f6d9d0;
  --radius-control: 8px; --control-h: 42px; --control-h-sm: 34px; --control-px: 12px;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356636e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  font-family: var(--sans);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0a1520; --navy-2: #0f1e2c; --bg: #111b25; --surface: #14212d; --soft: #182736; --line: #213040; --line-strong: #2e4152;
    --text: #e9eff3; --muted: #93a7b6; --accent: #7fd6c8; --btn: #7fd6c8; --on-btn: #06231f;
    --late: #ff8a6b; --on-late: #2a0d06; --warn: #ffb45e; --focus: #7fd6c8; color-scheme: dark;
    --btn-hover: #9fe3d8;
    --btn2-bg: #17393b; --btn2-line: #7fd6c8; --btn2-text: #9fe3d8; --btn2-hover: #1d4749;
    --btn3-bg: #3a2320; --btn3-line: #ff8a6b; --btn3-text: #ffa48b; --btn3-hover: #4a2a25;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --navy: #0a1520; --navy-2: #0f1e2c; --bg: #111b25; --surface: #14212d; --soft: #182736; --line: #213040; --line-strong: #2e4152;
  --text: #e9eff3; --muted: #93a7b6; --accent: #7fd6c8; --btn: #7fd6c8; --on-btn: #06231f;
  --late: #ff8a6b; --on-late: #2a0d06; --warn: #ffb45e; --focus: #7fd6c8; color-scheme: dark;
    --btn-hover: #9fe3d8;
    --btn2-bg: #17393b; --btn2-line: #7fd6c8; --btn2-text: #9fe3d8; --btn2-hover: #1d4749;
    --btn3-bg: #3a2320; --btn3-line: #ff8a6b; --btn3-text: #ffa48b; --btn3-hover: #4a2a25;
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a7b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); line-height: 1.5; font-size: 15px; min-height: 100vh; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:is(.side, .mbar, .out__brand) :focus-visible { outline-color: var(--mint); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }

/* Brand: the wordmark is a mask, so it takes the colour of its place. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; }
.wordmark { display: block; width: 150px; aspect-ratio: 1998 / 156; background: currentColor; -webkit-mask: url("/static/wordmark.svg") center / contain no-repeat; mask: url("/static/wordmark.svg") center / contain no-repeat; }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); border: 1px solid rgb(127 214 200 / 0.5); border-radius: 999px; padding: 1px 7px; line-height: 1.5; }

/* Eyebrow: mono, spaced, a short rule in front. */
.eyebrow { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }

/* Signed in: side bar and work surface */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--navy) var(--side), var(--bg) var(--side)); }
.main { background: var(--bg); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: var(--on-navy); padding: 24px 14px 16px; display: flex; flex-direction: column; gap: 22px; }
.side > .brand { padding: 4px 10px 6px; flex-direction: column; align-items: flex-start; gap: 8px; }
.snav { display: flex; flex-direction: column; gap: 14px; }
.snav__group { display: flex; flex-direction: column; gap: 2px; }
.snav__title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin: 4px 10px 6px; display: flex; align-items: center; gap: 10px; }
.snav__title::before { content: ""; width: 16px; height: 1px; background: currentColor; }
.snav a { color: var(--on-navy-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); min-height: 40px; }
.snav a:hover { background: rgb(255 255 255 / 0.05); color: var(--on-navy); }
.snav a[aria-current="page"] { color: #ffffff; background: rgb(127 214 200 / 0.12); }
.snav__count { margin-left: auto; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: rgb(255 255 255 / 0.08); color: #cfdde6; }
.side__prefs { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; }
.side__me { border-top: 1px solid rgb(255 255 255 / 0.08); padding: 14px 10px 0; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; }
.me[aria-current="page"] .me__txt b { color: var(--mint); }
.me__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.me__txt b { font-size: 13.5px; font-weight: 600; } .me__txt small { font-size: 11.5px; color: var(--on-navy-muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; background: rgb(255 255 255 / 0.08); color: var(--on-navy); border: 1px solid rgb(255 255 255 / 0.16); flex: none; }
.side__me form { margin: 0; }
.side__out { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 0 0 42px; color: var(--on-navy-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.side__out:hover { color: var(--on-navy); }

.lang { display: flex; gap: 8px; margin: 0; }
.lang__opt { font: inherit; font-size: 13px; letter-spacing: 0.04em; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--on-navy-muted); }
.lang__opt[aria-current="true"] { color: var(--on-navy); font-weight: 600; }
.theme-switch { display: flex; margin: 0; }
.theme-switch__opt { background: none; border: 0; color: var(--on-navy-muted); padding: 6px; cursor: pointer; border-radius: var(--radius-control); display: inline-flex; }
.theme-switch__opt:hover { color: var(--on-navy); }
.theme-switch__opt--to-light { display: none; }
:root[data-theme="dark"] .theme-switch__opt--to-dark { display: none; }
:root[data-theme="dark"] .theme-switch__opt--to-light { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-switch__opt--to-dark { display: none; }
  :root:not([data-theme]) .theme-switch__opt--to-light { display: inline-flex; }
}

.mbar { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }

/* Page head: navy, the website's section look. */
.phead { background: var(--navy-2); color: var(--on-navy); padding: 36px 40px 30px; }
.phead__in { max-width: 1100px; }
.phead .eyebrow { color: var(--mint); }
.phead__title { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; }
.phead__lede { color: var(--on-navy-muted); font-size: 16px; line-height: 1.55; margin: 12px 0 0; max-width: 64ch; overflow-wrap: anywhere; }
.phead__act { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
/* Back from a detail page to the list it came from, filter kept. */
.back { margin: -6px 0 14px; }
.back a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--on-navy-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.back a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.back .icon { width: 16px; height: 16px; margin-left: -3px; }

.page { width: 100%; max-width: 1180px; padding: 28px 40px 72px; flex: 1; }
.footer { padding: 16px 40px 76px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); }

/* Building blocks */
.block { padding: 6px 0 26px; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--text); padding-bottom: 10px; margin-bottom: 8px; width: 100%; }
.block__title { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; }
.block__head a { font-size: 14px; font-weight: 500; text-decoration: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 20px; }
.panel__title { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checks .icon { color: var(--accent); margin-top: 2px; }

/* Buttons: as tall as an input, never broken over two lines. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-h); padding: 0 18px; border-radius: var(--radius-control); border: 1px solid var(--btn); background: var(--btn); color: var(--on-btn); text-decoration: none; font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.btn .icon { width: 16px; height: 16px; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn--line, .btn--ghost { background: var(--btn2-bg); color: var(--btn2-text); border-color: var(--btn2-line); }
.btn--line:hover, .btn--ghost:hover { background: var(--btn2-hover); border-color: var(--btn2-line); }
.btn--small { min-height: var(--control-h-sm); padding: 0 13px; font-size: 13px; }
.btn--danger { background: var(--btn3-bg); border-color: var(--btn3-line); color: var(--btn3-text); }
.btn--danger:hover { background: var(--btn3-hover); border-color: var(--btn3-line); }
.btn--full { width: 100%; }

/* Notices */
.notice { background: var(--soft); border: 1px solid var(--line); padding: 10px 14px; border-radius: var(--radius); margin: 0 0 24px; }
.notice--problem { border-color: var(--late); color: var(--late); }

/* Forms. Every single-line control (text, date, number, select) has the
   same height, padding and radius, so a row of them, and a button beside
   them, lines up; a row of labelled fields aligns at the bottom. */
.form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 420px; }
.field__label { font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-control); max-width: 100%; }
:is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="range"]), select) { height: var(--control-h); padding: 0 var(--control-px); line-height: normal; }
select { appearance: none; -webkit-appearance: none; padding-right: calc(var(--control-px) + 22px); background-image: var(--chevron); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px 16px; }
input::-webkit-datetime-edit, input::-webkit-datetime-edit-fields-wrapper { padding: 0; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; }
textarea { padding: 9px var(--control-px); min-height: var(--control-h); width: 100%; resize: vertical; }
input[type="file"] { padding: 8px 0; border: 0; background: none; }
.check { display: flex; gap: 8px; align-items: center; }
.disclosure { margin-top: 18px; }
.disclosure summary { cursor: pointer; color: var(--accent); margin-bottom: 14px; text-decoration: underline; text-underline-offset: 3px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
/* Inside a table the controls are the small size, like its buttons. */
.table :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select) { height: var(--control-h-sm); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.filters .field { width: auto; }
.invite__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; width: 100%; }

/* Tabs, lists, tables */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 4px 0 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.list { list-style: none; margin: 0 0 24px; padding: 0; }
.list__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table__scroll { overflow-x: auto; margin-bottom: 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table__act { text-align: right; white-space: nowrap; }
/* short values (a name, a state, a date) stay on one line */
.table__short { white-space: nowrap; }
.is-disabled td { color: var(--muted); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--soft); white-space: nowrap; }
.badge--late { color: var(--late); }

/* Trail */
.trail { list-style: none; margin: 0 0 8px; padding: 0; }
.trail li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.trail time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.875rem; padding-top: 1px; }

/* Signed out: navy claim on the left, the form on white. */
.out { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.out__brand { background: var(--navy); color: var(--on-navy); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.out__claim .eyebrow { color: var(--mint); }
.out__title { font-family: var(--serif); font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 28px; max-width: 14ch; }
.out__brand .checks { max-width: 560px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.out__brand .checks li { border-bottom-color: rgb(255 255 255 / 0.12); color: #d6e1e8; }
.out__brand .checks .icon { color: var(--mint); }
.out__note { color: var(--on-navy-muted); font-size: 12.5px; margin: 0; }
.out__side { display: flex; flex-direction: column; background: var(--bg); }
.out__prefs { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 20px 28px; }
.out__prefs .lang__opt, .out__prefs .theme-switch__opt { color: var(--muted); }
.out__prefs .lang__opt[aria-current="true"] { color: var(--text); }
.out__main { width: 100%; max-width: 440px; margin: auto; padding: 24px 28px 64px; }
.out .phead { background: none; color: var(--text); padding: 0; margin-bottom: 22px; }
.out .phead .eyebrow { color: var(--accent); }
.out .phead__title { font-size: 30px; }
.out .phead__lede { color: var(--muted); font-size: 15px; margin-top: 8px; }
.out .field { max-width: none; }
.out .form { align-items: stretch; }

/* Feedback: a tab bottom right; open, everything else is blurred. */
.feedback { position: fixed; right: 16px; bottom: 16px; z-index: 30; }
.feedback__tab { list-style: none; display: inline-flex; gap: 8px; align-items: center; background: var(--btn2-bg); color: var(--btn2-text); border: 1px solid var(--btn2-line); border-radius: var(--radius-control); padding: 9px 15px; cursor: pointer; box-shadow: 0 4px 16px rgb(15 29 43 / 0.14); font-weight: 550; font-size: 14px; }
.feedback__tab::-webkit-details-marker { display: none; }
.feedback__tab svg { color: var(--accent); }
.js .feedback[open] .feedback__tab { display: none; }
.feedback__panel { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 32px rgb(0 0 0 / 0.25); }
.feedback__lead { font-weight: 500; }
.feedback__foot { display: flex; justify-content: flex-end; gap: 8px; }
.feedback__said { margin: 0; font-size: 0.9rem; }
.feedback__said--problem { color: var(--late); }
/* Voice message: record, listen, record again or discard; the consent
   line always under it. Shown only by script that can record. */
.voice { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.voice[hidden], .voice [hidden] { display: none; }
.voice__bar, .voice__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.voice__timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); }
.voice__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--late); animation: voice-pulse 1.2s ease-in-out infinite; }
@keyframes voice-pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .voice__dot { animation: none; } }
.voice__take { display: flex; flex-direction: column; gap: 8px; }
.voice__label { font-size: 13px; color: var(--muted); }
.voice__take audio { width: 100%; height: 40px; }
.voice__consent { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
body:has(.feedback[open]) :is(.side, .mbar, .main, .out) { filter: blur(6px); pointer-events: none; user-select: none; }

/* Phone: the side bar becomes a navy bar with a menu that opens without
   script (details), tables become cards. */
/* tasks */
.facts { margin: 0 0 16px; }
.facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.prewrap { white-space: pre-line; overflow-wrap: anywhere; }
.sub { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
.grow { flex: 1 1 14rem; min-width: 0; }
.tasks__title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tasks__title:hover { text-decoration: underline; }
.taskact { display: inline-flex; flex-wrap: nowrap; gap: 8px; justify-content: flex-end; }
.taskact form { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.taskforms .form { margin-top: 28px; }
.taskforms .actions { margin-bottom: 0; }
.badge--warn { color: var(--warn); }
.kind { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.kind--late { color: var(--late); }
.due { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.pager a:last-child { margin-left: auto; }

/* Cards: a few things side by side, each one a whole (the overview's tasks
   and deadlines). White on white with a thin line, the controls' radius;
   the whole card is the link. */
.cards { list-style: none; margin: 4px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 16px 18px; }
.card:hover { border-color: var(--muted); }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; min-width: 0; }
.card__top .kind { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card__date { font-weight: 600; font-size: 14px; }
.card__title { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.card__link { color: var(--text); text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__link:focus-visible { outline: none; }
.card__sub { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.card__hint { margin: 0; color: var(--warn); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.card__meta { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13.5px; align-items: baseline; }
.card__meta > div { display: contents; }
.card__meta dt { color: var(--muted); }
.card__meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.card__go { margin: 0; display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; font-size: 14px; }
.card__go .icon { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .taskact { justify-content: flex-start; flex-wrap: wrap; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .shell { display: block; background: var(--bg); }
  .side { display: none; }
  .mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); color: var(--on-navy); padding: 10px 16px; position: sticky; top: 0; z-index: 20; }
  .mbar .wordmark { width: 124px; }
  .mnav__toggle { list-style: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / 0.25); border-radius: var(--radius-control); cursor: pointer; color: var(--on-navy); }
  .mnav__toggle::-webkit-details-marker { display: none; }
  .mnav__bars, .mnav__bars::before, .mnav__bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; content: ""; }
  .mnav__bars::before { position: absolute; top: -5px; } .mnav__bars::after { position: absolute; top: 5px; }
  .mnav:not([open]) > .mnav__panel { display: none; }
  .mnav[open] > .mnav__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px 14px 18px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid rgb(255 255 255 / 0.08); box-shadow: 0 16px 32px rgb(0 0 0 / 0.3); max-height: calc(100vh - 64px); overflow-y: auto; }
  .mnav__panel .side__prefs { margin-top: 0; }
  .phead { padding: 24px 16px 22px; }
  .phead__title { font-size: 29px; }
  .page { padding: 20px 16px 84px; }
  .footer { padding: 14px 16px 88px; }
  .grid2, .tiles { grid-template-columns: minmax(0, 1fr); }
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table--cards td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; align-items: center; overflow-wrap: anywhere; }
  .table--cards td::before { content: attr(data-label); color: var(--muted); font-size: 0.8rem; }
  .table--cards td.table__act { display: flex; justify-content: flex-start; white-space: normal; }
  .table--cards td.table__act::before { content: none; }
  .table__scroll { overflow-x: visible; }
  .out { display: block; }
  .out__brand { padding: 28px 22px; gap: 24px; }
  .out__title { font-size: 30px; margin-bottom: 18px; }
  .out__brand .checks li { padding: 9px 0; font-size: 14px; }
  .out__prefs { padding: 14px 18px 0; }
  .out__main { padding: 18px 18px 48px; }
}
