/* GNASEN IPR portal. Self-hosted fonts, no external requests. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap;
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #05080F;
  --bg-2: #080D18;
  --panel: #0B1322;
  --panel-2: #0F1A2D;
  --field: #0A1120;
  --line: #1A283E;
  --line-2: #243652;
  --text: #EAF1F8;
  --text-2: #B9C7D8;
  --muted: #7488A0;
  --cyan: #4CC9F0;
  --blue: #1592C4;
  --cyan-soft: rgba(76, 201, 240, 0.12);
  --red: #FF6B7D;
  --red-soft: rgba(255, 107, 125, 0.13);
  --amber: #F5B94D;
  --amber-soft: rgba(245, 185, 77, 0.13);
  --green: #4FD6A3;
  --green-soft: rgba(79, 214, 163, 0.12);
  --violet: #A79BFF;
  --radius: 10px;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); min-height: 100vh;
  display: flex; flex-direction: column; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; margin-top: 0.2em; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.8em; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
small, .small { font-size: 0.85rem; }
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }

/* ---------- header */
.top { display: flex; align-items: center; gap: 1.2rem; padding: 0.7rem 1.4rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #070C17, var(--bg)); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none !important; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .word { font-family: var(--display); font-weight: 700; letter-spacing: 0.14em; font-size: 1.05rem; }
.brand .sub { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; color: var(--cyan); letter-spacing: 0.08em;
  border: 1px solid rgba(76, 201, 240, 0.4); border-radius: 4px; padding: 1px 5px; }
nav.main { display: flex; gap: 0.15rem; flex-wrap: wrap; flex: 1; }
nav.main a { color: var(--text-2); padding: 0.4rem 0.7rem; border-radius: 7px; font-size: 0.92rem; }
nav.main a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
nav.main a.on { background: var(--cyan-soft); color: var(--cyan); }
nav.main .sep { width: 1px; background: var(--line); margin: 0.3rem 0.4rem; }
.who { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-2); }
.who form { margin: 0; }
.role { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 7px;
  border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.role.admin { color: var(--violet); border-color: rgba(167, 155, 255, 0.4); }
.role.editor { color: var(--cyan); border-color: rgba(76, 201, 240, 0.4); }

/* ---------- layout */
main { flex: 1; width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.4rem 3rem; }
.wide { max-width: 1500px; margin: 0 auto; padding: 1.2rem 1.4rem 3rem; }
.narrow { max-width: 460px; margin: 0 auto; padding: 3.5rem 1.4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.2rem; }
.page-head h1 { margin: 0; }
.page-head .eyebrow { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 0.3rem; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 900px) { .g-main { grid-template-columns: minmax(0, 1fr); } }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; padding: 0.9rem 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin-bottom: 0.7rem; }
.panel-head h2 { margin: 0; }
.stack > * + * { margin-top: 1rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem;
  display: block; color: var(--text); text-decoration: none !important; position: relative; overflow: hidden; }
a.tile:hover { border-color: var(--line-2); background: var(--panel-2); }
.tile .n { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.tile .l { color: var(--text-2); font-size: 0.86rem; margin-top: 0.35rem; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-2); }
.tile.t-idea::before { background: var(--violet); }
.tile.t-progress::before { background: var(--cyan); }
.tile.t-pending::before { background: var(--amber); }
.tile.t-granted::before { background: var(--green); }

/* ---------- target meter */
.target { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.2rem; align-items: center; }
.target .big { font-family: var(--display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.target .big span { color: var(--muted); font-size: 1.2rem; }
meter { width: 100%; height: 12px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); }
meter::-webkit-meter-bar { background: var(--field); border: 0; border-radius: 6px; height: 12px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value
  { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 6px; }
meter::-moz-meter-bar { background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 6px; }

/* ---------- tables */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.ref { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); white-space: nowrap; }
.empty { color: var(--muted); padding: 1.2rem 0.2rem; }

/* ---------- badges and urgency */
.badge { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge.s-draft { color: var(--cyan); border-color: rgba(76, 201, 240, 0.35); background: var(--cyan-soft); }
.badge.s-filed, .badge.s-published { color: var(--amber); border-color: rgba(245, 185, 77, 0.35); background: var(--amber-soft); }
.badge.s-granted { color: var(--green); border-color: rgba(79, 214, 163, 0.35); background: var(--green-soft); }
.badge.s-refused, .badge.s-withdrawn, .badge.s-lapsed, .badge.s-abandoned { color: var(--muted); }
.badge.i-open { color: var(--violet); border-color: rgba(167, 155, 255, 0.35); }
.badge.i-promoted { color: var(--cyan); }
.due { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.u-overdue { color: var(--red); }
.u-soon { color: var(--amber); }
.u-near { color: var(--cyan); }
.u-later, .u-info { color: var(--text-2); }
.u-done, .u-not_required { color: var(--green); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--muted); }
.dot.u-overdue { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.u-soon { background: var(--amber); }
.dot.u-near { background: var(--cyan); }
.dot.u-done, .dot.u-not_required { background: var(--green); }
.strike { text-decoration: line-through; color: var(--muted); }

/* ---------- forms */
label { display: block; font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.3rem; font-weight: 500; }
.hint { color: var(--muted); font-size: 0.8rem; font-weight: 400; display: block; margin-top: 0.15rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line-2); border-radius: 7px;
  padding: 0.55rem 0.7rem; font: inherit; font-size: 0.95rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(76, 201, 240, 0.45); outline-offset: 0;
  border-color: var(--cyan); }
textarea { resize: vertical; line-height: 1.6; min-height: 5.5rem; }
input.code { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.35em; text-align: center; }
input[type=file] { color: var(--text-2); font-size: 0.88rem; max-width: 100%; }
.field { margin-bottom: 0.95rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; color: var(--text); margin-bottom: 0.7rem; }
.check input { margin-top: 0.3rem; accent-color: var(--cyan); flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem 0.3rem; margin: 0 0 1rem; }
legend { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 0.4rem; }
details > summary { cursor: pointer; color: var(--text-2); }
details[open] > summary { margin-bottom: 0.7rem; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--text); padding: 0.5rem 0.95rem; border-radius: 8px; font: 500 0.9rem var(--sans); cursor: pointer;
  text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: linear-gradient(180deg, #5BD1F5, #36B6E3); color: #03121C; border-color: transparent; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--red); border-color: rgba(255, 107, 125, 0.4); }
.btn.ghost { background: transparent; }
.btn.small { padding: 0.28rem 0.6rem; font-size: 0.8rem; border-radius: 6px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--cyan); padding: 0; font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
form.inline { display: inline; margin: 0; }

/* ---------- messages */
.flash { border-radius: 8px; padding: 0.7rem 0.95rem; margin-bottom: 1rem; border: 1px solid; font-size: 0.93rem; }
.flash.ok { background: var(--green-soft); border-color: rgba(79, 214, 163, 0.35); }
.flash.info { background: var(--cyan-soft); border-color: rgba(76, 201, 240, 0.35); }
.flash.warn { background: var(--amber-soft); border-color: rgba(245, 185, 77, 0.4); }
.flash.error { background: var(--red-soft); border-color: rgba(255, 107, 125, 0.4); }
.notice { border-left: 3px solid var(--amber); background: var(--amber-soft); padding: 0.65rem 0.9rem; border-radius: 0 8px 8px 0;
  font-size: 0.9rem; margin-bottom: 1rem; }
.notice.cyan { border-color: var(--cyan); background: var(--cyan-soft); }
.notice.red { border-color: var(--red); background: var(--red-soft); }
.conf-strip { background: repeating-linear-gradient(-45deg, rgba(245, 185, 77, 0.07) 0 10px, transparent 10px 20px);
  border-bottom: 1px solid var(--line); color: var(--amber); font: 500 0.7rem var(--mono); letter-spacing: 0.12em;
  text-align: center; padding: 3px; text-transform: uppercase; }
.conf-strip.public { color: var(--green); background: none; }

/* ---------- issues list */
.issues { list-style: none; padding: 0; margin: 0; }
.issues li { padding: 0.5rem 0.6rem 0.5rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.issues li:last-child { border-bottom: 0; }
.issues li::before { position: absolute; left: 0.55rem; top: 0.48rem; font: 700 0.8rem var(--mono); }
.issues li.error::before { content: "!"; color: var(--red); }
.issues li.warning::before { content: "?"; color: var(--amber); }
.issues li.info::before { content: "i"; color: var(--cyan); }
.issues li.ok::before { content: "\2713"; color: var(--green); }

/* ---------- timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 1rem 1.7rem; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue); }
.timeline li.k-office::before { border-color: var(--amber); }
.timeline li.k-response::before { border-color: var(--green); }
.timeline li.k-milestone::before { background: var(--cyan); border-color: var(--cyan); }
.timeline .when { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.timeline .what { font-weight: 600; }
.timeline .meta { font-size: 0.82rem; color: var(--text-2); }

/* ---------- editor */
.editor { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
@media (max-width: 1250px) { .editor { grid-template-columns: 190px minmax(0, 1fr); } .editor .side-right { grid-column: 1 / -1; } }
@media (max-width: 800px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor .toc { position: static; } }
.toc { position: sticky; top: 76px; font-size: 0.88rem; }
.toc a { display: block; color: var(--text-2); padding: 0.3rem 0.6rem; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-color: var(--cyan); text-decoration: none; }
.toc .sub { padding-left: 1.2rem; font-size: 0.82rem; }
.editor-bar { position: sticky; top: 61px; z-index: 10; background: rgba(5, 8, 15, 0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.8rem; display: flex; gap: 0.6rem;
  align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.editor-bar input[type=text] { flex: 1; min-width: 180px; }
.editor-bar .state { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.editor-bar .state.dirty { color: var(--amber); }
.sec { margin-bottom: 1.4rem; scroll-margin-top: 130px; }
.sec .sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sec .sec-head h2 { font-size: 1rem; margin-bottom: 0.25rem; }
.sec textarea { font-family: "Liberation Serif", "Times New Roman", Georgia, serif; font-size: 1.02rem; line-height: 1.7;
  min-height: 4.5rem; background: #0B1424; }
.sec textarea.title-in { min-height: 0; }
.counter { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.counter.over { color: var(--red); }
.claim { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 0.5rem; margin-bottom: 0.6rem; align-items: start; }
.claim .cn { font-family: var(--mono); color: var(--cyan); padding-top: 0.55rem; text-align: right; }
.claim textarea { min-height: 4.5rem; }
.claim .tools { display: flex; flex-direction: column; gap: 0.25rem; }
.claim.dependent .cn { color: var(--text-2); }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; }
.fig { border: 1px solid var(--line); border-radius: 8px; background: var(--field); padding: 0.5rem; font-size: 0.82rem; }
.fig img { width: 100%; height: 130px; object-fit: contain; background: #fff; border-radius: 4px; display: block; }
.fig .fh { display: flex; justify-content: space-between; margin: 0.35rem 0 0.2rem; font-family: var(--mono); }
.fig form { margin-top: 0.3rem; }
.fig input[type=text], .fig input[type=number] { font-size: 0.8rem; padding: 0.3rem 0.45rem; }

/* ---------- read view and comparison */
.doc { background: #F7F8FA; color: #111; border-radius: 6px; padding: 2.2rem 2.6rem; font-family: "Liberation Serif",
  "Times New Roman", Georgia, serif; font-size: 1.04rem; line-height: 1.65; }
.doc h2 { font-family: inherit; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 1.4em; color: #111; }
.doc h1 { font-family: inherit; text-align: center; font-size: 1.15rem; color: #111; }
.doc .pn { color: #555; font-size: 0.9em; margin-right: 0.4em; }
.doc ol.claims { padding-left: 1.6rem; }
.doc ol.claims li { margin-bottom: 0.7em; }
.diff { font-family: "Liberation Serif", Georgia, serif; font-size: 1rem; line-height: 1.65; background: var(--field);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; }
del { background: var(--red-soft); color: #FFB3BC; text-decoration: line-through; }
ins { background: var(--green-soft); color: #A8F0D2; text-decoration: none; }

/* ---------- overview */
.hero { padding: 0.4rem 0 1.4rem; }
.hero p { color: var(--text-2); max-width: 70ch; }
.qr { background: #fff; border-radius: 8px; padding: 10px; width: 210px; margin: 0.6rem auto; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.08em; word-break: break-all; text-align: center;
  background: var(--field); border: 1px dashed var(--line-2); border-radius: 6px; padding: 0.5rem; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: 0.5rem 0.85rem; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 0.92rem; }
.tabs a.on { color: var(--cyan); border-color: var(--cyan); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs .n { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-left: 0.3rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; white-space: pre-line; }
.pre { white-space: pre-line; }
.err-code { font-family: var(--mono); color: var(--cyan); font-size: 3rem; }
.anchor { scroll-margin-top: 80px; }
.panel + .panel, section.panel + section.panel { margin-top: 1rem; }
.stack > .panel + .panel { margin-top: 1rem; }
.grid > .stack > * + * { margin-top: 1rem; }

/* ---------- phones */
@media (max-width: 760px) {
  .top { gap: 0.5rem 0.8rem; padding: 0.6rem 1rem; }
  .who { margin-left: auto; }
  .who > span:first-child { display: none; }
  nav.main { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav.main a { white-space: nowrap; padding: 0.35rem 0.6rem; }
  nav.main .sep { display: none; }
  .wrap, .wide { padding: 1.1rem 1rem 2.5rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: 1.4rem 1.2rem; }
}

td.num select { width: auto; min-width: 9.5rem; }
