:root {
  --bg: #f4f3ef; --surface: #ffffff; --surface-2: #f8f7f4; --text: #1f1e1c; --muted: #6b6a65; --faint: #9a9892;
  --border: #e3e1da; --border-strong: #cfccc3; --accent: #2f6fd6; --accent-bg: #e6effc; --on-accent: #fff;
  --add: #3b8a2e; --add-bg: #e8f4e2; --mod: #b07206; --mod-bg: #fcf1db; --del: #c23b3b; --del-bg: #fbe7e7;
  --sticky: #fff6c9; --sticky-b: #efe2a0; --edge: #a8a59c; --node: #ffffff; --canvas: #f1f0eb; --dot: #dcd9d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181816; --surface: #22221f; --surface-2: #2a2a27; --text: #ecebe6; --muted: #a4a29b; --faint: #7d7b75;
    --border: #383733; --border-strong: #4a4944; --accent: #6aa0f0; --accent-bg: #1f3352; --on-accent: #0d1626;
    --add: #7cc56a; --add-bg: #1f3319; --mod: #e5ad45; --mod-bg: #3a2c10; --del: #ee7b7b; --del-bg: #3d1c1c;
    --sticky: #3a3620; --sticky-b: #575030; --edge: #6d6b64; --node: #2b2b28; --canvas: #1d1d1b; --dot: #2e2e2b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.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;
}

.sr-only-focusable:focus {
  position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
  padding: 6px 12px;
}

.top {
  display: flex; align-items: center; gap: 20px; padding: 10px 18px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}

.top form { margin: 0; }

.logo { font-weight: 600; display: flex; gap: 8px; align-items: center; text-decoration: none; font-size: 14px; margin: 0; }
.logo .ti { color: var(--accent); font-size: 20px; }

.nav { display: flex; gap: 4px; }
.nav a { padding: 5px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.nav a.on { background: var(--surface-2); color: var(--text); }

.sp { flex: 1; }

.av {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12px; font-weight: 600; flex: none;
}

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  border-radius: 7px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap;
}

.btn:disabled { cursor: progress; opacity: .7; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px;
  border-radius: 6px; white-space: nowrap; font-weight: 500;
}

.b-mut { background: var(--surface-2); color: var(--muted); }

.pad { padding: 18px; max-width: 1320px; margin: 0 auto; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.state-cell { width: 140px; }

.t-main { font-weight: 500; }
.t-sub { font-size: 12px; color: var(--muted); }
.t-error { color: var(--del); }

.sec { font-size: 13px; font-weight: 600; margin: 8px 0 10px; display: flex; align-items: center; gap: 8px; }

.flash { position: fixed; right: 16px; bottom: 84px; z-index: 10; max-width: min(480px, calc(100vw - 32px)); padding: 9px 14px; border-radius: 7px; font-size: 13px; box-shadow: 0 4px 16px rgb(0 0 0 / .15); }
.flash-alert { background: var(--del-bg); color: var(--del); }
.flash-notice { background: var(--accent-bg); color: var(--accent); }

.login { display: flex; align-items: center; justify-content: center; min-height: 80vh; flex-direction: column; gap: 14px; }
.login form { margin: 0; }
.login-logo { font-size: 20px; }

.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); text-decoration: none; }
.btn.sm { padding: 3px 8px; font-size: 12px; text-decoration: none; }
.top .btn.pri { text-decoration: none; }
a.btn { text-decoration: none; }

.b-open { background: var(--accent-bg); color: var(--accent); }
.b-chg { background: var(--mod-bg); color: var(--mod); }
.b-ok { background: var(--add-bg); color: var(--add); }

.av.sm { width: 22px; height: 22px; font-size: 10px; cursor: default; }
.who { display: flex; align-items: center; gap: 8px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tab { padding: 5px 12px; border-radius: 7px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; text-decoration: none; }
.tab.on { background: var(--accent-bg); border-color: transparent; color: var(--accent); font-weight: 500; }

th { font-size: 12px; font-weight: 500; color: var(--faint); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.list-block { margin-bottom: 26px; }
.row-link { text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.action-cell { text-align: right; width: 180px; }
.empty { padding: 12px 2px; }

.page-title { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 5px; padding: 0; }
.field-error { color: var(--del); font-size: 12px; margin: 4px 0 8px; }
.input { width: 100%; border: 1px solid var(--border-strong); border-radius: 7px; padding: 8px 10px; background: var(--surface); color: var(--text); font: inherit; }
.picker-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker-fieldset .input { margin-bottom: 8px; }
.pick { border: 1px solid var(--border); border-radius: 9px; overflow: auto; max-height: 70vh; background: var(--surface); }
.pick-h { font-size: 11px; font-weight: 600; color: var(--faint); padding: 8px 12px 4px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); position: sticky; top: 0; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pick-row:has(input:checked) { background: var(--accent-bg); }
.pick-row.disabled { opacity: .55; cursor: not-allowed; }
.pick-row[hidden] { display: none; }
.pick-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.stats { display: flex; gap: 14px; font-size: 13px; margin: 6px 0 10px; flex-wrap: wrap; }
.c-mod { color: var(--mod); } .c-add { color: var(--add); } .c-del { color: var(--del); }

body.app-shell { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.app-shell main { flex: 1; min-height: 0; }
.review { display: flex; flex-direction: column; height: 100%; }
.rv-head { padding: 12px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); }
.rv-title { font-size: 17px; font-weight: 600; margin: 0; }
.rv-title span { color: var(--faint); font-weight: 400; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 7px; overflow: hidden; font-size: 12px; }
.seg a { padding: 4px 10px; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--surface-2); color: var(--text); font-weight: 500; }
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 18px; background: var(--mod-bg); color: var(--mod); font-size: 13px; border-bottom: 1px solid var(--border); }
.banner form { margin: 0 0 0 auto; }
.banner--danger { background: var(--del-bg); color: var(--del); }
.banner--muted { background: var(--surface-2); color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); flex: 1; min-height: 0; }
.canvas { background-color: var(--canvas); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 18px 18px; position: relative; border-right: 1px solid var(--border); overflow: hidden; cursor: grab; touch-action: none; }
.canvas.is-panning { cursor: grabbing; }
.canvas svg { display: block; width: 100%; height: 100%; user-select: none; }
.canvas--mini { height: 180px; border: 1px solid var(--border); border-radius: 9px; cursor: default; }
.ctools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.legend { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 10px; font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 4px 8px; margin: 0; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.swatch--added { background: var(--add); } .swatch--modified { background: var(--mod); } .swatch--removed { background: var(--del); }

.sticky { fill: var(--sticky); stroke: var(--sticky-b); }
.sticky-text { font-size: 16px; color: var(--muted); padding: 10px 14px; overflow: hidden; height: 100%; white-space: pre-line; }
.edge-line { fill: none; stroke: var(--edge); stroke-width: 2.4; }
.edge-arrow { fill: none; stroke: var(--edge); stroke-width: 2.4; }
.edge--ai .edge-line { stroke-dasharray: 6 6; }
.edge--added .edge-line, .edge--added .edge-arrow { stroke: var(--add); stroke-width: 3; }
.edge--removed .edge-line, .edge--removed .edge-arrow { stroke: var(--del); stroke-width: 3; stroke-dasharray: 8 6; }
.edge-label { font-size: 14px; fill: var(--muted); }
.canvas:not(.show-all) .edge--unchanged { opacity: .55; }

.node { cursor: pointer; }
.node-shape { fill: var(--node); stroke: var(--border-strong); stroke-width: 2; }
.node-ring { fill: none; stroke: none; }
.node.is-selected .node-ring, .node:focus-visible .node-ring { stroke: var(--accent); stroke-width: 4; }
.node:focus { outline: none; }
.node-icon { font-size: 38px; line-height: 1; text-align: center; color: var(--muted); }
.node-icon--sub { font-size: 26px; }
.node-initials { font-size: .6em; font-weight: 700; line-height: 46px; }
.node-name { font-size: 20px; font-weight: 500; text-anchor: middle; fill: var(--text); }
.node.is-selected .node-name { font-weight: 700; }
.node--sub .node-name { font-size: 15px; }
.node-renamed { font-size: 16px; text-anchor: middle; fill: var(--mod); }
.node--added .node-shape { fill: var(--add-bg); stroke: var(--add); stroke-width: 3.5; }
.node--added .node-icon { color: var(--add); }
.node--modified .node-shape, .node--renamed .node-shape { fill: var(--mod-bg); stroke: var(--mod); stroke-width: 3.5; }
.node--modified .node-icon, .node--renamed .node-icon { color: var(--mod); }
.node--removed { opacity: .75; }
.node--removed .node-shape { fill: var(--del-bg); stroke: var(--del); stroke-width: 3.5; stroke-dasharray: 10 7; }
.node--removed .node-icon { color: var(--del); }
.node--removed .node-name { text-decoration: line-through; }
.canvas:not(.show-all) .node--unchanged:not(.is-selected) { opacity: .6; }

.panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.panel-frame { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pbody { position: relative; padding: 16px 18px; flex: 1; overflow: auto; overscroll-behavior: contain; }
.ph { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.pbody > .ph:first-child, .nh + .ph { margin-top: 14px; }
.description { font-size: 13px; }
.chg-list, .activity { list-style: none; margin: 0; padding: 0; }
.chg { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; text-decoration: none; }
.chg b { font-weight: 500; }
.chg:hover b { text-decoration: underline; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--added { background: var(--add); } .dot--modified, .dot--renamed { background: var(--mod); } .dot--removed { background: var(--del); }
.act { display: flex; gap: 8px; font-size: 12px; color: var(--muted); padding: 4px 0; }
.act b { color: var(--text); font-weight: 500; }

.nh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.nh-body { flex: 1; min-width: 0; }
.nh-title { font-size: 15px; font-weight: 600; margin: 0; }
.nh-ico { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border-strong); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; flex: none; }
.nh-ico--added { border-color: var(--add); background: var(--add-bg); color: var(--add); }
.nh-ico--modified, .nh-ico--renamed { border-color: var(--mod); background: var(--mod-bg); color: var(--mod); }
.nh-ico--removed { border-color: var(--del); background: var(--del-bg); color: var(--del); }

.diffblock { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-bottom: 12px; }
.dh { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface-2); font-size: 12px; border-bottom: 1px solid var(--border); }
.dh b { font-weight: 500; }
.dl { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 1px 10px 1px 26px; white-space: pre-wrap; word-break: break-word; position: relative; line-height: 1.55; }
.dl::before { position: absolute; left: 10px; color: var(--faint); }
.dl--added { background: var(--add-bg); }
.dl--added::before { content: "+"; color: var(--add); }
.dl--removed { background: var(--del-bg); }
.dl--removed::before { content: "−"; color: var(--del); }
.dl--context { color: var(--muted); }
.dl.gap { color: var(--faint); text-align: center; padding-left: 10px; }
.dl mark { background: none; font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.dl--added mark { text-decoration-color: var(--add); }
.dl--removed mark { text-decoration-color: var(--del); }
.scalar { font-size: 13px; padding: 8px 10px; word-break: break-word; }
.scalar + .scalar { border-top: 1px solid var(--border); }
.scalar s { color: var(--del); }
.scalar ins { color: var(--add); text-decoration: none; font-weight: 500; }
.parameters summary { cursor: pointer; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px; white-space: pre-wrap; word-break: break-word; margin: 0; }

@media (max-width: 900px) {
  .split, .grid2 { grid-template-columns: 1fr; }
  .canvas { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--border); }
  .review { height: auto; }
  body.app-shell { height: auto; overflow: visible; }
}

.btn.warn { color: var(--mod); border-color: var(--mod); }
.num { text-align: right; width: 90px; }
.narrow { max-width: 760px; }
.actions { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
.actions form { margin: 0; }
.banner--success { background: var(--add-bg); color: var(--add); }

.pfoot { border-top: 1px solid var(--border); padding: 12px 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface); }
.pfoot form { margin: 0; }
.decisions { justify-content: flex-end; }
.comment-form { display: flex; gap: 6px; flex: 1; align-items: flex-start; }
.comment-form .input { flex: 1; min-height: 34px; resize: vertical; }
.comment-toggle { border-top: 1px solid var(--border); padding: 6px 10px; }
.comment-toggle summary { list-style: none; opacity: .65; }
.comment-toggle summary::-webkit-details-marker { display: none; }
.diffblock:hover .comment-toggle summary, .comment-toggle[open] summary, .comment-toggle summary:focus-visible { opacity: 1; }
.comment-toggle .comment-form { margin-top: 8px; }

.thread { border: 1px solid var(--border); border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
.thread.res { opacity: .7; }
.th-h { display: flex; gap: 6px; align-items: center; padding: 7px 10px; font-size: 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.th-h form { margin: 0; }
.quote { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; padding: 6px 10px; border-bottom: 1px solid var(--border); background: var(--add-bg); white-space: pre-wrap; margin: 0; }
.cm { display: flex; gap: 9px; padding: 9px 10px; }
.cm + .cm { border-top: 1px solid var(--border); }
.cm-b { font-size: 13px; min-width: 0; flex: 1; }
.cm-b b { font-weight: 600; }
.cm-b small { color: var(--faint); margin-left: 6px; }
.cm-b p { margin: 2px 0 0; }
.dh code, .th-h code, .cm-b code, .quote code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--surface-2); padding: 0 3px; border-radius: 3px; }
.reply { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border); }
.reply .input { padding: 5px 8px; font-size: 12px; min-height: 30px; resize: vertical; }
.botav { width: 22px; height: 22px; border-radius: 50%; background: var(--del-bg); color: var(--del); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.act--resolved { opacity: .6; }
a.act { text-decoration: none; }
a.act:hover b { text-decoration: underline; }
.ph--sub { margin-top: 10px; }

.node-badge circle { fill: var(--accent); }
.node-badge text { font-size: 17px; font-weight: 700; text-anchor: middle; fill: var(--on-accent); }
.node-badge[data-count="0"] { display: none; }
.node-bot-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--del); color: #fff; font-size: 18px; line-height: 28px; text-align: center; }

.callout { border: 1px solid var(--border); border-radius: 9px; background: var(--surface); padding: 14px 16px; margin-bottom: 14px; font-size: 13px; }
.callout--danger { border-color: var(--del); background: var(--del-bg); }
.callout-title { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0 0 8px; }
.versions { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 8px; }
.versions dt { color: var(--muted); }
.versions dd { margin: 0; }
.flash-notice { animation: flash-out .4s ease-in 5s forwards; }
body.app-shell .flash { bottom: 140px; }
@keyframes flash-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .flash-notice { animation-duration: 0s; } }

.check { display: flex; gap: 8px; font-size: 13px; padding: 6px 0; text-decoration: none; align-items: flex-start; }
.check:hover b { text-decoration: underline; }
.check b { font-weight: 500; }
.check--resolved { color: var(--muted); }
.check-icon { font-size: 16px; line-height: 1.3; }
.check-icon--error { color: var(--del); }
.check-icon--warning { color: var(--mod); }
.check-icon--info { color: var(--muted); }
.check-icon--resolved { color: var(--add); }
.node-bot-icon--warning { background: var(--mod); }
.node-bot-icon--info { background: var(--muted); }

.settings-section { margin-bottom: 28px; }
.settings-section td .input { padding: 5px 8px; font-size: 13px; }
.settings-section td form { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.inline-form .field-label { margin: 0; }
.input--date { width: auto; }

.param-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); border-radius: 6px; padding: 6px 8px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.param-list { margin: 0; padding-left: 18px; }
.params-heading { font-size: 12px; font-weight: 600; color: var(--faint); margin: 14px 0 4px; }
.parameters summary { list-style-position: inside; }

.params { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.param { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.param:last-child { border-bottom: 0; }
.param--block { grid-template-columns: 1fr; }
.param--block > .param-value { padding-left: 10px; border-left: 2px solid var(--border); }
.param-head { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.param-label { color: var(--muted); font-weight: 500; overflow-wrap: anywhere; flex: 1; }
.param-value { min-width: 0; overflow-wrap: anywhere; }
.param-form { grid-column: 1 / -1; padding-top: 6px; }
.param-comment { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0 2px; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; opacity: .6; }
.param:hover > .param-head .param-comment, .param-card:hover .param-comment, .param-comment:focus-visible, .param-comment[aria-expanded="true"] { opacity: 1; color: var(--accent); }
.param-discussions { grid-column: 1 / -1; padding-top: 6px; }
.param-discussions .thread, .diffblock .thread { margin: 6px 0 0; }
.diffblock > .thread { margin: 8px 10px; }
.param-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.param-card { border: 1px solid var(--border); border-radius: 7px; padding: 8px; display: grid; gap: 6px; }
.param-card .param-head { align-items: center; }
.param-card-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; flex: 1; }
.param-card .param-form { padding-top: 0; }

.cm-meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cm-meta small { margin-left: 0; }
.cm-actions { margin-left: auto; display: inline-flex; gap: 8px; }
.cm-actions form { margin: 0; display: inline; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.link-btn:hover, .link-btn:focus-visible { color: var(--accent); text-decoration: underline; }
.link-btn--danger:hover, .link-btn--danger:focus-visible { color: var(--del); }
.av--muted { background: var(--surface-2); color: var(--faint); }
.comment-form--edit { margin-top: 6px; }

.ph-extra { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.viewed-mark { margin-left: auto; color: var(--add); font-size: 15px; }
.activity .act .ti { margin-top: 2px; }
.activity a { color: var(--text); }

.gap-lines > summary { list-style: none; cursor: pointer; }
.gap-lines > summary::-webkit-details-marker { display: none; }
.gap-lines > summary:hover, .gap-lines > summary:focus-visible { color: var(--accent); background: var(--accent-bg); }
.gap-lines[open] > summary { display: none; }
.nh form { margin: 0; }
.btn--viewed { color: var(--add); border-color: var(--add); }

.search-form { display: flex; gap: 8px; margin-bottom: 10px; }
.search-form .input { max-width: 360px; }
.input--select { width: auto; }
.pagination { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 10px; }
