/* Chrome around the book: calm, bookish, quiet. The interface steps back behind the text. */

/* The interface uses the same files at their natural size; book.css scales the book's faces to match the proof. */
@font-face { font-family: "Heros UI"; src: url("../fonts/texgyreheros-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Heros UI"; src: url("../fonts/texgyreheros-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pagella UI"; src: url("../fonts/texgyrepagella-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pagella UI"; src: url("../fonts/texgyrepagella-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella UI"; src: url("../fonts/texgyrepagella-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f4f1ea;
  --panel: #fbf9f4;
  --paper: #fffefb;
  --ink: #1b1d1a;
  --muted: #6b6f6a;
  --line: #ddd8cc;
  --soft: #ebe6da;
  --accent: #2f5a4c;
  --accent-ink: #ffffff;
  --warn: #9a5b12;
  --bad: #9b2f22;
  --ai: #4a5aa8;
  --hl: #f7e9b8;
  --desk: #e3ded2;
  --ui: "Heros UI", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Pagella UI", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161a18; --panel: #1c211f; --paper: #f7f4ec; --ink: #1b1d1a; --muted: #9aa39e; --line: #2c3431;
    --soft: #242b28; --accent: #7fc4a8; --accent-ink: #10201a; --warn: #e3a857; --bad: #f08a7a; --ai: #a4b2f5;
    --hl: #f3e3a6; --desk: #101312; color-scheme: dark;
  }
  :root:not([data-theme="light"]) body { color: #e6ebe7; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--ui); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; }
h1 { font-size: 28px; line-height: 1.2; }
h2 { font-size: 18px; }
code { font-size: .92em; background: var(--soft); padding: 0 .3em; border-radius: 3px; }
kbd { font: 11px var(--ui); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; color: var(--muted); margin-left: 4px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; margin: 4px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 4px; background: var(--paper); padding: 6px 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 4px 0; }
.tag { font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); white-space: nowrap; font-family: var(--ui); }

/* buttons and fields */
.btn {
  font: 13px/1 var(--ui); color: inherit; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 11px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.on { background: var(--soft); border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { color: inherit; text-decoration: underline; }
input[type=text], input[type=search], input[type=password], textarea, select {
  font: 14px/1.4 var(--ui); color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; max-width: 100%;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(input, textarea, select) { background: var(--soft); } }
textarea { width: 100%; resize: vertical; }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 10px 0 4px; }
label.check { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0; color: inherit; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row label { margin-top: 0; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 18px; padding: 8px 20px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 20px; color: inherit; text-decoration: none; }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); text-decoration: none; padding: 5px 9px; border-radius: 5px; }
.topbar nav a:hover { color: inherit; background: var(--soft); }
.topbar nav a[aria-current="page"] { color: inherit; background: var(--soft); }
.spacer { flex: 1; }
.live { color: var(--muted); font-size: 12px; }
.logout { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2421; color: #f3f1ea; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: min(560px, 92vw); z-index: 200; }
.toast.show { opacity: 1; }
.toast.bad { background: var(--bad); color: #fff; }

/* generic pages */
.page { max-width: 1060px; margin: 0 auto; padding: 28px 20px 80px; }
.page.narrow { max-width: 720px; }
.page-head { margin-bottom: 18px; }
.errorpage main { max-width: 520px; margin: 18vh auto; padding: 0 20px; font-family: var(--ui); }

/* login */
.login-page { display: grid; place-items: center; min-height: 100vh; }
.login { width: min(360px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 32px 28px; }
.login h1 { font-size: 34px; margin: 0; }
.login .sub { color: var(--muted); margin: 0 0 18px; font-family: var(--serif); font-style: italic; }
.login input { width: 100%; }
.login button { margin-top: 16px; width: 100%; justify-content: center; }
.error { color: var(--bad); }

/* library */
.library { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 32px 20px 80px; }
.lib-head h1 { font-size: 40px; margin: 0; }
.lib-head .subtitle { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 4px 0 18px; font-size: 17px; }
.progress .bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; max-width: 460px; }
.progress .bar span { display: block; height: 100%; background: var(--accent); }
.progress p { margin: 6px 0 24px; color: var(--muted); }
.progress b { color: var(--ink); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .progress b { color: #e6ebe7; } }
.toc-list, .toc-scenes { list-style: none; margin: 0; padding: 0; }
.toc-item { border-top: 1px solid var(--line); padding: 10px 0; }
.toc-row { display: flex; align-items: baseline; gap: 10px; }
.toc-item > .toc-row .toc-title { font-family: var(--serif); font-size: 18px; }
.toc-scenes { margin: 4px 0 0 20px; }
.toc-scenes .toc-row { padding: 3px 0; }
.toc-scenes .toc-title { font-family: var(--serif); font-size: 15px; }
.toc-title { flex: 1; }
.toc-title .num { display: inline-block; min-width: 1.6em; color: var(--muted); }
.toc-words { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 4em; text-align: right; }
.toc-act { font-size: 12.5px; color: var(--muted); text-decoration: none; padding: 2px 6px; border-radius: 4px; }
.toc-act:hover { background: var(--soft); color: inherit; }
.toc-note { margin: 2px 0 0 20px; color: var(--muted); font-size: 12.5px; font-style: italic; }
.type-planned .toc-title { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; border: 2px solid var(--accent); }
.dot.st-written { background: var(--accent); }
.dot.st-draft { border-style: dashed; }
.dot.st-planned { border-style: dotted; border-color: var(--muted); }
.lib-side section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.lib-side h2 { font-size: 16px; }
.lib-side p { margin: 4px 0; }
.commits { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.commits li { padding: 6px 0; border-top: 1px solid var(--line); }
.commits li:first-child { border-top: 0; }
.via { font-size: 11px; border-radius: 3px; padding: 1px 5px; background: var(--soft); color: var(--muted); }
.via-claude-code { color: var(--ai); }
.via-claude-chat { color: var(--warn); }
.share-out { word-break: break-all; font-size: 12.5px; }

/* reading */
body.reading { background: var(--desk); }
.readbar, .editbar { position: sticky; top: 49px; z-index: 15; display: flex; gap: 8px; align-items: center; padding: 8px 20px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.readbar .spacer { flex: 1; }
body.share .readbar { top: 0; }
.book.is-flow { background: var(--paper); padding: 0.72in 0.62in 0.82in; width: calc(4.06in + 1.24in); box-shadow: 0 1px 3px rgba(0,0,0,.08); margin: 24px auto 80px; }
@media (max-width: 560px) { .book.is-flow { width: 100%; padding: 28px 16px; margin: 0; } }
.reading .book p.speaking, .reading .book .speaking { background: var(--hl); box-shadow: 0 0 0 3px var(--hl); }
.reading .book [data-block] { cursor: default; }
.reading .book .has-comments { box-shadow: inset 2px 0 0 #d9b44a; }
.assist { position: sticky; top: 98px; z-index: 14; max-width: 760px; margin: 8px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px 10px; }
.assist .row input { flex: 1; min-width: 200px; }
.assist-out { margin: 6px 0 0; font-size: 13px; }
.read-comments { position: fixed; right: 16px; top: 110px; width: 320px; max-height: calc(100vh - 140px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; z-index: 30; box-shadow: 0 6px 24px rgba(0,0,0,.12); }

#pages.is-flow { background: var(--paper); padding: 0.72in 0.62in 0.82in; width: calc(4.06in + 1.24in); margin: 24px auto 80px; }
.paging-note { text-align: center; padding: 40px 0; }
/* Paged.js justifies the last line of an element split across pages; when the split element is a whole
   scene section, every paragraph inside would inherit that. Keep it on the split paragraph only. */
[data-align-last-split-element]:not(p) { text-align-last: auto; }
/* folios computed by read.js (see numberPages) */
.pagedjs_margin-content.folio::after { content: attr(data-folio) !important; }
#pages .note .pageref[data-page]::before { content: "(page " attr(data-page) ") " !important; }
#pages .toc a[data-page]::after { content: "\2003" attr(data-page) !important; }
/* Paged.js on screen: pages as sheets on a desk, spreads on wide screens */
@media screen {
  .pagedjs_pages { display: flex; flex-wrap: wrap; justify-content: center; padding: 24px 0 80px; width: calc(var(--pagedjs-width) * 2 + 8px); margin: 0 auto; gap: 8px 0; }
  .pagedjs_page { background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.06); flex: none; }
  .pagedjs_first_page { margin-left: calc(var(--pagedjs-width) + 0px); }
  .pagedjs_page.current { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); }
  @media (max-width: 1000px) {
    .pagedjs_pages { width: auto; flex-direction: column; align-items: center; }
    .pagedjs_first_page { margin-left: 0; }
  }
}
@media print { .topbar, .readbar, .assist, .read-comments, .toast { display: none !important; } body { background: none; } }

/* editing */
body.editing { background: var(--desk); }
.editbar .group { display: flex; gap: 6px; align-items: center; }
.editbar .group + .group { padding-left: 10px; border-left: 1px solid var(--line); }
.editbar .group:last-child { margin-left: auto; }
.scene-jump { max-width: 280px; }
.wc { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.save-state { color: var(--muted); font-size: 12px; min-width: 7em; }
.save-state.dirty { color: var(--warn); }
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(4.06in + 1.24in)) minmax(260px, 1fr); gap: 24px; padding: 0 20px; }
.desk .editor { grid-column: 2; margin: 24px 0 120px; }
.desk .margin { grid-column: 3; position: relative; padding-top: 24px; }
@media (max-width: 1100px) { .desk { grid-template-columns: minmax(0, 1fr); } .desk .editor, .desk .margin { grid-column: 1; justify-self: center; width: 100%; max-width: calc(4.06in + 1.24in); } .desk .margin { padding-bottom: 60px; } }
.editor [contenteditable="true"] { outline: none; border-radius: 2px; }
.editor [contenteditable="true"]:focus { background: color-mix(in srgb, var(--hl) 35%, transparent); }
.editor p.changed, .editor .changed { box-shadow: -10px 0 0 -8px var(--warn); }
.editor .fnref { font-size: 7pt; line-height: 0; vertical-align: super; color: var(--accent); font-family: var(--ui); cursor: default; user-select: all; padding: 0 1px; }
.editor .fndef { display: block; margin: 2pt 0 6pt 1.3em; font-size: 9.3pt; line-height: 12.2pt; color: #3b403c; border-left: 2px solid var(--line); padding-left: 8px; text-align: left; hyphens: manual; }
.editor .fnlabel { font-family: var(--ui); font-size: 9px; color: var(--accent); margin-right: 6px; }
.editor .rawblock { font: 12px/1.4 ui-monospace, Menlo, monospace; white-space: pre-wrap; background: var(--soft); padding: 6px; }
.editor .anchor-hl { background: color-mix(in srgb, var(--hl) 70%, transparent); }
.editor .drop-target { box-shadow: 0 2px 0 var(--accent); }
#threads { position: relative; }
.margin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); font-size: 12.5px; }
.margin-head select { font-size: 12px; padding: 3px 6px; }
.thread { position: absolute; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 13px; transition: top .15s; }
.thread.static { position: static; margin-bottom: 10px; }
.thread.active { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.08); z-index: 2; }
.thread.resolved { opacity: .65; }
.thread .quote { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; border-left: 2px solid var(--line); padding-left: 6px; }
.thread .msg { margin: 4px 0; white-space: pre-wrap; }
.thread .by { font-size: 11px; color: var(--muted); }
.thread .by.ai { color: var(--ai); }
.thread textarea { font-size: 13px; margin-top: 6px; }
.thread .t-actions { display: flex; gap: 10px; margin-top: 6px; font-size: 12px; }
.thread.orphan { border-style: dashed; }
.add-comment { position: absolute; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 14px; display: none; }
.banner { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--warn); border-radius: 8px; padding: 10px 14px; z-index: 40; box-shadow: 0 4px 20px rgba(0,0,0,.15); display: flex; gap: 10px; align-items: center; }

.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 38px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.12); z-index: 30; }
.menu-list button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; border-radius: 5px; cursor: pointer; font: 13px var(--ui); color: inherit; }
.menu-list button:hover { background: var(--soft); }
.menu-list .check { padding: 4px 9px; }

/* dialogs and diffs */
.dlg { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; width: min(720px, 94vw); background: var(--panel); color: inherit; }
.dlg.wide { width: min(1100px, 96vw); }
.dlg::backdrop { background: rgba(20, 24, 22, .35); }
.diff { max-height: 50vh; overflow: auto; font-family: var(--serif); font-size: 15px; line-height: 1.5; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; background: var(--paper); color: #1b1d1a; }
.diff .blk { padding: 6px 0; border-bottom: 1px solid #eee8db; }
.diff .blk:last-child { border-bottom: 0; }
.diff .lbl { font: 11px var(--ui); color: #6b6f6a; display: block; margin-bottom: 2px; }
.diff ins { background: #d9efd9; text-decoration: none; }
.diff del { background: #f6d7d2; color: #7a2a20; }
.diff .gone { background: #f6d7d2; }
.diff .new { background: #d9efd9; }
.merge-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.merge-row .col { font-family: var(--serif); font-size: 14px; background: var(--paper); color: #1b1d1a; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.merge-row .col h4 { font: 11px var(--ui); color: #6b6f6a; margin: 0 0 4px; display: flex; gap: 6px; align-items: center; }
@media (max-width: 800px) { .merge-row { grid-template-columns: 1fr; } }

/* map */
body.mapping main { height: calc(100vh - 49px); }
.mapwrap { display: grid; grid-template-columns: 272px 1fr 336px; height: 100%; }
.mapwrap aside { overflow: auto; padding: 16px 18px; background: var(--panel); }
.map-left { border-right: 1px solid var(--line); }
.map-right { border-left: 1px solid var(--line); }
.map-main { position: relative; min-height: 0; }
.map-main svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.map-main .count { position: absolute; left: 12px; bottom: 6px; margin: 0; color: var(--muted); font-size: 12px; }
.mapwrap .group { margin-bottom: 18px; }
.mapwrap .group h2 { font-size: 15px; margin-bottom: 6px; }
.mapwrap input[type=search] { width: 100%; }
.mapwrap .rowc { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; margin: 0; color: inherit; font-size: 13.5px; }
.mapwrap .sw { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 2px 18px; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 1px 9px; font-size: 12px; cursor: pointer; color: inherit; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.detail h2 { font-size: 21px; line-height: 1.2; margin-bottom: 4px; }
.detail .kind { color: var(--muted); margin-bottom: 12px; }
.detail h3 { font-family: var(--ui); font-size: 12.5px; font-weight: 700; margin: 14px 0 6px; color: var(--muted); }
.detail ul { list-style: none; padding: 0; margin: 0; }
.detail li button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 3px 0; width: 100%; }
.detail li button:hover span.l { text-decoration: underline; }
line.link { stroke: #c4cbc6; stroke-width: 1.1px; }
line.link.lit { stroke: var(--ink); stroke-width: 1.6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) line.link { stroke: #34413c; } :root:not([data-theme="light"]) line.link.lit { stroke: #e6ebe7; } :root:not([data-theme="light"]) g.node text { fill: #e6ebe7; stroke: #161a18; } }
g.node { cursor: pointer; }
g.node circle { stroke: var(--bg); stroke-width: 2px; }
g.node.st-draft circle { stroke: currentColor; stroke-dasharray: 4 3; fill-opacity: .35; }
g.node.st-planned circle { stroke: currentColor; stroke-dasharray: 1.5 3; fill-opacity: .18; }
g.node text { fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; font-family: var(--ui); pointer-events: none; text-anchor: middle; }
g.node.k-chapter text { font-family: var(--serif); font-weight: 700; }
g.node.selected circle { stroke: var(--accent); stroke-width: 4px; }
.zoomed-out g.node.lbl-small text { display: none; }
g.node.dim { opacity: .14; }
line.link.dim { opacity: .08; }
@media (max-width: 1100px) { body.mapping main { height: auto; } .mapwrap { grid-template-columns: 1fr; grid-template-rows: auto 64vh auto; } }

/* references */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 12px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; font: 14px var(--ui); color: var(--muted); }
.tab[aria-selected="true"] { color: inherit; border-color: var(--accent); }
.filterbar { display: flex; gap: 14px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.filterbar input[type=search] { width: min(360px, 100%); }
.reflist { list-style: none; padding: 0; margin: 0; }
.reflist > li { border-top: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
.reflist .htxt { font-family: var(--serif); font-size: 15px; padding-left: 1.6em; text-indent: -1.6em; }
.reflist .key { font: 11.5px ui-monospace, Menlo, monospace; color: var(--muted); }
.reflist .back { font-size: 12.5px; margin-top: 4px; }
.reflist .back a { margin-right: 8px; }
.reflist .flag { color: var(--warn); font-size: 12.5px; }
.reflist textarea { font-size: 12.5px; }
@media (max-width: 760px) { .reflist > li { grid-template-columns: 1fr; } }
.checks-list { list-style: none; padding: 0; }
.checks-list li { padding: 6px 0; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-weight: 400; color: var(--muted); font-size: 12.5px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.terms input { width: 100%; }

/* pool, journal, proposals */
.poolbody { font-family: var(--serif); font-size: 16px; line-height: 1.55; background: var(--paper); color: #1b1d1a; padding: 20px 26px; border: 1px solid var(--line); border-radius: 8px; }
.poolbody [draggable="true"] { cursor: grab; border-radius: 3px; }
.poolbody [draggable="true"]:hover { background: #f4efdf; }
.poollist { padding-left: 1.2em; }
.jform { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 18px 0 24px; }
.journal-list { padding-left: 0; list-style: none; font-family: var(--serif); font-size: 15.5px; line-height: 1.5; }
.journal-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.journal-list .jdate { font-variant-caps: small-caps; letter-spacing: .03em; margin-right: .6em; }
.proposal { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.proposal h2 { font-size: 17px; margin-bottom: 2px; }
.proposal .meta { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.proposal .editable { font-family: var(--serif); font-size: 15px; width: 100%; min-height: 6em; }
.proposal .picklist { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; }
.proposal .picklist li { padding: 4px 0; border-top: 1px solid var(--line); }
.proposal .mapdiff { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; font-size: 13px; }
.proposal .mapdiff ul { margin: 0; padding-left: 1.1em; max-height: 220px; overflow: auto; }
