/* Shared app spacing, with visible Today context and existing density preferences. */
:root{--work-max:1200px}
.brand-quiet-stack{width:auto;min-height:44px;text-align:left;cursor:pointer}.brand-quiet-stack:focus-visible{outline:2px solid var(--nav-text);outline-offset:-3px;border-radius:6px}
main:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
main,.topbar{max-width:var(--work-max);padding-inline:var(--page-gutter)}
.topbar{width:100%;margin-inline:auto;padding-bottom:var(--space-6)}
.page-heading{margin-bottom:var(--space-6);gap:var(--space-4)}
.section-header,.recent-header{margin-bottom:var(--space-4);gap:var(--space-3)}
.toolbar{gap:var(--space-3);margin-bottom:var(--space-6)}
.project-grid,.notes-grid,.board{gap:var(--space-6)}
.project-card,.note-card,.settings-panel{padding:var(--space-6)}
.settings-section{margin-top:var(--space-6);padding-top:var(--space-6)}
.workspace-footer{margin-inline:var(--page-gutter);gap:var(--space-3)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:var(--space-8);align-items:start;max-width:none}
.dashboard-side{border-left:1px solid var(--line);padding:0 0 0 var(--space-6);margin:0;display:block}
.dashboard-main .active-projects{margin-top:var(--space-8)}
.dashboard-side .recent-notes{border:0;padding:0;margin:var(--space-6) 0 0}
.task-row{padding-block:var(--row-space);min-height:80px}
.project-row{padding-block:var(--row-space);min-height:88px;gap:var(--space-4)}
.project-metrics{min-width:128px;gap:var(--space-2)}.project-completion{width:128px;gap:var(--space-3)}
.progress{position:relative;height:10px;border:1px solid var(--control-border);border-radius:999px;overflow:hidden;background:var(--line)}
.progress::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),var(--control-border) calc(20% - 1px),var(--control-border) 20%)}
.progress>span{border-radius:0}
.note-preview{padding-block:var(--row-space);gap:var(--space-3);align-items:start}
.note-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--muted);font-size:calc(13px * var(--font-scale));line-height:1.5;margin-top:var(--space-2)}
.quiet-section{border-bottom:1px solid var(--line);margin:0;padding:0}
.quiet-section>summary{padding:var(--space-4) 0;cursor:pointer;font-size:calc(16px * var(--font-scale));font-weight:500;min-height:52px}
.quiet-section[open]>summary{padding-bottom:var(--space-3)}.quiet-section>section{padding-bottom:var(--space-4);margin:0}
.quiet-section .capture-panel{max-width:640px;background:transparent;border:0;box-shadow:none;padding:0}
.task-row .priority{background:transparent!important;padding:0;color:var(--muted)}.number-pill{background:transparent;border:0;color:var(--muted)}
summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.storage-help>summary{cursor:pointer;padding:12px 0;min-height:44px;color:var(--green)}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:1fr;gap:var(--space-6)}.dashboard-side{display:block;border-left:0;border-top:1px solid var(--line);padding:var(--space-6) 0 0;margin:0}.project-row{flex-direction:row}.project-metrics{width:auto;flex-direction:column;align-items:flex-end}}
@media(max-width:700px){.task-row{min-height:88px}.project-row{flex-direction:column;gap:var(--space-3)}.project-metrics{width:100%;flex-direction:row;align-items:center}.project-card,.note-card,.settings-panel{padding:var(--space-4)}.top-actions>.button{min-width:0}}
/* Studio refinement: grouped work, quiet navigation and precise progress. */
:root{--canvas:#f3f6fa;--ink:#182938;--muted:#526678;--line:#d9e2ea;--white:#fff;--nav:#f4f7fc;--nav-text:#182938;--green:#245bc5;--primary:#245bc5;--group-radius:calc(11px * var(--radius-scale));--notes-surface:var(--white);--project-cue:#9b493b;--project-cue-surface:#fff0eb;--control-border:#7c8997;--progress-divider:#bdc8d3}
.sidebar{border-right:1px solid var(--line)}
.topbar{padding-block:var(--space-4)}
.search-button{background:var(--white)}
.page-heading{margin-top:0;margin-bottom:var(--space-6)}
.dashboard-grid{grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:var(--space-6)}
.priorities-section,.active-projects,.dashboard-side,.dashboard-custom>section{background:var(--white);border:1px solid var(--line);border-radius:var(--group-radius);padding:var(--space-6);min-width:0}
.dashboard-main .active-projects{margin-top:var(--space-6)}
.dashboard-side{background:var(--notes-surface);margin:0;display:block}
.dashboard-side .recent-notes{margin-top:var(--space-6)}
.dashboard-side .quiet-section{border-color:var(--line)}
.dashboard-side .quiet-section>summary{padding-top:0;min-height:44px}
.dashboard-side .note-preview:last-child,.priorities-section .task-row:last-child,.active-projects .project-row:last-child{border-bottom:0;padding-bottom:0}
.task-row{gap:var(--space-3);min-height:76px}
.task-content{min-height:44px;display:flex;flex-direction:column;justify-content:center}
.text-link{min-height:44px}
.section-header,.recent-header{margin-bottom:var(--space-3)}
.project-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:var(--space-3);min-height:92px}
.project-row-icon{display:grid;place-items:center;width:36px;height:36px;background:var(--project-cue-surface);color:var(--project-cue);border-radius:calc(8px * var(--radius-scale))}
.project-row-icon svg{width:18px;height:18px}
.project-row .project-summary{width:100%}
.project-completion{width:148px}
.project-metrics{min-width:148px}
.project-rows{border-top:1px solid var(--line)}
.progress{height:12px;min-width:48px;flex:none;width:100%;border:1px solid var(--progress-divider);background:var(--surface-soft);border-radius:999px;overflow:hidden}
.project-completion>.progress{flex:1;min-width:0;width:auto}
.progress>span{height:100%;border-radius:0;background:var(--green)}
.progress::after{background:repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),var(--progress-divider) calc(20% - 1px),var(--progress-divider) 20%)}
.project-info>.progress{width:160px;flex:0 1 160px}
.progress-caption{font-size:calc(13px * var(--font-scale))}
.note-preview>svg{box-sizing:content-box;padding:7px;background:var(--project-cue-surface);color:var(--project-cue);border-radius:calc(6px * var(--radius-scale))}
.dashboard-side .note-preview>svg{background:var(--white);color:var(--muted)}
.note-card{min-height:184px;gap:var(--space-3)}
.panel,.project-card,.note-card,.settings-panel{border-radius:var(--group-radius)}
.appearance-savebar{border-bottom:1px solid var(--line);padding-bottom:var(--space-6);margin-bottom:var(--space-6)}
.appearance-savebar .design-status{margin:0 0 var(--space-3)}
.appearance-intro h2,.appearance-preview h2{font-size:calc(20px * var(--font-scale));line-height:1.4;letter-spacing:-.4px}
.appearance-intro .preset-row{margin-block:var(--space-4) 0}
.appearance-group{border:0;border-top:1px solid var(--line);padding:var(--space-6) 0 0;margin:var(--space-6) 0 0;min-width:0}
.appearance-group legend{padding:0 var(--space-3) 0 0;font-size:calc(18px * var(--font-scale));font-weight:600}
.appearance-group .color-presets{margin-top:0;margin-bottom:var(--space-6)}
.appearance-group .form-field:last-child{margin-bottom:0}
.appearance-reset{border-top:1px solid var(--line);margin-top:var(--space-6);padding-top:var(--space-4)}
.appearance-preview .preview-task:first-of-type{margin-top:var(--space-4)}
.appearance-preview>.button{margin-top:var(--space-4)}
.mobile-navigation{display:none}
@media(max-width:1100px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}.dashboard-side{padding:var(--space-6);border:1px solid var(--line);display:block}.project-row{grid-template-columns:36px minmax(0,1fr) auto}.project-metrics{width:auto;flex-direction:column;align-items:flex-end}}
@media(max-width:700px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"search actions";gap:var(--space-2);padding-top:max(12px,env(safe-area-inset-top,0px));padding-bottom:var(--space-2)}
  .breadcrumbs .mobile-menu{display:none}.breadcrumbs .search-button{min-height:44px;padding-inline:10px;gap:8px}.top-actions>.button{padding-inline:12px;font-size:calc(13px * var(--font-scale))}
  main{padding-top:var(--space-3);padding-bottom:var(--space-6)}
  .page-heading{margin-top:0;margin-bottom:var(--space-4)}
  .dashboard-grid,.dashboard-custom{gap:var(--space-4)}
  .priorities-section,.active-projects,.dashboard-side,.dashboard-custom>section{padding:var(--space-4)}
  .dashboard-main .active-projects{margin-top:var(--space-4)}
  .section-header,.recent-header{gap:var(--space-2);margin-bottom:var(--space-2)}
  .section-header h2,.recent-header h2{font-size:calc(18px * var(--font-scale))}
  .task-tabs{gap:var(--space-4)}.task-tabs button{font-size:calc(13px * var(--font-scale))}
  .task-row{min-height:84px;column-gap:var(--space-2)}
  .task-row .priority{font-size:calc(12px * var(--font-scale))}
  .project-row{grid-template-columns:32px minmax(0,1fr);row-gap:var(--space-3)}
  .project-row-icon{width:32px;height:32px;align-self:start;margin-top:2px}
  .project-row .project-metrics{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center;width:100%;min-width:0;gap:var(--space-2)}
  .project-completion{width:min(148px,60%);gap:8px}.project-row .due{font-size:calc(12px * var(--font-scale))}
  .workspace{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  .workspace-footer{margin-bottom:var(--space-3)}
  .mobile-navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;position:fixed;bottom:max(10px,env(safe-area-inset-bottom,0px));left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));z-index:30;background:var(--white);border:1px solid var(--line);border-radius:22px;padding:5px;box-shadow:0 6px 22px #18293812}
  .mobile-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;min-width:44px;padding:6px 2px;border-radius:16px;color:var(--muted);font-size:calc(11px * var(--font-scale));line-height:1.2}
  .mobile-tab svg{width:20px;height:20px}.mobile-tab span{max-width:100%;overflow-wrap:anywhere}
  .mobile-tab.active{background:var(--surface-soft);color:var(--green);font-weight:600}
  .mobile-tab:hover{background:var(--surface-hover)}
  .sidebar{z-index:40}
  #toast{bottom:calc(94px + env(safe-area-inset-bottom,0px))}
  .appearance-actions .button{flex:1;min-height:44px;padding-inline:10px}
  .appearance-savebar{margin-bottom:var(--space-6)}
  .preset-row .button{min-height:44px}
}
@supports ((backdrop-filter:blur(16px)) or (-webkit-backdrop-filter:blur(16px))){:root[data-material=glass] .mobile-navigation{background:var(--material-bar);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){:root[data-material=glass] .mobile-navigation{background:var(--white);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}}
@media(forced-colors:active){.mobile-navigation{background:Canvas;color:CanvasText;border-color:CanvasText}.mobile-tab.active{outline:1px solid Highlight}.progress{border-color:CanvasText;background:Canvas}.progress>span{background:Highlight}.progress::after{display:none}}
/* Keep all five destinations legible at the narrowest supported web width. */
@media(max-width:360px){.mobile-navigation{left:max(6px,env(safe-area-inset-left,0px));right:max(6px,env(safe-area-inset-right,0px));padding:3px}.mobile-tab{padding-inline:0;font-size:calc(10px * var(--font-scale));letter-spacing:-.2px}.mobile-tab span{white-space:normal;overflow-wrap:anywhere}}
@media(max-width:700px){.mobile-navigation{grid-template-columns:minmax(0,1.2fr) repeat(4,minmax(0,1fr))}}
/* Settings: concise groups and progressive disclosure, using shared tokens. */
.settings-content,.appearance-clean{max-width:820px}
.settings-content{display:grid;gap:var(--space-4)}
.settings-group{padding:var(--space-6)}
.settings-group:has(.settings-destination){padding:0}
.settings-destination{display:flex;align-items:center;gap:var(--space-4);width:100%;padding:20px 24px;text-align:left;min-height:88px}
.settings-destination>span:not(.settings-row-icon){flex:1;min-width:0}
.settings-destination strong{display:block;font-size:calc(16px * var(--font-scale));font-weight:600}
.settings-destination small{display:block;color:var(--muted);margin-top:4px;font-size:calc(13px * var(--font-scale));line-height:1.5}
.settings-destination>svg{width:18px;height:18px;color:var(--muted);transform:rotate(-90deg)}
.settings-destination:hover{background:var(--surface-hover)}
.settings-row-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-soft);color:var(--green)}
.settings-group h2{font-size:calc(17px * var(--font-scale));line-height:1.5;letter-spacing:-.3px}
.settings-group .workspace-form{display:block;margin-top:var(--space-4)}
.workspace-form>label{display:block;color:var(--muted);font-size:calc(13px * var(--font-scale));margin-bottom:8px}
.workspace-name-controls{display:flex;gap:var(--space-3)}
.workspace-name-controls input{min-width:0;flex:1}.workspace-name-controls button{flex-shrink:0}
.settings-group-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
.settings-storage-label{font-size:calc(12px * var(--font-scale));color:var(--muted)}
.settings-copy{margin-block:var(--space-3) var(--space-4);font-size:calc(14px * var(--font-scale));color:var(--muted);line-height:1.6;max-width:62ch}
.settings-group .storage-help>summary{font-size:calc(13px * var(--font-scale));padding-bottom:0}
.settings-group .storage-help[open]>summary{padding-bottom:12px}
.settings-group .storage-help p{font-size:calc(13px * var(--font-scale));color:var(--muted)}
.settings-danger{border-top:1px solid var(--line);margin-top:var(--space-2);padding-top:var(--space-2);color:var(--muted)}
.settings-danger>summary{cursor:pointer;min-height:44px;padding-block:12px;font-size:calc(14px * var(--font-scale))}
.settings-danger>div{padding-block:var(--space-3) var(--space-4)}
.settings-danger p{max-width:60ch;font-size:calc(14px * var(--font-scale));margin-bottom:var(--space-4)}
.settings-back{margin-bottom:var(--space-3)}.settings-back svg{transform:rotate(180deg);width:16px;height:16px}
.appearance-clean{display:block}.appearance-clean .appearance-form{padding:var(--space-6)}
.appearance-clean .appearance-savebar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);padding-bottom:var(--space-4);margin-bottom:var(--space-6)}
.appearance-clean .appearance-savebar .design-status{margin:0;max-width:30ch}
.appearance-clean .appearance-actions{flex-shrink:0;gap:var(--space-2)}
.style-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-2);margin-top:var(--space-4)}
.style-choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;white-space:normal;min-height:72px;padding:12px}
.style-choice small{font-size:calc(12px * var(--font-scale));font-weight:400;color:var(--muted)}
.style-choice[aria-pressed=true],.color-presets [aria-pressed=true]{border-color:var(--green);background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--green)}
.appearance-common{margin-bottom:var(--space-4)}
.appearance-disclosure{border-top:1px solid var(--line)}
.appearance-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;cursor:pointer;padding-block:var(--space-4);list-style:none}
.appearance-disclosure>summary::-webkit-details-marker{display:none}
.appearance-disclosure>summary strong{display:block;font-size:calc(15px * var(--font-scale));font-weight:600}
.appearance-disclosure>summary small{display:block;font-size:calc(13px * var(--font-scale));color:var(--muted);line-height:1.5;margin-top:4px}
.appearance-disclosure>summary>svg{width:18px;height:18px;color:var(--muted)}
.appearance-disclosure[open]>summary>svg{transform:rotate(180deg)}
.appearance-disclosure-body{padding-bottom:var(--space-4)}
.appearance-disclosure-body>.appearance-group:first-child{margin-top:8px;padding-top:8px;border-top:0}
.appearance-disclosure-body .dashboard-controls{margin-top:0;padding-top:4px;border-top:0}
.appearance-disclosure-body .dashboard-controls legend{display:none}
.appearance-clean .appearance-reset{margin-top:0;padding-top:var(--space-3)}
.appearance-clean .appearance-reset .field-help{margin-top:4px}
/* Shared New dropdown routes to the existing editors. */
.new-control{position:relative}
#new-menu-button{min-width:100px;min-height:44px;gap:8px}.new-chevron{width:14px;height:14px}
.new-menu[hidden]{display:none}
.new-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:200px;max-width:calc(100vw - 32px);padding:6px;background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px #1829381a;z-index:50}
.new-menu button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-height:44px;padding:10px 12px;border-radius:8px;font-size:calc(14px * var(--font-scale))}
.new-menu button:hover,.new-menu button:focus-visible{background:var(--surface-soft)}
.new-menu button svg{width:18px;height:18px;color:var(--muted)}
@media(max-width:700px){.settings-group{padding:var(--space-4)}.settings-destination{padding:var(--space-4);gap:var(--space-3)}.workspace-name-controls{gap:8px}.workspace-name-controls .button{padding-inline:12px}.settings-buttons{gap:8px}.settings-buttons .button{white-space:normal;min-height:44px}.appearance-clean .appearance-form{padding:var(--space-4)}.appearance-clean .appearance-savebar{align-items:stretch;flex-direction:column;gap:var(--space-3)}.appearance-clean .appearance-savebar .design-status{max-width:none}.appearance-clean .appearance-actions{width:100%}.style-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.style-choice{min-height:66px}.appearance-clean .appearance-actions .button{white-space:normal}.appearance-disclosure>summary{min-height:76px}#new-menu-button{min-width:84px;padding:10px 12px}.new-menu{min-width:190px}}
@media(max-width:360px){.workspace-name-controls{flex-direction:column}.workspace-name-controls .button{align-self:flex-start}.appearance-actions{gap:6px}.appearance-actions .button{padding-inline:8px}}
/* Continuous capsule with quiet internal marks, avoiding the outlined grid. */
.progress{height:14px;border:0;background:var(--line);border-radius:999px}
.progress>span{border-radius:inherit}
.progress::after{inset:4px 0;background-image:linear-gradient(var(--white),var(--white)),linear-gradient(var(--white),var(--white)),linear-gradient(var(--white),var(--white)),linear-gradient(var(--white),var(--white));background-size:2px 100%;background-position:20% center,40% center,60% center,80% center;background-repeat:no-repeat;opacity:.65}
.project-completion{width:184px;color:var(--ink);font-weight:500}
.project-metrics{min-width:184px}
@media(max-width:700px){.project-row .project-metrics{min-width:0}.project-completion{width:min(180px,64%);font-weight:500}}
@media(forced-colors:active){.progress{border:1px solid CanvasText;background:Canvas}.progress>span{background:Highlight}.progress::after{display:none}}

/* Settings index follows a concise grouped hierarchy. */
.settings-index{max-width:760px;gap:12px}.settings-list{padding:0}.settings-list .settings-destination{position:relative;min-height:72px;padding:16px 20px;gap:14px}.settings-list .settings-destination+.settings-destination::before{content:"";position:absolute;top:0;left:74px;right:0;border-top:1px solid var(--line)}.settings-list .settings-row-icon{width:36px;height:36px;border-radius:10px}.settings-row-name{min-width:0}.settings-current-value{flex:0 1 auto!important;max-width:36%;font-size:calc(14px * var(--font-scale));color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-index-note{padding-inline:20px;font-size:calc(13px * var(--font-scale));line-height:1.6;color:var(--muted)}.settings-list .settings-destination>svg{width:16px;height:16px}.settings-list .settings-destination strong{font-weight:500}.settings-content .settings-group>h2:first-child{margin-bottom:4px}
@media(max-width:700px){.settings-list .settings-destination{padding:14px 16px;gap:12px}.settings-list .settings-destination strong{font-size:calc(15px * var(--font-scale))}.settings-current-value{font-size:calc(13px * var(--font-scale));max-width:30%}.settings-list .settings-destination+.settings-destination::before{left:64px}.settings-index-note{padding-inline:16px}}
/* Profile reports actual capability. No editable identity or decorative security controls. */
.profile-summary{display:flex;align-items:center;gap:16px;margin-top:12px}.profile-avatar{display:grid;place-items:center;width:56px;height:56px;flex:none;border-radius:50%;background:var(--surface-soft);color:var(--muted)}.profile-avatar svg{width:28px;height:28px}.profile-summary .settings-copy{margin:4px 0 0}.account-status-list{margin:0}.account-status-list>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.account-status-list dt{font-weight:500}.account-status-list dd{margin:0;text-align:right;color:var(--muted)}.settings-group>.text-link{margin-top:8px}@media(max-width:700px){.account-status-list>div{gap:12px}.profile-summary{align-items:flex-start}}
/* Keep titles readable on compact task lists; metadata shares the second row. */
@media(max-width:700px){.task-row{grid-template-columns:24px minmax(0,1fr) auto;row-gap:6px}.task-row .task-content{grid-column:2 / -1;grid-row:1}.task-row .priority{grid-column:3;grid-row:2;align-self:center}.task-row .due{grid-column:2;grid-row:2;justify-content:flex-start;margin:0}.task-row .check{grid-column:1;grid-row:1 / 3}.task-tabs{column-gap:18px;row-gap:0}.task-tabs button{white-space:nowrap}.task-meta{overflow-wrap:anywhere}}
@media(max-width:700px) and (any-pointer:coarse){.task-row{grid-template-columns:44px minmax(0,1fr) auto}}
/* Dashboard widgets reuse appearance transactions and keep saved widths during reflow. */
.widget-customize-action{min-height:44px;white-space:normal;font-size:calc(1rem * var(--font-scale));flex-shrink:0}
.widget-control{flex-wrap:wrap;gap:8px}.widget-control>label:first-child{flex:1 1 180px;min-height:44px}.widget-control .widget-size{flex:0 1 120px}.widget-size select{min-height:44px;width:100%;font-size:calc(1rem * var(--font-scale));padding:8px}.widget-control .button{min-width:44px;min-height:44px}.dashboard-custom>[data-widget-size=wide]{grid-column:1 / -1}.dashboard-custom>section{align-self:start}.dashboard-custom>.quick-note-section,.dashboard-custom>.recent-notes{background:var(--notes-surface,var(--white))}
.appearance-clean .appearance-savebar{position:sticky;top:12px;z-index:5;background:var(--white);padding-block:12px}.appearance-clean details[data-design-section=dashboard]{scroll-margin-top:11rem}
@media(max-width:1100px){.dashboard-custom{grid-template-columns:minmax(0,1fr)}.dashboard-custom>[data-widget-size=wide]{grid-column:1}}
@media(max-width:700px){.page-heading:has(.widget-customize-action){align-items:flex-start;flex-wrap:wrap;gap:12px}.widget-customize-action{padding:8px 12px}.widget-control>label:first-child{flex-basis:100%}.widget-control .widget-size{margin-right:auto;max-width:132px}.appearance-clean details[data-design-section=dashboard]{scroll-margin-top:13rem}}
/* Allow the save bar to stick to the viewport instead of a clipped panel. */
.appearance-clean .appearance-form{overflow:visible}
/* One slim capsule; square internal boundaries reflect tasks (grouped above twelve). */
.progress{height:10px;border:0;border-radius:999px;background:var(--line);box-shadow:none;isolation:isolate}
.progress>.progress-fill{height:100%;border-radius:0;background:var(--green)}
.progress::after{display:none}
.progress-separator{position:absolute;top:0;bottom:0;width:1px;background:var(--white);transform:translateX(-.5px);pointer-events:none;z-index:1}
@media(forced-colors:active){.progress{border:1px solid CanvasText;background:Canvas}.progress>.progress-fill{background:Highlight}.progress-separator{background:Canvas}}
/* Completion has its own semantic green, independent of the chosen accent. */
:root{--progress-complete:#237a48}
:root[data-theme=dark]{--progress-complete:#63bf85}
.progress[data-complete=true]>.progress-fill{background:var(--progress-complete)}
@media(forced-colors:active){.progress[data-complete=true]>.progress-fill{background:Highlight}}
/* Functional icon accents share semantic tokens; labels and route selection remain separate. */
.nav-item[data-view=overview]>svg{color:var(--nav-icon-dashboard)}
.nav-item[data-view=tasks]>svg{color:var(--nav-icon-tasks)}
.nav-item[data-view=schedule]>svg{color:var(--nav-icon-schedule)}
.nav-item[data-view=projects]>svg{color:var(--nav-icon-projects)}
.nav-item[data-view=notes]>svg{color:var(--nav-icon-notes)}
.nav-item[data-action=settings]>svg{color:var(--nav-icon-settings)}
.mobile-tab[data-view=overview]>svg{color:var(--icon-dashboard)}
.mobile-tab[data-view=projects]>svg{color:var(--icon-projects)}
.mobile-tab[data-view=settings]>svg{color:var(--icon-settings)}
.mobile-tab[data-action=search]>svg{color:var(--icon-search)}
.mobile-tab[data-action=menu]>svg{color:var(--icon-more)}
.new-menu [data-action=new-task]>svg{color:var(--icon-tasks)}
.new-menu [data-action=new-project]>svg{color:var(--icon-projects)}
.new-menu [data-action=new-note]>svg{color:var(--icon-notes)}
.settings-destination[data-settings-section=profile] .settings-row-icon,.profile-avatar{color:var(--icon-profile)}
.settings-destination[data-view=appearance] .settings-row-icon{color:var(--icon-schedule)}
.settings-destination[data-settings-section=workspace] .settings-row-icon{color:var(--icon-projects)}
.settings-destination[data-settings-section=storage] .settings-row-icon{color:var(--icon-dashboard)}
.note-preview>svg,.dashboard-side .note-preview>svg,.note-mark>svg{color:var(--icon-notes);background:var(--surface-soft)}
.due:not(.overdue)>svg{color:var(--icon-schedule)}
@media(forced-colors:active){.nav-item>svg,.mobile-tab>svg,.new-menu button>svg,.settings-destination .settings-row-icon,.profile-avatar,.note-preview>svg,.dashboard-side .note-preview>svg,.note-mark>svg,.due>svg{color:ButtonText!important;background:Canvas!important}}
/* Settings categories separate account, personal choices and workspace data. */
.settings-category>h2{font-size:calc(1rem * var(--font-scale));line-height:1.5;font-weight:600;color:var(--muted);margin:0 20px 8px}
.settings-index{gap:24px}.settings-category .settings-list .settings-destination{min-height:72px}
.settings-destination[data-action=customize-widgets] .settings-row-icon{color:var(--icon-dashboard)}
@media(max-width:700px){.settings-category>h2{margin-inline:16px}.settings-index{gap:20px}.settings-category .settings-list .settings-destination{min-height:68px}}
/* A focused widget editor: preview beside controls, with familiar width labels. */
.widget-settings .dashboard-controls{margin-top:0;padding-top:12px;border-top:0}.widget-settings .widget-workbench{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr);gap:24px;align-items:start}.widget-settings.appearance-clean{max-width:1100px}.widget-layout-preview{position:sticky;top:110px;padding:16px;background:var(--surface-soft);border-radius:12px}.widget-layout-preview h2{font-size:calc(1rem * var(--font-scale));margin-bottom:12px}.widget-layout-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.widget-layout-map.single-column{grid-template-columns:1fr}.widget-map-item{padding:12px 8px;background:var(--white);border:1px solid var(--line);border-radius:8px;font-size:calc(.9rem * var(--font-scale));line-height:1.4;min-width:0;overflow-wrap:anywhere}.widget-map-item[data-preview-size=wide]{grid-column:1 / -1}.widget-settings .widget-control>label:first-child{flex-basis:100%}.widget-settings .widget-control .widget-size{margin-right:auto;flex-basis:130px}.widget-settings .appearance-savebar{gap:12px}
@media(max-width:1100px){.widget-settings .widget-workbench{grid-template-columns:1fr}.widget-layout-preview{position:static;order:-1}.widget-layout-map{grid-template-columns:repeat(2,minmax(0,1fr))}.widget-settings .widget-control .widget-size{flex-basis:120px}}
/* Schedule calendar is a view over existing due dates, with the agenda retained. */
.schedule-mode{display:flex;gap:4px;width:max-content;padding:4px;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.schedule-mode button{min-height:44px;padding:8px 18px;border-radius:8px;font-size:calc(1rem * var(--font-scale))}.schedule-mode button[aria-pressed=true]{background:var(--white);color:var(--green);box-shadow:0 1px 3px #18293814}
.calendar-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:24px;align-items:start}.calendar-month{padding:0;min-width:0}.calendar-month-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.calendar-month-bar h2{font-size:calc(1.25rem * var(--font-scale));line-height:1.4}.calendar-month-actions{display:flex;align-items:center;gap:4px}.calendar-month-actions .icon-button{width:44px;height:44px;min-width:44px}.calendar-previous svg{transform:rotate(180deg)}.calendar-month-actions .button{min-height:44px;padding:8px 12px}
.calendar-grid-scroll{overflow-x:auto;overscroll-behavior-x:contain}.calendar-grid{min-width:308px}.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr))}.calendar-weekdays{padding-block:8px;color:var(--muted);font-size:calc(.85rem * var(--font-scale));text-align:center;border-block:1px solid var(--line)}.calendar-week>[role=gridcell]{min-width:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-week>[role=gridcell]:last-child{border-right:0}.calendar-day{position:relative;width:100%;min-width:44px;min-height:104px;padding:8px 6px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;font-size:calc(1rem * var(--font-scale));line-height:1.4}.calendar-day:hover{background:var(--surface-hover)}.calendar-day.outside{color:var(--muted);background:var(--surface-soft)}.calendar-day.selected{box-shadow:inset 0 0 0 2px var(--green);background:var(--surface-soft)}.calendar-day[aria-current=date] .calendar-day-number{color:var(--white);background:var(--green);border-radius:50%;min-width:26px;text-align:center}.calendar-day-count{position:absolute;right:5px;top:8px;color:var(--muted);font-size:calc(.75rem * var(--font-scale));font-weight:600}.calendar-day-items{display:flex;flex-direction:column;gap:3px;max-width:100%;font-size:calc(.72rem * var(--font-scale));color:var(--muted)}.calendar-day-items>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.calendar-task-label{border-left:2px solid var(--icon-tasks);padding-left:4px}.calendar-project-label{border-left:2px solid var(--icon-projects);padding-left:4px}.calendar-scope{font-size:calc(.85rem * var(--font-scale));color:var(--muted);padding:12px 16px}
.calendar-day-detail{padding:20px;min-width:0}.calendar-day-detail>h2{font-size:calc(1.15rem * var(--font-scale));line-height:1.5;letter-spacing:0;margin-bottom:20px}.calendar-day-detail>h3{font-size:calc(1rem * var(--font-scale));line-height:1.5;margin:20px 0 8px;display:flex;justify-content:space-between;gap:8px}.calendar-day-detail>h3 span{color:var(--muted);font-weight:400}.calendar-day-detail>p{color:var(--muted);font-size:calc(.95rem * var(--font-scale))}.calendar-detail-item{display:flex;align-items:flex-start;gap:10px;min-height:44px;width:100%;padding:12px 0;text-align:left;border-bottom:1px solid var(--line)}.calendar-detail-item>svg{color:var(--icon-tasks);width:18px;height:18px;margin-top:3px}.calendar-project-item>svg{color:var(--icon-projects)}.calendar-detail-item>span{min-width:0}.calendar-detail-item strong{font-size:calc(1rem * var(--font-scale));line-height:1.5;font-weight:500;overflow-wrap:anywhere;display:block}.calendar-detail-item small{display:block;font-size:calc(.85rem * var(--font-scale));line-height:1.5;color:var(--muted);margin-top:4px}
@media(max-width:1100px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.calendar-day-detail{max-width:none}}
@media(max-width:700px){.calendar-day{min-height:62px;padding:8px 5px}.calendar-day-items{display:none}.calendar-day-count{top:auto;bottom:5px;left:5px;right:auto;font-size:calc(.7rem * var(--font-scale))}.calendar-month-bar{padding:12px;flex-wrap:wrap}.calendar-month-bar h2{font-size:calc(1.15rem * var(--font-scale))}.calendar-month-actions{margin-left:auto}.calendar-layout{gap:16px}}
@media(forced-colors:active){.calendar-day.selected{outline:2px solid Highlight;outline-offset:-3px;box-shadow:none}.calendar-day[aria-current=date] .calendar-day-number{background:Highlight;color:HighlightText}.calendar-task-label,.calendar-project-label{border-color:CanvasText}}
/* Shared spacing rhythm for the new calendar and focused settings surfaces. */
.calendar-layout,.widget-settings .widget-workbench{gap:var(--space-6)}.calendar-day-detail{padding:var(--space-6)}.calendar-month-bar,.widget-layout-preview{padding:var(--space-4)}.calendar-day-detail>h2{margin-bottom:var(--space-4)}.calendar-day-detail>h3{margin-top:var(--space-6)}.settings-category>h2{margin-bottom:var(--space-2)}
@media(max-width:700px){.calendar-layout,.widget-settings .widget-workbench{gap:var(--space-4)}.calendar-day-detail{padding:var(--space-4)}}
/* Optional calendar widget shares Schedule data and date navigation. */
.calendar-widget .calendar-month-bar{padding:0 0 var(--space-4);flex-wrap:wrap}.calendar-widget .calendar-month-bar h3{font-size:calc(1rem * var(--font-scale));letter-spacing:0}.calendar-widget .calendar-day{min-height:56px;padding:4px 5px}.calendar-widget .calendar-day-items{display:none}.calendar-widget .calendar-day-count{top:auto;bottom:3px;left:5px;right:auto}.calendar-widget .calendar-weekdays{font-size:calc(.8rem * var(--font-scale))}
/* Keep navigation close to the reading area on very wide windows. */
@media(min-width:2000px){.shell{max-width:1920px;margin-inline:auto}.sidebar{left:calc((100% - 1920px)/2)}}
.style-current{font-size:calc(.93rem * var(--font-scale));line-height:1.5;color:var(--muted);margin:0 0 var(--space-3)}

/* Accessibility control candidate: contain keyboard rings within clipped panels.
   Existing sidebar/brand/form focus colors and all typography remain unchanged. */
.settings-list .settings-destination:focus-visible,
.calendar-day:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:-3px;
}
/* Match the existing coarse-pointer geometry for generic icon controls as well. */
.icon-button{
  min-width:44px;
  min-height:44px;
  height:44px;
}
@media(forced-colors:active){
  .settings-list .settings-destination:focus-visible,
  .calendar-day:focus-visible{outline-color:Highlight;}
}

/* Keep grouped Settings within narrow and enlarged-text grid tracks. */
.settings-index{grid-template-columns:minmax(0,1fr)}.settings-category{min-width:0}

/* Stack local save status and backup access in the narrowest footer. */
@media(max-width:360px){.workspace-footer{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start}.workspace-footer>span,.workspace-footer>button{max-width:100%;overflow-wrap:anywhere;text-align:left}}

/* One continuous capsule: quiet track, rounded fill and short task dividers. */
.progress{height:12px;background:var(--surface-soft);box-shadow:inset 0 0 0 1px var(--control-border)}.progress>.progress-fill{border-radius:inherit}.progress-separator{top:3px;bottom:3px;opacity:.65}.project-completion>span:not(.progress){font-variant-numeric:tabular-nums;min-width:3ch;text-align:right;font-weight:600}@media(forced-colors:active){.progress{box-shadow:none}.progress-separator{top:0;bottom:0;opacity:1}}

/* Local search keeps query, category and results distinct. */
.breadcrumbs .search-button{border-radius:12px;border:1px solid var(--control-border);min-height:44px}
.search-button kbd{border:1px solid var(--line);background:var(--surface-soft);border-radius:5px;padding:2px 5px}
.search-clear{min-height:44px;padding:8px;color:var(--green);font-size:calc(13px * var(--font-scale));border-radius:8px}
.search-filters{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 16px;border-bottom:1px solid var(--line)}
.search-filters button{min-width:0;min-height:44px;padding:8px;font-size:calc(13px * var(--font-scale));border-radius:8px;color:var(--muted)}
.search-filters button[aria-pressed=true]{background:var(--surface-soft);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px var(--control-border)}
#search-count{flex:none;margin:0;border:0;padding:10px 20px}
.search-result{gap:12px;min-height:64px;padding:12px;border-radius:10px}
.search-result>svg{flex:none;width:20px;height:20px}
.search-result>svg:last-child{width:16px;height:16px;color:var(--muted);margin-left:auto}
.search-result>span{flex:1;min-width:0}
.search-result strong{display:block;font-weight:600;font-size:calc(14px * var(--font-scale));line-height:1.5}
.search-result small{margin-top:2px}
.search-result .search-excerpt{display:block;margin-top:5px;color:var(--muted);font-size:calc(13px * var(--font-scale));line-height:1.5}
.search-result[data-search-type=task]>svg:first-child{color:var(--icon-tasks)}
.search-result[data-search-type=project]>svg:first-child{color:var(--icon-projects)}
.search-result[data-search-type=note]>svg:first-child{color:var(--icon-notes)}
.search-result:focus-visible,.search-filters button:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.search-pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:8px}
.search-pagination:empty{display:none}
.search-hint{flex:none;margin:0}
@media(max-width:380px){.search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active){.search-filters button[aria-pressed=true]{outline:1px solid Highlight}.search-result>svg{color:ButtonText!important}.search-result:focus-visible,.search-filters button:focus-visible{outline-color:Highlight}}

/* 1–4 pinned phone destinations plus fixed More; Search stays in the top toolbar. */
@media(max-width:700px){#mobile-nav{grid-template-columns:repeat(var(--mobile-destination-count,5),minmax(0,1fr))}}



@media(max-width:700px){.search-button .search-desktop-label{display:none}}

/* User-triggered confirmation stays inside existing work; never on initial load. */
.completion-feedback{animation:gather-completion-confirm .75s ease-out}
@keyframes gather-completion-confirm{from{box-shadow:inset 0 0 0 2px var(--green)}to{box-shadow:inset 0 0 0 0 transparent}}
@media(prefers-reduced-motion:reduce),(prefers-contrast:more),(forced-colors:active){.completion-feedback{animation:none!important}}
:root[data-motion=off] .completion-feedback{animation:none!important}

/* Navigation preferences reuse the existing opaque work/settings components. */
.navigation-choice label{gap:8px;display:flex;align-items:center}.navigation-position{margin-left:auto;color:var(--muted)}.navigation-choice .navigation-move-controls{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0}.navigation-count{color:var(--muted);font-size:calc(.93rem * var(--font-scale));margin-block:var(--space-3)}.navigation-preview{border:1px solid var(--line);border-radius:8px;padding:var(--space-4);background:var(--white)}.navigation-preview h2{margin-bottom:var(--space-3)}.navigation-preview ol{padding-left:24px;line-height:1.8}.navigation-preview li .field-help{margin-left:8px}

/* Opaque workspace chooser, shared tokens and normal scrolling for long lists. */
#workspace-dialog{overflow:auto;background:var(--white);color:var(--ink)}
#workspace-dialog .dialog-header{gap:var(--space-3);padding:var(--space-4)}
#workspace-dialog .icon-button{min-width:44px;min-height:44px;height:auto;flex-shrink:0}
.workspace-chooser{display:grid;gap:var(--space-4);padding:var(--space-4);min-width:0}
.workspace-chooser p{margin:0;overflow-wrap:anywhere}
.workspace-list{display:grid;gap:var(--space-2);min-width:0}
.workspace-choice.button{display:grid;justify-items:start;justify-content:stretch;gap:4px;min-height:52px;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
.workspace-choice[aria-current=true]{border-color:var(--green);background:var(--surface-soft);opacity:1;color:var(--ink)}
.workspace-choice small{font-size:calc(.86rem * var(--font-scale));color:var(--muted)}
.workspace-create-form{display:grid;gap:var(--space-3);border-top:1px solid var(--line);padding-top:var(--space-4);min-width:0}
.workspace-create-form .form-field{margin:0;min-width:0}
.workspace-create-form .button,.workspace-chooser .settings-buttons .button{min-height:44px;white-space:normal;max-width:100%;overflow-wrap:anywhere}
.workspace-capability{border-left:3px solid var(--line);padding-left:var(--space-3);font-size:calc(.93rem * var(--font-scale))}
@media(forced-colors:active){.workspace-choice[aria-current=true]{border:2px solid Highlight;color:CanvasText;background:Canvas}}
/* Valid long project names must wrap as Notes and project-detail titles do. */
.project-card h3{min-width:0;overflow-wrap:anywhere}
/* Existing task dialog separates read-only details from explicit editing. */
.task-details{padding:clamp(16px,2.5vw,24px);min-width:0;background:var(--white);color:var(--ink)}
.task-details-title{font-size:calc(1.2rem * var(--font-scale));line-height:1.4;overflow-wrap:anywhere;margin:0 0 var(--space-3)}
.task-details-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:0 0 var(--space-6)}
.task-details-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:var(--space-4);margin:0}
.task-details-fields>div{min-width:0}
.task-details-fields dt{font-size:calc(.85rem * var(--font-scale));line-height:1.5;color:var(--muted);margin-bottom:4px}
.task-details-fields dd{margin:0;line-height:1.5;overflow-wrap:anywhere}
.task-details .button{min-height:44px;white-space:normal}

/* Match the centered main content edges at every available workspace width. */
.workspace-footer{width:calc(100% - 2 * var(--page-gutter));max-width:calc(var(--work-max) - 2 * var(--page-gutter));margin-inline:auto}

/* Browser-bar Search: anchored suggestions preserve the visible current page. */
#search-control{position:relative;flex:1;min-width:0;width:100%;max-width:680px;grid-area:search;z-index:45}
#search-control .search-field{display:flex;width:100%;max-width:none;min-width:0;min-height:46px;padding:0 10px;gap:8px;cursor:text;background:var(--white)}
#search-control .search-field:focus-within{border-color:var(--focus);box-shadow:inset 0 0 0 1px var(--focus)}
#search-control #global-search{display:block;flex:1;min-width:0;width:100%;min-height:44px;padding:6px 0;border:0;border-radius:0;background:transparent;font-size:calc(14px * var(--font-scale));line-height:1.5}
#search-control #search-icon{display:inline-flex;flex:none}
#search-control .search-clear{flex:none;min-width:44px;min-height:44px;padding-inline:6px}
#search-control .search-clear[hidden],#search-suggestions[hidden]{display:none}
#search-suggestions{position:absolute;inset-inline-start:0;top:calc(100% + 6px);display:flex;flex-direction:column;width:100%;max-height:min(520px,calc(100dvh - 160px));overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);box-shadow:0 8px 24px #1829381a;container-type:inline-size}
#search-suggestions .search-filters{flex:none;margin:0;padding:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
#search-suggestions .search-filters button{min-height:44px;white-space:normal;overflow-wrap:anywhere;padding-inline:6px}
#search-suggestions .search-help{flex:none;margin:0;padding:8px 12px}
#search-suggestions .search-results{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:6px;scroll-padding:6px}
#search-suggestions .search-result{width:100%;min-width:0;text-align:left;white-space:normal;min-height:56px;padding:10px}
#search-suggestions .search-result[aria-selected=true]{outline:3px solid var(--focus);outline-offset:-3px;background:var(--surface-soft)}
#search-suggestions .search-pagination{flex:none;padding:6px;margin:0}
#search-suggestions .search-pagination:empty{display:none}
#search-suggestions .search-pagination .button{min-height:44px;white-space:normal}
.search-empty{padding:12px;color:var(--muted);font-size:calc(13px * var(--font-scale));line-height:1.5;overflow-wrap:anywhere}
@container(max-width:420px){#search-suggestions .search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#search-control{max-width:none}#search-control kbd{display:none}#search-suggestions .search-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(forced-colors:active){#search-suggestions .search-result[aria-selected=true]{outline-color:Highlight;background:Canvas;color:CanvasText}}
/* One definition keeps Schedule modes aligned while their content differs. */
.schedule-toolbar{margin-bottom:var(--space-6)}.schedule-toolbar .schedule-mode{margin-bottom:0;max-width:100%;flex-wrap:wrap}

/* Schedule uses readable content width; wide DOM has both surfaces and no mode switch. */
.schedule-combined{display:grid;grid-template-columns:minmax(calc(420px * var(--font-scale)),1.35fr) minmax(calc(320px * var(--font-scale)),1fr);align-items:start;gap:var(--space-6)}
.schedule-combined>*{min-width:0}.schedule-calendar-only{grid-template-columns:minmax(0,1fr)}
.schedule-range-toolbar{align-items:center}.schedule-range-toolbar .schedule-summary{margin:0;overflow-wrap:anywhere}
.linked-agenda{padding:var(--space-4);min-width:0}.linked-agenda .schedule-group{margin:0;padding:var(--space-3) 0;border-top:1px solid var(--line)}
.linked-agenda .section-header{margin-bottom:var(--space-2)}.linked-agenda .selected-agenda-date{margin:0 0 var(--space-3);color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.linked-agenda .agenda-date{font-size:calc(1rem * var(--font-scale));text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.linked-agenda .selected-agenda-group{border-inline-start:3px solid var(--focus);padding-inline-start:var(--space-3)}
.linked-agenda .task-row{grid-template-columns:24px minmax(0,1fr) auto;gap:var(--space-2);padding-block:var(--space-3);min-height:76px}
.linked-agenda .task-row .check{grid-column:1;grid-row:1 / 3}.linked-agenda .task-row .task-content{grid-column:2 / -1;grid-row:1}.linked-agenda .task-row .priority{grid-column:3;grid-row:2}.linked-agenda .task-row .due{grid-column:2;grid-row:2;margin:0;justify-content:flex-start}
.linked-agenda .schedule-note{flex-wrap:wrap;margin-top:var(--space-3)}.agenda-empty-date{color:var(--muted);margin:var(--space-2) 0;line-height:1.5}

.note-details-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.note-details-project{color:var(--muted);margin-block:var(--space-2) var(--space-4);overflow-wrap:anywhere}

/* Anchored Search must paint above content even when a material creates a stacking context. */
.workspace>.topbar{position:relative;z-index:10}
.workspace>main,.workspace>.workspace-footer{position:relative;z-index:0}
#search-suggestions{z-index:1}
#search-control .search-field:focus-within{outline:3px solid var(--focus);outline-offset:2px;box-shadow:none}
#search-control #global-search:focus{outline:none}
@media(forced-colors:active){#search-control .search-field:focus-within{outline-color:Highlight}}

/* Shared shallow tile shading; content surfaces remain opaque. */
:root{--tile-shadow:0 2px 8px #1829380a,0 1px 2px #18293808}
:root[data-theme=dark]{--tile-shadow:0 2px 10px #00000028,0 1px 2px #00000020}
.panel,.project-card,.note-card,.settings-panel,.priorities-section,.active-projects,.dashboard-side,.dashboard-custom>section,.appearance-form,.appearance-preview{box-shadow:var(--tile-shadow)}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more),(forced-colors:active){:root,:root[data-theme=dark]{--tile-shadow:none}}

/* Public tester disclosure; independent from private release. */
:root{--prototype-notice-height:96px}
body{padding-top:var(--prototype-notice-height)}
.prototype-notice,.prototype-dialog-notice{margin:0;background:var(--white);color:var(--ink);border-bottom:2px solid var(--control-border);padding:10px max(12px,env(safe-area-inset-left,0px));font-size:calc(12px * var(--font-scale));line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.prototype-notice{position:fixed;inset:0 0 auto;z-index:110}
.prototype-dialog-notice{position:sticky;top:0;z-index:2}
.sidebar{top:var(--prototype-notice-height);max-height:calc(100dvh - var(--prototype-notice-height))}
.shell{min-height:calc(100dvh - var(--prototype-notice-height))}
@media(forced-colors:active){.prototype-notice,.prototype-dialog-notice{background:Canvas;color:CanvasText;border-color:CanvasText}}
