/* Sebas Planner: Structured's look, in black and white. Dark mode inverts. */

:root {
  --page: #f2f2f5;
  --paper: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #3a3a3f;
  --mute: #86868c;
  --faint: #c9c9ce;
  --hair: #e6e6ea;
  --soft: #f0f0f3;
  --seg: #e3e3e8;
  --done: #b9b9be;
  --on-ink: #ffffff;
  /* venture colours: personal and Sebas stay black (ink); bohly dark green, biocharge deep orange, ferro yellow */
  --c-bohly: #1d5c39; --t-bohly: #1d5c39;
  --c-biocharge: #d4500e; --t-biocharge: #b9440a;
  --c-ferro: #f5c211; --t-ferro: #806300;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --shadow-up: 0 -1px 0 rgba(0, 0, 0, .03), 0 -10px 30px rgba(0, 0, 0, .04);
  --lift: 0 14px 34px rgba(0, 0, 0, .22), 0 3px 8px rgba(0, 0, 0, .12);
  --scrim: rgba(0, 0, 0, .32);
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --tab-h: 64px;
  /* the To-do card wash: how much area colour at the left edge and at the middle (dark mode a little stronger) */
  --wash-a: 22%; --wash-b: 10%; --wash-ink-a: 9%; --wash-ink-b: 4%;
  --tab-b: calc(var(--safe-b) + 10px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #000000;
  --paper: #161618;
  --ink: #f5f5f7;
  --ink-2: #d4d4d8;
  --mute: #8e8e94;
  --faint: #4a4a4e;
  --hair: #2a2a2d;
  --soft: #232326;
  --seg: #232326;
  --done: #5c5c61;
  --on-ink: #000000;
  --c-bohly: #2e8a57; --t-bohly: #5cc08a;
  --c-biocharge: #e8642a; --t-biocharge: #f08452;
  --c-ferro: #f5c211; --t-ferro: #f5c211;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .4);
  --shadow-up: 0 -1px 0 rgba(255, 255, 255, .04);
  --lift: 0 14px 34px rgba(0, 0, 0, .7);
  --scrim: rgba(0, 0, 0, .6);
  --wash-a: 30%; --wash-b: 14%; --wash-ink-a: 12%; --wash-ink-b: 5%;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000000;
    --paper: #161618;
    --ink: #f5f5f7;
    --ink-2: #d4d4d8;
    --mute: #8e8e94;
    --faint: #4a4a4e;
    --hair: #2a2a2d;
    --soft: #232326;
    --seg: #232326;
    --done: #5c5c61;
    --on-ink: #000000;
    --c-bohly: #2e8a57; --t-bohly: #5cc08a;
    --c-biocharge: #e8642a; --t-biocharge: #f08452;
    --c-ferro: #f5c211; --t-ferro: #f5c211;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .4);
    --shadow-up: 0 -1px 0 rgba(255, 255, 255, .04);
    --lift: 0 14px 34px rgba(0, 0, 0, .7);
    --scrim: rgba(0, 0, 0, .6);
    --wash-a: 30%; --wash-b: 14%; --wash-ink-a: 12%; --wash-ink-b: 5%;
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.35 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden; min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + var(--tab-b) + 28px);
  user-select: none; -webkit-user-select: none;
}
body.has-bar { padding-bottom: calc(var(--tab-h) + var(--tab-b) + 100px); }
body.dev { padding-top: 22px; }
body.sheet-open { overflow: hidden; }
input, textarea { user-select: text; -webkit-user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
b { font-weight: 700; }
.ic { flex: none; display: block; }
.tnum { font-variant-numeric: tabular-nums; }
#view { max-width: 600px; margin: 0 auto; }

#dev-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 22px;
  padding: 3px 12px; font: 11px/16px ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--ink); color: var(--on-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; opacity: .9;
}

/* ---------------------------------------------------------------- shared controls */
.circle {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.circle.sm { width: 30px; height: 30px; box-shadow: none; background: var(--soft); }
.circle.spinning .ic { animation: spin .6s ease; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 650; letter-spacing: -.01em;
  transition: transform .12s ease, opacity .2s ease, background .2s ease;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.ink { background: var(--ink); color: var(--on-ink); }
.btn.outline { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.btn.outline.armed { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn-row .btn { padding: 0 12px; white-space: nowrap; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.big { width: 100%; height: 58px; font-size: 18px; }
.btn:disabled { opacity: .3; }
.chip-btn {
  height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 650;
  box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink);
}
.text-btn { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--mute); padding: 4px 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--ink);
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.chip.on { background: var(--ink); color: var(--on-ink); }
.chip.taken { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--faint); }
.chip small { font-size: 12px; color: var(--mute); font-weight: 600; }
.chip.time { min-width: 72px; justify-content: center; }
.chip .x { color: var(--mute); margin-left: 2px; }
.chip.area { padding-left: 6px; }
.chip.area .mini-letter { width: 22px; height: 22px; font-size: 11px; }
.text-btn.reset { display: flex; align-items: center; gap: 6px; margin: 12px auto 0; }
.text-btn.reset[hidden] { display: none; }
.mini-letter {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0;
}
.mini-letter.ghost { background: var(--soft); color: var(--mute); }
.fine { font-size: 13px; line-height: 1.4; color: var(--mute); margin: 0; }
.fine.pad { padding: 8px 6px 0; }
.quiet-line { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 4px; font-size: 13px; color: var(--mute); }
.hint { margin: 4px 0 0; padding: 8px 12px 0; text-align: center; font-size: 13px; color: var(--mute); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 24px; text-align: center; color: var(--mute); }
.empty b { color: var(--ink); font-size: 17px; }
.empty p { margin: 0; font-size: 15px; }
.empty.tall { padding: 80px 24px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--mute); font-size: 15px; }
.loading.sm { padding: 12px 0; justify-content: flex-start; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); border-top-color: var(--ink); animation: spin .8s linear infinite; flex: none; }
.spin.light { border-color: color-mix(in srgb, var(--on-ink) 35%, transparent); border-top-color: var(--on-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- tab bar */
#tabs { position: fixed; z-index: 40; left: 0; right: 0; bottom: var(--tab-b); margin: 0 auto; width: calc(100% - 32px); max-width: 520px; }
.tabbar {
  display: flex; height: var(--tab-h); padding: 6px; border-radius: 32px;
  background: var(--paper); box-shadow: var(--shadow), 0 0 0 .5px var(--hair);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 26px; color: var(--mute); transition: background .25s ease, color .25s ease;
}
.tab-ic { position: relative; }
.tab-label { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.tab.on { background: var(--ink); color: var(--on-ink); }
.tab.on .tab-label { font-weight: 800; }
.badge { position: absolute; top: -1px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }

/* ---------------------------------------------------------------- proposal bar */
#bar-slot {
  position: fixed; z-index: 35; left: 0; right: 0; margin: 0 auto; width: calc(100% - 32px); max-width: 520px;
  bottom: calc(var(--tab-b) + var(--tab-h) + 10px); display: flex; flex-direction: column; gap: 8px;
}
#bar-slot:empty { display: none; }
body.dragging-now #bar-slot, body.dragging-now #toasts { opacity: 0; pointer-events: none; }
#bar-slot { transition: opacity .2s; }
body[data-tab="today"].sheet-open #bar-slot { opacity: 0; pointer-events: none; }
.pbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; min-height: 62px;
  border-radius: 22px; background: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--ink);
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
.pbar.booking { box-shadow: var(--shadow), inset 0 0 0 1px var(--hair); }
.pbar-pill { width: 14px; height: 30px; border-radius: 8px; border: 2px dashed var(--ink); flex: none; }
.pbar-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; }
.pbar-text small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 1px; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }

/* ---------------------------------------------------------------- Today header */
.hd { position: sticky; top: 0; z-index: 20; padding: 10px 20px 4px; background: var(--page); }
body.dev .hd { top: 22px; }
.hd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.date-btn { position: relative; display: inline-flex; align-items: center; gap: 2px; min-width: 0; padding: 4px 0; }
.date-big { font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.date-chev { color: var(--ink); margin-top: 3px; }
.date-input { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.hd-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--seg); }
.seg button { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mute); transition: background .2s, color .2s; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 750; }
.hd-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; font-size: 15px; color: var(--mute); }
.hd-sub-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-sub b { color: var(--ink); font-weight: 750; }

.strip { display: grid; grid-template-columns: repeat(7, 1fr); margin: 6px -6px 0; padding-bottom: 6px; touch-action: pan-y; }
.strip-day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 2px; }
.strip-dow { font-size: 12px; font-weight: 600; color: var(--mute); }
.strip-num {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600; transition: background .2s, color .2s;
}
.strip-day.is-today .strip-num { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 800; }
.strip-day.on .strip-num { background: var(--ink); color: var(--on-ink); font-weight: 800; box-shadow: none; }
.dots { display: flex; gap: 2px; height: 6px; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.dot.proposed { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ink); }
.dot.done { background: var(--done); }

/* ---------------------------------------------------------------- the paper sheet the timeline sits on */
.paper {
  background: var(--paper); border-radius: 30px 30px 0 0; margin-top: 8px; padding: 14px 16px 24px;
  box-shadow: var(--shadow-up); min-height: calc(100vh - 220px);
}
.view-week .paper { padding: 12px 10px 20px; }

/* ---------------------------------------------------------------- day timeline */
.tl { position: relative; margin-top: 4px; }
.hour { position: absolute; left: 0; width: 42px; text-align: right; font-size: 12px; font-weight: 500; color: var(--mute); line-height: 16px; }
.spine { position: absolute; width: 0; border-left: 2px dashed var(--faint); }
.allday { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 6px; }
.allday-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 650;
}
.allday-chip.proposed { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.due { background: var(--soft); border-radius: 18px; padding: 8px 12px; margin: 2px 0 8px; }
.due-label { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 2px 0 4px; }
.due-row { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.due-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due-row.done .due-title { color: var(--mute); text-decoration: line-through; }

.pill {
  position: absolute; width: 44px; border-radius: 22px; overflow: hidden; z-index: 2;
  display: flex; justify-content: center; align-items: flex-start;
  background: var(--ink); color: var(--on-ink);
  touch-action: manipulation; -webkit-touch-callout: none; user-select: none;
  transition: box-shadow .2s ease, transform .18s cubic-bezier(.2, .8, .2, 1), height .12s ease;
}
.pill-glyph { height: 44px; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pill .letter, .sh-pill .letter { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.pill.theirs { background: var(--ink); }
.pill.proposed { background: var(--paper); color: var(--ink); border: 2px dashed var(--ink); }
.pill.proposed .pill-glyph { height: 40px; }
.pill.done { background: var(--done); color: var(--on-ink); }
.pill.clash { outline: 3px solid var(--ink); outline-offset: 3px; }
.tl .pill:not(.dragging) { box-shadow: 0 0 0 3px var(--paper); }
.pill.mini { width: 28px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.pill.mini.done { background: var(--done); border-color: var(--done); }
.pill-progress { position: absolute; left: 0; right: 0; top: 0; background: color-mix(in srgb, var(--on-ink) 26%, transparent); }
.pill.grab { cursor: grab; }
.pill.dragging { z-index: 30; box-shadow: var(--lift); transition: box-shadow .2s ease, height .12s ease; cursor: grabbing; overflow: visible; }
.pill.dragging.proposed { background: var(--paper); }
.grip { position: absolute; left: -6px; right: -6px; bottom: -8px; height: 26px; touch-action: none; z-index: 3; cursor: ns-resize; }
.grip::after { content: ""; position: absolute; left: 50%; bottom: 12px; width: 16px; height: 4px; margin-left: -8px; border-radius: 2px; background: var(--ink); opacity: .55; }
.drag-badge {
  position: absolute; left: 54px; top: 6px; z-index: 31; white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
  box-shadow: var(--lift);
}
.wk-badge { position: fixed; left: 50%; transform: translateX(-50%); top: 120px; }

.row { position: absolute; right: 40px; z-index: 2; cursor: pointer; transition: opacity .2s; }
.row.lifting { opacity: .3; }
.row-time { font-size: 13px; line-height: 16px; color: var(--mute); margin-bottom: 2px; white-space: nowrap; }
.row-time b { color: var(--ink); font-weight: 750; margin-left: 0; }
.tag {
  margin-left: 6px; font-size: 10.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
  padding: 0 6px; border-radius: 999px; line-height: 15px; box-shadow: inset 0 0 0 1px var(--ink); opacity: .75;
}
.row-title { font-size: 17px; font-weight: 650; line-height: 22px; letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.row-title.l2 { -webkit-line-clamp: 2; }
.row.done .row-title { color: var(--mute); }
.row-clash { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; font-weight: 700; line-height: 17px; }
.row-clash span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tick {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px var(--faint); color: var(--on-ink); transition: background .2s, box-shadow .2s;
}
.tick.done { background: var(--ink); box-shadow: none; }
.tick.proposed { box-shadow: none; border: 2px dashed var(--faint); }
.tick.sm { width: 24px; height: 24px; }
.tl .tick { position: absolute; right: 2px; z-index: 2; }
.tl .tick.done { background: var(--done); }

.free { position: absolute; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 22px; color: var(--mute); white-space: nowrap; }
.free b { color: var(--ink); font-weight: 750; }
.now { position: absolute; right: 0; height: 0; border-top: 1.5px solid var(--ink); z-index: 4; pointer-events: none; }
.now::before { content: ""; position: absolute; left: -3px; top: -4.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.now-label { position: absolute; left: 0; width: 42px; text-align: right; font-size: 12.5px; font-weight: 800; line-height: 18px; color: var(--ink); }

.zones { display: none; }
.zones.show { display: block; }
.zone {
  position: absolute; right: 4px; z-index: 1; border-radius: 22px;
  border: 1.5px dashed var(--mute); background: color-mix(in srgb, var(--ink) 3%, transparent);
  transition: background .15s, border-color .15s;
}
.zone.taken { border-style: dotted; }
.zone.home { opacity: .45; }
.zone.hot { border: 2px solid var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.zone-label { position: absolute; right: 12px; bottom: 8px; font-size: 12px; font-weight: 700; color: var(--mute); }
.zone.hot .zone-label { color: var(--ink); }

/* ---------------------------------------------------------------- week view */
.wk { position: relative; }
.wk-heads { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.wk-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; }
.wk-dow { font-size: 11px; font-weight: 650; color: var(--mute); }
.wk-num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 650; }
.wk-head.is-today .wk-num { background: var(--ink); color: var(--on-ink); font-weight: 800; }
.wk-head.on:not(.is-today) .wk-num { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wk-err { position: absolute; top: 0; right: 4px; font-size: 11px; font-weight: 800; }
.wk-allday { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.wk-ad-col { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; min-height: 20px; }
.wk-ad { height: 20px; border-radius: 7px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; }
.wk-ad.task { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wk-ad.proposed { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--ink); }
.wk-grid { position: relative; }
.wk-hour { position: absolute; left: 0; width: 20px; text-align: right; font-size: 10.5px; font-weight: 600; color: var(--mute); line-height: 12px; }
.wk-rule { position: absolute; right: 0; border-top: 1px solid var(--hair); }
.wk-cols { position: absolute; top: 0; bottom: 0; right: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.wk-col { position: relative; border-left: 1px solid var(--hair); cursor: pointer; }
.wk-col.is-today { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.wpill {
  position: absolute; border-radius: 9px; overflow: hidden; z-index: 2;
  display: flex; flex-direction: column; align-items: center; padding-top: 2px;
  background: var(--ink); color: var(--on-ink); -webkit-touch-callout: none; touch-action: manipulation;
  transition: box-shadow .2s ease;
}
.wpill.proposed { background: var(--paper); color: var(--ink); border: 1.5px dashed var(--ink); padding-top: 1px; }
.wpill.done { background: var(--done); }
.wpill.task { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 50%; }
.wpill.clash { outline: 2px solid var(--ink); outline-offset: 1.5px; }
.wpill.narrow { border-radius: 6px; }
.wpill.dragging { z-index: 30; box-shadow: var(--lift); }
.wglyph { height: 14px; display: flex; align-items: center; }
.wglyph .letter { font-size: 11.5px; font-weight: 800; }
.wtime { font-size: 9.5px; font-weight: 650; opacity: .75; margin-top: 2px; letter-spacing: -.02em; }
.wk-zone { position: absolute; left: 2px; right: 2px; border-radius: 9px; border: 1.5px dashed transparent; pointer-events: none; transition: background .15s; }
.show-zones .wk-zone { border-color: var(--mute); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.show-zones .wk-zone.hot { border: 2px solid var(--ink); background: color-mix(in srgb, var(--ink) 12%, transparent); }
.wk-now { position: absolute; left: -1px; right: -1px; border-top: 2px solid var(--ink); z-index: 5; }
.wk-now::before { content: ""; position: absolute; left: -3px; top: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.wk-free { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--hair); }
.wk-free-label { position: absolute; left: 0; top: 9px; font-size: 10.5px; color: var(--mute); font-weight: 600; }
.wk-free-day { text-align: center; font-size: 13px; color: var(--mute); }
.wk-free-day b { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 16px; font-size: 12.5px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 10px; height: 16px; border-radius: 5px; background: var(--ink); }
.lg.proposed { background: transparent; border: 1.5px dashed var(--ink); }
.lg.done { background: var(--done); }

/* ---------------------------------------------------------------- pages: To-do, Focus, Me */
.page { padding: 4px 16px 8px; }
.page-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 14px; }
.page-hd h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.card { background: var(--paper); border-radius: 22px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.group-sec { margin-top: 22px; }
.sec-hd { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 15px; font-weight: 750; }
button.sec-hd { width: calc(100% - 8px); min-height: 36px; text-align: left; }
.sec-chev { margin-left: auto; color: var(--mute); display: flex; transform: rotate(90deg); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.fold.shut .sec-chev { transform: rotate(0deg); }
.fold.shut > .sec-hd { margin-bottom: 0; }
.fold.shut > .sec-body { display: none; }
.fold { margin-top: 18px; }
.sec-count { color: var(--mute); font-weight: 600; }
.sec-aside { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--mute); }

.dump { padding: 16px 16px 12px; }
.dump-input {
  display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink);
  font: 500 18px/1.4 var(--font); min-height: 84px; padding: 0;
}
.dump-input::placeholder { color: var(--mute); font-weight: 500; }
.dump-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.sugg { margin-top: 18px; }
.sugg-card { box-shadow: none; border: 1.5px dashed var(--faint); background: var(--paper); padding: 12px 12px 12px 16px; }
.sugg-top { display: flex; align-items: center; gap: 10px; }
.sugg-title {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 650 17px/1.3 var(--font); padding: 4px 0; border-bottom: 1.5px solid transparent;
}
.sugg-title:focus { border-bottom-color: var(--ink); }
textarea.sugg-title { resize: none; display: block; overflow: hidden; height: 30px; }
.sugg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sugg-chips .chip { height: 32px; padding: 0 12px; font-size: 14px; }
.chip.venture { padding-left: 4px; gap: 8px; }
.btn-letter { cursor: pointer; }
.chip-name { font-weight: 600; }
.sugg .btn.block { margin-top: 4px; }

.card.task { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; min-height: 66px; transition: opacity .3s, transform .3s; }
.card.task.leaving { opacity: .35; transform: scale(.98); }
.task-text { flex: 1; min-width: 0; cursor: pointer; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mute); line-height: 18px; }
.due-chip, .soft-chip { font-size: 12px; font-weight: 700; line-height: 18px; padding: 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--faint); color: var(--ink-2); }
.due-chip.hot { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.task-title { font-size: 17px; font-weight: 650; line-height: 22px; letter-spacing: -.01em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.task-title .mark { margin-right: 5px; font-weight: 900; }
.card.task .tick { box-shadow: inset 0 0 0 2px var(--faint); }
.card.task .tick.done { background: var(--ink); }
.plus { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--ink); flex: none; }
.plus:active { background: var(--ink); color: var(--on-ink); }
.card.task.waiting { box-shadow: none; background: transparent; border: 1px solid var(--hair); }
.card.task.waiting .task-title { color: var(--ink-2); }

.group { background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.grow { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; width: 100%; text-align: left; }
.grow + .grow::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: 1px solid var(--hair); }
.grow-ic { width: 24px; display: flex; justify-content: center; color: var(--ink); flex: none; }
.grow-label { font-size: 16px; color: var(--ink-2); flex: none; }
.grow-value { margin-left: auto; font-size: 16px; font-weight: 650; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow-value.end { margin-left: auto; }
.grow-aside { font-size: 14px; color: var(--mute); flex: none; }
button.grow .grow-value { margin-left: 0; text-align: left; flex: 1; }
.mini-pill { width: 10px; height: 22px; border-radius: 5px; background: var(--ink); flex: none; }
.mini-pill.proposed { background: transparent; border: 1.5px dashed var(--ink); }
.mini-pill.done { background: var(--done); }

/* focus */
.focus-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 8px 0; }
.focus-card .sh-pill { margin-bottom: 8px; }
.focus-when { font-size: 14px; color: var(--mute); }
.focus-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 320px; }
.focus-for { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ring-wrap { position: relative; width: min(74vw, 270px); aspect-ratio: 1; margin: 18px auto 20px; container-type: inline-size; }
.ring { width: 100%; height: 100%; display: block; }
.ring-bg { fill: none; stroke: var(--hair); stroke-width: 12; }
.ring.idle .ring-fg { stroke: var(--faint); }
.ring-fg { fill: none; stroke: var(--ink); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-time { font-size: clamp(36px, 12vw, 50px); font-size: 19cqw; font-weight: 800; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.ring-time.long { font-size: clamp(28px, 9vw, 38px); font-size: 14cqw; }
.ring-cap { margin-top: 10px; max-width: 70%; text-align: center; line-height: 1.3; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--mute); }
.mark-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mark-row .btn { padding: 0 8px; }
.half { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* me */
.rhythm { padding: 18px 16px 14px; }
.dd { position: relative; }
.dd-track { position: relative; height: 30px; border-radius: 15px; background: var(--soft); overflow: hidden; }
.dd-work { position: absolute; top: 0; bottom: 0; background: var(--done); opacity: .55; }
.dd-deep { position: absolute; top: 4px; bottom: 4px; border-radius: 11px; background: var(--ink); }
.dd-sprints { position: relative; height: 8px; margin-top: 6px; }
.dd-sprint { position: absolute; height: 6px; border-radius: 3px; background: var(--ink-2); }
.dd-hours { position: relative; height: 16px; margin-top: 4px; font-size: 11.5px; color: var(--mute); font-weight: 600; }
.dd-hours span { position: absolute; transform: translateX(-50%); }
.dd-hours span:first-child { transform: none; }
.dd-hours span:last-child { transform: translateX(-100%); }
.dd-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--mute); }
.dd-key span { display: inline-flex; align-items: center; }
.dd-key b { color: var(--ink); font-weight: 700; margin-left: 4px; }
.k { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; }
.k.work { background: var(--done); opacity: .55; }
.k.deep { background: var(--ink); }
.k.sprint { height: 5px; border-radius: 3px; background: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--paper); border-radius: 18px; padding: 12px 12px 10px; box-shadow: var(--shadow); min-width: 0; }
.tile-label { font-size: 12px; font-weight: 650; color: var(--mute); }
.tile-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value.word { font-size: 21px; line-height: 34px; }
.tile-unit { font-size: 12px; color: var(--mute); }
.lines p { margin: 6px 0; font-size: 15px; line-height: 1.4; }
.lines p:first-child { font-weight: 700; }

/* ---------------------------------------------------------------- bottom sheet */
#sheet-root { position: relative; z-index: 70; }
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .28s ease; }
.scrim.in { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 600px; max-height: 90vh;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--page); border-radius: 30px 30px 0 0; padding-bottom: calc(var(--safe-b) + 20px);
  transform: translateY(105%); transition: transform .34s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
}
.sheet.in { transform: translateY(0); }
.grabber { position: absolute; top: 8px; left: 50%; margin-left: -18px; width: 36px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--mute) 70%, transparent); z-index: 2; }
.sh-head { position: relative; padding: 22px 20px 22px; background: var(--ink); color: var(--on-ink); border-radius: 30px 30px 0 0; }
.sh-head.proposed, .sh-head.plain { background: var(--paper); color: var(--ink); box-shadow: inset 0 -1px 0 var(--hair); }
.sh-head.done { background: var(--done); }
.sh-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; box-shadow: none; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; }
.sh-head-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding-right: 36px; }
.sh-pill { position: relative !important; flex: none; width: 52px !important; height: 78px; border-radius: 26px; display: flex; align-items: center; justify-content: center; }
.sh-pill .pill-glyph { height: auto; }
.sh-pill .letter { font-size: 20px; }
.sh-head:not(.proposed):not(.plain) .sh-pill { box-shadow: 0 0 0 2px var(--on-ink); }
.sh-head-text { min-width: 0; }
.sh-time { font-size: 14px; opacity: .7; }
.sh-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0 6px; overflow-wrap: anywhere; }
.sh-badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.sh-body { padding: 16px; }
.sh-actions { display: grid; gap: 10px; margin-top: 16px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note.strong { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper); font-size: 15px; line-height: 1.4; }
.chooser { margin-top: 2px; }
.ch-day { margin: 12px 0; }
.ch-label { font-size: 13px; font-weight: 750; color: var(--ink); margin: 0 2px 8px; }
.ch-label span { color: var(--mute); font-weight: 600; }
.field-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 16px 2px 8px; }
.field-label:first-child { margin-top: 2px; }
.times .chips { margin-top: 10px; }

/* ---------------------------------------------------------------- toasts */
#toasts { position: fixed; z-index: 80; left: 0; right: 0; margin: 0 auto; width: calc(100% - 32px); max-width: 520px; bottom: calc(var(--tab-b) + var(--tab-h) + 12px); pointer-events: none; }
body.has-bar #toasts { bottom: calc(var(--tab-b) + var(--tab-h) + 84px); }
body.sheet-open #toasts { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 12px); }
.toast {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 10px 10px 18px; border-radius: 20px;
  background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 550; line-height: 1.3;
  box-shadow: var(--lift); pointer-events: auto;
  transform: translateY(16px); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.toast.in { transform: none; opacity: 1; }
.toast-text { flex: 1; }
.toast-undo { flex: none; height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 800; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-ink) 45%, transparent); }

/* ---------------------------------------------------------------- venture colours */
.v-personal, .v-sebas { --vc: var(--ink); --von: var(--on-ink); --vt: var(--ink); }
.v-bohly { --vc: var(--c-bohly); --von: #ffffff; --vt: var(--t-bohly); }
.v-biocharge { --vc: var(--c-biocharge); --von: #ffffff; --vt: var(--t-biocharge); }
.v-ferro { --vc: var(--c-ferro); --von: #0b0b0c; --vt: var(--t-ferro); }
.mini-letter.v { background: var(--vc); color: var(--von); }
.pill.v.booked, .wpill.v.booked, .wk-ad.v.booked, .pill.v.theirs, .wpill.v.theirs, .wk-ad.v.theirs { background: var(--vc); color: var(--von); }
.pill.v.proposed, .wpill.v.proposed, .wk-ad.v.proposed { border-color: var(--vc); color: var(--vt); background: color-mix(in srgb, var(--vc) 14%, var(--paper)); }
.pill.v.mini, .wpill.v.task, .wk-ad.v.task { border-color: var(--vc); box-shadow: inset 0 0 0 1.5px var(--vc); }
.pill.v.proposed .grip::after { background: var(--vc); }
.sh-head.v.booked, .sh-head.v.theirs { background: var(--vc); color: var(--von); }
.sh-head.v.booked .sh-pill, .sh-head.v.theirs .sh-pill { box-shadow: 0 0 0 2px var(--von); }
.focus-for.v { color: var(--vt); }
.mini-pill.v.booked, .mini-pill.v.theirs { background: var(--vc); }
.mini-pill.v.proposed { border-color: var(--vc); }
.legend.ventures { margin-top: 10px; }
.legend.ventures .mini-letter { width: 18px; height: 18px; font-size: 10px; font-style: normal; }

/* ---------------------------------------------------------------- Today: Structured capsules (direction A) */
/* The capsule is the one coloured object: solid fill, a soft light from above, a shadow in its own colour. */
.tl .pill.v.booked, .tl .pill.v.theirs {
  background: linear-gradient(180deg, color-mix(in srgb, #fff 14%, var(--vc)) 0%, var(--vc) 46%);
  box-shadow: 0 0 0 3px var(--paper), 0 8px 18px -8px color-mix(in srgb, var(--vc) 70%, transparent);
}
.tl .pill.v-personal.booked, .tl .pill.v-personal.theirs, .tl .pill.v-sebas.booked { background: var(--vc); }
/* a proposal is the same capsule, pale and see-through, its mark in the colour */
.tl .pill.v.proposed { background: color-mix(in srgb, var(--vc) 16%, var(--paper)); border: 2px dashed color-mix(in srgb, var(--vc) 80%, transparent); }
.tl .pill.done { background: var(--done); box-shadow: 0 0 0 3px var(--paper); }
.tl .pill .pill-progress { background: color-mix(in srgb, #fff 24%, transparent); }
/* the rest of a long block: a dashed line in its colour down to its end */
.tail { position: absolute; z-index: 1; width: 0; border-left: 2px dashed var(--vc, var(--ink)); opacity: .55; pointer-events: none; }
.tail.done { border-color: var(--done); }
.tail.proposed { opacity: .35; }
/* the tick ring is the block's colour; ticked, it fills */
.tl .tick.v { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vc) 75%, transparent); }
.tl .tick.v.proposed { box-shadow: none; border-color: color-mix(in srgb, var(--vc) 55%, transparent); }
.tl .tick.v.done { background: var(--vc); color: var(--von); box-shadow: none; }
/* the week strip: one dot per block, in its colour */
.dot.v { background: var(--vc); }
.dot.v.proposed { background: transparent; box-shadow: inset 0 0 0 1.2px var(--vc); }
.dot.v.done { background: var(--done); }
.strip-day.on .dot.v-personal, .strip-day.on .dot.v-sebas { background: var(--ink); }
/* the week grid follows the same capsules */
.wpill.v.booked, .wpill.v.theirs { background: linear-gradient(180deg, color-mix(in srgb, #fff 14%, var(--vc)) 0%, var(--vc) 50%); }
.wpill.v.proposed { background: color-mix(in srgb, var(--vc) 16%, var(--paper)); }

/* ---------------------------------------------------------------- To-do: glowing cards (direction D) */
/* The area mark in a section header is the plain letter circle. Each card is washed with its area's colour, strongest
   on the left and fading to nothing at the right edge. The tick is a glowing ring that blooms into an orb when ticked. */
.card.task.v {
  background: linear-gradient(90deg, color-mix(in srgb, var(--vc) var(--wash-a), var(--paper)) 0%,
    color-mix(in srgb, var(--vc) var(--wash-b), var(--paper)) 55%, var(--paper) 100%);
}
/* personal and Sebas are ink: a faint grey wash the same way */
.card.task.v-personal, .card.task.v-sebas {
  background: linear-gradient(90deg, color-mix(in srgb, var(--ink) var(--wash-ink-a), var(--paper)) 0%,
    color-mix(in srgb, var(--ink) var(--wash-ink-b), var(--paper)) 55%, var(--paper) 100%);
}
.card.task.v .tick {
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--vc) 6%, var(--paper)) 0%, color-mix(in srgb, var(--vc) 18%, var(--paper)) 100%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vc) 80%, transparent), 0 0 14px 1px color-mix(in srgb, var(--vc) 35%, transparent);
  transition: background .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.card.task.v .tick.done {
  color: var(--von);
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, #fff 55%, var(--vc)) 0%, var(--vc) 60%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--vc) 18%, transparent), 0 0 22px 4px color-mix(in srgb, var(--vc) 55%, transparent);
  animation: bloom .55s cubic-bezier(.2, .8, .2, 1);
}
@keyframes bloom { 0% { transform: scale(.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
.card.task.waiting .mini-letter { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }

/* ---------------------------------------------------------------- To-do: add, hold and move */
/* "Add to <area>" at the foot of each section; tapped, it becomes a one-line input with a length chip */
.add-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; margin-bottom: 10px;
  border-radius: 18px; border: 1.5px dashed var(--faint); color: var(--ink-2); font-size: 15px; font-weight: 650; text-align: left;
}
.add-row:active { background: var(--soft); }
.add-ic {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--vc, var(--ink)) 14%, var(--paper)); color: var(--vt, var(--ink));
}
.add-card {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 6px 6px 14px; border-radius: 18px;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--vc, var(--ink)), var(--shadow);
}
.add-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 600 17px/1.3 var(--font); padding: 9px 0;
}
.add-input::placeholder { color: var(--mute); font-weight: 500; }
.add-card .chip { height: 32px; padding: 0 10px; font-size: 14px; }
.add-card .btn.sm { height: 36px; padding: 0 14px; }

/* holding a card lifts it; the others in its section slide to open a gap where it would land */
.card.task { position: relative; -webkit-touch-callout: none; }
.card.task.lifted { z-index: 50; box-shadow: var(--lift); cursor: grabbing; transition: box-shadow .2s ease, opacity .2s ease; }
.card.task.lifted.over-tray { opacity: .92; }
.card.task.slide { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.card.task.settle { transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease; }
.todo .group-sec.area > .sec-hd { border-radius: 14px; transition: background .15s ease, box-shadow .15s ease; }
.todo .group-sec.area.drop-hot > .sec-hd {
  background: color-mix(in srgb, var(--vc, var(--ink)) 14%, var(--paper));
  box-shadow: inset 0 0 0 2px var(--vc, var(--ink));
}
.todo .group-sec.area > .sec-hd .mini-letter { transition: transform .15s ease; }
.todo .group-sec.area.drop-hot > .sec-hd .mini-letter { transform: scale(1.15); }

/* while a card is held, a tray rises above the tab bar with the next free times to drop it on */
.drop-tray {
  position: fixed; z-index: 45; left: 0; right: 0; margin: 0 auto; width: calc(100% - 32px); max-width: 520px;
  bottom: calc(var(--tab-b) + var(--tab-h) + 10px); padding: 12px 14px 14px; border-radius: 22px;
  background: var(--paper); box-shadow: var(--lift), inset 0 0 0 1.5px var(--hair);
  transform: translateY(calc(100% + var(--tab-h) + 40px)); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.drop-tray.in { transform: none; opacity: 1; }
.tray-title { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 14px; font-weight: 750; }
.tray-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tray-chip { transition: transform .12s ease, background .12s ease, color .12s ease; }
.tray-chip.hot { background: var(--ink); color: var(--on-ink); transform: scale(1.06); }
.drop-tray .fine { font-size: 14px; }

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

/* To-do: done this week (folded), where a wrong tick is taken back */
.fold-note { padding: 0 6px 4px; }
.card.task.done-task { box-shadow: none; background: transparent; border: 1px solid var(--hair); }
.card.task.done-task .task-title { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--faint); }
