/* Saros: one quiet action language, independent of optional item emoji. */
.ui-icon{width:18px;height:18px;display:block;flex:none;pointer-events:none}
#sort-announcement{position:fixed!important;top:0;left:0}
.nav-button{transition:background .15s,color .15s,border-color .15s}
button.ui-action{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:5px;flex:none;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted);line-height:1;vertical-align:middle;box-shadow:none}
button.ui-action:hover{background:var(--surface-2);border-color:var(--border);color:var(--text);transform:none}
button.ui-action:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.ui-action-label{display:inline-flex;align-items:center;justify-content:center;gap:7px}
button.ui-drag-handle{cursor:grab;touch-action:none;user-select:none}
button.ui-drag-handle:active,.ui-sorting,.ui-sorting *{cursor:grabbing!important}
.ui-scope-dot{position:absolute;bottom:4px;left:4px;width:5px;height:5px;border-radius:50%;background:currentColor;outline:2px solid var(--surface)}
[data-sort-kind]{transition:background .15s,opacity .15s}
.ui-dragging{opacity:.4}
.ui-drop-before{box-shadow:0 -3px 0 var(--text)!important}
.ui-drop-after{box-shadow:0 3px 0 var(--text)!important}
tr.ui-drop-before>*,tr.ui-drop-after>*{position:relative}
tr.ui-drop-before>*{box-shadow:inset 0 3px 0 var(--text)}
tr.ui-drop-after>*{box-shadow:inset 0 -3px 0 var(--text)}
.area-row{padding:10px 12px;gap:10px}
.area-controls{gap:3px;flex-wrap:nowrap}
.area-name{min-width:0;flex:1;gap:8px}
.area-name .cat-pill{font-size:13px}
.habit-manage-controls{gap:5px}
.home-widget{min-width:0}
.home-widget>.card{height:100%}
.v14-task-actions button.ui-action{padding:5px;min-width:30px}
.goal-controls{gap:4px}
.v18-habit-table thead th:first-child{width:192px}
.v18-habit-table tbody th{padding:9px 8px 6px;vertical-align:top}
.v18-habit-name{gap:3px}
.v18-name-button{cursor:default}
.v18-habit-tools{position:static;display:flex;justify-content:flex-end;gap:3px;margin-top:3px}
.v18-habit-tools button.ui-action{width:25px;height:25px;min-width:25px;min-height:25px;padding:4px}
.v18-habit-tools .ui-icon{width:16px;height:16px}
.v16-note button.ui-action{width:22px;height:22px;min-width:22px;min-height:22px;padding:3px;color:var(--ink);border-radius:4px}
.v16-note button.ui-action .ui-icon{width:15px;height:15px}
.v16-note button.ui-action:hover{background:color-mix(in srgb,var(--ink) 8%,transparent);border-color:var(--edge)}
.v14-mini-edit.ui-action{width:25px;min-width:25px;height:25px;min-height:25px;padding:4px}

/* Neutral tokens replace the old accent colours without changing stored area colours. */
body[data-palette="mono"]{--purple:var(--text);--purple-deep:var(--muted);--mint:var(--text);--blue:var(--muted);--yellow:var(--muted);--pink:var(--text);--peach:var(--muted);--accent:var(--text);--primary:var(--text);--danger:var(--text);--line:var(--border);--card:var(--surface);--surface-soft:var(--surface-2);--text-secondary:var(--muted);--shadow:0 16px 40px #00000009;--shadow-soft:0 4px 18px #00000006}
body[data-palette="mono"][data-theme="light"]{--bg:#f5f5f5;--surface:#ffffff;--surface-2:#eeeeee;--surface-3:#e4e4e4;--border:#d5d5d5;--text:#262626;--muted:#606060;--muted-2:#707070;--button-bg:#292929;--button-text:#fafafa}
body[data-palette="mono"][data-theme="dark"]{--bg:#151515;--surface:#202020;--surface-2:#2a2a2a;--surface-3:#343434;--border:#444444;--text:#ededed;--muted:#b8b8b8;--muted-2:#a3a3a3;--button-bg:#e2e2e2;--button-text:#202020;--shadow:0 16px 40px #0000001a;--shadow-soft:0 4px 18px #00000018}
body[data-palette="mono"] .aurora{display:none}
body[data-palette="mono"] .sidebar,body[data-palette="mono"] .mobile-nav{background:var(--surface);box-shadow:none}
body[data-palette="mono"] .topbar{background:color-mix(in srgb,var(--bg) 96%,transparent)}
body[data-palette="mono"] .brand-symbol{background:var(--button-bg);color:var(--button-text);box-shadow:none}
body[data-palette="mono"] .brand-symbol span{color:var(--muted)}
body[data-palette="mono"] .primary-btn{background:var(--button-bg);border-color:var(--button-bg);color:var(--button-text);box-shadow:none}
body[data-palette="mono"] .soft-btn,body[data-palette="mono"] .nav-button.active,body[data-palette="mono"] .mobile-nav button.active{background:var(--surface-2);border-color:var(--border);color:var(--text)}
body[data-palette="mono"] .sidebar-mantra,body[data-palette="mono"] .callout,body[data-palette="mono"] .tip-card{background:var(--surface-2);border-color:var(--border)}
body[data-palette="mono"] .card{box-shadow:var(--shadow-soft)}
body[data-palette="mono"] .hero{background:linear-gradient(115deg,var(--surface),var(--surface-2));color:var(--text);border-color:var(--border)}
body[data-palette="mono"] .hero:after{background:none}
body[data-palette="mono"] .hero h1,body[data-palette="mono"] .hero h1 em{color:var(--text)}
body[data-palette="mono"] .hero p,body[data-palette="mono"] .hero-tag{color:var(--muted)}
body[data-palette="mono"] .hero .outline-btn{background:transparent;border-color:var(--border);color:var(--text)}
body[data-palette="mono"] .orbit-core,body[data-palette="mono"] .mind-center{background:var(--button-bg);color:var(--button-text);box-shadow:none}
body[data-palette="mono"] .orbit-node{background:var(--surface);color:var(--text);border-color:var(--border)}
body[data-palette="mono"] .orbit-ring,body[data-palette="mono"] .orbit-ring.two,body[data-palette="mono"] .mind-ring{border-color:var(--muted-2)}
body[data-palette="mono"] .orbit-star{color:var(--muted)}
body[data-palette="mono"] .mind-orbit{background:none}
body[data-palette="mono"] .stat-icon{background:var(--surface-2)!important;color:var(--text)!important}
body[data-palette="mono"] .stat-card{--stat-color:var(--text)!important}
body[data-palette="mono"] [class*="category-"]{--cat:var(--muted)!important;color:var(--text)}
body[data-palette="mono"] .cat-pill{border-color:var(--border);border-inline-start-color:var(--muted);background:var(--surface-2);color:var(--text)}
body[data-palette="mono"] .progress-fill{background:var(--text)}
body[data-palette="mono"] .task-card{background:var(--surface-2)}
body[data-palette="mono"] .task-toggle.checked,body[data-palette="mono"] .month-day.today .day-number{background:var(--button-bg);color:var(--button-text)}
body[data-palette="mono"] .habit-check.active,body[data-palette="mono"] .date-chip.selected,body[data-palette="mono"] .day-check:has(input:checked){background:var(--surface-3);border-color:var(--muted);color:var(--text)}
body[data-palette="mono"] .danger-btn{color:var(--text)!important;border-color:var(--border)!important}
body[data-palette="mono"] button.ui-action.danger-btn{border-color:transparent!important;color:var(--muted)!important}
body[data-palette="mono"] button.ui-action.danger-btn:hover{border-color:var(--border)!important;color:var(--text)!important}
body[data-palette="mono"] .modal-overlay{background:#000000a8}
body[data-palette="mono"] .palette-option.active{outline-color:var(--text)}
body[data-palette="mono"] .palette-swatch{box-shadow:0 0 0 1px var(--border);border-color:var(--surface)}
body[data-palette="mono"] .focus-ring{box-shadow:0 0 0 1px var(--border),0 8px 26px #00000016}
body[data-palette="mono"] .outcome-check{background:var(--surface-2);border-color:var(--border);color:var(--text)}
body[data-palette="mono"] .planning-review,body[data-palette="mono"] .goal-rollup{border-color:var(--border)}
body[data-palette="mono"] .roadmap-card.current{box-shadow:0 0 0 1px var(--muted)}

/* Meaning stays explicit through labels, borders and marks, including urgency. */
body[data-palette="mono"] .priority,body[data-palette="mono"] .est-badge,body[data-palette="mono"] .est-note,body[data-palette="mono"] .cap-line.bad,body[data-palette="mono"] .free-mini-warning.is-short{background:var(--surface-3);color:var(--text);border-color:var(--muted)}
body[data-palette="mono"] .priority.urgent{background:var(--button-bg);color:var(--button-text)}
body[data-palette="mono"] .urgent-card{border-color:var(--muted)!important;box-shadow:inset 4px 0 var(--text)!important}
body[data-palette="mono"] .sec-item.urgent{border-color:var(--muted);box-shadow:inset 4px 0 var(--text)}
body[data-palette="mono"] .task-card.urgent-card .task-title,body[data-palette="mono"] .sec-note.warn,body[data-palette="mono"] .trow.is-urgent .trow-name,body[data-palette="mono"] .v14-event-kind.v14-urgent,body[data-palette="mono"] .v15-negative{color:var(--text)}
body[data-palette="mono"] .sec-slot.appt,body[data-palette="mono"] .sec-slot.urgent{border-inline-start-color:var(--text)}
body[data-palette="mono"] .trow.is-appt .trow-bar{background:repeating-linear-gradient(135deg,var(--muted) 0 4px,var(--surface-3) 4px 8px)}
body[data-palette="mono"] .trow.is-urgent{background:var(--surface-2);border-color:var(--muted)}
body[data-palette="mono"] .trow.is-urgent .trow-bar{background:var(--text)}
body[data-palette="mono"] .v14-month-event,body[data-palette="mono"] .v14-month-event.urgent{background:var(--surface-2);color:var(--text)}
body[data-palette="mono"] .v14-month-event.urgent{border-inline-start:3px solid var(--text)}
body[data-palette="mono"] :is(.legend-mark,.legend-square,.habit-week-cell,.challenge-cell,.v14-status,.v18-habit-cell).done{background:var(--button-bg);color:var(--button-text);border-color:var(--muted)}
body[data-palette="mono"] :is(.legend-mark,.legend-square,.habit-week-cell,.challenge-cell,.v14-status,.v18-habit-cell).missed{background:var(--surface-3);color:var(--text);border-color:var(--muted)}
body[data-palette="mono"] :is(.habit-week-cell,.challenge-cell,.v14-status,.v18-habit-cell).skipped{background:var(--surface-2)!important;color:var(--text)!important}
body[data-palette="mono"] :is(.habit-week-cell,.challenge-cell).rest{background:var(--surface-2)!important;color:var(--muted)!important;border-color:var(--border)!important}
body[data-palette="mono"] .challenge-cell,body[data-palette="mono"] .challenge-cell.future{color:var(--muted)}
body[data-palette="mono"] .challenge-cell:focus-visible{outline-color:var(--text)}
body[data-palette="mono"] .challenge-date.is-today,body[data-palette="mono"] .v18-habit-table .v18-today{background:var(--surface-2);color:var(--text)}
body[data-palette="mono"] .smart-workspace,body[data-palette="mono"] .smart-workspace-icon,body[data-palette="mono"] .v15-balance>div,body[data-palette="mono"] .v15-message.from-user,body[data-palette="mono"] .v15-message.from-secretary,body[data-palette="mono"] .v15-suggestion{background:var(--surface-2);border-color:var(--border)}
body[data-palette="mono"] .v15-small-quadrant{background:var(--surface-3);border-color:var(--border);color:var(--text)}
body[data-palette="mono"] .v15-conversation,body[data-palette="mono"] .v15-inbox{border-color:var(--border)}
body[data-palette="mono"] .v15-goals-empty>span{color:var(--muted)}

/* Compact sticky papers keep their shape, using only tonal differences. */
body[data-palette="mono"] .v16-zone{--zone-accent:var(--muted)}
body[data-palette="mono"] .v16-zone-do{--zone-accent:var(--text)}
body[data-palette="mono"] .v16-zone-later{--zone-accent:var(--border)}
body[data-palette="mono"] .v16-note{--paper:#f5f5f5;--ink:#262626;--edge:#cccccc;--pin:#919191;box-shadow:1px 2px 1px #00000012}
body[data-palette="mono"] .v16-paper-lemon{--paper:#f4f4f4}
body[data-palette="mono"] .v16-paper-lilac{--paper:#e9e9e9}
body[data-palette="mono"] .v16-paper-peach{--paper:#fcfcfc}
body[data-palette="mono"] .v16-paper-mint{--paper:#eeeeee}
body[data-palette="mono"] .v16-paper-sky{--paper:#e3e3e3}
body[data-palette="mono"][data-theme="dark"] .v16-note{--ink:#f2f2f2;--edge:#606060;--pin:#b6b6b6}
body[data-palette="mono"][data-theme="dark"] .v16-paper-lemon{--paper:#343434}
body[data-palette="mono"][data-theme="dark"] .v16-paper-lilac{--paper:#3b3b3b}
body[data-palette="mono"][data-theme="dark"] .v16-paper-peach{--paper:#303030}
body[data-palette="mono"][data-theme="dark"] .v16-paper-mint{--paper:#383838}
body[data-palette="mono"][data-theme="dark"] .v16-paper-sky{--paper:#404040}
body[data-palette="mono"] .v16-note:before{box-shadow:none}
body[data-palette="mono"] .v16-note:hover,body[data-palette="mono"] .v16-note:focus-within{box-shadow:inset 0 0 0 1px var(--edge)}
body[data-palette="mono"] .v16-note:focus-visible,body[data-palette="mono"] .v16-note.v16-drop-before{outline-color:var(--text)}
body[data-palette="mono"] .v16-move-select{background:color-mix(in srgb,var(--paper) 92%,var(--ink))!important;border-color:var(--edge)!important;color:var(--ink)!important}
body[data-palette="mono"] .v16-note .cat-pill{color:var(--ink);background:transparent}
body[data-palette="mono"] .v16-move-label{border-color:var(--edge)}

@media(max-width:650px){.area-row{flex-direction:row;align-items:center;padding:9px}.area-controls{width:auto}.area-name{gap:3px}.area-name small{font-size:10px}.area-manager .section-heading h2{font-size:16px}.area-list{gap:7px}}
@media(pointer:coarse){button.ui-action{width:36px;height:36px;min-width:36px;min-height:36px}.v18-habit-tools button.ui-action{width:30px;min-width:30px;height:30px;min-height:30px}}
@media(prefers-reduced-motion:reduce){[data-sort-kind],button.ui-action{transition:none}}
