/* RobigusBio Hub
   Palette: herbarium sheet. Cool pale ground, leaf green for the brand and for
   "this is ours", rust (Robigus is the god of crop rust) only for time pressure. */
:root {
  --ground: #eef1ec;
  --sheet: #ffffff;
  --sheet-2: #f6f8f5;
  --ink: #1a2420;
  --ink-2: #4f5d57;
  --ink-3: #7d8a84;
  --line: #d9e0db;
  --line-2: #c3ccc6;
  --leaf: #2e6e4e;
  --leaf-soft: #dcebe2;
  --rust: #a84a1f;
  --rust-soft: #f6e3d8;
  --amber: #8a6a12;
  --amber-soft: #f4ecd2;
  --focus: #2e6e4e;
  --radius: 6px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #101614; --sheet: #172019; --sheet-2: #1c2620; --ink: #e3ebe6; --ink-2: #a7b5ad; --ink-3: #7d8c84;
    --line: #27332c; --line-2: #34433a; --leaf: #6cc196; --leaf-soft: #1d3428; --rust: #ec9068; --rust-soft: #3b2318;
    --amber: #e0c36e; --amber-soft: #352c14; --focus: #6cc196; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #101614; --sheet: #172019; --sheet-2: #1c2620; --ink: #e3ebe6; --ink-2: #a7b5ad; --ink-3: #7d8c84;
  --line: #27332c; --line-2: #34433a; --leaf: #6cc196; --leaf-soft: #1d3428; --rust: #ec9068; --rust-soft: #3b2318;
  --amber: #e0c36e; --amber-soft: #352c14; --focus: #6cc196; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--leaf); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

.mark { width: 26px; height: 26px; fill: var(--leaf); flex: none; }

/* sign-in */
.boot { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.boot-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 32px 36px; max-width: 380px; width: 100%; display: grid; gap: 12px; justify-items: start; }
.boot-card h1 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.boot-card p { margin: 0; color: var(--ink-2); }
.boot-card .mark { width: 34px; height: 34px; }

/* frame */
.app { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.side { background: var(--sheet); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 8px; font-size: 16px; }
.brand b { font-weight: 600; color: var(--leaf); }
.nav { display: grid; gap: 1px; overflow-y: auto; }
.nav h3 { margin: 14px 8px 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.nav a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.nav a:hover { background: var(--sheet-2); }
.nav a[aria-current="page"] { background: var(--leaf-soft); color: var(--leaf); font-weight: 600; }
.nav a .count { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.nav a .count.hot { color: var(--rust); font-weight: 600; }
.side-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); word-break: break-all; }
.nav-toggle { display: none; }

.main { padding: 26px 32px 64px; min-width: 0; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* controls */
.btn { border: 1px solid var(--line-2); background: var(--sheet); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--leaf); border-color: var(--leaf); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0e1a13; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0e1a13; } }
.btn.danger { color: var(--rust); }
.btn.small { padding: 3px 9px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--leaf); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.iconbtn { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--ink-2); padding: 4px 8px; border-radius: var(--radius); }
.iconbtn:hover { background: var(--sheet-2); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"], .toolbar select, .field input, .field select, .field textarea {
  border: 1px solid var(--line-2); background: var(--sheet); border-radius: var(--radius); padding: 6px 9px; min-width: 0;
}
.toolbar input[type="search"] { width: min(320px, 100%); }
.toolbar label.check { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 14px; }
.toolbar .spacer { flex: 1; }
.toolbar .shown { color: var(--ink-3); font-size: 13px; }

/* tables */
.table-wrap { background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--sheet-2); position: sticky; top: 0; }
.grid th button { all: unset; cursor: pointer; }
.grid th button:focus-visible { outline: 2px solid var(--focus); }
.grid th[aria-sort] button::after { content: " ↓"; color: var(--ink-3); }
.grid th[aria-sort="ascending"] button::after { content: " ↑"; }
.grid td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid tbody tr { cursor: pointer; }
.grid tbody tr:hover td { background: var(--sheet-2); }
.grid td.primary { font-weight: 600; min-width: 220px; }
.grid td.primary small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.grid td.clip { max-width: 360px; color: var(--ink-2); }
.grid td.clip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }

.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--sheet-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.leaf { background: var(--leaf-soft); border-color: transparent; color: var(--leaf); }
.pill.rust { background: var(--rust-soft); border-color: transparent; color: var(--rust); }
.pill.amber { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.pill.dim { color: var(--ink-3); }
.due-soon { color: var(--rust); font-weight: 600; }
.threat { display: inline-flex; gap: 3px; vertical-align: middle; }
.threat i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.threat i.on { background: var(--rust); }

/* today */
.season { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px 16px; margin-bottom: 22px; }
.season-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; margin-bottom: 14px; }
.season-head h2 { margin: 0; font-size: 18px; }
.season-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.strip { position: relative; height: 140px; margin: 14px 4px 0; }
.strip-axis { position: absolute; left: 0; right: 0; bottom: 22px; height: 2px; background: var(--line-2); }
.strip-tick { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.strip-tick::before { content: ""; position: absolute; left: 50%; bottom: 18px; width: 1px; height: 10px; background: var(--line-2); }
.strip-now { position: absolute; bottom: 22px; width: 2px; height: 100px; background: var(--ink); }
.strip-now span { position: absolute; top: -18px; left: -2px; font-size: 12px; font-weight: 600; }
.strip-item { position: absolute; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.strip-item button { all: unset; cursor: pointer; display: block; max-width: 150px; font-size: 12.5px; line-height: 1.25; text-align: center; padding: 3px 6px; border-radius: 5px; background: var(--leaf-soft); color: var(--leaf); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-item button:focus-visible { outline: 2px solid var(--focus); }
.strip-item.soon button { background: var(--rust-soft); color: var(--rust); }
.strip-item.scan button { background: var(--sheet-2); color: var(--ink-2); font-weight: 500; border: 1px dashed var(--line-2); }
.strip-item .stem { width: 1px; background: currentColor; opacity: .35; }
.strip-item.leaf { color: var(--leaf); } .strip-item.soon { color: var(--rust); } .strip-item.scan { color: var(--ink-3); }
.season .season-list { display: none; }

.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 22px; align-items: start; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.panel h2 { margin: 0 0 10px; font-size: 16px; }
.panel + .panel { margin-top: 18px; }
.rows { display: grid; }
.rowlink { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; width: 100%; }
.rowlink:first-child { border-top: 0; }
.rowlink b { font-weight: 600; }
.rowlink .meta { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; }
.rowlink:hover b { text-decoration: underline; text-decoration-color: var(--line-2); }
.activity { display: grid; gap: 0; font-size: 14px; }
.activity div { padding: 7px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0 10px; }
.activity div:first-child { border-top: 0; }
.activity .when { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; padding-top: 1px; }

/* prose (wiki, reports) */
.prose { max-width: 74ch; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; margin: 1.3em 0 .4em; }
.prose h1 { font-size: 22px; } .prose h2 { font-size: 18px; } .prose h3 { font-size: 16px; }
.prose p, .prose ul, .prose ol { margin: .5em 0 .8em; }
.prose table { border-collapse: collapse; font-size: 14px; margin: .8em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; }
.prose code { background: var(--sheet-2); padding: 1px 5px; border-radius: 4px; font-size: 13.5px; }
.prose blockquote { margin: .8em 0; padding-left: 12px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.wiki { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.wiki-list { display: grid; gap: 2px; position: sticky; top: 16px; }
.wiki-list h3 { margin: 12px 8px 2px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.wiki-list button { all: unset; cursor: pointer; padding: 6px 10px; border-radius: var(--radius); font-size: 14px; }
.wiki-list button:hover { background: var(--sheet); }
.wiki-list button[aria-current="true"] { background: var(--sheet); box-shadow: inset 3px 0 0 var(--leaf); font-weight: 600; }
.wiki-page { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 22px 28px; }
.wiki-page .head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.wiki-page .head h2 { margin: 0; font-size: 22px; }

/* notes */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.note { background: var(--sheet); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.note.pinned { border-color: var(--leaf); }
.note .text { white-space: pre-wrap; word-break: break-word; font-size: 14px; max-height: 14em; overflow: hidden; mask-image: linear-gradient(#000 80%, transparent); }
.note .foot { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); align-items: center; }
.compose { display: grid; gap: 8px; margin-bottom: 16px; }
.compose textarea { border: 1px solid var(--line-2); background: var(--sheet); border-radius: 8px; padding: 10px 12px; min-height: 70px; resize: vertical; }

/* cards (automations, aws) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.card h3 { margin: 0; font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.card ul { margin: 2px 0 0; padding-left: 18px; font-size: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; font-size: 14px; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 90px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { display: block; height: 10px; background: var(--sheet-2); border-radius: 3px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--leaf); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 20; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(16, 24, 20, .35); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--sheet); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slidein .16s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.drawer-body { padding: 16px 22px 40px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { color: var(--ink); font-weight: 400; font-size: 14.5px; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.field textarea.tall { min-height: 320px; font-size: 14px; }
.field .ro { color: var(--ink); font-weight: 400; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.form-actions .stamp { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.log { display: grid; gap: 8px; }
.log h3 { margin: 6px 0 0; font-size: 15px; }
.log .entry { background: var(--sheet-2); border-radius: 6px; padding: 8px 10px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.log .entry small { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 2px; }
.log textarea { border: 1px solid var(--line-2); background: var(--sheet); border-radius: 6px; padding: 8px 10px; min-height: 60px; width: 100%; }
.histlist { font-size: 13px; color: var(--ink-2); display: grid; gap: 3px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 9px 16px; border-radius: 8px; font-size: 14px; z-index: 40; max-width: calc(100% - 32px); }
.banner { padding: 10px 14px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); margin-bottom: 14px; font-size: 14px; }

/* phones */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; margin-left: auto; border: 1px solid var(--line-2); background: var(--sheet); border-radius: var(--radius); padding: 5px 12px; }
  .nav { display: none; width: 100%; }
  .nav.open { display: grid; }
  .side-foot { display: none; }
  .main { padding: 18px 16px 48px; }
  .cols, .wiki { grid-template-columns: minmax(0, 1fr); }
  .wiki-list { position: static; }
  .form { grid-template-columns: 1fr; }
  .strip { display: none; }
  .season .season-list { display: grid; }
  .grid td.clip { display: none; }
  .grid th.clip { display: none; }
}

/* roadmap */
.linkish { all: unset; cursor: pointer; }
.linkish:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.linkish:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
button.pill.linkish { padding: 1px 8px; }
.rm-sec { margin-bottom: 22px; }
.rm-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.rm-sec-head h2 { margin: 0; font-size: 18px; }
.rm-sec-head p { margin: 0; font-size: 14px; }
.tl-wrap { overflow-x: auto; }
.tl { display: grid; grid-template-columns: 84px repeat(var(--cols), minmax(84px, 1fr)); grid-auto-rows: minmax(34px, auto); gap: 4px 4px; position: relative; min-width: 760px; }
.tl-corner, .tl-q { grid-row: 1; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 2px 4px 6px; border-bottom: 1px solid var(--line-2); align-self: end; white-space: nowrap; }
.tl-q.now { color: var(--leaf); }
.tl-q small { display: block; font-weight: 500; font-size: 11.5px; line-height: 1; }
.tl-band { grid-column: 1 / -1; border-bottom: 1px solid var(--line); margin-bottom: -2px; }
.tl-nowcol { background: var(--leaf-soft); opacity: .45; border-radius: 4px; margin: -2px -2px; }
.tl-lane { grid-column: 1; font-weight: 600; font-size: 13.5px; padding: 7px 4px; align-self: start; }
.tl-chip { position: relative; z-index: 1; text-align: left; font-size: 12.5px; line-height: 1.25; padding: 5px 8px; margin: 3px 0; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--sheet-2); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.tl-chip:hover { border-color: var(--ink-3); }
.tl-chip.s-in-progress, .tl-key.s-in-progress { background: var(--amber-soft); border-color: transparent; color: var(--amber); font-weight: 600; }
.tl-chip.s-done, .tl-key.s-done { background: var(--leaf-soft); border-color: transparent; color: var(--leaf); font-weight: 600; }
.tl-chip.s-idea, .tl-key.s-idea { background: transparent; border-style: dashed; color: var(--ink-2); }
.tl-key { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--sheet-2); margin-right: 5px; vertical-align: -1px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.tl-loose { margin-top: 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-list { display: none; }
.tl-list h3 { margin: 14px 0 2px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.tl-list h3:first-child { margin-top: 0; }
.phases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; align-items: start; }
.phase h4 { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.rm-items { list-style: none; margin: 0; padding: 0; display: grid; }
.rm-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 14px 1fr; gap: 0 8px; padding: 5px 0; width: 100%; font-size: 14px; }
.rm-item:focus-visible { outline: 2px solid var(--focus); border-radius: 3px; }
.rm-item:hover .t { text-decoration: underline; text-decoration-color: var(--line-2); }
.rm-item .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; border: 1.5px solid var(--ink-3); }
.rm-item.s-in-progress .dot { border-color: var(--amber); background: var(--amber); }
.rm-item.s-done .dot { border-color: var(--leaf); background: var(--leaf); }
.rm-item.s-idea .dot { border-style: dashed; }
.rm-item.s-done .t { color: var(--ink-2); }
.rm-item .n { grid-column: 2; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rm-item code, .open-list code { background: var(--sheet-2); padding: 0 4px; border-radius: 4px; font-size: 12.5px; word-break: break-all; }
.rm-cols { margin-top: 4px; }
.open-grid { display: grid; gap: 14px; }
.open-grid .panel + .panel { margin-top: 0; }
.open-grid h3 { margin: 0 0 6px; font-size: 15px; }
.open-list { list-style: none; margin: 0; padding: 0; display: grid; }
.open-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 0 8px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.open-list li:first-child { border-top: 0; }
.open-list input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--leaf); }
.open-list li.is-done .linkish { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.roles { grid-template-columns: 1fr; }
.roles .card h3 .role-who { color: var(--leaf); }
.roles .prose ul { margin: 0; }
.rm-note { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.rm-note .linkish { font-weight: 600; color: var(--ink); }
.rm-note .linkish.plain { font-weight: 400; color: var(--ink-2); }
.moat { display: grid; gap: 8px; }
.moat-item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--leaf); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.moat-item span { color: var(--ink-2); font-size: 13.5px; }
.moat-item:hover { border-color: var(--line-2); border-left-color: var(--leaf); }
.moat-item:focus-visible { outline: 2px solid var(--focus); }
details.field summary { cursor: pointer; }
details.field .ro { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }

/* workbook */
.wb-feed { display: grid; gap: 22px; max-width: 900px; }
.wb-day { display: grid; gap: 10px; }
.wb-date { margin: 0; font-size: 15px; color: var(--ink-2); font-weight: 600; position: sticky; top: 0; background: var(--ground); padding: 4px 0; z-index: 2; }
.wb-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; display: grid; gap: 8px; min-width: 0; }
.wb-card.inbox { background: var(--sheet-2); padding: 10px 16px; }
.wb-card.dev { border-left: 3px solid var(--leaf); }
.wb-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.wb-who { font-weight: 700; }
.wb-link { margin-left: auto; font-size: 13px; }
.wb-title { margin: 0; font-size: 14px; font-weight: 600; word-break: break-word; }
.wb-body { max-width: none; max-height: 26em; overflow: hidden; mask-image: linear-gradient(#000 85%, transparent); word-break: break-word; }
.wb-body.small { font-size: 14px; max-height: 12em; }
.wb-body.full { max-height: none; mask-image: none; }
.wb-body > :first-child { margin-top: 0; }
.wb-body h1 { font-size: 18px; } .wb-body h2 { font-size: 16px; } .wb-body h3 { font-size: 15px; }
.wb-body pre { background: var(--sheet-2); padding: 8px 10px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.wb-more { font-size: 13px; justify-self: start; }
.wb-card h4 { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.commits, .branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.commits li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; }
.commits .sha { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.commits .subj { min-width: 0; overflow-wrap: anywhere; }
.commits .faint { font-size: 13px; }
.branches > li { display: block; padding: 4px 0; }
.branches > li > .commits { margin: 3px 0 0 12px; }
.branches code { font-size: 13px; }
.wb-comments { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.wb-comments .linkbtn { font-size: 13px; justify-self: start; }
.wb-comment { background: var(--sheet-2); border-radius: 6px; padding: 6px 10px; white-space: pre-wrap; word-break: break-word; }
.wb-card.inbox .wb-comment { background: var(--sheet); }
.wb-comment small { display: block; color: var(--ink-3); font-size: 12.5px; }
.wb-compose { display: grid; gap: 6px; }
.wb-compose textarea { border: 1px solid var(--line-2); background: var(--sheet); border-radius: 6px; padding: 8px 10px; width: 100%; resize: vertical; }

@media (max-width: 860px) {
  .tl-wrap, .tl-legend { display: none; }
  .tl-list { display: grid; }
  .commits li { grid-template-columns: 4.6em minmax(0, 1fr); }
  .commits li .faint { grid-column: 2; }
  .wb-card { padding: 12px 14px; }
}

/* the main views */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; display: grid; gap: 1px; color: inherit; text-decoration: none; }
a.stat:hover { border-color: var(--line-2); background: var(--sheet-2); }
.stat b { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-weight: 600; font-size: 14px; }
.stat small { color: var(--ink-2); font-size: 13px; }
.more { margin: 10px 0 0; font-size: 14px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; }
.plain li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plain li:first-child { border-top: 0; }
a.rowlink { color: inherit; text-decoration: none; }
.rowlink .faint { font-size: 13px; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 7px 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--leaf); }
.tabs .n { color: var(--ink-3); font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; }

select.status { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: 999px; padding: 2px 22px 2px 10px; font-size: 13px; font-weight: 500; cursor: pointer; max-width: 170px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 4px 4px; background-position: right 12px center, right 8px center; background-repeat: no-repeat; }
select.status:hover { border-color: var(--line-2); }
select.status option { color: var(--ink); background: var(--sheet); font-weight: 400; }
.status.s-idle { background-color: var(--sheet-2); color: var(--ink-2); }
.status.s-live { background-color: var(--amber-soft); color: var(--amber); }
.status.s-good { background-color: var(--leaf-soft); color: var(--leaf); }
.status.s-off { background-color: transparent; color: var(--ink-3); }
.status.s-plain { background-color: transparent; color: var(--ink-2); }
.grid td.primary .linkish { font-weight: 600; }
.grid td .pill { font-size: 12.5px; }
td.date small { font-size: 12px; }
.report { margin-bottom: 14px; padding: 10px 16px; }
.report summary { cursor: pointer; font-weight: 600; }

.cols > .panel + .panel { margin-top: 0; }
.strip-item.at-start { transform: translateX(-12px); align-items: flex-start; }
.strip-item.at-start .stem { margin-left: 12px; }
.strip-item.at-end { transform: translateX(calc(-100% + 12px)); align-items: flex-end; }
.strip-item.at-end .stem { margin-right: 12px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-stack { display: grid; gap: 16px; }
.form-actions.wide { grid-column: 1 / -1; }
.log-add { display: grid; gap: 6px; justify-items: start; }
.log-list { display: grid; gap: 8px; }
.hist summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.hist > div { margin-top: 6px; }
.linked h3 { margin: 0 0 4px; font-size: 15px; }
.linked { font-size: 14px; }
.drawer-body .kv { margin: 0; }
.money { grid-template-columns: 1fr max-content; }
.money dd { text-align: right; }
.foot .spacer { flex: 1; }
.note .foot .linkbtn { font-size: 13px; }

.wiki-list { max-height: calc(100vh - 40px); overflow-y: auto; align-content: start; padding-right: 4px; gap: 6px; }
.wiki-list details { display: grid; min-width: 0; }
.wiki-list a, .wiki-page .head h2 { overflow-wrap: anywhere; }
.wiki-list summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 5px 8px; }
.wiki-list summary .faint { font-weight: 400; }
.wiki-list a { display: block; padding: 5px 10px; border-radius: var(--radius); font-size: 14px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.wiki-list a:hover { background: var(--sheet); }
.wiki-list a[aria-current="true"] { background: var(--sheet); box-shadow: inset 3px 0 0 var(--leaf); font-weight: 600; }
.wiki-page .head p { margin: 2px 0 0; font-size: 13px; }
.wiki-page .prose { margin-top: 14px; word-break: break-word; }
.wiki-page.empty { color: var(--ink-2); }
.prose pre { background: var(--sheet-2); padding: 10px 12px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.prose pre code { background: none; padding: 0; }

@media (max-width: 860px) {
  .wiki-list { max-height: 40vh; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 24px; }
}

/* Lab notebooks: the task board above the day feed */
.task-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.task-board .panel { margin: 0; }
.task-col h2 { margin: 0 0 8px; font-size: 15px; }
.task-col h2 .faint { font-weight: 400; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.task { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.task:first-child { border-top: 0; }
.task summary { cursor: pointer; }
.task summary .faint, .task > a { font-size: 12.5px; }
.task summary .faint { display: block; margin-left: 16px; }
.task summary .pill { margin-left: 16px; font-size: 12px; }
.task-body { margin: 6px 0 0 16px; font-size: 13.5px; }
.task-note { margin: 8px 0 20px; font-size: 13px; }
.wb-card .plain { margin: 4px 0 0; }
.commits .pill { font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) { .task-board { grid-template-columns: minmax(0, 1fr); } }
