/* Shared visual system. Ivory / graphite surfaces with petroleum accents.
 * Semantic tokens keep compact state indicators distinct from large surfaces. */
:root {
  /* Shared radii: details, controls, cards, panels, dialogs and rounded badges. */
  --radius-indicator:2px;
  --radius-small:4px;
  --radius-control:6px;
  --radius-card:8px;
  --radius-dialog:12px;
  --radius-large:16px;
  --radius-pill:999px;
  --radius-circle:50%;
  --font-heading:Georgia,'Times New Roman',serif;
  --font-body:Inter,Arial,sans-serif;
  --theme-canvas:#f5f3ee;
  --theme-panel:#fffdf9;
  --theme-input:#fffdf9;
  --theme-hover:#f2f1ec;
  --theme-ink:#223333;
  --theme-muted:#5c6669;
  --theme-line:#e4e5df;
  --theme-control-line:#879793;
  --theme-accent:#0d6067;
  --theme-accent-soft:#e5f3f1;
  --theme-action:#0d6067;
  --theme-action-ink:#fff;
  --theme-violet:#6b4e9b;
  --theme-violet-soft:#ede7f6;
  --theme-blue:#287eb4;
  --theme-blue-ink:#216b9d;
  --theme-blue-soft:#e9f3fb;
  --theme-gold:#9b5a10;
  --theme-gold-soft:#fff1da;
  --theme-coral:#a83c4b;
  --theme-coral-soft:#fbe7eb;
  --theme-green:#187459;
  --theme-green-soft:#e6f5ef;
  --theme-brand:#0d6067;
  --theme-shadow:0 3px 14px #22333305;
  --theme-popover-shadow:0 8px 28px #22333314;
  --theme-dialog-shadow:0 20px 60px #22333324;
  --theme-overlay:#22333355;
  --theme-gold-panel:var(--theme-panel);
  --theme-coral-panel:var(--theme-panel);
  --theme-blue-panel:var(--theme-panel);
  --theme-green-panel:var(--theme-panel);
  --theme-violet-panel:var(--theme-panel);
  --theme-accent-panel:var(--theme-panel);
}
:root[data-theme=dark] {
  --theme-canvas:#191d1f;
  --theme-panel:#252b2d;
  --theme-input:#22292b;
  --theme-hover:#303b3d;
  --theme-ink:#ecefea;
  --theme-muted:#b1bbb9;
  --theme-line:#3b4445;
  --theme-control-line:#788b89;
  --theme-accent:#82d0cd;
  --theme-accent-soft:#253c3e;
  --theme-action:#0d6067;
  --theme-action-ink:#f4f6f3;
  --theme-violet:#b5a7df;
  --theme-violet-soft:#363346;
  --theme-blue:#88bceb;
  --theme-blue-ink:#88bceb;
  --theme-blue-soft:#263c4b;
  --theme-gold:#e0b875;
  --theme-gold-soft:#40372a;
  --theme-coral:#ef9895;
  --theme-coral-soft:#442f33;
  --theme-green:#90c6ae;
  --theme-green-soft:#2a4038;
  --theme-brand:#82d0cd;
  --theme-shadow:0 3px 14px #00000018;
  --theme-popover-shadow:0 8px 28px #0004;
  --theme-dialog-shadow:0 20px 60px #0006;
  --theme-overlay:#0b1113b3;
}
:root, :root[data-theme], :root[data-theme] :is(.app-shell,.projects-shell .main,.statistics-page,.ideas-page,#editor) {
  --bg:var(--theme-canvas);--canvas:var(--theme-canvas);
  --white:var(--theme-panel);--surface:var(--theme-panel);
  --surface-subtle:var(--theme-input);--surface-hover:var(--theme-hover);
  --ink:var(--theme-ink);--text:var(--theme-ink);--muted:var(--theme-muted);
  --line:var(--theme-line);--border:var(--theme-line);
  --teal:var(--theme-accent);--primary:var(--theme-accent);
  --teal-soft:var(--theme-accent-soft);--surface-alt:var(--theme-accent-soft);
  --accent-contrast:var(--theme-action-ink);
  --peach:var(--theme-gold-soft);--peach-ink:var(--theme-gold);
  --lilac:var(--theme-violet-soft);--lilac-ink:var(--theme-violet);
  --warning-surface:var(--theme-gold-soft);--warning-ink:var(--theme-gold);
  --pending-surface:var(--theme-gold-soft);
  --danger-surface:var(--theme-coral-soft);--danger-ink:var(--theme-coral);
  --progress-empty:var(--theme-line);--progress-gradient:var(--theme-blue);
  --project-control-line:var(--theme-line);
  --nav-bg:var(--theme-panel);--nav-ink:var(--theme-ink);--nav-line:var(--theme-line);
  --nav-active:var(--theme-accent-soft);--nav-hover:var(--theme-hover);--nav-focus:var(--theme-accent);
  --radius:10px;
}
:root[data-theme] :is(body,.app-shell,.main,.projects-shell .main){background:var(--theme-canvas);color:var(--ink)}
:root[data-theme=light] .sidebar{--nav-bg:var(--theme-panel);background:var(--nav-bg)}
:root[data-theme=dark] .sidebar{--nav-bg:#202628;background:var(--nav-bg)}
:root[data-theme] :is(.sidebar,.bottom-nav){color:var(--nav-ink);border-color:var(--nav-line)}
:root[data-theme] .sidebar :is(.brand,.profile,.profile .icon){color:var(--nav-ink)}
:root[data-theme] .sidebar .brand>.icon{color:var(--theme-brand)}
:root[data-theme] .sidebar .profile{border-color:var(--nav-line)}
:root[data-theme] :is(.sidebar .nav,.bottom-nav) button{color:var(--nav-ink)}
:root[data-theme] :is(.sidebar .nav,.bottom-nav) button.active{background:var(--nav-active);color:var(--theme-accent)}
:root[data-theme] :is(.sidebar .nav,.bottom-nav) button:hover{background:var(--nav-hover);color:var(--ink)}
:root[data-theme] :is(.sidebar .nav,.bottom-nav) .nav-outline-icon{display:block}
:root[data-theme] :is(.sidebar .nav,.bottom-nav) .nav-illustrated-icon{display:none}
:root[data-theme] .nav-badge{background:var(--theme-accent);color:var(--theme-input)}
:root[data-theme] .sidebar-pin[aria-pressed=true]{background:var(--theme-accent-soft);color:var(--theme-accent);border-color:var(--theme-line)}
:root[data-theme] .app-shell[data-sidebar-pinned] .sidebar-scroll>.nav{margin-bottom:20px}
.sidebar-scroll{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;padding:26px 16px 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--theme-control-line) transparent;scroll-padding-block:12px}
@media(min-width:701px){.app-shell[data-sidebar-pinned] .sidebar-scroll{padding:24px 12px 0}}
@media(max-width:700px){.sidebar .sidebar-scroll{padding:max(18px,env(safe-area-inset-top)) 20px max(12px,env(safe-area-inset-bottom))}}
:root[data-theme] .app-shell[data-sidebar-pinned] .sidebar-scroll>.nav{flex:none;min-height:auto;overflow:visible;margin-inline:0;padding:6px 0}
.sidebar-scroll>:is(.brand,.sidebar-theme,.sidebar-bottom,.profile){flex:none}
.sidebar-scroll>.profile{margin-inline:0;padding-inline:6px}
.sidebar-scroll .nav button{padding-inline:12px}
.sidebar-theme{border:0;border-top:1px solid var(--nav-line);border-bottom:1px solid var(--nav-line);border-radius:0;margin-top:auto}
.sidebar-bottom{padding:14px 0;margin-top:0}
:root[data-theme] .main{padding:28px 32px 36px;min-width:0;max-width:none}
@media(min-width:1101px){
  :root[data-theme] .app-shell[data-sidebar-pinned]{--sidebar-rail:96px}
  :root[data-theme] :is(.app-shell,.projects-shell) .main{padding:28px clamp(32px,4.65vw,70px) 36px}
  :root[data-theme] .sidebar .nav button>.icon{width:25px;height:25px}
  :root[data-theme] .app-shell[data-sidebar-pinned] .sidebar .brand .icon{width:36px;height:36px}
  :root[data-theme] .sidebar .nav button{min-height:50px}
}
.topbar{gap:20px;margin-bottom:24px}
:root[data-theme] :is(.heading h1,.ideas-shell .heading h1){font:700 40px/1.12 Georgia,'Times New Roman',serif;letter-spacing:-1px;color:var(--ink)}
:root[data-theme] :is(.heading p,.ideas-shell .heading p,.statistics-shell .heading p){font-size:16px;line-height:1.5;margin:6px 0 0;color:var(--muted)}
.ideas-shell .heading{padding-left:0}
.search-box input{background:var(--theme-input);border-color:var(--line);font-size:13px}
:root[data-theme] :is(.heading h1,.ideas-shell .heading h1){font-size:46px;letter-spacing:-1px}
:root[data-theme] :is(.heading p,.ideas-shell .heading p,.statistics-shell .heading p){font-size:18px}
:root[data-theme] .search-box input{font-size:14px;min-height:48px}
:root[data-theme] .topbar .btn.primary{min-height:48px;padding-inline:22px}
:root[data-theme] .topbar .create-wrap>.btn{min-width:160px;font-size:16px}
:root[data-theme] :is(.panel,.note-card,.p-card,.stats-panel,.stats-toolbar,.filter-panel,.inbox-row,.calendar-panel,.time-grid-panel){background:var(--surface);border-color:var(--line);border-radius:var(--radius);box-shadow:var(--theme-shadow)}
.panel{padding:20px}
:root[data-theme] :is(.btn,.icon-btn,.text-btn,.entry-edit){color:var(--teal)}
:root[data-theme=dark] :is(.btn,.text-btn,.entry-edit):not(.primary,.danger,.danger-solid){color:var(--teal)}
:root[data-theme=dark] .calendar-controls .icon-btn{color:var(--teal)}
:root[data-theme] .btn{background:var(--surface);border-color:var(--line);font-weight:550;transition:background-color .15s,border-color .15s,color .15s}
:root[data-theme] .btn:not(.primary):not(.danger-solid):enabled:is(:hover,:focus-visible){background:var(--teal-soft);border-color:var(--teal)}
:root[data-theme] .icon-btn:enabled:is(:hover,:focus-visible){background:var(--surface-hover)}
:root[data-theme] :is(.text-btn,.entry-edit):not(.danger):enabled:is(:hover,:focus-visible){background:var(--teal-soft)}
:root[data-theme] :is(.text-btn,.entry-edit).danger:enabled:is(:hover,:focus-visible){background:color-mix(in srgb,var(--danger-ink) 10%,var(--surface));color:var(--danger-ink)}
:root[data-theme] .btn.danger:not(.danger-solid):enabled:is(:hover,:focus-visible){background:color-mix(in srgb,var(--danger-ink) 10%,var(--surface));border-color:var(--danger-ink)}
:root[data-theme] :is(.btn.primary,.stats-toolbar .stats-refresh,.fab,.login-card .btn.primary){background:var(--theme-action);border-color:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] :is(.btn.primary,.btn.danger-solid,.stats-refresh):enabled:hover{filter:brightness(1.1)}
:root[data-theme] :is(.btn.danger,.text-btn.danger,.entry-menu-options button.danger){color:var(--danger-ink)}
:root[data-theme] .btn.danger-solid{background:#a52a46;border-color:#a52a46;color:#fff}
:root[data-theme] :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea,.rich-editor,.rich-toolbar,.task-search,.p-search){background:var(--theme-input);border-color:var(--line);color:var(--ink)}
:root[data-theme] :is(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea,.rich-editor,.task-search-field .task-search){border-color:var(--theme-control-line)}
:root[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
:root[data-theme] :is(.quick-capture,.p-search,.idea-capture) input{background:transparent}
:root[data-theme] :is(button,a,input,select,textarea,summary,[contenteditable]):focus-visible{outline-color:var(--theme-accent)}
input[type=checkbox],input[type=radio]{accent-color:var(--theme-action)}
input[type=color]{height:44px;min-height:44px;padding:5px;border:1px solid var(--line);background:var(--surface);cursor:pointer}
input[type=color]::-webkit-color-swatch-wrapper{padding:0}
input[type=color]::-webkit-color-swatch{border:0;border-radius:var(--radius-small,4px)}
input[type=color]::-moz-color-swatch{border:0;border-radius:var(--radius-small,4px)}
:root[data-theme] :is(.create-menu,.entry-menu-options,.entry-hover,.day-hover,.toast,.snooze-menu>div){background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 12px 35px #0003}
:root[data-theme] :is(.create-menu,.entry-menu-options,.entry-hover,.day-hover,.toast,.snooze-menu>div){box-shadow:var(--theme-popover-shadow)}
:root[data-theme] :is(.form-error,.login-feedback){background:var(--surface);color:var(--danger-ink);border:1px solid var(--line);border-left:3px solid var(--danger-ink)}
:root[data-theme] .toast.error{background:var(--surface);color:var(--danger-ink);border-left:3px solid var(--danger-ink)}
:root[data-theme] :is(button,a,input,select,textarea,summary,[contenteditable]):focus-visible{outline:2px solid var(--teal);outline-offset:3px}
/* A shared project identity for items shown outside their own project. */
:root[data-theme] .project-label{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;margin-top:4px;font-size:11px;line-height:1.4;color:var(--muted);vertical-align:middle;white-space:nowrap}
:root[data-theme] .project-label>.project-label-icon{display:block;width:14px;height:14px;flex:none;color:var(--teal)}
:root[data-theme] .project-label-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis}
:root[data-theme] .entry-copy>.project-label{display:flex}
:root[data-theme] .pl-entry>.pl-entry-copy{display:block;white-space:normal;min-width:0}
:root[data-theme] .pl-entry-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-theme] .pl-entry .project-label{display:flex;margin-top:1px;font-size:10px;color:inherit}
:root[data-theme] .pl-entry .project-label-icon{width:12px;height:12px;color:inherit}
:root[data-theme] .pl-hour-entry>.pl-entry-copy{display:flex;align-items:center;gap:5px}
:root[data-theme] .pl-hour-entry .pl-entry-title{flex:1;min-width:0}
:root[data-theme] .pl-hour-entry .project-label{flex:0 1 50%;margin:0}
:root[data-theme] .mail-row-copy>.project-label{display:flex;white-space:nowrap}
.mail-projects{display:flex;flex-wrap:wrap;gap:4px 12px}
@media(max-width:760px){
  :root[data-theme] .pl-bar[style$="/span 1"] .pl-entry>.pl-entry-copy:has(.project-label){display:block}
  :root[data-theme] .pl-bar[style$="/span 1"] .pl-entry:has(.project-label)>.icon,
  :root[data-theme] .pl-bar[style$="/span 1"] .pl-entry-copy:has(.project-label)>.pl-entry-title{display:none}
}
/* Hover belongs to the complete entry; keyboard focus stays on its control. */
:root[data-theme] :is(
  .task-row:not(.p-list-row),
  .dashboard-event-row,
  .event-line,
  .note-preview,
  .note-card,
  .inbox-row,
  .mail-row,
  .projects-shell .p-task-entry,
  .result-row,
  .p-item-row
):is(:hover,:focus-within){background-color:var(--surface-hover)}

/* Item titles expose summaries without a separate information control. */
.entry-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content);align-items:center;gap:8px;min-width:0}
.entry-line-open{display:flex;align-items:center;gap:14px;min-width:0;padding:0;text-align:left;color:inherit}
.entry-line-open>span:not(.note-icon):not(.p-item-icon):not(.p-event-date){flex:1;min-width:0}
.entry-line-open>.icon:last-child{flex:none;width:18px;height:18px;color:var(--muted)}
.entry-line-open:is(:hover,:focus-visible){background:transparent}
.entry-line>.item-signals{grid-column:2;grid-row:1;max-width:300px;margin:0}
.task-row>.item-signals{order:5;flex-basis:100%;margin:0;padding-left:32px}
.p-list-row>.item-signals{grid-column:2/-1;padding-left:0}
.event-entry>.item-signals,.dashboard-event-row>.item-signals{order:3;flex-basis:100%;margin-top:0}
/* Preserve space below wrapped badges when the theme resets the row padding. */
.agenda-queue-row:has(>.item-signals:not(:empty)),
:root[data-theme] .agenda-queue-row:has(>.item-signals:not(:empty)){flex-wrap:wrap;padding-bottom:12px}
.agenda-queue-row>.item-signals{order:3;flex-basis:100%;margin-top:0}
.panel{--entry-inset:20px}
:root[data-theme] .dashboard-grid>.panel{--entry-inset:24px}
.panel>.note-list,.panel>.task-list:not(:has(.p-kanban-board,.p-gantt-board,.pl-calendar)),.p-upcoming-list{margin-inline:calc(0px - var(--entry-inset))}
:root[data-theme] .note-list>.note-preview{padding:12px var(--entry-inset);border-radius:0;gap:8px}
.panel>.task-list>.task-row{padding-inline:var(--entry-inset);border-radius:0}
.panel>.task-list:not(:has(.task-deadline-group,.p-kanban-board,.p-gantt-board,.pl-calendar)){padding:0;border:0;border-radius:0}
.main[data-view=tasks] .panel>.task-list{margin-inline:0}
:root[data-theme] .main[data-view=tasks] .panel>.task-list:not(:has(.task-deadline-group,.p-kanban-board,.p-gantt-board,.pl-calendar)){padding:0;border:1px solid var(--line);border-radius:var(--radius,10px)}
:root[data-theme] .projects-shell .p-tasks-panel .p-section{margin-inline:calc(0px - var(--entry-inset))}
:root[data-theme] .projects-shell .p-tasks-panel .p-task-entry{padding-inline:calc(var(--entry-inset) + 8px)}
:root[data-theme] .projects-shell .p-tasks-panel .p-section>summary{padding-inline:calc(var(--entry-inset) + 10px) calc(var(--entry-inset) + 42px);border-radius:0}
.p-side-panel>.p-item-row,.p-event-history>.p-item-row{width:calc(100% + 2 * var(--entry-inset));margin-inline:calc(0px - var(--entry-inset));padding-inline:var(--entry-inset)}
.p-upcoming-list>.p-item-row{padding-inline:var(--entry-inset)}
.p-upcoming-list>.helper{padding-inline:var(--entry-inset)}
.task-deadline-group>.task-row{margin-inline:0;padding-inline:14px;border-radius:0}
.p-list-progress{position:relative}
.entry-summary-frame{position:relative;display:block;min-width:0;max-width:100%}
.entry-summary-frame>:is(.calendar-event,.pl-entry){width:100%}
.tg-event-frame{position:absolute}
.tg-event-frame>.tg-event{position:absolute;inset:0;width:100%;height:100%}
.month-summary-frame{align-self:stretch;min-height:26px}
.month-summary-frame>.month-bar{width:100%;height:100%;margin:0}
.planning-summary-frame{width:100%}
.planning-summary-frame>.pl-entry{min-height:28px}
.pl-bar:has(.pl-edge) .pl-entry{padding-right:15px!important}
.pl-bar[style$="/span 1"] .pl-entry{padding-right:6px!important}
.pl-bar:has(.pl-project-colored) .pl-edge{background:transparent;color:var(--ink)}
.pl-hour-block:has(.pl-project-colored) .pl-hour-resize{background:transparent;color:var(--ink)}
.pl-hour-block>.planning-summary-frame{flex:1;min-height:0}
.pl-hour-block>.planning-summary-frame>.pl-entry{height:100%;min-height:0}
.pl-daily>article:is(:hover,:focus-within){background:var(--surface-hover)}
.pl-main .pl-daily{margin-inline:calc(0px - var(--entry-inset))}
.pl-main .pl-daily>article{padding-inline:var(--entry-inset)}
.pl-main{--entry-inset:12px}
@media(max-width:760px){.pl-main{--entry-inset:6px}}
.pl-bar:has(.pl-project-colored)>.pl-bar-block::before,.pl-bar:has(.pl-project-colored)>.pl-bar-block::after{color:var(--ink)}
.pl-hour-block:has(.pl-project-colored){background:color-mix(in srgb,var(--project-color) 15%,var(--surface))}
.p-gantt-name{position:relative}
.p-gantt-row:is(:hover,:focus-within) :is(.p-gantt-name,.p-gantt-track){background-color:var(--surface-hover)}
.p-gantt-row.editor-selected .p-gantt-name{background:var(--surface)}
.p-gantt-row.editor-selected:is(:hover,:focus-within) .p-gantt-name{background:var(--surface-hover)}
.people-row:is(:hover,:focus-within){background:var(--surface-hover)}
.people-row.editor-selected{background:var(--surface)}
.p-card:is(:hover,:focus-within){background-color:var(--surface-hover)}
:root[data-theme] :is(.notice-row,.context-update,.mail-context-row,.idea-row,.p-milestone-row,.p-undated-row):is(:hover,:focus-within){background-color:var(--surface-hover)}
:root[data-theme] :is(.task-row.expanded:not(.p-list-row),.p-task-entry:has(>.p-list-row.expanded),.note-card.expanded,.dashboard-event-row.expanded,.event-line:has(.event-entry.expanded)){background-color:var(--surface)!important;box-shadow:inset 2px 0 var(--line)}
:root[data-theme] :is(.editor-selected,.task-row.expanded:not(.p-list-row),.p-task-entry:has(>.p-list-row.expanded),.note-card.expanded,.dashboard-event-row.expanded,.event-line:has(.event-entry.expanded)):is(:hover,:focus-within){background-color:var(--surface-hover)!important}
:root[data-theme] .p-task-entry:is(:hover,:focus-within){background-color:var(--surface-hover)}
:root[data-theme] .p-task-entry:is(:hover,:focus-within)>.task-row{background-color:transparent}
:root[data-theme] :is(.task-row:has(>[data-select-task]:checked),.p-task-entry:has(>[data-p-select]:checked),.p-board-card:has([data-p-select]:checked)){background-color:var(--teal-soft)!important;box-shadow:inset 3px 0 var(--teal)}
:root[data-theme] .mail-row:has([data-mail-select]:checked){background-color:var(--teal-soft)}
:root[data-theme] .idea-row.selected{background-color:var(--idea-selection,var(--teal-soft))}
.stats-items tr:is(:hover,:focus-within){background:var(--surface-hover)}
@media(max-width:700px){
  :root[data-theme] .dashboard-grid>.panel{--entry-inset:18px}
  .entry-line{grid-template-columns:minmax(0,1fr)}
  .entry-line>.item-signals{grid-column:1;grid-row:2;max-width:100%;padding-left:54px}
  :root[data-theme] .task-row:not(.p-list-row,.attention-row){position:relative;padding-right:20px}
  .task-row:not(.p-list-row,.attention-row)>.task-open{flex:1 1 calc(100% - 48px)}
}
:root[data-theme] :is(
  .mail-folder:not(.active),
  .day-hover-event,
  .segmented>button:not(.active,[aria-pressed=true]),
  .view-tabs>button:not(.active,[aria-pressed=true])
):enabled:is(:hover,:focus-visible){background-color:var(--surface-hover)}
:root[data-theme] :is(input,select,textarea):disabled{background:var(--surface-hover);color:var(--muted);opacity:1}
:root[data-theme] .entry-hover-description{color:var(--muted);border-color:var(--line)}
:root[data-theme] :is(.entry-menu-options button,.create-menu button):hover{background:var(--surface-hover)}
:root[data-theme] :is(.segmented,.view-tabs){background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;gap:4px}
:root[data-theme] :is(.segmented,.view-tabs)>button{border-radius:var(--radius-small,4px);color:var(--muted);padding:9px 15px;min-height:40px}
:root[data-theme] :is(.segmented,.view-tabs)>button:is(.active,[aria-pressed=true]){background:var(--teal-soft);color:var(--teal);box-shadow:none}
:root[data-theme] .view-tabs{border-bottom:1px solid var(--line);margin-bottom:14px}
:root[data-theme] .view-tabs>button[aria-pressed=true]{background:transparent;border-bottom:3px solid var(--teal);border-radius:0;font-weight:650}
:root[data-theme] .filter-panel{padding:14px 16px;margin-bottom:18px;border-color:var(--line)}
.filter-panel.expanded .filter-content{padding-top:12px;border-top:1px solid var(--line);margin-top:12px;gap:12px}
.filter-panel .filter-order{border-color:var(--line)}
.filter-panel-head{gap:10px}
.filter-panel .filter-clear{background:transparent;color:var(--muted)}
:root[data-theme] :is(.icon-filter,.icon-select)::picker(select){background:var(--surface);border-color:var(--line);color:var(--ink)}
:root[data-theme] :is(.icon-filter,.icon-select) option:checked{background:var(--teal-soft);color:var(--teal)}
/* Today: outline icons and the same compact panels as the supplied overview. */
.dashboard-summary{gap:14px;margin-bottom:18px}
.today-dashboard{display:block}
.today-dashboard>.dashboard-capture,.today-dashboard>.dashboard-grid{order:initial}
:root[data-theme] .dashboard-stat{background:var(--surface);border-color:var(--line);min-height:124px;padding:18px;align-items:center}
.dashboard-stat-icon{width:48px;height:48px}
:root[data-theme] .dashboard-stat.pending .dashboard-stat-icon{background:var(--teal-soft);color:var(--teal)}
:root[data-theme] .dashboard-stat.appointments .dashboard-stat-icon{background:var(--theme-blue-soft);color:var(--theme-blue)}
:root[data-theme] .dashboard-stat.inbox .dashboard-stat-icon{background:var(--lilac);color:var(--lilac-ink)}
:root[data-theme] .dashboard-stat.overdue{background:var(--theme-coral-panel)}
:root[data-theme] .dashboard-stat.overdue .dashboard-stat-icon{background:var(--danger-surface);color:var(--danger-ink)}
.dashboard-stat-icon>.icon{width:29px;height:29px}
.dashboard-stat-copy strong{font-size:32px}
:root[data-theme] .dashboard-stat.overdue strong{color:var(--danger-ink)}
:root[data-theme] .dashboard-stat.overdue.is-empty{background:var(--surface)}
:root[data-theme] .dashboard-stat.overdue.is-empty .dashboard-stat-icon{background:var(--teal-soft);color:var(--teal)}
:root[data-theme] .dashboard-stat.overdue.is-empty strong{color:var(--ink)}
:root[data-theme] .dashboard-summary{gap:0;padding:14px 0;margin-bottom:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius,10px);box-shadow:var(--theme-shadow)}
:root[data-theme] .dashboard-stat{border:0;border-radius:0;min-height:90px;padding:8px 26px;gap:18px;background:transparent}
:root[data-theme] .dashboard-stat+.dashboard-stat{border-left:1px solid var(--line)}
:root[data-theme] .dashboard-stat:enabled:hover{background:var(--surface-hover);outline:0}
:root[data-theme] .dashboard-stat:disabled{opacity:1}
:root[data-theme] .dashboard-stat-copy{gap:4px}
:root[data-theme] .dashboard-stat-copy strong{font:700 38px/1.1 var(--font-heading);color:var(--ink)}
:root[data-theme] .dashboard-stat.overdue strong{color:var(--ink)}
:root[data-theme] .dashboard-stat-label{font-size:14px}
:root[data-theme] .dashboard-stat-copy small{font-size:12px}
:root[data-theme] .review-suggestion{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;min-height:68px}
.dashboard-queue{grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
:root[data-theme] .agenda-queue-card{--queue-accent:var(--theme-gold);--queue-line:color-mix(in srgb,var(--theme-gold) 35%,var(--surface));background:var(--theme-gold-panel);border-color:var(--queue-line);border-radius:var(--radius,10px)}
:root[data-theme] .agenda-queue-card.overdue-card{--queue-accent:var(--theme-coral);--queue-line:color-mix(in srgb,var(--theme-coral) 32%,var(--surface));background:var(--theme-coral-panel)}
:root[data-theme] .agenda-queue-card.overdue-card.is-clear{--queue-accent:var(--teal);--queue-line:var(--line);background:var(--surface)}
/* Cada fila tem a altura do seu conteúdo: o painel mais curto não fica esticado e vazio. */
:root[data-theme] .dashboard-queue{align-items:start}
.agenda-queue-header{padding:15px 18px;gap:14px;border-left:3px solid var(--queue-accent)}
.agenda-queue-header h2{font-size:19px}
.agenda-queue-header>.icon{width:30px;height:30px}
.agenda-queue-row{padding:0 18px;gap:15px;min-height:72px}
.agenda-queue-time{font-size:14px;flex-basis:66px}
.agenda-queue-open strong{font-size:14px}
.agenda-queue-row.is-overdue{gap:18px;min-height:76px}
.agenda-queue-footer{margin:0 18px}
.today-dashboard>.text-btn{margin:0 0 10px}
.dashboard-capture{margin:0 0 16px;padding:0}
.dashboard-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px}
.mini-grid{gap:6px}
.mini-grid button{width:34px;min-height:34px}
.note-list{gap:0}
.note-preview{padding:13px 0;border-top:1px solid var(--line)}
.note-preview:first-child{border-top:0;padding-top:0}
.note-preview{min-width:0}
.note-preview>span:last-child{min-width:0;flex:1}
.note-preview strong,.note-preview .excerpt{overflow-wrap:anywhere}
.dashboard-grid>.panel{min-width:0}
.dashboard-grid>.mini-month{max-width:100%}
.note-icon{width:46px;height:46px}
.review-suggestion-icon,.note-preview-chevron{display:none}
:root[data-theme] .review-suggestion>span{display:flex;align-items:center;gap:16px}
:root[data-theme] .review-suggestion{padding:14px 24px}
:root[data-theme] .review-suggestion-icon{display:block;width:26px;height:26px;color:var(--teal);flex:none}
:root[data-theme] .dashboard-queue{align-items:stretch;gap:18px;margin-bottom:18px}
:root[data-theme] :is(.agenda-queue-card,.agenda-queue-card.overdue-card){--queue-line:var(--line);--queue-inset:24px;min-height:294px;box-shadow:var(--theme-shadow)}
:root[data-theme] .agenda-queue-card.important-card{grid-column:1/-1;min-height:0}
.important-card>.dashboard-important{margin-inline:var(--queue-inset);padding:0 0 12px;border-top:1px solid var(--line)}
:root[data-theme] .agenda-queue-header{padding:12px var(--queue-inset);border-bottom:0;border-left-width:2px}
:root[data-theme] .today-dashboard .dashboard-queue .agenda-queue-header h2{font-size:28px;letter-spacing:-.4px}
:root[data-theme] .agenda-queue-count{font-family:var(--font-body);font-size:13px;min-width:30px;min-height:26px}
:root[data-theme] .agenda-queue-header p{font-size:14px}
:root[data-theme] .agenda-queue-list{margin:0 var(--queue-inset);border-top:1px solid var(--line)}
:root[data-theme] .agenda-queue-row{position:relative;margin-inline:calc(0px - var(--queue-inset));padding:0 var(--queue-inset);gap:14px;min-height:76px;border-bottom:0}
:root[data-theme] .agenda-queue-row:not(:last-child)::after{content:'';position:absolute;inset:auto var(--queue-inset) 0;border-bottom:1px solid var(--line);pointer-events:none}
:root[data-theme] .agenda-queue-row:is(:hover,:focus-within){background:var(--surface-hover)}
:root[data-theme] .agenda-queue-open:enabled:hover:not(:focus-visible){outline:0}
:root[data-theme] .agenda-queue-time{font-size:13px;flex-basis:58px;font-weight:500;color:var(--muted)}
:root[data-theme] .agenda-queue-open strong{font-size:16px;font-weight:550}
:root[data-theme] .agenda-queue-open small{font-size:14px;color:var(--muted)}
:root[data-theme] .agenda-queue-check{width:26px;height:26px;flex-basis:26px;border:1.5px solid var(--ink);border-radius:var(--radius-small,4px)}
:root[data-theme] .agenda-queue-footer{margin:0 var(--queue-inset);padding:10px 0;min-height:56px}
:root[data-theme] .agenda-queue-link{color:var(--teal);font-size:14px}
:root[data-theme] .agenda-queue-card .agenda-queue-footer .agenda-queue-reschedule{border-color:var(--line);color:var(--teal)}
:root[data-theme] .dashboard-grid{grid-template-columns:1fr 1.04fr;gap:18px;align-items:stretch}
:root[data-theme] .dashboard-grid>.panel{padding:18px 24px;min-height:276px}
:root[data-theme] .today-dashboard .dashboard-grid .panel-header h2{font-size:28px}
:root[data-theme] .mini-grid{row-gap:2px;column-gap:6px}
:root[data-theme] .mini-grid button{min-height:36px;width:36px;font-size:13px}
:root[data-theme] .note-preview{gap:16px;font-size:15px;min-width:0}
:root[data-theme] .note-preview>span:not(.note-icon){flex:1;min-width:0}
:root[data-theme] .note-preview-chevron{display:block;width:18px;height:18px;flex:none;color:var(--muted)}
:root[data-theme] .note-preview strong{font-size:16px;font-weight:550}
:root[data-theme] .note-preview small{font-size:13px}
:root[data-theme] .dashboard-capture .quick-capture{min-height:56px;box-shadow:var(--theme-shadow)}
:root[data-theme] .dashboard-capture .quick-capture input{font-size:16px}
/* Tasks: status summaries, semantic groups and three distinct Kanban lanes. */
.task-state-count{min-height:84px;justify-content:flex-start;gap:16px}
.task-state-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:var(--radius-card,8px);background:var(--surface-hover);color:var(--muted);flex:none}
.task-state-icon>.icon{width:27px;height:27px}
.task-state-copy{display:grid;gap:2px;flex:1}
:root[data-theme] .task-state-count{background:var(--surface);color:var(--muted);border-color:var(--line);box-shadow:none}
:root[data-theme] .task-state-count strong{color:var(--ink);font-size:27px}
:root[data-theme] .task-state-count.doing .task-state-icon{background:var(--theme-blue-soft);color:var(--theme-blue)}
:root[data-theme] .task-state-count.done .task-state-icon{background:var(--theme-green-soft);color:var(--theme-green)}
:root[data-theme] .task-state-count[aria-pressed=true]{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.task-row{min-height:66px;gap:12px}
.task-progress-track>span{background:var(--theme-blue)}
.task-order{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.task-order .filter-field{display:flex;align-items:center;gap:8px;font-size:12px}
.task-order .filter-field select{width:155px}
.task-search-field{display:grid;gap:6px;font-size:12px;color:var(--muted)}
.task-search-field .task-search{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-control,6px)}
.task-search-field input{border:0!important;min-width:0;width:100%;padding:10px 0;background:transparent!important}
.task-search-field .icon{width:18px;height:18px}
.task-row .task-open strong{font-size:14px}
.task-project-column{flex:0 1 155px;min-width:0}
.task-project-column .project-label{margin:0;font-size:12px}
.task-project-column .project-label-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0}
.task-row:not(.attention-row) .entry-copy>small{display:inline-block;margin:3px 8px 0 0;font-size:12px}
.task-summary-heading{margin-bottom:6px}
.task-summary-heading>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.task-summary-heading>.task-summary-all{margin-left:auto}
.task-summary{margin-bottom:10px}
.task-tools{margin:12px 0;position:relative}
.task-summary-heading{height:0;margin:0;position:relative}
.task-summary-heading>.task-summary-all{position:absolute;right:0;bottom:18px;font-size:12px}
@media(min-width:1101px){.task-tools{padding-right:225px}}
.task-state-count strong{font-size:28px}
:root[data-theme] .task-open small.overdue{color:var(--danger-ink)}
:root[data-theme] .pill.high{background:var(--theme-coral-soft);color:var(--theme-coral)}
:root[data-theme] .pill.medium{background:var(--theme-gold-soft);color:var(--theme-gold)}
:root[data-theme] .pill.low{background:var(--theme-green-soft);color:var(--theme-green)}
.pill{padding:4px 9px;border-radius:var(--radius-card,8px);font-size:11px}
.task-deadline-group{--group-color:var(--theme-blue-ink);--group-bg:var(--theme-blue-soft);border:1px solid var(--line);border-radius:var(--radius-card,8px);overflow:visible;margin-bottom:10px;background:var(--surface)}
.task-deadline-group[data-deadline-group=late]{--group-color:var(--theme-coral);--group-bg:var(--theme-coral-soft)}
.task-deadline-group[data-deadline-group=today]{--group-color:var(--theme-gold);--group-bg:var(--theme-gold-soft)}
.task-deadline-group[data-deadline-group=later]{--group-color:var(--muted);--group-bg:var(--surface-hover)}
.task-deadline-group h3{display:flex;align-items:center;gap:9px;background:var(--group-bg);color:var(--group-color);padding:10px 16px;margin:0;font-size:14px;border-radius:var(--radius-card,8px) var(--radius-card,8px) 0 0;border-bottom:1px solid var(--line)}
.task-deadline-group h3>.icon{width:20px;height:20px}
:root[data-theme] .task-deadline-group h3{background:var(--surface);border-left:2px solid var(--group-color)}
.task-deadline-group>.task-row{margin:0 14px}
.main[data-view=tasks] #view-content>.panel:has(#task-results){padding:0;background:transparent;border:0;box-shadow:none}
.task-list:not(:has(.task-deadline-group,.kanban)){background:var(--surface);border:1px solid var(--line);border-radius:var(--radius,10px);padding:0 16px}
.kanban{gap:14px}
:root[data-theme] .kanban-column{background:var(--theme-gold-panel);border-color:var(--line);padding:14px}
:root[data-theme] .kanban-column[data-kanban-drop=doing]{background:var(--theme-blue-panel)}
:root[data-theme] .kanban-column[data-kanban-drop=done]{background:var(--theme-green-panel)}
:root[data-theme] .kanban-column h3{border-left:2px solid var(--theme-gold);padding-left:10px}
:root[data-theme] .kanban-column[data-kanban-drop=doing] h3{border-left-color:var(--theme-blue)}
:root[data-theme] .kanban-column[data-kanban-drop=done] h3{border-left-color:var(--theme-green)}
.kanban-column h3{padding-bottom:12px;border-bottom:1px solid var(--line)}
.kanban-card{padding:14px;border-radius:var(--radius-control,6px)}
/* Notes, Ideas, search, notifications and recovery. */
.note-card{position:relative;min-width:0;min-height:235px;padding:18px;gap:10px;overflow-wrap:anywhere}
.note-open h2{font-size:16px;line-height:1.45;align-items:flex-start;justify-content:flex-start;padding-right:0}
.note-card-icon{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:var(--radius-card,8px);background:var(--lilac);color:var(--lilac-ink);flex:none}
.note-card-icon>.icon{width:24px;height:24px}
.note-title{flex:1;min-width:0}
.note-card p{line-height:1.7;font-size:13px;-webkit-line-clamp:6}
.note-card .card-meta{padding-top:10px;border-top:1px solid var(--line);margin-top:auto}
.note-card .tag{background:var(--lilac);color:var(--lilac-ink)}
.ideas-page{--idea-accent:var(--theme-accent);--idea-selection:var(--theme-accent-soft);--idea-selection-line:var(--line);--idea-icon-bg:var(--theme-violet-soft);--idea-icon-ink:var(--theme-violet);--idea-info-bg:var(--theme-violet-soft);--idea-info-ink:var(--theme-violet)}
:root[data-theme] .ideas-page{--idea-selection:var(--theme-accent-soft);--idea-selection-line:var(--line);--idea-icon-bg:var(--theme-violet-soft);--idea-icon-ink:var(--theme-violet);--idea-info-bg:var(--theme-violet-soft);--idea-info-ink:var(--theme-violet)}
.idea-capture label{font-size:16px}
.idea-capture-icon,.idea-item-icon{width:42px;height:42px}
.idea-list-panel{min-height:420px}
.ideas-workspace{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.idea-select{min-height:86px;gap:14px}
.idea-row-copy strong{font-size:15px}
.idea-list-heading h2{font-size:24px}
:root[data-theme] .notice-row.unread{background:var(--theme-blue-soft)}
:root[data-theme] .notice-row.unread{background:var(--surface);border-left:3px solid var(--theme-blue)}
:root[data-theme] .notice-row{margin-bottom:0;border-radius:0;border-bottom:1px solid var(--line)}
:root[data-theme] .ideas-page :is(.conversion-options,.idea-save-info){background:var(--surface);border:1px solid var(--line);border-left:2px solid var(--teal)}
:root[data-theme] :is(.pl-warning,.p-board-capacity,.co-privacy){background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--theme-gold)}
:root[data-theme] .co-privacy{border-left-color:var(--teal)}
:root[data-theme] .pl-day.is-today{background:var(--surface);box-shadow:inset 0 2px var(--teal)}
:root[data-theme] .pl-dialog [data-pl-error]{background:var(--surface);border-left:3px solid var(--danger-ink);padding:10px}
.notice-row{border-radius:var(--radius-card,8px);margin-bottom:8px}
.notice-top>.icon{color:var(--theme-gold)}
.search-results .result-row{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card,8px);padding:16px;margin-bottom:12px}
:root[data-theme] .search-results mark{background:var(--theme-gold-soft);color:var(--theme-gold)}
.main[data-view=trash] .result-row{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card,8px);padding:15px;margin-bottom:10px}
/* Calendar: neutral grid, blue appointments, gold deadlines and coral now line. */
:root[data-theme] :is(.calendar-cell,.calendar-weekdays,.tg-head){background:var(--surface);color:var(--ink)}
:root[data-theme] :is(.calendar-cell.other,.tg-allday){background:var(--theme-input)}
:root[data-theme] :is(.calendar-cell.today,.tg-col.today){background:var(--theme-accent-soft)}
:root[data-theme] :is(.calendar-cell.today,.tg-col.today){background:var(--surface)}
:root[data-theme] .tg-col{background-color:var(--theme-input)}
:root[data-theme] .tg-day:hover{background:var(--surface-hover)}
:root[data-theme] :is(.tg-day.today strong,.today .day-number,.mini-grid .selected){background:var(--theme-action);color:#fff}
:root[data-theme] :is(.calendar-event,.tg-event){background:var(--theme-blue-soft);color:var(--theme-blue-ink);border-left-color:var(--theme-blue)}
:root[data-theme] :is(.calendar-event.has-project-color,.tg-event.has-project-color){background:color-mix(in srgb,var(--project-color) 15%,var(--surface));color:var(--ink)}
:root[data-theme] :is(.calendar-deadline,.calendar-event.pending,.tg-event.pending){background:var(--theme-gold-soft);color:var(--theme-gold);border-color:var(--theme-gold)}
:root[data-theme] .month-bar.multi-day{background:var(--theme-action);color:#fff}
.tg-now,.tg-now::before{background:var(--theme-coral)}
.p-agenda-filter{background:var(--surface);padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius,10px)}
.agenda-task-tray{box-shadow:none}
.month-days .calendar-cell{min-height:138px;height:138px}
/* Projects: compact overview and a persistent support column beside the Gantt. */
.p-hero{min-height:132px;margin-bottom:18px}
.p-eyebrow{font-size:10px;margin-bottom:6px}
.p-hero h2,.p-detail-heading h2{font-size:38px;letter-spacing:-1px}
.p-hero>div>p:not(.p-eyebrow),.p-detail-heading .p-description{font-size:15px;line-height:1.5}
.p-hero .btn.primary{padding:12px 18px}
.p-overview{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card,8px);padding:18px 0;margin-bottom:18px}
.p-overview>span{font-size:13px}
.p-toolbar{margin-bottom:0;gap:12px}
.p-card{border-top-width:4px;padding:18px;gap:9px}
:root[data-theme] .p-card{border-top-color:color-mix(in srgb,var(--project-color) 55%,var(--surface))}
:root[data-theme] :is(.sidebar .nav,.bottom-nav) button.active:hover{background:var(--nav-active);color:var(--theme-accent)}
.p-folder{width:46px;height:46px}
.p-card h2{font-size:16px}
.p-card-description{font-size:13px;min-height:40px}
.p-card progress{height:7px}
:root[data-theme=dark] .p-card progress::-webkit-progress-value{background:var(--theme-blue)}
:root[data-theme=dark] .p-card progress::-moz-progress-bar{background:var(--theme-blue)}
.p-average-label{font-size:10px}
.p-detail-heading{gap:16px;margin-bottom:18px}
.p-detail-heading .p-folder{width:62px;height:62px}
.p-detail-heading .p-folder .icon{width:36px;height:36px}
.p-detail-back{margin:8px 0 16px}
.p-detail>.p-breadcrumb{display:inline-block;margin-right:20px}
.p-detail>.p-detail-back{display:inline-flex;margin:0 0 20px}
.p-meta:empty{display:none}
.p-status-badge{display:inline-block;vertical-align:middle;font:650 11px/1.5 Inter,Arial,sans-serif;letter-spacing:0;text-transform:uppercase;padding:5px 12px;margin-left:7px;border-radius:var(--radius-large,16px);background:var(--teal-soft);color:var(--teal)}
.p-summary-card:last-child button{font-size:15px;font-weight:650;color:var(--ink)}
.p-attention>p:has([data-action=p-next]),.p-attention>p:has([data-action=open]){display:none}
.p-project-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.p-summary-card{display:flex;align-items:center;gap:16px;min-width:0;min-height:104px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius,10px)}
.p-summary-card>span{display:grid;place-items:center;width:46px;height:46px;border-radius:var(--radius-card,8px);background:var(--teal-soft);color:var(--teal);flex:none}
.p-summary-card>div{display:grid;gap:5px;min-width:0;flex:1}
.p-summary-card small,.p-summary-card p{color:var(--muted);font-size:12px;margin:0}
.p-summary-card strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.p-summary-card>.p-summary-percent{width:auto;background:transparent;font-size:29px;font-weight:700;letter-spacing:-1px}
.p-summary-card>.p-summary-ring{width:64px;height:64px;background:transparent;font-size:26px}
.p-summary-ring canvas{width:64px;height:64px}
.p-gantt-name{flex-wrap:nowrap}
.p-gantt-name>.p-task-drag-handle{flex:0 0 18px;min-width:18px;width:18px}
.p-gantt-name>span:not(.p-task-drag-handle){flex:1;min-width:0}
.p-gantt-name small{display:none}
.p-summary-card progress{width:100%;height:6px;appearance:none;border:0;border-radius:var(--radius-card,8px);overflow:hidden}
.p-summary-card progress::-webkit-progress-bar{background:var(--surface-hover)}
.p-summary-card progress::-webkit-progress-value{background:var(--theme-action)}
.p-summary-card progress::-moz-progress-bar{background:var(--theme-action)}
:root[data-theme=dark] .p-summary-card progress::-webkit-progress-value{background:var(--theme-blue)}
:root[data-theme=dark] .p-summary-card progress::-moz-progress-bar{background:var(--theme-blue)}
.p-summary-card button{padding:0;min-height:0;justify-content:flex-start;text-align:left}
.p-summary-counts{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--muted)}
.p-context-actions{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:16px}
.p-layout-tabs>button{display:inline-flex;align-items:center;gap:8px}
.p-detail-grid{grid-template-columns:minmax(0,2.5fr) minmax(250px,1fr);gap:16px}
.p-detail-gantt{grid-template-columns:minmax(0,3fr) minmax(250px,1fr)}
.p-detail-gantt .p-project-aside{grid-template-columns:1fr;gap:14px}
.p-gantt-task-controls{position:relative;font-size:12px;display:block;padding:0 0 10px;border-bottom:1px solid var(--line);margin-bottom:10px}
.p-gantt-task-controls>summary{cursor:pointer;color:var(--teal);padding:4px 0}
.p-gantt-task-controls[open] .panel-header{margin-top:12px}
.p-detail-gantt .p-project-filters{padding:8px 10px;box-shadow:none;margin:8px 0}
.p-detail-gantt .p-project-filters .btn{min-height:34px;font-size:12px;padding:5px 8px}
.p-detail-gantt .p-section-drag-hint{display:none}
.p-gantt-help{font-size:12px;color:var(--muted)}
.p-gantt-help>summary{cursor:pointer;padding:8px 0}
.p-gantt-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:12px 0 4px}
.p-gantt-legend>span{display:flex;align-items:center;gap:5px}
.p-gantt-legend .icon{width:14px;height:14px}
.p-gantt-legend>span:first-child .icon{color:var(--theme-blue)}
.p-gantt-legend>span:nth-child(2) .icon{color:var(--theme-gold)}
.p-gantt-legend i{width:15px;height:7px;border-radius:var(--radius-indicator,2px);background:var(--theme-violet)}
.p-gantt-legend>span:last-child i{width:9px;height:9px;border-radius:var(--radius-circle,50%);background:var(--muted)}
.p-gantt-month{position:sticky;left:0;width:100%;padding:10px 14px;font-size:13px;font-weight:650;border-bottom:1px solid var(--line);background:var(--surface)}
.p-gantt-header .p-gantt-track>span{display:grid;gap:2px;padding:8px 0}
.p-gantt-header .p-gantt-track>span>small{font-size:9px;color:var(--muted)}
.p-tasks-panel,.p-side-panel{padding:18px}
.p-tasks-panel .panel-header h2,.p-side-panel h2{font:650 18px/1.4 Inter,Arial,sans-serif;letter-spacing:-.3px}
.p-section{border:1px solid var(--line);padding:0;border-radius:var(--radius-card,8px);background:var(--surface);margin-top:14px}
.p-section>summary{background:var(--theme-blue-soft);padding:10px 14px;border-radius:var(--radius-card,8px);color:var(--ink)}
.p-section-tools{padding:8px 12px;margin:0;border-bottom:1px solid var(--line)}
.p-section>.kanban{padding:16px 14px;margin:0}
.p-section>.p-kanban-tools{margin:0 14px;padding:12px 0}
.p-section>.helper{margin:0;padding:16px 14px;line-height:1.6}
.p-section .kanban-column>.helper{margin:14px 0 0;line-height:1.6}
.p-task-entry{padding:4px 12px;display:grid;grid-template-columns:22px minmax(0,1fr) 30px;gap:6px;align-items:center;position:relative}
.p-task-entry>.p-task-drag-handle{grid-column:1;grid-row:1}
.p-task-entry>.task-row{grid-column:2;grid-row:1;min-width:0;border:0}
.p-task-entry .task-project-column{display:none}
.p-task-entry>.p-task-options{grid-column:3;grid-row:1}
.p-task-tools{padding:12px;gap:8px}
.p-task-options{position:relative;font-size:12px}
.p-task-options>summary{display:grid;place-items:center;width:30px;height:34px;cursor:pointer;color:var(--teal);border-radius:var(--radius-control,6px);list-style:none}
.p-task-options>summary::-webkit-details-marker{display:none}
.p-task-options>summary>.icon{width:19px;height:19px}
.p-task-options[open]>summary{background:var(--teal-soft)}
.p-task-options[open]>.p-task-tools{position:absolute;z-index:12;right:0;top:38px;width:min(300px,75vw);margin:0;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);box-shadow:0 10px 28px #0003}
.p-task-options .check-field{padding:0}.p-task-options .p-task-tools select{max-width:180px}
.p-task-tools select{min-height:30px}
.p-task-tools>.select-icon-wrap{max-width:165px}
.p-completed{margin:12px}
.p-item-icon{background:var(--lilac);color:var(--lilac-ink)}
.p-side-panel h2{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.p-side-panel h2>.icon{padding:5px;width:31px;height:31px;border-radius:var(--radius-control,6px);background:var(--lilac);color:var(--lilac-ink)}
.p-side-panel h2>.icon-calendar-event{background:var(--theme-blue-soft);color:var(--theme-blue)}
.p-side-panel h2>.icon-flag{background:var(--theme-gold-soft);color:var(--theme-gold)}
.p-event-date{background:var(--theme-blue-soft);color:var(--theme-blue-ink)}
.p-gantt-controls .btn{min-height:36px}
.p-gantt-row{min-height:50px}
.p-gantt-row{--gantt-color:var(--theme-accent)}
:root[data-theme=dark] .p-gantt-row{--gantt-color:var(--theme-accent)}
:root[data-theme=dark] .p-gantt-board{--board-bar-ink:var(--theme-canvas)}
:root[data-theme=dark] .p-gantt-readout{background:var(--surface);color:var(--ink);border-color:var(--theme-control-line);box-shadow:var(--theme-popover-shadow)}
:root[data-theme] .p-gantt-row[data-gantt-section="1"]{--gantt-color:var(--theme-violet)}
:root[data-theme] .p-gantt-row[data-gantt-section="2"]{--gantt-color:var(--theme-blue)}
:root[data-theme] :is(.p-gantt-group>summary,.p-section>summary){background:var(--surface-hover)}
.p-gantt-bar{height:20px;top:15px;border-radius:var(--radius-small,4px)}
.p-gantt-bar{background:color-mix(in srgb,var(--gantt-color) 18%,var(--surface));border-color:var(--gantt-color)}
:root[data-theme] .p-gantt-fill{background:color-mix(in srgb,var(--gantt-color) 50%,var(--surface))}
.p-gantt-bar.is-late{--gantt-color:var(--theme-coral)}
.p-gantt-bar.is-done{--gantt-color:var(--theme-green)}
.p-gantt-header .p-gantt-track>span{font-size:11px}
.p-gantt-group>summary{background:var(--theme-blue-soft);color:var(--ink)}
.p-gantt-group>.helper{margin:0;padding:14px;line-height:1.6}
.p-gantt-bar.is-done{background:var(--theme-green-soft);border-color:var(--theme-green)}
.p-gantt-bar.is-late{background:var(--danger-surface);border-color:var(--danger-ink)}
.p-gantt-bar.is-milestone{color:var(--theme-gold);background:var(--theme-gold-soft);border-color:var(--theme-gold)}
.p-gantt-bar.is-event{color:var(--theme-blue);background:var(--theme-blue-soft);border-color:var(--theme-blue)}
.p-project-form{grid-template-columns:1fr 1fr;padding:22px;gap:16px 20px}
.p-project-form>:is(h2,.fields-two,.p-palette,.p-completion-choice,.helper,.project-actions){grid-column:1/-1}
.p-project-form>label:has([name=description]){grid-row:2/4;grid-column:2}
.p-project-form>label:has([name=result]){grid-column:1}
.p-project-form>label:has([name=description]) textarea{height:100%;min-height:120px;resize:vertical}
.p-project-form>.fields-two:first-of-type{grid-column:1}
/* Settings and review retain full functionality within the reference hierarchy. */
.settings-sections{max-width:none;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;align-items:start}
.settings-sections>.settings-heading{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px}
.settings-sections>.settings-form{grid-row:span 2;min-width:0}
.settings-sections .panel h2{font-size:17px}
.settings-sections .panel h3{font-size:15px}
.settings-save{font-size:12px;gap:12px;align-items:center;flex-wrap:wrap}
.capacity-fields{gap:8px}
:root[data-theme] .settings-workspace input[data-import-file]{display:block;width:100%;min-width:0;max-width:100%;height:auto;min-height:50px;padding:5px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--theme-input);color:var(--muted);font:400 13px/1.4 var(--font-body);cursor:pointer}
:root[data-theme] .settings-workspace input[data-import-file]::file-selector-button{min-height:38px;padding:8px 14px;margin-right:12px;border:1px solid var(--theme-action);border-radius:var(--radius-control,6px);background:var(--theme-action);color:var(--theme-action-ink);font:600 13px/1.4 var(--font-body);cursor:pointer}
:root[data-theme] .settings-workspace input[data-import-file]:not(:disabled):hover::file-selector-button{background:color-mix(in srgb,var(--theme-action) 88%,#000);border-color:color-mix(in srgb,var(--theme-action) 88%,#000)}
:root[data-theme] .settings-workspace input[data-import-file]:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
:root[data-theme] .settings-workspace input[data-import-file]:disabled,:root[data-theme] .settings-workspace input[data-import-file]:disabled::file-selector-button{cursor:not-allowed}
@media(max-width:700px){:root[data-theme] .settings-workspace input[data-import-file]::file-selector-button{min-height:44px}}
:root[data-theme=dark] .idea-capture-icon{background:var(--theme-gold-soft);color:var(--theme-gold)}
.weekly-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius,10px);gap:8px;margin-bottom:18px}
.weekly-steps button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;border:0;position:relative;padding:4px;color:var(--muted)}
.review-step-number{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:var(--radius-circle,50%);background:var(--surface);color:var(--muted);font-weight:650}
.weekly-steps button.active{background:transparent;color:var(--teal)}
.weekly-steps button.active .review-step-number{background:var(--theme-action);border-color:var(--theme-action);color:#fff}
.weekly-panel{padding:24px;min-height:340px}
.weekly-panel{display:flex;flex-direction:column;min-height:55vh}
.weekly-panel .review-next{margin-top:auto;padding-top:24px;width:100%;flex-wrap:wrap}
.weekly-panel .review-next>[data-action=review-cancel]{margin-right:auto}
.weekly-panel>h2{display:flex;align-items:center;gap:12px}
.weekly-panel>h2>.icon{width:40px;height:40px;padding:9px;border-radius:var(--radius-card,8px);background:var(--lilac);color:var(--lilac-ink)}
.weekly-panel>.inbox-row>.icon{background:var(--lilac);color:var(--lilac-ink);padding:7px;width:34px;height:34px;border-radius:var(--radius-control,6px)}
.weekly-steps button:not(:last-child)::after{content:'';position:absolute;height:1px;background:var(--line);width:calc(100% - 30px);left:calc(50% + 16px);top:18px}
.weekly-panel.review-conclusion{text-align:center;align-items:center}
.weekly-panel.review-conclusion>h2{flex-direction:column;font:700 25px/1.3 Georgia,serif}
.weekly-panel.review-conclusion>h2>.icon{width:60px;height:60px;padding:14px;border-radius:var(--radius-circle,50%);background:var(--teal-soft);color:var(--teal)}
.weekly-panel.review-conclusion .review-stats{width:100%;text-align:left}
.weekly-panel.review-conclusion .review-next{align-self:stretch}
.p-review article{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:8px 20px;align-items:center}
.p-review h3{display:flex;align-items:center;gap:10px}
.p-review article>p{grid-column:1;font-size:12px;margin:0;color:var(--muted)}
.p-review article>.field{grid-column:2;grid-row:1/4}
.p-review article progress{width:75%;height:5px;grid-column:1;accent-color:var(--teal)}
.weekly-panel>h2{font-size:19px}
.weekly-panel>p{color:var(--muted);font-size:13px}
.p-review article{background:var(--surface);padding:16px}
.shortcut-list>div{align-items:center;padding:14px 0}
.shortcut-list dt{order:2;min-width:0;margin-left:auto}
.shortcut-list dd{font-size:14px}
.shortcut-list dd{display:flex;align-items:center;gap:18px;margin:0}
.shortcut-list dd>.icon{background:var(--teal-soft);color:var(--teal);width:35px;height:35px;padding:8px;border-radius:var(--radius-control,6px)}
.main[data-view=help] .panel>h2{display:none}
.main[data-view=trash] .page-tools{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card,8px);padding:15px 20px;justify-content:space-between}
.main[data-view=trash] .page-tools h2{font-size:16px;margin:0}
.main[data-view=trash] .page-tools h2>.icon{color:var(--theme-coral);margin-right:10px}
kbd{background:var(--theme-input);color:var(--muted);box-shadow:0 2px 0 var(--line)}
/* Statistics use the same tokens in both the HTML cards and canvas charts. */
:root[data-theme] .statistics-page{--stats-surface:var(--surface);--stats-edge:var(--line);--stats-muted:var(--muted);--stats-ink:var(--ink);--stats-track:var(--surface-hover);--stats-accent:var(--teal)}
/* Editors and utility dialogs: separate the overlay, panel and editable surface. */
:root[data-theme] dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-dialog,12px);box-shadow:0 24px 80px #0005}
:root[data-theme] dialog{box-shadow:var(--theme-dialog-shadow)}
.p-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:0;overflow-y:auto}
.p-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid var(--line);background:var(--surface)}
.p-dialog-head h2{font:700 25px/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.5px;margin:0}
.stats-items-dialog{width:min(1000px,calc(100% - 32px))}
.stats-items .p-table-scroll{border:0;margin:0 0 18px}
.stats-items table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
.stats-items :is(th,td){padding:13px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.stats-items th{background:var(--theme-input);color:var(--muted);font-weight:550}
.stats-items td:first-child{white-space:normal;min-width:210px}
.stats-items td .text-btn{font-size:13px;justify-content:flex-start;text-align:left}
.stats-items td .overdue{color:var(--theme-coral);font-weight:650}
:root[data-theme] .p-dialog>.panel,.p-dialog .p-inline-form{border:0;border-radius:0;box-shadow:none;margin:0;padding:22px;background:var(--surface)}
.p-dialog form>h2,.p-dialog form>h3{display:none}
.p-dialog form{display:grid;gap:14px}
.p-dialog .filter-panel{margin:0;padding:12px;box-shadow:none}
.p-dialog .p-associate-results{margin:0;max-height:38dvh}
.p-dialog .check-field{align-items:flex-start;padding:9px;border:1px solid var(--line);border-radius:var(--radius-control,6px);background:var(--theme-input)}
.p-dialog .p-inline-form .check-field{align-items:center}
.p-dialog .p-delete-impact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;background:var(--theme-input);border:1px solid var(--line);border-radius:var(--radius-card,8px)}
.p-delete-impact>span{display:grid;justify-items:center;gap:4px;font-size:11px;color:var(--muted)}
.p-delete-impact strong{font-size:20px;color:var(--ink)}
.p-delete-impact .icon{color:var(--teal)}
.p-dialog .p-delete-choice{display:flex;gap:12px;padding:13px;border:1px solid var(--line);border-radius:var(--radius-card,8px);align-items:flex-start;cursor:pointer}
.p-delete-choice input{margin-top:5px}
.p-delete-choice:has(input:checked){border-color:var(--teal);background:var(--teal-soft)}
.p-delete-choice strong,.p-delete-choice small{display:block}
.p-delete-choice strong{font-size:14px}.p-delete-choice small{font-size:12px;color:var(--muted);margin-top:3px}
.p-delete-choices{border:0;margin:0;padding:0;display:grid;gap:8px}
.p-delete-choices legend{font-size:13px;font-weight:650;padding:0 0 10px}
dialog::backdrop{background:#17233666;backdrop-filter:blur(2px)}
:root[data-theme] :is(dialog,.pl-dialog,.mail-dialog,.co-dialog)::backdrop{background:var(--theme-overlay)}
:root[data-theme] :is(.editor-head,.editor-foot){background:var(--surface);border-color:var(--line)}
.editor-head{padding:18px 22px}
.editor-head h2{font-size:19px}
.editor-body{padding:20px 22px;gap:18px}
.editor-foot{padding:15px 22px}
#editor{scroll-padding-block:90px}
#editor :is(input,select,textarea,[contenteditable]){scroll-margin-block:90px}
.subtask-edit{display:grid;grid-template-columns:22px minmax(0,1fr) 32px;gap:8px;align-items:center}
.subtask-edit:has(.subtask-assignee){grid-template-columns:22px minmax(0,1fr) minmax(160px,.8fr) 32px}
.subtask-edit>.subtask-title{grid-column:2;grid-row:1;width:100%;min-width:0}
.subtask-edit>.subtask-assignee{grid-column:3;grid-row:1;width:100%;min-width:0}
.subtask-edit>.icon-btn{grid-column:-2/-1;grid-row:1}
.subtask-edit>.check-field{grid-column:2/-2;grid-row:2;margin:0}
@media(max-width:600px){.subtask-edit:has(.subtask-assignee){grid-template-columns:22px minmax(0,1fr) 32px}.subtask-edit>.subtask-assignee{grid-column:2;grid-row:2}.subtask-edit>.check-field{grid-column:2;grid-row:3}}
.main[data-view=settings] #view-content>.mail-settings{margin-bottom:18px}
.mail-settings>.panel-header h2{display:flex;align-items:center;gap:8px}
.editor-advanced{background:var(--theme-input)}
.task-progress-editor{background:var(--theme-input);border-color:var(--line)}
:root[data-theme] .task-progress-editor input[type=range]{background:transparent}
.task-progress-editor input[type=range]::-webkit-slider-runnable-track{background:var(--theme-blue)}
.task-progress-editor input[type=range]::-moz-range-track{background:var(--theme-blue)}
.rich-toolbar{background:var(--theme-input);border-color:var(--line)}
.rich-editor{line-height:1.7;min-height:160px}
#editor[data-item-type=note] .editor-head h2{color:var(--theme-violet)}
#editor[data-item-type=event] .editor-head h2{color:var(--theme-blue-ink)}
#editor[data-item-type=milestone] .editor-head h2{color:var(--theme-gold)}
/* Sign in uses the supplied illustration, with real form controls. */
.login-page{padding:42px 5vw 24px}
.login-header{max-width:1200px;justify-content:flex-start}
.login-private{font-size:14px}
.login-logo{background:transparent;color:var(--theme-brand);width:46px;height:46px}
.login-logo .icon{width:43px;height:43px}
.login-layout{max-width:1360px;grid-template-columns:minmax(0,1fr) minmax(360px,1fr);gap:90px;padding:35px 0 20px}
.login-brand{font-size:27px}
.login-description{max-width:480px;font-size:19px}
.login-features{gap:24px}
.login-features strong{font-size:16px}.login-features small{font-size:14px}
.login-feature-icon{width:48px;height:48px}
.login-card .field{font-size:15px}.login-form{gap:23px}
.login-card-description{font-size:16px}
.login-footnote{border-top:1px solid var(--line);padding-top:24px;font-size:13px}
.login-footnote:has(a){border:0;padding-top:0}
.login-intro h1{font:700 56px/1.1 Georgia,'Times New Roman',serif;color:var(--ink);margin-bottom:18px}
.login-intro h1 span{color:var(--ink)}
.login-eyebrow{display:none}
.login-illustration{width:100%;max-height:230px;object-fit:contain;object-position:left bottom;display:block;margin-top:22px}
.login-card{padding:42px;border-radius:var(--radius-dialog,12px)}
.login-card-icon{display:none}
.login-card h2{font:700 44px/1.15 Georgia,'Times New Roman',serif;text-align:center}
.login-card-description{text-align:center;margin-bottom:30px}
.login-feature-icon{background:var(--teal-soft)!important;color:var(--teal)!important}
:root[data-theme=dark] .login-illustration{border-radius:var(--radius-dialog,12px)}
:root[data-theme=dark] .login-logo{color:var(--theme-brand)}
@media(min-width:701px){
  .app-shell[data-sidebar-pinned]{--sidebar-expanded:222px}
  .app-shell.ideas-shell[data-sidebar-pinned]{--sidebar-expanded:222px}
  .projects-shell:has(.p-detail) .topbar .create-wrap{display:block}
}
@media(min-width:1101px){
  .p-hero>.btn{align-self:flex-end;margin-bottom:18px}
}
@media(min-width:1101px){
  .filter-panel.task-filters.expanded{display:grid;grid-template-columns:minmax(190px,1.3fr) minmax(0,5fr);gap:12px}
  .task-filters>.filter-panel-head{grid-column:1/-1}
  .task-filters.expanded>.filter-search{margin:0}
  .filter-panel.task-filters.expanded>.filter-content{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;border:0;gap:10px}
  .task-filters>.filter-content>.filter-field{min-width:0;max-width:none}
}
@media(min-width:701px) and (max-width:1100px){
  .p-cards:not(.p-cards-list){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .p-detail-grid,.p-detail-gantt{grid-template-columns:minmax(0,1fr)}
  .p-project-aside,.p-detail-gantt .p-project-aside{grid-template-columns:repeat(3,minmax(0,1fr))}
  .p-project-summary{gap:10px}.p-summary-card{padding:14px;gap:10px}
  .p-summary-card>span{width:36px;height:36px}.p-summary-card strong{font-size:14px}
  .settings-sections{grid-template-columns:1fr 1fr}
  .topbar{flex-wrap:wrap}.heading{flex:1;min-width:0}
  .search-box{max-width:280px}
  .task-summary-heading{height:auto;margin:0 0 10px}.task-summary-heading>.task-summary-all{position:static}
}
@media(max-width:900px){
  .p-project-aside,.p-detail-gantt .p-project-aside{grid-template-columns:1fr}
  .p-project-summary{grid-template-columns:1fr}.p-summary-card{min-height:85px}
  .settings-sections{display:flex}.settings-sections>.settings-form{width:100%}
  .login-layout{gap:32px;grid-template-columns:1fr 1fr}
  .login-intro h1{font-size:44px}.login-card{padding:25px}
}
@media(max-width:700px){
  :root[data-theme] .main{margin-left:0;padding:20px 16px 110px}
  :root[data-theme] :is(.heading h1,.ideas-shell .heading h1){font-size:32px}
  :root[data-theme] :is(.heading p,.ideas-shell .heading p,.statistics-shell .heading p){font-size:14px}
  .topbar{gap:12px;margin-bottom:18px;flex-wrap:nowrap}
  .topbar .heading{min-width:0}.topbar>.search-box{display:none}
  .bottom-nav{border-top-color:var(--line);background:var(--surface)}
  .filter-panel{padding:12px}.filter-panel-actions{gap:6px}
  .filter-panel .filter-clear{font-size:12px;padding:7px 9px}
  .filter-panel.expanded .filter-content{gap:12px}
  .dashboard-summary{grid-template-columns:1fr 1fr;gap:10px}
  :root[data-theme] .dashboard-stat{min-height:112px;padding:13px;gap:10px}
  .dashboard-stat-icon{width:34px;height:34px}.dashboard-stat-icon>.icon{width:23px;height:23px}
  .dashboard-stat-copy strong{font-size:28px}.dashboard-stat-label{font-size:11px}
  .dashboard-stat-copy small{font-size:10px}
  .review-suggestion{font-size:13px;flex-wrap:wrap;padding:14px}
  .dashboard-queue,.dashboard-grid{grid-template-columns:1fr}
  .agenda-queue-row{gap:12px;padding:0 14px}.agenda-queue-row.is-overdue{gap:16px}
  .agenda-queue-time{flex-basis:58px;font-size:13px}
  .agenda-queue-header{padding:14px}.agenda-queue-header h2{font-size:18px}
  .dashboard-capture{padding:0;margin-bottom:16px}
  .today-dashboard{display:flex;flex-direction:column}
  .today-dashboard>.dashboard-capture{order:-1}
  .task-state-counts{gap:8px}.task-state-count{padding:12px 10px;min-height:90px;gap:8px;flex-direction:column;align-items:flex-start}
  .task-state-icon{width:30px;height:30px}.task-state-icon>.icon{width:22px;height:22px}
  .task-state-copy{gap:2px;font-size:11px}:root[data-theme] .task-state-count strong{font-size:23px}
  .task-row{padding:12px 0;gap:8px}
  .task-project-column{flex-basis:100%;margin-left:32px}
  .task-order{width:100%;gap:10px}.task-order .filter-field{flex:1 1 100%;justify-content:space-between}.task-order .filter-field select{width:180px}
  .task-summary-heading{height:auto;margin:0 0 10px}.task-summary-heading>.task-summary-all{position:static}
  .kanban{display:grid;grid-template-columns:1fr;overflow:visible}.kanban-column{min-height:120px}
  .note-card{min-height:210px}.cards-grid{grid-template-columns:minmax(0,1fr)}
  .ideas-workspace{grid-template-columns:1fr}.idea-list-panel{min-height:280px}
  .idea-capture{gap:12px!important;padding:14px!important}.idea-capture-icon{width:34px;height:34px}
  .idea-capture form{flex-wrap:wrap;gap:10px}.idea-capture .btn{width:100%;min-width:0}
  .p-hero{min-height:0;gap:14px;flex-wrap:wrap;padding-top:0}
  .p-hero h2,.p-detail-heading h2{font-size:30px}
  .p-overview{grid-template-columns:1fr;gap:12px;padding:14px}
  .p-overview>span{border:0;padding:0!important;font-size:12px}
  .p-overview .icon{width:21px;height:21px}
  .p-detail-heading{gap:12px;flex-wrap:wrap}.p-detail-heading .p-detail-actions{width:100%;justify-content:flex-end}
  .p-detail>.p-breadcrumb{display:block;margin:0 0 8px}.p-detail>.p-detail-back{display:flex;margin:0 0 16px}
  .p-detail-heading .p-folder{width:48px;height:48px}
  .p-detail-heading>div:not(.p-detail-actions){flex-basis:calc(100% - 62px)}
  .p-cards{grid-template-columns:1fr}.p-cards-list .p-card{display:flex}
  .p-project-summary{grid-template-columns:1fr}.p-context-actions .btn{flex:1 1 45%}
  .p-tasks-panel,.p-side-panel{padding:14px}.p-tasks-panel>.panel-header{align-items:flex-start;flex-wrap:wrap}
  .p-task-filters{grid-template-columns:1fr 1fr}.p-task-entry{padding:5px 10px}
  .p-project-form{grid-template-columns:1fr;padding:16px}
  .p-project-form>*{grid-column:1!important;grid-row:auto!important}
  .p-project-form>.fields-two{grid-template-columns:1fr}
  .p-gantt-controls{gap:8px}.p-gantt-controls .btn{flex:1 1 40%}
  .p-gantt-controls .check-field{width:100%;font-size:12px}
  .p-gantt-name{width:180px;min-width:180px;font-size:11px}
  .p-gantt-group>summary{width:180px}.p-gantt-row{min-height:48px}
  .weekly-steps{padding:12px 6px;gap:2px}.weekly-steps button{font-size:10px;padding:3px 0}
  .weekly-steps button:not(:last-child)::after{top:16px}
  .p-review article{grid-template-columns:1fr}.p-review article>.field{grid-column:1;grid-row:auto}
  .review-step-number{width:25px;height:25px}.weekly-panel{padding:18px;min-height:300px}
  .weekly-panel .review-next>[data-action=review-complete]{flex-basis:100%}
  .settings-sections{gap:16px}.capacity-fields{gap:5px}.capacity-fields input{padding:9px 4px}
  .statistics-page .stats-main-charts,.statistics-page .stats-secondary-charts{grid-template-columns:1fr}
  #editor{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}
  .editor-head,.editor-body{padding:16px}.editor-foot{padding:12px 16px}
  .login-page{padding:25px 20px}.login-header{justify-content:center}
  .login-private{display:none}.login-layout{max-width:440px;grid-template-columns:1fr;gap:24px;padding:28px 0}
  .login-intro h1{font-size:36px}.login-card h2{font-size:29px}
  .login-illustration{display:none}.login-card{padding:25px}
}
@media(prefers-reduced-motion:reduce){.app-shell *,dialog *{scroll-behavior:auto;transition:none}:root[data-theme] .btn{transition:none}}

/* Project surfaces inherit the shared theme. */
:root[data-theme] .projects-shell .p-attention>p{display:flex;align-items:center;gap:4px}
:root[data-theme] .projects-shell .p-hero{min-height:126px;padding:10px 0 0;margin-bottom:22px}
:root[data-theme] .projects-shell .p-hero>div>p{font-size:17px;margin-bottom:12px}
:root[data-theme] .projects-shell .p-hero>.btn{align-self:flex-end;margin-bottom:10px;padding:16px 22px}
:root[data-theme] .projects-shell .p-overview{border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);padding:21px 24px;margin-bottom:22px;grid-template-columns:1fr 1fr 1.2fr}
:root[data-theme] .projects-shell .p-overview>span{padding:0 28px;font-size:14px}
:root[data-theme] .projects-shell .p-overview>span:first-child{padding-left:0}
:root[data-theme] .projects-shell .p-overview .icon{width:26px;height:26px;margin-right:5px}
.p-overview-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.p-overview-tools .p-search{flex:1 1 220px;min-height:48px}
.p-overview-tools .segmented{flex:none}
.p-overview-tools .segmented button{font-size:12px;min-height:38px;display:flex;gap:7px;align-items:center}
.p-overview-tools .segmented .icon{width:18px;height:18px}
.p-overview-tools .p-sort{flex:none;gap:10px;white-space:nowrap}
.p-overview-tools .p-sort select{font-size:12px;max-width:145px}
.p-overview-clear{margin-left:auto}
:root[data-theme] .projects-shell .p-cards{gap:16px}
:root[data-theme] .projects-shell .p-card{padding:20px 22px;border-top-width:7px;border-radius:var(--radius,10px);gap:10px;min-height:280px;box-shadow:none;background:var(--surface)}
:root[data-theme=dark] .projects-shell .p-card{border-top-color:var(--project-dark-color,var(--project-color));background:var(--surface)}
:root[data-theme=dark] .projects-shell .p-folder{color:color-mix(in srgb,var(--project-dark-color,var(--project-color)) 85%,white);background:color-mix(in srgb,var(--project-dark-color,var(--project-color)) 22%,var(--surface))}
:root[data-theme] .projects-shell :is(.p-next,.p-attention,.p-detail-back,.p-side-panel) .text-btn{color:var(--theme-accent)!important}
:root[data-theme] .projects-shell :is(.p-card,.p-summary-strip,.p-list-progress){--progress-empty:var(--line)}
:root[data-theme=dark] .projects-shell :is(.p-card,.p-summary-strip,.p-list-progress){--progress-empty:var(--line)}
:root[data-theme] .projects-shell .p-card-head{gap:16px}
:root[data-theme] .projects-shell .p-card .p-folder{width:50px;height:50px}
:root[data-theme] .projects-shell .p-card h2{font-size:18px;font-weight:650;letter-spacing:-.35px}
:root[data-theme] .projects-shell .p-card-head small{font-size:10px;margin:3px 0 6px}
:root[data-theme] .projects-shell .p-card-description{font-size:14px;min-height:22px;line-height:1.5;-webkit-line-clamp:2}
.p-progress-label>span:last-child{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
.p-progress-label>span:last-child strong{font-size:12px;color:var(--ink)}
:root[data-theme] .projects-shell .p-project-card-progress{gap:0}
:root[data-theme] .projects-shell .p-project-card-progress progress{height:12px;margin:8px 0 0}
:root[data-theme] .projects-shell .p-project-card-progress progress::-webkit-progress-bar{background:var(--progress-empty)}
:root[data-theme] .projects-shell .p-project-card-progress progress::-webkit-progress-value{background:var(--project-color,var(--teal))}
:root[data-theme=dark] .projects-shell .p-project-card-progress progress::-webkit-progress-value{background:var(--theme-accent)}
:root[data-theme] .projects-shell .p-next{font-size:14px;line-height:1.5}
:root[data-theme] .projects-shell .p-next strong{font-size:12px;font-weight:500;margin-bottom:4px}
.projects-shell .p-project-card-meta{display:block;margin-top:auto;min-width:0}
:root[data-theme] .projects-shell .p-card footer{padding-top:0;font-size:13px;gap:18px;margin:0}
.projects-shell .p-card footer>span+span{padding-left:18px;border-left:1px solid var(--line)}
.p-card-deadlines{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding-top:10px;font-size:11px;color:var(--muted)}
.p-card-deadlines>span{display:flex;align-items:center;gap:6px}
.p-card-deadlines .icon{width:17px;height:17px}
:root[data-theme] .projects-shell .p-activity{display:block;font-size:10px;margin-top:8px}
:root[data-theme] .projects-shell .p-cards-list .p-card{min-height:0;grid-template-columns:minmax(210px,1.2fr) minmax(180px,1fr) minmax(180px,1fr);gap:12px 24px}
.p-cards-list .p-project-card-meta{margin:0}
:root[data-theme] .projects-shell .p-detail>.p-breadcrumb{display:block;margin:0 0 18px;font-size:12px;max-width:55%;overflow-wrap:anywhere}
:root[data-theme] .projects-shell .p-detail>.p-detail-back{display:block;margin:0 0 14px}
/* A clear return action in every project layout. */
:root[data-theme] .projects-shell .p-detail .p-back-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid color-mix(in srgb,var(--theme-accent) 30%,var(--theme-line));border-radius:var(--radius-card,8px);background:var(--theme-accent-soft);color:var(--theme-accent);font-size:14px;font-weight:650;line-height:1.4;text-align:left}
:root[data-theme] .projects-shell .p-detail .p-back-button>.icon{width:20px;height:20px;flex:none}
:root[data-theme] .projects-shell .p-detail .p-back-button.btn:enabled:hover{background:color-mix(in srgb,var(--theme-accent) 14%,var(--theme-panel));border-color:var(--theme-accent)}
:root[data-theme] .projects-shell .p-detail .p-back-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
:root[data-theme] .projects-shell .p-detail-heading{gap:24px;margin:0 0 12px;padding:0;min-height:110px}
:root[data-theme] .projects-shell .p-detail-heading .p-description{font-size:16px;line-height:1.5;margin-bottom:10px}
:root[data-theme] .projects-shell .p-status-badge{display:inline-block;font-size:11px;line-height:1.5;font-weight:500;padding:3px 7px;border-radius:var(--radius-small,4px);background:var(--surface-hover);color:var(--muted)}
:root[data-theme] .projects-shell .p-summary-strip{display:grid;grid-template-columns:1.8fr 1fr 1.1fr;gap:0;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);padding:16px 20px;margin-bottom:18px}
.p-summary-strip>div{display:flex;align-items:center;gap:22px;min-width:0;padding:0 24px;border-left:1px solid var(--line)}
.p-summary-strip>div:first-child{padding-left:0;border-left:0}
.p-summary-strip .p-summary-progress>strong{font-size:38px;color:var(--teal);font-weight:700;letter-spacing:-1px}
.p-summary-strip .p-summary-progress>div{flex:1;min-width:0}
.p-summary-strip b,.p-summary-strip strong{font-size:13px;color:var(--ink)}
.p-summary-strip small{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}
.p-summary-strip .icon{width:28px;height:28px;flex:none}
.p-summary-strip progress{display:block;width:100%;height:10px;margin-top:8px;appearance:none;border:0;border-radius:var(--radius-large,16px);overflow:hidden}
.p-summary-strip progress::-webkit-progress-bar{background:var(--progress-empty)}
.p-summary-strip progress::-webkit-progress-value{background:var(--teal);border-radius:var(--radius-large,16px)}
.p-summary-strip progress::-moz-progress-bar{background:var(--teal)}
:root[data-theme=light] .projects-shell :is(.p-summary-strip,.p-list-progress) progress::-webkit-progress-value{background:#087f8c}
:root[data-theme=light] .projects-shell :is(.p-summary-strip,.p-list-progress) progress::-moz-progress-bar{background:#087f8c}
.projects-shell .p-project-aside{align-content:start}
:root[data-theme] .projects-shell .p-attention{font-size:13px;gap:12px 24px}
:root[data-theme] .projects-shell .p-context-actions{margin-bottom:16px;padding-bottom:0;border-bottom:0}
/* Project panels wrap according to the space left beside the item editor. */
:root[data-theme] .projects-shell .p-detail-grid:not(.p-detail-gantt){display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px}
:root[data-theme] .projects-shell .p-detail-grid:not(.p-detail-gantt)>.p-tasks-panel{container-name:project-tasks;container-type:inline-size;flex:1.65 1 528px;min-width:0}
:root[data-theme] .projects-shell .p-detail-grid:not(.p-detail-gantt)>.p-project-aside{flex:1 1 320px;min-width:0;max-width:100%;align-items:start;grid-template-columns:minmax(0,1fr);gap:16px}
:root[data-theme] .projects-shell .p-board-context-panels{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
:root[data-theme] .projects-shell :is(.p-tasks-panel,.p-side-panel)>.panel-header{align-items:flex-start;flex-wrap:wrap;gap:8px 12px}
:root[data-theme] .projects-shell :is(.p-tasks-panel,.p-side-panel)>.panel-header>h2{flex:1 1 auto;min-width:0}
:root[data-theme] .projects-shell :is(.p-tasks-panel,.p-side-panel)>.panel-header>button{flex:0 0 auto;max-width:100%;white-space:normal;text-align:left}
@container project-tasks (max-width:520px){
  .projects-shell .p-list-head{display:none}
  :root[data-theme] .projects-shell .p-tasks-panel .p-list-row{grid-template-columns:20px minmax(0,1fr) 62px;gap:8px;padding:14px 0}
  .projects-shell .p-list-row>.task-open{grid-column:2/4}
  .projects-shell .p-list-row>.pill{grid-column:2;grid-row:2;justify-self:start}
  .projects-shell .p-list-row>.p-list-deadline{grid-column:2;grid-row:3;font-size:12px}
  .projects-shell .p-list-row>.p-list-progress{grid-column:3;grid-row:2/4;flex-direction:column;gap:6px;align-items:stretch}
  .projects-shell .p-list-row>.entry-details{grid-column:1/-1}
}
@container project-tasks (max-width:300px){
  :root[data-theme] .projects-shell .p-tasks-panel .p-list-row{grid-template-columns:20px minmax(0,1fr)}
  .projects-shell .p-tasks-panel .p-list-row>.task-open{grid-column:2}
  .projects-shell .p-tasks-panel .p-list-row>.p-list-progress{grid-column:2;grid-row:4;flex-direction:row;align-items:center}
}


:root[data-theme] .projects-shell :is(.p-tasks-panel,.p-side-panel){padding:20px;border-radius:var(--radius-card,8px);box-shadow:none}
/* Shared project/task view switcher, separate from view tools and content. */
:root[data-theme] :is(.p-project-view-nav,.task-view-nav){container-name:workspace-views;container-type:inline-size;position:sticky;top:12px;z-index:8;display:flex;align-items:center;min-width:0;padding:8px;margin:0 0 20px;border:1px solid var(--theme-line);border-radius:var(--radius,10px);background:var(--theme-panel);box-shadow:var(--theme-popover-shadow)}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:min(100%,520px);max-width:100%;margin:0;padding:0;background:transparent;border:0}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:10px 12px;border:0;border-radius:var(--radius-control,6px);background:transparent;color:var(--theme-muted);font-size:14px;font-weight:600;line-height:1.4}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button>.icon{width:18px;height:18px;flex:none}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button[aria-pressed=true]{background:var(--theme-accent-soft);color:var(--theme-accent)}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button:enabled:hover{background:var(--theme-hover);color:var(--theme-ink)}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button[aria-pressed=true]:hover{background:var(--theme-accent-soft);color:var(--theme-accent)}
:root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
@media(max-width:700px){
  :root[data-theme] :is(.p-project-view-nav,.task-view-nav){top:6px;padding:6px;margin-bottom:16px}
  :root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs){width:100%}
}
@container workspace-views (max-width:520px){
  :root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button{flex-direction:column;gap:4px;min-height:58px;padding:6px 4px;font-size:12px}
}
@container workspace-views (max-width:300px){
  :root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs){grid-template-columns:repeat(2,minmax(0,1fr))}
  :root[data-theme] :is(.p-project-view-nav,.task-view-nav) :is(.p-layout-tabs,.view-tabs)>button{flex-direction:row;gap:6px;min-height:44px}
}
.p-list-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 12px}
.p-list-controls .p-layout-tabs{order:0;margin:0;margin-right:auto}
.p-list-controls .p-project-filters{display:contents}
.p-list-controls .filter-panel-head{order:1;margin:0;padding:0;border:0}
.p-list-controls .filter-panel-head>.filter-panel-actions{display:none}
.p-list-controls .expanded .filter-panel-actions{display:flex}
.p-list-controls .filter-panel-head .filters-toggle{font-size:12px;padding:9px 10px}
.p-list-controls .filter-content{order:3;flex-basis:100%;margin-top:8px}
.p-list-controls .p-bulk-toggle{order:2}
.p-list-controls .p-task-filters{margin-bottom:0}
.p-list-head{display:grid;grid-template-columns:44px minmax(100px,1fr) 70px 112px 106px 114px;gap:10px;font-size:11px;color:var(--muted);padding:8px;border-bottom:1px solid var(--line)}
.projects-shell .p-tasks-panel:has(.p-selecting) .p-list-head{grid-template-columns:72px minmax(100px,1fr) 70px 112px 106px 114px}
:root[data-theme] .projects-shell .p-section{margin:0;padding:0;border:0;border-radius:0;position:relative;border-bottom:1px solid var(--line)}
:root[data-theme] .projects-shell .p-section>summary{padding:12px 42px 12px 10px;font-size:14px;border-bottom:1px solid var(--line);background:var(--surface-hover);border-radius:var(--radius-control,6px);list-style:none}
.projects-shell :is(.p-section,.p-completed)>summary::-webkit-details-marker{display:none}
.projects-shell .p-section-label{display:flex;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere}
.projects-shell .p-section-label>.icon{width:18px;height:18px;flex:none;color:var(--muted)}
.projects-shell .p-section-label>.p-section-chevron{width:13px;height:13px}
.projects-shell :is(.p-section,.p-completed)[open]>summary .p-section-chevron{transform:rotate(90deg)}
.p-section-menu{position:absolute;right:0;top:6px}
.p-section-menu .entry-menu-options{right:0;left:auto;min-width:180px}
.p-section-menu .p-section-tools{display:grid;padding:8px;gap:0;margin:0}
.p-section-menu .p-section-tools button{text-align:left;font-size:12px;padding:9px}
:root[data-theme] .projects-shell .p-task-entry{display:grid;grid-template-columns:16px minmax(0,1fr) auto 30px;gap:10px;padding:0 8px;border-bottom:1px solid var(--line);align-items:start;background:transparent;border-radius:0}
:root[data-theme] .projects-shell .p-task-entry:last-child{border-bottom:0}
.p-task-entry .p-task-drag-handle{padding:0;margin:17px 0 0;min-width:16px;width:16px;color:var(--muted)}
.p-task-entry .p-task-drag-handle .icon{width:15px;height:18px}
:root[data-theme] .projects-shell .p-list-row{display:grid;grid-template-columns:18px minmax(100px,1fr) 70px 112px 106px;gap:10px;align-items:center;padding:11px 0;min-height:48px;background:transparent}
.projects-shell .p-list-row>.task-open{padding:0;min-width:0;min-height:0}
.projects-shell .p-task-entry input[type=checkbox]{width:16px;height:16px;min-width:16px;margin:0}
.p-list-row .entry-copy{min-width:0}
.p-list-row .entry-copy>strong{font-size:14px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.p-list-row .entry-copy>small{font-size:11px;color:var(--muted)}
.p-list-row>.pill{justify-self:start;min-width:62px;text-align:center;font-size:12px;padding:5px 9px;line-height:1.3;border-radius:var(--radius-pill,999px)}
.p-list-deadline{font-size:11px;line-height:1.4;color:var(--muted)}
.p-list-deadline small{display:block;font-size:10px}
.p-list-deadline.overdue{color:var(--danger-ink)}
.p-list-progress{display:flex;align-items:center;gap:9px;font-size:11px}
.p-list-progress strong{font-weight:600;min-width:28px}
.p-list-progress progress{width:100%;min-width:40px;appearance:none;height:9px;border:0;border-radius:var(--radius,10px);overflow:hidden}
.p-list-progress progress::-webkit-progress-bar{background:var(--progress-empty)}
.p-list-progress progress::-webkit-progress-value{background:var(--teal);border-radius:var(--radius,10px)}
.p-list-progress progress::-moz-progress-bar{background:var(--teal)}
.p-list-row>.entry-details{grid-column:1/-1;min-width:0}
.p-task-entry>.p-task-options{margin-top:9px}
.p-task-entry .p-task-options>summary{padding:5px;min-height:32px;width:30px}
.p-task-entry .p-task-tools{display:grid;gap:8px;padding:12px;min-width:200px}
.projects-shell .p-task-tools>.check-field{display:flex;align-items:center;gap:9px;font-size:12px;min-height:36px}
.projects-shell .p-task-tools>.btn{width:100%;min-height:36px;font-size:12px;justify-content:flex-start;gap:9px}
:root[data-theme] .projects-shell .p-task-entry.p-selecting{grid-template-columns:16px 18px minmax(0,1fr) auto 30px}
.p-task-entry.p-selecting>input{margin-top:18px}
.projects-shell .p-task-entry.p-selecting>.task-row{grid-column:3}
.projects-shell .p-task-entry.p-selecting>.p-task-edit{grid-column:4}
.projects-shell .p-task-entry.p-selecting>.p-task-options{grid-column:5}
.projects-shell .p-task-entry.p-selecting>input{grid-column:2;grid-row:1;margin-top:16px}
.projects-shell .p-completed>summary{padding:12px 10px;font-size:13px;font-weight:500;list-style:none}
.projects-shell .p-completed{margin:0}
.projects-shell :is(.p-tasks-panel,.p-side-panel) .panel-header h2{display:flex;align-items:center;gap:9px}
.projects-shell :is(.p-tasks-panel,.p-side-panel) .panel-header h2>.icon{width:24px;height:24px;flex:none;color:var(--teal);background:none;padding:0;border-radius:0}
.projects-shell .p-item-icon{color:var(--teal);background:var(--teal-soft)}
.projects-shell .p-hero h2{display:flex;align-items:center;gap:14px}
.projects-shell .p-hero h2>.icon{width:35px;height:35px;flex:none;color:var(--teal)}
.projects-shell .p-overview-tools .segmented,.projects-shell .p-list-controls .segmented{padding:4px;border-radius:var(--radius-card,8px);background:var(--surface-hover);gap:4px}
.projects-shell .p-overview-tools .p-search{flex:1 1 250px;max-width:390px}
.projects-shell .p-status-badge{margin-left:0;text-transform:none}
.projects-shell .p-list-row .pill.medium{background:var(--theme-violet-soft);color:var(--theme-violet)}
.projects-shell .p-events-details{margin-top:12px;color:var(--muted);font-size:11px}
.projects-shell .p-events-details>summary{cursor:pointer;padding:6px 0}
.projects-shell .p-events-details[open]>.helper{margin:10px 0}
.projects-shell .p-events-details .p-event-history{margin:8px 0;padding:8px 0}
.p-milestones-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:25px 16px 12px;color:var(--muted)}
.p-milestones-empty>.icon{width:30px;height:30px}
.p-milestones-empty p{font-size:13px;margin:0}
.p-milestones-empty small{font-size:12px;line-height:1.5;max-width:250px}
@media(max-width:1200px){
  :root[data-theme] .projects-shell .p-cards:not(.p-cards-list){grid-template-columns:repeat(2,minmax(0,1fr))}
  .p-overview-tools{gap:10px}.p-overview-tools .p-search{flex-basis:100%}
  :root[data-theme] .projects-shell .p-detail-grid:not(.p-detail-gantt){grid-template-columns:minmax(0,1fr)}
  .p-project-aside{grid-template-columns:repeat(3,minmax(0,1fr))}
  .p-summary-strip>div{padding:0 16px;gap:12px}
}
@media(max-width:900px){
  :root[data-theme] .projects-shell .p-cards:not(.p-cards-list){grid-template-columns:minmax(0,1fr)}
  :root[data-theme] .projects-shell .p-cards-list{grid-template-columns:1fr}
  :root[data-theme] .projects-shell .p-cards-list .p-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .p-project-aside{grid-template-columns:1fr}
  .p-summary-strip .p-summary-progress>strong{font-size:30px}
}
@media(min-width:701px) and (max-width:1100px){
  :root[data-theme] .projects-shell .p-overview{grid-template-columns:1fr;gap:14px;padding:18px}
  :root[data-theme] .projects-shell .p-overview>span{padding:0;border:0;min-width:0}
  .projects-shell .p-overview>span>strong{white-space:nowrap}
  :root[data-theme] .projects-shell .p-summary-strip{grid-template-columns:1fr;gap:16px}
  .projects-shell .p-summary-strip>div{padding:14px 0 0;border-left:0;border-top:1px solid var(--line)}
  .projects-shell .p-summary-strip>div:first-child{padding:0;border-top:0}
  :root[data-theme] .projects-shell .p-detail>.p-breadcrumb{max-width:100%}
}
@media(max-width:900px){
  :root[data-theme] .projects-shell .p-hero{min-height:0;padding:0;margin:0 0 16px}
  :root[data-theme] .projects-shell .p-hero>div>p{font-size:14px}
  :root[data-theme] .projects-shell .p-hero>.btn{margin:0;min-height:44px}
  :root[data-theme] .projects-shell .p-overview{grid-template-columns:1fr;padding:16px;gap:14px}
  :root[data-theme] .projects-shell .p-overview>span{padding:0;border:0;font-size:13px}
  .p-overview-tools .segmented{max-width:100%;flex-wrap:wrap}
  .p-overview-tools .segmented button{min-height:44px;font-size:11px}
  .p-overview-tools .p-sort{flex:1}.p-overview-tools .p-sort select{max-width:140px}
  :root[data-theme] .projects-shell .p-cards:not(.p-cards-list){grid-template-columns:minmax(0,1fr)}
  :root[data-theme] .projects-shell .p-cards-list .p-card{display:flex}
  :root[data-theme] .projects-shell .p-card{padding:18px;min-height:260px}
  :root[data-theme] .projects-shell .p-detail>.p-breadcrumb{max-width:100%;margin-bottom:12px}
  :root[data-theme] .projects-shell .p-detail>.p-detail-back{margin-bottom:18px}
  :root[data-theme] .projects-shell .p-detail-heading{gap:12px;min-height:0;flex-wrap:wrap}
  :root[data-theme] .projects-shell .p-detail-heading .p-folder{width:48px;height:48px}
  :root[data-theme] .projects-shell .p-detail-heading .p-folder .icon{width:30px;height:30px}
  :root[data-theme] .projects-shell .p-detail-heading .p-description{font-size:14px}
  :root[data-theme] .projects-shell .p-summary-strip{grid-template-columns:1fr;padding:16px;gap:16px}
  .p-summary-strip>div{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;gap:16px}
  .p-summary-strip>div:first-child{border-top:0;padding:0}
  :root[data-theme] .projects-shell :is(.p-tasks-panel,.p-side-panel){padding:14px}
  .p-list-controls{gap:8px}.p-list-controls .filter-panel-head{margin-left:auto}
  .p-list-controls .p-bulk-toggle{min-height:44px}
  .p-list-head{display:none}
  :root[data-theme] .projects-shell .p-list-row{grid-template-columns:20px minmax(0,1fr) 62px;gap:8px;padding:14px 0}
  .p-list-row>.task-open{grid-column:2/4}
  .p-list-row>.pill{grid-column:2;grid-row:2;justify-self:start}
  .p-list-row>.p-list-deadline{grid-column:2;grid-row:3;font-size:12px}
  .p-list-row>.p-list-progress{grid-column:3;grid-row:2/4;flex-direction:column;gap:6px;align-items:stretch}
  .p-list-row>.entry-details{grid-column:1/-1}
  .p-task-entry .p-task-options>summary{min-height:44px}
  .p-task-entry .p-task-tools{max-width:calc(100vw - 70px);right:0}
  .p-list-controls .p-task-filters{grid-template-columns:1fr 1fr}
}

/* Shared hierarchy and controls across all workspaces. */
:root[data-theme] :is(.co-content>h3,.co-content>div>h3,.co-two>div>h3,.co-two>aside>h3,.co-two>aside>form>h3,.settings-form h3,.p-side-panel h3,.panel:not(.pl-backlog)>h3,.idea-source-heading h3,.entry-description>h3,.entry-subtasks>h3){font:650 16px/1.4 var(--font-body);letter-spacing:-.2px}
:root[data-theme] :is(body,button,input,select,textarea){font-family:var(--font-body)}
:root[data-theme] :is(.heading h1,.p-detail-heading h2,.p-board-heading h2){font-family:var(--font-heading)}
:root[data-theme] :is(.p-detail-heading h2,.p-board-heading h2){font-size:32px;line-height:1.2;letter-spacing:-.6px}
:root[data-theme] :is(.panel>.panel-header h2,.panel>h2,.panel>header>h2,.panel>form>h2,.settings-form h2,.filter-panel-head h2,.idea-list-heading h2,.idea-organizer-heading h2,.agenda-queue-header h2,.weekly-panel>h2,.co-attention>h2,.mail-folders>h2,.mail-reading-title>h2,.stats-chart figcaption h2,.stats-panel>h2,.pl-backlog>h3,.co-task-work>header>h3){font:700 22px/1.3 var(--font-heading);letter-spacing:-.4px}
:root[data-theme] :is(.editor-head h2,.p-dialog-head h2,.pl-dialog-head h2,.co-dialog>header>h2,.mail-dialog>header>h2,.ask-head h2,.ask-form>h2){font:700 24px/1.3 var(--font-heading);letter-spacing:-.4px}
:root[data-theme] :is(.panel-header h2,.co-attention>h2,.co-task-work>header>h3)>.icon{width:22px;height:22px;flex:none}
:root[data-theme] :is(.segmented,.view-tabs,.co-tabs)>button{font:550 13px/20px var(--font-body);min-height:36px;padding:8px 12px;gap:7px;display:inline-flex;align-items:center;justify-content:center;border:0}
:root[data-theme] .co-tabs>button{background:transparent;box-shadow:none}
:root[data-theme] .co-tabs>button:is(.active,[aria-pressed=true]){background:var(--teal-soft);color:var(--teal);box-shadow:none}
:root[data-theme] :is(.segmented,.view-tabs,.co-tabs)>button>.icon{width:18px;height:18px;flex:none}
:root[data-theme] .btn.small{min-height:34px;padding:6px 10px;font:550 13px/20px var(--font-body);gap:7px}
:root[data-theme] :is(.btn,.text-btn)>.action-icon{width:18px;height:18px;flex:none}
:root[data-theme] .projects-shell .main{padding:28px 32px 36px}
@media(min-width:1101px){:root[data-theme] .projects-shell .main{padding:28px clamp(32px,4.65vw,70px) 36px}}
:root[data-theme] .projects-shell .topbar{position:static;width:auto;display:flex;justify-content:initial;gap:20px;margin:0 0 24px;padding:0}
:root[data-theme] .projects-shell .topbar .heading{position:static;width:auto;height:auto;margin-right:auto;overflow:visible;clip:auto;white-space:normal;display:block}
:root[data-theme] .projects-shell .topbar .create-wrap{display:block}
:root[data-theme] .projects-shell .p-hero{min-height:0;padding:0;margin:0 0 18px;align-items:center}
.projects-shell .p-hero>div>:is(h2,p){display:none}
:root[data-theme] .projects-shell .p-hero>.btn{margin:0;align-self:center;padding:10px 17px;min-height:44px}
@media(max-width:700px){
  :root[data-theme] .projects-shell .main{padding:20px 16px 110px}
  :root[data-theme] .projects-shell .topbar{gap:12px;margin-bottom:18px;flex-wrap:nowrap}
  :root[data-theme] .projects-shell .topbar .heading{min-width:0}
  :root[data-theme] .projects-shell .topbar .top-actions{flex-wrap:wrap;justify-content:flex-end;max-width:55%}
  :root[data-theme] :is(.p-detail-heading h2,.p-board-heading h2){font-size:28px}
  :root[data-theme] :is(.panel>.panel-header h2,.panel>h2,.panel>header>h2,.panel>form>h2,.settings-form h2,.filter-panel-head h2,.idea-list-heading h2,.idea-organizer-heading h2,.agenda-queue-header h2,.weekly-panel>h2,.co-attention>h2,.mail-folders>h2,.mail-reading-title>h2,.stats-chart figcaption h2,.stats-panel>h2,.pl-backlog>h3,.co-task-work>header>h3){font-size:20px}
  :root[data-theme] :is(.editor-head h2,.p-dialog-head h2,.pl-dialog-head h2,.co-dialog>header>h2,.mail-dialog>header>h2,.ask-head h2,.ask-form>h2){font-size:22px}
  :root[data-theme] :is(.segmented,.view-tabs,.co-tabs)>button{min-height:44px;padding:8px 10px}
}

/* Both palettes share the navigation and editor breakpoints. */
@media(max-width:1100px){
  :root[data-theme] .dashboard-summary{padding:10px 0}
  :root[data-theme] .dashboard-stat{padding:14px 20px}
  :root[data-theme] .dashboard-stat:nth-child(3){border-left:0}
  :root[data-theme] .dashboard-stat:nth-child(n+3){border-top:1px solid var(--line)}
  :root[data-theme] :is(.heading h1,.ideas-shell .heading h1){font-size:38px}
  :root[data-theme] :is(.heading p,.ideas-shell .heading p,.statistics-shell .heading p){font-size:16px}
}
@media(max-width:700px){
  :root[data-theme] .today-dashboard{gap:16px}
  :root[data-theme] .today-dashboard>:is(.dashboard-summary,.review-suggestion,.dashboard-queue,.dashboard-capture,.dashboard-grid){margin-bottom:0}
  :root[data-theme] :is(.heading h1,.ideas-shell .heading h1){font-size:32px}
  :root[data-theme] :is(.heading p,.ideas-shell .heading p,.statistics-shell .heading p){font-size:14px}
  :root[data-theme] .dashboard-summary{padding:0;gap:0}
  :root[data-theme] .dashboard-stat{padding:14px 12px;gap:10px;min-height:110px}
  :root[data-theme] .dashboard-stat-copy strong{font-size:30px}
  :root[data-theme] .dashboard-stat-label{font-size:12px}
  :root[data-theme] .dashboard-stat-copy small{font-size:11px}
  :root[data-theme] .review-suggestion>span{gap:10px}
  :root[data-theme] .review-suggestion .btn{min-height:44px}
  :root[data-theme] .dashboard-grid{grid-template-columns:1fr}
  :root[data-theme] .dashboard-grid>.panel{min-height:0;padding:18px}
  :root[data-theme] .today-dashboard .dashboard-grid .panel-header h2{font-size:24px}
  :root[data-theme] :is(.agenda-queue-card,.agenda-queue-card.overdue-card){--queue-inset:18px}
  :root[data-theme] .agenda-queue-card{min-height:0}
  :root[data-theme] .agenda-queue-header{padding:16px var(--queue-inset)}
  :root[data-theme] .today-dashboard .dashboard-queue .agenda-queue-header h2{font-size:24px}
  :root[data-theme] .agenda-queue-row{gap:10px}
  :root[data-theme] .agenda-queue-time{flex-basis:46px;font-size:12px}
  :root[data-theme] .agenda-queue-open strong{font-size:14px}
  :root[data-theme] .agenda-queue-open small{font-size:12px}
  :root[data-theme] .agenda-queue-card .agenda-queue-footer .agenda-queue-reschedule{font-size:12px;min-height:44px}
  :root[data-theme] .dashboard-capture .quick-capture input{font-size:14px}
  :root[data-theme] :is(.text-btn,.icon-btn,.entry-edit){min-height:44px}
  :root[data-theme] .bottom-nav button{min-height:44px}
  :root[data-theme] .today-dashboard .mini-grid{column-gap:0}
  :root[data-theme] .today-dashboard .mini-grid button{width:100%;min-height:44px}
  :root[data-theme] .topbar .create-wrap>.btn{min-width:0;font-size:14px;padding-inline:14px}
}

/* Keep project-panel headings and their action together without changing typography. */
:root[data-theme] .projects-shell .p-side-panel>.panel-header{align-items:center}
:root[data-theme] .projects-shell .p-side-panel>.panel-header h2{flex-wrap:nowrap;white-space:nowrap}
:root[data-theme] .projects-shell .p-side-panel>.panel-header h2>.tag{flex:none}
:root[data-theme] .projects-shell .p-side-panel>.panel-header>.text-btn{flex:none;white-space:nowrap;margin-left:auto}

/* Consistent icon/title spacing and wrapping in shared panels. */
:root[data-theme] .panel-header{min-width:0;flex-wrap:wrap;row-gap:12px}
:root[data-theme] .panel-header>:is(h2,h3,h4),
:root[data-theme] :is(.panel,.contrib-panel,.co-dialog,.mail-dialog,.pl-dialog) :is(h2,h3,h4):has(>.icon){display:flex;align-items:center;gap:10px;min-width:0;max-width:100%;overflow-wrap:anywhere}
:root[data-theme] .panel-header>:is(h2,h3,h4){margin:0}
:root[data-theme] :is(.panel-header,.contrib-panel,.co-dialog,.mail-dialog,.pl-dialog) :is(h2,h3,h4)>.icon{flex:none;align-self:center}
:root[data-theme] .panel-header>:is(.btn,.text-btn){max-width:100%;white-space:normal}
[data-mail-project],[data-mail-editor]{min-width:0}
:is([data-mail-project],[data-mail-editor])>.helper{line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.mail-linked-row{min-width:0;flex-wrap:wrap;align-items:flex-start}
.mail-linked-row>span{flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.mail-linked-row>:is(.btn,.text-btn,.icon-btn){flex:none}
.entry-workspace-header h3{display:flex;align-items:center;gap:8px}
/* Inputs without an explicit type are text fields too. */
:root[data-theme] .field input:not([type]){width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-control,6px);background:var(--surface);color:var(--ink);font:inherit;line-height:1.5}
:is(#editor,#entry-editor).editor-workspace .policy-item-fields .field{margin-top:12px}
.filter-panel.expanded .task-search-field{display:grid;align-content:start;gap:8px}
.filter-panel.expanded .task-search-field>.visually-hidden{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;font-size:12px;color:var(--muted);line-height:1.5}
/* Reflow summaries according to their available space, including a docked editor. */
.task-summary,.today-dashboard{container-type:inline-size}
@media(min-width:701px){
 @container(max-width:1260px){.task-state-counts{grid-template-columns:repeat(4,minmax(0,1fr))}}
 @container(max-width:700px){.task-state-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
@container(max-width:850px){:root[data-theme] .today-dashboard .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mail-linked-row small .text-btn{margin-inline-start:8px}
.co-dialog form+.btn{margin-top:12px}
.co-dialog>.co-discussion{margin-top:18px}
[data-co-form=time]+.helper{margin-top:12px}
.co-history>.field{margin-top:14px}
.settings-sections .panel>h2+.field{margin-top:16px}
.settings-sections .panel>.helper{margin-top:12px;line-height:1.6}
.weekly-panel>[data-action=overdue-today]{margin-bottom:12px}
.people-copy>small{display:block;margin-top:4px;line-height:1.5}
#entry-editor .editor-body>.helper+.field{margin-top:12px}
:is(.co-dialog [data-co-error],[data-co-upload-status],#entry-editor [data-contrib-error]):empty{display:none}

/* One focus surface for text fields, including icon/search composites. */
:root[data-theme] :is(input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=hidden],[type=button],[type=submit],[type=reset]),textarea,.rich-editor):focus{border-color:var(--theme-accent);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 18%,transparent)}
:root[data-theme] :is(.task-search,.p-search,.p-board-search,.search-field,.quick-capture):has(>input:focus){border-color:var(--theme-accent);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 18%,transparent)}
:root[data-theme] :is(.task-search,.p-search,.p-board-search,.search-field,.quick-capture)>input{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;border-radius:0}

/* Consistent direct editing in project rows; menus hold secondary actions. */
.p-task-entry>.p-task-edit{grid-column:3;grid-row:1;align-self:start;margin-top:7px}
:root[data-theme] .projects-shell .p-task-list-panel .p-task-entry.p-selecting{grid-template-columns:16px 20px minmax(0,1fr) auto 30px}
:root[data-theme] .projects-shell .p-task-list-panel .p-list-row>.p-list-progress:has(>.p-progress-caption){display:grid;grid-template-columns:auto minmax(30px,1fr);gap:3px 7px;padding-right:36px}
.p-task-list-panel .p-list-progress>.p-progress-caption{grid-column:1/-1}
.projects-shell .p-task-entry>.p-task-options{grid-column:4}
.p-project-aside :is(.p-item-row,.p-milestone-row).entry-line{grid-template-columns:minmax(0,1fr) minmax(0,max-content) auto}
.p-project-aside .entry-line>.entry-actions{grid-column:3;grid-row:1;justify-self:end}
.p-milestone-row .entry-line-open>span{min-width:0}
.p-milestone-row .entry-line-open>span>small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.p-milestone-row .entry-line-open>.icon{flex:none;width:20px;height:20px;color:var(--teal)}
.p-tasks-panel,.p-side-panel{container-type:inline-size}
@container(max-width:720px){
 .p-list-head{display:none}
 :root[data-theme] .projects-shell .p-list-row{grid-template-columns:20px minmax(0,1fr) 94px;gap:8px;padding:14px 0}
 .p-list-row>.task-open{grid-column:2/4}
 .p-list-row>.pill{grid-column:2;grid-row:2;justify-self:start}
 .p-list-row>.p-list-deadline{grid-column:2;grid-row:3}
 .p-list-row>.p-list-progress{grid-column:3;grid-row:2/4;flex-direction:column;gap:6px;align-items:stretch}
}
@container(max-width:480px){.p-task-edit .entry-edit span{display:none}}
@media(max-width:700px){
 .p-project-aside :is(.p-item-row,.p-milestone-row).entry-line{grid-template-columns:minmax(0,1fr) auto}
 .p-project-aside .entry-line>.entry-actions{grid-column:2}
 .p-project-aside .entry-actions .entry-edit span{display:none}
}

@container(max-width:500px){
 .p-project-aside :is(.p-item-row,.p-milestone-row).entry-line{grid-template-columns:minmax(0,1fr)}
 .p-project-aside .entry-line>.entry-actions{grid-column:1;grid-row:2}
 .p-project-aside .entry-line>.item-signals{grid-column:1;grid-row:3;max-width:100%;padding-left:54px}
 /* Keep the title across the row; put secondary tools below it. */
 :root[data-theme] .projects-shell .p-tasks-panel .p-task-entry{padding-inline:var(--entry-inset)}
 .projects-shell .p-task-entry>.p-list-row{grid-column:2/-1}
 .projects-shell .p-task-entry>.p-task-edit{grid-column:3;grid-row:2;margin:0}
 .projects-shell .p-task-entry>.p-task-options{grid-column:4;grid-row:2;margin:0}
 .projects-shell .p-task-entry.p-selecting>.p-list-row{grid-column:3/-1}
 .projects-shell .p-task-entry.p-selecting>.p-task-edit{grid-column:4}
 .projects-shell .p-task-entry.p-selecting>.p-task-options{grid-column:5}
}
.p-project-aside .entry-line-open small{overflow-wrap:anywhere}
@media(max-width:500px){
 :root[data-theme] .projects-shell .p-card-head{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px}
 .p-card-head>div:not(.p-card-actions){grid-column:1/-1;grid-row:2}
 .p-card-head>.p-card-actions{grid-column:2;grid-row:1;justify-self:end}
}
@media(max-width:380px){
 :root[data-theme] .agenda-queue-row>.agenda-queue-time{flex-basis:100%}
}

/* Information remains available in phone layouts as well as on desktop. */

/* Today: the selected overview, with the same hierarchy in both palettes. */
:root[data-theme=light] .dashboard-shell{--theme-panel:#fff;--theme-input:#fff;--theme-ink:#142035;--theme-muted:#586a85;--theme-line:#e3e6e9;--theme-hover:#eff5f4}
:root[data-theme] .dashboard-shell .main{padding:24px 28px}
:root[data-theme] .dashboard-shell .topbar{margin-bottom:12px}
:root[data-theme] .dashboard-shell .heading h1{font-size:44px;line-height:1.1;letter-spacing:-1px}
:root[data-theme] .dashboard-shell .heading p{margin-top:6px;font-size:18px;line-height:1.3}
:root[data-theme] .dashboard-shell .sidebar .brand{font-family:var(--font-heading);font-size:20px;font-weight:700}
:root[data-theme] .dashboard-shell .sidebar .nav button{font-size:16px}
:root[data-theme] .dashboard-shell .sidebar .nav button.active{background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .dashboard-shell[data-sidebar-pinned=true]{--sidebar-expanded:244px}
:root[data-theme] .dashboard-shell .today-dashboard{display:flex;flex-direction:column;gap:12px}
:root[data-theme] .dashboard-shell .today-dashboard>:is(.dashboard-summary,.review-suggestion,.dashboard-queue,.dashboard-capture,.dashboard-grid){margin:0;order:initial}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-summary{gap:14px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat{min-height:116px;padding:16px 18px;gap:18px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);box-shadow:var(--theme-shadow);align-items:flex-start}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat:enabled:hover{background:var(--surface-hover);border-color:var(--theme-accent)}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-icon{width:56px;height:56px;flex:0 0 56px;border-radius:var(--radius-dialog,12px)}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-icon>.icon{width:32px;height:32px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-copy{gap:5px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-copy strong{font-size:36px;line-height:1.05}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-label{font-size:14px;line-height:1.4}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-copy small{font-size:12px;line-height:1.45}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat.pending .dashboard-stat-label{color:var(--theme-accent)}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat.appointments :is(.dashboard-stat-label,small){color:var(--theme-blue-ink)}
:root[data-theme] .dashboard-shell .today-dashboard .review-suggestion{min-height:60px;padding:10px 18px;border:1px solid color-mix(in srgb,var(--theme-violet) 18%,var(--line));border-radius:var(--radius-card,8px);background:var(--theme-violet-soft);color:var(--theme-violet)}
:root[data-theme] .dashboard-shell .today-dashboard .review-suggestion>span{gap:14px;font-size:15px}
:root[data-theme] .dashboard-shell .today-dashboard .review-suggestion-icon{width:28px;height:28px;color:inherit}
:root[data-theme] .dashboard-shell .today-dashboard .review-suggestion .btn{min-height:36px;background:var(--surface);border-color:color-mix(in srgb,var(--theme-violet) 28%,var(--line));color:var(--theme-violet);white-space:normal}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-queue{display:grid;grid-template-columns:minmax(0,1.26fr) minmax(0,1fr);grid-template-areas:'upcoming overdue' 'upcoming important';gap:12px;align-items:start}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-queue:not(:has(>.important-card)){grid-template-areas:'upcoming overdue'}
:root[data-theme] .dashboard-shell .today-dashboard .upcoming-card{grid-area:upcoming;--queue-accent:var(--theme-accent);align-self:stretch}
:root[data-theme] .dashboard-shell .today-dashboard .upcoming-card:not(:has(.agenda-queue-row)){align-self:start}
:root[data-theme] .dashboard-shell .today-dashboard .overdue-card{grid-area:overdue;--queue-accent:var(--theme-coral)}
:root[data-theme] .dashboard-shell .today-dashboard .important-card{grid-area:important;--queue-accent:var(--theme-gold)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-card{--queue-inset:18px;--queue-line:var(--line);min-height:0;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);box-shadow:var(--theme-shadow)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header{padding:10px var(--queue-inset);gap:14px;border:0;background:var(--theme-gold-soft);color:var(--theme-gold)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header>div{min-width:0;flex:1}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header h2{font-size:24px;line-height:1.25;letter-spacing:-.4px;color:inherit}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header>.icon{width:26px;height:26px;flex:none;color:inherit}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header .agenda-queue-link{flex:none;margin-left:auto;gap:6px;font-size:12px;font-weight:500;color:inherit}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header .agenda-queue-link>.icon{width:15px;height:15px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-count{min-width:28px;min-height:24px;border-radius:var(--radius-control,6px);background:color-mix(in srgb,var(--queue-accent) 14%,var(--surface));color:var(--queue-accent);font-size:12px}
:root[data-theme] .dashboard-shell .today-dashboard .upcoming-card>.agenda-queue-header{padding-block:12px;background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .dashboard-shell .today-dashboard .upcoming-card .agenda-queue-header p{margin-top:3px;font-size:14px;color:inherit}
:root[data-theme] .dashboard-shell .today-dashboard .upcoming-card .agenda-queue-count{background:color-mix(in srgb,#fff 18%,transparent);color:inherit}
:root[data-theme] .dashboard-shell .today-dashboard .overdue-card>.agenda-queue-header{background:var(--theme-coral-soft);color:var(--theme-coral)}
:root[data-theme] .dashboard-shell .today-dashboard .overdue-card.is-clear>.agenda-queue-header{background:var(--theme-accent-soft);color:var(--theme-accent)}
:root[data-theme] .dashboard-shell .today-dashboard :is(.overdue-card,.important-card)>.agenda-queue-header p{display:none}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-list{margin:0 var(--queue-inset);border-top:0}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-list:not(:empty){padding-block:8px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-row{--row-accent:var(--theme-blue);min-height:68px;gap:12px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-row.is-event{--row-accent:var(--theme-accent)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-row.is-overdue{--row-accent:var(--theme-coral);min-height:56px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-row:has(>.item-signals:not(:empty)){padding-bottom:6px;row-gap:0}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-row::before{content:'';position:absolute;left:calc(var(--queue-inset) + 30px);top:12px;bottom:12px;width:3px;border-radius:var(--radius-indicator,2px);background:var(--row-accent);pointer-events:none}
:root[data-theme] .dashboard-shell .today-dashboard :is(.agenda-queue-check,.agenda-queue-type-icon){order:0;flex-basis:22px;width:22px;height:22px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-check{border-radius:var(--radius-circle,50%);border-color:var(--theme-control-line)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-type-icon{color:var(--theme-blue-ink)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-type-icon>.icon{width:22px;height:22px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-time{order:1;flex:0 0 64px;padding-left:12px;font-size:14px;font-weight:650;color:var(--ink)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-open{order:2;padding-block:7px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-row>.item-signals{order:4;padding-left:46px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-open strong{font-size:15px;font-weight:600}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-open small{font-size:13px}
:root[data-theme] .dashboard-shell .today-dashboard .is-overdue .agenda-queue-open{padding-left:12px;padding-block:5px}
:root[data-theme] .dashboard-shell .today-dashboard .is-overdue .agenda-queue-open small{color:var(--theme-coral)}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-footer{margin:0;padding:0;min-height:44px;border:0}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-footer .agenda-queue-link{width:100%;min-height:48px;padding:10px var(--queue-inset);background:var(--theme-accent-soft);color:var(--theme-accent);font-size:13px}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-footer .agenda-queue-link>span{flex:1}
:root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-footer .agenda-queue-reschedule{width:100%;min-height:40px;justify-content:flex-start;padding:8px var(--queue-inset);border:0;border-radius:0;background:var(--theme-coral-soft);color:var(--theme-coral);font-size:13px}
:root[data-theme] .dashboard-shell .today-dashboard .important-card>.dashboard-important{margin:0;padding:8px 0;border-top:0}
:root[data-theme] .dashboard-shell .today-dashboard .important-card .attention-row{min-height:56px;padding:4px var(--queue-inset);gap:12px;border-bottom:1px solid var(--line);border-radius:0}
:root[data-theme] .dashboard-shell .today-dashboard .important-card .attention-row:last-child{border-bottom:0}
:root[data-theme] .dashboard-shell .today-dashboard .important-card .task-open{padding-left:12px;border-left:3px solid var(--theme-gold)}
:root[data-theme] .dashboard-shell .today-dashboard .important-card .task-open strong{font-size:15px}
:root[data-theme] .dashboard-shell .today-dashboard .important-card .task-open small{font-size:13px}
:root[data-theme] .dashboard-shell .today-dashboard .important-card input[type=checkbox]{width:22px;height:22px;flex-basis:22px;border-radius:var(--radius-circle,50%)}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-capture .quick-capture{min-height:56px;padding:6px 10px;gap:12px;border:1px solid color-mix(in srgb,var(--theme-accent) 28%,var(--line));border-radius:var(--radius-card,8px);background:var(--theme-accent-soft);box-shadow:none}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-capture .quick-capture>.icon{color:var(--theme-accent);width:24px;height:24px;flex:none}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-capture .quick-capture input{min-width:0;min-height:40px;padding:8px 12px;border:1px solid var(--line)!important;border-radius:var(--radius-control,6px);background:var(--surface)!important;color:var(--ink);font-size:13px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-capture .quick-capture>.icon-btn{width:40px;min-width:40px;min-height:40px;border-radius:var(--radius-control,6px);background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:12px;align-items:start}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-grid>.panel{min-height:0;padding:12px 18px;border-radius:var(--radius-card,8px)}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-grid .panel-header{margin-bottom:8px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-grid .panel-header h2{font-size:22px}
:root[data-theme] .dashboard-shell .today-dashboard .mini-grid{row-gap:0;column-gap:2px}
:root[data-theme] .dashboard-shell .today-dashboard .mini-grid .weekday{font-size:10px;min-height:18px}
:root[data-theme] .dashboard-shell .today-dashboard .mini-grid button{width:30px;min-height:30px;font-size:12px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-notes .panel-header h2{display:flex;align-items:center;gap:10px}
:root[data-theme] .dashboard-shell .today-dashboard .dashboard-notes .panel-header h2>.icon{width:24px;height:24px;color:var(--theme-blue-ink)}
:root[data-theme] .dashboard-shell .today-dashboard .note-preview{padding-block:10px}
:root[data-theme] .dashboard-shell .today-dashboard .note-preview strong{font-size:14px;font-weight:600}
:root[data-theme] .dashboard-shell .today-dashboard .note-preview .excerpt{font-size:13px}
:root[data-theme] .dashboard-shell .today-dashboard .note-preview .note-icon{width:42px;height:42px;background:var(--theme-gold-soft);color:var(--theme-gold)}
:root[data-theme] .dashboard-shell .today-dashboard .note-preview:nth-child(even) .note-icon{background:var(--theme-violet-soft);color:var(--theme-violet)}
:root[data-theme=dark] .dashboard-shell .today-dashboard .upcoming-card>.agenda-queue-header{background:#174c51;color:#e8f6f4}
@container(max-width:900px){
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-queue{grid-template-columns:minmax(0,1fr);grid-template-areas:'upcoming' 'overdue' 'important'}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-queue:not(:has(>.important-card)){grid-template-areas:'upcoming' 'overdue'}
 :root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header h2{font-size:22px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat{padding:14px;gap:12px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-icon{width:44px;height:44px;flex-basis:44px}
}
@container(max-width:680px){
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
 :root[data-theme] .dashboard-shell .main{padding:18px 16px 110px}
 :root[data-theme] .dashboard-shell .heading h1{font-size:32px}
 :root[data-theme] .dashboard-shell .heading p{font-size:14px}
 :root[data-theme] .dashboard-shell .today-dashboard>.dashboard-capture{order:-1}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-summary{gap:10px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat{min-height:118px;padding:12px;gap:10px;flex-wrap:wrap}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-copy strong{font-size:30px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-label{font-size:12px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-copy small{font-size:11px}
 :root[data-theme] .dashboard-shell .today-dashboard .review-suggestion{padding:12px}
 :root[data-theme] .dashboard-shell .today-dashboard .review-suggestion>span{font-size:13px}
 :root[data-theme] .dashboard-shell .today-dashboard .review-suggestion .btn{min-height:44px}
 :root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header{gap:10px;flex-wrap:wrap}
 :root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-header .agenda-queue-link{min-height:44px}
 :root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-footer .agenda-queue-reschedule{min-height:44px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-capture .quick-capture>.icon-btn{min-width:44px;width:44px;min-height:44px}
 :root[data-theme] .dashboard-shell .today-dashboard .agenda-queue-time{flex-basis:58px;font-size:12px}
 :root[data-theme] .dashboard-shell .today-dashboard .mini-grid button{width:100%;min-height:44px}
}

/* Personal Agenda: approved calendar composition, with semantic light/dark tokens. */
:root[data-theme=light] .agenda-shell{--theme-panel:#fff;--theme-input:#fff;--theme-ink:#142035;--theme-muted:#586a85;--theme-line:#e3e6e9;--theme-hover:#eff5f4}
:root[data-theme] .agenda-shell .main{padding:24px 28px;container-type:inline-size}
:root[data-theme] .agenda-shell .topbar{margin-bottom:12px}
:root[data-theme] .agenda-shell .heading h1{font-size:44px;line-height:1.1;letter-spacing:-1px}
:root[data-theme] .agenda-shell .heading p{margin-top:5px;font-size:18px;line-height:1.3}
:root[data-theme] .agenda-shell .sidebar .brand{font-family:var(--font-heading);font-size:20px;font-weight:700}
:root[data-theme] .agenda-shell .sidebar .nav button{font-size:16px}
:root[data-theme] .agenda-shell .sidebar .nav button.active{background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .agenda-shell[data-sidebar-pinned=true]{--sidebar-expanded:244px}
:root[data-theme] .agenda-shell .agenda-project-filter{display:grid;grid-template-columns:56px minmax(210px,1fr) minmax(260px,.95fr);align-items:center;gap:24px;padding:14px 20px;border-radius:var(--radius-card,8px);margin:0 0 12px}
:root[data-theme] .agenda-shell .agenda-project-icon{box-sizing:content-box;width:30px;height:30px;padding:13px;border-radius:var(--radius,10px);background:var(--theme-blue-soft);color:var(--theme-blue-ink)}
:root[data-theme] .agenda-shell .agenda-project-filter>.field{align-items:start;gap:5px;font-size:13px}
:root[data-theme] .agenda-shell .agenda-project-filter select{width:230px;max-width:100%;min-height:36px}
:root[data-theme] .agenda-shell .agenda-project-filter>.helper{display:flex;align-items:center;gap:18px;margin:0;padding-left:20px;border-left:1px solid var(--line);font-size:13px;line-height:1.45}
:root[data-theme] .agenda-shell .agenda-project-filter>.helper>.icon{flex:none;width:22px;height:22px;color:var(--muted)}
:root[data-theme] .agenda-shell .pl-personal-overview{margin:0;min-width:0}
:root[data-theme] .agenda-shell .pl-toolbar{padding:12px 20px;gap:14px;border-radius:var(--radius-card,8px);background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .agenda-shell .pl-overview-period{display:flex;align-items:center;gap:18px;flex:1;min-width:210px;margin:0;font:700 26px/1.2 var(--font-heading);letter-spacing:-.4px;color:inherit}
:root[data-theme] .agenda-shell .pl-overview-period>.icon{width:28px;height:28px;flex:none}
:root[data-theme] .agenda-shell .pl-overview-period small{display:block;font:400 11px/1.4 var(--font-body);letter-spacing:0;color:inherit}
:root[data-theme] .agenda-shell .pl-nav{gap:8px}
:root[data-theme] .agenda-shell .pl-toolbar .pl-nav>button{min-width:44px;min-height:36px;padding:7px 12px;border-color:#ffffff40;background:transparent;color:inherit}
:root[data-theme] .agenda-shell .pl-toolbar .pl-nav>button:hover{background:#ffffff1a}
:root[data-theme] .agenda-shell .pl-toolbar .pl-nav>.field{margin:0}
:root[data-theme] .agenda-shell .pl-toolbar input[type=date]{width:164px;max-width:164px;min-height:36px;padding:6px 10px;background:transparent;color:inherit;border-color:#ffffff66;color-scheme:dark}
:root[data-theme] .agenda-shell .pl-toolbar .segmented{gap:4px;padding:0;background:transparent;border:0;flex-wrap:wrap}
:root[data-theme] .agenda-shell .pl-toolbar .segmented>button{min-height:36px;padding:8px 14px;background:transparent;border:1px solid transparent;color:inherit;font-size:13px}
:root[data-theme] .agenda-shell .pl-toolbar .segmented>button:hover{background:#ffffff1a}
:root[data-theme] .agenda-shell .pl-toolbar .segmented>button.active{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:0 2px 4px #0002}
:root[data-theme] .agenda-shell .pl-workspace{grid-template-columns:minmax(0,1fr) 348px;gap:12px;margin-top:0}
:root[data-theme] .agenda-shell .pl-primary{min-width:0}
:root[data-theme] .agenda-shell .pl-filters{gap:12px;margin:0 0 10px;padding:10px 16px 12px;align-items:end;background:var(--surface);border:1px solid var(--line);border-radius:0 0 var(--radius-card,8px) var(--radius-card,8px)}
:root[data-theme] .agenda-shell .pl-filters>.field{gap:4px;min-width:140px;max-width:190px;font-size:13px}
:root[data-theme] .agenda-shell .pl-filters :is(select,summary){min-height:36px;font-size:13px}
:root[data-theme] .agenda-shell .pl-filters summary{padding:7px 12px;background:var(--surface)}
:root[data-theme] .agenda-shell .pl-filters .pl-reload{width:auto;gap:8px;padding:8px 12px;min-height:36px;border:1px solid var(--line);border-radius:var(--radius-control,6px);font-size:13px;color:var(--teal)}
:root[data-theme] .agenda-shell .pl-filters .pl-reload::after{content:'Atualizar'}
:root[data-theme] .agenda-shell .pl-visibility{top:calc(100% + 8px);left:0;width:300px;max-width:calc(100vw - 48px);color:var(--ink);box-shadow:var(--theme-popover-shadow)}
:root[data-theme] .agenda-shell .pl-main{padding:10px;border-radius:var(--radius-card,8px);background:var(--surface)}
:root[data-theme] .agenda-shell .pl-month{border:1px solid var(--line);border-radius:var(--radius-small,4px);overflow:hidden}
:root[data-theme] .agenda-shell .pl-week-head{min-height:34px;padding:0;background:color-mix(in srgb,var(--theme-accent-soft) 55%,var(--surface));color:var(--ink)}
:root[data-theme] .agenda-shell .pl-week-head>span{display:grid;place-items:center;border-right:1px solid var(--line);font-size:12px}
:root[data-theme] .agenda-shell .pl-week-head>span:last-child{border-right:0}
:root[data-theme] .agenda-shell .pl-month-week{margin:0;border:0;border-top:1px solid var(--line);border-radius:0}
:root[data-theme] .agenda-shell .pl-month-dates{border:0;background:var(--surface)}
:root[data-theme] .agenda-shell .pl-month-dates>.pl-month-date{position:relative;isolation:isolate;min-height:30px;padding:4px 7px;background:transparent;font-size:12px;font-weight:500;box-shadow:none}
:root[data-theme] .agenda-shell .pl-month-date.is-today{color:var(--theme-action-ink)}
:root[data-theme] .agenda-shell .pl-month-date.is-today::before{content:'';position:absolute;z-index:-1;right:3px;top:50%;width:28px;height:28px;transform:translateY(-50%);border-radius:var(--radius-circle,50%);background:var(--theme-action)}
:root[data-theme] .agenda-shell .pl-month-date:not(.is-today):hover{background:var(--theme-accent-soft)}
:root[data-theme] .agenda-shell .pl-month-dates>.pl-month-date.outside{color:var(--muted);opacity:.7}
:root[data-theme] .agenda-shell .pl-month-week>.pl-band{padding:2px 0 4px;border:0}
:root[data-theme] .agenda-shell .pl-month-week .pl-day{min-height:48px;padding:3px 4px;background:var(--surface);box-shadow:none}
:root[data-theme] .agenda-shell :is(.pl-day,.pl-month-date):nth-child(n+6){background:color-mix(in srgb,var(--theme-hover) 55%,var(--surface))}
:root[data-theme] .agenda-shell .pl-day.outside{opacity:1}
:root[data-theme] .agenda-shell .pl-day>.pl-add{opacity:0;min-height:22px;transition:opacity .15s}
:root[data-theme] .agenda-shell .pl-day:is(:hover,:focus-within)>.pl-add{opacity:1}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-entry{font-size:12px;line-height:1.3;padding:5px;min-height:28px;border-radius:var(--radius-small,4px);background:var(--theme-accent-soft);border-color:color-mix(in srgb,var(--theme-accent) 24%,var(--line));color:var(--theme-accent)}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-entry>.pl-entry-copy{white-space:normal;overflow:hidden}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-entry .pl-entry-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;overflow-wrap:normal;word-break:normal}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-event{background:var(--theme-blue-soft);color:var(--theme-blue-ink);border-color:color-mix(in srgb,var(--theme-blue) 25%,var(--line))}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-deadline{background:var(--theme-coral-soft);color:var(--theme-coral);border-color:color-mix(in srgb,var(--theme-coral) 22%,var(--line))}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-milestone{background:var(--theme-gold-soft);color:var(--theme-gold);border-color:color-mix(in srgb,var(--theme-gold) 22%,var(--line));border-style:solid}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-project_target{background:var(--theme-violet-soft);color:var(--theme-violet);border-color:color-mix(in srgb,var(--theme-violet) 22%,var(--line));border-style:solid}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-overdue{border-color:var(--theme-coral);color:var(--theme-coral)}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-due-today{border-color:var(--theme-gold)}
:root[data-theme] .agenda-shell .pl-personal-overview .pl-entry .project-label{font-size:10px;max-width:100%;margin-top:3px}
:root[data-theme] .agenda-shell .pl-legend{justify-content:space-between;gap:10px;padding:12px 3px 0;margin:0;font-size:11px;line-height:1.4}
:root[data-theme] .agenda-shell .pl-legend>span{gap:8px;min-width:0}
:root[data-theme] .agenda-shell .pl-legend .icon{box-sizing:content-box;width:18px;height:18px;padding:6px;border-radius:var(--radius-control,6px);background:var(--theme-accent-soft);color:var(--theme-accent);flex:none}
:root[data-theme] .agenda-shell .pl-legend-deadline .icon{background:var(--theme-coral-soft);color:var(--theme-coral)}
:root[data-theme] .agenda-shell .pl-legend-event .icon{background:var(--theme-blue-soft);color:var(--theme-blue-ink)}
:root[data-theme] .agenda-shell .pl-legend-milestone .icon{background:var(--theme-gold-soft);color:var(--theme-gold)}
:root[data-theme] .agenda-shell .pl-legend-project_target .icon{background:var(--theme-violet-soft);color:var(--theme-violet)}
:root[data-theme] .agenda-shell .pl-backlog{padding:0;min-width:0;margin:10px 0 0;border-radius:var(--radius-card,8px);overflow:hidden;background:var(--surface)}
:root[data-theme] .agenda-shell .pl-backlog>h3{padding:11px 18px;gap:12px;margin:0;background:var(--theme-gold-soft);color:var(--ink);font:700 22px/1.25 var(--font-heading)}
:root[data-theme] .agenda-shell .pl-backlog>h3>.icon{width:22px;height:22px;color:var(--theme-gold)}
:root[data-theme] .agenda-shell .pl-backlog>h3>.tag{background:var(--theme-gold-soft);color:var(--theme-gold);font:600 12px/1.2 var(--font-body);padding:4px 9px;border-radius:var(--radius-small,4px)}
:root[data-theme] .agenda-shell .pl-backlog-list{padding:0 16px;max-height:520px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
:root[data-theme] .agenda-shell .pl-backlog .pl-backlog-item{position:relative;gap:5px;padding:12px 0 12px 36px}
:root[data-theme] .agenda-shell .pl-backlog-grip{position:absolute;top:15px;left:3px;width:18px;height:18px;color:var(--muted);pointer-events:none}
:root[data-theme] .agenda-shell .pl-backlog-item>strong{padding-right:30px;font-size:14px;font-weight:600;line-height:1.4}
:root[data-theme] .agenda-shell .pl-backlog-item>.item-signals{font-size:11px}
:root[data-theme] .agenda-shell .pl-backlog :is(.pl-backlog-assignee,.pl-backlog-deadline){font-size:12px;gap:5px;line-height:1.4}
:root[data-theme] .agenda-shell .pl-backlog-facts{display:flex;flex-wrap:wrap;gap:2px 12px;padding:0;margin:0;background:transparent;border-radius:0}
:root[data-theme] .agenda-shell .pl-backlog-facts>div{display:flex;align-items:baseline;gap:4px;min-width:0}
:root[data-theme] .agenda-shell .pl-backlog-facts :is(dt,dd){margin:0;font-size:11px;font-weight:400;line-height:1.5;color:var(--muted)}
:root[data-theme] .agenda-shell .pl-backlog-facts>.pl-backlog-time{flex-basis:100%;justify-content:flex-start;padding:0;border:0}
:root[data-theme] .agenda-shell .pl-backlog-plan{display:inline-flex;gap:8px;min-height:34px;margin:0;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius-control,6px);background:var(--surface);color:var(--teal);font-size:12px}
:root[data-theme] .agenda-shell .pl-backlog .pl-backlog-note{margin:0;padding:12px 18px;line-height:1.5;font-size:12px}
:root[data-theme] .agenda-shell .pl-capacity{gap:10px;margin:0;padding:0 16px 14px;border:0}
:root[data-theme] .agenda-shell .pl-capacity-heading{margin:0 -16px;padding:10px 18px;background:var(--theme-blue-soft);color:var(--theme-blue-ink)}
:root[data-theme] .agenda-shell .pl-capacity-heading>.icon{width:22px;height:22px;color:inherit}
:root[data-theme] .agenda-shell .pl-capacity-heading h4{font:700 20px/1.3 var(--font-heading);color:inherit}
:root[data-theme] .agenda-shell .pl-capacity-intro{font-size:12px}
:root[data-theme] .agenda-shell .pl-capacity-config{min-height:38px}
:root[data-theme] .agenda-shell .pl-capacity-details{border-width:1px 0 0;border-radius:0}
:root[data-theme] .agenda-shell .pl-capacity-details>summary{font-size:13px}
:root[data-theme=dark] .agenda-shell .pl-toolbar{background:#174c51;color:#e8f6f4}
:root[data-theme] .agenda-shell .pl-toolbar :is(button,input):focus-visible{outline:2px solid currentColor;outline-offset:3px}
@container(max-width:1060px){
 :root[data-theme] .agenda-shell .pl-workspace{grid-template-columns:minmax(0,1fr) 300px}
 :root[data-theme] .agenda-shell .pl-toolbar{gap:12px}
 :root[data-theme] .agenda-shell .pl-overview-period{flex-basis:calc(100% - 380px)}
 :root[data-theme] .agenda-shell .pl-toolbar .segmented{margin-left:auto}
 :root[data-theme] .agenda-shell .pl-filters>.field{min-width:120px;flex:1}
}
@container(max-width:850px){
 :root[data-theme] .agenda-shell .agenda-project-filter{grid-template-columns:44px minmax(0,1fr);gap:14px}
 :root[data-theme] .agenda-shell .agenda-project-icon{width:24px;height:24px;padding:10px}
 :root[data-theme] .agenda-shell .agenda-project-filter>.helper{grid-column:1/-1;border:0;border-top:1px solid var(--line);padding:10px 0 0}
 :root[data-theme] .agenda-shell .pl-workspace{grid-template-columns:minmax(0,1fr)}
 :root[data-theme] .agenda-shell .pl-backlog{margin-top:0}
 :root[data-theme] .agenda-shell .pl-backlog-list{max-height:460px}
}
@media(max-width:700px){
 :root[data-theme] .agenda-shell .main{padding:18px 16px 110px}
 :root[data-theme] .agenda-shell .heading h1{font-size:32px}
 :root[data-theme] .agenda-shell .heading p{font-size:14px}
 :root[data-theme] .agenda-shell .agenda-project-filter{padding:14px}
 :root[data-theme] .agenda-shell .agenda-project-filter select{width:100%;min-height:44px}
 :root[data-theme] .agenda-shell .pl-toolbar{padding:14px;gap:12px}
 :root[data-theme] .agenda-shell .pl-overview-period{min-width:0;flex-basis:100%;font-size:23px;gap:12px}
 :root[data-theme] .agenda-shell .pl-nav{width:100%;gap:6px;flex-wrap:wrap}
 :root[data-theme] .agenda-shell .pl-toolbar .pl-nav>button{min-height:44px;min-width:42px;padding:8px}
 :root[data-theme] .agenda-shell .pl-toolbar .pl-nav>.field{flex:1;min-width:120px}
 :root[data-theme] .agenda-shell .pl-toolbar input[type=date]{width:100%;max-width:none;min-height:44px;font-size:12px;padding:8px 5px}
 :root[data-theme] .agenda-shell .pl-toolbar .segmented{width:100%;justify-content:space-between;gap:2px}
 :root[data-theme] .agenda-shell .pl-toolbar .segmented>button{min-height:44px;flex:1;padding:8px 5px;font-size:12px}
 :root[data-theme] .agenda-shell .pl-filters{padding:12px;gap:10px}
 :root[data-theme] .agenda-shell .pl-filters>.field{min-width:100px;max-width:none}
 :root[data-theme] .agenda-shell .pl-filters :is(select,summary,.pl-reload){min-height:44px}
 :root[data-theme] .agenda-shell .pl-main{padding:6px}
 :root[data-theme] .agenda-shell .pl-month-dates>.pl-month-date{font-size:11px;min-height:32px;padding-right:5px}
 :root[data-theme] .agenda-shell .pl-month-date.is-today::before{width:24px;height:24px;right:0}
 :root[data-theme] .agenda-shell .pl-month-week .pl-day{min-height:40px;padding:2px}
 :root[data-theme] .agenda-shell .pl-personal-overview .pl-entry{font-size:10px;padding:3px;line-height:1.35}
 :root[data-theme] .agenda-shell .pl-personal-overview .pl-entry .project-label{font-size:9px}
 :root[data-theme] .agenda-shell .pl-month:not(.pl-month-integrated) :is(.pl-day,.pl-bar[style*="/span 1;"]) .pl-entry>.pl-entry-copy{display:none}
 :root[data-theme] .agenda-shell .pl-month:not(.pl-month-integrated) :is(.pl-day,.pl-bar[style*="/span 1;"]) .pl-entry{justify-content:flex-start;min-height:30px;padding:4px 14px 4px 2px!important;gap:0}
 :root[data-theme] .agenda-shell .pl-month:not(.pl-month-integrated) :is(.pl-day,.pl-bar[style*="/span 1;"]) .pl-entry>.icon{display:block;width:14px;height:14px}
 :root[data-theme] .agenda-shell .pl-month .item-signal{font-size:0;gap:2px}
 :root[data-theme] .agenda-shell .pl-month .item-signal>.icon{width:12px;height:12px}
 :root[data-theme] .agenda-shell .pl-month .item-signal>.context-info{width:14px;min-width:14px;height:18px;min-height:18px;padding:1px}
 :root[data-theme] .agenda-shell .pl-month .item-signal>.context-info>.icon{width:12px;height:12px}
 :root[data-theme] .agenda-shell .pl-month .mail-context-badge{width:26px;min-width:0;max-width:100%;min-height:22px;padding:3px;justify-content:center;font-size:0}
 :root[data-theme] .agenda-shell .pl-month .mail-context-badge>span{display:none}
 :root[data-theme] .agenda-shell .pl-month .mail-context-badge>.icon{width:13px;height:13px}
 :root[data-theme] .agenda-shell .pl-day>.pl-add{opacity:1}
 :root[data-theme] .agenda-shell .pl-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:10px}
 :root[data-theme] .agenda-shell .pl-legend .icon{width:16px;height:16px;padding:5px}
 :root[data-theme] .agenda-shell .pl-backlog-list{max-height:none}
 :root[data-theme] .agenda-shell .pl-backlog-plan{min-height:44px}
}
@media(prefers-reduced-motion:reduce){:root[data-theme] .agenda-shell .pl-day>.pl-add{transition:none}}

/* Keep the current-day mark circular inside the larger responsive click target. */
:root[data-theme] .mini-grid button.selected{position:relative;isolation:isolate;background:transparent;color:var(--theme-action-ink)}
:root[data-theme] .mini-grid button.selected::before{content:'';position:absolute;z-index:-1;width:28px;height:28px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:var(--radius-circle,50%);background:var(--theme-action)}
:root[data-theme] .mini-grid button.selected.has-event::after{bottom:calc(50% - 12px);width:3px;height:3px;left:calc(50% - 1.5px)}

/* Tasks: compact state summaries and colour-coded deadline groups. */
:root[data-theme=light] .tasks-shell{--theme-panel:#fff;--theme-input:#fff;--theme-ink:#142035;--theme-muted:#586a85;--theme-line:#e3e6e9;--theme-hover:#eff5f4}
:root[data-theme] .tasks-shell .main{padding:20px 28px 32px;container-type:inline-size}
:root[data-theme] .tasks-shell .topbar{margin-bottom:12px}
:root[data-theme] .tasks-shell .topbar .search-box{display:block;min-width:180px;max-width:325px;flex:1}
:root[data-theme] .tasks-shell .topbar .search-button{display:none}
:root[data-theme] .tasks-shell .heading h1{font-size:40px;line-height:1.1;letter-spacing:-1px}
:root[data-theme] .tasks-shell .heading p{margin-top:4px;font-size:16px;line-height:1.3}
:root[data-theme] .tasks-shell .sidebar .brand{font-family:var(--font-heading);font-size:20px;font-weight:700}
:root[data-theme] .tasks-shell .sidebar .nav button{font-size:16px}
:root[data-theme] .tasks-shell .sidebar .nav button.active{background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .tasks-shell[data-sidebar-pinned=true]{--sidebar-expanded:244px}
:root[data-theme] .tasks-shell .tasks-page{display:grid;grid-template-columns:minmax(0,1fr) 470px;grid-template-areas:'filters views' 'summary summary' 'status status' 'tools tools' 'results results';gap:12px 18px;min-width:0}
:root[data-theme] .tasks-shell .tasks-page>.mgmt-tabs{grid-area:status;min-width:0;margin:0}
:root[data-theme] .tasks-shell .task-filters{grid-area:filters;display:grid;grid-template-columns:minmax(160px,322px) auto;align-items:start;gap:12px;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
:root[data-theme] .tasks-shell .task-filters .filter-panel-head{display:flex;flex-wrap:wrap;gap:10px;min-width:0;margin:0}
:root[data-theme] .tasks-shell .task-filters .filter-search{grid-row:1;grid-column:1;order:-1;margin:0;min-width:0;width:auto}
:root[data-theme] .tasks-shell .task-filters .filter-panel-head{grid-row:1;grid-column:2}
:root[data-theme] .tasks-shell .task-filters :is(.filters-toggle,.filter-clear){min-height:40px;padding:8px 12px;font-size:12px;white-space:nowrap}
:root[data-theme] .tasks-shell .task-filters .task-search{width:100%;max-width:none}
:root[data-theme] .tasks-shell .task-filters .task-search input{width:100%;min-width:0;min-height:40px;font-size:13px;background:var(--surface)}
:root[data-theme] .tasks-shell .task-filters .filter-content{grid-column:1/-1;min-width:0;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card,8px)}
:root[data-theme] .tasks-shell .task-view-nav{grid-area:views;position:static;align-self:start;margin:0;padding:0;border-radius:var(--radius-control,6px);border:1px solid var(--line);box-shadow:none;min-width:0;container-type:normal}
:root[data-theme] .tasks-shell .task-view-nav .view-tabs{width:100%;gap:0;grid-template-columns:repeat(4,minmax(0,1fr))}
:root[data-theme] .tasks-shell .task-view-nav .view-tabs>button{flex-direction:row;gap:8px;min-height:40px;padding:8px 10px;border-radius:0;border-right:1px solid var(--line);font-size:13px;font-weight:500;color:var(--muted)}
:root[data-theme] .tasks-shell .task-view-nav .view-tabs>button:first-child{border-radius:var(--radius-control,6px) 0 0 var(--radius-control,6px)}
:root[data-theme] .tasks-shell .task-view-nav .view-tabs>button:last-child{border:0;border-radius:0 var(--radius-control,6px) var(--radius-control,6px) 0}
:root[data-theme] .tasks-shell .task-view-nav .view-tabs>button[aria-pressed=true]{background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .tasks-shell .task-summary{grid-area:summary;margin:0;min-width:0}
:root[data-theme] .tasks-shell .task-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;height:auto;margin:2px 0 6px}
:root[data-theme] .tasks-shell .task-summary-heading>h2{position:static;clip-path:none;width:auto;height:auto;overflow:visible;margin:0;font:700 18px/1.3 var(--font-heading)}
:root[data-theme] .tasks-shell .task-summary-heading>.task-summary-all{position:static;margin:0;font-size:12px;color:var(--theme-blue-ink)}
:root[data-theme] .tasks-shell .task-state-counts{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-flow:row;gap:8px;overflow:visible;padding:0}
:root[data-theme] .tasks-shell .task-state-count{--state-ink:var(--theme-accent);--state-soft:var(--theme-accent-soft);flex-direction:row;align-items:center;min-height:74px;gap:10px;padding:10px;border-radius:var(--radius-control,6px);min-width:0;text-align:left}
:root[data-theme] .tasks-shell .task-state-count.todo{--state-ink:var(--theme-gold);--state-soft:var(--theme-gold-soft)}
:root[data-theme] .tasks-shell .task-state-count.doing{--state-ink:var(--theme-blue-ink);--state-soft:var(--theme-blue-soft)}
:root[data-theme] .tasks-shell .task-state-count:is(.blocked,.cancelled){--state-ink:var(--theme-coral);--state-soft:var(--theme-coral-soft)}
:root[data-theme] .tasks-shell .task-state-count:is(.waiting,.review){--state-ink:var(--theme-violet);--state-soft:var(--theme-violet-soft)}
:root[data-theme] .tasks-shell .task-state-count.done{--state-ink:var(--theme-green);--state-soft:var(--theme-green-soft)}
:root[data-theme] .tasks-shell .task-state-icon{width:40px;height:40px;border-radius:var(--radius-card,8px);background:var(--state-soft);color:var(--state-ink)}
:root[data-theme] .tasks-shell .task-state-icon>.icon{width:23px;height:23px}
:root[data-theme] .tasks-shell .task-state-copy{min-width:0;gap:3px;font-size:11px;line-height:1.3}
:root[data-theme] .tasks-shell .task-state-copy strong{font:700 25px/1 var(--font-heading);color:var(--ink)}
:root[data-theme] .tasks-shell .task-results-toolbar{grid-area:tools;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0}
:root[data-theme] .tasks-shell .task-result-count{margin:0;color:var(--ink);font:500 17px/1.4 var(--font-heading)}
:root[data-theme] .tasks-shell .task-tools{gap:12px;margin:0;padding:0;max-width:100%;min-width:0}
:root[data-theme] .tasks-shell .task-order{gap:10px}
:root[data-theme] .tasks-shell .task-order .filter-field{gap:6px;font-size:11px;min-width:0}
:root[data-theme] .tasks-shell .task-order .filter-label>.icon{display:none}
:root[data-theme] .tasks-shell .task-order .icon-filter{width:auto;min-width:130px;min-height:38px;padding:7px 9px;font-size:12px}
:root[data-theme] .tasks-shell .task-tools>.btn{min-height:38px;font-size:12px}
:root[data-theme] .tasks-shell .tasks-results-panel{grid-area:results;margin:0;min-width:0;padding:0;border:0;background:transparent;box-shadow:none}
:root[data-theme] .tasks-shell #task-results{margin:0;padding:0;background:transparent;border:0;border-radius:0;min-width:0}
:root[data-theme] .tasks-shell .task-deadline-group{--group-color:var(--muted);--group-bg:var(--surface-hover);margin:0 0 10px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);overflow:visible}
:root[data-theme] .tasks-shell .task-deadline-group[data-deadline-group=late]{--group-color:var(--theme-coral);--group-bg:var(--theme-coral-soft)}
:root[data-theme] .tasks-shell .task-deadline-group[data-deadline-group=today]{--group-color:var(--theme-accent);--group-bg:var(--theme-accent-soft)}
:root[data-theme] .tasks-shell .task-deadline-group[data-deadline-group=tomorrow]{--group-color:var(--theme-blue-ink);--group-bg:var(--theme-blue-soft)}
:root[data-theme] .tasks-shell .task-deadline-group[data-deadline-group=week]{--group-color:var(--theme-violet);--group-bg:var(--theme-violet-soft)}
:root[data-theme] .tasks-shell .task-deadline-group[data-deadline-group=none]{--group-color:var(--theme-gold);--group-bg:var(--theme-gold-soft)}
:root[data-theme] .tasks-shell .task-deadline-group>summary{display:flex;align-items:center;gap:12px;padding:7px 14px;min-height:38px;list-style:none;cursor:pointer;border-radius:var(--radius-control,6px);background:var(--group-bg);color:var(--group-color)}
:root[data-theme] .tasks-shell .task-deadline-group[open]>summary{border-radius:var(--radius-control,6px) var(--radius-control,6px) 0 0}
:root[data-theme] .tasks-shell .task-deadline-group>summary::-webkit-details-marker{display:none}
:root[data-theme] .tasks-shell .task-deadline-group>summary::marker{content:''}
:root[data-theme] .tasks-shell .task-deadline-group>summary>h3{display:block;margin:0;padding:0;background:transparent;border:0;color:var(--ink);font:700 21px/1.2 var(--font-heading)}
:root[data-theme] .tasks-shell .task-deadline-group>summary>.icon{width:22px;height:22px}
:root[data-theme] .tasks-shell .task-deadline-group>summary>.tag{background:var(--surface);color:var(--group-color);border-radius:var(--radius-small,4px);padding:3px 7px;font-size:12px;font-weight:600}
:root[data-theme] .tasks-shell .task-deadline-group>summary>.task-group-chevron{margin-left:auto;width:16px;height:16px;transform:rotate(-90deg)}
:root[data-theme] .tasks-shell .task-deadline-group[open]>summary>.task-group-chevron{transform:rotate(0)}
:root[data-theme] .tasks-shell .task-table-row{display:grid;grid-template-columns:22px minmax(200px,1fr) 62px 124px minmax(0,142px) minmax(0,150px) 34px 68px;align-items:center;gap:8px;padding:6px 14px;margin:0;min-height:48px;background:var(--surface);border:0;border-bottom:1px solid var(--line);border-radius:0;position:relative}
:root[data-theme] .tasks-shell .task-table-row:last-child{border-bottom:0;border-radius:0 0 var(--radius-control,6px) var(--radius-control,6px)}
:root[data-theme] .tasks-shell .task-table-row>input{grid-column:1;grid-row:1;width:20px;height:20px;margin:0;justify-self:center}
:root[data-theme] .tasks-shell .task-table-row>.task-open{grid-column:2;grid-row:1;min-width:0;width:100%;padding:0 0 0 14px;margin:0;min-height:34px;gap:5px;border-left:3px solid var(--group-color,var(--teal));border-radius:0}
:root[data-theme] .tasks-shell .task-table-row .entry-title{display:block}
:root[data-theme] .tasks-shell .task-table-row .entry-title>strong{display:block;font-size:14px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
:root[data-theme] .tasks-shell .task-table-row .task-context{display:block;margin:2px 0 0;font-size:12px;line-height:1.35;color:var(--muted);white-space:normal}
:root[data-theme] .tasks-shell .task-context .is-late{color:var(--theme-coral)}
:root[data-theme] .tasks-shell .task-context .is-today{color:var(--theme-accent)}
:root[data-theme] .tasks-shell .task-table-row>.pill{grid-column:3;grid-row:1;justify-self:center;min-width:58px;padding:5px 9px;border-radius:var(--radius-large,16px);font-size:11px;text-align:center}
:root[data-theme] .tasks-shell .task-table-row>.pill.medium{background:var(--theme-violet-soft);color:var(--theme-violet)}
:root[data-theme] .tasks-shell .task-table-row>.pill.low{background:var(--theme-accent-soft);color:var(--theme-accent)}
:root[data-theme] .tasks-shell .task-progress-column{grid-column:4;grid-row:1;min-width:0}
:root[data-theme] .tasks-shell .task-progress-column .task-progress{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
:root[data-theme] .tasks-shell .task-progress-value{order:-1;min-width:29px;color:var(--ink);font-size:11px;font-weight:600;text-align:right}
:root[data-theme] .tasks-shell .task-progress-track{flex:1;width:auto;min-width:25px;height:10px;background:color-mix(in srgb,var(--muted) 12%,var(--surface));border-radius:var(--radius-card,8px)}
:root[data-theme] .tasks-shell .task-progress-track>span{background:var(--theme-blue);border-radius:inherit}
:root[data-theme] .tasks-shell .task-table-row>.task-project-column{grid-column:5;grid-row:1;min-width:0}
:root[data-theme] .tasks-shell .task-project-column .project-label{padding:5px 8px;margin:0;border-radius:var(--radius-control,6px);background:var(--theme-blue-soft);color:var(--theme-blue-ink);font-size:11px}
:root[data-theme] .tasks-shell .task-table-row>.item-signals{grid-column:6;grid-row:1;display:flex;flex-wrap:wrap;min-width:0;width:100%;gap:3px 6px;margin:0;padding:0;font-size:11px}
:root[data-theme] .tasks-shell .task-table-row .item-signal{font-size:11px;min-width:0;white-space:normal}
:root[data-theme] .tasks-shell .task-table-row>.icon-btn[data-action=plan-task]{grid-column:7;grid-row:1;min-width:32px;min-height:34px;width:34px;padding:6px;color:var(--muted)}
:root[data-theme] .tasks-shell .task-table-row>.entry-actions{grid-column:8;grid-row:1;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;margin:0}
:root[data-theme] .tasks-shell .task-table-row .entry-edit{width:34px;min-width:34px;min-height:34px;padding:7px;color:var(--muted)}
:root[data-theme] .tasks-shell .task-table-row .entry-edit>span{display:none}
:root[data-theme] .tasks-shell .task-table-row .entry-menu>summary{width:30px;min-width:30px;min-height:34px;padding:6px}
:root[data-theme] .tasks-shell .task-table-row>.entry-details{grid-column:1/-1;grid-row:2;width:100%;margin:4px 0 0;padding:14px 10px;font-size:13px}
:root[data-theme] .tasks-shell .task-table-row .preview-chevron{width:12px;height:12px;opacity:0}
:root[data-theme] .tasks-shell .task-table-row:is(:hover,:focus-within,.expanded) .preview-chevron{opacity:1}
:root[data-theme] .tasks-shell .task-table-row[hidden]{display:none}
:root[data-theme] .tasks-shell .task-table-row>.item-signals:empty,:root[data-theme] .tasks-shell .task-project-column:empty{display:none}
@container(max-width:1100px){
 :root[data-theme] .tasks-shell .tasks-page{grid-template-columns:minmax(0,1fr);grid-template-areas:'filters' 'views' 'summary' 'status' 'tools' 'results'}
 :root[data-theme] .tasks-shell .task-view-nav{width:min(100%,520px);justify-self:end}
 :root[data-theme] .tasks-shell .task-state-counts{grid-template-columns:repeat(4,minmax(0,1fr))}
 :root[data-theme] .tasks-shell .task-table-row{grid-template-columns:22px minmax(180px,1fr) 62px 110px 34px 68px;gap:6px 8px}
 :root[data-theme] .tasks-shell .task-table-row>.task-project-column{grid-column:2;grid-row:2}
 :root[data-theme] .tasks-shell .task-table-row>.item-signals{grid-column:3/-1;grid-row:2}
 :root[data-theme] .tasks-shell .task-table-row>.icon-btn[data-action=plan-task]{grid-column:5}
 :root[data-theme] .tasks-shell .task-table-row>.entry-actions{grid-column:6}
 :root[data-theme] .tasks-shell .task-table-row>.entry-details{grid-row:3}
}
@container(max-width:700px){
 :root[data-theme] .tasks-shell .topbar .search-box{display:none}
 :root[data-theme] .tasks-shell .topbar .search-button{display:inline-flex}
 :root[data-theme] .tasks-shell .task-filters{grid-template-columns:minmax(0,1fr)}
 :root[data-theme] .tasks-shell .task-filters .filter-search{grid-row:1;grid-column:1}
 :root[data-theme] .tasks-shell .task-filters .filter-panel-head{grid-row:2;grid-column:1}
 :root[data-theme] .tasks-shell .task-state-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme] .tasks-shell .task-order{width:100%}
 :root[data-theme] .tasks-shell .task-order .filter-field{flex:1;display:grid;gap:5px}
 :root[data-theme] .tasks-shell .task-order .icon-filter{width:100%;min-width:0}
 :root[data-theme] .tasks-shell .task-table-row{grid-template-columns:24px minmax(0,1fr) 98px;gap:7px 8px;padding:12px;min-height:0}
 :root[data-theme] .tasks-shell .task-table-row>.task-open{grid-column:2/-1;grid-row:1;min-height:44px;padding-left:10px}
 :root[data-theme] .tasks-shell .task-table-row .entry-title>strong{font-size:15px}
 :root[data-theme] .tasks-shell .task-table-row>.pill{grid-column:2;grid-row:2;justify-self:start;margin:0}
 :root[data-theme] .tasks-shell .task-progress-column{grid-column:3/-1;grid-row:2}
 :root[data-theme] .tasks-shell .task-table-row>.task-project-column{grid-column:2/-1;grid-row:3}
 :root[data-theme] .tasks-shell .task-table-row>.item-signals{grid-column:2/-1;grid-row:4}
 :root[data-theme] .tasks-shell .task-table-row>.icon-btn[data-action=plan-task]{grid-column:2;grid-row:5;min-width:44px;min-height:44px;width:44px}
 :root[data-theme] .tasks-shell .task-table-row>.entry-actions{grid-column:3;grid-row:5}
 :root[data-theme] .tasks-shell .task-table-row .entry-edit{min-width:44px;width:44px;min-height:44px}
 :root[data-theme] .tasks-shell .task-table-row .entry-menu>summary{min-width:44px;width:44px;min-height:44px}
 :root[data-theme] .tasks-shell .task-table-row>.entry-details{grid-row:6;padding-inline:0}
}
@media(max-width:700px){
 :root[data-theme] .tasks-shell .main{padding:18px 16px 110px}
 :root[data-theme] .tasks-shell .heading h1{font-size:32px}
 :root[data-theme] .tasks-shell .heading p{font-size:14px}
 :root[data-theme] .tasks-shell .task-view-nav{width:100%;justify-self:stretch}
 :root[data-theme] .tasks-shell .task-view-nav .view-tabs>button{flex-direction:column;min-height:58px;font-size:11px;padding:7px 3px;gap:5px}
 :root[data-theme] .tasks-shell .task-filters :is(.filters-toggle,.filter-clear),:root[data-theme] .tasks-shell .task-filters .task-search input{min-height:44px}
 :root[data-theme] .tasks-shell .task-state-count{min-height:76px;gap:8px;padding:10px}
 :root[data-theme] .tasks-shell .task-state-icon{width:34px;height:34px}
 :root[data-theme] .tasks-shell .task-summary-heading{align-items:flex-start}
 :root[data-theme] .tasks-shell .task-summary-heading>.task-summary-all{max-width:140px;text-align:right;font-size:11px}
 :root[data-theme] .tasks-shell .task-tools>.btn,:root[data-theme] .tasks-shell .task-order .icon-filter{min-height:44px}
 :root[data-theme] .tasks-shell .task-deadline-group>summary{min-height:44px;padding:9px 12px}
 :root[data-theme] .tasks-shell .task-deadline-group>summary>h3{font-size:20px}
}

/* Keep focus on the original action, including text-only summaries. */
[data-summary-entry]:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.p-board-card .p-card-menu{margin-left:auto}

/* Notes collection: coloured document headers, neutral reading surfaces. */
.notes-page{--notes-surface:#fff;container-type:inline-size}
:root[data-theme=dark] .notes-page{--notes-surface:var(--theme-panel)}
:root[data-theme] .notes-page .note-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;padding:16px 18px;margin-bottom:14px;background:var(--notes-surface)}
.notes-page .note-filters>.filter-panel-head{grid-column:2;grid-row:1;justify-content:flex-end;gap:12px}
.notes-page .note-filters>.filter-search{grid-column:1;grid-row:1;margin:0;max-width:460px}
.notes-page .note-filters .task-search{min-height:44px;background:var(--theme-input);border-color:var(--line)}
.notes-page .note-filters .filters-toggle{border:1px solid var(--line);background:var(--notes-surface);font-size:14px}
.notes-page .note-filters .filter-clear{color:var(--theme-blue-ink);font-size:13px;border-color:transparent}
.notes-page .note-filters.expanded>.filter-content{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;border:0}
.notes-page .note-filters .filter-field{display:grid;gap:5px;min-width:0;font-size:13px}
.notes-page .note-filters .filter-label{min-height:20px}
.notes-page .note-filters .filter-label>.icon{display:none}
.notes-page .note-filters select{min-height:42px;background:var(--theme-input);font-size:14px}
.notes-page .cards-grid{grid-template-columns:minmax(0,1fr);gap:16px}
:root[data-theme] .notes-page .note-card{--note-color:var(--theme-blue-ink);--note-soft:var(--theme-blue-soft);padding:0;min-height:342px;gap:0;background:var(--notes-surface);border:1px solid var(--line);border-top:2px solid color-mix(in srgb,var(--note-color) 35%,var(--notes-surface));border-radius:var(--radius-card,8px);box-shadow:none}
:root[data-theme] .notes-page .note-tone-teal{--note-color:var(--theme-accent);--note-soft:var(--theme-accent-soft)}
:root[data-theme] .notes-page .note-tone-violet{--note-color:var(--theme-violet);--note-soft:var(--theme-violet-soft)}
:root[data-theme] .notes-page .note-tone-amber{--note-color:var(--theme-gold);--note-soft:var(--theme-gold-soft)}
.notes-page .note-heading{margin:0;border-radius:var(--radius-card,8px) var(--radius-card,8px) 0 0;background:var(--note-soft)}
.notes-page .note-heading>.note-open{display:flex;flex-direction:row;align-items:center;gap:16px;width:100%;min-height:76px;padding:14px 20px;text-align:left;color:var(--ink);border-radius:var(--radius-card,8px) var(--radius-card,8px) 0 0}
.notes-page .note-open:is(:hover,:focus-visible){background:color-mix(in srgb,var(--note-color) 8%,var(--note-soft))}
.notes-page .note-card-icon{width:48px;height:48px;border-radius:var(--radius,10px);background:color-mix(in srgb,var(--note-color) 15%,var(--note-soft));color:var(--note-color)}
.notes-page .note-card-icon>.icon{width:32px;height:32px}
.notes-page .note-title{font:700 22px/1.25 var(--font-heading);letter-spacing:-.45px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notes-page .preview-chevron{width:18px;height:18px;color:var(--note-color)}
.notes-page .note-card.expanded .preview-chevron{transform:rotate(90deg)}
.notes-page .note-card-content{display:flex;flex-direction:column;flex:1;min-width:0;padding:12px 20px 16px;gap:14px;background:var(--notes-surface);border-radius:0 0 var(--radius-card,8px) var(--radius-card,8px)}
.notes-page .note-labels{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.notes-page .note-labels .project-label{max-width:100%;background:var(--note-soft);color:var(--note-color);font-size:13px;padding:5px 9px;border-radius:var(--radius-control,6px)}
.notes-page .note-pinned{display:inline-flex;align-items:center;gap:7px;border-radius:var(--radius-control,6px);background:var(--theme-gold-soft);color:var(--theme-gold);font-size:13px;padding:5px 9px}
.notes-page .note-pinned>.icon{width:17px;height:17px}
.notes-page .note-excerpt{margin:0;color:var(--muted);font-size:15px;line-height:1.6;-webkit-line-clamp:5;white-space:pre-line}
.notes-page .note-card.expanded .note-excerpt{display:none}
.notes-page .note-card-content>.item-signals{margin-top:auto;gap:6px 12px;font-size:12px}
.notes-page .note-card-content>.item-signals:empty{display:none}
.notes-page .note-footer{margin-top:auto;min-width:0}
.notes-page .card-meta{gap:4px;margin:0;padding-top:6px;border-top:1px solid var(--line);font-size:13px;flex-wrap:wrap}
.notes-page .card-meta>time{margin-right:auto}
.notes-page .card-meta>.entry-actions{margin-left:0}
.notes-page .entry-edit{font-size:13px;color:var(--muted);padding-inline:6px}
.notes-page .note-pin{min-width:36px;color:var(--muted)}
.notes-page .note-pin[aria-pressed=true]{color:var(--theme-gold)}
.notes-page .note-pin[aria-pressed=true]>.icon{fill:var(--theme-gold)}
.notes-page .tags{margin-top:6px;gap:7px}
.notes-page .tag{padding:4px 10px;border-radius:var(--radius-control,6px);background:var(--note-soft);color:var(--note-color);font-size:12px}
.notes-page .entry-details{padding:12px 0 0}
@container(min-width:660px){.notes-page .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(min-width:1020px){.notes-page .cards-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){
  .notes-page .note-filters.expanded>.filter-content{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  :root[data-theme] .notes-page .note-filters{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}
  .notes-page .note-filters>.filter-search{grid-column:1;grid-row:1;max-width:none}
  .notes-page .note-filters>.filter-panel-head{grid-column:1;grid-row:2;justify-content:space-between;gap:8px}
  :root[data-theme] .notes-page .note-card{min-height:285px}
  .notes-page .note-heading>.note-open{padding:12px 16px;gap:12px;min-height:74px}
  .notes-page .note-card-content{padding:12px 16px 16px}
  .notes-page .note-title{font-size:21px}
  .notes-page .note-card-icon{width:42px;height:42px}
  .notes-page .note-card-icon>.icon{width:28px;height:28px}
  .notes-page .note-filters .filter-clear{padding-inline:6px}
}
@media(max-width:360px){.notes-page .note-filters.expanded>.filter-content{grid-template-columns:minmax(0,1fr)}}

/* Project overview: colour identifies headers and progress; reading text stays neutral. */
.p-overview-page{--project-card-surface:#fff;container-type:inline-size}
:root[data-theme=dark] .p-overview-page{--project-card-surface:var(--theme-panel)}
:root[data-theme] .projects-shell .p-overview-page .p-hero{min-height:0;margin:0 0 16px;padding:0}
.projects-shell .p-overview-page .p-hero small{font-size:15px;color:var(--muted)}
:root[data-theme] .projects-shell .p-overview-page .p-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0;margin:0 0 14px;border:0;border-radius:0;background:transparent}
.p-overview-metric{display:flex;align-items:center;gap:22px;padding:16px;min-width:0;min-height:92px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--project-card-surface)}
.p-overview-metric>div{display:grid;gap:2px;min-width:0;color:var(--muted);font-size:13px}
.p-overview-metric strong{font:700 32px/1.1 var(--font-heading);color:var(--ink)}
.p-overview-metric strong small{font-size:21px;color:var(--muted)}
.p-overview-icon{display:inline-grid;place-items:center;flex:none;width:56px;height:56px;border-radius:var(--radius,10px);background:var(--theme-accent-soft);color:var(--theme-accent)}
.p-overview-metric:nth-child(2) .p-overview-icon{background:var(--theme-violet-soft);color:var(--theme-violet)}
.p-overview-metric:nth-child(3) .p-overview-icon{background:var(--theme-green-soft);color:var(--theme-green)}
:root[data-theme] .projects-shell .p-overview-page .p-overview .icon{width:31px;height:31px;margin:0}
.projects-shell .p-overview-page .p-overview-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:28px}
.projects-shell .p-overview-page .p-overview-tools .p-search{max-width:none;min-width:0;min-height:44px;background:var(--project-card-surface)}
.projects-shell .p-overview-page .p-overview-tools .segmented{gap:0;padding:0;background:var(--project-card-surface);border:1px solid var(--line);border-radius:var(--radius-card,8px);overflow:hidden}
.projects-shell .p-overview-page .p-overview-tools .segmented button{min-height:40px;padding:8px 12px;border-radius:0;color:var(--ink)}
.projects-shell .p-overview-page .p-overview-tools .segmented button+button{border-left:1px solid var(--line)}
.projects-shell .p-overview-page .p-overview-tools .segmented button.active{color:var(--theme-action-ink);background:var(--theme-action)}
.projects-shell .p-overview-page .p-sort{display:flex;gap:7px;font-size:12px;color:var(--muted)}
.projects-shell .p-overview-page .p-sort select{min-height:42px;max-width:160px;background:var(--project-card-surface)}
.projects-shell .p-overview-page .p-participation{min-width:0}
.projects-shell .p-overview-page .p-participation select{min-width:0;max-width:260px;text-overflow:ellipsis}
.projects-shell .p-overview-page .p-overview-clear{grid-column:1/-1;justify-self:end;margin:0 0 0 auto}
:root[data-theme] .projects-shell .p-overview-page .p-cards{gap:28px 16px;grid-template-columns:minmax(0,1fr)}
:root[data-theme] .projects-shell .p-overview-page .p-card{--project-header-ink:var(--project-color);padding:0;gap:0;min-height:320px;border:1px solid var(--line);border-top:2px solid var(--project-color);border-radius:var(--radius-card,8px);background:var(--project-card-surface)}
:root[data-theme=dark] .projects-shell .p-overview-page .p-card{--project-header-ink:var(--project-dark-color);border-top-color:var(--project-dark-color)}
:root[data-theme] .projects-shell .p-overview-page .p-card-head{display:grid;grid-template-columns:50px minmax(0,1fr) 28px;align-items:center;gap:14px;padding:14px 18px;min-height:76px;background:color-mix(in srgb,var(--project-header-ink) 10%,var(--project-card-surface));border-radius:var(--radius-card,8px) var(--radius-card,8px) 0 0}
.projects-shell .p-overview-page .p-card-head>div{grid-column:auto;grid-row:auto}
:root[data-theme] .projects-shell .p-overview-page .p-card .p-folder{width:50px;height:50px;color:var(--project-header-ink);background:color-mix(in srgb,var(--project-header-ink) 16%,var(--project-card-surface));border-radius:var(--radius,10px)}
.projects-shell .p-overview-page .p-folder>.icon{width:31px;height:31px}
:root[data-theme] .projects-shell .p-overview-page .p-card h2{display:flex;align-items:center;gap:7px;font:700 21px/1.25 var(--font-heading);letter-spacing:-.45px}
.projects-shell .p-overview-page .p-title-link{font:inherit;color:var(--ink);min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.projects-shell .p-overview-page .p-title-link:hover{color:var(--ink)}
.projects-shell .p-overview-page .p-card-favorite{display:inline-flex;flex:none;color:var(--theme-gold)}
.projects-shell .p-overview-page .p-card-favorite>.icon{width:18px;height:18px;fill:currentColor}
:root[data-theme] .projects-shell .p-overview-page .p-card-head .p-card-state{display:flex;align-items:center;gap:5px;font-size:12px;line-height:1.3;letter-spacing:0;color:var(--muted);margin:6px 0 0}
.projects-shell .p-overview-page .p-card-state>.icon{width:11px;height:11px;color:var(--project-header-ink)}
.projects-shell .p-overview-page .p-card-state[data-state=active]>.icon{fill:currentColor}
.projects-shell .p-overview-page .p-invited-badge{position:absolute;z-index:2;top:-13px;right:16px;display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 32px);height:25px;padding:0 9px;border:1px solid #7650ad;border-radius:var(--radius-control,6px);background:#7650ad;color:#fff;font:600 12px/1 var(--font-body);white-space:nowrap;pointer-events:none}
.projects-shell .p-overview-page .p-invited-badge>.icon{width:14px;height:14px;flex:none}
.projects-shell .p-overview-page .p-card-state:has(.p-card-creator){flex-wrap:wrap}
.projects-shell .p-overview-page .p-card-creator{min-width:0;overflow-wrap:anywhere;border-left:1px solid var(--line);padding-left:7px;margin-left:2px}
.projects-shell .p-overview-page .p-card-actions{justify-self:end;align-self:start}
.projects-shell .p-overview-page .p-card-actions .entry-menu>summary{min-width:28px;min-height:32px;display:grid;place-items:center;color:var(--ink);padding:0}
.projects-shell .p-overview-page .p-project-card-content{display:flex;flex:1;flex-direction:column;min-width:0;gap:12px;padding:12px 18px 14px;background:var(--project-card-surface);border-radius:0 0 var(--radius-card,8px) var(--radius-card,8px);color:var(--ink)}
:root[data-theme] .projects-shell .p-overview-page .p-card-description{font-size:14px;line-height:1.5;min-height:0;margin:0;color:var(--muted);-webkit-line-clamp:2}
.projects-shell .p-overview-page .p-card-description a{color:var(--ink)}
.projects-shell .p-overview-page .p-project-card-content>.item-signals{margin:0;gap:8px 14px;font-size:12px;color:var(--muted)}
.projects-shell .p-overview-page .p-project-card-content>.item-signals:empty{display:none}
.projects-shell .p-overview-page .p-project-card-content .item-signal{color:var(--muted)}
.projects-shell .p-overview-page .p-project-card-content .mail-context-badge{background:transparent;color:var(--muted);border-color:var(--line)}
.projects-shell .p-overview-page .p-project-card-content .mail-context-dot{background:var(--muted)}
.projects-shell .p-overview-page .p-project-card-content .item-signal.is-new{color:var(--theme-gold);background:var(--theme-gold-soft)}
.projects-shell .p-overview-page .p-progress-label{font-size:12px;align-items:baseline;flex-wrap:wrap;gap:4px 10px;color:var(--muted)}
.projects-shell .p-overview-page .p-progress-label>span:last-child{font-size:12px;gap:5px;color:var(--muted)}
.projects-shell .p-overview-page .p-progress-label strong{font-size:13px;color:var(--ink)}
:root[data-theme] .projects-shell .p-overview-page .p-project-card-progress progress{height:10px;margin-top:7px}
:root[data-theme] .projects-shell .p-overview-page .p-project-card-progress progress::-webkit-progress-value{background:var(--project-header-ink)}
.projects-shell .p-overview-page .p-project-card-progress progress::-moz-progress-bar{background:var(--project-header-ink)}
:root[data-theme] .projects-shell .p-overview-page .p-next{display:flex;align-items:flex-start;gap:12px;min-width:0;margin:3px 0;font-size:14px}
.projects-shell .p-overview-page .p-next>.p-next-icon{width:23px;height:23px;margin-top:3px;color:var(--muted)}
.projects-shell .p-overview-page .p-next-copy{flex:1;min-width:0}
:root[data-theme] .projects-shell .p-overview-page .p-next strong{display:block;margin:0 0 3px;font-size:12px;font-weight:400;color:var(--muted)}
:root[data-theme] .projects-shell .p-overview-page .p-next .text-btn{padding:0;min-height:24px;text-align:left;max-width:100%;overflow-wrap:anywhere;color:var(--ink)!important;font-size:14px}
.projects-shell .p-overview-page .p-next-date{display:inline-flex;align-items:flex-start;gap:6px;max-width:42%;font-size:12px;color:var(--muted);padding-top:3px}
.projects-shell .p-overview-page .p-next-date>.icon{width:19px;height:19px;flex:none}
.projects-shell .p-overview-page .p-project-card-meta{margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}
:root[data-theme] .projects-shell .p-overview-page .p-card footer{font-size:12px;gap:8px 12px;align-items:flex-start;color:var(--muted)}
.projects-shell .p-overview-page .p-card footer>span{gap:6px;max-width:100%}
.projects-shell .p-overview-page .p-card footer>span+span{padding:0;border:0}
.projects-shell .p-overview-page .p-card footer .icon{width:17px;height:17px;color:inherit}
.projects-shell .p-overview-page .p-project-card-content [data-help-passive]{position:relative;z-index:2}
.projects-shell .p-overview-page .p-project-card-content .p-alert{color:var(--danger-ink)}
.projects-shell .p-overview-page .p-card-warning{display:flex;align-items:flex-start;gap:7px;font-size:12px}
.projects-shell .p-overview-page .p-card-warning>.icon{width:17px;height:17px;flex:none}
.projects-shell .p-overview-page .p-wait{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-radius:var(--radius-control,6px);background:var(--theme-gold-soft);color:var(--theme-gold);font-size:12px}
.projects-shell .p-overview-page .p-wait>.icon{width:18px;height:18px;flex:none}
@container(min-width:650px){:root[data-theme] .projects-shell .p-overview-page .p-cards:not(.p-cards-list){grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(min-width:1040px){:root[data-theme] .projects-shell .p-overview-page .p-cards:not(.p-cards-list){grid-template-columns:repeat(3,minmax(0,1fr))}}
:root[data-theme] .projects-shell .p-overview-page .p-cards-list .p-card{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,2fr);min-height:0;gap:0}
:root[data-theme] .projects-shell .p-overview-page .p-cards-list .p-card-head{grid-column:1;grid-row:1;align-self:stretch;align-content:start;border-radius:var(--radius-card,8px) 0 0 var(--radius-card,8px)}
.projects-shell .p-overview-page .p-cards-list .p-project-card-content{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 24px;border-radius:0 var(--radius-card,8px) var(--radius-card,8px) 0}
.projects-shell .p-overview-page .p-cards-list .p-project-card-content>*{grid-column:auto;grid-row:auto;margin:0}
.projects-shell .p-overview-page .p-cards-list .p-project-card-content>.p-next{grid-column:2;grid-row:1/4}
.projects-shell .p-overview-page .p-cards-list .p-project-card-content>:is(.p-wait,.p-card-warning,.p-project-card-meta,.p-order-tools){grid-column:1/-1;grid-row:auto}
@media(max-width:1200px){
 .projects-shell .p-overview-page .p-overview-tools{grid-template-columns:minmax(0,1fr) auto}
 .projects-shell .p-overview-page .p-overview-tools .p-search{grid-column:1}
 .projects-shell .p-overview-page .p-overview-tools .p-sort{grid-column:1}
 .projects-shell .p-overview-page .p-overview-tools .p-card-views{justify-self:end}
}
@media(max-width:800px){
 :root[data-theme] .projects-shell .p-overview-page .p-overview{grid-template-columns:minmax(0,1fr);gap:10px}
 .p-overview-metric{min-height:78px;padding:12px 16px;gap:16px}
 .p-overview-icon{width:46px;height:46px}
 .p-overview-metric>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
 .p-overview-metric strong{font-size:28px}
 :root[data-theme] .projects-shell .p-overview-page .p-cards-list .p-card{display:flex}
 :root[data-theme] .projects-shell .p-overview-page .p-cards-list .p-card-head{border-radius:var(--radius-card,8px) var(--radius-card,8px) 0 0}
 .projects-shell .p-overview-page .p-cards-list .p-project-card-content{display:flex;border-radius:0 0 var(--radius-card,8px) var(--radius-card,8px)}
}
@media(max-width:700px){
 .projects-shell .p-overview-page .p-overview-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .projects-shell .p-overview-page .p-overview-tools>*{grid-column:1!important}
 .projects-shell .p-overview-page .p-overview-tools .segmented{display:flex;flex-wrap:nowrap;justify-self:stretch}
 .projects-shell .p-overview-page .p-overview-tools .segmented button{flex:1;min-width:0;min-height:44px;padding-inline:9px;font-size:12px}
 .projects-shell .p-overview-page .p-sort{justify-content:space-between}
 .projects-shell .p-overview-page .p-sort select{max-width:none;width:68%}
 .projects-shell .p-overview-page .p-participation select{max-width:68%}
 :root[data-theme] .projects-shell .p-overview-page .p-card-head{grid-template-columns:44px minmax(0,1fr) 28px;padding:12px 14px;gap:11px}
 :root[data-theme] .projects-shell .p-overview-page .p-card .p-folder{width:44px;height:44px}
 .projects-shell .p-overview-page .p-card-head>div{grid-column:auto;grid-row:auto}
 :root[data-theme] .projects-shell .p-overview-page .p-card h2{font-size:20px}
 .projects-shell .p-overview-page .p-project-card-content{padding:12px 14px 14px}
 .projects-shell .p-overview-page .p-next-date{max-width:40%}
 :root[data-theme] .projects-shell .topbar .create-wrap:has([data-action=project-new]){display:none}
 .projects-shell:has(.p-overview-page) .heading p{max-width:29ch}
}

.projects-shell .p-overview-page .p-mobile-new{display:none}
@media(max-width:700px){
 .projects-shell .p-overview-page .p-hero{flex-wrap:wrap;gap:10px}
 .projects-shell .p-overview-page .p-hero>div{flex:1 1 220px}
 .projects-shell .p-overview-page .p-mobile-new{display:inline-flex;margin-left:auto!important;min-height:44px}
}

:root[data-theme] .projects-shell .main:has(.p-overview-page){padding:24px 24px 36px}
:root[data-theme] .projects-shell:has(.p-overview-page) .topbar{margin-bottom:14px}
:root[data-theme] .projects-shell:has(.p-overview-page) .heading h1{line-height:1.05}
:root[data-theme] .projects-shell:has(.p-overview-page) .heading p{margin-top:4px;font-size:17px;line-height:1.3}
.projects-heading-date{display:block;margin-top:4px;font-size:15px;line-height:1.4;color:var(--muted)}
:root[data-theme] .projects-shell .p-overview-page .p-hero{display:none}
@media(max-width:700px){
 :root[data-theme] .projects-shell .main:has(.p-overview-page){padding:20px 16px 110px}
 :root[data-theme] .projects-shell:has(.p-overview-page) .heading p{font-size:14px}
 .projects-heading-date{font-size:12px}
 :root[data-theme] .projects-shell .p-overview-page .p-hero{display:flex;margin-bottom:12px}
 .projects-shell .p-overview-page .p-hero>div{display:none}
 :root[data-theme] .projects-shell .p-overview-page .p-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .p-overview-metric{min-height:116px;flex-direction:column;align-items:flex-start;gap:8px;padding:10px}
 .p-overview-metric>div{display:grid;gap:3px;font-size:11px;line-height:1.3}
 .p-overview-icon{width:34px;height:34px;border-radius:var(--radius-card,8px)}
 :root[data-theme] .projects-shell .p-overview-page .p-overview .icon{width:22px;height:22px}
 .p-overview-metric strong{font-size:24px}
 .p-overview-metric strong small{font-size:14px}
}

/* Remaining workspaces: capture, preferences and keyboard help. */
:root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .main{padding:14px 24px 30px 32px;container-type:inline-size}
:root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .heading{padding:0;min-width:0}
:root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .heading h1{font:700 44px/1.1 var(--font-heading);letter-spacing:-1px;margin:0}
:root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .heading p{font-size:17px;line-height:1.35;margin:3px 0 0}
.workspace-heading-date{display:block;font-size:15px;line-height:1.4;margin-top:3px;color:var(--muted)}
:root[data-theme] .app-shell:is(.ideas-shell,.settings-shell) .topbar{margin-bottom:10px;align-items:flex-start}
:root[data-theme] .app-shell.help-shell .topbar{margin-bottom:28px;align-items:flex-start}
.utility-tone-teal{--utility-soft:var(--theme-accent-soft);--utility-tone:var(--theme-accent)}
.utility-tone-blue{--utility-soft:var(--theme-blue-soft);--utility-tone:var(--theme-blue-ink)}
.utility-tone-violet{--utility-soft:var(--theme-violet-soft);--utility-tone:var(--theme-violet)}
.utility-tone-gold{--utility-soft:var(--theme-gold-soft);--utility-tone:var(--theme-gold)}
.utility-panel-heading{display:flex;align-items:center;gap:18px;min-height:64px;padding:9px 18px;background:var(--utility-soft);color:var(--ink)}
.utility-heading-icon{display:grid;place-items:center;width:48px;height:46px;flex:none;border-radius:var(--radius-card,8px);background:color-mix(in srgb,var(--utility-tone) 12%,var(--utility-soft));color:var(--utility-tone)}
.utility-heading-icon>.icon{width:29px;height:29px}
.utility-panel-heading>div{min-width:0}
:root[data-theme] .utility-panel-heading h2{font:700 23px/1.3 var(--font-heading);letter-spacing:-.4px;margin:0;color:var(--ink)}
.utility-panel-heading p{font-size:12px;line-height:1.4;color:var(--muted);margin:3px 0 0}
/* Ideas: the capture controls, list and organizer keep their existing actions. */
:root[data-theme] .app-shell.ideas-shell .ideas-page .idea-capture{padding:0!important;margin:0 0 12px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);box-shadow:none;display:block}
.idea-capture-heading{padding:13px 20px;background:var(--theme-accent-soft);border-radius:var(--radius-card,8px) var(--radius-card,8px) 0 0}
:root[data-theme] .ideas-page .idea-capture-heading h2{display:flex;align-items:center;gap:18px;font:700 23px/1.3 var(--font-heading);margin:0}
.idea-capture-heading h2>.icon{width:26px;height:26px;color:var(--theme-accent)}
:root[data-theme] .app-shell.ideas-shell .ideas-page .idea-capture form.quick-capture{background:transparent;border:0;box-shadow:none;gap:10px;margin:0;padding:14px 18px 0;min-height:0;border-radius:0;flex-wrap:nowrap}
:root[data-theme] .app-shell.ideas-shell .ideas-page .idea-capture form.quick-capture>input{height:50px;min-height:50px;padding:12px 16px;border:1px solid var(--line)!important;border-radius:var(--radius-control,6px);background:var(--theme-input)!important;font-size:16px;flex:1;min-width:0}
:root[data-theme] .app-shell.ideas-shell .idea-capture form.quick-capture>.icon-btn{height:50px;min-height:50px;width:54px;min-width:54px;background:var(--theme-action);color:var(--theme-action-ink);border-radius:var(--radius-card,8px)}
:root[data-theme] .ideas-shell .idea-capture #idea-capture-tools{margin:14px 18px 15px}
:root[data-theme] .ideas-shell .idea-shortcut-buttons{justify-content:center;gap:14px}
:root[data-theme] .ideas-shell .idea-shortcut-button{min-height:43px;padding:8px 16px;font-size:14px;gap:10px;background:var(--theme-input);border-color:var(--line);color:var(--ink)}
:root[data-theme] .ideas-shell .idea-shortcut-button>.icon{width:23px;height:23px;color:var(--theme-accent)}
:root[data-theme] .ideas-shell .idea-shortcut-button[data-kind=tag]>.icon{color:var(--theme-blue-ink)}
:root[data-theme] .ideas-shell .idea-shortcut-button[data-kind=time]{background:var(--theme-gold-soft)}
:root[data-theme] .ideas-shell .idea-shortcut-button[data-kind=time]>.icon{color:var(--theme-gold)}
:root[data-theme] .ideas-shell .idea-shortcut-button[data-kind=repeat]>.icon{color:var(--theme-violet)}
:root[data-theme] .ideas-shell .idea-shortcut-button[aria-expanded=true]{background:var(--theme-violet-soft);border-color:var(--theme-violet)}
:root[data-theme] .ideas-shell .idea-capture #idea-capture-types{margin:12px 18px 0}
:root[data-theme] .ideas-shell .idea-capture .idea-capture-preview{margin:0 18px 14px;color:var(--muted);font-size:12px}
:root[data-theme] .ideas-shell .idea-shortcut-popup{padding:0;overflow:hidden;background:var(--surface);border-color:var(--line)}
:root[data-theme] .ideas-shell .idea-shortcut-heading{padding:10px 14px;margin:0;background:var(--theme-accent-soft)}
:root[data-theme] .ideas-shell .idea-shortcut-options{padding:8px 14px 14px}
:root[data-theme] .ideas-page .ideas-workspace{grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);gap:12px;align-items:stretch}
:root[data-theme] .ideas-page .ideas-workspace>.panel{padding:0;min-height:640px;overflow:hidden;border-radius:var(--radius-card,8px);box-shadow:none}
:root[data-theme] .ideas-page .idea-list-heading{padding:10px 18px;min-height:60px;background:var(--theme-blue-soft);border:0;gap:12px;flex-wrap:wrap}
:root[data-theme] .ideas-page .idea-list-heading h2{font:700 23px/1.3 var(--font-heading);gap:16px}
.idea-list-heading h2>.icon{width:27px;height:27px;color:var(--theme-blue-ink)}
:root[data-theme] .ideas-page .idea-count{font:400 13px/1.4 var(--font-body);padding:0;background:transparent;color:var(--muted);border-radius:0}
.idea-sort{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-left:auto}
:root[data-theme] .ideas-page .idea-sort select{max-width:148px;min-height:36px;font-size:12px;padding:5px 8px;background:var(--theme-input);border:1px solid var(--line);border-radius:var(--radius-small,4px)}
:root[data-theme] .ideas-page .idea-list{margin:0}
:root[data-theme] .ideas-page .idea-day{text-transform:none;letter-spacing:0;font-size:14px;line-height:1.4;font-weight:600;padding:12px 18px 7px;border-bottom:1px solid var(--line);margin:0}
:root[data-theme] .ideas-page .idea-select{padding:12px 18px;gap:16px;min-height:92px;align-items:flex-start}
:root[data-theme] .ideas-page .idea-item-icon{width:46px;height:40px;background:transparent;color:var(--theme-blue-ink);border-radius:0;margin-top:0}
:root[data-theme] .ideas-page .idea-item-icon>.icon{width:27px;height:27px}
:root[data-theme] .ideas-page .idea-row-copy{gap:4px}
:root[data-theme] .ideas-page .idea-row-copy strong{font:700 16px/1.25 var(--font-heading);color:var(--ink)}
:root[data-theme] .ideas-page .idea-excerpt{font-size:13px;color:var(--muted);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.idea-row-time{font-size:12px;line-height:1.4;color:var(--muted);white-space:nowrap;flex:none;margin-top:3px}
:root[data-theme] .ideas-page .idea-row-arrow{width:18px;height:18px;align-self:center;color:var(--theme-accent)}
:root[data-theme] .ideas-page .idea-row.selected{background:var(--theme-accent-soft);box-shadow:inset 4px 0 var(--theme-accent)}
:root[data-theme] .ideas-page .idea-row>.item-signals{padding:0 18px 12px 80px}
:root[data-theme] .ideas-page .idea-organizer-heading{margin:0;padding:10px 18px;min-height:60px;background:var(--theme-violet-soft)}
:root[data-theme] .ideas-page .idea-organizer-heading h2{font:700 23px/1.3 var(--font-heading);gap:16px}
:root[data-theme] .ideas-page .idea-organizer-heading h2>span{width:33px;height:33px;background:transparent;color:var(--theme-violet)}
:root[data-theme] .ideas-page .idea-organizer-heading h2 .icon{width:27px;height:27px}
:root[data-theme] .ideas-page .idea-source-heading{margin:22px 22px 0;padding-bottom:18px;border-bottom:1px solid var(--line)}
:root[data-theme] .ideas-page .idea-source-heading h3{font:700 20px/1.3 var(--font-heading);margin:0 0 6px}
:root[data-theme] .ideas-page .idea-source-heading p{font-size:13px;margin:0;color:var(--muted)}
:root[data-theme] .ideas-page .idea-source-heading p>.icon{display:none}
:root[data-theme] .ideas-page .idea-original{margin:24px 22px 0}
:root[data-theme] .ideas-page .idea-original>span{font-size:16px;line-height:1.3;font-weight:600;margin-bottom:8px}
:root[data-theme] .ideas-page .idea-original>div{border:1px solid var(--line);background:var(--theme-input);align-items:flex-start;padding:12px 14px;min-height:88px}
:root[data-theme] .ideas-page .idea-original p{font-size:13px;line-height:1.5;max-height:130px}
:root[data-theme] .ideas-page .idea-organize-options{gap:10px;margin:28px 22px 0}
:root[data-theme] .ideas-page .idea-types legend{font-size:16px;font-weight:600;margin-bottom:12px}
:root[data-theme] .ideas-page .idea-types .btn{flex-direction:column;gap:9px;min-height:92px;font-size:14px;background:var(--theme-accent-soft);border:0;color:var(--ink)}
:root[data-theme] .ideas-page .idea-types .btn>.icon{width:32px;height:32px;color:var(--theme-accent)}
:root[data-theme] .ideas-page .idea-types .btn[data-type=note]{background:var(--theme-blue-soft)}
:root[data-theme] .ideas-page .idea-types .btn[data-type=note]>.icon{color:var(--theme-blue-ink)}
:root[data-theme] .ideas-page .idea-types .btn[data-type=event]{background:var(--theme-violet-soft)}
:root[data-theme] .ideas-page .idea-types .btn[data-type=event]>.icon{color:var(--theme-violet)}
:root[data-theme] .ideas-page .idea-editor-help{font-size:13px;margin:0 0 10px}
:root[data-theme] .ideas-page .idea-save-info{background:var(--theme-gold-soft);border:0;padding:12px 14px;color:var(--theme-gold)}
:root[data-theme] .ideas-page .idea-organizer-actions{margin:8px -22px 0;padding:16px 18px;border-top:1px solid var(--line);justify-content:space-between}
:root[data-theme] .ideas-page .idea-organizer-actions .idea-delete{margin-left:auto;padding:10px 16px;border:1px solid color-mix(in srgb,var(--danger-ink) 35%,var(--line));border-radius:var(--radius-control,6px);background:var(--surface)}
:root[data-theme] .ideas-page .idea-organizer-empty{padding:28px;min-height:360px}
/* Settings: one preferences form and separate device actions, without nested forms. */
.settings-workspace{display:grid;gap:14px;min-width:0}
.settings-jump{display:flex;align-items:center;justify-self:start;gap:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-control,6px);overflow:hidden;max-width:100%}
.settings-jump button{font-size:13px;padding:10px 24px;min-height:40px;border-radius:0;color:var(--ink);position:relative}
.settings-jump button[aria-pressed=true]{background:var(--theme-accent-soft);color:var(--theme-accent);font-weight:650;box-shadow:inset 0 -3px var(--theme-accent)}
.settings-overview{display:block;min-width:0}
.settings-overview>form.settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;align-items:start}
.settings-left{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:14px;min-width:0}
:root[data-theme] .settings-workspace .panel{padding:0;min-width:0;overflow:hidden;border-radius:var(--radius-card,8px);box-shadow:none}
.settings-general{grid-column:1;grid-row:1}
.settings-notifications{grid-column:2;grid-row:1;align-self:stretch}
.settings-devices{grid-column:1;grid-row:2}
.settings-overview .settings-save{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card,8px);gap:12px;font-size:12px}
.settings-panel-body{padding:14px 18px 18px;display:grid;gap:13px;min-width:0}
.settings-workspace .field{font-size:12px;gap:5px;min-width:0}
.settings-workspace .field :is(input,select){height:36px;min-height:36px;font-size:13px;padding:6px 12px;border-color:var(--line);background:var(--theme-input);min-width:0;width:100%}
.settings-search{display:block;position:relative;min-width:0}
.settings-search>.icon{position:absolute;width:19px;height:19px;left:11px;top:9px;color:var(--muted)}
.settings-workspace .settings-search input{padding-left:39px}
:root[data-theme] .settings-workspace h3{font:700 16px/1.3 var(--font-heading);margin:6px 0 0}
.settings-workspace .capacity-fields{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.settings-workspace .capacity-fields>label{font-size:12px;min-width:0;display:grid;gap:5px}
.capacity-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius-control,6px);min-width:0;overflow:hidden;background:var(--theme-input)}
.settings-workspace .capacity-input input{width:100%;min-width:0;padding:6px 0 6px 9px;border:0;min-height:36px;height:36px;font-size:13px;background:transparent}
.capacity-input>span{padding:0 7px;color:var(--muted);font-size:12px;border-left:1px solid var(--line)}
.settings-workspace .notification-group{border-radius:0;border:0;border-bottom:1px solid var(--line);padding:0;margin:0}
.settings-workspace .notification-group>summary{font-size:13px;font-weight:500;padding:7px 0;min-height:30px}
.settings-workspace .notification-summary{margin-top:12px;border-radius:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0}
.settings-workspace .notification-summary>summary{font-size:13px;padding:9px 0}
.settings-workspace .notification-preferences>p{margin:0 0 10px}
.settings-workspace .notification-preferences .helper{font-size:11px}
.settings-workspace .notification-channel-heading{font-size:11px}
.settings-workspace .notification-event{font-size:12px;padding:8px 0}
.settings-workspace .notification-thresholds{gap:8px}
.settings-workspace .check-field{font-size:12px;align-items:center;gap:9px;line-height:1.5}
.settings-workspace .fields-two{gap:16px;min-width:0}
.settings-workspace .settings-devices>p,.settings-workspace .settings-devices>.push-actions,.settings-workspace .settings-devices>.device-row{margin:10px 18px}
.settings-workspace .settings-devices>.push-actions{display:flex;flex-wrap:wrap;gap:8px}
.settings-workspace .settings-devices>.push-actions .btn{min-height:36px;font-size:11px;padding:6px 11px}
.settings-workspace .settings-devices>.push-status{padding:7px 10px;border:0;background:var(--theme-gold-soft);color:var(--theme-gold);border-radius:var(--radius-control,6px);font-size:12px}
.settings-workspace .settings-devices>.helper{font-size:11px;margin-bottom:14px}
.settings-workspace .settings-devices>.form-error:empty{display:none}
.settings-disclosure{border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);min-width:0;overflow:hidden;scroll-margin-top:12px}
.settings-disclosure>summary{display:flex;align-items:center;gap:20px;padding:10px 18px;min-height:60px;list-style:none;background:var(--utility-soft);cursor:pointer}
.settings-disclosure>summary::-webkit-details-marker{display:none}
.settings-disclosure>summary>.icon:first-child{width:45px;height:40px;padding:7px;border-radius:var(--radius-card,8px);color:var(--utility-tone);background:color-mix(in srgb,var(--utility-tone) 10%,var(--utility-soft))}
.settings-disclosure>summary>span{display:flex;align-items:baseline;gap:24px;min-width:0;flex:1}
.settings-disclosure>summary strong{font:700 23px/1.3 var(--font-heading)}
.settings-disclosure>summary small{font-size:11px;color:var(--muted)}
.settings-disclosure>summary>.icon:last-child{width:18px;height:18px;color:var(--utility-tone);transition:transform .2s}
.settings-disclosure[open]>summary>.icon:last-child{transform:rotate(180deg)}
.settings-disclosure-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px}
:root[data-theme] .settings-workspace .settings-disclosure-content>.panel{padding:18px}
:root[data-theme] .settings-disclosure-content h2{font:700 20px/1.3 var(--font-heading);margin:0}
.settings-disclosure-content .settings-form{display:grid;gap:13px}
.settings-general,.settings-notifications{scroll-margin-top:12px}
/* Keyboard help uses the real application shortcuts. */
.help-workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;align-items:stretch}
:root[data-theme] .help-workspace>.panel{padding:0;border-radius:var(--radius-card,8px);overflow:hidden;box-shadow:none}
.help-navigation{grid-column:1;grid-row:1/span 2}
.help-creation{grid-column:2;grid-row:1}
.help-close{grid-column:2;grid-row:2}
.help-writing{grid-column:1/-1}
.help-workspace .shortcut-list{padding:0 18px;margin:0}
.help-workspace .shortcut-list>div{display:flex;gap:18px;align-items:center;padding:22px 8px;min-height:104px;border-bottom:1px solid var(--line)}
.help-workspace .shortcut-list>div:last-child{border:0}
.help-workspace .shortcut-list dd{display:flex;align-items:center;gap:28px;font-size:18px;margin:0;min-width:0;flex:1}
.help-workspace .shortcut-list dt{order:2;margin:0 0 0 auto;min-width:0;flex:none}
.help-workspace .shortcut-icon{display:grid;place-items:center;width:64px;height:62px;border-radius:var(--radius-card,8px);background:var(--theme-blue-soft);color:var(--theme-blue-ink);flex:none}
.help-workspace .shortcut-icon>.icon{width:33px;height:33px}
.help-creation .shortcut-icon{background:var(--theme-accent-soft);color:var(--theme-accent)}
.help-workspace kbd{display:inline-flex;align-items:center;justify-content:center;min-width:74px;min-height:54px;padding:10px 16px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--theme-input);color:var(--ink);font:600 17px/1.25 var(--font-body);box-shadow:0 2px 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.shortcut-key-combo{display:flex;gap:12px;align-items:center;font-size:16px;color:var(--muted)}
.help-workspace .help-writing>p{margin:0;padding:22px 28px;font-size:16px;line-height:1.6;color:var(--muted)}
@container(max-width:1050px){
 .ideas-page .idea-row-time{white-space:normal;max-width:100px}
 .settings-workspace .capacity-fields{gap:6px}
 .capacity-input>span{padding:0 4px}
 .help-workspace .shortcut-list dd{gap:16px;font-size:15px}
 .help-workspace .shortcut-icon{width:44px;height:46px}
 .help-workspace .shortcut-icon>.icon{width:27px;height:27px}
 .help-workspace kbd{min-width:50px;min-height:46px;padding:8px 11px;font-size:14px}
 .shortcut-key-combo{gap:6px}
}
@container(max-width:880px){
 :root[data-theme] .ideas-page .ideas-workspace{grid-template-columns:1fr}
 :root[data-theme] .ideas-page .ideas-workspace>.panel{min-height:0}
 :root[data-theme] .ideas-page .idea-organizer-empty{min-height:260px}
 .settings-overview>form.settings-form,.settings-disclosure-content{grid-template-columns:1fr}
 .settings-left,.settings-general,.settings-notifications,.settings-devices,.settings-overview .settings-save{grid-column:1;grid-row:auto}
 .settings-overview{gap:14px}
 .settings-notifications{align-self:start}
 .settings-disclosure>summary small{display:none}
 .help-workspace{grid-template-columns:1fr}
 .help-navigation,.help-creation,.help-close,.help-writing{grid-column:1;grid-row:auto}
}
@media(min-width:701px){@container(max-width:900px){
 :root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .topbar{flex-wrap:wrap;gap:12px}
 .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .topbar .heading{flex:1 0 100%}
 .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .topbar .search-box{max-width:none}
}}
@media(max-width:700px){
 :root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .main{padding:16px 14px 110px}
 :root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .heading h1{font-size:32px}
 :root[data-theme] .app-shell:is(.ideas-shell,.settings-shell,.help-shell) .heading p{font-size:14px}
 .workspace-heading-date{font-size:12px}
 .utility-panel-heading{padding:10px 14px;gap:12px;min-height:58px}
 .utility-heading-icon{width:38px;height:38px}
 .utility-heading-icon>.icon{width:25px;height:25px}
 :root[data-theme] .utility-panel-heading h2{font-size:20px}
 :root[data-theme] .ideas-page .idea-capture-heading h2{font-size:21px;gap:12px}
 .idea-capture-heading{padding:12px 14px}
 :root[data-theme] .app-shell.ideas-shell .ideas-page .idea-capture form.quick-capture{padding:12px 12px 0}
 :root[data-theme] .app-shell.ideas-shell .ideas-page .idea-capture form.quick-capture>input{font-size:14px;min-height:46px;height:46px;padding:10px}
 :root[data-theme] .app-shell.ideas-shell .idea-capture form.quick-capture>.icon-btn{min-width:44px;width:44px;min-height:46px;height:46px}
 :root[data-theme] .ideas-shell .idea-capture #idea-capture-tools{margin:12px}
 :root[data-theme] .ideas-shell .idea-shortcut-buttons{gap:8px}
 :root[data-theme] .ideas-shell .idea-shortcut-button{flex:1 1 28%;padding:8px;font-size:12px;gap:6px;min-height:44px}
 :root[data-theme] .ideas-shell .idea-shortcut-button>.icon{width:20px;height:20px}
 :root[data-theme] .ideas-page .idea-list-heading{padding:12px;gap:10px}
 :root[data-theme] .ideas-page .idea-list-heading h2{font-size:21px;gap:10px}
 .idea-sort{font-size:11px}
 :root[data-theme] .ideas-page .idea-select{padding:14px 12px;gap:10px;flex-wrap:wrap;min-height:90px}
 :root[data-theme] .ideas-page .idea-item-icon{width:28px;height:32px}
 :root[data-theme] .ideas-page .idea-item-icon>.icon{width:25px;height:25px}
 :root[data-theme] .ideas-page .idea-row-copy{flex:1 1 calc(100% - 66px)}
 :root[data-theme] .ideas-page .idea-row-copy strong{font-size:15px}
 .idea-row-time{margin:0 0 0 38px;font-size:11px;order:3;max-width:none!important}
 :root[data-theme] .ideas-page .idea-source-heading{margin:18px 14px 0;padding-bottom:14px}
 :root[data-theme] .ideas-page .idea-source-heading h3{font-size:18px}
 :root[data-theme] .ideas-page .idea-original{margin:18px 14px 0}
 :root[data-theme] .ideas-page .idea-organize-options{margin:22px 14px 0}
 :root[data-theme] .ideas-page .idea-types .btn{font-size:12px;min-height:84px}
 :root[data-theme] .ideas-page .idea-types .btn>.icon{width:28px;height:28px}
 :root[data-theme] .ideas-page .idea-organizer-actions{margin-inline:-14px;padding:14px}
 :root[data-theme] .ideas-page .idea-organizer-actions .idea-delete{font-size:12px;padding:10px}
 .settings-jump{justify-self:stretch}
 .settings-jump button{flex:1;padding:10px 6px;font-size:12px;min-height:44px}
 .settings-panel-body{padding:14px;gap:14px}
 .settings-workspace .capacity-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
 .settings-workspace .field :is(input,select){font-size:16px;min-height:44px;height:44px}
 .settings-workspace .capacity-input input{min-height:40px;height:40px}
 .settings-workspace .settings-save .btn{width:100%}
 .settings-disclosure>summary{padding:10px 14px;gap:12px}
 .settings-disclosure>summary strong{font-size:21px}
 .settings-disclosure-content{padding:12px}
 .settings-workspace .notification-event{grid-template-columns:minmax(0,1fr) 50px 50px}
 .settings-workspace .notification-channel-heading{grid-template-columns:minmax(0,1fr) 50px 50px}
 .help-workspace{gap:14px}
 .help-workspace .shortcut-list{padding:0 12px}
 .help-workspace .shortcut-list>div{padding:16px 0;gap:10px;min-height:88px}
 .help-workspace .shortcut-list dd{font-size:14px;gap:12px}
 .help-workspace .shortcut-icon{width:40px;height:44px}
 .help-workspace .shortcut-icon>.icon{width:26px;height:26px}
 .help-workspace kbd{min-width:46px;min-height:44px;padding:8px;font-size:13px}
 .shortcut-key-combo{gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:115px;font-size:12px}
 .help-workspace .help-writing>p{font-size:14px;padding:16px}
}

.settings-workspace [data-settings-mail]{grid-column:1/-1;min-width:0}
:root[data-theme] .settings-workspace .mail-settings{padding:18px}
:root[data-theme] .app-shell.ideas-shell .idea-capture input:focus-visible{border-color:var(--theme-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent) 30%,transparent)!important}

:root[data-theme] .app-shell:is(.ideas-shell,.settings-shell) .heading p{font-size:16px;line-height:1.25;margin-top:0}
.app-shell:is(.ideas-shell,.settings-shell) .workspace-heading-date{font-size:14px;line-height:1.3;margin-top:0}
:root[data-theme] .app-shell.ideas-shell .topbar{margin-bottom:8px}
:root[data-theme] .app-shell.settings-shell .heading h1{font-size:40px}
:root[data-theme] .app-shell.settings-shell .main{padding-top:18px}
:root[data-theme] .app-shell.help-shell .topbar{margin-bottom:37px}
.settings-workspace .utility-panel-heading{padding-block:7px}
.settings-workspace .notification-group>summary{padding-block:5px}
.settings-workspace .notification-summary{margin-bottom:0}
.settings-workspace .settings-notifications .settings-panel-body{gap:10px;padding-top:12px;padding-bottom:16px}
.settings-workspace .settings-notifications .settings-panel-body>.helper{margin:0;font-size:11px;line-height:1.5}
.settings-workspace .settings-save{padding-block:6px}
.settings-workspace .settings-save>.btn{min-height:38px;padding-block:7px}
@media(max-width:700px){
 :root[data-theme] .app-shell.settings-shell .main{padding-top:16px}
 :root[data-theme] .app-shell.settings-shell .heading h1{font-size:32px}
 :root[data-theme] .app-shell:is(.ideas-shell,.settings-shell) .heading p{font-size:14px;line-height:1.35}
 .app-shell:is(.ideas-shell,.settings-shell) .workspace-heading-date{font-size:12px;line-height:1.4;margin-top:3px}
 .settings-workspace .settings-save>.btn{min-height:44px}
}

:root[data-theme] .ideas-page .idea-organizer-actions .idea-delete{color:var(--theme-coral);border-color:color-mix(in srgb,var(--theme-coral) 40%,var(--line))}

:root[data-theme] .ideas-shell .idea-shortcut-popup{display:flex;flex-direction:column}
.idea-shortcut-popup .idea-shortcut-heading{flex:none}
.idea-shortcut-popup .idea-shortcut-options{min-height:0}

/* Shared day previews for the mini-calendar and all planning views. */
:root[data-theme] .day-hover .day-hover-event{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-items:start;justify-items:start;width:100%;margin:0;padding:10px;text-align:left;white-space:normal}
:root[data-theme] .day-hover .day-hover-event>span,:root[data-theme] .day-hover .day-hover-event>strong{display:block;max-width:100%;text-align:left}
:root[data-theme] .day-hover .day-hover-event>.day-hover-meta{display:flex;align-items:flex-start;gap:6px;line-height:1.5}
:root[data-theme] .day-hover .day-hover-event>.project-label{display:inline-flex;align-items:center;gap:5px;min-width:0;width:auto}
.day-hover .project-label-text,.day-hover-event>strong{overflow-wrap:anywhere}
.day-hover-meta>.icon{flex:none;width:15px;height:15px;margin-top:1px}
.day-hover-empty{margin:4px 0;padding:12px 10px;color:var(--muted);font-size:13px;line-height:1.5}
:root[data-theme] .day-hover .day-hover-more{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin:10px 0 0;padding:10px;border-top:1px solid var(--line);border-radius:0;font-size:13px;white-space:normal;text-align:left}
:root[data-theme] .pl-daily>.pl-list-date{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 10px;font-size:14px;font-weight:600}


/* Project identity: a saved icon in the project's colour, with readable contrast. */
:root[data-theme] .projects-shell :is(.p-card,.p-detail-heading) .p-folder.p-project-icon,
:root[data-theme] .p-icon-preview .p-folder.p-project-icon{background:var(--project-color,var(--teal));color:var(--project-icon-ink,#fff);box-shadow:0 3px 8px #10282e1f}
.p-icon-picker{min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius-card,8px)}
:root[data-theme] .p-project-form>.p-icon-picker{grid-column:1/-1}
.p-icon-picker legend{font-size:13px}
.p-icon-chooser{min-width:0}
.p-icon-chooser>.p-icon-picker-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;list-style:none;cursor:pointer;padding:0;border:0}
.p-icon-picker-summary::-webkit-details-marker{display:none}
.p-icon-picker-summary:focus-visible{outline:3px solid var(--teal);outline-offset:5px;border-radius:var(--radius-control,6px)}
.p-icon-preview{display:flex;align-items:center;gap:12px;min-width:0;font-size:13px}
.p-icon-preview>span:last-child{display:grid;gap:3px}
.p-icon-preview small{color:var(--muted);font-size:12px}
.p-icon-preview .p-project-icon{width:44px;height:44px}
.p-icon-preview .p-project-icon>.icon{width:28px;height:28px}
.p-icon-choose-label{border-radius:var(--radius-control,6px);display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;white-space:nowrap;font-size:13px}
.p-icon-choose-label>.icon{width:17px;height:17px}
.p-icon-chooser[open]>.p-icon-picker-summary .p-icon-choose-label>.icon{transform:rotate(180deg)}
.p-icon-browser{padding-top:16px;margin-top:14px;border-top:1px solid var(--line)}
.p-icon-browser-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,200px);align-items:end;gap:12px}
.p-icon-browser-tools>.field{min-width:0;margin:0;font-size:12px}
.p-icon-browser-tools select{width:100%;min-width:0;min-height:44px}
.p-icon-search{position:relative;display:flex;align-items:center;min-width:0}
.p-icon-search>.icon{position:absolute;left:10px;width:18px;height:18px;color:var(--muted);pointer-events:none}
.p-icon-search input{width:100%;min-width:0;min-height:44px;padding:10px 10px 10px 34px;font-size:14px}
.p-icon-results-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0;font-size:12px;color:var(--muted)}
.p-icon-results-heading>.text-btn{min-height:36px;margin:0;font-size:12px}
.p-icon-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;max-height:300px;overflow-y:auto;overscroll-behavior:contain;padding:4px;scrollbar-width:thin}
.p-icon-option{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;min-height:78px;margin:0;padding:10px 5px;border:1px solid var(--line);border-radius:var(--radius-card,8px);background:var(--surface);color:var(--ink);font:12px/1.3 var(--font-body,Inter,sans-serif);text-align:center;cursor:pointer}
.p-icon-option>.icon{width:25px;height:25px;flex:none}
.p-icon-option>span{width:100%;overflow-wrap:normal}
.p-icon-option:enabled:hover{background:var(--teal-soft);border-color:var(--teal)}
.p-icon-option[aria-pressed=true],.p-icon-option[aria-pressed=true]:enabled:hover{background:var(--project-color);color:var(--project-icon-ink);border-color:var(--project-color);outline:2px solid var(--project-color);outline-offset:1px}
.p-icon-option:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.p-icon-empty{grid-column:1/-1;margin:0;padding:24px 12px;font-size:13px;color:var(--muted);text-align:center}
@media(max-width:500px){.p-icon-browser-tools{grid-template-columns:minmax(0,1fr)}.p-icon-options{max-height:250px}.p-icon-search input{font-size:16px}}

:root[data-theme] .projects-shell .mgmt-project-open{display:flex;align-items:center;gap:10px;text-align:left}
:root[data-theme] .projects-shell .mgmt-project-open .p-project-icon{width:36px;height:36px;border-radius:var(--radius-card,8px);background:var(--project-color);color:var(--project-icon-ink)}
.mgmt-project-open .p-project-icon>.icon{width:22px;height:22px}

/* Mobile controls retain a full target, independently of their visual label. */
@media(max-width:700px){
 :root[data-theme] .app-shell input[type=checkbox]{width:24px;height:24px;min-width:24px;flex-shrink:0}
 :root[data-theme] .projects-shell .p-overview-page .p-title-link{min-height:24px}
}
@media(max-width:360px){
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat{gap:8px;padding:10px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-icon{width:24px;height:24px;flex:0 0 24px}
 :root[data-theme] .dashboard-shell .today-dashboard .dashboard-stat-label{font-size:12px}
}

/* Project grid and list share the same hierarchy as the task views. */
:root[data-theme] .projects-shell .p-overview-page .p-overview-toolbar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;margin:0 0 14px;min-width:0}
.p-overview-primary{display:flex;align-items:center;flex:1;flex-wrap:wrap;gap:10px;min-width:0}
.projects-shell .p-overview-page .p-overview-primary .p-search{flex:0 1 322px;min-height:40px;border-color:var(--theme-control-line);border-radius:var(--radius-control,6px)}
.p-overview-primary .p-search input{width:100%;min-width:0;min-height:40px;padding:9px 0;font-size:13px}
.p-overview-primary .p-search>.icon{width:18px;height:18px;flex:none}
.p-overview-primary :is(.filters-toggle,.mgmt-views-toggle){min-height:40px;padding:8px 12px;font-size:12px;white-space:nowrap}
.projects-shell .p-overview-page .p-overview-toolbar .p-card-views{display:flex;flex:none;min-width:236px}
.projects-shell .p-overview-page .p-overview-toolbar .p-card-views>button{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:40px;font-size:13px;font-weight:500;color:var(--muted)}
.projects-shell .p-overview-page .p-overview-toolbar .p-card-views>button>.icon{width:18px;height:18px}
.projects-shell .p-overview-page .p-overview-toolbar .p-card-views>button.active{color:var(--theme-action-ink)}
.p-overview-summary{min-width:0;margin:0 0 12px}
.p-summary-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin:2px 0 12px}
.p-summary-heading>h2{margin:0;font:700 18px/1.3 var(--font-heading);color:var(--ink)}
.p-summary-heading>span{font-size:12px;color:var(--muted)}
.p-state-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
:root[data-theme] .p-state-count{--project-state-ink:var(--theme-blue-ink);--project-state-soft:var(--theme-blue-soft);display:flex;align-items:center;flex-direction:row;min-width:0;min-height:74px;padding:10px;gap:10px;text-align:left;border:1px solid var(--line);border-radius:var(--radius-control,6px);font:inherit;cursor:pointer}
:root[data-theme] .p-state-count.paused{--project-state-ink:var(--theme-gold);--project-state-soft:var(--theme-gold-soft)}
:root[data-theme] .p-state-count.completed{--project-state-ink:var(--theme-green);--project-state-soft:var(--theme-green-soft)}
:root[data-theme] .p-state-count.archived{--project-state-ink:var(--theme-violet);--project-state-soft:var(--theme-violet-soft)}
:root[data-theme] .p-state-count .task-state-icon{width:40px;height:40px;border-radius:var(--radius-card,8px);color:var(--project-state-ink);background:var(--project-state-soft)}
.p-state-count .task-state-icon>.icon{width:23px;height:23px}
.p-state-count .task-state-copy{min-width:0;gap:3px;font-size:11px;line-height:1.3}
:root[data-theme] .p-state-count .task-state-copy strong{font:700 25px/1 var(--font-heading);color:var(--ink)}
.p-state-count:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.p-state-count:hover{border-color:var(--teal)}
.projects-shell .p-overview-page>.p-overview-tabs{margin:0 0 12px;min-width:0}
.p-overview-tabs>button.active{background:var(--theme-action);border-color:var(--theme-action);color:var(--theme-action-ink)}
.p-overview-results-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;min-width:0;margin:0 0 20px}
.p-result-count{margin:0;font:500 17px/1.4 var(--font-heading);color:var(--ink)}
.p-overview-results-toolbar>.p-overview-secondary{flex:0 1 auto;width:auto;max-width:100%;gap:10px;margin-left:auto}
.projects-shell .p-overview-page .p-overview-results-toolbar .p-sort{align-items:center;gap:6px;font-size:11px;min-width:0}
.projects-shell .p-overview-page .p-overview-results-toolbar .p-sort :is(select,.icon-filter){min-height:38px;font-size:12px}
.p-overview-results-toolbar .p-overview-selection{min-height:38px;font-size:12px}
.p-overview-results-toolbar .p-overview-selection[aria-pressed=true]{background:var(--teal-soft);border-color:var(--teal)}
.p-overview-page:not(.p-selection-mode) .mgmt-select,.p-overview-page:not(.p-selection-mode) .mgmt-project-table tr>:first-child{display:none}
.p-overview-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:250px;padding:48px 20px;text-align:center;color:var(--muted)}
.p-overview-empty>.icon{width:46px;height:46px;margin-bottom:16px}
.p-overview-empty>h3{margin:0 0 8px;color:var(--ink);font:700 22px/1.3 var(--font-heading)}
.p-overview-empty>p{margin:0;font-size:14px}
.p-overview-toolbar .ma-filter-fields>.mgmt-toolbar{grid-column:1/-1;min-width:0;margin:0}
.p-overview-toolbar .ma-filter-fields>.field,.p-overview-toolbar .ma-filter-fields .mgmt-period-label{grid-column:1/-1}
.p-overview-toolbar .mgmt-history-range{flex-wrap:wrap;min-width:0}
.p-overview-toolbar .mgmt-period-label{flex-basis:100%;font-size:12px;color:var(--muted)}
@media(max-width:1000px){
 .p-overview-primary{flex-basis:100%}
 .projects-shell .p-overview-page .p-overview-primary .p-search{flex:1 1 220px;max-width:400px}
 .projects-shell .p-overview-page .p-overview-toolbar .p-card-views{margin-left:auto}
}
@media(max-width:700px){
 :root[data-theme] .projects-shell .p-overview-page .p-overview-toolbar{display:flex;gap:12px}
 .p-overview-primary{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex-basis:100%}
 .projects-shell .p-overview-page .p-overview-primary .p-search{grid-column:1/-1;max-width:none;width:100%}
 .p-overview-primary .mgmt-views-toggle,.p-overview-primary .filters-toggle{justify-content:center;width:100%;min-height:44px}
 .projects-shell .p-overview-page .p-overview-toolbar .p-card-views{width:100%;min-width:0;margin:0}
 .p-summary-heading{margin-bottom:10px}
 .p-state-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme] .p-state-count{min-height:84px}
 .p-overview-results-toolbar{align-items:stretch}
 .p-overview-results-toolbar>.p-overview-secondary{flex-basis:100%;width:100%;margin:0}
 .p-overview-results-toolbar .p-sort{flex:1 1 100%;justify-content:space-between}
 .projects-shell .p-overview-page .p-overview-results-toolbar .p-sort :is(select,.icon-filter){max-width:68%;min-width:0;width:68%;min-height:44px}
 .p-overview-results-toolbar .p-overview-selection{flex:1;min-height:44px}
 .p-overview-empty{min-height:220px;padding:32px 12px}
}


/* Today overview — approved 17 November 2026. Scoped to preserve other workspaces. */
:root[data-theme=light] .dashboard-shell .main{--theme-panel:#fffdf9;--theme-input:#fffdf9;--theme-ink:#223333;--theme-muted:#5c6669;--theme-line:#e4e5df;--theme-hover:#eff5f3}
:root[data-theme] .dashboard-shell .main[data-view=today] .heading h1{font-size:calc(var(--ma-font-page) + 6px);letter-spacing:-.8px}
:root[data-theme] .dashboard-shell .heading p{font-size:15px}
:root[data-theme] .dashboard-shell .main{padding:24px 32px 42px}
/* Hoje */
:root[data-theme] .dashboard-shell .today-overview{display:flex;flex-direction:column;gap:16px;container-type:inline-size}
:root[data-theme] .dashboard-shell .today-overview .dashboard-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat{min-height:72px;padding:10px 14px;gap:12px;align-items:center;flex-wrap:nowrap;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:none;opacity:1}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat:not(:disabled):hover{border-color:var(--teal);background:var(--theme-hover)}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat-icon{width:44px;height:44px;flex:0 0 44px;border-radius:8px;background:var(--theme-accent-soft);color:var(--teal)}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat-icon>.icon{width:25px;height:25px}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat-copy{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat-copy strong{order:-1;font:700 var(--ma-font-metric)/1.15 var(--font-body);color:var(--ink)}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat-label{font-size:14px;color:var(--ink);line-height:1.35;text-align:left}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat-copy small{display:none}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat.overdue .dashboard-stat-icon{color:var(--theme-coral);background:var(--theme-coral-soft)}
:root[data-theme] .dashboard-shell .today-overview .dashboard-stat.inbox .dashboard-stat-icon{color:var(--theme-violet);background:var(--theme-violet-soft)}
:root[data-theme] .dashboard-shell .today-overview>.dashboard-capture{order:initial}
:root[data-theme] .dashboard-shell .today-overview .dashboard-capture .quick-capture{min-height:52px;padding:5px 8px;background:var(--surface);border-color:var(--line)}
:root[data-theme] .dashboard-shell .today-overview .dashboard-capture .quick-capture input{border:0!important;font-size:14px;background:transparent!important}
:root[data-theme] .dashboard-shell .today-overview .dashboard-capture .quick-capture>.icon-btn{width:auto;padding-inline:14px}
.today-overview .quick-capture>button>.icon{display:none}
.today-overview .today-board{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);grid-template-rows:auto 1fr;grid-template-areas:"tasks day" "tasks calendar";gap:14px 18px;align-items:start;reading-flow:grid-rows}
.today-overview .today-task-panel{grid-area:tasks}
.today-overview .today-day-panel{grid-area:day}
.today-overview .today-calendar-panel{grid-area:calendar}
.today-overview .today-board-support{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.today-overview .today-card,.today-overview .today-records-slot>.records-day{min-width:0;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:none;margin:0;padding:0}
.today-overview .today-section-heading,.today-overview .records-day-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 16px;margin:0;border:0;background:var(--theme-accent-soft);color:var(--ink)}
.today-overview{--today-heading-size:calc(var(--ma-font-section) + 5px)}
.today-overview :is(.today-section-heading h2,.today-calendar .panel-header h2,.today-upcoming>summary,.today-attention>summary,.today-review>span),
:root[data-theme] .today-overview .panel.records-day>.records-day-header h3{font:700 var(--today-heading-size)/1.3 var(--font-heading);letter-spacing:-.3px;color:var(--ink)}
.today-overview :is(.today-section-heading h2,.records-day-header h3,.today-calendar .panel-header h2){display:flex;align-items:center;gap:10px;margin:0;min-width:0}
.today-overview :is(.today-section-heading h2,.records-day-header h3,.today-calendar .panel-header h2)>.icon{display:block;width:24px;height:24px;flex:0 0 24px;color:var(--teal)}
.today-overview .today-section-heading>.text-btn{display:inline-flex;align-items:center;gap:8px;min-height:32px;white-space:nowrap;font-size:13px}
.today-overview .today-count{font:600 14px/1.2 var(--font-body);color:var(--teal);background:var(--surface);padding:3px 8px;border-radius:6px;white-space:nowrap}
.today-overview .today-card-body{padding:12px 20px}
.today-overview .dashboard-inbox>.today-section-heading{background:var(--theme-violet-soft)}
.today-overview .dashboard-inbox .today-count{color:var(--theme-violet)}
.today-overview .dashboard-inbox .today-section-heading h2>.icon{color:var(--theme-violet)}
.today-overview .today-board-support .today-section-heading,.today-overview .records-day-header{gap:8px;flex-wrap:wrap}
.today-overview .today-task-panel>.today-card-body{padding:0 14px 8px}
.today-overview .today-task-group+.today-task-group{margin-top:10px}
.today-overview .today-task-group-heading{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;border-radius:6px;background:var(--paper,var(--theme-hover))}
.today-overview .today-task-group-heading h3{display:flex;align-items:center;gap:8px;margin:0;font:700 var(--ma-font-card)/1.4 var(--font-heading)}
.today-overview .today-task-group-heading .icon{width:19px;height:19px;flex:none;color:var(--teal)}
.today-overview .today-task-group-heading>.text-btn{min-height:38px;padding:0;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;font-size:13px}
.today-overview .today-task-group.is-late .today-task-group-heading{background:transparent}
.today-overview .today-task-group.is-late :is(h3,h3>.icon,.today-task-due){color:var(--theme-coral)}
.today-overview .today-task-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:0 8px;align-items:center;min-width:0;border-bottom:1px solid var(--line);padding-right:8px}
.today-overview .today-task-row:last-child{border-bottom:0}
.today-overview .today-task-row:has(.today-task-open:hover){background:var(--theme-hover)}
.today-overview .today-task-check{display:grid;place-items:center;min-height:44px;cursor:pointer}
.today-overview .today-task-check input{appearance:auto;width:20px;height:20px;accent-color:var(--teal);margin:0;cursor:inherit}
.today-overview .today-task-check:has(input:disabled){cursor:default}
.today-overview .today-task-open{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;width:100%;min-height:44px;padding:8px 0;text-align:left;border:0;background:transparent;color:var(--ink)}
.today-overview .today-task-open>.entry-copy{display:grid;gap:2px;min-width:0}
.today-overview .today-task-open strong{font:600 14px/1.35 var(--font-body);overflow-wrap:anywhere}
.today-overview .today-task-open small,.today-overview .today-task-project{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.today-overview .today-task-due{flex:none;font-size:12px;line-height:1.4;color:var(--muted);text-align:right}
.today-overview .today-task-project .project-label{max-width:100%}
.today-overview .today-task-action{min-height:44px;padding:0;text-decoration:underline;text-underline-offset:3px;font-size:13px;white-space:nowrap}
.today-overview .today-task-row>.item-signals{grid-column:2 / -1;margin:0 0 4px;padding:0;gap:6px;min-height:0}
.today-overview .today-task-row>.item-signals:empty{display:none}
.today-overview .today-task-row .item-signal{min-height:22px;padding:2px 4px;font-size:10px}
.today-overview .today-task-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:4px;padding:2px 8px 0;border-top:1px solid var(--line)}
.today-overview .today-task-footer .text-btn,.today-overview .today-more{display:inline-flex;align-items:center;gap:6px;min-height:38px;font-size:13px}
.today-overview .today-short-row{padding:8px 0;border-bottom:1px solid var(--line);min-width:0}
.today-overview .today-short-row:last-child{border:0}
.today-overview .today-short-row .entry-line-open{display:flex;align-items:center;gap:12px;width:100%;min-width:0;min-height:40px;padding:0;border:0;background:transparent;color:var(--ink);text-align:left}
.today-overview .today-short-row .today-short-icon{display:flex;align-items:center;justify-content:center;flex:0 0 22px;min-width:22px;max-width:22px;color:var(--teal)}
.today-overview .today-short-row .today-short-icon>.icon{width:22px;height:22px}
.today-overview .today-short-row .entry-copy{display:flex;flex-direction:column;gap:4px;flex:1 1 0;min-width:0}
.today-overview .today-short-row strong{font:600 14px/1.4 var(--font-body);overflow-wrap:anywhere}
.today-overview .today-short-row small{font-size:12px;color:var(--muted)}
.today-overview .today-short-row .entry-line-open>.icon{width:16px;height:16px;flex:none;color:var(--teal)}
.today-overview .today-empty{display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.5;color:var(--muted);margin:0;padding:16px 0}
.today-overview .today-empty>.icon{width:22px;height:22px;flex:none;color:var(--teal)}
.today-overview .today-calendar.mini-month{padding:12px 16px;background:transparent;border:0;box-shadow:none;min-width:0}
.today-overview .today-calendar .panel-header{margin:0 0 6px;padding:0;display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:4px;background:transparent;text-align:center}
.today-overview .today-calendar .panel-header h2{grid-area:1 / 2;justify-content:center}
.today-overview .today-calendar .calendar-controls{display:contents}
.today-overview .today-calendar .calendar-controls [data-step="-1"]{grid-area:1 / 1}
.today-overview .today-calendar .calendar-controls [data-step="1"]{grid-area:1 / 3}
.today-overview .today-calendar .calendar-controls .icon-btn{width:32px;height:32px;min-height:32px;padding:5px;border:0;border-radius:6px}
.today-overview .today-calendar .mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;align-items:center}
.today-overview .today-calendar .mini-grid>.weekday{font-size:12px;padding:5px 0 8px;color:var(--ink);text-align:center}
.today-overview .today-calendar .mini-grid>button{min-height:32px;min-width:0;height:32px;width:100%;padding:3px;border-radius:6px;font-size:14px}
.today-overview .today-calendar .mini-grid>button.selected{border-radius:6px;background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme] .today-overview .today-calendar .mini-grid>button{font-size:14px;width:100%;height:32px;min-height:32px;border-radius:6px}
:root[data-theme] .today-overview .today-calendar .mini-grid>.weekday{font-size:12px}
.today-overview .today-agenda-day{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;padding:8px 14px}
.today-overview .today-day-panel.is-empty .today-agenda-day{align-items:center}
.today-overview .today-no-events{display:flex;align-items:center;gap:8px;min-height:44px;padding:0;color:var(--muted);text-align:left;font-size:14px}
.today-overview .today-no-events>.icon{width:20px;height:20px;flex:none;color:var(--teal)}
.today-overview .today-day-events{max-height:290px;overflow:auto;scrollbar-width:thin}
.today-overview .today-event{padding:10px 0;border-bottom:1px solid var(--line)}
.today-overview .today-event:last-child{border:0}
.today-overview .today-event-open{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:4px 0;border:0;background:transparent;text-align:left;color:var(--ink);overflow-wrap:anywhere}
.today-overview .today-event-open strong{font:600 15px/1.4 var(--font-body)}
.today-overview .today-event-time,.today-overview .today-event-location{font-size:12px;color:var(--muted)}
.today-overview .today-event-location{display:flex;align-items:center;gap:6px}
.today-overview .today-event-location>.icon{width:16px;height:16px}
.today-overview .today-agenda-add{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 4px;font-size:13px;color:var(--teal);background:transparent;border:0;border-radius:6px}
.today-overview .today-agenda-add>.icon{width:16px;height:16px;flex:none}
.today-overview .today-agenda-add:hover,.today-overview .today-no-events:hover{color:var(--teal);text-decoration:underline}
.today-overview .today-upcoming{margin:0 14px;border-top:1px solid var(--line)}
.today-overview :is(.today-upcoming,.today-attention)>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:56px}
.today-overview summary::-webkit-details-marker{display:none}
.today-overview .today-upcoming-title{flex:1;min-width:0}
.today-overview .today-upcoming-count{color:var(--muted);font:400 12px/1.4 var(--font-body);letter-spacing:normal}
.today-overview :is(.today-upcoming,.today-attention)>summary>.icon{width:24px;height:24px;flex:none;color:var(--teal)}
.today-overview :is(.today-upcoming,.today-attention)>summary>.icon:last-child{width:15px;margin-left:auto}
.today-overview .today-upcoming>summary>.icon:last-child{margin-left:0}
.today-overview :is(.today-upcoming,.today-attention)[open]>summary>.icon:last-child{transform:rotate(180deg)}
.today-overview .today-upcoming .upcoming-card{margin:0;border:0;box-shadow:none}
.today-overview .today-records-slot{min-width:0}
:root[data-theme] .today-overview .today-records-slot>.records-day{padding:0;margin:0;border:1px solid var(--line);background:var(--surface);border-radius:10px;box-shadow:none}
:root[data-theme] .today-overview .records-day-header{background:var(--theme-accent-soft);gap:6px}
:root[data-theme] .today-overview .records-day-privacy{display:flex;align-items:center;gap:4px;font-size:10px;margin-left:auto;color:var(--muted)}
.today-overview .records-day-privacy>.icon{width:13px;height:13px}
.today-overview .records-day-intro{display:none}
:root[data-theme] .today-overview .records-day-results{padding:12px 16px;font-size:14px}
.today-overview .today-record-list{max-height:260px;overflow:auto;scrollbar-width:thin}
.today-overview .today-record{padding:8px 0;border-bottom:1px solid var(--line)}
.today-overview .today-record:last-child{border:0}
.today-overview .today-record>summary{display:flex;align-items:center;gap:8px;min-height:40px;list-style:none;cursor:pointer}
.today-overview .today-record>summary>span{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.today-overview .today-record>summary>.icon{width:20px;height:20px;flex:none;color:var(--teal)}
.today-overview .today-record>summary>.icon:last-child{width:14px}
.today-overview .today-record>summary strong{font:600 14px/1.4 var(--font-body);overflow-wrap:anywhere}
.today-overview .today-record>summary small{font-size:11px;color:var(--muted)}
.today-overview .today-record-detail{padding:12px 0;font-size:13px;overflow-wrap:anywhere}
.today-overview .today-record-detail :is(img,video){max-width:100%;height:auto}
:root[data-theme] .today-overview .records-day-empty{display:flex;align-items:center;gap:10px;padding:16px 0;min-height:0;text-align:left;color:var(--muted)}
.today-overview .records-day-empty-icon{display:flex;width:22px;height:22px;flex:none}
.today-overview .records-day-empty-icon>.icon{width:22px;height:22px}
:root[data-theme] .today-overview .records-day-empty strong{font:400 14px/1.5 var(--font-body);color:var(--muted)}
.today-overview .records-day-empty p{display:none}
.today-overview .records-day-pagination{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;padding-top:8px}
.today-overview .records-day-pagination .btn{font-size:10px;padding:3px 6px;min-height:30px}
.today-overview .today-review{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 20px;min-height:50px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.today-overview .today-review>span{display:flex;align-items:center;gap:12px}
.today-overview .today-review>.text-btn{display:flex;align-items:center;gap:8px;min-height:32px;font-size:13px}
.today-overview .today-review .icon{width:24px;height:24px;flex:none;color:var(--teal)}
.today-overview .today-attention{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0 16px}
.today-overview .today-attention>summary{margin-inline:-16px;padding-inline:16px;background:var(--theme-accent-soft);border-radius:7px}
.today-overview .today-attention[open]>summary{margin-bottom:12px;border-end-start-radius:0;border-end-end-radius:0}
.today-overview .today-attention .co-attention{margin:0}
.today-overview :is(button,summary,input):focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.today-overview .today-attention>summary:focus-visible{outline-offset:-3px}
.today-overview .today-board-support .today-section-heading{background:var(--theme-accent-soft)}
.today-overview .home-insights{padding-bottom:16px}
.today-overview .home-project-head{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(44px,1fr) auto;align-items:center;gap:10px}
.today-overview .home-project-open{display:flex;align-items:center;gap:8px;min-width:0;min-height:36px;padding:0;text-align:left;color:var(--ink)}
.today-overview .home-project-open:hover{color:var(--teal)}
.today-overview .home-project-open>.icon{width:19px;height:19px;flex:none;color:var(--teal)}
.today-overview .home-project small{display:block;margin-left:27px}
.dashboard-shell .top-actions:has(.context-updates-header)>.notification-button,.dashboard-shell .today-updates:empty{display:none}
.dashboard-shell .context-updates.context-updates-header{margin:0;padding:0;border:0;background:none;box-shadow:none;--update-red:var(--teal);--update-red-soft:var(--theme-accent-soft)}
.dashboard-shell .context-updates-header>.context-updates-toggle{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;background:transparent;border:0;color:var(--ink);border-radius:8px}
.dashboard-shell .context-updates-header>.context-updates-toggle>.icon{width:23px;height:23px;fill:none}
.dashboard-shell .context-updates-header>.context-updates-toggle:hover{background:var(--theme-hover)}
.dashboard-shell .context-updates-header .context-updates-count{position:absolute;top:1px;right:0;min-width:18px;height:18px;padding:0 3px;display:grid;place-items:center;border-radius:10px;background:var(--theme-action);color:var(--theme-action-ink);font:700 10px/1 var(--font-body)}
:root[data-theme=dark] .dashboard-shell .today-overview .dashboard-capture .quick-capture{border-color:color-mix(in srgb,var(--muted) 62%,var(--surface))}
:root[data-theme=dark] .today-overview .today-task-check input:not(:disabled){border-radius:3px;box-shadow:0 0 0 1px var(--muted)}
:root[data-theme=dark] .today-overview .today-calendar .mini-grid>button.selected{box-shadow:inset 0 0 0 1px var(--teal)}
:root[data-theme=dark] .dashboard-shell .storage-capsule{background:var(--theme-accent-soft);border-color:var(--theme-line);color:var(--ink)}
:root[data-theme=dark] .dashboard-shell .storage-capsule:hover{background:var(--theme-hover);border-color:var(--teal)}
:root[data-theme=dark] .dashboard-shell .storage-capsule-resource+.storage-capsule-resource{border-left-color:var(--theme-line)}
@container(max-width:900px){
 .today-overview .today-board{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-stat{padding-inline:9px;gap:8px}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-stat-icon{width:34px;height:34px;flex-basis:34px}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-stat-label{font-size:12px}
}
@container(max-width:680px){
 .today-overview .today-board{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"day" "tasks" "calendar"}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
@media(max-width:700px){
 :root[data-theme] .dashboard-shell .main{padding:18px 16px 92px}
 :root[data-theme] .app-shell.dashboard-shell .topbar{flex-wrap:nowrap;align-items:flex-start;gap:6px}
 :root[data-theme] .app-shell.dashboard-shell .topbar .heading{flex:1 1 auto;width:auto}
 :root[data-theme] .app-shell.dashboard-shell .topbar .top-actions{flex:none;flex-wrap:nowrap;align-items:center}
 .dashboard-shell .today-heading-year{display:none}
 :root[data-theme] .dashboard-shell .today-overview{gap:12px}
 .today-overview{--today-heading-size:calc(var(--ma-font-section) + 3px)}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-stat{min-height:58px;padding:7px 8px;gap:8px}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-stat-label{font-size:11.5px}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-stat-icon>.icon{width:21px;height:21px}
 :root[data-theme] .dashboard-shell .today-overview .dashboard-capture .quick-capture>.icon-btn{width:44px;padding:0}
 .today-overview .quick-capture>button>span{display:none}
 .today-overview .quick-capture>button>.icon{display:block}
 .today-overview .today-board-support{grid-template-columns:minmax(0,1fr);gap:12px}
 .today-overview .today-agenda-day{padding:2px 10px}
 .today-overview :is(.today-section-heading,.records-day-header){min-height:46px;padding:6px 12px;gap:8px}
 .today-overview :is(.today-section-heading h2,.records-day-header h3,.today-calendar .panel-header h2){gap:8px}
 .today-overview :is(.today-section-heading h2,.records-day-header h3,.today-calendar .panel-header h2)>.icon{width:20px;height:20px;flex-basis:20px}
 .today-overview :is(.today-upcoming,.today-attention)>summary>.icon:first-child,.today-overview .today-review>span>.icon{width:20px;height:20px}
 .today-overview .today-section-heading>.text-btn{min-height:40px;font-size:12px}
 .today-overview .today-task-panel>.today-card-body{padding-inline:7px}
 .today-overview .today-task-row{gap:0 4px;padding-right:5px}
 .today-overview .today-task-open{gap:6px}
 .today-overview .today-task-open strong{font-size:15px}
 .today-overview .today-task-due{white-space:nowrap}
 .today-overview .today-reschedule-detail{display:none}
 .today-overview .today-calendar .mini-grid>button{height:40px;min-height:40px}
 .today-overview .today-record-list{max-height:none}
 .today-overview .today-review{padding-inline:14px}
 .today-overview .today-review>span{gap:8px}
 .today-overview .today-review>.text-btn{min-height:44px;font-size:12px}
 :root[data-theme] .dashboard-shell .bottom-nav{gap:4px;padding:5px 8px calc(5px + env(safe-area-inset-bottom))}
 :root[data-theme] .dashboard-shell .bottom-nav button{flex:1;min-width:0;min-height:48px;padding:3px 0;font-size:11px;border-radius:8px}
 :root[data-theme] .dashboard-shell .bottom-nav .today-mobile-create>.icon{box-sizing:content-box;width:20px;height:20px;padding:4px 10px;border-radius:8px;background:var(--theme-action);color:var(--theme-action-ink)}
 .dashboard-shell>.create-menu.mobile{right:50%;translate:50% 0}
 .dashboard-shell :is(.today-mobile-create,.bottom-nav .mobile-more,.context-updates-toggle):focus-visible{outline:2px solid var(--teal);outline-offset:2px}
}
