:root {
    --ink: #13202e;
    --muted: #5b6b7b;
    --line: #d9e0e7;
    --bg: #f4f6f8;
    --card: #ffffff;
    --navy: #203b58;
    --ring: #88b8d8;
    --sea: #1d5f8a;
    --sea-dark: #164a6c;
    --sea-soft: #e8f1f7;
    --ok: #1f6f47;
    --ok-bg: #e6f3ec;
    --warn: #7a5200;
    --warn-bg: #fff3d6;
    --err: #9b2226;
    --err-bg: #fbe9ea;
    --radius: 10px;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Iowan Old Style", Charter, "Bitstream Charter", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 var(--sans);
}

a { color: var(--sea); }
a:hover { color: var(--sea-dark); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header and footer */

.site-header { background: var(--navy); color: #fff; border-bottom: 3px solid var(--ring); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand:hover { color: #fff; }
.brand-name { font-weight: 700; letter-spacing: .18em; font-size: 15px; }
.brand-sub { font-size: 13px; opacity: .8; }
/* Menus: details elements, so they open without scripts; area.js closes them on outside clicks. */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .75; }
.menu[open] > summary::after { transform: rotate(180deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; min-width: 220px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(19, 32, 46, .16); }
.menu-panel a { padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu-panel a:hover { background: var(--sea-soft); color: var(--sea-dark); }
.menu-panel a[aria-current="page"] { background: var(--sea-soft); color: var(--sea-dark); font-weight: 650; }
.menu-sep { border-top: 1px solid var(--line); margin: 4px 2px; }
.user-menu > summary { color: #fff; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }
.user-menu > summary:hover { border-color: #fff; }
.user-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Area navigation: switcher of boats, then the tabs of the current boat (scrolling sideways on phones). */
.subnav { background: var(--card); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.switcher { flex: none; }
.switcher > summary, .switcher-label { flex: none; padding: 6px 12px; border-radius: 8px; font-size: 15px; font-weight: 700; color: var(--navy); }
.switcher > summary { background: var(--sea-soft); }
.switcher .menu-panel { left: 0; right: auto; }
.subnav-tabs { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 13px 10px 10px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--sea-dark); }
.tab[aria-current="page"] { color: var(--sea-dark); font-weight: 650; border-bottom-color: var(--sea); }
.tab-reserved::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--err); vertical-align: middle; }
@media (min-width: 761px) {
    .subnav-tabs { flex-wrap: wrap; overflow: visible; }
}

.preview-bar { background: var(--warn-bg); color: var(--warn); font-size: 14px; padding: 8px 0; border-bottom: 1px solid #f0dca8; }
.preview-bar a { color: var(--warn); font-weight: 600; }

.main { padding-top: 28px; padding-bottom: 64px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 20px 0 32px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* Common blocks */

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 30px; margin: 4px 0 8px; }
h2 { font-size: 21px; margin: 32px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 10px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin: 0; font-weight: 600; }
.subtitle { color: var(--muted); margin: 0; }
.hint { color: var(--muted); font-size: 14px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.card h2 { margin-top: 0; }

.button {
    display: inline-block; background: var(--sea); color: #fff; border: 1px solid var(--sea);
    border-radius: 8px; padding: 9px 16px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }
.button-light { background: #fff; color: var(--sea); }
.button-light:hover { background: var(--sea-soft); color: var(--sea-dark); }
.button[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }

.notice { border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-error { background: var(--err-bg); color: var(--err); }
.notice-info { background: var(--sea-soft); color: var(--sea-dark); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; vertical-align: middle; }
.badge-reserved { background: var(--err-bg); color: var(--err); }

.crumbs { font-size: 14px; margin-bottom: 12px; }
.crumbs a { text-decoration: none; }

/* Dashboard */

.boat-head h1 { font-size: 36px; }
.phase { border-radius: var(--radius); padding: 12px 16px; margin: 20px 0; font-size: 15px; }
.phase p { margin: 0 0 6px; }
.phase-1 { background: var(--warn-bg); color: var(--warn); }
.phase-2 { background: var(--ok-bg); color: var(--ok); }
.phase a { color: inherit; font-weight: 600; }
.phase-links { margin: 0; }
.welcome { background: var(--card); border-left: 4px solid var(--sea); border-radius: 6px; padding: 12px 18px; margin: 20px 0; }
.welcome p { margin: 6px 0; }
.welcome ul { margin: 6px 0; padding-left: 22px; }
.welcome li { margin: 4px 0; }
.form-card { border-color: #b9d3e4; }
.form-state { margin: 0; color: var(--muted); }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-link {
    display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; text-decoration: none; color: var(--ink);
}
.doc-link:hover { border-color: var(--sea); color: var(--ink); }
.doc-title { font-weight: 650; color: var(--sea-dark); }
.doc-desc { color: var(--ink); font-size: 15px; }
.doc-version { color: var(--muted); font-size: 13px; }
.docs-tenants .doc-link { border-style: dashed; }

/* Documents */

.doc { max-width: 780px; }
.doc-head { margin-bottom: 18px; }
.doc-head .doc-version { margin: 4px 0; }
.doc-tools { margin: 10px 0 0; }
.reserved-banner { background: var(--err-bg); color: var(--err); font-weight: 600; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.audience-note { color: var(--muted); font-size: 14px; margin: 6px 0; }

.doc-body { font: 17px/1.65 var(--serif); }
.doc-body h1 { font: 700 24px/1.3 var(--sans); margin-top: 8px; }
.doc-body h2 { font: 700 19px/1.3 var(--sans); margin-top: 32px; }
.doc-body h3 { font: 700 17px/1.3 var(--sans); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc-body li { margin: 4px 0; }
/* Tables scroll inside their wrapper on narrow screens; the table itself always spans the full width. */
.table-wrap { overflow-x: auto; margin: 16px 0; }
.doc-body table, .table-wrap table {
    border-collapse: collapse; width: 100%; font: 14px/1.45 var(--sans); background: var(--card);
}
.doc-body th, .doc-body td, .table-wrap th, .table-wrap td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-body th, .table-wrap th { background: #eef2f5; }

/* Form */

.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 20px 0; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.toc a { text-decoration: none; }
.toc a[aria-current] { font-weight: 700; color: var(--ink); }

.form-doc .doc-body { margin-bottom: 8px; }
.group-title { border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.form-section { scroll-margin-top: 16px; }
.section-intro { color: var(--muted); }

.field, .answer {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; margin: 12px 0; scroll-margin-top: 16px;
}
.field-label { display: block; margin: 0 0 10px; font-weight: 550; }
.field-n { color: var(--muted); font-weight: 700; margin-right: 2px; }
.field-context { font-size: 15px; margin-bottom: 8px; }
.field-reason { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.field-reason summary { cursor: pointer; color: var(--sea); }

textarea {
    width: 100%; min-height: 64px; resize: vertical; border: 1px solid #c3cdd6; border-radius: 8px;
    padding: 9px 11px; font: 16px/1.5 var(--sans); color: var(--ink); background: #fbfcfd;
    field-sizing: content;
}
textarea:focus, input:focus-visible, .button:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
textarea[disabled] { background: #f1f3f5; color: var(--muted); }
input[type="email"] { border: 1px solid #c3cdd6; border-radius: 8px; padding: 8px 10px; font: 16px var(--sans); min-width: 260px; max-width: 100%; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.choice { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c3cdd6; border-radius: 999px; padding: 5px 12px; font-size: 14px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--sea); background: var(--sea-soft); color: var(--sea-dark); font-weight: 600; }
.choice:has(input[disabled]) { cursor: default; }

.files { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.file-item { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.file-size { color: var(--muted); }
.file-remove { color: var(--err); }
.upload { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.upload input { display: block; margin-top: 6px; font-size: 14px; }

.form-bar {
    position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px 16px; margin-top: 24px; box-shadow: 0 -4px 18px rgba(11, 37, 69, .08);
}
.form-status { margin: 0; font-size: 14px; color: var(--muted); }
.form-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* Answers and management */

.answer-status { font-weight: 600; margin: 0 0 6px; }
.answer-text p { margin: 0 0 8px; }
.answer-empty { color: var(--muted); font-style: italic; margin: 0; }
.position { font-weight: 600; }
.position-accepted { color: var(--ok); }
.position-discuss { color: var(--warn); }
.position-rejected { color: var(--err); }
.position-none { color: var(--muted); font-weight: 400; }

.checks { list-style: none; padding: 0; margin: 12px 0 16px; font-size: 15px; }
.checks li { padding: 4px 0 4px 26px; position: relative; }
.checks li::before { position: absolute; left: 0; font-weight: 700; }
.check-ok::before { content: "OK"; color: var(--ok); font-size: 11px; top: 7px; }
.check-warn::before { content: "!"; color: var(--warn); left: 6px; }
.check-fail::before { content: "NO"; color: var(--err); font-size: 11px; top: 7px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form label { flex-basis: 100%; font-size: 15px; }
.people { margin: 0 0 8px; padding-left: 20px; }

.message-page { max-width: 560px; padding: 40px 0; }

/* Entry page for visitors who are not logged in, and set-password landing page */

/* Hand-off page: only the logo, where the login page shows it */
.handoff { background: var(--bg); }
.handoff-main { width: 320px; max-width: 100%; margin: 0 auto; padding: calc(6vh + 26px) 0 0; text-align: center; }
.handoff-logo { width: 120px; height: auto; }

.welcome-card {
    max-width: 480px; margin: 5vh auto 0; text-align: center; background: var(--card);
    border: 1px solid var(--line); border-radius: 14px; padding: 32px 24px 28px;
}
.welcome-logo { width: 128px; height: auto; margin-bottom: 12px; }
.welcome-card h1 { margin-top: 6px; }
.welcome-action { margin: 22px 0 8px; }
.button-large { padding: 12px 28px; font-size: 16px; }

/* Comparison */

.compare-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px 12px; margin: 18px 0 0; }
.compare-picker[hidden] { display: none; }
.compare-picker legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.compare-picker label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.compare-table { font-size: 15px; line-height: 1.45; }
.compare-table thead th { background: var(--navy); color: #fff; vertical-align: bottom; }
.compare-table thead th a { color: #fff; font-size: 17px; }
.compare-sub { display: block; font-weight: 400; font-size: 13px; opacity: .85; }
/* The table scrolls inside its own box both ways, so the header row, the item column and the
   group titles can all stay in view: the box is the scroll container every sticky cell refers to. */
.compare-scroll { max-height: 78vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.compare-scroll .compare-table { border-collapse: separate; border-spacing: 0; }
.compare-scroll .compare-table th, .compare-scroll .compare-table td { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-scroll .compare-table tr > :last-child { border-right: 0; }
.compare-table thead th { position: sticky; top: 0; z-index: 3; }
.compare-table thead th:first-child { left: 0; z-index: 4; }
.compare-table th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 24%; min-width: 140px; font-weight: 600; }
.compare-group th { position: sticky; top: var(--compare-head, 62px); z-index: 2; }
.compare-group-title { position: sticky; left: 10px; display: inline-block; }
.compare-table td { min-width: 190px; }
.compare-group th { background: var(--sea-soft); color: var(--sea-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.compare-conclusions { max-width: 780px; margin-top: 28px; }
.compare-conclusions h2 { margin-bottom: 4px; }
.verdict-questions { display: grid; gap: 12px; margin: 16px 0; }
.verdict-questions[hidden], .verdict[hidden] { display: none; }
.question { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px 14px; margin: 0; min-width: 0; }
.question legend { padding: 0 6px; font-weight: 650; color: var(--sea-dark); }
.question-desc { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.question-control { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.question input[type="range"] { flex: 1 1 220px; min-width: 0; accent-color: var(--sea); }
.question-value { min-width: 170px; font-size: 14px; font-weight: 600; }
.question-scores { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.question-scores strong { color: var(--ink); }
.pref-scale { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(160px, 2fr) minmax(90px, 1fr); align-items: center; gap: 10px; width: 100%; }
.pref-end { font-size: 14px; font-weight: 650; }
.pref-end small, .pref-boats small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.pref-end-right { text-align: right; }
.pref-boats { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
.pref-boats label { display: grid; gap: 2px; font-weight: 600; font-size: 14px; }
.verdict { background: var(--sea-soft); border: 1px solid #b9d3e4; border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 26px; }
.verdict-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sea-dark); }
.verdict-boat { margin: 2px 0 4px; font-size: 30px; font-weight: 700; color: var(--navy); }
.verdict-note { margin: 0 0 12px; }
.verdict-bars { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.verdict-bars li { display: grid; grid-template-columns: minmax(70px, 120px) 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
.verdict-track { height: 10px; background: #fff; border-radius: 5px; overflow: hidden; }
.verdict-fill { display: block; height: 100%; width: 0; background: var(--sea); }
.verdict-score { text-align: right; font-weight: 650; }
.verdict-why-title { margin: 0 0 4px; font-size: 14px; font-weight: 650; }
.verdict-why { margin: 0; padding-left: 18px; font-size: 14px; }

@media (max-width: 600px) {
    h1 { font-size: 25px; }
    .boat-head h1 { font-size: 30px; }
    .doc-body { font-size: 16px; }
    .field, .answer, .card { padding: 12px; }
    .user-name { max-width: 28vw; }
    .subnav-inner { gap: 4px; }
    .switcher > summary, .switcher-label { padding: 6px 8px; }
    .form-bar { padding: 10px 12px; }
    .form-buttons { width: 100%; }
    .form-buttons .button { flex: 1; text-align: center; }
    .pref-scale { grid-template-columns: 1fr 1fr; }
    .pref-scale input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
    .question-value { min-width: 0; }
    .verdict-boat { font-size: 26px; }
}

/* Browsers apply no page margin of their own when printing to PDF with default settings. */
@page { size: A4; margin: 18mm 16mm 20mm; }

@media print {
    body { background: #fff; font-size: 11pt; }
    .site-header, .site-footer, .subnav, .crumbs, .doc-tools, .audience-note, .preview-bar, .toc, .form-bar, .upload, .phase, .notice, .compare-picker { display: none !important; }
    .compare-scroll { max-height: none; overflow: visible; border: 0; }
    .compare-table thead th, .compare-table th[scope="row"], .compare-group th, .compare-group-title { position: static; }
    .compare-table thead th { background: #eef2f5; color: var(--ink); }
    .compare-table thead th a { color: inherit; }
    .wrap, .doc { max-width: none; padding: 0; }
    .main { padding: 0; }
    .doc-body { font-size: 11pt; }
    .table-wrap { overflow: visible; }
    .doc-body table, .table-wrap table { font-size: 9.5pt; }
    thead { display: table-header-group; }
    .doc-body tr, .field, .answer { break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
}

/* Rulebook: numbered points, highlighted text still to decide, the poll right after its point */

.rulebook { max-width: 820px; }
.rulebook-summary p { margin: 4px 0; }
.rulebook-todo a { font-weight: 650; }
.rulebook-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rulebook-intro { margin-bottom: 8px; }
.chapter { margin-top: 30px; }
.chapter > h2 { border-bottom: 2px solid var(--line); padding-bottom: 6px; scroll-margin-top: 16px; }
.rule-section h3 { color: var(--sea-dark); scroll-margin-top: 16px; }
.point { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 0 8px; margin: 10px 0; scroll-margin-top: 16px; }
.point-n { font: 600 14px/1.9 var(--sans); color: var(--muted); }
.point-body p:first-child { margin-top: 0; }
.point-body p:last-child { margin-bottom: 0; }
mark.pending { background: #fff1b8; color: inherit; padding: 1px 2px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
del.rejected { color: var(--muted); }
.point-poll { display: inline-block; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 4px 8px; border-radius: 999px; background: #fff1b8; color: #6b5100; white-space: nowrap; vertical-align: 2px; }
.point-poll-stalled { background: var(--warn-bg); color: var(--warn); }
.point-poll-approved { background: var(--ok-bg); color: var(--ok); }
.point-poll-rejected, .point-poll-withdrawn { background: #eef2f5; color: var(--muted); }

.poll { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #e2c044; border-radius: var(--radius); padding: 14px 18px; margin: 12px 0 24px calc(3.4em + 8px); scroll-margin-top: 16px; }
.poll-approved { border-left-color: var(--ok); }
.poll-rejected, .poll-withdrawn { border-left-color: #b8c2cc; }
.poll-stalled { border-left-color: var(--warn); }
.poll-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.poll-state { padding: 3px 8px; border-radius: 999px; background: #fff1b8; color: #6b5100; }
.poll-state-approved { background: var(--ok-bg); color: var(--ok); }
.poll-state-stalled { background: var(--warn-bg); color: var(--warn); }
.poll-state-rejected, .poll-state-withdrawn { background: #eef2f5; color: var(--muted); }
.badge-new { background: var(--sea); color: #fff; }
.poll-question { font-size: 18px; margin: 8px 0 4px; }
.poll-details { font-size: 15px; }
.poll-details p { margin: 4px 0 8px; }
.poll-meta { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.poll-outcome { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 8px 12px; margin: 10px 0; font-size: 15px; }
.poll-outcome p { margin: 2px 0; }
.poll-outcome-stalled { background: var(--warn-bg); color: var(--warn); }
.poll-outcome-review { background: #fff8db; color: #6b5100; }
.poll-rejected .poll-outcome, .poll-withdrawn .poll-outcome { background: #eef2f5; color: var(--ink); }
.poll-note { color: var(--ink); }
.poll-note p { display: inline; margin: 0; }

.poll-options { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.poll-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.poll-option.is-mine { border-color: var(--sea); background: var(--sea-soft); }
.poll-option.is-adopted { border-color: var(--ok); background: var(--ok-bg); }
.option-main { display: flex; gap: 10px; min-width: 0; }
.option-label { flex: none; min-width: 2em; height: 2em; padding: 0 6px; border-radius: 6px; background: var(--navy); color: #fff; font: 700 14px/2em var(--sans); text-align: center; }
.option-text { font: 16px/1.5 var(--serif); min-width: 0; }
.option-by { display: block; font: 13px/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.option-tally { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); padding-left: calc(2em + 10px); }
.option-tally meter { width: 90px; height: 8px; }
.option-count { font-weight: 650; color: var(--ink); }
.option-action { grid-column: 2; grid-row: 1 / span 2; }
.option-mine { font-size: 13px; font-weight: 700; color: var(--sea-dark); white-space: nowrap; }
.link-button { background: none; border: 0; padding: 0; color: var(--sea); font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--sea-dark); }
.poll-mine p, .poll-hint { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.poll-propose, .poll-history, .poll-admin { margin-top: 12px; }
.poll-propose > summary, .poll-history > summary, .poll-admin > summary { cursor: pointer; color: var(--sea); font-size: 15px; font-weight: 600; }
.poll-propose form, .comment-form, .admin-form { display: grid; gap: 8px; margin-top: 8px; }
.poll-propose form .button, .comment-form .button, .admin-form .button { justify-self: start; }
.poll-propose label, .comment-form label, .admin-form label { font-size: 14px; color: var(--muted); }
.admin-form + .admin-form { margin-top: 18px; }
.admin-title { font-weight: 650; margin: 0; }
.poll-admin { border-top: 1px dashed var(--line); padding-top: 10px; }
.history-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; display: grid; gap: 4px; }
.history-list time { color: var(--muted); margin-right: 6px; }
.history-page { font-size: 15px; gap: 10px; }
.history-before, .history-after { font-size: 14px; margin: 2px 0; }
.history-before { color: var(--muted); }
.comments { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.comments-title { font-weight: 650; margin: 0 0 6px; font-size: 15px; }
.comment-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.comment { background: var(--bg); border-radius: 8px; padding: 8px 12px; scroll-margin-top: 16px; }
.comment-meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.comment-edited { color: var(--warn); font-weight: 600; }
.comment-body p { margin: 0 0 6px; }
.comment-withdrawn { font-style: italic; color: var(--muted); margin: 0; }
.comment-versions { font-size: 14px; }
.comment-versions summary, .comment-tools summary { cursor: pointer; color: var(--sea); }
.comment-version { border-left: 3px solid var(--line); padding-left: 10px; margin: 6px 0; }
.comment-tools { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 14px; }
.comment-edit[open] { flex-basis: 100%; }
.comment-edit form { display: grid; gap: 6px; margin-top: 6px; }
.comment-edit .button { justify-self: start; }

@media (max-width: 600px) {
    .point { grid-template-columns: 1fr; }
    .point-n { line-height: 1.4; }
    .poll { margin-left: 0; padding: 12px; }
    .poll-option { grid-template-columns: 1fr; }
    .option-action { grid-column: 1; grid-row: auto; }
    .option-action .button { width: 100%; text-align: center; }
    .option-tally { padding-left: 0; }
}

@media print {
    .option-action, .poll-own, .poll-propose, .poll-admin, .poll-mine, .poll-hint, .comment-form, .comment-tools, .rulebook-summary, .rulebook-toc, .point-poll { display: none !important; }
    .poll { margin-left: 0; break-inside: avoid; }
    mark.pending { background: none; text-decoration: underline; }
}
