/* ============ Look ============ */

@property --fade {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}
@property --reveal {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

/* Three looks, each with a light and a dark side.
   Ink: white paper, black ink, cobalt. Moss: the same with deep green.
   Midnight: navy night with violet, always dark. */

:root {
  --serif: "Iowan Old Style", "Charter", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.32, 0.64, 1);

  --sbw: 268px;
  --prose: 20px;
  --prose-lh: 1.72;
  --measure: 640px;

  --accent-l: #2d5bff;
  --accent-d: #7b97ff;

  --s-draft: #f0a020;
  --s-redo: #ef4f5a;
  --s-done: #16a974;

  --t-sky: #3a8ee6;
  --t-mint: #1db487;
  --t-violet: #8a63f2;
  --t-rose: #e8558a;
  --t-amber: #eb9f2d;
  --t-teal: #14a7b3;

  /* Light */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --ink: #0b0c0f;
  --ink-2: #3c4250;
  --ink-3: #7a8293;
  --ink-4: #b3bac8;
  --line: rgba(12, 18, 40, 0.08);
  --line-2: rgba(12, 18, 40, 0.13);
  --hover: rgba(12, 18, 40, 0.04);
  --accent: var(--accent-l);
  --on-accent: #ffffff;
  --glass: rgba(255, 255, 255, 0.84);
  --shadow-1: 0 1px 2px rgba(12, 18, 40, 0.06), 0 0 0 1px rgba(12, 18, 40, 0.07);
  --shadow-2: 0 12px 32px -12px rgba(12, 18, 40, 0.2), 0 3px 8px -3px rgba(12, 18, 40, 0.08), 0 0 0 1px rgba(12, 18, 40, 0.07);
  --shadow-3: 0 24px 60px -18px rgba(12, 18, 40, 0.28), 0 6px 16px -6px rgba(12, 18, 40, 0.1), 0 0 0 1px rgba(12, 18, 40, 0.07);
  --scrim: rgba(12, 18, 40, 0.14);
  --side-tint: 3%;
  color-scheme: light;

  --bg-side: color-mix(in srgb, var(--accent) var(--side-tint), var(--bg));
  --sel: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 60%, transparent);
  --s-bits: var(--ink-4);
}

:root[data-look="moss"] {
  --accent-l: #0e8a5c;
  --accent-d: #3fcb8f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d10;
    --bg-elev: #17191e;
    --ink: #f1f2f5;
    --ink-2: #b8bdc9;
    --ink-3: #7b8191;
    --ink-4: #484d59;
    --line: rgba(220, 228, 255, 0.07);
    --line-2: rgba(220, 228, 255, 0.12);
    --hover: rgba(220, 228, 255, 0.05);
    --accent: var(--accent-d);
    --on-accent: #0b0c0f;
    --glass: rgba(23, 25, 30, 0.84);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 228, 255, 0.06);
    --shadow-2: 0 14px 34px -12px rgba(0, 0, 0, 0.7), 0 3px 8px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 228, 255, 0.07);
    --shadow-3: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 6px 16px -6px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(220, 228, 255, 0.08);
    --scrim: rgba(0, 0, 0, 0.4);
    --side-tint: 4%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d10;
  --bg-elev: #17191e;
  --ink: #f1f2f5;
  --ink-2: #b8bdc9;
  --ink-3: #7b8191;
  --ink-4: #484d59;
  --line: rgba(220, 228, 255, 0.07);
  --line-2: rgba(220, 228, 255, 0.12);
  --hover: rgba(220, 228, 255, 0.05);
  --accent: var(--accent-d);
  --on-accent: #0b0c0f;
  --glass: rgba(23, 25, 30, 0.84);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 228, 255, 0.06);
  --shadow-2: 0 14px 34px -12px rgba(0, 0, 0, 0.7), 0 3px 8px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(220, 228, 255, 0.07);
  --shadow-3: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 6px 16px -6px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(220, 228, 255, 0.08);
  --scrim: rgba(0, 0, 0, 0.4);
  --side-tint: 4%;
  color-scheme: dark;
}

/* Midnight is always dark (the app sets data-theme="dark" for it). */
:root[data-look="midnight"] {
  --accent-d: #9a8cff;
  --bg: #0a0e1c;
  --bg-elev: #131a30;
  --ink: #e9edf8;
  --ink-2: #aab3cf;
  --ink-3: #6f7a9c;
  --ink-4: #3c4566;
  --line: rgba(150, 170, 255, 0.09);
  --line-2: rgba(150, 170, 255, 0.15);
  --hover: rgba(150, 170, 255, 0.06);
  --glass: rgba(19, 26, 48, 0.84);
  --side-tint: 5%;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: default;
}
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 6px; }

kbd {
  font: 500 10.5px/1 var(--sans);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

::selection { background: var(--accent-soft); }

.thin-scroll { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.thin-scroll:hover { scrollbar-color: var(--line-2) transparent; }

body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none !important; }

/* ============ Layout ============ */

.app {
  display: grid;
  grid-template-columns: var(--sbw) minmax(0, 1fr);
  height: 100vh;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
}

/* ============ Side list ============ */

.sidebar {
  background: var(--bg-side);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
}

.sb-top {
  height: 46px;
  flex: none;
  -webkit-app-region: drag;
}

.sb-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 0 10px 18px;
}

.sb-section + .sb-section { margin-top: 18px; }

.sb-head {
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 4px 0 10px;
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 0.18s, color 0.18s;
}
.sb-head-label { flex: 1; }
.sb-head.is-drop { background: var(--accent-soft); color: var(--accent); }

.sb-add {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity 0.18s, background 0.18s, color 0.18s;
}
.sb-section:hover .sb-add, .sb-add:focus-visible, .sb-add.is-active { opacity: 1; }
.sb-add:hover { background: var(--hover); color: var(--ink); }

.tree { position: relative; }

.tree-empty {
  padding: 6px 10px 2px 28px;
  color: var(--ink-4);
  font-size: 12px;
  line-height: 1.45;
}

.row {
  --indent: calc(var(--depth) * 14px);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px 0 calc(4px + var(--indent));
  border-radius: 7px;
  color: var(--ink-2);
  position: relative;
  transition: background 0.16s, color 0.16s, opacity 0.2s;
}
.row:hover { background: var(--hover); color: var(--ink); }
.row.is-selected { background: var(--sel); color: var(--ink); }
.row.is-selected .ico { color: var(--accent); }
.row.is-drop-into { background: var(--accent-soft); color: var(--ink); }
.row.is-source { opacity: 0.32; }
.row.is-landing { opacity: 0; transition: none; }
.row.is-flash { animation: row-flash 1.1s var(--ease); }
@keyframes row-flash { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

.twisty {
  width: 16px;
  height: 16px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  border-radius: 4px;
}
.twisty svg { width: 12px; height: 12px; transition: transform 0.26s var(--ease); }
.node.is-open > .row .twisty svg { transform: rotate(90deg); }
.row:hover .twisty { color: var(--ink-3); }

.ico {
  width: 18px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  transition: color 0.16s;
}
.ico svg { width: 15px; height: 15px; }
.row.is-folder .ico { color: var(--ink-3); }

.label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 2px;
  font-size: 13px;
}
.row.is-folder .label { font-weight: 500; }
.row.is-untitled .label { color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 13.5px; }
.label[contenteditable="true"] {
  background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 0 4px var(--accent-soft);
  border-radius: 4px;
  outline: none;
  padding: 1px 5px;
  margin-left: -3px;
  text-overflow: clip;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.count {
  font-size: 11px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.sdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: var(--s-bits);
  transition: background 0.2s;
}
.s-bits { background: var(--s-bits); }
.s-draft { background: var(--s-draft); }
.s-redo { background: var(--s-redo); }
.s-done { background: var(--s-done); }
.row .sdot { opacity: 0.9; }
.row .sdot.s-bits { opacity: 0; }

.kids {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.node.is-open > .kids { grid-template-rows: 1fr; }
.kids-inner { min-height: 0; min-width: 0; overflow: hidden; }
.node.is-open:not(.is-clipping) > .kids > .kids-inner { overflow: visible; }

.drop-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  transition: opacity 0.12s, transform 0.14s var(--ease), width 0.14s var(--ease);
}
.drop-line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-side);
}
.drop-line.is-on { opacity: 1; }

/* tags */
.tag-list { padding: 2px 0 0; }
.tag-item {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 8px 0 13px;
  border-radius: 7px;
  color: var(--ink-2);
  transition: background 0.16s, color 0.16s, transform 0.2s var(--spring);
}
.tag-item:hover { background: var(--hover); color: var(--ink); }
.tag-item.is-selected { background: var(--sel); color: var(--ink); }
.tag-item.is-drop { background: var(--accent-soft); color: var(--ink); transform: scale(1.02); }
.tag-item .tdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tag-item .tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-empty { padding: 4px 10px 0 13px; color: var(--ink-4); font-size: 12px; line-height: 1.45; }

.t-sky { --tc: var(--t-sky); }
.t-mint { --tc: var(--t-mint); }
.t-violet { --tc: var(--t-violet); }
.t-rose { --tc: var(--t-rose); }
.t-amber { --tc: var(--t-amber); }
.t-teal { --tc: var(--t-teal); }
.tdot { background: var(--tc); }

.sb-foot {
  flex: none;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--line);
}
.sb-goto {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-3);
  transition: background 0.16s, color 0.16s;
}
.sb-goto:hover { background: var(--hover); color: var(--ink); }
.sb-goto span { flex: 1; text-align: left; }
.sb-goto svg { width: 14px; height: 14px; }

/* ============ Main ============ */

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.toolbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 22px;
  -webkit-app-region: drag;
  transition: background 0.25s, box-shadow 0.25s;
}
.toolbar.is-scrolled {
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.toolbar > * { -webkit-app-region: no-drag; }

.crumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.crumb {
  padding: 3px 6px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb:hover { background: var(--hover); color: var(--ink); }
.crumb.is-last { color: var(--ink); font-weight: 500; }
.crumb-sep { color: var(--ink-4); padding: 0 1px; }
.crumb .tdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.seg {
  position: relative;
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg button {
  position: relative;
  z-index: 1;
  height: 26px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 12px;
  transition: color 0.2s;
}
.seg button.is-on { color: var(--ink); }
.seg-thumb {
  position: absolute;
  top: 2px;
  left: 0;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  transition: transform 0.32s var(--spring), width 0.32s var(--spring);
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px 0 9px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 12px;
  transition: background 0.16s, color 0.16s, opacity 0.2s;
}
.tb-btn:hover { background: var(--hover); color: var(--ink); }
.tb-btn svg { width: 15px; height: 15px; }
.tb-btn[disabled] { opacity: 0.35; pointer-events: none; }
.tb-btn.is-primary { color: var(--accent); }
.tb-btn.is-primary:hover { background: var(--accent-soft); }

.view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.view-inner { animation: view-in 0.42s var(--ease) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---- Page ---- */

.page {
  max-width: calc(var(--measure) + 96px);
  margin: 0 auto;
  padding: 96px 48px 40vh;
}

.page-head { margin-bottom: 42px; }
.page-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.page-title {
  font: 600 34px/1.18 var(--serif);
  letter-spacing: -0.012em;
  margin: 0;
  outline: none;
  color: var(--ink);
}
.page-sub { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; }

[data-ph]:empty::before {
  content: attr(data-ph);
  color: var(--ink-4);
  pointer-events: none;
}
.prose { position: relative; }
.prose.is-empty::before {
  content: attr(data-ph);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-4);
  pointer-events: none;
}

.block { position: relative; }
.block + .block { margin-top: 0; }
.block-title {
  font: 600 21px/1.3 var(--serif);
  margin: 0 0 6px;
  outline: none;
  color: var(--ink);
  letter-spacing: -0.006em;
}
.block.is-single .block-title { font-size: 34px; line-height: 1.18; letter-spacing: -0.012em; margin-bottom: 12px; }
.block-title:empty::before { content: attr(data-ph); color: var(--ink-4); }

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 22px -7px;
  min-height: 26px;
  color: var(--ink-3);
  font-size: 12px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.block:hover .meta, .block:focus-within .meta, .meta:focus-within { opacity: 1; }
.block.is-single .meta { margin-bottom: 34px; opacity: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--ink-3);
  transition: background 0.16s, color 0.16s, transform 0.2s var(--spring), opacity 0.2s;
  white-space: nowrap;
}
.chip:hover { background: var(--hover); color: var(--ink); }
.chip .tdot { width: 7px; height: 7px; border-radius: 50%; }
.chip .x { width: 0; overflow: hidden; display: grid; place-items: center; transition: width 0.16s; color: var(--ink-3); }
.chip .x svg { width: 11px; height: 11px; }
.chip.is-tag:hover .x { width: 12px; }
.chip.is-quiet { color: var(--ink-4); }
.chip.is-quiet:hover { color: var(--ink-2); }
.chip-sep { width: 1px; height: 12px; background: var(--line-2); margin: 0 4px; }

.tag-input {
  height: 24px;
  width: 120px;
  border: 0;
  outline: none;
  border-radius: 7px;
  padding: 0 8px;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 0 4px var(--accent-soft);
}

.prose {
  font: 400 var(--prose)/var(--prose-lh) var(--serif);
  color: var(--ink);
  outline: none;
  caret-color: var(--accent);
  font-variant-ligatures: common-ligatures;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first;
  overflow-wrap: break-word;
  min-height: 1.7em;
}
.prose p { margin: 0 0 0.62em; }
.prose p:last-child { margin-bottom: 0; }

.ornament {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 46px 0 40px;
  color: var(--ink-4);
}
.ornament i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 64px 0 34px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head:first-child { margin-top: 0; }
.section-head button { padding: 2px 6px; margin: -2px -6px; border-radius: 5px; transition: background 0.16s, color 0.16s; }
.section-head button:hover { background: var(--hover); color: var(--ink); }

.add-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 10px 12px;
  margin-left: -12px;
  border-radius: 10px;
  color: var(--ink-4);
  font-size: 13px;
  transition: background 0.16s, color 0.16s;
}
.add-line:hover { background: var(--hover); color: var(--ink-2); }
.add-line svg { width: 15px; height: 15px; }

.empty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-3);
  padding: 40px;
}
.empty h2 { font: 500 22px/1.3 var(--serif); color: var(--ink-2); margin: 0 0 8px; }
.empty p { margin: 0 0 18px; }

/* ---- Cards ---- */

.board {
  padding: 92px 36px 80px;
  max-width: 1180px;
  margin: 0 auto;
}
.board-head { margin: 0 0 28px 4px; }
.board-head .page-title { font-size: 28px; }

.grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 16px 16px 12px;
  border-radius: 12px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease), opacity 0.2s;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.card.is-current { box-shadow: 0 0 0 1.5px var(--accent-line), var(--shadow-1); }
.card.is-placeholder {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  transform: none;
}
.card.is-placeholder > * { opacity: 0; }
.card.is-landing > * { opacity: 0; }
.card.is-landing { box-shadow: none; background: transparent; }

.card.is-folder::before, .card.is-folder::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  z-index: -1;
  transition: transform 0.25s var(--ease);
}
.card.is-folder::before { transform: translate(5px, 5px); opacity: 0.7; }
.card.is-folder::after { transform: translate(10px, 10px); opacity: 0.4; }
.card.is-folder:hover::before { transform: translate(6px, 7px); }
.card.is-folder:hover::after { transform: translate(12px, 14px); }
.card.is-folder.is-placeholder::before, .card.is-folder.is-placeholder::after { display: none; }
.grid { isolation: isolate; }
.card { z-index: 0; }

.card-title {
  font: 600 15.5px/1.3 var(--serif);
  color: var(--ink);
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.is-untitled .card-title { font-weight: 400; font-style: italic; color: var(--ink-2); }
.card-body {
  flex: 1;
  font: 400 13.5px/1.55 var(--serif);
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body.is-summary { color: var(--ink-2); }
.card-sum-edit {
  outline: none;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 0 4px var(--accent-soft);
  padding: 2px 4px;
  margin: -2px -4px;
  -webkit-line-clamp: unset;
  user-select: text;
  -webkit-user-select: text;
  color: var(--ink);
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font: 500 11px/1 var(--sans);
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.card-foot .grow { flex: 1; }
.card-foot .tdot { width: 7px; height: 7px; border-radius: 50%; }
.card-foot .lang { color: var(--ink-4); letter-spacing: 0.05em; }

.card.is-new {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink-4);
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: row;
  font-size: 13px;
}
.card.is-new:hover { color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--hover); transform: none; }
.card.is-new svg { width: 15px; height: 15px; }

.board-note { margin-top: 26px; color: var(--ink-4); font-size: 12px; text-align: center; }

/* ---- Drag ghost ---- */

.ghost-wrap {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  pointer-events: none;
  will-change: transform;
}
.ghost {
  transform-origin: var(--ox, 20px) var(--oy, 14px);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease), opacity 0.2s;
}
.row.ghost {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  padding-left: 4px;
}
.row.ghost.is-lifted { box-shadow: var(--shadow-2); }
.card.ghost.is-lifted { box-shadow: var(--shadow-3); }
.card.ghost.over-side { opacity: 0.92; }

/* ============ Menus, palette, toasts ============ */

.overlay-root { position: fixed; inset: 0; pointer-events: none; z-index: 2000; }
.overlay-root > * { pointer-events: auto; }

.menu {
  position: fixed;
  min-width: 190px;
  padding: 5px;
  border-radius: 11px;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(22px);
  -webkit-backdrop-filter: saturate(1.6) blur(22px);
  box-shadow: var(--shadow-3);
  font-size: 13px;
  transform-origin: top left;
  animation: pop-in 0.16s var(--ease) both;
}
.menu.is-closing { animation: pop-out 0.12s ease-in both; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96) translateY(-3px); } }
@keyframes pop-out { to { opacity: 0; transform: scale(0.97); } }
.menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  text-align: left;
  color: var(--ink);
}
.menu-item:hover, .menu-item.is-active { background: var(--accent); color: var(--on-accent); }
.menu-item:hover .sdot, .menu-item.is-active .sdot { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8); }
.menu-item .grow { flex: 1; }
.menu-item .check { width: 14px; display: grid; place-items: center; }
.menu-item.is-danger { color: var(--s-redo); }
.menu-item.is-danger:hover { background: var(--s-redo); color: #fff; }
.menu .swatch { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sw-ink { background: linear-gradient(135deg, #ffffff 0 50%, #2d5bff 50%); box-shadow: 0 0 0 1px rgba(12, 18, 40, 0.18) !important; }
.sw-moss { background: linear-gradient(135deg, #ffffff 0 50%, #0e8a5c 50%); box-shadow: 0 0 0 1px rgba(12, 18, 40, 0.18) !important; }
.sw-midnight { background: linear-gradient(135deg, #0a0e1c 0 50%, #9a8cff 50%); }
.menu-sep { height: 1px; margin: 4px 8px; background: var(--line-2); }
.menu-item kbd { color: inherit; opacity: 0.6; }

.scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  animation: fade-in 0.2s var(--ease) both;
}
.scrim.is-closing { animation: fade-out 0.16s ease-in both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.palette {
  position: fixed;
  left: 50%;
  top: 18vh;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(26px);
  -webkit-backdrop-filter: saturate(1.6) blur(26px);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: palette-in 0.22s var(--spring) both;
}
.palette.is-closing { animation: palette-out 0.14s ease-in both; }
@keyframes palette-in { from { opacity: 0; transform: translateX(-50%) scale(0.97) translateY(-6px); } }
@keyframes palette-out { to { opacity: 0; transform: translateX(-50%) scale(0.98); } }
.palette input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 20px;
  font: 400 17px var(--sans);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.palette input::placeholder { color: var(--ink-4); }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.palette li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-2);
}
.palette li .ico { color: var(--ink-4); }
.palette li .pl-title { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette li .pl-path { flex: 1; text-align: right; color: var(--ink-4); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette li.is-active { background: var(--sel); }
.palette li.is-active .ico { color: var(--accent); }
.palette .pl-empty { padding: 16px 14px; color: var(--ink-4); }
.palette mark { background: none; color: var(--accent); font-weight: 600; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 8px 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  box-shadow: var(--shadow-3);
  animation: toast-in 0.34s var(--spring) both;
}
.toast:not(:has(button)) { padding-right: 16px; }
.toast.is-closing { animation: toast-out 0.2s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-50%) translateY(8px); } }
.toast button {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--bg);
  background: rgba(255, 255, 255, 0.12);
}
.toast button:hover { background: rgba(255, 255, 255, 0.2); }

/* ============ Focus ============ */

.app.is-away {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(6px);
  pointer-events: none;
}

.focus {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  --anchor: 44vh;
  --line-h: 38px;
  --reveal: 0px;
  --fade: 6px;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.focus.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s var(--ease) 0.1s, visibility 0s, --reveal 1.8s var(--ease-in-out), --fade 1.8s var(--ease-in-out);
}
/* Coming back to a piece: its last lines stay readable until you type. */
.focus.is-continuing { --reveal: calc(var(--line-h) * 2); --fade: var(--line-h); }

.f-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.focus.is-hiding .f-viewport {
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0,
    transparent calc(var(--anchor) - var(--reveal) - var(--fade) + 3px),
    #000 calc(var(--anchor) - var(--reveal) + 5px),
    #000 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0,
    transparent calc(var(--anchor) - var(--reveal) - var(--fade) + 3px),
    #000 calc(var(--anchor) - var(--reveal) + 5px),
    #000 100%);
}
.focus:not(.is-hiding) .f-viewport {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 64px, #000 26vh, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 64px, #000 26vh, #000 100%);
}

.f-track {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(var(--measure), calc(100vw - 64px));
  transform: translate(-50%, 0);
  will-change: transform;
}
.f-track.is-gliding { transition: transform 0.24s var(--ease); }

.f-prose {
  font-size: 22px;
  line-height: var(--line-h);
  padding-bottom: 60vh;
}
.f-prose p { margin: 0 0 0.55em; }
.focus.is-typing, .focus.is-typing * { cursor: none; }

.f-title {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink-4);
  font: 500 12px var(--sans);
  letter-spacing: 0.02em;
  transition: opacity 0.6s var(--ease);
  -webkit-app-region: drag;
}

.f-bar {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: saturate(1.5) blur(20px);
  -webkit-backdrop-filter: saturate(1.5) blur(20px);
  box-shadow: var(--shadow-2);
  font-size: 12px;
  color: var(--ink-2);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  white-space: nowrap;
}
.focus.is-typing .f-bar, .focus.is-typing .f-title { opacity: 0; }
.focus.is-typing .f-bar { transform: translateX(-50%) translateY(6px); pointer-events: none; }

.f-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.f-btn:hover { background: var(--hover); color: var(--ink); }
.f-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }

.switch {
  position: relative;
  width: 24px;
  height: 14px;
  border-radius: 8px;
  background: var(--line-2);
  transition: background 0.22s var(--ease);
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-elev);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.26s var(--spring);
}
.is-on > .switch { background: var(--accent); }
.is-on > .switch::after { transform: translateX(10px); }

.f-timer { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 0 6px; }
.f-ring { width: 18px; height: 18px; transform: rotate(-90deg); flex: none; }
.f-ring circle { fill: none; stroke-width: 2; }
.f-ring .track { stroke: var(--line-2); }
.f-ring .prog { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.f-time { min-width: 52px; padding: 0 6px; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); text-align: center; }
.f-step {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background 0.16s, color 0.16s, opacity 0.2s;
}
.f-step:hover { background: var(--hover); color: var(--ink); }
.f-step svg { width: 13px; height: 13px; }
.f-timer.is-running .f-step, .f-timer.is-done .f-step { display: none; }
.f-timer.is-done .f-time { color: var(--accent); }

.f-hint {
  position: absolute;
  left: 50%;
  top: calc(var(--anchor) + var(--line-h) + 26px);
  transform: translateX(-50%) translateY(4px);
  font: 500 12.5px var(--sans);
  color: var(--ink-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.f-hint.is-on { opacity: 1; transform: translateX(-50%); }

.f-done-note {
  position: absolute;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%) translateY(8px);
  padding: 9px 14px;
  border-radius: 11px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-2);
  color: var(--ink-2);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--spring);
}
.f-done-note.is-on { opacity: 1; transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ Colors button ============ */

.sb-foot { display: flex; align-items: center; gap: 4px; }
.sb-look {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 0.16s;
}
.sb-look:hover, .sb-look.is-active { background: var(--hover); }
.look-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg) 0 50%, var(--accent) 50%);
  box-shadow: 0 0 0 1px var(--line-2);
}

/* An untitled fragment read as one shows no title until you point at it. */
.block:not(.is-single) .block-title:empty::before { opacity: 0; transition: opacity 0.2s; }
.block:not(.is-single):hover .block-title:empty::before,
.block:not(.is-single) .block-title:empty:focus::before { opacity: 1; }

/* ============ Projects ============ */

.node.is-project-node + .node.is-project-node { margin-top: 3px; }
.row.is-project { height: 30px; color: var(--ink); }
.row.is-project .label { font-weight: 600; font-size: 13.5px; letter-spacing: -0.005em; }
.row.is-project .ico { color: var(--accent); }
.row.is-project .ico svg { width: 16px; height: 16px; }

/* ============ Cards as columns ============ */

.view-inner.is-quiet { animation: none; }
.faint { color: var(--ink-4); }
.card.is-untitled .card-body { color: var(--ink-2); -webkit-line-clamp: 6; }

.board.is-cols { max-width: none; padding: 92px 0 40px; }
.board.is-cols .board-head { display: flex; align-items: center; gap: 16px; margin: 0 36px 22px 40px; }
.board.is-cols .board-head .page-title { flex: 1; min-width: 0; }
.board.is-cols .board-note { margin-top: 6px; }

.cols {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 26px 36px;
}
.cols:not(:has(.is-drawer))::after { content: ""; flex: none; width: 22px; }

.col {
  position: relative;
  flex: none;
  width: 258px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
}
.col-head {
  padding: 6px 8px 11px;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
}
.col-head.is-draggable { cursor: grab; }
.col-group {
  margin-bottom: 6px;
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.col-title-row { display: flex; align-items: baseline; gap: 8px; }
.col-title {
  flex: 1;
  min-width: 0;
  font: 600 15px/1.25 var(--serif);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col.is-self .col-title { font: 500 12.5px/1.25 var(--sans); color: var(--ink-3); }
.col-count { font: 500 11px var(--sans); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.col-note { margin-top: 4px; font-size: 11.5px; color: var(--ink-4); }

.col-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 72px;
}
.col-cards:empty {
  border-radius: 11px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  display: grid;
  place-items: center;
}
.col-cards:empty::before { content: "Empty"; color: var(--ink-4); font-size: 12px; }

.col-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--ink-4);
  font-size: 12.5px;
  opacity: 0;
  transition: opacity 0.2s, background 0.16s, color 0.16s;
}
.col:hover .col-add, .col-add:focus-visible { opacity: 1; }
.col-add:hover { background: var(--hover); color: var(--ink-2); }
.col-add svg { width: 14px; height: 14px; }

.col.is-placeholder { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.col.is-placeholder > * { opacity: 0; }
.col.ghost { background: var(--bg-elev); box-shadow: var(--shadow-3); }
.col.ghost.is-lifted { box-shadow: var(--shadow-3); }

.col.is-drawer {
  position: sticky;
  right: 0;
  z-index: 2;
  margin-left: 22px;
  border-radius: 16px 0 0 16px;
  background: var(--bg-side);
  box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line), -22px 0 30px -24px rgba(12, 18, 40, 0.4);
}

.card.is-compact {
  min-height: 0;
  padding: 12px 13px 10px;
  border-radius: 11px;
}
.card.is-compact .card-title { font-size: 14.5px; margin-bottom: 4px; }
.card.is-compact .card-body { font-size: 13px; line-height: 1.5; -webkit-line-clamp: 3; flex: none; }
.card.is-compact.is-untitled .card-body { -webkit-line-clamp: 4; }
.card.is-compact .card-foot { margin-top: 9px; }
.card-kicker { margin-bottom: 4px; font: 500 10.5px var(--sans); letter-spacing: 0.02em; color: var(--ink-4); }

.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 9px;
  font: 500 12px var(--sans);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.16s;
}
.pill-toggle:hover { background: var(--hover); }

/* ============ Syncing ============ */

.sb-sync {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: background 0.16s, color 0.16s;
}
.sb-sync:hover { background: var(--hover); color: var(--ink); }
.sb-sync svg { width: 16px; height: 16px; }
.sync-dot {
  position: absolute;
  right: 5px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-side);
  background: transparent;
  transition: background 0.3s;
}
.sb-sync.is-synced .sync-dot { background: var(--s-done); }
.sb-sync.is-syncing .sync-dot { background: var(--accent); animation: sync-pulse 1s ease-in-out infinite alternate; }
.sb-sync.is-offline .sync-dot { background: var(--s-draft); }
.sb-sync.is-error .sync-dot { background: var(--s-redo); }
.sb-sync.is-signed-out, .sb-sync.is-off { color: var(--ink-4); }
@keyframes sync-pulse { from { opacity: 0.35; } to { opacity: 1; } }

.sheet {
  position: fixed;
  left: 50%;
  top: 20vh;
  width: min(400px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 20px;
  border-radius: 16px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-3);
  animation: palette-in 0.24s var(--spring) both;
}
.sheet.is-closing { animation: palette-out 0.14s ease-in both; }
.sheet-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.sheet-icon svg { width: 20px; height: 20px; }
.sheet h3 { margin: 0; font: 600 19px/1.25 var(--serif); color: var(--ink); }
.sheet p { margin: 0 0 6px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.sheet input {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  outline: none;
  font: 14px var(--sans);
  color: var(--ink);
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.16s;
}
.sheet input:focus { box-shadow: inset 0 0 0 1.5px var(--accent-line), 0 0 0 4px var(--accent-soft); }
.sheet-error { min-height: 18px; font-size: 12.5px; color: var(--s-redo); }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sheet-btn { height: 34px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 13px; transition: background 0.16s, opacity 0.16s; }
.sheet-btn.is-quiet { color: var(--ink-2); }
.sheet-btn.is-quiet:hover { background: var(--hover); }
.sheet-btn.is-primary { background: var(--accent); color: var(--on-accent); }
.sheet-btn.is-primary:hover { opacity: 0.92; }
.sheet-btn[disabled] { opacity: 0.6; }

/* ============ Moves ============ */

.seg.is-hidden { opacity: 0; pointer-events: none; }
.row.is-moves .ico { color: var(--accent); }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px 0 11px;
  border-radius: 9px;
  font: 500 12.5px var(--sans);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.pill-btn:hover { background: var(--hover); color: var(--ink); }
.pill-btn svg { width: 15px; height: 15px; }
.pill-btn.is-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.pill-btn.is-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); color: var(--on-accent); }
.pill-btn.is-danger { color: var(--s-redo); box-shadow: none; }
.pill-btn.is-danger:hover { background: color-mix(in srgb, var(--s-redo) 12%, transparent); }

.moves-board { max-width: 1120px; }
.moves-head { display: flex; align-items: flex-end; gap: 16px; margin: 0 4px 22px; }
.moves-head > div:first-child { flex: 1; min-width: 0; }
.moves-actions { display: flex; gap: 8px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  font: 500 12px var(--sans);
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.filter-chip span { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.filter-chip:hover { background: var(--hover); color: var(--ink); }
.filter-chip.is-on { background: var(--ink); color: var(--bg); box-shadow: none; }
.filter-chip.is-on span { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.filter-chip svg { width: 13px; height: 13px; }

.move-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.move-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 164px;
  padding: 16px 16px 13px;
  border-radius: 14px;
  text-align: left;
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.move-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.mt-does { font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.mt-title { font: 600 16px/1.3 var(--serif); color: var(--ink); }
.mt-src { font: italic 400 13px/1.4 var(--serif); color: var(--ink-3); }
.mt-passage { margin-top: 4px; font: italic 400 13.5px/1.55 var(--serif); color: var(--ink-2); padding-left: 10px; box-shadow: inset 2px 0 0 var(--accent-line); }
.mt-passage.is-missing { font-style: normal; font-family: var(--sans); font-size: 12px; color: var(--ink-4); box-shadow: inset 2px 0 0 var(--line-2); }
.mt-passage.is-shape { font: 400 12.5px/1.55 var(--sans); color: var(--ink-3); box-shadow: inset 2px 0 0 var(--line-2); }
.mt-shape-label { font: 600 10px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-right: 6px; }
.mt-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.mt-tag { font: 500 10.5px var(--sans); color: var(--ink-3); padding: 3px 7px; border-radius: 6px; background: var(--hover); }
.mt-example { font: 500 10.5px var(--sans); color: var(--s-draft); padding: 3px 7px; border-radius: 6px; background: color-mix(in srgb, var(--s-draft) 12%, transparent); }

.shuffle-box {
  margin: 0 0 30px;
  padding: 14px;
  border-radius: 18px;
  background: var(--accent-soft);
  animation: view-in 0.4s var(--ease) both;
}
.shuffle-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; font: 600 12px var(--sans); color: var(--accent); }
.shuffle-head span { flex: 1; }
.shuffle-head button { font: 500 12px var(--sans); color: var(--ink-2); padding: 4px 8px; border-radius: 7px; display: inline-flex; }
.shuffle-head button:hover { background: var(--hover); color: var(--ink); }
.shuffle-head button svg { width: 13px; height: 13px; }
.moves-empty { padding: 40px 4px; color: var(--ink-3); font: 400 15px/1.6 var(--serif); max-width: 520px; }

/* The library: situations in five groups, search, by book */
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; padding: 4px 8px 4px 4px; border-radius: 8px; font: 500 12.5px var(--sans); color: var(--ink-3); }
.back-link svg { width: 14px; height: 14px; transform: rotate(180deg); }
.back-link:hover { background: var(--hover); color: var(--ink); }
.moves-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 24px; }
.moves-tools .filter-row { margin: 0; }
.moves-search {
  flex: 1 1 280px;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-4);
  transition: box-shadow 0.16s;
}
.moves-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.moves-search svg { width: 15px; height: 15px; flex: none; }
.moves-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 14px var(--sans); color: var(--ink); }
.moves-search input::placeholder { color: var(--ink-4); }
.moves-search input::-webkit-search-cancel-button { opacity: 0.5; }
.size-row { margin-bottom: 18px; }
.results-note { margin: 0 4px 12px; font: 500 12px var(--sans); color: var(--ink-3); }
.results-note:empty { display: none; }

.sit-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.sit-group { padding: 14px 10px 10px; border-radius: 14px; background: var(--bg-elev); box-shadow: var(--shadow-1); }
.sit-group h2 { margin: 0 8px 8px; font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.sit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 9px;
  text-align: left;
  font: 500 14px/1.3 var(--sans);
  color: var(--ink);
  transition: background 0.16s, color 0.16s;
}
.sit-row span { flex: 1; min-width: 0; }
.sit-row em { font-style: normal; font: 600 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.sit-row:hover { background: var(--hover); }
.sit-row.is-empty { color: var(--ink-4); font-weight: 400; }
.sit-row.is-empty:hover { color: var(--ink-3); }

.book-group { margin: 0 0 34px; }
.book-group h2 { margin: 0 4px 4px; font: 600 20px/1.3 var(--serif); color: var(--ink); }
.book-group h3 { margin: 12px 4px 12px; font: italic 400 15px var(--serif); color: var(--ink-3); }
.book-group h3 span { font: 600 11.5px var(--sans); font-style: normal; color: var(--ink-4); margin-left: 4px; }

.mt-sit { font: 500 10.5px var(--sans); color: var(--accent); padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); }
.mt-size { font: 600 10.5px var(--sans); color: var(--ink-2); padding: 3px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }

/* One card, to read and edit */
.move-page { max-width: calc(var(--measure) + 96px); }
.mc-title:empty::before, .mc-field:empty::before, .mc-text:empty::before { content: attr(data-ph); color: var(--ink-4); }
.mc-title { outline: none; margin-bottom: 12px; }
.mc-does { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.mc-label { font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.mc-does .mc-field { font: 600 15px var(--sans); color: var(--accent); outline: none; }
.mc-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 16px; font: italic 400 15px/1.5 var(--serif); color: var(--ink-3); }
.mc-src .mc-field { outline: none; min-width: 20px; }
.mc-dot { color: var(--ink-4); font-style: normal; }
.mc-field:focus, .mc-text:focus, .mc-title:focus { box-shadow: 0 2px 0 var(--accent-line); }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; }
.tag-toggle {
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  font: 500 12px var(--sans);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.2s var(--spring);
}
.tag-toggle:hover { color: var(--ink); background: var(--hover); }
.tag-toggle.is-on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tag-toggle:active { transform: scale(0.95); }
.tag-toggle { display: inline-flex; align-items: center; gap: 5px; }
.tag-toggle .x { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: -4px; opacity: 0.6; }
.tag-toggle .x svg { width: 10px; height: 10px; }
.tag-toggle.is-add { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tag-toggle[disabled] { opacity: 0.4; cursor: default; }
.tag-toggle[disabled]:hover { background: none; color: var(--ink-3); }

/* Sorting one card: situation, size, tools */
.mc-sort { display: grid; gap: 12px; margin: 4px 0 36px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.mc-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 10px; }
.mc-row .mc-label { padding-top: 7px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-sit-pick { margin: 0 0 4px 98px; padding: 14px; border-radius: 14px; background: var(--bg-elev); box-shadow: var(--shadow-1); animation: view-in 0.25s var(--ease) both; }
.msp-group { margin-bottom: 12px; }
.msp-group h4 { margin: 0 0 6px; font: 600 10px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); }
.msp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.msp-foot { display: flex; align-items: center; gap: 10px; padding-top: 4px; font: 400 12px var(--sans); color: var(--ink-3); }
.msp-foot span { flex: 1; }
.msp-foot button { font: 600 12px var(--sans); color: var(--on-accent); background: var(--accent); padding: 5px 12px; border-radius: 8px; }

.mc-more { margin-top: 36px; }
.mc-more h3 { margin: 0 0 10px; font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mc-more h4 { margin: 14px 0 4px; font: 400 12.5px var(--sans); color: var(--ink-3); }
.more-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: calc(100% + 24px); margin: 0 -12px; padding: 9px 12px; border-radius: 10px; text-align: left; transition: background 0.15s var(--ease); }
.more-row:hover { background: var(--hover); }
.mr-title { font: 400 16px/1.4 var(--serif); color: var(--ink); }
.more-row:hover .mr-title { color: var(--accent); }
.mr-sub { font: 400 12.5px/1.45 var(--sans); color: var(--ink-3); }
.mr-sub em { font: italic 400 13.5px var(--serif); color: var(--ink-3); }
.mr-sub i { font-style: normal; margin: 0 7px; color: var(--ink-4); }
.mc-more h4 + .more-row { margin-top: 2px; }
.mc-example {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 12px 10px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--s-draft) 12%, transparent);
}
.mc-example span { flex: 1; }
.mc-example button { font-weight: 600; color: var(--ink); padding: 4px 9px; border-radius: 7px; background: var(--bg-elev); box-shadow: var(--shadow-1); }
.mc-part { margin: 0 0 26px; }
.mc-part h3 { margin: 0 0 6px; font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mc-text { font: 400 18px/1.65 var(--serif); color: var(--ink); outline: none; white-space: pre-wrap; min-height: 1.6em; }
.mc-part.is-line .mc-text { font-style: italic; padding-left: 16px; box-shadow: inset 2px 0 0 var(--accent-line); }
.mc-part.is-line .mc-text:focus { box-shadow: inset 2px 0 0 var(--accent); }
.mc-actions { display: flex; align-items: center; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.mc-actions .grow { flex: 1; }

/* The move chip under a piece's title */
.chip.is-move { color: var(--accent); background: var(--accent-soft); }
.chip.is-move:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.chip svg { width: 13px; height: 13px; }
.chip.is-move:hover .x { width: 12px; }

/* The card beside a piece: beside it on wide windows, folded above it on narrow ones */
.view { container-type: inline-size; }
.page.has-move { max-width: calc(var(--measure) + 96px); display: flex; flex-direction: column; }
.page.has-move .move-aside { order: -1; }
.move-aside {
  margin: 0 0 30px;
  border-radius: 14px;
  background: var(--bg-side);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.ma-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  font: 500 12.5px var(--sans);
  color: var(--accent);
  text-align: left;
}
.ma-toggle span { flex: 1; }
.ma-toggle svg { width: 14px; height: 14px; }
.ma-toggle svg:last-child { color: var(--ink-4); transition: transform 0.25s var(--ease); }
.move-aside.is-open .ma-toggle svg:last-child { transform: rotate(90deg); }
.ma-body { display: none; padding: 4px 18px 16px; }
.move-aside.is-open .ma-body { display: block; animation: view-in 0.3s var(--ease) both; }
.ma-kicker { font: 600 10px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.ma-title { font: 600 15.5px/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }
.ma-does { font: 600 10.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ma-src { font: italic 400 13px var(--serif); color: var(--ink-3); margin-bottom: 14px; }
.ma-part { margin-bottom: 12px; }
.ma-part h4 { margin: 0 0 3px; font: 600 10px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-4); }
.ma-part p { margin: 0; font: 400 13.5px/1.55 var(--serif); color: var(--ink-2); }
.ma-part.is-line p { font-style: italic; color: var(--ink); padding-left: 10px; box-shadow: inset 2px 0 0 var(--accent-line); }
.ma-actions { display: flex; gap: 6px; margin-top: 14px; }
.ma-actions button { font: 500 12px var(--sans); color: var(--ink-2); padding: 5px 9px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.ma-actions button:hover { background: var(--hover); color: var(--ink); }

@container (min-width: 1060px) {
  .page.has-move {
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) 300px;
    gap: 64px;
    align-items: start;
  }
  .page-main { grid-column: 1; grid-row: 1; }
  .move-aside { grid-column: 2; grid-row: 1; position: sticky; top: 76px; margin: 6px 0 0; }
  .move-aside .ma-toggle { display: none; }
  .move-aside .ma-body { display: block; padding-top: 16px; animation: none; }
}

/* The move's one line in focus mode */
.f-move {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font: 600 10.5px var(--sans);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.focus.is-typing .f-move { opacity: 0.4; }

/* Choosing a move */
.mp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mp-bar .grow { flex: 1; }
.move-picker li b { color: var(--accent); font-weight: 600; margin-right: 4px; }
.move-picker .mp-note { height: auto; padding: 8px 12px 4px; font-size: 12px; color: var(--accent); }

/* ============ Backups and History ============ */

.bk-panel {
  position: fixed;
  left: 50%;
  top: 7vh;
  width: min(980px, calc(100vw - 48px));
  height: min(680px, 86vh);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: palette-in 0.24s var(--spring) both;
}
.bk-panel.is-closing { animation: palette-out 0.14s ease-in both; }
.bk-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 22px 16px 26px; border-bottom: 1px solid var(--line); }
.bk-head > div { flex: 1; min-width: 0; }
.bk-head h2 { margin: 0 0 4px; font: 600 21px/1.25 var(--serif); color: var(--ink); }
.bk-head p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.bk-x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.bk-x:hover { background: var(--hover); color: var(--ink); }
.bk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.bk-list { overflow-y: auto; padding: 10px; border-right: 1px solid var(--line); background: var(--bg-side); }
.bk-day { padding: 12px 10px 6px; font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.bk-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "time meta" "reason reason";
  align-items: baseline;
  column-gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  text-align: left;
  transition: background 0.16s;
}
.bk-item:hover { background: var(--hover); }
.bk-item.is-on { background: var(--sel); }
.bk-time { grid-area: time; font: 600 13.5px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-meta { grid-area: meta; font-size: 12px; color: var(--ink-3); text-align: right; }
.bk-reason { grid-area: reason; font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.bk-view { overflow-y: auto; padding: 20px 28px 28px; }
.bk-empty { padding: 30px 10px; color: var(--ink-4); font-size: 13px; text-align: center; }
.bk-view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bk-view-head .sheet-btn { display: inline-flex; align-items: center; gap: 6px; }
.bk-view-head .sheet-btn svg { width: 13px; height: 13px; transform: rotate(180deg); }
.bk-when { font: 600 16px var(--serif); color: var(--ink); }
.bk-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bk-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 10px 10px 14px;
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--s-draft) 14%, transparent);
}
.bk-confirm span { flex: 1; }
.bk-confirm[hidden] { display: none; }
.bk-section { margin: 14px 0 4px; font: 600 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.bk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 30px;
  padding: 0 8px 0 calc(8px + var(--d) * 16px);
  border-radius: 7px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-2);
}
.bk-row svg { width: 15px; height: 15px; color: var(--ink-4); flex: none; }
.bk-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-row em { font-style: normal; font-size: 11.5px; color: var(--ink-4); }
button.bk-row:hover { background: var(--hover); color: var(--ink); }
.bk-row.is-folder { font-weight: 500; color: var(--ink); }
.bk-title { margin: 6px 0 12px; font: 600 22px/1.25 var(--serif); color: var(--ink); }
.bk-text { font: 400 17px/1.65 var(--serif); color: var(--ink); }
.bk-text p { margin: 0 0 0.6em; }

/* ============ Phone ============ */

.tb-menu, .sb-scrim { display: none; }

@media (max-width: 760px) {
  :root { --prose: 19px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(320px, 86vw);
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
    box-shadow: none;
    padding-top: env(safe-area-inset-top);
  }
  .app.sb-open .sidebar { transform: none; box-shadow: var(--shadow-3); }
  .sb-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--scrim);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .app.sb-open ~ .sb-scrim { opacity: 1; pointer-events: auto; }
  .sb-top { height: 18px; }
  .row, .tag-item { height: 36px; }
  .sb-add { opacity: 1; }

  .toolbar { padding: 0 8px; gap: 6px; padding-top: env(safe-area-inset-top); height: calc(52px + env(safe-area-inset-top)); }
  .tb-menu { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--ink-2); flex: none; }
  .tb-menu:hover { background: var(--hover); }
  .crumb:not(.is-last), .crumb-sep { display: none; }
  .seg button { padding: 0 9px; }
  .tb-focus span { display: none; }
  .tb-focus { padding: 0 9px; }

  .page { padding: 76px 20px 40vh; }
  .page-title, .block.is-single .block-title { font-size: 27px; }
  .board, .board.is-cols { padding-top: 76px; padding-left: 14px; padding-right: 14px; }
  .cols { padding-left: 14px; }
  .board.is-cols .board-head { margin: 0 4px 18px; }
  .moves-head { flex-wrap: wrap; }
  .move-grid { grid-template-columns: 1fr; }
  .sit-groups { grid-template-columns: 1fr; }
  .moves-head > div:first-child { flex-basis: 100%; }
  .moves-search { max-width: none; flex-basis: 100%; }
  .mc-row { grid-template-columns: 1fr; gap: 6px; }
  .mc-row .mc-label { padding-top: 0; }
  .mc-sit-pick { margin-left: 0; }
  .meta { gap: 2px; }

  .f-prose { font-size: 20px; }
  .f-bar { display: grid; grid-template-columns: auto auto; justify-items: center; row-gap: 2px; max-width: calc(100vw - 24px); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .f-sep { display: none; }
  .f-title { top: calc(12px + env(safe-area-inset-top)); }
  .f-move { top: calc(30px + env(safe-area-inset-top)); }
  .bk-panel { inset: 0; width: auto; height: auto; top: 0; left: 0; transform: none; border-radius: 0; }
  .bk-body { grid-template-columns: 1fr; grid-template-rows: 40% 60%; }
  .bk-list { border-right: 0; border-bottom: 1px solid var(--line); }
}
