/* bgtranscribe: minimal black and white with one accent. Mobile first. */

:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --soft: #f4f4f4;
  --accent: #e8452c;
  --good: #1a9a5b;
  --warn: #d68a00;
  --bad: #e8452c;
  --vbad: #8e44ad;
  --radius: 12px;
  --tap: 44px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --board: #f6f6f6; --board-bar: #e8e8e8; --point-a: #cbcbcb; --point-b: #e4e4e4;
  --chip-dark-edge: #111; --ck-dark-edge: #000;
  color-scheme: light dark;
}

/* Dark follows the system unless the user picked a theme in Settings (data-theme on <html>). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --line: #262626;
  --soft: #171717;
  --board: #1b1b1b; --board-bar: #111; --point-a: #3a3a3a; --point-b: #262626;
  --chip-dark-edge: #777; --ck-dark-edge: #8a8a8a;
  --vbad: #b57edc;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0b;
    --fg: #f2f2f2;
    --muted: #9a9a9a;
    --line: #262626;
    --soft: #171717;
    --board: #1b1b1b; --board-bar: #111; --point-a: #3a3a3a; --point-b: #262626;
    --chip-dark-edge: #777; --ck-dark-edge: #8a8a8a;
    --vbad: #b57edc;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 var(--font);
  -webkit-tap-highlight-color: transparent;
}

body.centered {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }

/* Forms */
label { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 4px; }

input, select, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* prevents zoom on iOS */
}
input:focus, select:focus, textarea:focus, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 1px;
}
input[type=checkbox], input[type=radio] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--fg); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 10px 18px;
  border: 1px solid var(--fg);
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
button.secondary, .button.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
button.ghost { background: transparent; color: var(--fg); border-color: transparent; }
button.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
button:disabled { opacity: .35; cursor: default; }
button:active:not(:disabled) { transform: translateY(1px); }

/* Login */
.login { width: 100%; max-width: 360px; text-align: center; }
.login .logo { display: block; margin: 0 auto 16px; border-radius: 16px; }
.login form { text-align: left; margin-top: 24px; display: grid; gap: 12px; }
.login form button { width: 100%; }

.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--soft);
  text-align: left;
  font-size: .95rem;
}
.notice.error { color: var(--bad); }

/* ------------------------------------------------------------ app layout */

body.app { min-height: 100dvh; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px;
  padding: max(6px, env(safe-area-inset-top)) 8px 6px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { grid-column: 1 / 3; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1rem; padding-left: 6px; }
.topbar .brand img { border-radius: 7px; }
.topbar .title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-block { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.title-block .sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 2px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); min-height: 0; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--fg);
}
.icon-btn:hover { background: var(--soft); }
.icon-btn.big { width: 52px; height: 52px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#menu .icon { fill: currentColor; stroke: none; }

#sync { width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 4px; transition: background .3s; }
#sync[data-state=pending] { background: var(--muted); }
#sync[data-state=offline] { background: var(--warn); }

.page { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.center { text-align: center; }
.empty { margin: 48px 0; }
.wide { width: 100%; }
.button.wide { display: flex; }
.grow { flex: 1; }

/* Match list */
.match-list { margin-top: 16px; border-top: 1px solid var(--line); }
.match-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.match-row:active { background: var(--soft); }
.match-main { display: flex; flex-direction: column; min-width: 0; }
.match-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The score above the pill (which comes first in the markup); every pill is as wide as PLAYING. */
.match-score { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 4px; flex-shrink: 0; font-size: 1.05rem; }
.match-score .mono { white-space: nowrap; }
.match-score .pill { min-width: 5.8em; text-align: center; }
.pill { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pill:empty { display: none; }
.pill.live { background: var(--accent); color: #fff; }
.pill.won { background: var(--fg); color: var(--bg); }

/* Forms */
.form { display: grid; gap: 6px; }
.form > label, .form details > label { margin-top: 10px; }
.form button[type=submit] { margin-top: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 label { margin-top: 10px; }
.suggest-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.suggest li { padding: 10px 10px; border-radius: 7px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest li:hover, .suggest li.on { background: var(--soft); }
label.check { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 1rem; margin: 8px 0 0; min-height: 36px; }
details { margin-top: 12px; }
details > summary { cursor: pointer; color: var(--muted); padding: 8px 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { background: transparent; color: var(--fg); border: 0; border-radius: 8px; min-height: 38px; font-weight: 500; padding: 6px 8px; }
.seg button.on { background: var(--fg); color: var(--bg); }
.chip { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--fg); vertical-align: -2px; flex: none; }
.chip.light { background: #fff; border-color: #222; }
.chip.dark { background: #111; border-color: var(--chip-dark-edge); }
/* On a selected (black) segment the dark checker needs a light edge to show. */
.seg button.on .chip.dark { border-color: #fff; }

/* ------------------------------------------------------------ play screen */

.play { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 6px calc(12px + env(safe-area-inset-bottom)); }
.strip { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 6px; font-size: .95rem; }
.strip .pname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .onroll { font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; }
.strip .rolled { display: inline-flex; gap: 3px; }
.strip .rolled .die { width: 20px; height: 20px; }
.strip .pips { margin-left: auto; font-family: var(--mono); color: var(--muted); font-size: .85rem; }

.board-wrap { width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.board { display: block; width: 100%; height: auto; max-height: 62dvh; }
.board .bd-frame { fill: var(--board); }
.board .bd-bar { fill: var(--board-bar); }
.board .bd-tray { fill: var(--board); }
.board .bd-pt-a { fill: var(--point-a); }
.board .bd-pt-b { fill: var(--point-b); }
/* Lit points keep the light/dark alternation, so neighbours stay apart (and match the real board). */
.board .bd-pt-a.last { fill: color-mix(in srgb, var(--accent) 30%, var(--point-a)); }
.board .bd-pt-b.last { fill: color-mix(in srgb, var(--accent) 14%, var(--point-b)); }
.board .bd-pt-a.target { fill: color-mix(in srgb, var(--accent) 55%, var(--point-a)); }
.board .bd-pt-b.target { fill: color-mix(in srgb, var(--accent) 25%, var(--point-b)); }
.board .bd-dist { pointer-events: none; }
.board .bd-dist circle { fill: var(--accent); }
.board .bd-dist text { font: 700 13px var(--font); fill: #fff; text-anchor: middle; }
.board .bd-off-target { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
.board .bd-num { font: 10px var(--font); fill: var(--muted); text-anchor: middle; }
.board .ck { stroke-width: 1.5; }
.board .ck-light { fill: #fdfdfd; stroke: #1a1a1a; }
.board .ck-dark { fill: #161616; stroke: var(--ck-dark-edge); }
.board .ck.selected { stroke: var(--accent); stroke-width: 4; }
.board .ghost { opacity: .75; pointer-events: none; }
.board .ck-count { font: 600 15px var(--font); text-anchor: middle; pointer-events: none; }
.board .ck-count-light { fill: #111; }
.board .ck-count-dark { fill: #fff; }
.board .bd-cube rect { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.board .bd-cube text { font: 700 17px var(--font); fill: var(--fg); text-anchor: middle; }
.board .bd-cube.offered rect { stroke: var(--accent); stroke-width: 3; }
.board .hit { fill: transparent; cursor: pointer; }
/* Replay arrows and cube pills, coloured by verdict; a halo keeps arrows readable on any checker. */
.board .v-good { --v: var(--good); }
.board .v-doubtful { --v: var(--warn); }
.board .v-error { --v: var(--bad); }
.board .v-blunder { --v: var(--vbad); }
.board .v-plain { --v: var(--fg); }
.board .bd-halo { fill: none; stroke: var(--bg); stroke-width: 8; stroke-linecap: round; opacity: .75; pointer-events: none; }
.board .bd-arrow { fill: none; stroke: var(--v); stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.board .bd-halo.dash { stroke-width: 6; stroke-dasharray: 6 6; }
.board .bd-arrow.dash { stroke-width: 2.5; stroke-dasharray: 6 6; }
.board .bd-ah { fill: var(--v); }
.board .bd-pill rect { fill: var(--v); }
.board .bd-pill text { font: 700 13px var(--font); fill: #fff; text-anchor: middle; }
.board .bd-pill.v-doubtful text { fill: #111; }
.board .bd-pill.v-plain text { fill: var(--bg); }
.board .bd-die rect { stroke-width: 1.5; }
.board .bd-die-light rect { fill: #fdfdfd; stroke: #1a1a1a; }
.board .bd-die-light circle { fill: #111; }
.board .bd-die-dark rect { fill: #161616; stroke: var(--ck-dark-edge); }
.board .bd-die-dark circle { fill: #fff; }
.board.locked .hit { cursor: default; }

.actionbar { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 6px; margin-top: 4px; min-height: 64px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.actions .prompt { width: 100%; font-size: .9rem; color: var(--muted); }
.actions .prompt.warn { color: var(--warn); }
.actions .result { width: 100%; display: flex; flex-direction: column; gap: 2px; }
.dice-btn { background: transparent; border: 2px solid var(--line); color: var(--fg); padding: 6px 10px; gap: 6px; min-height: 56px; }
.dice-btn:hover { border-color: var(--fg); }
.die { width: 34px; height: 34px; }
.die rect { fill: var(--bg); stroke: var(--fg); stroke-width: 2.5; }
.die circle { fill: var(--fg); }
.dice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dice-btn.small { min-height: 44px; padding: 4px; gap: 3px; }
.dice-btn.small .die { width: 26px; height: 26px; }
.dice-btn:disabled { opacity: .18; }

.movelist { margin-top: 8px; }
.movelist ol, .movelist-static { margin: 0; padding: 8px 12px 8px 36px; font-size: .9rem; max-height: 30dvh; overflow: auto; background: var(--soft); border-radius: var(--radius); }
.movelist ol:empty { display: none; }
.movelist li, .movelist-static li { padding: 2px 0; }
.movelist .who, .movelist-static .who { display: inline-block; min-width: 5.5em; color: var(--muted); }
.movelist .dd, .movelist-static .dd { font-family: var(--mono); }
.movelist-static { max-height: none; margin: 4px 0 14px; }

/* Sheets (bottom dialogs) */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 520px; max-height: 88dvh; overflow: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .18s ease-out; }
@media (min-width: 600px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 18px; } }
.menu { display: grid; gap: 8px; margin-top: 8px; }
.menu .button, .menu button { width: 100%; justify-content: flex-start; }
.danger { color: var(--bad) !important; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 30;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: .9rem; opacity: 0; transition: .2s; pointer-events: none; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Summary */
.scoreline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; text-align: center; }
.scoreline div { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.scoreline strong { font-size: 2rem; }
.game { border-bottom: 1px solid var(--line); margin: 0; scroll-margin-top: 72px; }
.game summary { display: flex; gap: 8px; align-items: baseline; padding: 12px 0; color: var(--fg); list-style: none; }
.game summary::-webkit-details-marker { display: none; }
/* Disclosure chevron: points right when closed and turns down when the game is open. */
.game summary::before {
  content: ''; flex: none; align-self: baseline; width: 7px; height: 7px; margin: 0 4px 0 2px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-1px) rotate(-45deg); transition: transform .15s;
}
.game[open] summary::before { transform: translateY(-3px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .game summary::before { transition: none; } }

/* Analysis */
.feedback, .equity {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: center;
  width: 100%; min-height: 36px; margin: 2px 0; padding: 6px 10px;
  border: 0; border-radius: 10px; background: var(--soft); color: var(--fg);
  font: inherit; font-size: .9rem; font-weight: 400; text-align: center;
}
.feedback[hidden], .equity[hidden] { display: none; }
.equity { font-family: var(--mono); font-size: .78rem; color: var(--muted); background: transparent; min-height: 0; padding: 0 6px; }
.feedback b { font-weight: 600; }
.mark { font-weight: 700; font-family: var(--mono); }
.mark.good { color: var(--good); }
.mark.doubtful { color: var(--warn); }
.mark.error { color: var(--bad); }
.mark.blunder { color: var(--vbad); }
.movelist li[data-k] { cursor: pointer; }
.movelist li.on { background: var(--bg); border-radius: 6px; margin: 0 -6px; padding: 2px 6px; font-weight: 600; }
.movelist li.other { opacity: .4; }

/* Replay */
.replay-bar { grid-template-columns: 40px 46px 1fr 46px 40px; gap: 2px; }
.replay-bar .icon-btn { width: 100%; height: 52px; }
.replay-bar .icon-btn:disabled { opacity: .25; }
.replay-bar .actions { min-width: 0; }
.replay-bar .prompt { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay-verdict { height: calc(2 * 1.35em); overflow: hidden; font-size: .9rem; line-height: 1.35; text-align: center; margin-top: 2px; }
.replay-verdict > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay-verdict .best { color: var(--good); font-family: var(--mono); font-weight: 600; }
.replay-verdict .gnu { color: var(--muted); }
/* Fixed columns, right-aligned: each label stays next to its value, and both players' rows line up. */
.strip .chances { display: inline-flex; gap: 1ch; margin-left: auto; font-family: var(--mono); font-size: .78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip .chances[hidden] { display: none; }
.strip .chances > * { text-align: right; }
.strip .chances > b { min-width: 4ch; }
.strip .chances > span:nth-child(2) { min-width: 5ch; }
.strip .chances > span:nth-child(3) { min-width: 6ch; }
.strip .chances i { font-style: normal; color: var(--muted); }
.strip .chances:not([hidden]) + .pips { display: inline-flex; justify-content: space-between; min-width: calc(4ch + 8px); margin-left: 8px; }
.strip .chances:not([hidden]) + .pips::before { content: '•'; margin-right: 8px; color: var(--muted); }
.replay-who { margin-top: 6px; }
/* Not flex like other buttons: a flex item spills out both sides, and gets no ellipsis. */
.replay-who button { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 34px; }
.replay-link { margin: 12px 0 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.game-res { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; }
.game-pr { font-size: .78rem; }
.game-stats { margin: 6px 0 4px; font-size: .9rem; }
.game-stats th, .game-stats td { padding-top: 6px; padding-bottom: 6px; }
/* The game's Replay button, in the stats header's empty corner. */
.game-stats thead th:first-child { text-align: left; vertical-align: middle; padding-top: 2px; padding-bottom: 6px; }
.replay-btn { min-height: 40px; padding: 6px 14px 6px 11px; gap: 6px; font-size: .92rem; font-weight: 600; white-space: nowrap; }
.replay-btn .icon { width: 16px; height: 16px; }
.game-stats td { white-space: nowrap; }
@media (max-width: 359px) {
  .replay-btn { padding: 6px 9px 6px 7px; gap: 4px; font-size: .84rem; }
  .replay-btn .icon { width: 14px; height: 14px; }
}
.tablewrap { overflow-x: auto; margin: 0 -4px; }
table.cands { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 8px 0 12px; }
table.cands th, table.cands td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.cands th { color: var(--muted); font-weight: 500; }
table.cands td:first-child, table.cands th:first-child { text-align: left; }
table.cands td.mv, table.cands th:nth-child(2) { text-align: left; font-family: var(--mono); }
table.cands tr.played td { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
.verdicts { display: grid; gap: 4px; margin-bottom: 12px; }

/* Match summary */
.progress { height: 6px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 12px 0 6px; }
.progress .bar { height: 100%; width: 0; background: var(--fg); transition: width .3s; }
.verdict-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.verdict-cards div { display: flex; flex-direction: column; padding: 12px; border-radius: var(--radius); background: var(--soft); }
.verdict-cards strong { font-size: 1.2rem; }
table.stats { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
table.stats th, table.stats td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; }
table.stats th { text-align: left; font-weight: 500; }
table.stats thead th { text-align: right; font-weight: 650; }
table.stats tr.big td { font-size: 1.4rem; font-weight: 700; }
table.stats tr.muted th, table.stats tr.muted td { color: var(--muted); font-size: .88rem; }
table.stats tbody th { white-space: nowrap; }
/* The match summary keeps its columns put, whatever the ratings say. */
table.stats.summary { table-layout: fixed; }
table.stats.summary thead th:first-child { width: 43%; }
table.stats.summary thead th { overflow: hidden; text-overflow: ellipsis; }
table.stats tr.rating td { font-size: .8rem; line-height: 1.25; text-wrap: balance; }
.mistakes { padding-left: 22px; }
.mistakes li { padding: 4px 0; }
.notes { white-space: pre-wrap; background: var(--soft); padding: 10px 12px; border-radius: var(--radius); }
.notes-label { margin: 14px 0 4px; }
.notes-label + .notes { margin-top: 0; }
.page-actions { margin-top: 28px; }
.section-head { margin-top: 32px; }
.analysed-at { margin: 0 0 10px; }
.delete-actions { margin-top: 18px; }
.summary-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
