.ws-toolbar,.ws-card-top,.ws-card-actions,.ws-dialog-heading,.ws-shortcuts,.ws-activity{display:flex;align-items:center;justify-content:space-between;gap:12px}.ws-toolbar{margin-bottom:24px}.ws-toolbar>p{color:var(--muted);max-width:550px}.ws-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ws-card{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.ws-card h2{font-size:20px;line-height:1.4;margin:14px 0 8px}.ws-card>p,.ws-source blockquote{white-space:pre-wrap;overflow-wrap:anywhere}.ws-card-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:16px}.ws-card-actions button{min-height:44px}.ws-state{font-size:11px;background:var(--soft);padding:5px 9px;border-radius:20px;white-space:nowrap}.ws-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px;margin-top:12px}.ws-source{border-top:1px solid var(--line);padding-top:12px;margin-top:16px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.ws-source>a{display:inline-block;margin-left:12px;color:var(--accent)}.ws-source blockquote{border-left:2px solid var(--line);padding:0 0 0 12px;margin:12px 0 0;line-height:1.6}.ws-empty{padding:28px 0;color:var(--muted)}.ws-empty h2{color:var(--ink);font-size:22px;line-height:1.4}.ws-brief{padding:22px 0 28px;border-bottom:1px solid var(--line);margin-bottom:28px}.ws-brief h2{font-size:28px;letter-spacing:-.035em;margin:10px 0}.ws-brief>p{max-width:720px;line-height:1.6}.ws-shortcuts{justify-content:flex-start;flex-wrap:wrap;margin-top:20px}.ws-shortcuts button{background:var(--surface);min-height:44px;display:flex;gap:24px;align-items:center}.ws-priority{display:grid;grid-template-columns:30px minmax(0,1fr) 44px;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);align-items:start}.ws-priority-number{color:var(--muted);font-size:12px;padding-top:5px}.ws-priority h3{margin:0}.ws-priority h3 button{padding:0;min-height:0;background:none;border:0;text-align:left;font-size:19px;line-height:1.4;overflow-wrap:anywhere}.ws-priority p{font-size:13px;color:var(--muted);line-height:1.6;margin:6px 0}.ws-priority small{color:var(--muted)}.ws-agent-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:24px}.ws-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ws-dialog{max-width:700px}.ws-dialog-heading h2{font-size:24px;margin:0}.ws-dialog-heading{margin-bottom:18px}.ws-dialog-heading button{position:static;min-width:44px;min-height:44px}.ws-dialog .ws-card{margin:12px 0}.ws-context-row{display:flex;justify-content:space-between;gap:16px;text-align:left;width:100%;min-height:44px;margin:8px 0}.ws-context-row span{font-size:12px;color:var(--muted)}.ws-activity{padding:18px 0;border-bottom:1px solid var(--line)}.ws-activity h3{font-size:16px;margin:0 0 6px}.ws-activity p{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}.ws-search-result{border-bottom:1px solid var(--line);padding:16px 0}.ws-search-result p{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.ws-decisions>.ws-card{margin-bottom:12px}#workspace-search{width:44px;height:44px;display:grid;place-items:center;padding:0}#workspace-search svg{width:20px;height:20px}.page-topline{gap:12px}.page-topline>p{margin-right:auto}.ws-today #quick-note{margin:20px 0}.ws-today #quick-note textarea{min-height:90px}.ws-today #today-agenda{margin-top:28px}
@media(max-width:1000px){.ws-agent-layout{grid-template-columns:minmax(0,1fr)}.ws-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ws-toolbar{align-items:flex-start}.ws-toolbar>p{font-size:13px;margin:0}.ws-card{padding:18px}.ws-brief{padding-top:6px}.ws-brief h2{font-size:24px}.ws-brief>p{font-size:14px}.ws-shortcuts{gap:8px}.ws-shortcuts button{font-size:12px;gap:12px;padding:8px 10px}.ws-form-grid{grid-template-columns:minmax(0,1fr)}.ws-priority{gap:10px;grid-template-columns:22px minmax(0,1fr) 44px}.ws-priority h3 button{font-size:17px}.ws-activity{align-items:flex-start}.ws-activity>button{flex-shrink:0;font-size:12px}.ws-dialog input,.ws-dialog textarea,.ws-dialog select{font-size:16px}.ws-card-actions button{font-size:13px}.page-topline>p{font-size:11px}.ws-dialog-heading h2{font-size:21px}.ws-source{font-size:11px}}
@media(max-width:760px){.ws-today .today-primary,.ws-today .today-secondary{display:block}.ws-today .today-secondary{margin-top:8px}.ws-shortcuts button{font-variant-numeric:tabular-nums}}

@media(max-width:760px){.ws-brief{margin-bottom:20px;padding-bottom:20px}.ws-brief h2{font-size:21px;line-height:1.3}.ws-brief>p{margin:8px 0}.ws-shortcuts{margin-top:14px}}

.ws-capture-context{border-top:1px solid var(--line);padding-top:4px}.ws-capture-context summary{font-size:13px;color:var(--muted);padding:12px 0}.ws-capture-context .ws-form-grid{padding:4px 0 12px}

/* Shared hierarchy: page introduction, section heading, then content. */
body { --section-line: color-mix(in srgb, var(--ink) 20%, var(--bg)); }
.page-header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--section-line); }
.heading-row { align-items: center; }
.heading-row > div:first-child { min-width: 0; }
#heading { margin: 0; }
#subtitle { margin-top: 8px; }
#subtitle:empty { display: none; }
#page-tools { flex-shrink: 0; }
#page-tools .ws-toolbar { margin: 0; }
.collection-toolbar { padding: 0; margin-bottom: 20px; border: 0; }
.collection-toolbar > p { max-width: none; }
.section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--section-line); margin-bottom: 20px; }
.section-heading h2 { line-height: 1.5; font-weight: 600; }
.ws-group + .ws-group { margin-top: 32px; }
.ws-card h3 { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 14px 0 8px; overflow-wrap: anywhere; }
.ws-empty, .collection-empty { max-width: none; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.ws-empty h2, .collection-empty h2 { margin: 8px 0 12px; font-size: 23px; line-height: 1.35; }
.ws-empty p, .collection-empty p { max-width: 58ch; margin: 0; }
.ws-empty .eyebrow { font-size: 12px; }
.ws-priorities > .ws-empty { border: 0; border-radius: 0; background: transparent; padding: 8px 0; }
.ws-list > .ws-empty { grid-column: 1 / -1; }
:is(.weekly-tasks, .horizon) > h2, .alerts-section > h2 { font-size: 16px; font-weight: 600; padding-bottom: 12px; margin: 0 0 20px; border-bottom: 1px solid var(--section-line); }
.task-day > h3 { padding: 10px 12px; background: var(--soft); border-left: 2px solid var(--section-line); margin: 24px 0 8px; }
.horizon + .horizon { margin-top: 32px; }
.ws-today .today-primary > section + section, .ws-today .today-secondary > section + section { margin-top: 32px; }
.settings-section-heading { padding-bottom: 18px; border-bottom: 1px solid var(--section-line); }
.settings-section > h3 { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.ws-agent-layout #ws-policy { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.ws-audit { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--section-line); }
.ws-dialog-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ws-dialog > h3 { margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
body[data-current-view=calendar] .page-header { padding-bottom: 20px; }
@media (max-width:760px) {
 .page-header { padding-bottom: 20px; margin-bottom: 24px; }
 .heading-row { flex-wrap: wrap; gap: 16px; }
 .heading-row > div:first-child { flex: 1 1 100%; }
 #page-tools { max-width: 100%; }
 #page-tools button { white-space: normal; }
 .section-heading { padding-bottom: 10px; margin-bottom: 16px; }
 .ws-empty, .collection-empty { padding: 22px 20px; }
 .ws-empty h2, .collection-empty h2 { font-size: 21px; }
 .ws-group + .ws-group, .horizon + .horizon { margin-top: 28px; }
 .ws-card h3 { font-size: 18px; }
 .ws-today .today-primary > section + section, .ws-today .today-secondary > section + section { margin-top: 28px; }
 .settings-section-heading { padding-bottom: 14px; }
 body[data-current-view=calendar] .page-header { padding-bottom: 4px; margin-bottom: 12px; }
 body[data-current-view=calendar] .heading-row { flex-wrap: nowrap; }
 body[data-current-view=calendar] .heading-row > div:first-child { flex: 1; }
}

.finance-overview .currency-summary:first-child { border-top: 0; }
.finance-overview .section-heading h2 { max-width: none; }

/* Daily work: compact overview, focused filters and clear results. */
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--primary); color: var(--on-primary); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
#content:focus { outline: none; }
.task-search-tools { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, .5fr) minmax(140px, .5fr); gap: 12px; align-items: end; margin-bottom: 24px; }
.task-search-tools label { margin: 0; font-size: 12px; color: var(--muted); }
.task-search-tools .search-box { margin: 0; }
.task-search-tools :is(input,select) { width: 100%; }
.task-priority, .task-state { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 5px; background: var(--soft); font-size: 11px; color: var(--ink); }
.task-priority { color: var(--accent); }
.filter-empty { padding: 28px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: var(--soft); }
.filter-empty p { margin: 0 0 8px; }
.filter-empty .text-button { margin-left: 8px; }
.note-updated { font-size: 11px; color: var(--muted); }
.ws-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.ws-filter-tabs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.ws-filter-tabs button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; min-height: 44px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.ws-filter-tabs button[aria-pressed=true] { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 3px #00000008; }
.ws-filter-tabs button span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-filterbar .search-box { flex: 1; max-width: 380px; min-width: 220px; margin: 0; }
.ws-filterbar input { margin: 0; }
.ws-meta .ws-overdue { color: var(--accent); font-weight: 600; }
.ws-result { display: flex; align-items: center; gap: 12px; background: var(--soft); padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; }
.ws-result p { flex: 1; margin: 0; font-size: 13px; }
.ws-result .quiet-button { flex-shrink: 0; min-height: 44px; min-width: 44px; }
.ws-brief { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 0 20px; margin-bottom: 24px; }
.ws-brief .ws-shortcuts { margin: 0; }
.ws-brief > div > p { max-width: 60ch; line-height: 1.6; margin: 8px 0 0; }
.ws-brief:not(.has-summary) { padding-bottom: 0; border: 0; }
.ws-brief:not(.has-summary) .ws-shortcuts button { background: transparent; border-color: var(--line); color: var(--muted); font-size: 13px; }
.ws-quick-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px 0; margin-top: 20px; border-top: 1px solid var(--line); }
.ws-quick-dates > span { flex: 1 0 100%; color: var(--muted); font-size: 12px; }
.ws-quick-dates button { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.ws-task-context-meta { color: var(--muted); font-size: 13px; }
.ws-priority-options { max-height: 45dvh; overflow: auto; margin: 8px 0 16px; overscroll-behavior: contain; }
.ws-priority-option { display: flex; flex-direction: row; align-items: center; gap: 14px; min-height: 64px; margin: 0; padding: 14px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ws-priority-option:has(:checked) { background: var(--soft); }
.ws-priority-option:has(:disabled) { color: var(--muted); cursor: default; }
.ws-priority-option input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--primary); }
.ws-priority-option span { display: grid; gap: 4px; min-width: 0; }
.ws-priority-option strong { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.ws-priority-option small { color: var(--muted); font-size: 12px; }
.ws-priority-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ws-priority-footer span { font-size: 12px; color: var(--muted); }
.audio-progress { padding: 12px 0; }
.audio-progress p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.audio-progress progress { width: 100%; accent-color: var(--primary); height: 6px; }
.audio-memory-warning { padding: 12px; border: 1px solid var(--accent); border-radius: 8px; color: var(--ink); background: var(--soft); }
#recording-banner .recording-clock { font-variant-numeric: tabular-nums; margin: 0 8px; }
@media (max-width:760px) {
 .task-search-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
 .task-search-tools .search-box { grid-column: 1 / -1; }
 .task-search-tools :is(input,select), .ws-filterbar input { font-size: 16px; }
 .ws-filterbar { gap: 12px; margin-bottom: 24px; }
 .ws-filter-tabs { width: 100%; }
 .ws-filter-tabs button { flex: 1; justify-content: center; padding: 7px; font-size: 12px; gap: 6px; }
 .ws-filterbar .search-box { width: 100%; max-width: none; }
 .ws-result { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
 .ws-result p { flex: 1 0 70%; }
 .ws-brief { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
 .ws-priorities .section-heading { gap: 10px; }
 .ws-priorities .section-heading .text-button { font-size: 12px; }
 .ws-priority-footer { gap: 10px; }
 .ws-priority-footer .primary { padding-inline: 12px; font-size: 13px; }
}

.task-search-tools { grid-template-columns: minmax(180px, 1fr) minmax(300px, 1fr); align-items: end; }
.task-advanced-filters { min-width: 0; }
.task-advanced-filters summary { color: var(--muted); font-size: 12px; padding: 8px 0; cursor: pointer; }
.task-advanced-filters > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.task-advanced-filters label { min-width: 0; }
#task-filter-count { color: var(--accent); }
@media (min-width:761px) { .task-advanced-filters summary { display: none; } }
@media (max-width:760px) {
 .task-search-tools { grid-template-columns: minmax(0,1fr); gap: 2px; margin-bottom: 16px; }
 .task-advanced-filters summary { min-height: 44px; display: flex; gap: 8px; align-items: center; font-size: 12px; }
 .task-advanced-filters summary::before { content: '+'; font-size: 16px; }
 .task-advanced-filters[open] summary::before { content: '−'; }
 .task-advanced-filters > div { padding: 2px 0 12px; }
 body[data-current-view=tasks] .collection-toolbar > p { display: none; }
 body[data-current-view=tasks] .collection-toolbar { margin: 0; }
 body[data-current-view=tasks] .task-filters { margin-bottom: 16px; }
 body:is([data-current-view=tasks],[data-current-view=notes],[data-current-view=projects],[data-current-view=goals]) .heading-row { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
 body:is([data-current-view=tasks],[data-current-view=notes],[data-current-view=projects],[data-current-view=goals]) .heading-row > div:first-child { flex: 1; }
 body:is([data-current-view=tasks],[data-current-view=notes],[data-current-view=projects],[data-current-view=goals]) #page-tools button { font-size: 12px; padding: 10px; }
}

/* Today: two immediate actions, visible without opening the capture section. */
.today-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
#today-record-meeting{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;font-size:13px;white-space:nowrap;background:var(--surface)}
#today-record-meeting svg{width:18px;height:18px;flex-shrink:0}
@media(max-width:760px){.today-header-actions{width:100%;margin-left:0;gap:8px}.today-header-actions>button{flex:1 1 auto}#today-record-meeting{font-size:12px;padding:9px 10px;gap:7px}.today-header-actions #new-task{justify-content:center}}
