/* Day-to-day features: briefings, schedule, habits & routines, people, focus, meeting notes. */

/* ---- focus bar (under the top bar while a session runs) ---- */
.focusbar { display: flex; align-items: center; gap: 12px; padding: 7px 20px; background: var(--accent-soft); border-bottom: 1px solid var(--border); font-size: 13px; position: relative; }
.focusbar[hidden] { display: none; }
.focusbar .fb-icon { color: var(--accent); display: inline-flex; }
.focusbar .fb-label { flex: 1; min-width: 0; }
.focusbar .fb-time { font-variant-numeric: tabular-nums; font-size: 14px; }
.focusbar .fb-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.focusbar .fb-progress i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.focusbar.done { background: var(--ok-soft); }
.focusbar.done .fb-icon, .focusbar.done .fb-time { color: var(--ok); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: auto; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }

/* ---- overview: briefing + schedule ---- */
.ov-brief-card.unread { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ov-brief-card.kind-evening .ov-card-head h3 .icon { color: var(--c-orange); }
.ov-brief-card.kind-morning .ov-card-head h3 .icon { color: var(--c-amber); }
.ov-brief-card .md { font-size: 14px; line-height: 1.55; }
.ov-brief-card .md ul { margin: 4px 0; padding-left: 20px; }
.ov-brief-card .md p { margin: 0 0 6px; }
.ov-brief-foot { gap: 8px; align-items: center; }
.ov-brief-card.flash { animation: flash 1.6s var(--ease) 2; }
@keyframes flash { 40% { background: var(--accent-soft); } }
.sched-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sched-row { display: grid; grid-template-columns: 62px 3px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 34px; padding: 2px 4px; border-radius: var(--r-sm); }
.sched-row.past { opacity: .55; }
.sched-row.now { background: var(--accent-soft); }
.sched-time { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.sched-bar { align-self: stretch; border-radius: 2px; }
.sched-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; font-size: 13.5px; line-height: 1.25; border: 0; background: transparent; padding: 0; height: auto; font-weight: 400; }
button.sched-text:hover { background: transparent; color: var(--accent-text); }
.sched-text > span { max-width: 100%; }

/* ---- habits ---- */
.habit-tick { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ht-check { width: 34px; height: 34px; padding: 0; border-radius: 50%; flex: none; color: var(--tone); border: 2px solid color-mix(in srgb, var(--tone) 55%, var(--border)); background: var(--surface); }
.ht-check:hover { background: color-mix(in srgb, var(--tone) 12%, var(--surface)); }
.habit-tick.done .ht-check { background: var(--tone); border-color: var(--tone); color: #fff; }
.ht-name { border: 0; background: transparent; padding: 0; height: auto; min-width: 0; justify-content: flex-start; gap: 8px; font-weight: 500; font-size: 14px; }
.ht-name:hover { background: transparent; }
.habit-tick.done .ht-name > span:first-child { color: var(--text-2); }
.ht-progress { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; background: var(--surface-2); padding: 1px 6px; border-radius: 999px; font-weight: 400; }
.ht-streak { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--c-orange); font-variant-numeric: tabular-nums; flex: none; }
.habit-tick.compact .ht-check { width: 28px; height: 28px; }
.habit-tick.compact .ht-name { font-size: 13.5px; }
.habit-ticks { display: flex; flex-direction: column; gap: 6px; }
.habits-page section { margin-top: 20px; }
.habits-page .panel-title { margin-bottom: 8px; display: block; }
.habits-hero { display: flex; align-items: center; gap: 20px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--accent-soft); border: 0; }
.habits-hero h2 { font-size: 20px; }
.habits-meter { width: 180px; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; flex: none; }
.habits-meter i { display: block; height: 100%; background: var(--c-orange); border-radius: inherit; transition: width .5s var(--ease); }
.habit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.habit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 12px 12px 14px; display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--tone); }
.habit-card.archived { opacity: .65; }
.habit-head { display: flex; align-items: center; gap: 6px; }
.habit-meta { display: flex; flex-direction: column; gap: 6px; }
.habit-week { display: flex; gap: 6px; }
.hw-day { width: 30px; height: 40px; padding: 0; border: 0; background: transparent; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 500; }
.hw-day i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); display: block; }
.hw-day.done i { background: var(--tone); border-color: var(--tone); }
.hw-day.partial i { background: color-mix(in srgb, var(--tone) 35%, var(--surface)); border-color: var(--tone); }
.hw-day.off i { border-style: dashed; opacity: .5; }
.hw-day.today .hw-label { color: var(--text); font-weight: 700; }
.hw-day:hover { background: transparent; }
.hw-day:hover i { outline: 2px solid var(--tone); outline-offset: 1px; }
.habit-history { margin-top: 2px; }
.hh { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--surface-3); }
.hh.done { background: var(--tone); }
.hh.part { background: color-mix(in srgb, var(--tone) 40%, var(--surface-3)); }
.hh.off { background: transparent; box-shadow: inset 0 0 0 1px var(--border); }
.hh.future { background: transparent; }
.habit-badge { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--tone) 16%, var(--surface)); color: var(--tone); flex: none; }
.routine-dialog .dialog-head { gap: 10px; }
.routine-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 12px; }
.routine-bar i { display: block; height: 100%; background: var(--ok); transition: width .3s var(--ease); }
.routine-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: min(420px, 80vw); }
.routine-steps label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); cursor: pointer; font-size: 14.5px; }
.routine-steps label:hover { background: var(--surface-2); }
.routine-steps label.done span { color: var(--muted); text-decoration: line-through; }
.routine-steps input { width: 18px; height: 18px; accent-color: var(--ok); }
.habit-form { display: flex; flex-direction: column; gap: 14px; min-width: min(460px, 86vw); }
.habit-icons { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.icon-choice { width: 34px; height: 34px; padding: 0; border-radius: var(--r); color: var(--text-2); }
.icon-choice[aria-pressed="true"] { background: color-mix(in srgb, var(--tone) 16%, var(--surface)); color: var(--tone); border-color: var(--tone); }
.day-toggles { display: inline-flex; gap: 4px; }
.day-toggles button { width: 34px; height: 34px; padding: 0; border-radius: 50%; font-weight: 600; font-size: 13px; }
.day-toggles button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ---- people ---- */
.people-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1240px; margin: 0 auto; }
.people-list { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 10px; }
.people-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); color: var(--muted); }
.people-search input { border: 0; background: transparent; padding: 8px 0; box-shadow: none; flex: 1; }
.people-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.people-strip .panel-title { width: 100%; }
.people-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.person-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r); color: var(--text); text-decoration: none; }
.person-row:hover { background: var(--surface-2); text-decoration: none; }
.person-row.active { background: var(--accent-soft); }
.person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, var(--surface)); }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.people-detail { min-width: 0; }
.person-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.person-head h2 { font-size: 22px; }
.person-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
a.chip-btn { display: inline-flex; align-items: center; border: 1px solid var(--border); padding: 0 9px; text-decoration: none; color: var(--text-2); }
span.chip-btn { display: inline-flex; align-items: center; border: 1px solid var(--border); padding: 0 9px; }
.person-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.person-cols .stack { display: flex; flex-direction: column; gap: 14px; }
.person-section { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.person-log-form { display: flex; flex-direction: column; gap: 8px; }
.btn-group.sm button { height: 26px; font-size: 12.5px; padding: 0 8px; gap: 4px; }
.person-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person-timeline li { display: flex; gap: 10px; align-items: flex-start; }
.person-timeline p { margin: 0 0 2px; white-space: pre-wrap; font-size: 14px; }
.pt-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text-2); display: inline-grid; place-items: center; flex: none; }
.person-timeline li .icon-btn { opacity: 0; }
.person-timeline li:hover .icon-btn, .person-timeline li:focus-within .icon-btn { opacity: 1; }
.person-notes { min-height: 90px; }
.small-empty { padding: 24px 8px; }

/* ---- focus ---- */
.focus-page { display: flex; flex-direction: column; gap: 16px; }
.focus-card { padding: 22px 24px; }
.focus-card.running { display: flex; align-items: center; gap: 28px; background: var(--accent-soft); border-color: transparent; }
.fc-dial { position: relative; width: 170px; height: 170px; flex: none; }
.fc-ring svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.fc-ring .ring-bg, .fc-ring .ring-fg { stroke-width: 7; }
.fc-ring .ring-fg { stroke: var(--accent); transition: stroke-dasharray 1s linear; }
.fc-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fc-time { font-size: 34px; font-variant-numeric: tabular-nums; font-family: var(--font-display); letter-spacing: -.02em; }
.fc-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-label { font-size: 20px; font-weight: 600; font-family: var(--font-display); }
.fc-form { display: flex; flex-direction: column; gap: 14px; }
.fc-form > input { font-size: 17px; padding: 12px 14px; }
.fc-suggest { gap: 6px; }
.fc-form .btn-group { align-self: flex-start; }
.focus-insights { display: flex; flex-direction: column; gap: 14px; }
.focus-insights .ov-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.focus-insights > .card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.est-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.est-table td { padding: 6px 4px; border-top: 1px solid var(--border); }
.est-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 90px; color: var(--text-2); }
.est-table td.bad { color: var(--bad); } .est-table td.good { color: var(--ok); }

/* ---- meeting notes ---- */
.meetings-page { display: flex; flex-direction: column; gap: 16px; }
.rec-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.rec-card.live { border-color: transparent; background: var(--bad-soft); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); flex: none; animation: rec 1.2s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .35; } }
.rec-clock { font-size: 26px; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.rec-level { width: 140px; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rec-level i { display: block; height: 100%; width: 100%; background: var(--bad); transform-origin: left; transform: scaleX(.04); transition: transform .08s linear; }
.rec-heard summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.rec-heard p { max-height: 160px; overflow: auto; margin: 6px 0 0; }
button.pulse { animation: pulse 1.4s var(--ease) 3; }
@keyframes pulse { 50% { background: var(--accent-soft); border-color: var(--accent); } }
.rec-pill { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bad); color: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-2); font-variant-numeric: tabular-nums; text-decoration: none; }
.rec-pill:hover { text-decoration: none; filter: brightness(1.05); }
.rec-pill .rec-dot { background: #fff; width: 9px; height: 9px; }
.meeting-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.meeting-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r); color: var(--text); text-decoration: none; }
.meeting-row:hover { background: var(--surface-2); text-decoration: none; }
.meeting-row > .grow { display: flex; flex-direction: column; min-width: 0; }
.meeting-icon { width: 32px; height: 32px; border-radius: var(--r); display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.meeting-icon.st-failed { background: var(--warn-soft); color: var(--warn); }
.meeting-icon.st-done { background: var(--accent-soft); color: var(--accent-text); }
.meeting-detail { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.meeting-detail .banner { border-radius: var(--r); }
.meeting-md { font-size: 14.5px; }
.meeting-transcript summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.meeting-transcript p { font-size: 13.5px; line-height: 1.55; margin: 8px 0; }

/* ---- calendar events ---- */
.cal-chip.ev { --pc: var(--tone); cursor: pointer; box-shadow: inset 3px 0 0 var(--tone); border-radius: 4px; }
.cal-chip.ev.allday { background: color-mix(in srgb, var(--tone) 26%, var(--surface)); }
.cal-event.ev { align-items: flex-start; padding-top: 3px; flex-direction: column; gap: 0; }
.event-pop { width: 320px; display: flex; flex-direction: column; gap: 8px; }
.event-pop p { margin: 0; }
.event-desc { white-space: pre-wrap; max-height: 160px; overflow: auto; color: var(--text-2); }

/* ---- settings ---- */
.install-help summary { cursor: pointer; color: var(--text-2); }
.install-help p { margin: 6px 0 0; line-height: 1.5; }
.settings input[type="time"] { width: 120px; }
.settings input[type="url"] { flex: 1; min-width: 260px; }

@media (max-width: 1100px) {
  .person-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .people-page { grid-template-columns: minmax(0, 1fr); }
  .people-page.has-detail .people-list { display: none; }
  .people-page:not(.has-detail) .people-detail { display: none; }
  .people-list { position: static; }
  .focus-card.running { flex-direction: column; text-align: center; }
  .focus-insights .ov-stats { grid-template-columns: minmax(0, 1fr); }
  .habits-hero { flex-direction: column; align-items: stretch; }
  .habits-meter { width: 100%; }
  .habit-grid { grid-template-columns: minmax(0, 1fr); }
  .focusbar { padding: 7px 14px; }
  .rec-pill { bottom: 76px; }
}

/* ---- quick wins (28 Sep 2026) ---- */
.ov-today { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: var(--text-2); }
.ov-today .icon { color: var(--c-amber); }
.otd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.otd-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: auto; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); text-align: left; font-weight: 400; min-width: 0; }
.otd-item:hover { border-color: var(--border-strong); background: var(--surface-3); }
.otd-item strong { max-width: 100%; font-size: 14px; }
.otd-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* mood check-in */
.checkin { display: flex; flex-direction: column; gap: 12px; }
.mood-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-btn { flex: 1; min-width: 64px; height: auto; flex-direction: column; gap: 2px; padding: 10px 6px; border-radius: var(--r-lg); background: var(--surface-2); border: 2px solid transparent; font-weight: 500; }
.mood-btn:hover { background: var(--surface-3); }
.mood-btn[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.mood-face { font-size: 28px; line-height: 1.1; }
.checkin.compact .mood-face { font-size: 22px; }
.mood-labels { gap: 6px; }
.mood-chart { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 4px; }
.mc-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.mc-day i { width: 100%; max-width: 16px; border-radius: 4px 4px 2px 2px; background: var(--surface-3); display: block; }
.mc-day i.m1 { background: var(--c-red); } .mc-day i.m2 { background: var(--c-orange); } .mc-day i.m3 { background: var(--c-amber); }
.mc-day i.m4 { background: var(--c-teal); } .mc-day i.m5 { background: var(--c-green); }
.mc-label { font-size: 10px; color: var(--muted); height: 12px; white-space: nowrap; }
.journal-page { display: flex; flex-direction: column; gap: 16px; }
.journal-checkin, .journal-trend { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.journal-reflection { background: var(--surface-2); border-radius: var(--r); padding: 12px 16px; font-size: 14px; }
.journal-day { margin-top: 6px; }
.journal-day .panel-title { display: block; margin-bottom: 6px; }
.journal-entry { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); margin-bottom: 6px; }
.journal-entry p { margin: 2px 0 4px; white-space: pre-wrap; }
.je-face { font-size: 24px; width: 32px; text-align: center; flex: none; color: var(--muted); }
.journal-entry .icon-btn { opacity: .5; }
.journal-entry:hover .icon-btn { opacity: 1; }

/* memory */
.memory-page { display: flex; flex-direction: column; gap: 18px; }
.memory-intro { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.memory-intro p { margin: 0; }
.memory-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.memory-add input[type="text"] { flex: 1; min-width: 240px; }
.memory-group .panel-title { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.memory-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.memory-item { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.memory-item.editing input { flex: 1; }
.memory-item .icon-btn { opacity: .5; }
.memory-item:hover .icon-btn, .memory-item:focus-within .icon-btn { opacity: 1; }

/* plan my day / shut down */
.plan-page { display: flex; flex-direction: column; gap: 14px; }
.plan-switch { justify-content: center; }
.plan-step { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.plan-step h2 { font-size: 16px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.plan-task { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r); min-height: 40px; }
.plan-task:hover { background: var(--surface-2); }
.plan-task.on { background: var(--accent-soft); }
.plan-task input[type="checkbox"] { width: 18px; height: 18px; flex: none; }
.plan-title { flex: 1; min-width: 0; border: 0; background: transparent; height: auto; padding: 0; flex-direction: column; align-items: flex-start; gap: 0; font-weight: 500; text-align: left; }
.plan-title:hover { background: transparent; color: var(--accent-text); }
.plan-title > span { max-width: 100%; }
.plan-actions { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.plan-list.done .plan-task { color: var(--text-2); min-height: 30px; }
.plan-list.done .icon { color: var(--ok); }
.plan-suggest summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.cap-bar { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .3s var(--ease); }
.plan-capacity.over .cap-bar i { background: var(--bad); }
.cap-note { margin: 0; }
.cap-note.bad strong { color: var(--bad); }
.plan-go { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 6px 0 20px; }

/* note links */
.ne-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.ne-links:empty { display: none; }
.ne-links h4 { margin: 0 0 4px; }
.ne-links li { display: flex; align-items: center; gap: 4px; }
a.wikilink { color: var(--accent-text); text-decoration: none; border-bottom: 1px dashed currentColor; }
a.wikilink:hover { background: var(--accent-soft); }

/* settings */
.place-results { list-style: none; margin: 4px 0 0; padding: 0; }
.place-results:empty { display: none; }
.token-banner { border-radius: var(--r); align-items: flex-start; background: var(--accent-soft); color: var(--text); }
.token-banner input { flex: 1; font-size: 13px; }
.token-banner pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; }
.hook-form input[type="text"] { flex: 1; min-width: 220px; }
.meeting-transcript p { white-space: pre-wrap; }

@media (max-width: 860px) {
  .plan-task { flex-wrap: wrap; }
  .plan-actions { width: 100%; justify-content: flex-start; padding-left: 28px; }
  .mood-btn { min-width: 52px; }
}

/* ---- Talk to Nexus ---- */
.talk-btn { gap: 6px; height: 40px; border-radius: 999px; padding: 0 16px 0 12px; color: var(--accent-text); border-color: transparent; background: var(--accent-soft); }
.talk-btn:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
@media (max-width: 1280px) { .talk-btn .label { display: none; } .talk-btn { width: 40px; padding: 0; justify-content: center; } }
/* Talk history: a rounded panel on the right (the left is the app's menu); slides in over the chat on narrow screens. */
.talk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; padding: 8px 20px 0 0; }
.talk-layout.history-hidden { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
.talk-layout.history-hidden .talk-history { display: none; }
.talk-layout .talk-page { margin: 0 auto; width: 100%; }
.talk-history { position: sticky; top: 8px; max-height: calc(100vh - 150px); overflow-y: auto; background: var(--surface-2); border-radius: 24px; padding: 10px 10px 12px; }
.talk-history-scrim { display: none; }
.talk-history-head { display: flex; align-items: center; gap: 6px; margin: 2px 2px 8px 8px; }
.talk-history-head h2 { flex: 1; font-size: 14px; font-weight: 600; margin: 0; color: var(--text-2); }
.talk-history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.talk-history-list a { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px; color: var(--text); text-decoration: none; }
.talk-history-list a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.talk-history-list a.current { background: var(--accent-soft); color: var(--accent-text); }
.th-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-meta { font-size: 12px; }
.talk-past { gap: 12px; }
.talk-past-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.talk-past-head h2 { margin: 0 0 2px; font-size: 20px; }
.talk-past-summary { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.talk-past-summary p { margin: 0; }
@media (max-width: 1100px) {
  .talk-layout, .talk-layout.history-hidden { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .talk-history { display: none; }
  .talk-layout.history-drawer .talk-history { display: block; position: fixed; top: 72px; right: 8px; bottom: 8px; width: min(320px, calc(100vw - 16px)); max-height: none; z-index: 46; background: var(--surface); box-shadow: var(--shadow-3); }
  .talk-layout.history-drawer .talk-history-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: var(--overlay); }
}
.talk-page { display: flex; flex-direction: column; gap: 14px; max-width: 760px; min-height: calc(100vh - 120px); }
.talk-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 6px; }
/* Mic: a flat circle with outline ripples that follow the voice level (no halo, no glow). */
.talk-orb { --lvl: 0; --ring: var(--accent); position: relative; width: 140px; height: 140px; border-radius: 50%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.talk-orb:hover, .talk-orb:active { background: transparent; }
.orb-ripple { position: absolute; inset: 30px; border-radius: 50%; border: 2px solid var(--ring); opacity: 0; pointer-events: none; transition: transform .09s linear, opacity .12s linear; }
.orb-ripple.r1 { transform: scale(calc(1.08 + var(--lvl) * .22)); opacity: min(.9, calc(var(--lvl) * 4)); }
.orb-ripple.r2 { transform: scale(calc(1.18 + var(--lvl) * .42)); opacity: min(.55, calc(var(--lvl) * 2.6)); }
.orb-ripple.r3 { transform: scale(calc(1.28 + var(--lvl) * .62)); opacity: min(.3, calc(var(--lvl) * 1.6)); border-width: 1.5px; }
.orb-core { position: absolute; inset: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2);
  transition: background .2s var(--ease), color .2s var(--ease); }
.orb-core .icon { width: 36px; height: 36px; }
.talk-page[data-state="idle"] .talk-orb:hover .orb-core { background: var(--accent-soft); color: var(--accent-text); }
.talk-page[data-state="listening"] .orb-core { background: var(--accent); color: var(--accent-fg); }
.talk-page[data-state="speaking"] { --ring-speak: color-mix(in srgb, var(--accent) 55%, transparent); }
.talk-page[data-state="speaking"] .talk-orb { --ring: var(--ring-speak); }
.talk-page[data-state="speaking"] .orb-core { background: var(--accent-soft); color: var(--accent-text); }
.talk-page[data-state="connecting"] .orb-core, .talk-page[data-state="thinking"] .orb-core { background: var(--accent-soft); color: var(--accent-text); }
.talk-page[data-state="error"] .orb-core { background: var(--bad-soft); color: var(--bad); }
/* Waiting: one slow outline ring, so it's clear something is happening. */
.talk-page[data-state="connecting"] .orb-ripple.r1, .talk-page[data-state="thinking"] .orb-ripple.r1 { animation: orbwait 1.4s var(--ease) infinite; }
@keyframes orbwait { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
.talk-status { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-height: 40px; }
.talk-status strong { font-size: 16px; }
.talk-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.talk-controls button[aria-pressed="true"]:not(.danger) { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.talk-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 4px 2px 8px; }
.talk-empty { text-align: center; padding: 10px 12px; }
.talk-suggest { justify-content: center; gap: 6px; margin-top: 8px; }
.talk-bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.talk-bubble p { margin: 2px 0 0; white-space: pre-wrap; line-height: 1.45; }
.talk-bubble.user { align-self: flex-end; background: var(--accent-soft); border-color: transparent; border-bottom-right-radius: 5px; }
.talk-bubble.ai { align-self: flex-start; border-bottom-left-radius: 5px; }
.talk-who { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.talk-tool { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.talk-tool.bad { color: var(--warn); background: var(--warn-soft); }
.talk-tool a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.talk-composer { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 0 14px; background: var(--bg); }
.talk-composer[hidden] { display: none; }
.talk-composer input { flex: 1; border-radius: 999px; padding: 10px 16px; }
.talk-composer button { border-radius: 50%; width: 40px; height: 40px; }
.talk-pill { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 61; display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px 4px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-2); }
.talk-pill-main { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; padding-right: 6px; }
.talk-pill-main:hover { text-decoration: none; color: var(--accent-text); }
.talk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: live 1.6s ease-in-out infinite; }
.talk-pill[data-state="speaking"] .talk-dot { background: var(--accent-text); }
@media (max-width: 860px) { .talk-pill { bottom: 76px; } .talk-bubble { max-width: 92%; } .talk-page { min-height: calc(100vh - 150px); } }
.warn-text { color: var(--warn); }
