/* Daily tasks: a daybook. Design note: docs/plans/2026-10-28-n1-ui-redesign.md */
:root {
  --paper: #F3F5F8; --surface: #FFFFFF; --ink: #1D2733; --muted: #5E6A78; --rule: #DDE2E8; --soft: #EBEEF3;
  --blue: #2B4ACB; --blue-soft: #E7EBFB; --marigold: #A86A00; --marigold-soft: #FBF0DA; --plum: #8A3F8F; --plum-soft: #F4E8F4;
  --red: #B4382A; --red-soft: #FBE9E6; --green: #237A57; --green-soft: #E3F2EA;
  --on-blue: #FFFFFF; --radius: 10px; --radius-small: 6px;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171C23; --surface: #1E242C; --ink: #E6EAF0; --muted: #9AA5B2; --rule: #2E3640; --soft: #262D36;
    --blue: #8EA2FF; --blue-soft: #252D4A; --marigold: #F0B84A; --marigold-soft: #3A2F18; --plum: #D59AD9; --plum-soft: #382740;
    --red: #F08A7C; --red-soft: #3D2522; --green: #6FCF9F; --green-soft: #1F3A2E; --on-blue: #10152B;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num, time { font-variant-numeric: tabular-nums; }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 13px; word-break: break-all; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Shell */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; align-self: start; height: 100vh; padding: 20px 12px; border-right: 1px solid var(--rule);
        display: flex; flex-direction: column; gap: 2px; background: var(--paper); }
.brand { font-weight: 700; font-size: 17px; padding: 0 10px 16px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-small); color: var(--muted); }
.nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 99px; background: var(--marigold-soft); color: var(--marigold); }
main { padding: 28px 32px 72px; max-width: 1180px; width: 100%; }
main.public { margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); font-size: 17px; margin-top: 4px; }
.settings-tabs { margin: -8px 0 16px; }
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 15; height: auto; align-self: auto;
          padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--rule); background: var(--surface); }
  .brand { display: none; }
  .nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .nav a.wide-only { display: none; }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 12px; position: relative; }
  .nav a[aria-current="page"] { box-shadow: none; background: none; color: var(--blue); }
  .nav .count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; }
  main { padding: 18px 16px 96px; }
}
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 14px; height: 14px; }

/* Buttons and forms */
button, .button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font: 600 14px/1.2 var(--font); border-radius: var(--radius-small);
  border: 1px solid var(--blue); background: var(--blue); color: var(--on-blue); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { text-decoration: none; filter: brightness(1.06); }
button.quiet, .button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
button.quiet:hover, .button.quiet:hover { background: var(--soft); filter: none; }
button.danger { background: transparent; color: var(--red); border-color: var(--red); }
button.outline, .button.outline { background: transparent; color: var(--blue); border-color: var(--blue); }
button.outline:hover, .button.outline:hover { background: var(--blue-soft); filter: none; }
button.link { background: none; border: 0; padding: 6px 10px; color: var(--muted); font-weight: 400; }
button.small, .button.small { padding: 4px 10px; font-size: 13px; }
label { display: block; margin: 12px 0; font-weight: 600; }
label .hint, .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: 15px/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-small); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 110px; }
input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; accent-color: var(--blue); }
.inline { display: inline; margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.days label { display: inline-flex; align-items: center; margin: 4px 14px 4px 0; font-weight: 400; }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius); margin: 0 0 16px; background: var(--surface); border: 1px solid var(--rule); }
.notice.error { background: var(--red-soft); border-color: transparent; color: var(--red); }
.notice.ok { background: var(--green-soft); border-color: transparent; color: var(--green); }
.notice.info { background: var(--blue-soft); border-color: transparent; }
.flash { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 16px; background: var(--blue-soft); }
.flash.error { background: var(--red-soft); color: var(--red); }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash a { color: inherit; text-decoration: underline; }

/* Panels and sections */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.panel.pad { padding: 16px 18px; }
.section { margin: 28px 0 0; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; flex-wrap: wrap; }
.section-head .count { color: var(--muted); font-weight: 400; }
.section-head .hint { flex-basis: 100%; }
.empty { color: var(--muted); padding: 14px 18px; background: var(--surface); border: 1px dashed var(--rule); border-radius: var(--radius); }
.narrow { max-width: 440px; margin: 56px auto; }

/* Item rows */
.items { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.items > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--rule); }
.items > li:first-child { border-top: 0; }
.items.flat { border: 0; background: transparent; }
.items.flat > li { padding: 6px 0; }
.check { width: 24px; height: 24px; padding: 0; margin-top: 1px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted);
         color: transparent; display: grid; place-items: center; }
.check:hover { border-color: var(--green); color: var(--green); filter: none; }
.check .icon { width: 14px; height: 14px; stroke-width: 3; }
.done-row .check { background: var(--green); border-color: var(--green); color: #fff; }
.item-title { color: var(--ink); font-weight: 600; }
.done-row .item-title { color: var(--muted); text-decoration: line-through; font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; color: var(--muted); font-size: 13px; }
.meta > span, .meta > a { display: inline-flex; align-items: center; gap: 4px; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--blue); }
.meta .overdue { color: var(--red); font-weight: 600; }
.hint-line { margin-top: 4px; font-size: 13px; color: var(--muted); }
.hint-line.warn { color: var(--red); }
.kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.kind.todo { background: var(--blue-soft); color: var(--blue); }
.kind.ask { background: var(--marigold-soft); color: var(--marigold); }
.kind.owed { background: var(--plum-soft); color: var(--plum); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.warn { background: var(--red-soft); color: var(--red); }
.tag.note { background: var(--marigold-soft); color: var(--marigold); }
.tag.info { background: var(--blue-soft); color: var(--blue); }
.tag.live { background: var(--blue); color: var(--on-blue); }
.item-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.row-start { display: flex; gap: 12px; align-items: flex-start; }
.select-box { margin-top: 4px; }

/* More menu (no JavaScript: details/summary) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-small); color: var(--muted); border: 1px solid transparent; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--soft); color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; min-width: 230px; padding: 6px; background: var(--surface);
              border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(29, 39, 51, 0.14); }
.menu-panel form { margin: 0; }
.menu-panel button, .menu-panel a { display: flex; width: 100%; padding: 7px 10px; background: none; border: 0; border-radius: var(--radius-small);
  color: var(--ink); font-weight: 400; font-size: 14px; text-align: left; }
.menu-panel button:hover, .menu-panel a:hover { background: var(--soft); text-decoration: none; filter: none; }
.menu-panel .danger-text { color: var(--red); }
.menu-panel .label { padding: 6px 10px 2px; font-size: 12px; color: var(--muted); }
.menu-panel .date-row { display: flex; gap: 6px; padding: 4px 10px 6px; }
.menu-panel .date-row input { margin: 0; padding: 4px 6px; font-size: 13px; }
.menu-panel .date-row button { width: auto; border: 1px solid var(--rule); }
.menu-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 4px 0; }

/* Today */
.summary { padding: 18px 20px; margin-bottom: 8px; }
.summary .summary-text { font-size: 17px; line-height: 1.55; max-width: 70ch; margin: 6px 0 10px; }
.summary .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.priorities { margin-top: 14px; }
.today-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.today-grid > .section:first-child, .today-grid .lists > .section:first-child { margin-top: 0; }
@media (max-width: 1100px) { .today-grid { grid-template-columns: 1fr; } }

/* Timeline: the one bold element */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 77px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
.timeline > li.meeting { display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); gap: 0 8px; padding: 0 0 18px; position: relative; }
.timeline time { font-weight: 700; font-size: 15px; padding-top: 1px; text-align: right; }
.timeline .dot { width: 12px; height: 12px; margin: 5px 0 0 3px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); position: relative; z-index: 1; }
.timeline [data-state="held"] .dot { background: var(--rule); border-color: var(--muted); }
.timeline [data-state="held"] time, .timeline [data-state="held"] .m-title { color: var(--muted); }
.timeline .m-title { font-weight: 600; }
.timeline .m-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.timeline .raise { margin-top: 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.timeline .raise > li { padding: 8px 10px; }
.now { display: grid; grid-template-columns: 58px 22px minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 0 0 18px; color: var(--red); font-weight: 700; font-size: 13px; }
.now .now-dot { width: 10px; height: 10px; margin-left: 4px; margin-right: -12px; border-radius: 50%; background: var(--red); position: relative; z-index: 1; }
.now .now-line { height: 2px; background: var(--red); opacity: 0.6; }
.now time { text-align: right; }

/* Meetings and generic lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.list > li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 14px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.list > li:first-child { border-top: 0; }
.list .time { font-weight: 700; min-width: 48px; display: inline-block; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 8px; }
.date-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -8px 0 20px; }
.date-switch-pick { display: flex; align-items: center; gap: 6px; margin: 0; }
.date-switch-pick label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); }
.date-switch-pick select { width: auto; max-width: 100%; }
.date-switch a[title="Later date"] { margin-left: auto; }
.date-switch-pick button[hidden] { display: none; }
@media (max-width: 600px) { .date-switch-pick { order: -1; flex-basis: 100%; } }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.tabs a { padding: 6px 12px; border-radius: 99px; color: var(--muted); border: 1px solid var(--rule); background: var(--surface); font-size: 14px; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs a:hover { text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
details.doc-card { padding: 12px 14px; margin-bottom: 8px; }
details.doc-card summary { cursor: pointer; }
pre.doc { white-space: pre-wrap; font: inherit; font-size: 14px; max-height: 480px; overflow: auto; margin: 10px 0 0; }

/* Tables (Activity) */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--rule); vertical-align: top; font-size: 14px; }
th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; }

/* Sources */
.source { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.avatar { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--blue-soft); color: var(--blue); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.working::before { background: var(--green); } .status.working { color: var(--green); }
.status.problem::before { background: var(--red); } .status.problem { color: var(--red); }
.status.attention::before { background: var(--marigold); } .status.attention { color: var(--marigold); }
.error-text { margin-top: 6px; font-size: 13px; color: var(--red); max-width: 70ch; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.choice { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); }
.choice:hover { border-color: var(--blue); text-decoration: none; }
.choice strong { display: block; margin-bottom: 2px; }
.choice span { color: var(--muted); font-size: 13px; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.settings-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 6px 10px; border-radius: var(--radius-small); color: var(--muted); }
.settings-nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 20px 18px; margin: 0 0 20px; background: var(--surface); scroll-margin-top: 20px; }
legend { font-weight: 700; font-size: 17px; padding: 0 6px; }
fieldset h3 { margin: 22px 0 0; }
fieldset > button { margin-top: 8px; }
fieldset details.doc-card { margin: 12px 0; }
th.num, td.num { text-align: right; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
@media (max-width: 860px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.qr { width: 200px; margin: 8px auto; background: #fff; padding: 8px; border-radius: var(--radius); }
.qr svg { width: 100%; height: auto; }
.filters label { margin: 6px 0; }
.side { scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.back { margin: 0 0 4px; font-size: 14px; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.summary-pop, .add-pop { position: relative; }
:is(.summary-pop, .add-pop) > summary { list-style: none; cursor: pointer; }
:is(.summary-pop, .add-pop) > summary::-webkit-details-marker { display: none; }
.pop-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 12; width: min(380px, calc(100vw - 32px)); padding: 14px 16px;
             background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.pop-panel h3 { margin: 0 0 4px; }
.pop-panel hr { border: 0; border-top: 1px solid var(--rule); margin: 14px 0; }
.pop-panel .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.priorities { margin: 6px 0 0; padding-left: 20px; }
.grid-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.next-meeting { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; background: var(--surface);
                border: 1px solid var(--rule); border-radius: var(--radius); }
.next-meeting span { flex: 1; }
.filter-box { margin-bottom: 18px; }
.filter-box > summary { list-style: none; cursor: pointer; display: none; }
.filter-box > summary::-webkit-details-marker { display: none; }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters-row select, .filters-row input { width: auto; margin: 0; padding: 6px 8px; font-size: 14px; }
.filters-row input[name="q"] { min-width: 180px; flex: 1; }
details.group { margin-bottom: 14px; }
details.group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 2px 8px; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
                                  transform: rotate(-45deg); transition: transform .15s; margin: 0 2px 0 4px; }
details.group[open] > summary::before { transform: rotate(45deg); }
details.group > summary .count { color: var(--muted); font-size: 14px; }
details.group.urgent > summary h2 { color: var(--red); }
.task-context { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 2px; }
.task-due { font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 2px; }
.task-due.late { color: var(--red); }
.lead { font-weight: 600; color: var(--plum); }
.work-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--rule);
        background: var(--surface); color: var(--ink); font-size: 14px; }
.chip:hover { border-color: var(--blue); text-decoration: none; }
.chip .count { color: var(--muted); font-weight: 600; }
.chip.quiet { color: var(--muted); }
.task-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; z-index: 30; overflow-y: auto;
              background: var(--surface); border-left: 1px solid var(--rule); box-shadow: -12px 0 32px rgb(0 0 0 / 14%); padding: 18px 20px 28px; }
.task-panel[hidden] { display: none; }
.tp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tp-head h2 { font-size: 19px; line-height: 1.3; outline: none; }
.tp-page .tp-head [data-close] { display: none; }
.tp-form { margin-top: 10px; }
.tp-form label { margin: 8px 0; }
.tp-draft { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 10px; }
.tp-draft h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 2px; }
.tp-draft .tp-form { margin-top: 4px; }
.draft-from { margin: 0 0 6px; }
.draft-subject { margin: 6px 0 0; font-weight: 600; }
.draft-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; padding: 8px 10px; background: var(--soft); border-radius: var(--radius-small); font-size: 14px; }
.draft-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.draft-buttons [data-copy-draft][hidden] { display: none; }
.draft-revise { display: flex; gap: 6px; align-items: flex-end; margin-top: 10px; }
.tp-form .draft-revise label { flex: 1; margin: 0; }
.tp-linked { border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 10px; }
.tp-linked h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 10px 0 4px; }
.tp-link { display: flex; gap: 6px; align-items: center; margin: 0; }
.tp-evidence { list-style: none; margin: 0; padding: 0; }
.tp-evidence li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.tp-evidence li:first-child { border-top: 0; }
.tp-evidence blockquote { margin: 4px 0 0; padding-left: 10px; border-left: 3px solid var(--rule); color: var(--muted); }
.tp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--rule); margin-top: 14px; padding-top: 12px; }
.tp-actions .menu-panel { right: auto; left: 0; top: auto; bottom: calc(100% + 4px); }
.task-panel .tp-actions { position: sticky; bottom: -28px; background: var(--surface); padding-bottom: 14px; }
.tp-actions .danger-text { color: var(--red); }
.tp-page { max-width: 640px; }
.board-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.col { display: flex; flex-direction: column; background: var(--soft); border-radius: var(--radius); padding: 8px; min-height: 240px; }
.col > header { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 8px; }
.col > header h2 { font-size: 15px; }
.col > header .count { color: var(--muted); font-size: 13px; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 48px; flex: 1; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-small); padding: 8px 10px; cursor: grab; }
.card.unsure { border-style: dashed; }
.card-title { display: block; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.card-who { font-size: 13px; color: var(--plum); margin-top: 4px; }
.card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.card-icons { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.board-dialog { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; width: min(420px, calc(100vw - 32px));
                background: var(--surface); color: var(--ink); }
.board-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.board-dialog h2 { margin-bottom: 6px; }
.board-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; max-width: min(520px, calc(100vw - 32px));
               padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: var(--paper); font-size: 14px; }
.board-toast[hidden] { display: none; }
.sortable-ghost { opacity: .4; }
.tp-move { margin-top: 12px; padding: 10px 12px; background: var(--soft); border-radius: var(--radius-small); }
.tp-move label { margin: 4px 0; }
@media (max-width: 860px) {
  .board-cols { grid-template-columns: repeat(5, 85%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .col { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .task-panel { width: 100vw; border-left: 0; padding: 14px 16px 28px; }
  .tp-actions .menu-panel { left: 12px; right: 12px; top: auto; bottom: 12px; }
  .filter-box > summary { display: inline-flex; }
  .filter-box[open] > summary { margin-bottom: 8px; }
  .filters-row select, .filters-row input { flex: 1 1 45%; }
  .pop-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 80px; width: auto; max-height: 70vh; overflow: auto; }
  .filters .grid3 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .timeline > li.meeting, .now { grid-template-columns: 44px 18px minmax(0, 1fr); gap: 0 6px; }
  .timeline::before { left: 60px; }
  .timeline time { font-size: 13px; }
  .timeline .dot { margin-left: 1px; }
  .now .now-dot { margin-left: 2px; }
  .items > li { grid-template-columns: auto minmax(0, 1fr); }
  .items .item-actions, .source .item-actions { grid-column: 2; justify-content: flex-start; }
  .items > li.task .task-due { grid-column: 2; padding-top: 0; }
  .source { grid-template-columns: 40px minmax(0, 1fr); }
  .menu-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; z-index: 20; }
}
.backup-now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.phone-only { display: none; }
@media (max-width: 860px) { .button.phone-only { display: inline-flex; } .head-actions { flex-wrap: wrap; justify-content: flex-end; } }
.import-group { margin-bottom: 14px; }
.import-group h2 { margin: 0 0 6px; }
.new-project { display: flex; gap: 8px; align-items: center; margin-top: 16px; max-width: 480px; }
.new-project input { margin: 0; flex: 1; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; margin-top: 16px; }
.project-grid h2 { margin: 0 0 8px; }
.project-grid .list { margin-bottom: 10px; }
.secret-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.choose-card { padding: 12px 14px; margin-bottom: 10px; }
.choose-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.choose-new { display: flex; gap: 6px; align-items: center; }
.choose-new input { margin: 0; width: 160px; }
.choose-card .days { margin-top: 6px; }
.task-project { padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--rule); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toasts .flash { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; margin: 0; box-shadow: 0 8px 24px rgb(0 0 0 / 14%); }
.toasts button { padding: 0 4px; background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: 0; }
.nav-progress.on { opacity: 1; transform: scaleX(.8); transition: transform 2s ease-out; }
@media (max-width: 860px) { .toasts { bottom: 76px; } }

.question { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--rule); border-radius: var(--radius-small); }
.question-text { margin: 0 0 6px; font-weight: 600; }
.question-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.question-other { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.question-other label { flex: 1; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drop-box { margin: 0 0 20px; }
.drop-box textarea { min-height: 72px; }
[data-new-meeting][hidden] { display: none; }
.drop-box.dragging { outline: 2px dashed var(--blue); outline-offset: 2px; }
.drop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.drop-chips:empty { display: none; }
.drop-chips .chip { padding: 2px 4px 2px 12px; }
.drop-chips .chip button { padding: 0 8px; min-height: 28px; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.drop-chips .chip button:hover { color: var(--text); }
.drop-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 10px; margin: 8px 0; }
.drop-images { display: flex; flex-wrap: wrap; gap: 10px; }
.drop-images img { display: block; max-width: 240px; max-height: 240px; border: 1px solid var(--rule); border-radius: var(--radius-small); }

/* Clean up */
.cleanup-box, .cleanup-group, .cleanup-confirm { margin-bottom: 12px; }
.cleanup-box .hint, .cleanup-box .hint-line { margin: 6px 0 0; }
.catchup-status { display: flex; gap: 8px; align-items: center; margin: 0; }
.cleanup-group h2, .cleanup-confirm h2 { margin: 0; }
.cleanup-group .section-head { align-items: center; }
.cleanup-group .choose-buttons, .cleanup-ignore .choose-buttons { align-items: flex-start; }
.cleanup-ignore > form { margin-top: 8px; }
.cleanup-ignore .hint { margin: 0; }
.cleanup-list { margin: 10px 0 0; padding-left: 20px; max-height: 50vh; overflow: auto; }
.cleanup-box button:disabled { opacity: .5; cursor: default; filter: none; }
.review-card blockquote { margin: 10px 0 0; padding-left: 10px; border-left: 3px solid var(--rule); color: var(--muted); }
.review-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.review-card .hint { margin: 10px 0 0; }
[data-keys-hint][hidden] { display: none; }
