/* canvas. The same paper and ink as tasks.gaudims.ai: neutral grey paper, one sans for words and controls, small
   grey text links instead of buttons, no panels. The canvas is the dot-grid paper the tasks flow view uses. */

:root {
  --bg: #fafafa;
  --ink: #1a1a1a;
  --muted: #737373;
  --faint: #dcdcdc;
  --hover: #efefef;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text: var(--ui);
  --late: #b8473a;
  --snap: #c93aa0;
  --c1: #f2b8b8; --c2: #f3cc9f; --c3: #e9dc8a; --c4: #badca6;
  --c5: #a6dccf; --c6: #b0ccf1; --c7: #cdbff3; --c8: #ecb9dc;
  --node-bg: #ececec;
  --dot: color-mix(in srgb, var(--muted) 28%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1); --fast: .18s; --mid: .32s; --slow: .5s;
  --live-1: #c2410c; --live-2: #1d4ed8; --live-3: #047857; --live-4: #7e22ce; --live-5: #be123c; --live-6: #0e7490;
  --shadow: 0 10px 30px rgba(0, 0, 0, .14);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #151515; --ink: #e8e8e8; --muted: #8f8f8f; --faint: #333333; --hover: #222222;
  --late: #e0705f; --snap: #ff7ad0;
  --c1: #6e2f2f; --c2: #6d4524; --c3: #5f561c; --c4: #2f5128;
  --c5: #1f4e46; --c6: #264264; --c7: #41326b; --c8: #5e2c52;
  --node-bg: #222222;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.theme-shift, .theme-shift * { transition: background-color var(--mid) var(--ease), color var(--mid) var(--ease), border-color var(--mid) var(--ease) !important; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.fine { font-size: 12px; }
.spacer { flex: 1; }
.err { color: var(--late); margin: 8px 0 0; font-size: 13px; }
a { color: inherit; }
h2 { font-weight: 400; font-size: 22px; margin: 0 0 14px; }

/* ---------- text links, icon buttons, the theme disc ---------- */

button.link, a.link {
  background: none; border: 0; padding: 0; margin: 0; color: var(--muted); font: inherit; cursor: pointer;
  text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
  transition: color var(--fast) var(--ease);
}
button.link:hover, a.link:hover, button.link:focus-visible, a.link:focus-visible { color: var(--ink); outline: none; }
button.link:disabled { opacity: .4; cursor: default; }
button.link.strong { color: var(--ink); font-weight: 500; }
button.link.toggle.on { color: var(--ink); font-weight: 600; }
button.link .ic { width: 14px; height: 14px; }
.ic { width: 15px; height: 15px; flex-shrink: 0; }
button.ib {
  background: none; border: 0; padding: 5px; margin: 0; border-radius: 6px; color: var(--muted); cursor: pointer; line-height: 0;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
button.ib:hover, button.ib:focus-visible { color: var(--ink); background: var(--hover); outline: none; }
button.ib .ic { width: 16px; height: 16px; }
button.ib.toggle-ib.on { color: var(--ink); background: var(--hover); }
button.theme {
  width: 14px; height: 14px; padding: 0; margin: 0 4px; border-radius: 50%;
  color: var(--muted); border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  cursor: pointer; flex-shrink: 0;
  transition: transform var(--mid) var(--ease), color var(--fast) var(--ease);
}
button.theme.dark { transform: rotate(180deg); }
button.theme:hover { color: var(--ink); }
.wordmark { font-family: var(--text); font-weight: 400; font-size: 40px; letter-spacing: -0.02em; margin: 0; text-decoration: none; color: var(--ink); }
.wordmark.small { font-size: 19px; }
kbd { display: inline-block; min-width: 18px; text-align: center; font: 11px/1 var(--ui); padding: 3px 5px; border: 1px solid var(--faint); border-bottom-width: 2px; border-radius: 4px; color: var(--ink); background: var(--bg); }
input[type="text"], input[type="number"] {
  font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--faint); border-radius: 0;
  padding: 6px 0; min-width: 0; outline: none; transition: border-color var(--fast) var(--ease);
}
input:focus { border-bottom-color: var(--ink); }
input::placeholder { color: var(--muted); opacity: .7; }

/* ---------- tooltips, menus, the confirmation card, the note ---------- */

#tip {
  position: fixed; z-index: 90; max-width: 280px; padding: 6px 10px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font: 12px/1.45 var(--ui); pointer-events: none;
}
#tip kbd { border-color: color-mix(in srgb, var(--bg) 40%, transparent); color: var(--bg); background: transparent; margin-left: 4px; }
@media (hover: none) { #tip { display: none !important; } }

.ctx {
  position: fixed; z-index: 60; min-width: 190px; max-height: calc(100vh - 12px); overflow-y: auto; padding: 4px 0;
  background: var(--bg); color: var(--ink); border: 1px solid var(--faint); border-radius: 8px;
  box-shadow: var(--shadow); font-size: 13px;
}
.ctx .ctx-head { padding: 5px 12px 3px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.ctx button.item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 5px 12px; border: 0; background: none; color: var(--ink); font: 13px var(--ui); cursor: pointer; }
.ctx button.item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx button.item .ic { color: var(--muted); width: 14px; height: 14px; }
.ctx button.item:not(:has(.ic)) { padding-left: 36px; }
.ctx button.item:hover:not(:disabled) { background: var(--hover); }
.ctx button.item:disabled { opacity: .4; cursor: default; }
.ctx button.item.danger, .ctx button.item.danger .ic { color: var(--late); }
.ctx button.item.on span { font-weight: 600; }
.ctx button.item kbd { color: var(--muted); font: 11px var(--ui); border: 0; padding: 0; background: none; min-width: 0; }
.ctx .ctx-row { display: flex; gap: 2px; padding: 3px 8px 3px 12px; align-items: center; }
.ctx .ctx-row-label { width: 72px; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.ctx .ctx-row button.link { font-size: 12px; padding: 3px 6px; border-radius: 5px; }
.ctx .ctx-row button.link:hover { background: var(--hover); }
.ctx .ctx-row button.link.on { color: var(--ink); font-weight: 600; }
.ctx .ctx-row button.ib { padding: 4px; }
.ctx .ctx-row button.ib.on { color: var(--ink); background: var(--hover); }
.ctx .ctx-sep { height: 1px; background: var(--faint); margin: 4px 0; }
.font-menu { width: 260px; max-height: min(520px, calc(100vh - 80px)); }
.font-menu button.item span { font-size: 15px; }
.font-search { padding: 4px 12px 6px; position: sticky; top: -4px; background: var(--bg); z-index: 1; }
.font-search input { width: 100%; font-size: 13px; }

.ask {
  position: fixed; z-index: 80; width: 290px; max-width: calc(100vw - 16px); padding: 12px 14px 8px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--faint); border-radius: 10px;
  box-shadow: var(--shadow); font: 13px/1.45 var(--ui);
}
.ask p { margin: 0 0 10px; overflow-wrap: anywhere; }
.ask .ask-input { width: 100%; margin: -4px 0 10px; }
.ask-foot { display: flex; justify-content: flex-end; gap: 18px; padding-top: 6px; border-top: 1px solid var(--faint); }
.ask-foot .link.danger { color: var(--late); }

#note {
  position: fixed; z-index: 85; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 14px; align-items: baseline; max-width: calc(100vw - 32px);
  padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: var(--shadow);
}
#note.err { background: var(--late); color: #fff; }
#note .link { color: color-mix(in srgb, var(--bg) 70%, transparent); }
#tip, .ctx, .ask, #note { transition: opacity var(--fast) var(--ease), translate var(--fast) var(--ease), display var(--fast) allow-discrete; }
#tip[hidden], .ctx[hidden], .ask[hidden], #note[hidden] { opacity: 0; translate: 0 4px; }
@starting-style { #tip, .ctx, .ask, #note { opacity: 0; translate: 0 6px; } }

dialog {
  background: var(--bg); color: var(--ink); border: 1px solid var(--faint); border-radius: 8px;
  padding: 24px 28px; width: min(560px, 92vw); max-height: calc(100dvh - 32px); font-size: 14px;
  transition: opacity var(--mid) var(--ease), translate var(--mid) var(--ease), overlay var(--mid) allow-discrete, display var(--mid) allow-discrete;
}
dialog[open] { opacity: 1; translate: 0 0; }
dialog:not([open]) { opacity: 0; translate: 0 6px; }
@starting-style { dialog[open] { opacity: 0; translate: 0 6px; } }
dialog::backdrop { background: rgba(0, 0, 0, .25); transition: background-color var(--mid) var(--ease), overlay var(--mid) allow-discrete, display var(--mid) allow-discrete; }
dialog:not([open])::backdrop { background-color: transparent; }
@starting-style { dialog[open]::backdrop { background-color: transparent; } }
.dialog-foot { display: flex; gap: 18px; align-items: baseline; justify-content: flex-end; margin-top: 22px; font-size: 13px; }

/* ---------- signed out, missing board ---------- */

#app.gate {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 40px; text-align: center;
}
#app.gate > * { animation: rise var(--slow) var(--ease) both; }
#app.gate > *:nth-child(2) { animation-delay: .12s; }
#app.gate > *:nth-child(3) { animation-delay: .2s; }
#app.gate p { max-width: 380px; margin: 0; }
.signin { font-size: 18px; color: var(--ink) !important; border-bottom: 1px solid var(--faint) !important; padding-bottom: 2px !important; }
.signin:hover { border-bottom-color: var(--ink) !important; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ---------- the list of boards ---------- */

#app.list-page { max-width: 1200px; margin: 0 auto; padding: 28px 32px 80px; animation: fade var(--mid) var(--ease) both; }
.list-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; font-size: 13px; }
.list-top .me { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-acts { display: flex; gap: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--faint); margin-bottom: 26px; font-size: 14px; }
.sec { margin-bottom: 34px; }
.sec-head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 14px; }
details.sec summary { cursor: pointer; list-style: none; }
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary .n { margin-left: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }
.card { display: block; text-decoration: none; color: var(--ink); border-radius: 8px; animation: rise var(--mid) var(--ease) both; }
.card .thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; display: grid; place-items: center; padding: 10px;
  background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 14px 14px;
  color: var(--faint);
}
/* The hairline sits over the picture, so a picture reaching the edge doesn't hide it. */
.card .thumb::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--faint); pointer-events: none; transition: box-shadow var(--fast) var(--ease); }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card .thumb .ic { width: 38px; height: 38px; }
.card:hover .thumb::after { box-shadow: inset 0 0 0 1px var(--muted); }
.card:focus-visible { outline: none; }
.card:focus-visible .thumb::after { box-shadow: inset 0 0 0 2px var(--ink); }
.card-t { margin-top: 9px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-m { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.deleted { opacity: .6; }
.empty-line { grid-column: 1 / -1; margin: 0; }

/* ---------- one board ---------- */

#app.board-page { position: fixed; inset: 0; overflow: hidden; }
.stage {
  position: absolute; inset: 0; overflow: hidden; outline: none;
  background-color: var(--bg); background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: default;
}
.stage.far { background-image: radial-gradient(color-mix(in srgb, var(--muted) 16%, transparent) 1px, transparent 1px); }
.stage.grab, .stage.grab * { cursor: grab !important; }
.stage.panning, .stage.panning * { cursor: grabbing !important; }
.stage.moving .it { cursor: grabbing; }
.world, .pending-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pending-layer { pointer-events: none; z-index: 2; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.cursors { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }

.it { position: absolute; left: 0; top: 0; cursor: default; }
.it.image .flip { position: absolute; inset: 0; overflow: hidden; }
.it.image img { position: absolute; display: block; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.it.image { background: color-mix(in srgb, var(--muted) 12%, transparent); }
.it.image.ready { background: none; }
.it.image.missing { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--muted) 14%, transparent) 0 6px, transparent 6px 12px); }
.it.image img { opacity: 0; transition: opacity var(--mid) var(--ease); }
.it.image.ready img { opacity: 1; }
.it.gray img, .world.gray-all img { filter: grayscale(1); }
.it.image.cropping .flip { overflow: visible; }
.it.image.cropping img.ghost { opacity: .32; }
.it.text { width: max-content; }
.it.text .tx {
  display: block; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.3; min-height: 1.3em; min-width: 2px;
  outline: none; cursor: default; user-select: none; -webkit-user-select: none;
}
.it.text.auto .tx { white-space: pre; }
.it.text.editing .tx { cursor: text; user-select: text; -webkit-user-select: text; caret-color: var(--ink); }
.it.text.editing { z-index: 100000 !important; }
.pending { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 2px; }
.pending img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.4); }
.pending::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--bg) 55%, transparent) 50%, transparent 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Selection, handles and guides, drawn in screen pixels. The pale halo keeps the ink line visible over any picture. */
.overlay polygon, .overlay rect.group { fill: none; vector-effect: non-scaling-stroke; }
/* A wider paper-coloured line under each ink line (not a blur filter: those are slow with many selected). */
.overlay .halo { stroke: var(--bg); stroke-width: 4; opacity: .85; }
.overlay .sel { stroke: var(--ink); stroke-width: 1.5; }
.overlay .sel.locked { stroke-dasharray: 4 3; }
.overlay .hover { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1; }
.overlay .group { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.overlay .h { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; pointer-events: all; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
.overlay .h.rot { cursor: grab; }
.overlay .rot-line { stroke: var(--ink); stroke-width: 1; opacity: .5; }
.overlay .marquee { fill: color-mix(in srgb, var(--ink) 6%, transparent); stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1; stroke-dasharray: 4 3; }
.overlay .guide { stroke: var(--snap); stroke-width: 1; opacity: .8; }
.overlay .crop-frame { stroke: var(--ink); stroke-width: 1.5; fill: transparent; pointer-events: all; cursor: move; }
.overlay .remote-sel { stroke-width: 2; }
.overlay .remote-tag text { fill: #fff; font: 600 11px var(--ui); }

/* Other people's pointers. */
.rcur { position: absolute; left: 0; top: 0; transition: transform .09s linear; color: var(--who); will-change: transform; }
.rcur svg { display: block; fill: var(--who); stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.rcur span { position: absolute; left: 14px; top: 16px; padding: 2px 7px; border-radius: 5px; background: var(--who); color: #fff; font: 600 11px/1.4 var(--ui); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rcur { transition: none; } }

/* The bar along the top floats over the board on a fade of paper. */
.bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px 22px; pointer-events: none;
  background: linear-gradient(var(--bg) 0, color-mix(in srgb, var(--bg) 88%, transparent) 55%, transparent);
}
.bar > * { pointer-events: auto; }
.bar-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bar-l .crumb { color: var(--faint); }
.title-btn { background: none; border: 0; padding: 2px 4px; margin: 0 -4px; border-radius: 5px; font: 16px var(--text); color: var(--ink); cursor: text; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background-color var(--fast) var(--ease); }
.title-btn:hover { background: var(--hover); }
.title-edit { font: 16px var(--text) !important; padding: 2px 0 !important; }
.save { font-size: 12px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.save.warn { color: var(--late); }
.bar-r { display: flex; align-items: center; gap: 2px; }
.view-only { font-size: 12px; color: var(--muted); margin: 0 8px; }
.here { display: inline-flex; align-items: center; margin-right: 8px; }
.here .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 10px/1 var(--ui); border: 2px solid var(--bg); margin-left: -7px; padding: 0; cursor: pointer; box-sizing: content-box; animation: fade var(--mid) var(--ease) both; }
.here .av:first-child { margin-left: 0; }
.here .av:hover { transform: translateY(-1px); }

.zoombar {
  position: absolute; right: 14px; bottom: 14px; z-index: 10; display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.zoombar .pct { min-width: 46px; justify-content: center; font-size: 12px; font-variant-numeric: tabular-nums; }

.empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 1; }
.empty p { color: var(--muted); font-size: 16px; animation: rise var(--slow) var(--ease) both; }
.drop { position: absolute; inset: 10px; z-index: 20; border: 2px dashed var(--muted); border-radius: 12px; display: grid; place-items: center; pointer-events: none; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.drop span { font-size: 16px; color: var(--ink); background: var(--bg); padding: 6px 14px; border-radius: 8px; }

/* The text toolbar, over selected text. */
.textbar {
  position: absolute; z-index: 12; display: flex; align-items: center; gap: 2px; padding: 4px 6px;
  background: var(--bg); border: 1px solid var(--faint); border-radius: 9px; box-shadow: var(--shadow);
}
.tb-font { display: inline-flex; align-items: center; gap: 6px; max-width: 170px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: 14px; cursor: pointer; }
.tb-font span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-font .ic { color: var(--muted); width: 13px; height: 13px; }
.tb-font:hover { background: var(--hover); }
.tb-size { width: 52px; text-align: center; font-size: 13px !important; padding: 3px 0 !important; font-variant-numeric: tabular-nums; }
.tb-size::-webkit-inner-spin-button { opacity: .5; }
.tb-sep { width: 1px; height: 18px; background: var(--faint); margin: 0 4px; }
.sw { width: 16px; height: 16px; margin: 0 1px; padding: 0; border: 0; cursor: pointer; background: var(--sw); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.sw-ink { border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.sw-fill { border-radius: 4px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.sw-fill.none { background: linear-gradient(135deg, transparent 45%, var(--late) 45% 55%, transparent 55%); }
.sw:hover { transform: scale(1.15); }
.sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

/* Share and shortcuts. */
dialog.share p.muted { font-size: 13px; margin: -6px 0 16px; }
.people { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 600 11px/1 var(--ui); flex-shrink: 0; }
.person .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.person .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who .muted { font-size: 12px; }
.roles { display: inline-flex; gap: 12px; font-size: 13px; }
.add-person { display: flex; align-items: baseline; gap: 16px; padding-top: 12px; border-top: 1px solid var(--faint); }
.add-person input { flex: 1; }
.link-row { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--faint); font-size: 13px; }
.link-row .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.link-row input { flex: 1; font-size: 12px; color: var(--muted); }
.link-row .muted { flex: 1; }
dialog.help { width: min(820px, 94vw); }
dialog.help .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
dialog.help h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 14px 0 8px; }
dialog.help .kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 4px 0; font-size: 13px; align-items: baseline; }
dialog.help .kv kbd { margin-right: 2px; }

/* ---------- phone ---------- */

@media (max-width: 700px) {
  #app.list-page { padding: 20px 16px 60px; }
  .list-acts { flex-wrap: wrap; gap: 14px 22px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
  .bar { padding: 10px 10px 18px; }
  .title-btn { max-width: 30vw; }
  .bar-r .ib { padding: 4px; }
  .save { display: none; }
  dialog.help .keys { grid-template-columns: 1fr; }
  dialog.help .kv { grid-template-columns: 120px 1fr; }
}
