/* Desk — styles. Matches the Work Planner mockups. */
:root {
  --ground: #F3F4F1;
  --surface: #FFFFFF;
  --ink: #1A1D21;
  --ink-2: #3E444A;
  --muted: #5B6168;
  --line: #ECEDE8;
  --line-2: #D5D8D1;
  --chip: #E6E8E3;
  --accent: #1F4FB8;
  --accent-ink: #163A88;
  --accent-tint: #E8EEFB;
  --warn: #A44F07;
  --warn-ink: #7A3B05;
  --warn-tint: #FBF1E6;
  --radius: 14px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
.error { color: #A3271B; font-size: 14px; margin: 4px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* ---------- buttons ---------- */
.btn {
  min-height: 44px; padding: 0 18px; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-link {
  min-height: 44px; padding: 0 6px; border: none; background: none;
  color: var(--accent); font-size: 13px; font-weight: 500; cursor: pointer;
}
.btn-link.quiet { color: var(--muted); }
.row .btn-link { margin: -12px -6px -12px 0; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--accent);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- sign-in ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card {
  width: 100%; max-width: 360px; background: var(--surface); border-radius: 18px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.login-title { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.login-card p.muted { margin: 0 0 12px; }
.login-card .btn { margin-top: 12px; }

label { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
input[type=text], input[type=password], select {
  height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px;
  background: var(--surface); width: 100%; font-size: 16px;
}

/* ---------- app layout ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.view {
  flex: 1; width: 100%; max-width: 640px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 16px calc(96px + env(safe-area-inset-bottom));
  outline: none;
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 4px 16px; }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.page-title { margin: 4px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }

.section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.section-title {
  margin: 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
}
.card { background: var(--surface); border-radius: var(--radius); padding: 2px 14px; }
.row { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-name { font-size: 15px; font-weight: 500; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-sub.warn { color: var(--warn); }
.chip { font-size: 11px; color: var(--ink-2); background: var(--chip); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; margin: -6px -6px -8px 0; }

details.group { border-bottom: 1px solid var(--line); }
details.group:last-child { border-bottom: none; }
details.group > summary {
  list-style: none; min-height: 48px; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 500; cursor: pointer;
}
details.group > summary::-webkit-details-marker { display: none; }
.summary-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 400; }
.summary-count svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .15s; }
details[open] .summary-count svg { transform: rotate(180deg); }
.group-body { padding: 0 0 8px 12px; }
.parked-row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-top: 1px solid var(--line); gap: 8px; }
.parked-row span { font-size: 14px; color: var(--ink-2); }

.empty { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; color: var(--muted); font-size: 14px; }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.note { margin: 4px 4px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Back-to-hub badge (top-right, only when opened from the Sausage Dog hub): make room for it. */
body:has(> a[aria-label="Back to Sausage Dog Studios"]) .view { padding-top: calc(env(safe-area-inset-top) + 72px); }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--surface); border-top: 1px solid #E0E2DC;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  text-decoration: none; color: var(--muted); font-size: 11px;
}
.tabs a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current=page] { color: var(--accent); font-weight: 600; }

/* Wider screens: tabs move to the top (full Mac/iPad layout comes in milestone 5). */
@media (min-width: 900px) {
  .app { flex-direction: column-reverse; justify-content: flex-end; }
  .tabs {
    position: sticky; top: 0; bottom: auto; border-top: none; border-bottom: 1px solid #E0E2DC;
    display: flex; justify-content: center; gap: 4px; padding: 10px 16px;
  }
  .tabs a { flex-direction: row; gap: 8px; padding: 8px 16px; border-radius: 20px; font-size: 14px; }
  .tabs a svg { width: 18px; height: 18px; }
  .tabs a[aria-current=page] { background: var(--accent-tint); }
  .view { padding-top: 32px; padding-bottom: 48px; }
}

/* ---------- sheets ---------- */
dialog.sheet {
  border: none; border-radius: 18px; padding: 22px 20px; width: min(440px, calc(100% - 32px));
  background: var(--surface); color: var(--ink);
}
dialog.sheet::backdrop { background: rgba(20, 24, 28, 0.35); }
dialog.sheet h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
dialog.sheet form { display: flex; flex-direction: column; gap: 6px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.choice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.choice-list button {
  min-height: 48px; text-align: left; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15px;
}
.choice-list button:hover { border-color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 22px; font-size: 14px; z-index: 20;
  max-width: calc(100% - 32px);
}
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ======================= milestone 2 ======================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 13px; }
.loading { color: var(--muted); padding: 0 4px; }
.lead { margin: -6px 4px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.btn-link.danger { color: #A3271B; }
.icon-btn.solid { background: var(--accent); border-color: var(--accent); }
.icon-btn.solid svg { stroke: #fff; }

/* Today header */
.today-head { align-items: stretch; }
.head-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progress { height: 6px; background: #E0E2DC; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 6px; background: var(--accent); border-radius: 3px; transition: width .3s; }

.quick-add { display: flex; gap: 10px; align-items: center; margin: 0 0 20px; }
.quick-add input {
  flex: 1; min-width: 0; height: 48px; border: 1px solid var(--line-2); border-radius: 24px; padding: 0 18px;
  background: var(--surface); font-size: 16px;
}

/* Task rows */
.card.tasks { padding: 0 14px 0 4px; }
.task { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); min-height: 56px; }
.task:last-child { border-bottom: none; }
.check {
  width: 44px; height: 44px; flex-shrink: 0; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.check svg { width: 24px; height: 24px; }
.check svg circle { fill: none; stroke: #8A9097; stroke-width: 1.6; }
.check svg circle.fill { fill: var(--accent); stroke: none; }
.check svg .tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-late .check svg circle { stroke: var(--warn); }
.task-body {
  flex: 1; min-width: 0; text-align: left; border: none; background: none; cursor: pointer;
  padding: 10px 4px; display: flex; flex-direction: column; gap: 2px;
}
.task-title { font-size: 15px; color: var(--ink); }
.is-done .task-title { color: var(--muted); text-decoration: line-through; }
.task-sub { font-size: 12px; color: var(--muted); display: block; }
.task-sub.warn { color: var(--warn-ink); }
.tag {
  font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-tint);
  padding: 3px 7px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}
.tag.plain { color: var(--ink-2); background: var(--chip); }
.due { font-size: 12px; font-weight: 500; color: var(--warn); white-space: nowrap; flex-shrink: 0; }
.section-title.warn { color: var(--warn); }
.card.tasks:has(.is-late) { background: var(--warn-tint); }

details.later > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }
details.later > summary::-webkit-details-marker { display: none; }
details.later[open] .summary-count svg { transform: rotate(180deg); }

/* Projects: next step line */
.link-row {
  border: none; background: none; padding: 6px 0; margin: -6px 0; text-align: left; cursor: pointer;
  font-size: 13px; color: var(--muted); min-height: 32px;
}
.link-row.warn { color: var(--warn); }
.link-row .due { font-weight: 400; }

/* Regular */
.link-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--ink); margin-bottom: 20px; min-height: 56px;
}
.link-card strong { font-weight: 600; font-size: 15px; display: block; }
.link-card .chev svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; transform: rotate(-90deg); }
.proc-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%;
  padding: 11px 0; border: none; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer;
}
.proc-row:last-child { border-bottom: none; }
.proc-row .tag { justify-self: start; }
.proc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proc-title { font-size: 15px; color: var(--ink); }
.proc-next { font-size: 12px; color: var(--muted); white-space: nowrap; }
.proc-next.is-today { color: var(--accent); font-weight: 600; }
.proc-row.paused .proc-title { color: var(--muted); }

/* Sheets: extra controls */
dialog.sheet { max-height: calc(100dvh - 32px); overflow-y: auto; }
.sheet-actions { align-items: center; }
.sheet-extra { margin-right: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.two > div { display: flex; flex-direction: column; gap: 6px; }
input[type=date] {
  height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px;
  background: var(--surface); width: 100%; font-size: 16px; -webkit-appearance: none; appearance: none;
}
fieldset { border: none; padding: 0; margin: 8px 0 0; }
legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.segs, .months { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px;
  border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); background: var(--surface);
}
.seg input:checked + span { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.months .seg span { min-width: 52px; justify-content: center; padding: 0 8px; }
.months .btn-link { padding-left: 0; }
.rule { display: flex; flex-direction: column; gap: 6px; }
.preview { margin: 4px 0 0; font-size: 13px; color: var(--accent-ink); background: var(--accent-tint); border-radius: 10px; padding: 8px 12px; }
.preview:empty { display: none; }

/* Holidays */
.back-link { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px; text-decoration: none; font-size: 14px; min-height: 44px; padding-right: 8px; }
.back-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.hol-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.hol-row:last-child { border-bottom: none; }
.hol-row.past { opacity: .55; }
.hol-row.pick { grid-template-columns: 28px 120px minmax(0, 1fr); cursor: pointer; margin: 0; }
.hol-row.pick input { width: 20px; height: 20px; accent-color: var(--accent); }
.hol-date { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.hol-name { font-size: 14px; }
.section .card + .card { margin-top: 8px; }
.form-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.form-card .btn { align-self: flex-start; }
.card-actions { padding: 12px 0; display: flex; justify-content: flex-end; }

/* ======================= milestone 3 ======================= */
input[type=time] {
  height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px;
  background: var(--surface); width: 100%; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.warn-text { color: var(--warn); }
.btn-wide { width: 100%; min-height: 52px; font-size: 16px; border-radius: 26px; }

/* Today: slip prompt */
.task-wrap { border-bottom: 1px solid var(--line); }
.task-wrap:last-child { border-bottom: none; }
.task-wrap .task { border-bottom: none; }
.card.late-card, .card.tasks:has(.is-late) { background: var(--warn-tint); }
.slip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: -4px 0 8px 48px;
  font-size: 13px; color: var(--warn-ink);
}
.slip span { margin-right: 4px; }
.slip .btn-link { min-height: 36px; padding: 0 8px; font-weight: 600; }

/* Week: plan */
.plan-step .section-title { display: flex; align-items: center; gap: 8px; }
.step-n {
  display: inline-flex; width: 20px; height: 20px; border-radius: 10px; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 11px; letter-spacing: 0;
}
.step-note { margin-top: -4px; }
.reg-card { padding: 6px 14px; }
.reg-day { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.reg-day:last-child { border-bottom: none; }
.reg-dow { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.plan-item { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.plan-item:last-child { border-bottom: none; }
.plan-project { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.plan-title { border: none; background: none; padding: 0; text-align: left; font-size: 15px; color: var(--ink); cursor: pointer; }
.chips { margin-top: 6px; gap: 6px; }
.chips .seg span { min-height: 40px; padding: 0 11px; font-size: 13px; }
.chips .seg input:disabled + span { opacity: .35; }
.chips .seg input[value=park]:checked + span { background: var(--warn-tint); border-color: var(--warn); color: var(--warn-ink); }

.load { padding: 4px 0 12px; margin: 4px 0 8px; }
.load-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 6px; }
.load-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.load-day { background: var(--surface); border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; }
.load-day.off { opacity: .45; }
.load-n { font-size: 18px; font-weight: 600; }
.load-d { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Week: at a glance */
.week-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .week-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.day { background: var(--surface); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.day.is-today { outline: 2px solid var(--accent); }
.day.is-past { opacity: .6; }
.day-head { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.day-name { font-size: 13px; font-weight: 600; }
.is-today .day-name { color: var(--accent); }
.day-wd { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: right; }
.day-item { border: none; background: none; padding: 5px 0; text-align: left; font-size: 13px; color: var(--ink); cursor: pointer; border-top: 1px solid var(--line); }
.day-item.is-regular::before { content: '↻ '; color: var(--accent); }
.day-item.is-done { color: var(--muted); text-decoration: line-through; }
.day-empty { font-size: 13px; color: var(--muted); }

/* ======================= milestone 4 ======================= */
.tabs a { position: relative; }
.badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--warn); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .badge { position: static; margin-left: 2px; } }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 13px; }
.icon-btn svg { stroke: var(--accent); }
.icon-btn.solid svg { stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.capture-form { background: var(--surface); border-radius: var(--radius); padding: 12px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.capture-form textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px;
  resize: vertical; min-height: 64px; background: var(--surface); color: var(--ink);
}
.capture-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mic-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 24px;
  border: none; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.mic-btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.capture { padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.cap-head { display: flex; justify-content: space-between; align-items: center; margin: -8px -6px -8px 0; }
.cap-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cap-kind svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cap-text { margin: 0; font-size: 15px; line-height: 1.45; }
.cap-unsorted { margin: 0; font-size: 13px; color: var(--muted); font-style: italic; }
.sugs { background: #F6F7F4; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.sugs-title { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.sug { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #E3E5DF; }
.sug:last-of-type { border-bottom: none; padding-bottom: 0; }
.sug-title { font-size: 15px; font-weight: 500; }
.sug-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sug-chips .chip, .sug-chips .tag { font-size: 12px; padding: 3px 8px; }
.warn-chip { color: var(--warn); background: var(--warn-tint); }
.accent-chip { color: var(--accent-ink); background: var(--accent-tint); }
.sug-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sug.is-added .sug-title, .sug.is-skipped .sug-title { color: var(--muted); }
.sug.is-skipped .sug-title { text-decoration: line-through; }
.sug-state { font-size: 12px; font-weight: 600; color: var(--accent); }
.is-skipped .sug-state { color: var(--muted); }

/* Recording sheet */
.rec-body { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 6px; }
.rec-dot { width: 72px; height: 72px; border-radius: 36px; background: var(--accent-tint); display: flex; }
.is-recording .rec-dot { background: #D9412F; animation: pulse 1.4s ease-in-out infinite; }
.is-sending .rec-dot { background: var(--accent); animation: none; opacity: .6; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .is-recording .rec-dot { animation: none; } }
.rec-time { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.rec-status { text-align: center; margin: 0; font-size: 14px; }

/* ======================= task types ======================= */
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.type-ic { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--accent); }
.type-ic.big .ic { width: 20px; height: 20px; }
.is-done .type-ic, .day-item.is-done .type-ic { color: var(--muted); }
.day-item .type-ic .ic { width: 14px; height: 14px; }
.seg span .seg-ic { margin-right: 6px; color: var(--accent); }
.seg span { gap: 0; }
.types-pick .seg span { padding: 0 12px; }
.type-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.type-strip .ic { width: 13px; height: 13px; margin-right: 3px; color: var(--accent); }
.type-row { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--line); }
.type-row:last-child { border-bottom: none; }
.type-name { flex: 1; font-size: 15px; }
.icons-pick { gap: 8px; }
.icon-seg span { width: 48px; justify-content: center; padding: 0; }
.icon-seg .ic { width: 20px; height: 20px; color: var(--ink-2); }
.icon-seg input:checked + span .ic { color: var(--accent); }

/* ======================= descriptions ======================= */
dialog.sheet textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 16px;
  resize: vertical; min-height: 56px; background: var(--surface); color: var(--ink);
}
.task-note {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; color: var(--ink-2); line-height: 1.35; white-space: pre-line;
}
.is-done .task-note { color: var(--muted); }
