/*
 * CO-UP stylesheet, following the CO-OP ev design guidelines, as CO-ORM does:
 * black and white, rounded corners (see the end of this file), no shadows, Special Gothic Expanded One
 * for titles and buttons, Inter for text, magenta focus ring.
 *
 * CO-UP is deliberately sober: COLOUR IS KEPT FOR STATUS ONLY
 * (red = down or critical, amber = degraded or warning, green = OK),
 * always with a word next to it. See the "CO-UP status" section at the end.
 *
 * All colours, fonts and sizes are defined once, in the variables below.
 */
/* ---- Fonts (bundled with CO-UP: no call to Google from users' browsers) ---- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  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: 500; font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
  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: 700; font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  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; }
@font-face { font-family: "Special Gothic Expanded One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/special-gothic-expanded-one-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+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: "Special Gothic Expanded One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/special-gothic-expanded-one-latin-ext-400-normal.woff2") format("woff2");
  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; }

/* ---- Design tokens (from the CO-OP ev design system) ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --primary: #0f69b4;      /* CO-OP blue: links on white (5.7:1) */
  --magenta: #ff42fa;      /* focus ring */
  --amber: #f9b133;
  --grey-light: #e8e8e8;   /* hairlines */
  --input: #f8f8f8;        /* field fill */
  --muted: #5e5e5e;        /* secondary text on white (6.5:1) */
  --error: #c42b1c;        /* darker than the brand red so error text reads on white (6.0:1) */
  --font-display: "Special Gothic Expanded One", Inter, Arial, sans-serif;
  --font-text: Inter, Arial, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 32px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--font-text); font-weight: 500;
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--black); }
:focus-visible { outline: 4px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 38px; }
h2 { font-size: 17px; line-height: 24px; margin-bottom: var(--space-3); }
h3 { font-family: var(--font-text); font-weight: 700; font-size: 15px; margin: var(--space-3) 0 var(--space-2); }
p { margin: 0 0 var(--space-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Page layout: black side menu + white content ---- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.sidebar { flex: 1 1 230px; background: var(--black); color: var(--white); padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar a { color: var(--white); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; display: block; }
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-text); font-size: 10px; letter-spacing: .02em; color: #acacac; margin-top: 4px; }
.sidebar form.search { display: flex; gap: 6px; }
.sidebar form.search input { flex: 1; min-width: 0; background: var(--white); }
.menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-size: 15px; border-left: 4px solid transparent; }
.menu a:hover { background: #1c1c1c; }
.menu a[aria-current="page"] { border-left-color: var(--white); background: #1c1c1c; font-weight: 700; }
.menu .badge { font-size: 11px; color: #acacac; font-weight: 500; }
.sidebar-user { margin-top: auto; border-top: 1px solid #333; padding-top: var(--space-3); font-size: 13px; }
.sidebar-user .role { color: #acacac; }
.linkbutton { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.main { flex: 999 1 560px; min-width: 0; padding: var(--space-4) var(--space-5) 64px; display: flex; flex-direction: column; gap: var(--space-4); }
.sidebar-content { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.sidebar .menu-toggle { display: none; }
@media (max-width: 800px) {
  .main { padding: var(--space-4) var(--space-3) 48px; }
  .sidebar { flex-basis: 100%; gap: var(--space-3); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px var(--space-3); }
  .sidebar-content { flex-basis: 100%; gap: var(--space-3); }
  .sidebar-user { margin-top: 0; }
  /* On phones the menu folds behind the "Menu" button (only when JavaScript works). */
  .js .sidebar .menu-toggle { display: inline-flex; background: var(--white); }
  .js .sidebar-content { display: none; }
  .js .sidebar.open .sidebar-content { display: flex; }
}

/* ---- Page header ---- */
.breadcrumb { font-size: 13px; color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-start; justify-content: space-between; }
.page-head .subtitle { color: var(--muted); margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---- Buttons: square, labels in the display face ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px;
  border: 2px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); text-decoration: none;
  font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.2; cursor: pointer; }
.btn:hover { background: var(--black); color: var(--white); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: #333; border-color: #333; color: var(--white); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.btn-quiet { border-color: var(--grey-light); }
.btn[aria-pressed="true"], .btn.is-active { background: var(--black); color: var(--white); }
.btn-danger { border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: var(--error); border-color: var(--error); color: var(--white); }
form.inline { display: inline; }

/* ---- Cards (content blocks) ---- */
.card { background: var(--white); border: 1px solid var(--grey-light); padding: 20px; }
.card > h2:first-child, .card-head { margin-top: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.card-head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-4); align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Details lists ---- */
dl.details { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.details { grid-template-columns: 1fr; gap: 2px; } dl.details dd { margin-bottom: 8px; } }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; font-size: 12px; text-transform: none; color: var(--black);
  border-bottom: 2px solid var(--black); padding: 8px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--grey-light); padding: 10px 8px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl a { font-weight: 700; }
.empty { color: var(--muted); padding: 8px 0; }

/* ---- Tags and status labels: square ---- */
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--black); background: var(--white); font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.tag-solid { background: var(--black); color: var(--white); }
.tag-overdue { background: var(--error); border-color: var(--error); color: var(--white); }
.tag-grey { border-color: var(--grey-light); background: var(--grey-light); }
.phase { display: inline-block; padding: 0 6px; border: 1px dashed var(--muted); font-size: 11px; color: var(--muted); }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 960px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 24px; }
.field label, .field legend, .label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field.wide { grid-column: 1 / -1; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number],
input[type=url], input[type=tel], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--black); background: var(--input);
  border: 2px solid var(--black); border-radius: 0; padding: 8px 12px; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--black); }
.help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--error); font-size: 13px; font-weight: 700; }
.errorlist li::before { content: "Error: "; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.choices label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; margin: 0; }
.radio-buttons { display: flex; flex-wrap: wrap; gap: 0; }
.radio-buttons label { margin: 0; }
.radio-buttons input { position: absolute; opacity: 0; }
.radio-buttons span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--black);
  margin-right: -2px; font-family: var(--font-display); font-size: 14px; cursor: pointer; background: var(--white); }
.radio-buttons input:checked + span { background: var(--black); color: var(--white); }
.radio-buttons input:focus-visible + span { outline: 4px solid var(--magenta); outline-offset: 2px; }
.confidential textarea { border-style: dashed; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }

/* ---- Link picker (chips) ---- */
.picker { position: relative; }
.picker-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 2px 2px 10px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 700; }
.chip button { background: none; border: 0; color: var(--white); font-size: 18px; line-height: 1; min-width: 32px; min-height: 32px; cursor: pointer; }
.chip.is-new { background: var(--white); color: var(--black); border: 2px dashed var(--black); }
.chip.is-new button { color: var(--black); }
.picker-results { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none;
  background: var(--white); border: 2px solid var(--black); border-top: 0; max-height: 280px; overflow-y: auto; }
.picker-results li { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--grey-light); font-size: 14px; }
.picker-results li[aria-selected="true"], .picker-results li:hover { background: var(--black); color: var(--white); }
.picker-results .extra { display: block; font-size: 12px; opacity: .75; }

/* ---- Messages and warnings ---- */
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 16px; border: 2px solid var(--black); font-weight: 700; }
.messages li.error { border-color: var(--error); color: var(--error); }
.warning { border: 4px solid var(--black); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.warning h2 { margin: 0; }

/* ---- Login pages ---- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: var(--black); }
.auth-box { width: 100%; max-width: 440px; background: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.auth-box .brand { color: var(--black); }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; columns: 2; padding: 0; list-style: none; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; align-items: center; font-size: 14px; }

/* ---- Settings tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--black); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: none; color: var(--black);
  font-family: var(--font-display); font-size: 13px; }
.tabs a[aria-current="page"] { background: var(--black); color: var(--white); }
.copy-box { display: flex; gap: 8px; }
.copy-box input { flex: 1; }

@media print { .sidebar, .actions, .btn { display: none !important; } .main { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* English / French switch (bottom of the menu, and under the login box) */
.language-switch { margin-top: 6px; }
.auth-language { margin-top: 20px; text-align: right; font-size: 0.9em; }


/* ---- The brand's gradient: three thin accents only ---- */
:root { --gradient: linear-gradient(75deg, #0f69b4, #ff42fa, #f9b133); }
.main > h1::after, .page-head h1::after { content: ""; display: block; width: 120px; height: 3px; background: var(--gradient); margin-top: 12px; }
.menu a[aria-current="page"] { border-left-color: transparent; position: relative; }
.menu a[aria-current="page"]::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: var(--gradient); }

/* =====================================================================
 * CO-UP status: the only place where colour carries meaning.
 * Black text on each fill (contrast checked): red 5.6:1, amber 11:1, green 16:1.
 * ===================================================================== */
:root { --st-down: #f34e40; --st-warn: #f9b133; --st-ok: #7ffb99; }
.st { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; color: var(--black); }
.st-down { background: var(--st-down); }
.st-warn { background: var(--st-warn); }
.st-ok { background: var(--st-ok); }
.st-none { background: var(--grey-light); }

/* Rule categories: told apart by a tag and an icon, never by colour. */
.cat { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; font-size: 12px; font-weight: 700; line-height: 20px; white-space: nowrap; border: 1px solid var(--black); }
.cat-it { background: var(--black); color: var(--white); }   /* Vital signs */
.cat-biz { background: var(--white); color: var(--black); }  /* Business pulse */
.cat svg { width: 12px; height: 12px; }

/* Key figures at the top of the status page */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); }
.figure { border: 1px solid var(--black); padding: var(--space-3); }
.figure .value { font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.figure .label { font-size: 13px; color: var(--muted); }
.deps { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-4); }

/* =====================================================================
 * Rounded corners (asked on 10 Nov 2026, as on the CPO simulator).
 * One value for every frame, button, field and label: change it here.
 * ===================================================================== */
:root { --radius: 8px; }
.card, .figure, .btn, .auth-box, .messages li, .tag, .st, .cat, .phase,
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number],
input[type=url], input[type=tel], input:not([type]), select, textarea { border-radius: var(--radius); }
.menu a { border-radius: 0 var(--radius) var(--radius) 0; }
.tabs a { border-radius: var(--radius) var(--radius) 0 0; }
.brand img { border-radius: 6px; }
/* Login box: the gradient line follows the rounded top */
.auth-box { position: relative; overflow: hidden; }
.auth-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gradient); }
:focus-visible { border-radius: var(--radius); }

/* Alignment: inside a frame, the first and last columns of a table line up
 * with the frame's title and with the labels on the right. */
table.tbl th:first-child, table.tbl td:first-child { padding-left: 0; }
table.tbl th:last-child, table.tbl td:last-child { padding-right: 0; }
td.end, th.end { text-align: right; }

/* ---- Action page: list of alerts on the left, the chosen one on the right ---- */
.action-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: var(--space-4); align-items: start; }
.action-layout > .card { display: flex; flex-direction: column; gap: var(--space-3); }
.alert-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--grey-light); border-radius: var(--radius); text-decoration: none; color: var(--black); }
.alert-item[aria-current="true"] { border: 2px solid var(--black); padding: 11px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.action-buttons .snooze { display: flex; gap: var(--space-2); }
.action-buttons .snooze select { width: auto; }
.action-buttons .btn, .fix-form .btn { min-height: 48px; }   /* comfortable on a phone, at night */
.btn[disabled] { opacity: .45; cursor: default; }
.timeline { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
h3 { font-size: 14px; margin: 0 0 8px; }
@media (max-width: 800px) { .action-layout { grid-template-columns: 1fr; } }

/* ---- App page: the figures read on /metrics ---- */
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }  /* digits line up in columns */
.tbl code { font-size: 13px; }

/* ---- Confirmation before running a fix (action page) ---- */
.confirm { border: 2px solid var(--black); border-radius: var(--radius); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
/* Buttons at the end of a table row, lined up on the right */
.row-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }

/* ---- Vital signs: the writing steps ---- */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: 0; margin: 0 0 var(--space-4); font-size: 14px; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps .n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--black); border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--black); }
.steps li.done .n, .steps li[aria-current="step"] .n { background: var(--black); color: var(--white); }
.steps li[aria-current="step"] { color: var(--black); font-weight: 700; }
.pills { display: flex; gap: 4px; margin: var(--space-3) 0; }
.pills a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--black); border-radius: var(--radius); text-decoration: none; color: var(--black); font-size: 14px; }
.pills a[aria-current="page"] { background: var(--black); color: var(--white); }
.tag-on { background: var(--black); color: var(--white); border-color: var(--black); }
.row-actions.start { justify-content: flex-start; }
.quote { border-left: 3px solid var(--black); padding: 4px 0 4px var(--space-3); margin: var(--space-3) 0; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-3); margin: var(--space-2) 0; }
dl.summary dt { font-weight: 700; }
dl.summary dd { margin: 0; }
textarea.code, pre.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre; overflow-x: auto; tab-size: 4; }
pre.code { border: 1px solid var(--grey-light); border-radius: var(--radius); padding: var(--space-3); margin: 6px 0 0; background: var(--white); }
.inline { display: flex; gap: var(--space-2); }
.inline input { flex: 1; }
details.figures-list { margin-top: var(--space-4); }
details.figures-list summary { cursor: pointer; font-size: 14px; }
details.danger > summary { list-style: none; }
details.danger > summary::-webkit-details-marker { display: none; }
details.danger[open] { flex-basis: 100%; }
details.danger .confirm { margin-top: var(--space-2); max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack > *, .stack .quote, .stack dl.summary, .stack .messages { margin-top: 0; margin-bottom: 0; }
.watchers { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5, 32px); font-size: 14px; }
