/* Go Coach's look (redesigned 25 Nov 2026): light and calm, white cards on warm paper, soft shadows, one deep-green accent.
   A phone or computer set to dark mode gets the matching dark colours below. All colours are the tokens here. */
:root {
  --bg: #e9e8e5;
  --surface: var(--bg); /* boxes share the app's background (Boon's choice); a light outline marks them */
  --surface-2: #f6f4ef;
  --panel: var(--surface);
  --line: #d2d0ca;
  --ink: #1f2523;
  --mute: #6c7470;
  --accent: #2f6f62;
  --accent-ink: #ffffff;
  --accent-soft: #e4efeb;
  --good: #2f8f5b;
  --bad: #c2553d;
  --shadow: 0 1px 2px rgba(31, 37, 35, .06), 0 6px 20px rgba(31, 37, 35, .07);
  --board-shadow: 0 2px 6px rgba(31, 37, 35, .12), 0 14px 34px rgba(31, 37, 35, .14);
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141918; --surface: var(--bg); --surface-2: #262e2c; --line: #313a38; --ink: #e8eeea; --mute: #9aa8a2;
    --accent: #8fd0bd; --accent-ink: #10201b; --accent-soft: #24342f; --good: #7cc99a; --bad: #ee8a74;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --board-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 14px 34px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.5 var(--sans); }
html { font-size: calc(16px * var(--fs, 1)); }
body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
[hidden] { display: none !important; }

header { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 14px; position: relative; min-height: 3.4rem; }
.titleBox { margin-right: auto; line-height: 1.15; }
h1 { font: 700 1.35rem var(--sans); margin: 0; letter-spacing: -.01em; white-space: nowrap; cursor: default; display: flex; align-items: center; gap: 8px; }
/* The mark beside the title: the logo's two stones with their shadow on one grid cross, no background (logo-mark.svg; Boon, 25 Nov 2026). */
h1::before { content: ""; width: 36px; height: 32px; flex: none; background: url("logo-mark.svg") no-repeat center / contain; }
.verStamp { font-size: .72rem; color: var(--mute); white-space: nowrap; }
.verStamp:empty { display: none; }
h2 { font: 650 1.2rem var(--sans); margin: .4rem 0; letter-spacing: -.01em; }
button.icon { font-style: normal; text-decoration: none; background: none; border: 0; box-shadow: none; color: var(--mute); font-size: 1.3rem; cursor: pointer; width: 40px; height: 40px; padding: 0; border-radius: 0; display: grid; place-items: center; }
button.icon:hover:not(:disabled) { color: var(--ink); }

main { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 4px 12px 12px; }

/* Buttons are plain words: no border, fill, italics or underline. A highlighted one (the main action, a tab that is on,
   a chosen option) is bold, in the same colour. Only the clickable words inside the coach's messages are in italics with
   a thin dotted underline (below, .msg .lcard). */
button { font: inherit; color: var(--ink); background: none; border: 0; border-radius: 0; padding: 3px 4px; line-height: 1.3; cursor: pointer; transition: color .15s; }
@media (hover: hover) { button:hover:not(:disabled) { color: var(--accent); } } /* only with a mouse: on a phone a tapped button would stay green */
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { font-weight: 700; }
/* The mode word (Play mode or Coach mode) is the one underlined button, so the current mode stands out from the rest. */
#btnMode { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
button:disabled { opacity: .38; cursor: default; }

.row { display: flex; gap: 8px; margin-top: 10px; }
.row.between { justify-content: space-between; align-items: center; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
/* The game buttons: small, square, each as wide as its word; they wrap onto a second row on a narrow phone. */
.controls { margin-top: 0; flex-wrap: wrap; gap: 4px 10px; }
.controls button { flex: 0 1 auto; min-width: 0; padding: 3px 4px; font-size: .85rem; white-space: nowrap; }

#statusBar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; padding: 0 4px 8px; }
#whoTurn { font-weight: 600; }
#capsInfo { color: var(--mute); }
.pos { position: relative; flex: none; width: 92px; height: 18px; background: #f1eee6; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.pos i { display: block; height: 100%; width: 50%; background: #15191a; transition: width .25s; }
.pos b { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 5px; font-size: .72rem; font-weight: 700; color: #fff; mix-blend-mode: difference; }
#posL { left: 0; }
#posR { right: 0; }

/* Two panes: board and side panel. Landscape: side by side. Portrait: board above, panel below. */
.stage { flex: 1; min-height: 0; width: 100%; max-width: 1280px; display: grid; gap: 14px; }
.boardCol { min-width: 0; }
.boardWrap { aspect-ratio: 1; margin: 0 auto; }
.panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.panel > * { flex: none; }
@media (orientation: landscape) {
  .stage { grid-template-columns: auto minmax(0, 1fr); }
  .boardWrap, .boardBar { width: min(calc(100vh - 156px), 62vw); width: min(calc(100dvh - 156px), 62vw); }
}
@media (orientation: portrait) {
  .stage { grid-template-rows: auto minmax(0, 1fr); }
  .boardWrap { width: min(100%, calc(100vh - 346px)); width: min(100%, calc(100dvh - 346px)); }
  .boardBar { width: 100%; } /* on a narrow phone the bar may be wider than the board, so its buttons are never cut off */
}
canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; border-radius: 0; box-shadow: var(--board-shadow); }

.note { background: var(--surface); border: 0; border-radius: 0; padding: 8px 12px; margin-top: 12px; font-size: .95rem; white-space: pre-line; }
.note p { margin: 0; }
.small { color: var(--mute); font-size: .85rem; }

/* The page viewer (page.js): an article shown in the board window. The canvas keeps its size underneath, so the board comes back unchanged. */
.boardWrap { position: relative; }

/* The bar under the board: undo and redo on the left, the Territory tab on the right. */
.boardBar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px auto 0; }
.barSide { display: flex; gap: 6px; }
button.tab { padding: 3px 8px; font-size: .85rem; border-radius: 0; white-space: nowrap; }
button.tab[aria-pressed="true"] { font-weight: 700; }
button.tab.busy { animation: tabPulse 1.2s ease-in-out infinite; }
@keyframes tabPulse { 50% { opacity: .6; } }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.pageView { display: none; position: absolute; inset: 0; overflow-y: auto; background: #f4f0e6; color: #1d2422; border-radius: 0; box-shadow: var(--board-shadow); font-family: var(--serif); -webkit-overflow-scrolling: touch; }
.boardWrap.paged .pageView { display: block; }
.boardWrap.paged canvas { visibility: hidden; }
.pageHead { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 6px 10px; background: #e6e0d0; border-bottom: 1px solid #cfc7b2; }
.pageHead .pageClose { padding: 3px 8px; font-size: .85rem; }
.pageBody { padding: 4px 18px 22px; line-height: 1.6; font-size: 1rem; }
.pageBody h1 { position: static; transform: none; white-space: normal; font: 600 1.7rem/1.2 var(--serif); margin: .5rem 0 .6rem; padding-bottom: .3rem; border-bottom: 1px solid #cfc7b2; letter-spacing: 0; }
.pageBody h2 { font: 600 1.25rem var(--serif); margin: 1.4rem 0 .3rem; padding-bottom: .15rem; border-bottom: 1px solid #ddd6c4; }
.pageBody p { margin: .6rem 0; }
.pageBody h3 { font: 600 1.05rem var(--serif); margin: 1rem 0 .2rem; }
.pageBody ul { margin: .5rem 0; padding-left: 1.4rem; }
.pageBody li { margin: .25rem 0; }
.pageBody .toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: .6rem 0 1rem; font: .9rem var(--sans); }
.pageBody .cards { display: grid; gap: 8px; margin: .6rem 0; }
.pageBody button.card { display: grid; gap: 2px; width: 100%; text-align: left; padding: 9px 12px; background: #fbf8f0; color: #1d2422; border: 1px solid #cfc7b2; border-radius: 0; font-family: var(--sans); }
.pageBody button.card:hover { border-color: #1a5f8a; background: #fff; }
.pageBody .cardTitle { font: 600 1rem var(--serif); }
.pageBody .cardMeta { font-size: .8rem; color: #5a6560; }
.pageBody .cardNote { font-size: .88rem; line-height: 1.4; }
.pageBody .lead { color: #3a4642; } /* the introduction (before the first ## heading): normal text, a shade softer (Boon's choice) */
.pageBody blockquote { margin: 1rem 0; padding: .4rem 1rem; border-left: 3px solid #b9a77a; background: #ece5d3; border-radius: 0; }
.pageBody a { color: #1a5f8a; }
.pageBody a.cite { font-size: .75em; vertical-align: super; text-decoration: none; margin-left: 1px; }
.pageBody .refs { padding-left: 1.6rem; font-size: .9rem; }
.pageBody .refs li { margin: .35rem 0; padding: 2px 4px;  overflow-wrap: anywhere; }
.pageBody .refs li.flash { background: #fbe9a8; }
.pageBody .host { color: #6a756f; font-size: .85em; }

.lcard { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 6px 8px; }
.lcard .num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .85rem; color: var(--mute); flex: none; }
.lcard.done .num { background: var(--good); border-color: var(--good); color: var(--accent-ink); }
.lcard .t { flex: 1; font-weight: 600; }

dialog { background: var(--surface); color: var(--ink); border: 0; border-radius: 0; padding: 18px 20px; width: min(92vw, 420px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(20, 24, 23, .45); }
.opt { margin: 10px 0; }
.opt .lbl { display: block; font-size: .85rem; color: var(--mute); margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; padding: 3px 4px; cursor: pointer; }
.chips input:checked + span { font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.switch input { width: 20px; height: 20px; accent-color: var(--accent); }

#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 0; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#boardTip { position: fixed; z-index: 30; max-width: min(320px, 80vw); background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 0; font-size: .85rem; line-height: 1.35; white-space: pre-line; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }

@media (prefers-reduced-motion: reduce) { #toast { transition: none; } button.tab.busy { animation: none; } }

#lessonBar { margin-top: 0; }
#kifuBar { margin-top: 0; }
#whoTurn.pick { cursor: pointer; } /* Set up: tap the counts to switch colour */
/* The stone counts at the top of the board (util.js stoneCounts): stones as tall as the letters; your colour underlined. */
#whoTurn .cnt { display: inline-block; font-weight: 400; margin-right: .7em; padding-bottom: 1px; border-bottom: 2px solid transparent; white-space: nowrap; }
#whoTurn .cnt.mine { border-bottom-color: currentColor; }
#whoTurn .cnt:last-child { margin-right: 0; }
#whoTurn .stone, #capsInfo .stone { display: inline-block; width: 1.15em; height: 1.15em; border-radius: 50%; margin-right: .25em; vertical-align: -.22em; box-sizing: border-box; border: 1px solid currentColor; }
#whoTurn .stone.b, #capsInfo .stone.b { background: #111; }
#whoTurn .stone.w, #capsInfo .stone.w { background: #fff; }
#capsInfo { white-space: nowrap; }
#capsInfo .stone { margin: 0 .1em 0 .2em; }
.chatLog .msg.busy { color: var(--mute); font-style: italic; padding-left: 0; } /* "Coach is analysing…" while it works */
#kifuSlider { flex: 1 1 100%; margin: 6px 0 0; }
/* Lists in the chat sit close together, with no extra space between lines (Boon's choice). */
.msg.menu { display: grid; gap: 0; width: 92%; padding: 0; background: none; }
.msg.menu .lcard { padding: 1px 8px; }
/* The welcome's five choices, as buttons inside the welcome message. */
.welcomeChoices { display: grid; gap: 0; margin: 6px 0; white-space: normal; }
.welcomeChoices .lcard { padding: 1px 8px; }

.chat { flex: 1 1 auto; min-height: 150px; display: flex; flex-direction: column; background: var(--surface); border: 0; border-radius: 0; overflow: hidden; position: relative; }
/* The enlarge/shrink button at the top right of the chat; when enlarged the chat covers the screen until tapped again. */
.chatSize { position: absolute; top: 6px; right: 6px; z-index: 1; width: 34px; height: 34px; padding: 6px; border-radius: 0; background: var(--surface); display: grid; place-items: center; }
.chatSize svg { width: 18px; height: 18px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.chatBig #chat { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top) + 8px); bottom: calc(env(safe-area-inset-bottom) + 8px); left: calc(env(safe-area-inset-left) + 8px); right: calc(env(safe-area-inset-right) + 8px); min-height: 0; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.chatLog { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; }
.msg { max-width: 92%; width: fit-content; margin: 8px 0; padding: 9px 13px; border-radius: 0; font-size: .95rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg.coach { padding-left: 0; padding-right: 0; } /* no tint: the coach's words sit on the page (Boon's choice) */
.msg.user { color: var(--mute); margin-left: auto; text-align: right; padding-right: 0; } /* what you typed: plain grey words on the right, no box */
.quick { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
.quick button { padding: 3px 4px; font-size: .85rem; white-space: nowrap; }
.quick:empty { display: none; }
.chatForm { flex: none; display: flex; gap: 6px; padding: 8px 10px 10px; }
.chatInput { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); border: 0; border-bottom: 1px solid var(--mute); border-radius: 0; padding: 6px 2px; }
.chatInput::placeholder { color: var(--mute); font-style: italic; }

/* Phone in landscape (short screen): the title bar sits over the top of the chat panel, so the board can use almost the full height. The chips scroll in one row so the chat gets more room. */
@media (orientation: landscape) and (max-height: 560px) {
  :root { --bw: min(calc(100dvh - 84px), 60vw); }
  header { position: absolute; z-index: 2; top: 4px; height: 34px; min-height: 0; padding: 0; border-bottom: 0; right: calc(env(safe-area-inset-right) + 8px); left: calc(env(safe-area-inset-left) + var(--bw) + 20px); }
  main { padding: 4px 8px 6px; }
  h1 { font-size: 1.05rem; }
  .verStamp { display: none; }
  header { min-height: 0; }
  .panel { padding-top: 36px; }
  #statusBar { padding-bottom: 3px; font-size: .85rem; }
  .boardWrap, .boardBar { width: var(--bw); }
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: none; }
  .chatForm { padding-bottom: 6px; }
}

/* ---------- the tour (tour.js): a highlight ring that darkens the rest of the screen, and an explanation box ---------- */
body:not(.touring) .tourShade, body:not(.touring) .tourRing, body:not(.touring) .tourTip { display: none; }
.tourShade { position: fixed; inset: 0; z-index: 40; }
.tourRing { position: fixed; z-index: 41; pointer-events: none; border: 3px solid var(--accent); border-radius: 0; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); transition: all .35s ease; }
.tourTip, .tourHint { position: fixed; z-index: 42; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; padding: 10px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: .95rem; line-height: 1.45; }
.tourHint { z-index: 50; pointer-events: none; font-size: .88rem; padding: 8px 12px; }
.tourTitle { display: block; margin-bottom: 2px; }
.tourText { margin: 0; }
.tourBar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tourBar button { padding: 3px 8px; min-width: 36px; }
.tourCount { flex: 1; color: var(--mute); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .tourRing { transition: none; } }
/* Press and hold on a button shows its tip (tour.js), so the phone's own text-selection menu is kept out of the way. */
button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Chapter headings in the lessons menu (learn.js). */
.msg.menu .menuHead { display: grid; gap: 2px; margin: 10px 2px 2px; }
.msg.menu .menuHead:first-child { margin-top: 0; }
.msg.menu .menuHead span { color: var(--mute); font-size: .88rem; }

/* The move tree (movetree.js): every move of your game as a dot, with tried lines branching below. Tap a dot to go back to it. */
.moveTree { overflow: auto; max-height: 7.5rem; background: var(--surface); border: 0; border-radius: 0; padding: 4px 0; }
.moveTree svg { display: block; }
.moveTree text { fill: var(--mute); font-size: 9px; font-family: var(--sans); }
.moveTree .ln { stroke: var(--mute); stroke-width: 1.5; fill: none; }
.moveTree .off { opacity: .45; }
.moveTree .hit { fill: transparent; }
.moveTree [data-k] { cursor: pointer; }
.moveTree .b { fill: #16191a; stroke: #7d8582; stroke-width: 1; }
.moveTree .w { fill: #fbfaf6; stroke: #9a9d98; stroke-width: 1; }
.moveTree .start { fill: var(--mute); }
.moveTree .cur { stroke: var(--accent); stroke-width: 3; }
.moveTree.idle { opacity: .6; pointer-events: none; }

/* The clickable words inside the coach's messages (welcome choices, the lessons menu): italics with a thin dotted underline.
   A leading number or tick (.n) is not underlined. */
.msg .lcard { font-style: italic; }
/* Clickable words: italics with a thin dotted underline. The same look for the coach's choices and for every heading that opens
   and closes in the chat (a day, a session, a question). */
.msg .lcard .lt, .chatLog .link { font-style: italic; text-decoration: underline dotted; text-decoration-thickness: 1px; text-decoration-color: var(--mute); text-underline-offset: 3px; }
.msg .lcard .n { font-style: normal; color: var(--mute); min-width: 1.2em; }
.msg .lcard:hover .lt { text-decoration-color: var(--accent); }
.chatInput:focus-visible { outline: none; border-bottom-color: var(--ink); } /* the chat box keeps only its bottom line while you type, a shade darker */

/* The undo/back and redo/next buttons under the board: plain triangles, pointing left and right. */
button.tri { width: 36px; height: 30px; padding: 0; display: grid; place-items: center; }
button.tri::before { content: ""; width: 14px; height: 16px; background: currentColor; }
button.tri.back::before { clip-path: polygon(100% 0, 100% 100%, 0 50%); }
button.tri.fwd::before { clip-path: polygon(0 0, 0 100%, 100% 50%); }

/* The chat as one list (chatlog.js): what you typed and what the coach said, oldest first. Each session starts with its date and time;
   earlier sessions appear when you pull down. */
.chatLog .stamp { text-align: center; color: var(--mute); font-size: .78rem; margin: 10px 0 4px; }
.chatLog .past { padding-bottom: 6px; }
.chatLog .pullHint { display: block; width: 100%; text-align: center; color: var(--mute); font-size: .78rem; padding: 2px 0 6px; }

/* The history's days and sessions (chatlog.js): a day folds its sessions, a session folds its questions. */
.chatLog .fh:hover .link { text-decoration-color: var(--accent); }
.chatLog .fh { display: block; width: 100%; text-align: left; padding: 1px 0; }
.chatLog .day .sess { padding-left: 16px; }
.chatLog .sess > .fb { padding-left: 16px; }
.chatLog .day.shut > .fb, .chatLog .sess.shut > .fb { display: none; }

/* A folded coach's message: its first line only, as clickable text (italics, thin dotted underline). Tap to read it all. */
.chatLog .msg.coach { cursor: pointer; }
.chatLog .msg.clip { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; padding-top: 0; padding-bottom: 0; margin: 2px 0; font-style: italic;
  text-decoration: underline dotted; text-decoration-thickness: 1px; text-decoration-color: var(--mute); text-underline-offset: 3px; }
.chatLog .msg.clip .welcomeChoices, .chatLog .msg.menu.clip > :not(.menuTitle) { display: none; }
.msg.menu .menuTitle { margin: 0 2px 4px; }
.chatLog .msg.menu.clip .menuTitle { font-weight: normal; margin: 0; }
/* Every earlier line of the chat (a folded coach's message, or what you typed) starts with a dash. The dash hangs in the margin,
   so it is not underlined and the text keeps its single line. A folded "Position" or "Your move" message is not listed. */
.chatLog .msg.clip, .chatLog .msg.user.line { position: relative; padding-left: 12px; }
.chatLog .msg.clip::before, .chatLog .msg.user.line::before { content: "-"; position: absolute; left: 0; font-style: normal; text-decoration: none; }
.chatLog .msg.user.line { max-width: 100%; width: auto; margin: 2px 0; padding-top: 0; padding-bottom: 0; text-align: left; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chatLog .msg.clip.skip { display: none; }

/* The New game box has two tabs (cloudsave.js): New game and Saved games. */
.dlgTabs { display: flex; gap: 18px; margin: 0 0 12px; border-bottom: 1px solid var(--line); }
.dlgTab { padding: 4px 2px 6px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 1.05rem; }
.dlgTab[aria-selected="true"] { font-weight: 700; border-bottom-color: var(--ink); }
.saves { max-height: min(52vh, 360px); overflow-y: auto; }
.saveRow { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.saveRow .nm { flex: 1; min-width: 0; display: grid; text-align: left; padding: 0; }
.saveRow .nm .link { font-style: italic; text-decoration: underline dotted; text-decoration-thickness: 1px; text-decoration-color: var(--mute); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saveRow .nm .meta { color: var(--mute); font-size: .8rem; }
.saveRow .nm:hover .link { text-decoration-color: var(--accent); }
.saveRow input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); border: 0; border-bottom: 1px solid var(--mute); border-radius: 0; padding: 3px 2px; }
.saveRow button.act { font-size: .85rem; color: var(--mute); }
