/* ULADIM: editorial hierarchy, workspace structure, calm teal surfaces. */
:root,body[data-design=clarity]{--bg:#f8f9f6;--card:#fff;--ink:#172e2b;--muted:#586d67;--line:#d9e2dc;--accent:#185b50;--button:#fff;--soft:#e5eee8;--income:#176c54;--expense:#a63f36;--radius:12px;--control:44px;--space:8px;--shadow:0 8px 32px #183e3010}
body[data-theme=dark],body[data-design=clarity][data-theme=dark]{color-scheme:dark;--bg:#101b19;--card:#182723;--ink:#edf5ef;--muted:#a7bdb2;--line:#344940;--accent:#a2dec6;--button:#12372b;--soft:#233e33;--income:#8fdfb6;--expense:#ffb1a3;--shadow:none}
@media(prefers-color-scheme:dark){:root,body[data-design=clarity]:not([data-theme=light]){color-scheme:dark;--bg:#101b19;--card:#182723;--ink:#edf5ef;--muted:#a7bdb2;--line:#344940;--accent:#a2dec6;--button:#12372b;--soft:#233e33;--income:#8fdfb6;--expense:#ffb1a3;--shadow:none}}
body[data-theme=light]{color-scheme:light}body[data-design=clarity][data-palette=ocean]{--income:#176b83;--expense:#aa403e}body[data-design=clarity][data-palette=pistachio]{--income:#4f6a25;--expense:#a23c64}
body[data-design=clarity][data-theme=dark][data-palette=ocean]{--income:#92d9e9;--expense:#ffb1a3}body[data-design=clarity][data-theme=dark][data-palette=pistachio]{--income:#c2df91;--expense:#fbb5ce}
@media(prefers-color-scheme:dark){body[data-design=clarity]:not([data-theme=light])[data-palette=ocean]{--income:#92d9e9;--expense:#ffb1a3}body[data-design=clarity]:not([data-theme=light])[data-palette=pistachio]{--income:#c2df91;--expense:#fbb5ce}}
button,a.button{min-height:44px}.landing h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.055em;max-width:920px;font-size:clamp(42px,6.3vw,78px)}.landing{padding-top:64px}.brand{letter-spacing:.04em}.auth .brand,body[data-design=clarity] .brand{color:var(--accent)}
body[data-design=clarity]{font-size:1rem;letter-spacing:-.015em}body[data-design=clarity] h1{font-size:clamp(1.875rem,3.4vw,2.75rem);font-weight:600}body[data-design=clarity] h2{font-size:1.125rem}body[data-design=clarity] h3{font-size:1rem}body[data-design=clarity] .nav{background:var(--bg)}body[data-design=clarity] button,body[data-design=clarity] a.button{font-size:.875rem;border-radius:var(--radius)}body[data-design=clarity] input,body[data-design=clarity] select,body[data-design=clarity] textarea{font-size:1rem;border-radius:var(--radius)}body[data-design=clarity] .nav button{font-size:.875rem}body[data-design=clarity] .nav button[aria-current=page]{color:var(--accent)}
.finance-toolbar{display:flex;justify-content:flex-end;margin:-4px 0 20px}.finance-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:16px;padding:0 0 24px}.finance-filters>div{min-width:0}.finance-filters label{margin-top:0}.finance-filters input,.finance-filters select{width:100%;min-width:0}body[data-design=clarity] .finance-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px 36px}.finance-total{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.finance-total strong{display:block;font-size:clamp(1.25rem,2.3vw,1.875rem);font-weight:550;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.finance-total .small{display:block}.currency-code{font-size:.75rem;letter-spacing:.1em;color:var(--muted)}.account-balance{display:grid;grid-template-columns:1fr auto 44px;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.account-balance strong{font-variant-numeric:tabular-nums}.chart-controls{display:grid;grid-template-columns:1fr 2fr;gap:12px}.chart-controls>label{align-self:end}.chart-controls>select{grid-row:2;min-width:0}.chart-legend{display:flex;flex-wrap:wrap;gap:8px 24px;padding:18px 0;font-size:.875rem}.finance-analysis canvas{width:100%;height:auto;max-height:360px}.budget-line{display:grid;grid-template-columns:1.5fr 1fr 44px;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}.budget-line progress{width:100%;height:8px;accent-color:var(--accent)}.ledger h3{font-weight:500}.ledger .row>strong{font-size:.9375rem;white-space:nowrap}.income{color:var(--income)}.expense{color:var(--expense)}
body[data-design=clarity] .statement-dialog{max-width:1040px}.statement-dialog fieldset{min-width:0}.statement-dialog input[type=file]{max-width:100%;white-space:normal;font-size:.875rem}.statement-dialog input[type=file]::file-selector-button{font:inherit;min-height:44px;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:8px;margin-right:12px;padding:8px}.statement-dialog details{margin:20px 0}.statement-dialog summary{cursor:pointer;min-height:44px;padding:10px 0}.statement-dialog select{max-width:100%;min-width:0}.import-table{max-height:50dvh;overflow:auto;border:1px solid var(--line);border-radius:var(--radius);overscroll-behavior:contain}.import-table table{border-collapse:collapse;width:100%;min-width:560px;font-size:.875rem}.import-table th,.import-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;max-width:300px;overflow-wrap:anywhere}.import-table th{position:sticky;top:0;background:var(--card);z-index:1}.import-table input[type=checkbox]{margin:10px;cursor:pointer}.import-status{overflow-wrap:anywhere}.import-results .actions{align-items:center;justify-content:center}.statement-dialog .dialog-head{position:sticky;top:-24px;z-index:2;background:var(--card);padding:12px 0}.statement-dialog .actions>button{flex:none}
body[data-design=clarity] dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding-bottom:max(24px,env(safe-area-inset-bottom))}button,input,select,textarea{max-width:100%}textarea{resize:vertical}fieldset{min-width:0}.note{overflow-wrap:anywhere;white-space:pre-wrap}.row .text{min-width:0}.error{overflow-wrap:anywhere}
@media(max-width:1099px){.finance-filters{grid-template-columns:1fr 1fr}body[data-design=clarity] .finance-grid{grid-template-columns:1fr}.finance-total{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:759px){body[data-design=clarity] .nav button{font-size:.6875rem;min-height:52px}body[data-design=clarity] .finance-grid{gap:12px}.finance-filters{gap:12px}.finance-filters>div:first-child{grid-column:1/-1}.finance-total{gap:12px;grid-template-columns:1fr 1fr}.finance-total .currency-code{grid-column:1/-1}.finance-total strong{font-size:1.375rem}.account-balance{grid-template-columns:minmax(0,1fr) auto 44px}.account-balance strong{font-size:.875rem}.budget-line{grid-template-columns:1fr 44px;gap:10px}.budget-line progress{grid-column:1;grid-row:2}.budget-line>button{grid-column:2;grid-row:1 / span 2}.ledger .row{flex-wrap:wrap}.ledger .row .text{flex-basis:calc(100% - 56px)}.ledger .row>strong{order:3;flex-basis:100%}.landing{padding-top:32px}}
@media(max-width:360px){.finance-filters{grid-template-columns:1fr}.finance-filters>div{grid-column:1}.chart-controls{grid-template-columns:1fr}.chart-controls>select{grid-row:auto}.finance-total strong{font-size:1.125rem}.account-balance{grid-template-columns:1fr 44px}.account-balance strong{grid-column:1}.account-balance button{grid-column:2;grid-row:1 / span 2}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.budget-line>button{grid-column:3}@media(max-width:759px){body[data-design=clarity] main{padding-bottom:max(118px,calc(var(--nav-height,80px) + 24px))}.budget-line>button{grid-column:2}}

body[data-design=clarity] .nav{overflow-y:auto;overscroll-behavior:contain}body[data-design=clarity] label{font-size:.875rem}body[data-design=clarity] .small{font-size:.8125rem}

body[data-design=clarity] .card{box-shadow:none}

/* A tablet rail must never wrap navigation labels character by character. */
@media(min-width:760px) and (max-width:1099px){body[data-design=clarity] .nav{width:11rem;align-items:stretch}body[data-design=clarity] .nav button{display:flex;flex-direction:row;align-items:center;gap:.625rem;padding:.75rem;min-width:0;text-align:left;overflow-wrap:normal;word-break:normal}body[data-design=clarity] .nav button>span:last-child{white-space:normal;overflow-wrap:break-word}body[data-design=clarity] .nav .symbol{flex:0 0 24px}body[data-design=clarity] main:not(.login){margin-left:11rem;width:auto}}

@media(min-width:760px){body[data-design=clarity] .nav{top:var(--app-header-height,80px)}}

/* Web workspace: content surfaces, responsive rail and keyboard-safe dialogs. */
body[data-design=clarity]{--bg:#f5f7f5;--card:#fff;--soft:#e4eeea;--accent:#155b4e;--line:#dee6e1;--muted:#53645c}
body[data-design=clarity][data-theme=dark]{--bg:#101a18;--card:#182622;--soft:#233d34;--accent:#a2dec6;--line:#344940;--muted:#a7bdb2}
@media(prefers-color-scheme:dark){body[data-design=clarity]:not([data-theme=light]){--bg:#101a18;--card:#182622;--soft:#233d34;--accent:#a2dec6;--line:#344940;--muted:#a7bdb2}}
body[data-design=clarity] header{background:var(--card);border-bottom:1px solid var(--line);height:auto;min-height:80px}
body[data-design=clarity] .brand{font-size:23px;letter-spacing:.06em;flex-shrink:0}body[data-design=clarity] .brand small{font-size:11px;font-weight:500;letter-spacing:0;max-width:240px}
body[data-design=clarity] main:not(.login){max-width:1600px;padding-top:32px}
body[data-design=clarity] .intro h1{font-size:clamp(1.8rem,3vw,2.5rem);margin:0;letter-spacing:-.045em}
body[data-design=clarity] .eyebrow{font-size:.7rem;letter-spacing:.1em;margin-bottom:8px}
body[data-design=clarity] .card{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:22px;box-shadow:0 2px 8px #163a2903}
body[data-design=clarity] .today-grid .card{padding:22px}body[data-design=clarity] .grid{gap:20px}
body[data-design=clarity] .today-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-design=clarity] .today-tasks{grid-row:auto}body[data-design=clarity] .today-notes,body[data-design=clarity] .today-finance.wide{grid-column:auto}
body[data-design=clarity] .today-finance{background:var(--soft)}
body[data-design=clarity] .row{padding:13px 0}.row:last-child{border-bottom:0}
body[data-design=clarity] button,body[data-design=clarity] a.button{transition:background .15s,box-shadow .15s;min-height:44px}
body[data-design=clarity] button.ghost{border:1px solid var(--line);background:var(--card)}
body[data-design=clarity] button:hover{box-shadow:inset 0 0 0 99px #768c7b12}
body[data-design=clarity] button:disabled{cursor:wait}
.quick-actions{gap:10px;margin:0 0 24px}.quick-actions button{background:var(--card)!important;color:var(--accent)!important;border:1px solid var(--line);font-weight:550}
.quick-actions button:first-child{background:var(--accent)!important;color:var(--button)!important;border-color:var(--accent)}
.note-link{display:block!important;text-align:left;background:transparent!important;color:var(--ink)!important;width:100%;border-radius:0!important;border-bottom:1px solid var(--line)!important;padding:14px 0!important;white-space:pre-wrap;font-weight:400!important}
.note-preview{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7;font-size:.9375rem}
.task-filters{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:20px}.task-filters label{margin-top:0}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.calendar-toolbar h2{margin:0;text-align:center;text-transform:capitalize}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;font-size:.75rem;color:var(--muted);padding:6px 0;overflow-wrap:normal}
body[data-design=clarity] .calendar-date{position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;min-width:0;min-height:64px;padding:8px 2px;border:0;background:transparent;color:var(--ink);font-size:.875rem}
body[data-design=clarity] .calendar-date[aria-pressed=true]{background:var(--accent);color:var(--button)}.calendar-date.is-today{box-shadow:inset 0 0 0 1px var(--accent)}
.event-count{width:16px;height:16px;border-radius:50%;font-size:10px;background:var(--soft);color:var(--accent);line-height:16px}
.event-row h3{font-weight:550}.event-row .small{font-size:.75rem}
body[data-design=clarity] dialog{width:calc(100% - 32px);max-width:600px;max-height:calc(var(--visible-height,100dvh) - 32px);overscroll-behavior:contain;padding:24px;border-radius:20px}
body[data-design=clarity] dialog .dialog-head{position:sticky;top:-24px;padding:14px 0;background:var(--card);z-index:3;border-bottom:1px solid var(--line)}
body[data-design=clarity] dialog form>button[type=submit]{width:100%;position:sticky;bottom:0;z-index:2;box-shadow:0 -8px 12px var(--card)}
body[data-design=clarity] dialog textarea{min-height:240px;line-height:1.7}
body[data-design=clarity] button.danger{background:transparent;color:var(--expense);margin-top:12px;border:1px solid var(--line)}
#alerts{display:flex;flex-direction:column;gap:8px;width:max-content;max-width:calc(100vw - 32px);padding:0!important;background:none!important;border:0!important;box-shadow:none!important;bottom:calc(var(--nav-height,80px) + 16px)}
.toast{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);padding:12px 16px;box-shadow:0 8px 32px #0002;font-size:.875rem;max-width:560px}.toast button{padding:6px 10px!important;white-space:nowrap}
body[data-design=clarity] .login{border:1px solid var(--line);background:var(--card);border-radius:24px;margin:6vh auto;padding:36px;min-height:0}
@media(min-width:760px){body[data-design=clarity] .nav{background:var(--card);width:192px;padding:24px 14px}body[data-design=clarity] main:not(.login){margin-left:192px;width:calc(100% - 192px);padding:32px 28px 80px}body[data-design=clarity] .nav button{flex-direction:row;justify-content:flex-start;text-align:left;gap:12px;padding:12px;font-size:.875rem}#alerts{bottom:24px}}
@media(min-width:1250px){body[data-design=clarity] .nav{width:224px;padding:28px 18px}body[data-design=clarity] main:not(.login){margin-left:224px;width:calc(100% - 224px);padding:40px 44px 80px}.today-grid{align-items:start}.today-tasks{grid-row:1 / span 2!important}.today-finance{grid-column:2!important}}
@media(max-width:1099px){.calendar-layout{grid-template-columns:1fr}.calendar-grid{max-width:600px;margin:auto}body[data-design=clarity] .today-grid{grid-template-columns:1fr}.today-finance.wide{grid-column:1!important}}
@media(max-width:759px){body[data-design=clarity] main:not(.login){padding:24px 16px max(132px,calc(var(--nav-height,88px) + 32px))}body[data-design=clarity] header{padding:calc(12px + env(safe-area-inset-top)) 16px 12px;gap:12px}body[data-design=clarity] .brand{font-size:20px}body[data-design=clarity] .brand small{display:none}.workspace{max-width:52%;font-size:.875rem!important}body[data-design=clarity] .card,body[data-design=clarity] .today-grid .card{padding:18px}body[data-design=clarity] .grid{gap:14px}body[data-design=clarity] .nav{padding:8px 4px max(8px,env(safe-area-inset-bottom))}body[data-design=clarity] .nav button{font-size:.625rem;gap:4px;padding:6px 1px;overflow-wrap:normal}body[data-design=clarity] .nav button>span:last-child{max-width:100%;word-break:normal}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick-actions button{padding:10px!important}.task-filters{grid-template-columns:1fr}.calendar-grid{gap:1px}body[data-design=clarity] .calendar-date{min-height:52px}.calendar-layout .card{padding:12px}body[data-design=clarity] .login{margin:24px 16px;width:auto;padding:24px}body[data-design=clarity] dialog{padding:20px}body[data-design=clarity] dialog .dialog-head{top:-20px}.finance-analysis .chart-controls{grid-template-columns:1fr 1fr}.finance-total strong{font-size:1.25rem}}
@media(max-height:500px) and (orientation:landscape){body[data-design=clarity] .nav{padding:2px}.nav .symbol{display:none}.nav button{min-height:44px!important}body[data-design=clarity] dialog{max-height:calc(100dvh - 12px)}}

/* Verified 375px navigation: labels stay on one line, with no card borders. */
body[data-design=clarity] .nav button.ghost{border:0;background:transparent;font-weight:500}
body[data-design=clarity] .nav button.ghost[aria-current=page]{background:var(--soft);color:var(--accent)}
@media(max-width:759px){body[data-design=clarity] .nav button{padding:6px 0;min-width:44px}body[data-design=clarity] .nav button>span:last-child{white-space:nowrap;overflow-wrap:normal;font-weight:500;font-size:.625rem}}

/* Let populated widgets fill the desktop grid instead of reserving empty rows. */
@media(min-width:1250px){body[data-design=clarity] .today-grid{grid-auto-flow:row dense}body[data-design=clarity] .today-tasks{grid-row:auto!important}body[data-design=clarity] .today-notes{grid-column:1/-1}}
@media(max-width:759px){body[data-design=clarity] .nav button>span:last-child{overflow:hidden;text-overflow:ellipsis;max-width:100%}}

/* A short visual viewport needs scrolling, not a footer covering the active field. */
@media(max-height:500px){body[data-design=clarity] dialog form>button[type=submit]{position:static;box-shadow:none}}

/* ULADIM Clarity / Signal: shared product foundations, 2026-11. */
:root{--ux-bg:#f7f8f7;--ux-surface:#fff;--ux-ink:#182a26;--ux-muted:#53645c;--ux-border:#e3e8e4;--ux-green:#135c4b;--ux-soft:#e9f2ed;--ux-radius:14px;--ux-shadow:0 4px 18px #173d2c04}
body[data-theme=dark]{--ux-bg:#101715;--ux-surface:#18211e;--ux-ink:#e8eeea;--ux-muted:#a6b4ad;--ux-border:#2d3a33;--ux-green:#8bd6b8;--ux-soft:#203d31;--ux-shadow:none}
@media(prefers-color-scheme:dark){body:not([data-theme=light]){--ux-bg:#101715;--ux-surface:#18211e;--ux-ink:#e8eeea;--ux-muted:#a6b4ad;--ux-border:#2d3a33;--ux-green:#8bd6b8;--ux-soft:#203d31;--ux-shadow:none}}
body[data-design=clarity],body.product-site{--bg:var(--ux-bg);--card:var(--ux-surface);--ink:var(--ux-ink);--muted:var(--ux-muted);--line:var(--ux-border);--accent:var(--ux-green);--soft:var(--ux-soft);background:var(--ux-bg);color:var(--ux-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body[data-design=clarity] button,body.product-site .button{min-height:44px;border-radius:9px;font-size:14px;font-weight:600;padding:10px 16px;box-shadow:none;letter-spacing:0;transition:background .16s,transform .1s}
body[data-design=clarity] button:active,body.product-site .button:active{transform:translateY(1px)}
body[data-design=clarity] button:not([class]),body[data-design=clarity] button.primary{background:var(--ux-green);color:var(--ux-surface)}
body[data-design=clarity] button.secondary,body[data-design=clarity] button.ghost{background:var(--ux-surface);color:var(--ux-ink);border:1px solid var(--ux-border)}
body[data-design=clarity] button.text-button{background:transparent;color:var(--ux-green);padding:8px 0;justify-content:flex-start;border:0}
body[data-design=clarity] button.icon{min-width:44px;min-height:44px;padding:10px;background:transparent;color:var(--ux-muted);border:0}
body[data-design=clarity] :focus-visible,body.product-site :focus-visible{outline:3px solid var(--ux-green);outline-offset:3px}
body[data-design=clarity] input,body[data-design=clarity] select,body[data-design=clarity] textarea{min-height:44px;border-radius:9px;padding:10px 12px;border-color:var(--ux-border);background:var(--ux-surface);color:var(--ux-ink)}
body[data-design=clarity] h1{font-size:30px;font-weight:650;letter-spacing:-.04em;line-height:1.15}body[data-design=clarity] h2{font-size:16px;letter-spacing:-.02em;font-weight:650}body[data-design=clarity] h3{font-size:14px}body[data-design=clarity] p{font-size:14px;line-height:1.6;color:var(--ux-muted)}
body[data-design=clarity] header{min-height:72px;padding:14px 28px;border-bottom:1px solid var(--ux-border);background:var(--ux-surface)}body[data-design=clarity] .brand{font-size:20px;letter-spacing:-.04em;color:var(--ux-green)}body[data-design=clarity] .brand small{display:none}
body[data-design=clarity] main{padding:28px 28px calc(var(--nav-height,72px) + 28px);max-width:1320px;min-height:calc(100dvh - 72px)}body[data-design=clarity] .intro{margin:0 0 22px;align-items:center}body[data-design=clarity] .eyebrow{font-size:11px;letter-spacing:.06em;margin-bottom:7px;text-transform:none}
body[data-design=clarity] .card{padding:20px;border:1px solid var(--ux-border);border-radius:var(--ux-radius);background:var(--ux-surface);box-shadow:var(--ux-shadow);min-width:0}body[data-design=clarity] .row{padding:10px 0;gap:10px}body[data-design=clarity] .row .text{font-size:14px;overflow-wrap:anywhere}body[data-design=clarity] .row input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:var(--ux-green)}
.day-overview{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:0;margin:0 0 24px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:14px;padding:18px 0}.day-progress{display:flex;align-items:center;gap:14px;padding:0 22px}.day-progress strong{font-size:15px}.day-progress p{margin:3px 0}.progress-ring{--progress:0%;width:62px;height:62px;flex:0 0 62px;border-radius:50%;background:conic-gradient(var(--ux-green) var(--progress),var(--ux-soft) 0);display:grid;place-items:center;position:relative;isolation:isolate;font-size:15px;font-weight:700}.progress-ring:before{content:'';position:absolute;inset:6px;background:var(--ux-surface);border-radius:50%;z-index:-1}.stat-widget{border-left:1px solid var(--ux-border);padding:0 22px;display:grid;grid-template-columns:22px 1fr;gap:3px 10px;align-content:center}.stat-widget svg{color:var(--ux-green);grid-row:1/3;width:20px}.stat-widget strong{font-size:24px;line-height:1.2;letter-spacing:-.04em}.stat-widget span{color:var(--ux-muted);font-size:12px}
body[data-design=clarity] .today-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-rows:none;gap:18px;align-items:start}body[data-design=clarity] .today-grid .card{padding:20px;margin:0;grid-column:auto;grid-row:auto}body[data-design=clarity] .today-grid .today-tasks{grid-row:span 2;border:1px solid var(--ux-border)}body[data-design=clarity] .today-grid h2{margin:0 0 14px}.quick-capture{display:flex;gap:8px;margin-bottom:12px}.quick-capture input{flex:1;min-width:0}.quick-capture button{flex:0 0 44px}.today-tasks>.text-button,.today-agenda>.text-button,.today-finance>.text-button,.today-notes>.text-button{margin-top:8px}.today-notes .note-link{display:block;width:100%;min-height:44px;text-align:left;background:none;color:var(--ux-ink);border-radius:0;border-bottom:1px solid var(--ux-border);font-weight:400;padding:10px 0;overflow-wrap:anywhere}.today-finance .row{display:flex!important;flex-wrap:wrap}.today-finance .row>strong{margin-right:auto}.today-finance .small{font-size:11px!important}.quick-actions{margin:18px 0;gap:8px;flex-wrap:wrap}.quick-actions button{flex:0 1 auto}.event-row h3{font-weight:550}.event-row p{font-size:11px!important}.task-count{background:var(--ux-soft);color:var(--ux-green)}
body[data-design=clarity] .nav{background:var(--ux-surface);border-color:var(--ux-border);box-shadow:none}body[data-design=clarity] .nav button{background:none;border:0;color:var(--ux-muted);border-radius:8px;box-shadow:none}body[data-design=clarity] .nav button[aria-current=page]{background:var(--ux-soft);color:var(--ux-green)}
body[data-design=clarity] main.onboarding{display:grid;place-content:center;min-height:calc(100dvh - 150px);max-width:680px}.setup-panel{text-align:center;padding:32px!important}.setup-panel>.ui-icon{width:40px;height:40px;color:var(--ux-green);margin-bottom:20px}.setup-panel h1{font-size:26px!important}.setup-panel p{max-width:380px;margin:12px auto 24px}.setup-alternative{text-align:center;padding:8px}.settings-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px}.settings-navigation{display:flex;flex-direction:column;gap:4px;align-self:start}.settings-navigation .settings-item{justify-content:flex-start;text-align:left;background:none;border:0;color:var(--ux-muted)}.settings-navigation .settings-item[aria-current=page]{background:var(--ux-soft);color:var(--ux-green)}.settings-content{min-width:0}.settings-content>.card{margin-bottom:16px}.settings-content .card>button{margin:4px 8px 4px 0}.settings-content .settings-grid{display:block;max-width:600px}.settings-content label{margin-top:16px}.account-email{overflow-wrap:anywhere}.settings-content .card h2{margin-bottom:16px}
body[data-design=clarity] .finance-grid{gap:18px}body[data-design=clarity] .finance-grid .card{padding:20px}.finance-filters{gap:12px}.finance-filters label{font-size:12px}.finance-overview .stat{font-size:28px}.finance-analysis canvas{max-height:260px}.chart-controls label{font-size:12px}body[data-design=clarity] dialog{border:1px solid var(--ux-border);border-radius:18px;padding:24px;max-height:calc(100dvh - 32px);width:min(560px,calc(100vw - 24px));background:var(--ux-surface);color:var(--ux-ink)}body[data-design=clarity] dialog::backdrop{background:#0b211c70;backdrop-filter:blur(3px)}
body.product-site{font-size:16px;line-height:1.6}body.product-site>header{position:relative;max-width:1240px;margin:auto;padding:24px 32px;background:transparent;border:0;min-height:80px}body.product-site .brand{font-size:24px;letter-spacing:-.05em;color:var(--ux-green)}body.product-site .brand span{display:none}body.product-site>header nav{gap:28px;align-items:center}body.product-site>header nav a{font-size:14px;text-decoration:none;color:var(--ux-muted)}body.product-site #app.landing{max-width:1240px;margin:auto;padding:36px 32px 60px;min-height:0}body.product-site .product-hero{display:grid;grid-template-columns:1fr 1.1fr;gap:64px;align-items:center;padding:40px 0 70px}.hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,5vw,70px);line-height:1.06;letter-spacing:-.055em;white-space:pre-line;font-weight:500;margin:12px 0 24px;color:var(--ux-ink)}.hero-copy .eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:var(--ux-green)}.hero-description{max-width:420px;color:var(--ux-muted);font-size:17px;line-height:1.8}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 12px}body.product-site .button{background:var(--ux-green);color:var(--ux-surface);text-decoration:none;min-height:46px;display:inline-flex;align-items:center;justify-content:center}body.product-site .button.secondary{background:var(--ux-surface);color:var(--ux-green);border:1px solid var(--ux-border)}.hero-caption{font-size:12px;color:var(--ux-muted);max-width:390px}.workspace-preview{display:grid;grid-template-columns:112px minmax(0,1fr);background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:14px;box-shadow:0 26px 70px #193e2e12;overflow:hidden;transform:rotate(-1deg)}.preview-rail{background:var(--ux-bg);border-right:1px solid var(--ux-border);padding:22px 12px;display:flex;flex-direction:column;gap:8px;font-size:10px;color:var(--ux-muted)}.preview-rail strong{font-size:13px;color:var(--ux-green);margin-bottom:24px}.preview-rail span{padding:7px 8px;border-radius:5px}.preview-rail span:nth-child(2){background:var(--ux-soft);color:var(--ux-green)}.preview-workspace{padding:26px 22px}.preview-workspace h2{font-size:22px;margin:7px 0 3px;letter-spacing:-.04em}.preview-label{font-size:8px;letter-spacing:.13em;color:var(--ux-muted)}.preview-workspace>p{font-size:10px;color:var(--ux-muted);margin:0 0 22px}.preview-metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:12px 0;border-top:1px solid var(--ux-border);border-bottom:1px solid var(--ux-border);gap:16px}.preview-metrics>div{display:flex;flex-direction:column}.preview-metrics strong{font-size:21px;line-height:1.4}.preview-metrics span{font-size:9px;color:var(--ux-muted)}.preview-task-list{padding:14px 0}.preview-task{display:flex;align-items:center;gap:9px;padding:9px 0;font-size:10px;border-bottom:1px solid var(--ux-border)}.preview-check{height:14px;width:14px;border:1px solid var(--ux-border);border-radius:50%;display:grid;place-items:center;flex-shrink:0}.preview-check.checked{color:var(--ux-surface);background:var(--ux-green);border-color:var(--ux-green);font-size:10px}.preview-flow{padding-top:8px}.preview-flow>strong{font-size:11px}.preview-columns{display:flex;align-items:end;gap:12px;height:80px;border-bottom:1px solid var(--ux-border);padding-top:14px}.preview-columns>div{height:100%;display:flex;align-items:end;gap:3px;flex:1}.preview-columns i{display:block;background:var(--ux-green);width:50%;border-radius:2px 2px 0 0}.preview-columns i+i{background:#c78977}.preview-flow p{font-size:8px;color:var(--ux-muted)}.product-ribbon{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0;border-top:1px solid var(--ux-border);border-bottom:1px solid var(--ux-border);gap:20px;margin-bottom:48px}.product-ribbon span{font-size:14px;color:var(--ux-green);font-weight:550}.product-features{display:grid;grid-template-columns:1fr 1fr;gap:20px 56px}.product-features .feature-row{display:block;padding:22px 0;border:0}.product-features h2{font-size:22px;letter-spacing:-.035em}.product-features p{font-size:14px;color:var(--ux-muted);line-height:1.8}body.product-site .card,body.product-site .panel{border:1px solid var(--ux-border);border-radius:14px;background:var(--ux-surface);box-shadow:none;padding:24px}body.product-site .product-faq{margin:44px 0}body.product-site details{padding:16px 0;border-bottom:1px solid var(--ux-border)}body.product-site footer{max-width:1176px;margin:auto;padding:28px 0;border-top:1px solid var(--ux-border);color:var(--ux-muted);font-size:12px}
@media(min-width:1000px){body[data-design=clarity] .nav{position:fixed;left:0;top:var(--app-header-height,80px);bottom:0;width:204px;height:auto;display:flex;flex-direction:column;justify-content:flex-start;gap:5px;padding:24px 14px;align-items:stretch;border-right:1px solid var(--ux-border);border-top:0}body[data-design=clarity] .nav button{display:flex;flex-direction:row;gap:12px;justify-content:flex-start;min-height:44px;padding:10px 14px;font-size:13px}body[data-design=clarity] .nav .symbol{display:flex}body[data-design=clarity] #content{margin-left:204px;margin-right:auto;padding:28px 32px 48px;max-width:calc(100% - 204px)}body[data-design=clarity] .login:not(.focus-login){margin:4vh auto!important;max-width:440px!important}body[data-design=clarity] main.onboarding{margin-left:204px!important;max-width:calc(100% - 204px)!important;min-height:calc(100dvh - 72px)}}
@media(min-width:760px) and (max-width:999px){body[data-design=clarity] main{padding:26px 26px 115px}body[data-design=clarity] .today-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.day-overview{grid-template-columns:1.5fr 1fr 1fr}.stat-widget:last-child{display:none}.settings-layout{grid-template-columns:170px 1fr;gap:18px}}
@media(max-width:759px){body[data-design=clarity] header{padding:12px 18px;min-height:62px;gap:12px}body[data-design=clarity] .workspace{max-width:55%;font-size:12px;min-height:38px}body[data-design=clarity] main{padding:22px 16px calc(var(--nav-height,74px) + 24px)}body[data-design=clarity] h1{font-size:27px}body[data-design=clarity] .intro{margin-bottom:18px}body[data-design=clarity] .intro>button{font-size:12px;padding:9px 12px;min-height:44px}.day-overview{grid-template-columns:1fr auto;padding:14px 0;margin-bottom:16px}.day-progress{padding:0 16px}.progress-ring{width:52px;height:52px;flex-basis:52px;font-size:13px}.stat-widget{padding:0 18px;grid-template-columns:1fr;text-align:center}.stat-widget svg,.stat-widget:nth-child(n+3){display:none}.stat-widget strong{font-size:23px}.stat-widget span{max-width:80px;font-size:10px}body[data-design=clarity] .today-grid{display:flex;flex-direction:column;gap:14px}body[data-design=clarity] .today-grid .card{width:100%;padding:17px!important;border:1px solid var(--ux-border);border-radius:12px}body[data-design=clarity] .nav{padding:7px 7px max(7px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}body[data-design=clarity] .nav button{font-size:9px;padding:6px 2px;gap:4px;min-height:48px;display:flex;flex-direction:column;white-space:normal;overflow-wrap:anywhere}.nav .ui-icon{width:19px;height:19px}.settings-layout{display:block}.settings-navigation{display:flex;flex-direction:row;overflow-x:auto;gap:6px;margin-bottom:18px;padding-bottom:8px;scrollbar-width:thin}.settings-navigation .settings-item{white-space:nowrap;flex:0 0 auto;font-size:12px;min-height:44px;background:var(--ux-surface);border:1px solid var(--ux-border)}body[data-design=clarity] main.onboarding{padding-top:30px;align-content:start}.setup-panel{padding:25px!important}.setup-panel h1{font-size:24px!important}body[data-design=clarity] .finance-grid{grid-template-columns:1fr}body[data-design=clarity] .finance-filters{grid-template-columns:1fr 1fr}body[data-design=clarity] dialog{padding:20px;margin:auto;max-height:calc(100dvh - 24px)}body.product-site>header{padding:18px 20px;display:flex;flex-wrap:wrap;gap:15px}body.product-site>header nav{gap:15px;display:flex;flex-wrap:wrap;font-size:12px}body.product-site #app.landing{padding:20px}body.product-site .product-hero{grid-template-columns:1fr;gap:36px;padding:14px 0 38px}.hero-copy h1{font-size:46px}.hero-description{font-size:15px}.hero-actions{gap:8px}.hero-actions .button{font-size:12px;flex:1 1 auto}.workspace-preview{transform:none;grid-template-columns:90px minmax(0,1fr)}.preview-workspace{padding:18px 16px}.preview-rail{padding:18px 9px}.preview-rail strong{font-size:11px}.preview-metrics{gap:9px}.preview-task{font-size:9px}.product-ribbon{grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px}.product-ribbon span{font-size:12px}.product-features{grid-template-columns:1fr;gap:0}.product-features .feature-row{padding:18px 0}.product-features h2{font-size:21px}body.product-site footer{padding:24px 20px}.hero-caption{font-size:11px}.settings-content .card{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.preview-check.checked:after{content:"";width:6px;height:3px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-top:-2px}

/* Explicit component variants take precedence over historical generic controls. */
body[data-design=clarity] .settings-navigation button.settings-item{background:transparent;color:var(--ux-muted);border:1px solid transparent}
body[data-design=clarity] .settings-navigation button.settings-item[aria-current=page]{background:var(--ux-soft);color:var(--ux-green);border-color:var(--ux-border)}
body[data-design=clarity] .quick-capture button[type=submit]{margin:0;background:var(--ux-green);color:var(--ux-surface)}
body[data-design=clarity] .quick-capture input{height:44px;min-height:44px;padding:10px 12px}
body[data-design=clarity] .intro h1{font-size:32px}
body[data-design=clarity] .today-grid .today-tasks{grid-row:auto!important}
body[data-design=clarity] .today-grid .today-notes{grid-column:1;grid-row:2}
body[data-design=clarity] .today-grid .today-finance{grid-column:2;grid-row:2}
body[data-design=clarity] .today-grid button.text-button{color:var(--ux-green);background:transparent}
@media(max-width:759px){body[data-design=clarity] .intro h1{font-size:28px}body[data-design=clarity] .nav button>span:last-child{font-size:9px;white-space:normal;text-overflow:clip;overflow:visible;line-height:1.2;overflow-wrap:anywhere}body[data-design=clarity] .finance-total strong{font-size:18px;white-space:normal}body[data-design=clarity] .settings-navigation button.settings-item{background:var(--ux-surface);border-color:var(--ux-border)}body[data-design=clarity] .today-grid .card{min-height:0}}
/* Tablet navigation leaves enough room for two useful working panes. */
@media(min-width:760px) and (max-width:999px){body[data-design=clarity] .nav{width:88px;padding:20px 8px}body[data-design=clarity] .nav button{display:flex;flex-direction:column;gap:5px;padding:9px 2px;font-size:9px;justify-content:center;text-align:center}body[data-design=clarity] .nav button>span:last-child{font-size:9px;white-space:normal;overflow-wrap:anywhere}body[data-design=clarity] #content:not(.login){margin-left:88px;width:calc(100% - 88px);max-width:calc(100% - 88px);padding:26px 22px 40px}.settings-layout{grid-template-columns:148px minmax(0,1fr);gap:16px}.settings-navigation .settings-item{font-size:12px}}

.finance-filter-panel{margin:0 0 18px;border-bottom:1px solid var(--ux-border)}.finance-filter-panel>summary{font-size:13px;color:var(--ux-green);font-weight:600;min-height:44px;cursor:pointer}.finance-filter-panel .finance-filters{margin:0 0 18px}@media(min-width:760px){.finance-filter-panel{border:0}.finance-filter-panel>summary{font-size:12px;min-height:32px}}

/* Final product corrections: explicit light preference, readable secondary text. */
body[data-theme=light]{--bg:#f7f8f7;--card:#fff;--ink:#182a26;--muted:#53645c;--line:#e3e8e4;--accent:#135c4b;--button:#fff;--soft:#e9f2ed;--income:#176c54;--expense:#a63f36;--ux-bg:#f7f8f7;--ux-surface:#fff;--ux-ink:#182a26;--ux-muted:#53645c;--ux-border:#e3e8e4;--ux-green:#135c4b;--ux-soft:#e9f2ed}
body[data-design=clarity] .finance-total strong,body[data-design=clarity] .account-balance strong{white-space:nowrap;font-variant-numeric:tabular-nums}
body[data-design=clarity] .finance-overview{padding:18px!important}.finance-overview h2{font-size:14px!important}.finance-overview .finance-total{padding:8px 0}.finance-overview .small{font-size:11px!important}.finance-toolbar{margin:0}.intro:has(.finance-toolbar){flex-wrap:wrap;gap:10px}.intro:has(.finance-toolbar)>div:first-child{margin-right:auto}
@media(max-width:759px){body[data-design=clarity] .finance-total{grid-template-columns:1fr;gap:6px}body[data-design=clarity] .finance-total .currency-code{display:none}.finance-total>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}body[data-design=clarity] .finance-total strong{font-size:18px}.intro:has(.finance-toolbar)>div:first-child{flex-basis:100%}.intro:has(.finance-toolbar)>button{margin-right:auto}.finance-filter-panel{margin-top:8px}.day-progress strong{font-size:13px}}
@media(max-height:500px){body[data-design=clarity] dialog form>button[type=submit]{position:static!important}}

/* Clarity workspace hierarchy */
body.product-site .hero-copy h1 {
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
}
.nav-more, .settings-back { display: none; }
body[data-design=clarity] .intro h1 {
  overflow-wrap: break-word;
  text-wrap: balance;
  letter-spacing: -.035em;
}
body[data-design=clarity] .intro { gap: 12px; margin-bottom: 18px; }
body[data-design=clarity] .today-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
}
.today-main, .today-side, .finance-activity, .finance-details {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 16px;
}
body[data-design=clarity] .today-grid .day-overview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 12px 16px;
  background: var(--ux-soft);
  border-color: transparent;
  border-radius: 12px;
}
.today-grid .day-overview p { margin: 2px 0 0; }
.today-grid .progress-ring { width: 46px; height: 46px; flex: 0 0 46px; font-size: 13px; }
body[data-design=clarity] .today-grid .today-tasks {
  box-shadow: none;
  border-color: var(--ux-border);
}
body[data-design=clarity] .today-grid .today-side .card {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid var(--ux-border);
  border-radius: 0;
  padding: 8px 0 12px !important;
}
.task-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
body[data-design=clarity] .today-grid .text-button,
body[data-design=clarity] .today-grid .row button { min-height: 44px; }
.today-grid .row h3, .today-grid .row .text { overflow-wrap: anywhere; }

.finance-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
body[data-design=clarity] .finance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
body[data-design=clarity] .finance-grid .finance-overview {
  background: var(--ux-soft);
  box-shadow: none;
  border-color: transparent;
  padding: 12px 16px !important;
}
.finance-overview h2, .finance-overview p { margin: 0; }
.finance-overview .finance-scope { margin-top: 4px; }
body[data-design=clarity] .finance-overview .finance-total { padding: 8px 0; }
body[data-design=clarity] .finance-overview .finance-total strong {
  font-size: clamp(15px, 2vw, 23px);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-design=clarity] .finance-grid .ledger {
  box-shadow: none;
  padding: 14px 16px;
}
.ledger h2 { margin: 0; }
.ledger .finance-filter-panel { margin: 0; border-bottom: 1px solid var(--ux-border); }
.ledger .finance-filter-panel summary { display: list-item; align-content: center; }
.ledger .finance-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin-bottom: 12px; }
body[data-design=clarity] .ledger .ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) 44px;
  min-height: 60px;
  align-items: center;
  gap: 8px;
}
.ledger-row .text h3 { overflow-wrap: anywhere; }
.ledger-row .text p { margin: 2px 0 0; }
.ledger .ledger-row strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
body[data-design=clarity] .finance-grid .finance-details .card {
  box-shadow: none;
  padding: 12px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--ux-border);
  border-radius: 0;
  background: transparent;
}
.finance-details .account-balance strong { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }

body[data-design=clarity] .settings-layout {
  grid-template-columns: minmax(150px, 200px) minmax(0, 600px);
  align-items: start;
  gap: clamp(14px, 3vw, 32px);
}
body[data-design=clarity] .settings-navigation { display: flex; flex-direction: column; padding: 0; overflow: visible; }
body[data-design=clarity] .settings-row {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  text-align: start;
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 14px;
  color: var(--ux-ink);
  background: transparent;
  box-shadow: none;
}
.settings-row .ui-icon { flex: 0 0 18px; }
body[data-design=clarity] .settings-navigation .settings-row { color: var(--ux-ink); }
body[data-design=clarity] .settings-group {
  margin-bottom: 22px;
  border: 1px solid var(--ux-border);
  border-radius: 12px;
  background: var(--ux-surface);
}
.settings-group h2 { margin: 14px 12px 6px; }
.settings-group .settings-row { border: 0; border-top: 1px solid var(--ux-border); border-radius: 0; }
body[data-design=clarity] .installation-help { border-top: 1px solid var(--ux-border); margin-top: 18px; }
.installation-help summary { min-height: 44px; align-content: center; cursor: pointer; }
body[data-design=clarity] .settings-content .card > .settings-row { margin-inline: 0; }
body[data-design=clarity] .danger-text { color: var(--expense); }
body[data-design=clarity] .danger-action { background: #9a3830; color: #fff; }
.devices-dialog .device-group + .device-group { margin-top: 22px; }
.device-group h3 { margin: 0 0 6px; color: var(--ux-muted); }
.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--ux-border);
  padding: 10px 0;
}
.device-description, .device-name { min-width: 0; overflow-wrap: anywhere; }
.device-description p { margin: 4px 0 0; }
.device-status {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px 0 2px 8px;
  color: var(--ux-green);
  background: var(--ux-soft);
  border-radius: 99px;
  font-size: 12px;
}
body[data-design=clarity] .device-row button { min-height: 44px; }
body[data-design=clarity] :is(.devices-dialog,.device-revoke-dialog) .dialog-head h2{
  font:600 clamp(1.38rem,3vw,1.9rem)/1.16 Georgia,"Times New Roman",serif;
}
body[data-design=clarity] .devices-dialog .device-group h3{
  padding:8px 12px;
  margin:0;
  border-radius:8px;
  background:var(--ux-soft);
  color:var(--ux-ink);
}
.devices-dialog .device-group .device-row:first-of-type{border-top:0}
body[data-design=clarity] .devices-dialog .device-row button{border:1px solid var(--ux-border)}
body[data-design=clarity] .device-revoke-dialog button[type=submit]{width:100%}
@media(max-width:430px){
  .devices-dialog .device-row{grid-template-columns:minmax(0,1fr)}
  .devices-dialog .device-row button{width:100%}
}

@media (min-width: 760px) and (max-width: 999px) {
  body[data-design=clarity] .nav { width: 108px; }
  body[data-design=clarity] .nav button > span:last-child { font-size: 12px; overflow-wrap: normal; }
  body[data-design=clarity] #content:not(.login) {
    width: calc(100% - 108px);
    max-width: calc(100% - 108px);
    margin-left: 108px;
  }
}
@media (max-width: 999px) {
  body[data-design=clarity] .finance-grid { grid-template-columns: minmax(0, 1fr); }
  .finance-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  body[data-design=clarity] .today-grid { display: block; }
  .today-side { margin-top: 20px; }
  .finance-details { grid-template-columns: minmax(0, 1fr); }
  body[data-design=clarity] .nav {
    overflow: visible;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body[data-design=clarity] .nav > button.nav-secondary { display: none; }
  .nav-more { display: block; min-width: 0; }
  .nav-more > summary {
    min-height: 52px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    color: var(--ux-muted);
    cursor: pointer;
    text-align: center;
  }
  .nav-more > summary.active, .nav-more[open] > summary {
    background: var(--ux-soft);
    color: var(--ux-green);
  }
  .nav-menu {
    position: absolute;
    inset: auto 10px calc(100% + 8px) auto;
    width: min(230px, calc(100vw - 20px));
    padding: 8px;
    background: var(--ux-surface);
    border: 1px solid var(--ux-border);
    border-radius: 12px;
    box-shadow: var(--ux-shadow);
  }
  body[data-design=clarity] .nav .nav-menu > button {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding-inline: 12px;
    gap: 10px;
  }
  body[data-design=clarity] .nav button > span:last-child, .nav-more > summary span {
    font-size: 12px;
    display: block;
    min-width: 0;
    overflow-wrap: break-word;
    white-space: normal;
    text-wrap: balance;
  }
  body[data-design=clarity] .settings-layout { display: block; }
  body[data-design=clarity] .settings-navigation .settings-row {
    border: 1px solid var(--ux-border);
    background: var(--ux-surface);
    font-size: 15px;
  }
  body[data-design=clarity] .settings-page[data-settings-detail=false] .settings-content,
  body[data-design=clarity] .settings-page[data-settings-detail=true] .settings-navigation { display: none; }
  .settings-page[data-settings-detail=true] .settings-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    margin-bottom: 10px;
  }
}
@media (max-width: 700px) {
  body[data-design=clarity] .ledger .ledger-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .ledger .ledger-row strong { text-align: left; }
}
@media (max-width: 360px) {
  body[data-design=clarity] .nav button > span:last-child { font-size: 11px; }
  .device-row { grid-template-columns: minmax(0, 1fr); }
  .device-row button { justify-self: start; }
}
body[data-design=clarity] .nav button > .ui-icon { flex: 0 0 auto; }
body[data-design=clarity] .settings-group .danger-text { color: var(--expense); }
@media (max-width: 759px) {
  body[data-design=clarity] .nav-menu button[aria-current=page] { background: var(--ux-soft); }
}
.ledger-older summary {
  min-height: 44px;
  align-content: center;
  color: var(--ux-green);
  cursor: pointer;
}
body[data-design=clarity] .today-grid .today-side {
  grid-template-columns: minmax(0, 1fr);
}
body[data-design=clarity] .today-grid .today-side .card {
  grid-column: 1 !important;
  grid-row: auto;
}
body[data-design=clarity] .devices-dialog .device-row .danger-text {
  color: var(--expense);
}

/* Clarity workspace recovery */
body[data-design=clarity] .dialog-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  outline: none;
}
body[data-design=clarity] .dialog-head .dialog-close {
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ux-muted);
  box-shadow: none;
}
body[data-design=clarity] .dialog-head .dialog-close:hover {
  background: var(--ux-soft);
  color: var(--ux-ink);
}
body[data-design=clarity] dialog {
  max-height: calc(min(var(--visible-height, 100dvh), 100dvh) - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
}
body[data-design=clarity] .record-editor form > button[type=submit] {
  position: static;
  box-shadow: none;
}
body[data-design=clarity] .note-editor {
  width: min(720px, calc(100% - 24px));
  max-width: 720px;
}
body[data-design=clarity] .note-editor textarea {
  min-height: clamp(140px, 38dvh, 380px);
  padding: 12px;
  line-height: 1.65;
}
.workspace-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  color: var(--ux-muted);
}
.workspace-empty > svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ux-green);
}
.workspace-empty p { margin: 0; }
.task-filters {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.task-filters > div, .task-filters input, .task-filters select { min-width: 0; }
body[data-design=clarity] .task-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 60px;
  gap: 8px;
  padding-block: 8px;
}
.task-row input[type=checkbox] { justify-self: center; margin: 0; }
.task-check-target {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  cursor: pointer;
}
.task-row .text { overflow-wrap: anywhere; }
.task-change-status:not([hidden]) {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--ux-muted);
  font-size: .875rem;
}
.task-change-status button { min-height: 44px; }
.quick-capture[hidden] { display: none; }
body[data-design=clarity] :is(.tasks-page,.calendar-page,.notes-page) .intro{
  align-items:center;
  border-bottom:1px solid var(--ux-border);
  padding-bottom:18px;
}
body[data-design=clarity] :is(.tasks-page,.calendar-page,.notes-page,.finance-page) .intro h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.04}
.tasks-page .task-filters{gap:10px 18px;margin-bottom:24px}
.tasks-page .task-filters label{margin:0 0 4px}
.tasks-page .task-list{display:grid;gap:24px}
.task-group-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  padding-bottom:8px;
  border-bottom:1px solid var(--ux-border);
}
body[data-design=clarity] .task-group-head h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.36rem,2.1vw,1.85rem);
  line-height:1.16;
}
.task-group-count{color:var(--ux-muted);font-variant-numeric:tabular-nums}
body[data-design=clarity] .tasks-page .task-row{
  border:0;
  border-bottom:1px solid var(--ux-border);
  padding-inline:0;
}
.tasks-page .task-row .done{color:var(--ux-muted)}
@media(max-width:759px) {
  body[data-design=clarity] .tasks-page .intro { margin-bottom: 12px; }
  .tasks-page .task-filters {
    grid-template-columns:minmax(0,1fr);
    gap: 8px;
    margin-bottom: 18px;
  }
  .tasks-page .task-list{gap:18px}
  body[data-design=clarity] .tasks-page .task-row { min-height: 52px; gap: 4px; padding-block: 4px; }
  .tasks-page .task-change-status:not([hidden]) {
    gap: 2px 8px;
    padding-bottom: 2px;
  }
  .tasks-page .task-change-status button { padding-inline: 10px; }
}
.notes-toolbar { margin-bottom: 14px; }
.notes-toolbar input { min-width: 0; }
.notes-toolbar label { margin-block:0 4px; }
.notes-toolbar .secondary { margin-top:8px; }
.notes-library {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 clamp(18px,4vw,40px);
}
body[data-design=clarity] .notes-library .note-card {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  min-width: 0;
  gap: 12px;
  padding: 18px 0 8px;
  border:0;
  border-bottom:1px solid var(--ux-border);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.note-card > .ui-icon { margin-top:2px; color:var(--ux-green); }
body[data-design=clarity] .note-card h2 {
  margin:0;
  font:600 clamp(1.18rem,2vw,1.6rem)/1.2 Georgia,"Times New Roman",serif;
  overflow-wrap:anywhere;
}
.note-card .note-preview {
  color:var(--ux-muted);
  margin:4px 0 0;
  line-height:1.45;
  -webkit-line-clamp:3;
  overflow-wrap:anywhere;
}
body[data-design=clarity] .note-card button { min-height:44px; padding-inline:0; }
.notes-library .workspace-empty { grid-column: 1 / -1; }
@media(max-width:759px){
  .notes-library{grid-template-columns:minmax(0,1fr)}
  body[data-design=clarity] .notes-library .note-card{padding-block:12px 3px}
}

body[data-design=clarity] .today-page .intro h1,
body[data-design=clarity] .tasks-page .intro h1,
body[data-design=clarity] .calendar-page .intro h1,
body[data-design=clarity] .finance-page .intro h1,
body[data-design=clarity] .notes-page .intro h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
body[data-design=clarity] .today-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
body[data-design=clarity] .today-grid .day-overview {
  justify-content: flex-start;
  margin: 0 0 14px;
  border: 0;
  padding: 10px 12px;
}
body[data-design=clarity] .today-grid .today-side .today-agenda {
  padding: 18px;
  border: 1px solid var(--ux-border);
  border-radius: var(--ux-radius);
  background: var(--ux-surface);
}
body[data-design=clarity] .today-grid .today-side .today-finance {
  padding: 16px 18px;
  border: 0;
  border-radius: var(--ux-radius);
  background: var(--ux-soft);
}
.today-side .today-notes .note-link {
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.today-finance .finance-summary-period { margin: -8px 0 8px; }
.today-finance .finance-summary-period,
.today-finance .today-money-row .small { font-size: .8125rem !important; }
.today-money-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  border-bottom: 1px solid var(--ux-border);
  padding: 8px 0;
}
.today-money-row span, .today-money-row strong { display: block; }
.today-money-row strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.calendar-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
}
body[data-design=clarity] .calendar-month,
body[data-design=clarity] .calendar-agenda {
  min-width: 0;
  padding: clamp(12px, 2.4vw, 22px);
}
.calendar-toolbar { gap: 8px; margin-bottom: 8px; }
.calendar-toolbar h2 { min-width: 0; overflow-wrap: anywhere; }
body[data-design=clarity] .calendar-toolbar button {
  background: var(--ux-soft);
  color: var(--ux-green);
  flex: 0 0 44px;
}
.calendar-grid { max-width: none; gap: clamp(2px, .7vw, 8px); }
.calendar-grid .weekday {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 8px 0;
}
body[data-design=clarity] .calendar-grid .calendar-date {
  min-height: clamp(44px, 5vw, 58px);
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 9px;
}
.calendar-date[aria-pressed=false]:hover { background: var(--ux-soft); }
.calendar-grid .event-count { flex-shrink: 0; }
.calendar-agenda-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.calendar-agenda-head h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.calendar-agenda-date::first-letter { text-transform: uppercase; }
.calendar-agenda .event-row h3 { overflow-wrap: anywhere; }
.calendar-picker { min-width: 0; padding-top: 8px; }
.calendar-picker input, .finance-filters input, .finance-filters select {
  display: block;
  min-inline-size: 0;
  max-inline-size: 100%;
  inline-size: 100%;
}
.calendar-picker input::-webkit-date-and-time-value,
.finance-filters input::-webkit-date-and-time-value {
  min-width: 0;
  text-align: start;
}

.finance-activity, .finance-details {
  align-self: start;
  position: static;
  overflow: visible;
}
.finance-filters > div { min-width: 0; }
.chart-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.chart-controls label, .finance-filters label { overflow-wrap: anywhere; }
.finance-details .budget-line { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; }
.finance-details .budget-line h3, .finance-details .account-balance .text { overflow-wrap: anywhere; }
.finance-details .budget-line > button { grid-column: 2; grid-row: 1; }
body[data-design=clarity] .ledger .ledger-row strong { white-space: normal; }

body[data-design=clarity] .settings-group h2 {
  padding: 14px 16px 8px;
  margin: 0;
}
body[data-design=clarity] .settings-group .settings-row { padding-inline: 16px; }
body[data-design=clarity] .settings-group .settings-row:last-child {
  border-radius: 0 0 12px 12px;
}
.settings-row-copy { min-width: 0; }
.settings-row-status {
  display: block;
  margin-top: 2px;
  color: var(--ux-muted);
  font-size: .8125rem;
  font-weight: 400;
}
body[data-design=clarity] .settings-group .danger-text {
  color: var(--expense);
}
body[data-design=clarity] .settings-content .settings-group {
  margin-bottom: 14px;
}
body[data-design=clarity] .settings-page .intro{
  border-bottom:1px solid var(--ux-border);
  padding-block-end:14px;
}
body[data-design=clarity] .settings-page .intro h1{
  font:500 clamp(1.85rem,4vw,3.25rem)/1.08 Georgia,"Times New Roman",serif;
}
body[data-design=clarity] .settings-page .profile-summary{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body[data-design=clarity] .profile-summary h2{
  font:600 clamp(1.36rem,2.5vw,1.85rem)/1.16 Georgia,"Times New Roman",serif;
  margin:0 0 14px;
}
.profile-identity{margin:0;border-block:1px solid var(--ux-border);padding-block:14px}
.profile-identity dt{font-size:.875rem;font-weight:650}
.profile-identity dd{margin:3px 0 0;overflow-wrap:anywhere}
body[data-design=clarity] .profile-summary .settings-row,
body[data-design=clarity] .profile-summary .profile-logout{padding-inline:0}
body[data-design=clarity] .profile-summary .profile-logout{color:var(--ux-muted);margin-block-start:10px}
body[data-design=clarity] .security-panel .settings-group{
  background:transparent;
  border:0;
  border-bottom:1px solid var(--ux-border);
  border-radius:0;
  margin-block:0 20px;
}
body[data-design=clarity] .security-panel .settings-group h2{
  font:600 clamp(1.22rem,2.4vw,1.65rem)/1.16 Georgia,"Times New Roman",serif;
  margin:0 0 8px;
}
body[data-design=clarity] .security-panel .settings-row{padding-inline:0}
.security-panel .settings-row-copy{
  display:flex;
  flex:1;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:baseline;
  gap:0 8px;
}
body[data-design=clarity] .settings-page .family-panel{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:none;
}
body[data-design=clarity] .family-panel h2{
  font:600 clamp(1.36rem,2.5vw,1.85rem)/1.16 Georgia,"Times New Roman",serif;
  margin:0 0 12px;
}
.family-workspace-actions{display:flex;flex-wrap:wrap;gap:6px;margin-block:10px}
.family-roster{margin-block:16px;border-block:1px solid var(--ux-border)}
.family-roster h3{margin:10px 0;overflow-wrap:anywhere}
.family-roster .text{min-width:0;overflow-wrap:anywhere}
body[data-design=clarity] .settings-content .personal-import-center h2,
body[data-design=clarity] .settings-content .personal-import-status-card h2{
  font:600 clamp(1.22rem,2.4vw,1.65rem)/1.16 Georgia,"Times New Roman",serif;
  margin:0 0 8px;
}
.personal-import-source{display:flex;align-items:start;gap:10px;min-width:0}
.personal-import-source .ui-icon{color:var(--ux-green);margin-block-start:2px}
body[data-design=clarity] .settings-content .personal-import-status-card{background:var(--ux-soft);box-shadow:none}
.personal-import-guide-link{display:inline-flex;align-items:center;min-height:44px;color:var(--ux-green)}
body[data-design=clarity] .settings-content:is([data-section=appearance],[data-section=plan],[data-section=support]) > .card{
  padding:clamp(12px,3vw,24px);
  box-shadow:none;
}
body[data-design=clarity] .settings-content:is([data-section=appearance],[data-section=plan],[data-section=support]) h2{
  font:600 clamp(1.36rem,2.5vw,1.85rem)/1.16 Georgia,"Times New Roman",serif;
  margin:0 0 12px;
}
.settings-content[data-section=plan] .stat{
  color:var(--ux-green);
  font:600 clamp(1.6rem,3vw,2.25rem)/1.1 Georgia,"Times New Roman",serif;
  margin:12px 0 8px;
}
.settings-content[data-section=support] textarea{min-height:124px;resize:vertical}
body[data-design=clarity] .settings-content[data-section=support] button[type=submit]{width:100%}
@media(max-width:430px){
  .family-workspace-actions{display:grid;grid-template-columns:minmax(0,1fr)}
  .personal-import-center .personal-import-sources button{width:100%}
}
@media(min-width:760px){
  .settings-page .settings-content{min-width:0;border-inline-start:1px solid var(--ux-border);padding-inline-start:clamp(14px,3vw,28px)}
}
@media(max-width:759px){
  body[data-design=clarity] .settings-page .settings-navigation{gap:0}
  body[data-design=clarity] .settings-page .settings-navigation button.settings-item{
    border:0;
    border-bottom:1px solid var(--ux-border);
    border-radius:0;
    padding-inline:0;
    background:transparent;
  }
}

@media (max-width: 1099px) {
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  body[data-design=clarity] .today-grid .today-side .today-agenda { padding: 16px; }
  .task-filters { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 360px) {
  body[data-design=clarity] .nav {
    grid-template-columns: 1fr 1fr 1.18fr 1.08fr .88fr;
  }
  .ledger .finance-filters { grid-template-columns: minmax(0, 1fr); }
  .chart-controls { grid-template-columns: minmax(0, 1fr); }
}

body[data-design=clarity] .today-page .intro h1{
  font-size:clamp(2rem,4vw,3.5rem);
  line-height:1.04;
}
body[data-design=clarity] .today-page .today-grid{
  display:grid;
  grid-template-areas:"tasks side" "notes side";
  grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);
  grid-template-rows:auto 1fr;
  gap:18px clamp(18px,3vw,36px);
  align-items:start;
  border-top:1px solid var(--ux-border);
  padding-block-start:18px;
}
body[data-design=clarity] .today-page .today-grid .card,
body[data-design=clarity] .today-page .today-grid .today-side .card{
  min-width:0;
  background:transparent;
  box-shadow:none;
  border:0;
  border-radius:0;
  padding:0!important;
}
body[data-design=clarity] .today-page .today-grid h2{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.36rem,2.1vw,1.85rem);
  line-height:1.16;
  margin:0 0 10px;
}
body[data-design=clarity] .today-page .today-tasks{grid-area:tasks;align-self:start}
body[data-design=clarity] .today-page .today-notes{grid-area:notes}
body[data-design=clarity] .today-page .today-side{
  grid-area:side;
  border-inline-start:1px solid var(--ux-border);
  padding-inline-start:clamp(18px,3vw,36px);
  gap:18px;
  margin:0;
}
body[data-design=clarity] .today-page .today-grid .today-notes,
body[data-design=clarity] .today-page .today-grid .today-side .today-schedule,
body[data-design=clarity] .today-page .today-grid .today-side .today-agenda{
  border-top:1px solid var(--ux-border);
  padding-block-start:14px!important;
}
body[data-design=clarity] .today-page .today-grid .today-side .today-finance{
  background:var(--ux-soft);
  border-radius:var(--ux-radius);
  padding:10px 14px 4px!important;
}
body[data-design=clarity] .today-page .today-grid .today-task-head h2,
body[data-design=clarity] .today-page .today-grid .today-finance-head h2{margin:0}
.today-page .today-progress{margin-bottom:12px}
.today-page .today-task-head,.today-page .today-finance-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0 12px;
  flex-wrap:wrap;
}
body[data-design=clarity] .today-page .today-grid .text-button{padding-inline:0}
.today-page .today-finance .finance-summary-period{margin:0 0 4px}
.today-page .today-money-row{grid-template-columns:minmax(0,1fr);gap:0;padding-block:0}
.today-page .today-money-row>div{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:4px 12px;
  flex-wrap:wrap;
  padding:5px 0;
}
.today-page .today-money-row>div+div{border-top:1px solid var(--ux-border)}
.today-page .today-money-row>.total{background:transparent;border-radius:0}
.today-page .today-money-row strong{font-size:1rem;text-align:end;margin-inline-start:auto}
body[data-design=clarity] .today-page .today-week button{
  border-color:transparent;
  background:transparent;
  display:grid;
  place-content:center;
  gap:2px;
  padding:4px 0;
}
.today-page .today-weekday{font-size:.75rem;color:var(--ux-muted);font-weight:400}
.today-page .today-timeline li{grid-template-columns:minmax(0,1fr);padding-inline-start:22px;min-height:48px}
.today-page .today-timeline li::before,.today-page .today-timeline li::after{left:5px;top:14px}
.today-page .today-timeline li::before{top:0}
.today-page .today-timeline li:first-child::before{top:14px}
.today-page .today-timeline li:last-child::before{bottom:auto;height:14px}
.today-page .today-timeline li:only-child::before{display:none}
.today-page .today-timeline li button{min-height:44px;margin-top:-5px}
.today-page .today-timeline time{font-weight:650;color:var(--ux-ink)}
.today-page .today-notes .note-link{overflow-wrap:anywhere;text-align:start;line-height:1.35}
.today-page .today-grid p.empty{min-height:0;padding-block:0}
.finance-navigation{
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
  margin:0 0 14px;
  border-bottom:1px solid var(--ux-border);
}
.finance-navigation a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--ux-green);
  font-weight:650;
  text-underline-offset:4px;
}
.finance-page [id^="finance-"],main h1[tabindex="-1"]{
  scroll-margin-top:calc(var(--app-header-height,72px) + 12px);
}
body[data-design=clarity] .finance-page .finance-details .card{
  padding:14px 16px;
  border:1px solid var(--ux-border);
  border-radius:var(--ux-radius);
  background:var(--ux-surface);
}
body[data-design=clarity] .finance-page .finance-details .finance-overview{
  background:var(--ux-soft);
  border-color:transparent;
}
.ledger .finance-filters{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));
}
.ledger .finance-filters input,.ledger .finance-filters select,.event-editor input[type="datetime-local"]{
  box-sizing:border-box;
  min-inline-size:0;
  max-inline-size:100%;
  inline-size:100%;
}
.ledger .finance-filters input::-webkit-datetime-edit,
.event-editor input::-webkit-datetime-edit{
  min-inline-size:0;
}
.event-all-day{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  margin-top:8px;
}
.event-all-day label{margin:0}
.event-all-day input[type="checkbox"]{width:24px;min-height:24px;margin:0}
.event-options{
  padding:0 12px;
  border:1px solid var(--ux-border);
  border-radius:9px;
}
.event-options[open]{padding-bottom:12px}
.event-options summary{
  display:list-item;
  align-content:center;
  min-height:44px;
  color:var(--ux-green);
  font-weight:650;
}
body[data-design=clarity][data-theme="light"]{
  --ux-bg:#f7f6ef;
  --ux-surface:#fffefa;
  --ux-ink:#24322a;
  --ux-muted:#54645a;
  --ux-border:#d9dfd5;
  --ux-green:#225746;
  --ux-soft:#e5eee3;
}
@media(prefers-color-scheme:light){
  body[data-design=clarity][data-theme="system"]{
    --ux-bg:#f7f6ef;
    --ux-surface:#fffefa;
    --ux-ink:#24322a;
    --ux-muted:#54645a;
    --ux-border:#d9dfd5;
    --ux-green:#225746;
    --ux-soft:#e5eee3;
  }
}
@media(max-width:759px){
  body[data-design=clarity] .today-page .intro{margin-bottom:16px}
  body[data-design=clarity] .today-page .today-grid{grid-template-areas:none;grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:14px}
  body[data-design=clarity] .today-page .today-side{display:contents}
  body[data-design=clarity] .today-page .today-grid .card{grid-area:auto}
}

.import-guide,.import-faq{max-width:52rem;margin:32px auto;scroll-margin-top:84px}
.import-guide ol{padding-inline-start:24px}
.import-guide li,.import-faq details{padding:14px 0;border-bottom:1px solid var(--ux-border)}
.import-guide li p,.import-faq details p{margin:.45rem 0 0}
.import-faq summary{cursor:pointer;font-weight:650;min-height:36px}

.calendar-modes{display:flex;flex-wrap:wrap;gap:6px;margin-block:0 14px}
body[data-design=clarity] .today-week button[aria-current=date]{background:var(--ux-soft);color:var(--ux-green);border-color:var(--ux-green)}
.calendar-day-layout{grid-template-columns:minmax(0,1fr);max-width:58rem}
.calendar-day-layout .calendar-toolbar{margin:0}
.calendar-page .calendar-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:23rem}
body[data-design=clarity] .calendar-page .calendar-modes button{
  min-width:0;
  padding-inline:4px;
  background:transparent;
  border-color:var(--ux-border);
  color:var(--ux-ink);
}
body[data-design=clarity] .calendar-page .calendar-modes button[aria-pressed=true]{
  background:var(--ux-green);
  border-color:var(--ux-green);
  color:var(--ux-surface);
}
.calendar-page .calendar-layout{border-top:1px solid var(--ux-border);padding-block-start:16px}
body[data-design=clarity] .calendar-page .calendar-layout .card{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body[data-design=clarity] .calendar-page .calendar-layout .calendar-month{background:var(--ux-bg)}
body[data-design=clarity] .calendar-page .calendar-toolbar h2,
body[data-design=clarity] .calendar-page .calendar-agenda-date{
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.2rem,2.3vw,1.75rem);
  line-height:1.16;
}
.calendar-page .calendar-toolbar h2{text-transform:none}
.calendar-page .calendar-toolbar h2::first-letter{text-transform:uppercase}
.calendar-page .calendar-grid{gap:0}
body[data-design=clarity] .calendar-page .calendar-date,.calendar-page .calendar-offset{
  border-bottom:1px solid var(--ux-border);
  border-radius:0;
}
body[data-design=clarity] .calendar-page .calendar-date[aria-pressed=true],
body[data-design=clarity] .calendar-page .calendar-date.is-today{border-radius:8px}
.calendar-page .calendar-offset{border-inline-end:1px solid var(--ux-border)}
.calendar-page .calendar-date:not([aria-pressed=true]){border-inline-end:1px solid var(--ux-border)}
.calendar-page .calendar-agenda-head{gap:6px 12px}
.calendar-page .calendar-events{margin-block:8px 10px}
.calendar-page .calendar-events .event-row{
  position:relative;
  border-inline-start:1px solid var(--ux-border);
  padding-inline-start:15px;
  margin-inline-start:5px;
}
.calendar-page .calendar-events .event-row::before{
  content:"";
  position:absolute;
  inset-inline-start:-4px;
  inset-block-start:19px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ux-green);
}
.calendar-page .calendar-event-time{font-weight:650;font-variant-numeric:tabular-nums}
.calendar-page .calendar-picker{
  border-top:1px solid var(--ux-border);
  margin-block-start:14px;
  padding-inline:2px;
}
@media(min-width:900px){
  .calendar-page .calendar-layout:not(.calendar-day-layout){grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
  body[data-design=clarity] .calendar-page .calendar-layout:not(.calendar-day-layout) .calendar-agenda{
    padding-inline-start:clamp(14px,2vw,24px);
    border-inline-start:1px solid var(--ux-border);
  }
}
@media(max-width:899px){
  .calendar-page .calendar-layout{grid-template-columns:minmax(0,1fr)}
  body[data-design=clarity] .calendar-page .calendar-layout .calendar-agenda{padding-block-start:14px;border-top:1px solid var(--ux-border)}
}
.today-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-block:0 10px}
.today-week button{padding-inline:0;min-width:0;min-height:44px;font-variant-numeric:tabular-nums}

.statement-steps{list-style:none;counter-reset:statement-step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 14px;padding:0}
.statement-steps li{
  counter-increment:statement-step;
  min-width:0;
  padding:6px;
  border-bottom:1px solid var(--ux-border);
  color:var(--ux-muted);
  overflow-wrap:anywhere;
}
.statement-steps li::before{
  content:counter(statement-step);
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid var(--ux-border);
  border-radius:50%;
  margin-inline-end:6px;
}
.statement-steps [aria-current=step]{background:var(--ux-soft);color:var(--ux-green);border-color:var(--ux-green);font-weight:700}
.statement-steps [aria-current=step]::before{background:var(--ux-green);color:var(--ux-surface);border-color:var(--ux-green)}
.statement-receipt{padding:16px;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-soft)}
.statement-receipt button{margin-inline-end:8px}
body[data-design=clarity] .statement-dialog .dialog-head h2{
  font:600 clamp(1.38rem,3vw,1.9rem)/1.16 Georgia,"Times New Roman",serif;
}
@media(min-width:1000px){
  body[data-design=clarity] dialog.statement-dialog{width:min(calc(100% - 32px),65rem);max-width:65rem}
}
.statement-dialog .statement-totals,.statement-dialog .import-table td:nth-child(4){
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
@media(max-width:430px){
  .statement-receipt button{width:100%;margin-inline-end:0}
}
@media(max-width:760px){
 .import-table table{min-width:0;display:block}
 .import-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .import-table tbody{display:block}
 .import-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:6px 10px;border-bottom:1px solid var(--ux-border)}
 .import-table tbody td{display:block;max-width:none;min-width:0;padding:5px 0;border:0}
 .import-table tbody td::before{content:attr(data-label);display:block;font-size:.75rem;color:var(--ux-muted)}
 .import-table tbody td:nth-child(3),.import-table tbody td:nth-child(7){grid-column:1/-1}
 .import-table input[type=checkbox]{margin:4px 0}
}

.statement-dialog .statement-file-options,.statement-dialog .statement-advanced{margin:6px 0}
.statement-file-options summary{overflow-wrap:anywhere}

.finance-page .finance-navigation {
  margin:0 0 14px;
  border-block:1px solid var(--ux-border);
  gap:0 clamp(4px,2vw,22px);
}
body[data-design=clarity] .finance-page .intro{
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.finance-page .finance-toolbar{justify-content:flex-start}
.finance-page .finance-navigation a {
  padding-inline: 2px;
  text-decoration: none;
}
.finance-page .finance-navigation a:hover {
  text-decoration: underline;
}
body[data-design=clarity] .finance-page .finance-grid .ledger {
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
}
body[data-design=clarity] .finance-page .ledger h2 {
  font:600 clamp(1.36rem,2.1vw,1.85rem)/1.16 Georgia,"Times New Roman",serif;
  margin:0 0 10px;
}
body[data-design=clarity] .finance-page .finance-overview h2{
  font:600 clamp(1.36rem,2.1vw,1.65rem)/1.16 Georgia,"Times New Roman",serif!important;
}
body[data-design=clarity] .finance-page .finance-overview .finance-total{
  grid-template-columns:minmax(0,1fr);
  gap:3px;
}
body[data-design=clarity] .finance-page .finance-overview .currency-code{display:block;color:var(--ux-ink);font-weight:650}
.finance-page .finance-overview .finance-total > div{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:baseline;
  gap:0 8px;
}
body[data-design=clarity] .finance-page .finance-overview .finance-total strong{font-size:1rem;margin-inline-start:auto}
body[data-design=clarity] .finance-page .finance-details :is(.finance-accounts,.finance-budgets,.finance-analysis){
  padding:8px 0 0;
  background:transparent;
  border:0;
  border-radius:0;
}
.finance-section-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:4px 8px;
  border-bottom:1px solid var(--ux-border);
  padding-bottom:8px;
}
body[data-design=clarity] .finance-section-head h2{
  margin:0;
  font:600 clamp(1.36rem,2.1vw,1.65rem)/1.16 Georgia,"Times New Roman",serif;
}
.finance-accounts .account-name{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.account-name .ui-icon{width:18px;height:18px;color:var(--ux-green)}
.finance-accounts .account-balance strong{font-variant-numeric:tabular-nums}
body[data-design=clarity] :is(.account-editor,.transaction-editor,.budget-editor) .dialog-head h2{
  font:600 clamp(1.4rem,3vw,1.9rem)/1.16 Georgia,"Times New Roman",serif;
}
body[data-design=clarity] :is(.account-editor,.transaction-editor,.budget-editor) button[type=submit]{width:100%;margin-block-start:8px}
.finance-field-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 12px;
}
.transaction-editor .transaction-value,.budget-editor .budget-value{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)}
:is(.transaction-editor,.budget-editor) :is(input,select){min-inline-size:0;max-inline-size:100%}
body[data-design=clarity] :is(.transaction-editor,.budget-editor) .dialog-head{margin-block-end:8px;padding-block:6px}
body[data-design=clarity] :is(.transaction-editor,.budget-editor) label{margin-block:8px 4px}
.budget-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin-block-start:5px}
.budget-metrics span,.budget-metrics strong{display:block;overflow-wrap:anywhere}
.budget-metrics strong{font-variant-numeric:tabular-nums}
.finance-analysis .chart-controls{gap:8px 12px;margin-block:12px 8px}
.finance-analysis .chart-controls > div,.finance-analysis select{min-width:0}
.finance-analysis .chart-controls label{margin-block:0 4px}
.finance-analysis .chart-legend{display:grid;gap:0;padding:0;margin-block:10px 12px}
.chart-legend-row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:2px 10px;
  padding-block:8px;
  border-bottom:1px solid var(--ux-border);
}
.chart-legend-row span::before{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:2px;
  background:currentColor;
  margin-inline-end:8px;
}
.chart-legend-row strong{margin-inline-start:auto;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.finance-analysis canvas:not([hidden]){border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-surface)}
@media(max-width:430px){.finance-analysis .chart-controls{grid-template-columns:minmax(0,1fr)}}
.transaction-editor > button{margin-block-start:8px}
.transaction-editor > .danger{margin-inline-start:8px}
@media(max-width:450px){
  .transaction-editor .transaction-context{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px){
  .budget-editor .budget-dates{grid-template-columns:minmax(0,1fr)}
}
.finance-page .ledger .finance-filter-panel {
  border:1px solid var(--ux-border);
  border-radius:9px;
  padding-inline:12px;
  margin-bottom:4px;
}
.finance-page .ledger .finance-filter-panel > summary {
  overflow-wrap:anywhere;
}
.statement-file-options > summary > span {
  display: inline-block;
  max-inline-size: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}
.statement-dialog .statement-controls select,
.statement-dialog .import-table select {
  min-inline-size: 0;
  max-inline-size: 100%;
  inline-size: 100%;
}

@media (max-width: 759px) {
  body[data-design=clarity] .finance-page .intro {
    margin-bottom: 12px;
    gap: 6px;
  }
  body[data-design=clarity] .finance-page .finance-toolbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
    width:100%;
    margin:0;
  }
  .finance-page .finance-toolbar > button:first-child { grid-column:1/-1; justify-content:center; }
  body[data-design=clarity] .finance-page .finance-grid,
  .finance-page .finance-activity,
  .finance-page .finance-details { gap: 10px; }
  body[data-design=clarity] .finance-page .finance-details .card {
    padding: 8px 12px 10px;
  }
  .finance-page .finance-navigation { column-gap: 4px; justify-content: space-between; }
  .finance-page .finance-navigation a { font-size: .8125rem; }
  body[data-design=clarity] .finance-page .ledger .ledger-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content) 44px;
    gap: 0 5px;
    padding-block: 6px;
    min-height: 56px;
  }
  .finance-page .ledger .ledger-row .text { grid-column: 1; grid-row: 1; }
  .finance-page .ledger .ledger-row strong {
    grid-column: 2;
    grid-row: 1;
    text-align: end;
  }
  .finance-page .ledger .ledger-row button { grid-column: 3; grid-row: 1; }
  .finance-page .ledger .ledger-row .text p { white-space: normal; }
  body[data-design=clarity] .finance-page .finance-grid .finance-overview {
    padding: 10px 12px !important;
  }
  .finance-page .finance-overview .finance-total { gap: 4px; }
  .finance-page .finance-details .account-balance,
  .finance-page .finance-details .budget-line { padding-block: 8px; }
  .finance-page .finance-details .card h2 { margin-bottom: 6px; }
}

@media (max-width: 380px) {
  body[data-design=clarity] .finance-page .ledger .ledger-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    padding-block: 6px;
  }
  .finance-page .ledger .ledger-row strong {
    grid-column: 1;
    grid-row: 2;
    text-align: start;
  }
  .finance-page .ledger .ledger-row button { grid-column: 2; grid-row: 1 / span 2; }
}
@media(max-width:430px){
  .finance-page .finance-accounts .account-balance{grid-template-columns:minmax(0,1fr) 44px;gap:2px 8px}
  .finance-page .finance-accounts .account-balance strong{grid-column:1;margin-inline-start:26px}
  .finance-page .finance-accounts .account-balance button{grid-column:2;grid-row:1 / span 2}
}

@media (max-width: 640px) {
  .statement-dialog .statement-steps li {
    padding: 6px;
    font-size: .75rem;
    line-height: 1.35;
  }
  .statement-dialog .statement-steps li::before { display:grid;margin-block-end:3px; }
  .statement-dialog .import-table tbody tr {
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, .95fr);
    gap: 4px 7px;
    padding: 8px;
  }
  .statement-dialog .import-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .statement-dialog .import-table tbody td:nth-child(1)::before { content: none; }
  .statement-dialog .import-table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .statement-dialog .import-table tbody td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; }
  .statement-dialog .import-table tbody td:nth-child(4) { grid-column: 3; grid-row: 1; white-space: normal; }
  .statement-dialog .import-table tbody td:nth-child(5) { grid-column: 3; grid-row: 3; }
  .statement-dialog .import-table tbody td:nth-child(6) { grid-column: 2; grid-row: 3; }
  .statement-dialog .import-table tbody td:nth-child(7) { grid-column: 2 / -1; grid-row: 4; }
  .statement-dialog .import-table tbody td:nth-child(6):has(select) label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.quick-capture-status{margin:4px 0 10px;color:var(--ux-muted);font-size:.875rem;line-height:1.45}
.quick-capture-status[hidden]{display:none}
@media(max-width:759px){
 body[data-design=clarity] header .workspace{width:auto;max-width:min(68%,22rem);min-width:0}
}

/* The two customer sign-in routes share the same Focus layout. */
body:has(main.focus-login) {
  --login-background: #f7f6f0;
  --login-surface: #fdfcf9;
  --login-ink: #1b2822;
  --login-accent: #105345;
  --login-muted: #4d5c53;
  --login-line: #84938a;
  --login-rule: #d3dbd2;
  background: var(--login-background);
}
body[data-theme=dark]:has(main.focus-login) {
  --login-background: #101b18;
  --login-surface: #1a2721;
  --login-ink: #edf5ee;
  --login-accent: #9dddc0;
  --login-muted: #b4c6bb;
  --login-line: #8ba399;
  --login-rule: #405449;
}
@media (prefers-color-scheme: dark) {
  body[data-theme=system]:has(main.focus-login) {
    --login-background: #101b18;
    --login-surface: #1a2721;
    --login-ink: #edf5ee;
    --login-accent: #9dddc0;
    --login-muted: #b4c6bb;
    --login-line: #8ba399;
    --login-rule: #405449;
  }
}
body[data-auth=true]:has(main.focus-login) > header { display: none; }
body main.focus-login#app,
body[data-design=clarity] main.login.focus-login {
  box-sizing: border-box;
  display: block;
  width: min(440px, 100% - 32px);
  max-width: none;
  min-height: 0;
  margin: clamp(32px, 9vh, 100px) auto 32px;
  padding: clamp(21px, 5vw, 34px);
  border: 1px solid var(--login-rule);
  border-radius: 18px;
  background: var(--login-surface);
  color: var(--login-ink);
  box-shadow: none;
}
body main.focus-login .focus-login-brand {
  display: block;
  margin: 0;
  color: var(--login-accent);
  font: 800 24px/1.25 system-ui, sans-serif;
  letter-spacing: -.045em;
  text-decoration: none;
}
body main.focus-login h1,
body[data-design=clarity] main.focus-login h1 {
  margin: 15px 0 21px;
  color: var(--login-ink);
  font: 700 clamp(34px, 8vw, 44px)/1.07 Georgia, serif;
  letter-spacing: -.055em;
}
body main.focus-login form,
body main.focus-login form fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body main.focus-login form label,
body main.focus-login .focus-login-language label {
  margin: 0;
  color: var(--login-ink);
  font-size: 14px;
  font-weight: 600;
}
body main.focus-login input,
body main.focus-login .focus-login-language select {
  min-width: 0;
  min-height: 46px;
  width: 100%;
  margin: 0 0 7px;
  border: 1px solid var(--login-line);
  border-radius: 9px;
  background: var(--login-surface);
  color: var(--login-ink);
  font-size: 16px;
}
main.focus-login form [role=status] { margin: 0; }
main.focus-login form [role=status]:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
body main.focus-login form > button[type=submit],
body main.focus-login > .focus-login-google {
  width: 100%;
  min-height: 46px;
  margin: 0;
  border: 1px solid var(--login-accent);
  border-radius: 9px;
  font-size: 15px;
  font-weight: 650;
}
body main.focus-login form > button[type=submit] {
  margin-top: 3px;
  background: var(--login-accent);
  color: var(--login-surface);
}
body main.focus-login > .focus-login-google {
  background: transparent;
  color: var(--login-accent);
}
main.focus-login .focus-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  color: var(--login-muted);
  font-size: 13px;
}
main.focus-login .focus-login-divider::before,
main.focus-login .focus-login-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--login-rule);
}
main.focus-login .focus-login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  margin: 8px 0;
}
body main.focus-login .focus-login-links button {
  min-height: 44px;
  padding: 4px 2px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--login-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
}
body main.focus-login .focus-login-language {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: none;
  padding-top: 14px;
  margin: 0;
  border-top: 1px solid var(--login-rule);
}
body main.focus-login .focus-login-language select { margin: 0; }
body main.focus-login :is(a,button,input,select):focus-visible {
  outline: 2px solid var(--login-accent);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  body main.focus-login#app,
  body[data-design=clarity] main.login.focus-login {
    margin-top: max(24px, env(safe-area-inset-top));
  }
}

body main.focus-login .focus-recovery-links { justify-content: center; margin-bottom: 0; }

/* The workspace controls remain usable with long names and a narrow viewport. */
.header-tools{display:flex;align-items:center;gap:6px;min-width:0}
.workspace-sync{margin-inline-start:auto;color:var(--ux-muted);font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.workspace-sync[data-status=error]{color:var(--expense)}
body[data-design=clarity] .header-tools .workspace{max-width:280px;width:clamp(130px,22vw,280px);text-overflow:ellipsis}
.devices-panel>h2{margin-bottom:24px}
.focus-login-story{display:none}
@media(min-width:1000px){
 body main.focus-login#app:has(>.focus-login-story),body[data-design=clarity] main.login.focus-login:has(>.focus-login-story){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 44px;width:min(1000px,100% - 64px);padding:32px;margin-block:clamp(32px,8vh,80px)}
 main.focus-login:has(>.focus-login-story)>:not(.focus-login-story){grid-column:2;min-width:0}
 main.focus-login>.focus-login-story{display:flex;flex-direction:column;grid-column:1;grid-row:1/span 12;padding:38px 32px;border-radius:12px;background:#174d40;color:#f4f8ef;min-height:520px}
 .focus-login-story .focus-story-label{font-size:12px;letter-spacing:.16em;color:#cae1cd}
 body main.focus-login .focus-login-story h2{font:500 clamp(34px,3.4vw,46px)/1.13 Georgia,serif;letter-spacing:-.04em;margin:50px 0 22px;color:inherit}
 .focus-login-story h2 span{display:block}
 body main.focus-login .focus-login-story p{color:#d3e4d7;font-size:15px;line-height:1.6;margin:0 0 24px}
 .focus-login-story ul{list-style:none;padding:0;margin:0 0 36px;font-size:14px}
 .focus-login-story li{padding:12px 0;border-top:1px solid #ffffff30}
 .focus-login-story li::before{content:'✓';margin-inline-end:12px;color:#b9e4c3}
 body main.focus-login .focus-login-story .focus-story-footnote{margin:auto 0 0;font-size:12px}
}
@media(max-width:759px){
 body[data-design=clarity] #root>header{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;height:auto;padding:10px 16px;min-height:0}
 .header-tools{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:0}
 body[data-design=clarity] .header-tools .workspace{width:100%;max-width:100%;min-width:0;padding-inline:8px;font-size:12px!important}
 .workspace-sync{grid-column:1/-1;grid-row:2;margin:0;font-size:11px;line-height:18px}
}

/* Control announcements: compose, inspect, then explicitly publish. */
body[data-control=true] .control-announcement-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:28px;align-items:start;margin-top:28px}body[data-control=true] .control-announcement-form{max-width:none;margin:0;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.control-announcement-field{min-width:0;margin-bottom:18px}.control-announcement-field label{display:block;margin:0 0 7px}.control-announcement-form textarea{width:100%;min-height:140px}.control-announcement-field input{width:100%}.control-announcement-choice{border:0;padding:0;margin:24px 0;min-width:0}.control-announcement-choice legend{font-size:1rem;font-weight:600;padding:0;margin-bottom:10px}.control-announcement-choice label{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:12px;margin:8px 0;cursor:pointer}.control-announcement-choice label:has(input:checked){background:var(--soft);border-color:var(--accent)}body[data-control=true] .control-announcement-choice input[type=radio]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:2px 0;accent-color:var(--accent)}.control-announcement-choice strong{display:block;font-size:.875rem;font-weight:550}.control-announcement-choice small{display:block;color:var(--muted);font-size:.75rem;margin-top:4px;line-height:1.5}.control-announcement-timing{margin:22px 0}.control-announcement-timing summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:550}.control-announcement-preview-host{position:sticky;top:24px;min-width:0}.control-announcement-preview-host>h2{font-size:1rem;color:var(--muted);font-weight:500;margin:0 0 12px}.control-announcement-preview{border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0;background:var(--bg);padding:20px}.control-preview-frame{position:relative;min-height:340px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px}.control-preview-caption{font-weight:600;font-size:1.125rem;margin:0 0 24px;color:var(--muted)}.control-preview-message{position:relative;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card);overflow-wrap:anywhere}.control-preview-message .eyebrow{font-size:.625rem;color:var(--accent);margin:0 0 8px}.control-preview-message h3{font-size:1rem;line-height:1.35;margin:4px 0 10px}.control-preview-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:.875rem}.control-preview-message .control-preview-body{max-height:280px;overflow:auto;margin-bottom:0}.control-preview-button{display:inline-block;color:var(--accent);background:var(--soft);padding:8px 14px;border-radius:8px;font-size:.75rem;font-weight:600;margin:18px 8px 0 0}.control-preview-close{position:absolute;right:10px;top:6px;font-size:20px;color:var(--muted)}.control-announcement-preview[data-format=banner] .control-preview-message{border-left:3px solid var(--accent);padding-right:30px}.control-announcement-preview[data-format=fullscreen] .control-preview-frame{background:var(--soft);display:grid;align-content:center;min-height:440px}.control-announcement-preview[data-format=fullscreen] .control-preview-message{padding:28px 24px}.control-announcement-preview[data-format=fullscreen] .control-preview-message h3{font-size:1.5rem;letter-spacing:-.03em}.control-announcement-preview[data-format=fullscreen] .control-preview-caption{font-size:.8125rem}.control-announcement-list{display:grid;gap:16px;margin-top:24px}.control-announcement-row{max-width:none}.control-announcement-row .actions{justify-content:flex-start}.control-publish-summary h2{line-height:1.3}.control-publish-summary dl{display:grid;grid-template-columns:1fr 1.3fr;gap:10px 18px;font-size:.8125rem;border-block:1px solid var(--line);padding:20px 0;margin:20px 0}.control-publish-summary dt{color:var(--muted)}.control-publish-summary dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}.control-publish-form>button{margin-top:12px;margin-right:8px}.control-announcement-feedback:empty{display:none}
@media(max-width:900px){body[data-control=true] .control-announcement-layout{grid-template-columns:1fr;gap:20px}.control-announcement-preview-host{position:static}.control-preview-frame{min-height:220px}.control-announcement-preview[data-format=fullscreen] .control-preview-frame{min-height:320px}}@media(max-width:480px){body[data-control=true] .control-announcement-form{padding:18px}.control-announcement-preview{padding:12px}.control-preview-frame{padding:14px}.control-publish-summary dl{grid-template-columns:1fr;gap:5px}.control-publish-summary dd{margin-bottom:10px}}

.control-overview-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:28px 0}.control-overview-link{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:20px!important;white-space:normal}.control-overview-link strong{font-size:1rem}.control-overview-link span{font-size:.8125rem;line-height:1.5;color:var(--muted);font-weight:400}@media(max-width:900px){.control-overview-links{grid-template-columns:1fr 1fr}}@media(max-width:560px){.control-overview-links{grid-template-columns:1fr}}

.control-announcement-preview[data-format=fullscreen] .control-preview-frame{background:var(--card)}.control-announcement-preview[data-format=fullscreen] .control-preview-message{border:0;background:transparent}

.control-recovery-list{display:grid;gap:18px;margin:22px 0}.control-recovery-card dl{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:8px 16px;font-size:.8125rem;margin:20px 0}.control-recovery-card dt{color:var(--muted)}.control-recovery-card dd{margin:0;overflow-wrap:anywhere}.control-recovery-review{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.control-recovery-card [hidden]{display:none!important}.control-recovery-filters button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.control-recovery-status:empty{display:none}@media(max-width:480px){.control-recovery-card dl{grid-template-columns:1fr;gap:4px}.control-recovery-card dd{margin-bottom:10px}}

/* FOCUS_VISUAL_LAYERS */
/* app/focus.css */
/* Focus workspace: one visual system; existing actions and record models stay intact. */
body[data-design=clarity]{
 --ux-bg:#f5f6f2;--ux-surface:#ffffff;--ux-ink:#20352c;--ux-muted:#64736b;
 --ux-border:#e0e7df;--ux-green:#155c46;--ux-soft:#e8f2e9;--ux-radius:18px;
 --bg:var(--ux-bg);--card:var(--ux-surface);--ink:var(--ux-ink);--muted:var(--ux-muted);--line:var(--ux-border);--accent:var(--ux-green);--soft:var(--ux-soft);
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 background:var(--ux-bg);color:var(--ux-ink);font-size:15px;
}
body[data-design=clarity][data-theme=dark]{--ux-bg:#101c18;--ux-surface:#192a23;--ux-ink:#edf5ef;--ux-muted:#afc1b5;--ux-border:#31483b;--ux-green:#a0dfba;--ux-soft:#263f30}
@media(prefers-color-scheme:dark){body[data-design=clarity][data-theme=system]{--ux-bg:#101c18;--ux-surface:#192a23;--ux-ink:#edf5ef;--ux-muted:#afc1b5;--ux-border:#31483b;--ux-green:#a0dfba;--ux-soft:#263f30}}
body[data-design=clarity] #root h1,body[data-design=clarity] #root h2,body[data-design=clarity] #root h3{font-family:inherit;letter-spacing:-.035em;color:var(--ux-ink)}
body[data-design=clarity] #root h1{font-size:clamp(28px,3vw,40px);font-weight:720;line-height:1.15}
body[data-design=clarity] #root h2{font-size:20px;font-weight:700;line-height:1.3}
body[data-design=clarity] #root h3{font-size:15px;line-height:1.4}
body[data-design=clarity] #root>header{background:var(--ux-surface);border-bottom:1px solid var(--ux-border);padding-inline:28px;box-shadow:0 2px 16px #173a2003}
body[data-design=clarity] .brand{font-size:24px;letter-spacing:-.06em;font-weight:800}
body[data-design=clarity] .header-tools{gap:8px}
body[data-design=clarity] .header-tools .workspace{border-radius:12px;background:var(--ux-bg);font-weight:550}
body[data-design=clarity] button.icon{border-radius:12px}
body[data-design=clarity] button.icon:hover{background:var(--ux-soft);color:var(--ux-green)}
body[data-design=clarity] .workspace-sync{font-size:11px}
body[data-design=clarity] button{font-size:14px;font-weight:650;border-radius:11px;transition:background .15s,border-color .15s}
body[data-design=clarity] button.text-button{min-height:44px}
body[data-design=clarity] button.secondary{background:var(--ux-surface)}
body[data-design=clarity] input,body[data-design=clarity] select,body[data-design=clarity] textarea{border-radius:11px;border:1px solid var(--ux-border);min-height:46px;background:var(--ux-surface);font-size:15px}
body[data-design=clarity] input:focus,body[data-design=clarity] textarea:focus{border-color:var(--ux-green)}
body[data-design=clarity] input[type=checkbox]{min-height:22px;width:22px;height:22px;accent-color:var(--ux-green);flex:none}
body[data-design=clarity] .intro{margin-bottom:24px;align-items:center}
body[data-design=clarity] .eyebrow{font-size:12px;text-transform:none;letter-spacing:.01em;margin-bottom:9px}
body[data-design=clarity] .nav{background:var(--ux-surface)}
body[data-design=clarity] .nav button{font-size:14px;font-weight:550;border-radius:12px;color:var(--ux-muted)}
body[data-design=clarity] .nav button[aria-current=page]{background:var(--ux-soft);color:var(--ux-green);font-weight:750}
body[data-design=clarity] .nav button:hover{background:var(--ux-bg)}
body[data-design=clarity] .nav button[aria-current=page]:hover{background:var(--ux-soft)}
body[data-design=clarity] .today-page .intro{position:relative;min-height:106px;padding:12px 0;overflow:hidden}
body[data-design=clarity] .today-page .intro::after{content:'';position:absolute;pointer-events:none;right:0;bottom:0;width:42%;height:100%;opacity:.65;border-radius:50% 50% 14px 45%;background:radial-gradient(ellipse at 80% 110%,#7ab990 0 30%,transparent 31%),radial-gradient(ellipse at 35% 110%,#b2d6b3 0 48%,transparent 49%),radial-gradient(circle at 65% 15%,#f2dd9f 0 9%,transparent 10%)}
body[data-design=clarity] .today-page .intro h1{font-size:clamp(32px,3.6vw,46px);margin-bottom:0}
body[data-design=clarity] .today-page .today-grid{border:0;padding:0;gap:22px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);grid-template-areas:'tasks side' 'notes side';grid-template-rows:auto 1fr}
body[data-design=clarity] .today-page .today-side{border:0;padding:0;gap:22px;display:grid;align-content:start}
body[data-design=clarity] .today-page .today-grid .card,
body[data-design=clarity] .today-page .today-grid .today-side .card{background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:20px;padding:24px!important;box-shadow:0 5px 20px #173a2004;min-width:0}
body[data-design=clarity] .today-page .today-grid h2{font-family:inherit;font-size:21px;letter-spacing:-.03em;margin-bottom:14px}
body[data-design=clarity] .today-page .today-grid .today-notes,
body[data-design=clarity] .today-page .today-grid .today-side .today-agenda,
body[data-design=clarity] .today-page .today-grid .today-side .today-schedule{border:1px solid var(--ux-border);padding:24px!important}
body[data-design=clarity] .today-page .today-grid .today-side .today-finance{background:var(--ux-surface);padding:24px!important}
body[data-design=clarity] .today-page .today-task-head{gap:8px;margin-bottom:14px}
body[data-design=clarity] .today-page .today-task-head>span{background:var(--ux-soft);padding:5px 10px;border-radius:8px;color:var(--ux-green);font-weight:650}
body[data-design=clarity] .today-page .today-progress{gap:4px;margin-bottom:18px}
body[data-design=clarity] .today-page progress{height:7px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--ux-green)}
body[data-design=clarity] .today-page progress::-webkit-progress-bar{background:var(--ux-bg);border-radius:8px}
body[data-design=clarity] .today-page progress::-webkit-progress-value{background:var(--ux-green);border-radius:8px}
body[data-design=clarity] .today-page .quick-capture{gap:10px;margin-bottom:12px}
body[data-design=clarity] .today-page .quick-capture input{background:var(--ux-bg)}
body[data-design=clarity] .today-page .quick-capture button{background:var(--ux-green);color:var(--ux-surface)}
body[data-design=clarity] .today-page .task-row{padding:16px 0;min-height:62px}
body[data-design=clarity] .today-page .task-actions{margin-top:12px;padding-top:4px;gap:18px}
body[data-design=clarity] .today-page .today-finance-head{gap:6px 12px;margin-bottom:12px}
body[data-design=clarity] .today-page .today-finance-head h2{font-size:21px}
body[data-design=clarity] .today-page .today-money-row>div{padding:13px 0;gap:8px;align-items:center}
body[data-design=clarity] .today-page .today-money-row strong{font-size:19px;font-weight:720;font-variant-numeric:tabular-nums}
body[data-design=clarity] .today-page .today-money-row>.total{margin-top:8px;padding:13px 12px;border:0;border-radius:11px;background:var(--ux-soft)}
body[data-design=clarity] .today-page .today-grid .today-add-operation{justify-content:center;background:var(--ux-soft);border-radius:10px;width:100%;padding:10px;margin-top:16px}
body[data-design=clarity] .today-page .today-week{margin:16px 0;gap:5px}
body[data-design=clarity] .today-page .today-week button{border-radius:10px;min-height:58px;gap:5px}
body[data-design=clarity] .today-page .today-week button[aria-current=date]{background:var(--ux-soft);border:1px solid var(--ux-green)}
body[data-design=clarity] .today-page .today-agenda .row{background:var(--ux-bg);border:0;border-radius:12px;padding:14px;margin:8px 0}
body[data-design=clarity] .today-page .today-notes .note{background:var(--ux-bg);border:0;border-radius:12px;padding:15px;margin:8px 0}
body[data-design=clarity] .today-page .today-notes .note-link{font-weight:650;color:var(--ux-ink);font-size:15px}
body[data-design=clarity] #root .empty{font-size:14px;line-height:1.6}
body[data-design=clarity] dialog{border-radius:20px;border:1px solid var(--ux-border);background:var(--ux-surface);padding:28px;box-shadow:0 24px 80px #081b2130}
body[data-design=clarity] dialog .dialog-head{border-bottom:1px solid var(--ux-border);padding-bottom:18px;margin-bottom:20px}
body[data-design=clarity] dialog .dialog-head h2{font-family:inherit;font-size:23px}
@media(min-width:1000px){
 body[data-design=clarity] #root>.nav{width:224px;padding:26px 16px;border-inline-end:1px solid var(--ux-border)}
 body[data-design=clarity] #root>.nav button{padding:13px 16px;min-height:48px;gap:14px}
 body[data-design=clarity] #root>main:not(.login){margin-left:224px;width:calc(100% - 224px);max-width:calc(100% - 224px);padding:30px clamp(24px,3vw,48px) 64px}
}
@media(min-width:760px) and (max-width:999px){
 body[data-design=clarity] #root>main:not(.login){padding:26px 24px 48px}
 body[data-design=clarity] .today-page .today-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'tasks' 'side' 'notes';grid-template-rows:auto}
 body[data-design=clarity] .today-page .today-side{grid-template-columns:minmax(0,1fr);gap:18px}
 body[data-design=clarity] .today-page .intro::after{width:48%}
}
@media(max-width:759px){
 body[data-design=clarity] #root>header{padding:10px 16px;gap:4px 10px}
 body[data-design=clarity] .brand{font-size:21px}
 body[data-design=clarity] .header-tools{gap:0}
 body[data-design=clarity] #root>main:not(.login){padding:20px 14px calc(var(--nav-height,78px) + 26px)}
 body[data-design=clarity] #root h1{font-size:29px}
 body[data-design=clarity] .today-page .intro{min-height:84px;margin-bottom:18px}
 body[data-design=clarity] .today-page .intro h1{font-size:34px}
 body[data-design=clarity] .today-page .intro::after{width:43%;opacity:.5}
 body[data-design=clarity] .today-page .today-grid{display:flex;flex-direction:column;gap:16px}
 body[data-design=clarity] .today-page .today-side{display:contents}
 body[data-design=clarity] .today-page .today-grid .card,
 body[data-design=clarity] .today-page .today-grid .today-notes,
 body[data-design=clarity] .today-page .today-grid .today-side .card{padding:18px!important;border-radius:17px}
 body[data-design=clarity] .today-page .today-grid h2{font-size:19px}
 body[data-design=clarity] .today-page .today-money-row strong{font-size:18px}
 body[data-design=clarity] .nav button{font-size:11px}
 body[data-design=clarity] dialog{padding:20px;border-radius:18px}
}
@media(prefers-reduced-motion:reduce){body[data-design=clarity] button{transition:none}}

body[data-design=clarity] .today-actionbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}
body[data-design=clarity] .today-actionbar button{justify-content:flex-start;padding:14px 16px;gap:12px;min-height:60px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:14px}
body[data-design=clarity] .today-actionbar .ui-icon{padding:7px;box-sizing:content-box;border-radius:10px;background:var(--ux-soft);color:var(--ux-green);width:20px;height:20px}
body[data-design=clarity] .today-page .today-notes button.note-link{display:flex;width:100%;padding:16px 0;gap:14px;justify-content:flex-start;border-bottom:1px solid var(--ux-border);border-radius:0}
body[data-design=clarity] .today-page .today-notes .note-link>.ui-icon{padding:10px;box-sizing:content-box;background:var(--ux-soft);border-radius:12px;color:var(--ux-green)}
.today-note-text{display:grid;gap:5px;text-align:start;min-width:0}
body[data-design=clarity] .today-page .note-excerpt{font-size:13px;font-weight:400;line-height:1.5;color:var(--ux-muted)}
@media(max-width:999px){body[data-design=clarity] .today-actionbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
@media(max-width:759px){body[data-design=clarity] .today-actionbar{margin-bottom:18px}body[data-design=clarity] .today-actionbar button{font-size:13px;padding:12px;min-height:56px;gap:9px}}

/* One compact currency search shared by all record and import forms. */
.currency-picker{position:relative;min-width:0}
.currency-picker>input{padding-inline-end:48px!important}
.currency-picker .currency-picker-toggle{position:absolute;inset-inline-end:3px;top:3px;width:40px;height:40px;min-height:40px;padding:0;border:0;background:transparent;color:var(--ux-muted,var(--muted));border-radius:8px;font-size:22px;line-height:1}
.currency-picker .currency-picker-toggle:hover{background:var(--ux-soft,var(--soft))}
.currency-picker:has(input[readonly]) .currency-picker-toggle,.currency-picker:has(input:disabled) .currency-picker-toggle{display:none}
.currency-picker-list{position:absolute;z-index:12;top:calc(100% + 5px);inset-inline:0;max-height:220px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:5px;border:1px solid var(--ux-border,var(--line));border-radius:12px;background:var(--ux-surface,var(--card));box-shadow:0 8px 28px #17142826}
.currency-picker-list[hidden]{display:none!important}
.currency-picker-list.opens-above{top:auto;bottom:calc(100% + 5px)}
.currency-picker-list .currency-picker-option{display:grid;grid-template-columns:3.3rem minmax(0,1fr);align-items:center;gap:8px;width:100%;min-height:42px;padding:9px 10px;text-align:start;border:0;border-radius:7px;background:transparent;color:var(--ux-ink,var(--ink));font-size:13px;font-weight:400}
.currency-picker-option strong{font-size:12px;font-variant-numeric:tabular-nums}
.currency-picker-option span{overflow-wrap:anywhere;line-height:1.35}
.currency-picker-list .currency-picker-option:hover,.currency-picker-list .currency-picker-option.is-active{background:var(--ux-soft,var(--soft));color:var(--ux-green,var(--accent))}
.currency-picker-empty{padding:10px;font-size:13px;margin:0}

/* app/workspace-sections.css */
/* Workspace content surfaces. Presentation only: existing controls and actions remain intact. */
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page){
 --section-radius:18px;
 --section-shadow:0 4px 20px rgb(22 55 41 / 3%);
}
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) :is(h1,h2,h3){
 font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 letter-spacing:-.025em;
}
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) .intro h1{
 font-size:clamp(28px,3vw,36px);font-weight:720;line-height:1.18;
}
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) .intro{
 margin-bottom:26px;min-height:48px;
}
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) .workspace-empty{
 min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:28px;
}
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) .workspace-empty>svg{
 width:42px;height:42px;padding:9px;border-radius:13px;background:var(--ux-soft);color:var(--ux-green);
}
body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) .workspace-empty p{max-width:32ch;margin:0;line-height:1.65}

/* Tasks are one calm, scan-friendly list, with filters separated from task content. */
body[data-design=clarity] main.tasks-page .task-filters{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,220px);gap:18px;padding:18px 22px;margin:0 0 24px;
 background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:var(--section-radius);box-shadow:var(--section-shadow);
}
body[data-design=clarity] main.tasks-page .task-filters label{margin:0 0 7px;font-size:12px;font-weight:650;color:var(--ux-muted)}
body[data-design=clarity] main.tasks-page .task-filters :is(input,select){min-height:46px;background:var(--ux-bg);border-color:var(--ux-border);border-radius:10px}
body[data-design=clarity] main.tasks-page .task-list{display:grid;gap:24px}
body[data-design=clarity] main.tasks-page .task-group{
 padding:0 22px 4px;border:1px solid var(--ux-border);border-radius:var(--section-radius);background:var(--ux-surface);box-shadow:var(--section-shadow);overflow:hidden;
}
body[data-design=clarity] main.tasks-page .task-group-head{
 display:flex;align-items:center;justify-content:space-between;padding:21px 0 16px;margin:0;border-bottom:1px solid var(--ux-border);
}
body[data-design=clarity] main.tasks-page .task-group-head h2{font-size:16px;font-weight:700;margin:0}
body[data-design=clarity] main.tasks-page .task-group-count{display:inline-grid;place-items:center;min-width:29px;height:26px;padding:0 8px;border-radius:8px;background:var(--ux-soft);color:var(--ux-green);font-size:12px;font-weight:700}
body[data-design=clarity] main.tasks-page .task-row{min-height:70px;padding:14px 0;gap:14px}
body[data-design=clarity] main.tasks-page .task-row input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--ux-green)}
body[data-design=clarity] main.tasks-page .task-row .text{font-size:15px;line-height:1.55}
body[data-design=clarity] main.tasks-page .task-row .done{opacity:.7}
body[data-design=clarity] main.tasks-page .task-row button.icon{border-radius:9px}
body[data-design=clarity] main.tasks-page .task-row button.icon:hover{background:var(--ux-soft)}

/* Calendar has a roomy month surface and a clearly separated agenda. */
body[data-design=clarity] main.calendar-page .calendar-modes{
 width:fit-content;max-width:100%;display:inline-grid;grid-template-columns:repeat(3,minmax(70px,1fr));gap:4px;padding:5px;background:var(--ux-soft);border-radius:12px;margin:0 0 22px;
}
body[data-design=clarity] main.calendar-page .calendar-modes button{border:0;border-radius:8px;background:transparent;color:var(--ux-muted);padding:9px 18px;min-height:44px;font-size:13px}
body[data-design=clarity] main.calendar-page .calendar-modes button[aria-pressed=true]{background:var(--ux-surface);color:var(--ux-green);box-shadow:0 2px 7px rgb(17 50 35 / 7%);font-weight:700}
body[data-design=clarity] main.calendar-page .calendar-layout{padding:0;border:0;gap:22px;align-items:start}
body[data-design=clarity] main.calendar-page .calendar-layout .card{
 padding:24px;border:1px solid var(--ux-border);border-radius:var(--section-radius);background:var(--ux-surface);box-shadow:var(--section-shadow);
}
body[data-design=clarity] main.calendar-page .calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}
body[data-design=clarity] main.calendar-page .calendar-toolbar h2{font-size:19px;font-weight:700;text-align:center;margin:0}
body[data-design=clarity] main.calendar-page .calendar-toolbar button{border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface)}
body[data-design=clarity] main.calendar-page .calendar-grid{gap:6px}
body[data-design=clarity] main.calendar-page .calendar-grid .weekday{font-size:11px;letter-spacing:.06em;color:var(--ux-muted);text-transform:uppercase;padding:8px 0 12px;text-align:center}
body[data-design=clarity] main.calendar-page :is(.calendar-date,.calendar-offset){min-height:64px;border:0;border-radius:11px;position:relative}
body[data-design=clarity] main.calendar-page .calendar-date{background:transparent;color:var(--ux-ink);padding:10px 4px;font-size:14px;font-weight:550;gap:6px}
body[data-design=clarity] main.calendar-page .calendar-date:hover{background:var(--ux-soft)}
body[data-design=clarity] main.calendar-page .calendar-date.is-today{box-shadow:inset 0 0 0 1px var(--ux-green);color:var(--ux-green)}
body[data-design=clarity] main.calendar-page .calendar-date[aria-pressed=true]{background:var(--ux-green);color:var(--ux-surface);box-shadow:none;border-radius:11px}
body[data-design=clarity] main.calendar-page .event-count{min-width:18px;height:18px;border-radius:50%;font-size:10px;background:var(--ux-soft);color:var(--ux-green);display:inline-grid;place-items:center}
body[data-design=clarity] main.calendar-page .calendar-agenda-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
body[data-design=clarity] main.calendar-page .calendar-agenda-date{font-size:18px;font-weight:700;line-height:1.4;margin:0;max-width:25ch}
body[data-design=clarity] main.calendar-page .calendar-agenda-head button{font-size:12px;min-height:44px;padding:8px 12px}
body[data-design=clarity] main.calendar-page .calendar-events .event-row{padding:16px 12px 16px 19px;background:var(--ux-bg);border:0;border-radius:11px;margin:10px 0}
body[data-design=clarity] main.calendar-page .calendar-events .event-row::before{left:0;top:13px;bottom:13px;width:3px;border-radius:3px;background:var(--ux-green)}
body[data-design=clarity] main.calendar-page .calendar-picker{margin:20px 0 0;padding:16px 0 0;border-top:1px solid var(--ux-border)}
body[data-design=clarity] main.calendar-page .calendar-picker label{font-size:12px;font-weight:650;color:var(--ux-muted);margin:0 0 7px}

/* Notes keep the reading surface quiet while feeling like deliberate objects. */
body[data-design=clarity] main.notes-page .notes-toolbar{max-width:540px;margin:0 0 24px}
body[data-design=clarity] main.notes-page .notes-toolbar label{font-size:12px;color:var(--ux-muted);font-weight:650;margin:0 0 7px}
body[data-design=clarity] main.notes-page .notes-toolbar input{min-height:48px;border-radius:12px;background:var(--ux-surface)}
body[data-design=clarity] main.notes-page .notes-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:20px;align-items:stretch}
body[data-design=clarity] main.notes-page .notes-library .note-card{
 display:flex;align-items:flex-start;gap:14px;min-height:220px;padding:24px;border:1px solid var(--ux-border);border-radius:var(--section-radius);background:var(--ux-surface);box-shadow:var(--section-shadow);
}
body[data-design=clarity] main.notes-page .note-card>svg{width:34px;height:34px;padding:8px;border-radius:10px;background:var(--ux-soft);color:var(--ux-green);flex:none}
body[data-design=clarity] main.notes-page .note-card-content{display:flex;flex-direction:column;min-width:0;align-self:stretch;flex:1}
body[data-design=clarity] main.notes-page .note-card h2{font-size:17px;line-height:1.4;font-weight:700;margin:3px 0 10px}
body[data-design=clarity] main.notes-page .note-card .note-preview{font-size:14px;line-height:1.75;margin:0 0 20px;color:var(--ux-muted)}
body[data-design=clarity] main.notes-page .note-card button.text-button{margin-top:auto;font-size:13px}

/* Finance preserves the ledger-first arrangement and gives supporting details distinct surfaces. */
body[data-design=clarity] main.finance-page .intro{gap:20px;align-items:center}
body[data-design=clarity] main.finance-page .finance-toolbar{gap:8px;flex-wrap:wrap;margin:0}
body[data-design=clarity] main.finance-page .finance-toolbar button{min-height:44px;padding:10px 14px;font-size:13px;border-radius:10px}
body[data-design=clarity] main.finance-page .finance-navigation{display:flex;gap:5px;padding:5px;margin:0 0 24px;border:1px solid var(--ux-border);background:var(--ux-surface);border-radius:12px;width:fit-content;max-width:100%;flex-wrap:wrap}
body[data-design=clarity] main.finance-page .finance-navigation a{padding:8px 16px;border-radius:8px;min-height:44px;color:var(--ux-muted);font-size:13px;font-weight:600;text-decoration:none}
body[data-design=clarity] main.finance-page .finance-navigation a:hover{color:var(--ux-green);background:var(--ux-soft)}
body[data-design=clarity] main.finance-page .finance-grid{gap:22px;align-items:start}
body[data-design=clarity] main.finance-page .finance-details{gap:18px}
body[data-design=clarity] main.finance-page .finance-grid .card,
body[data-design=clarity] main.finance-page .finance-details .card{
 padding:22px;border:1px solid var(--ux-border);border-radius:var(--section-radius);background:var(--ux-surface);box-shadow:var(--section-shadow);
}
body[data-design=clarity] main.finance-page .finance-grid .ledger{padding:22px;border:1px solid var(--ux-border);background:var(--ux-surface);border-radius:var(--section-radius)}
body[data-design=clarity] main.finance-page .ledger h2{font-size:18px;font-weight:700;margin:0 0 18px}
body[data-design=clarity] main.finance-page .ledger .finance-filter-panel{padding:0 14px;margin:0 0 14px;border:1px solid var(--ux-border);background:var(--ux-bg);border-radius:10px}
body[data-design=clarity] main.finance-page .ledger .finance-filter-panel summary{min-height:44px;font-size:13px;color:var(--ux-muted);font-weight:600}
body[data-design=clarity] main.finance-page .ledger .finance-filters{gap:12px;padding-bottom:16px}
body[data-design=clarity] main.finance-page .ledger-row{padding:16px 0;gap:8px 14px;border-color:var(--ux-border)}
body[data-design=clarity] main.finance-page .ledger-row h3{font-size:14px;font-weight:650;line-height:1.5}
body[data-design=clarity] main.finance-page .ledger-row p{font-size:12px;margin:4px 0 0}
body[data-design=clarity] main.finance-page .ledger-row strong{font-size:15px;font-variant-numeric:tabular-nums}
body[data-design=clarity] main.finance-page .finance-grid .finance-overview{background:var(--ux-green);color:var(--ux-surface);border-color:transparent}
body[data-design=clarity] main.finance-page .finance-overview h2{font-size:16px;font-weight:650;color:inherit;margin:0 0 16px}
body[data-design=clarity] main.finance-page .finance-overview :is(.currency-code,p,.small,.income,.expense){color:inherit}
body[data-design=clarity] main.finance-page .finance-overview .small{opacity:.8}
body[data-design=clarity] main.finance-page .finance-overview .finance-total{padding:10px 0;border-top:1px solid currentColor;gap:8px}
body[data-design=clarity] main.finance-page .finance-overview .finance-total:first-of-type{border-top:0}
body[data-design=clarity] main.finance-page .finance-overview .finance-total strong{font-size:19px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
body[data-design=clarity] main.finance-page .finance-overview .currency-code{font-size:11px;letter-spacing:.12em;font-weight:700;color:inherit;margin-bottom:8px}
body[data-design=clarity] main.finance-page .finance-section-head{margin-bottom:18px;gap:8px;align-items:center}
body[data-design=clarity] main.finance-page .finance-section-head h2{font-size:16px;font-weight:700;margin:0}
body[data-design=clarity] main.finance-page .finance-section-head button{font-size:12px;min-height:44px;padding:7px 10px;border-radius:8px}
body[data-design=clarity] main.finance-page .account-balance{padding:14px 0;gap:8px 10px;border-color:var(--ux-border)}
body[data-design=clarity] main.finance-page .account-balance .account-name{font-size:13px;font-weight:600}
body[data-design=clarity] main.finance-page .account-balance strong{font-size:15px;letter-spacing:-.02em}
body[data-design=clarity] main.finance-page .budget-line{padding:15px 0;border-color:var(--ux-border)}
body[data-design=clarity] main.finance-page .budget-line h3{font-size:14px;font-weight:650;margin-bottom:12px}
body[data-design=clarity] main.finance-page .budget-metrics{gap:12px}
body[data-design=clarity] main.finance-page .budget-metrics span{font-size:11px;color:var(--ux-muted);margin-bottom:4px}
body[data-design=clarity] main.finance-page .budget-metrics strong{font-size:14px;line-height:1.4}
body[data-design=clarity] main.finance-page .finance-analysis .chart-controls{gap:12px;margin:0 0 18px}
body[data-design=clarity] main.finance-page .finance-analysis .chart-controls label{font-size:11px;color:var(--ux-muted);font-weight:650;margin-bottom:6px}
body[data-design=clarity] main.finance-page .finance-analysis canvas:not([hidden]){border:0;border-radius:10px;background:var(--ux-bg);padding:10px}
body[data-design=clarity] main.finance-page .chart-legend-row{font-size:12px;padding:9px 0}

/* Settings are an intentional application page rather than an assembly of dialogs. */
body[data-design=clarity] main.settings-page .settings-layout{grid-template-columns:minmax(170px,220px) minmax(0,720px);gap:26px}
body[data-design=clarity] main.settings-page .settings-navigation{
 padding:8px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:var(--section-radius);gap:4px;box-shadow:var(--section-shadow);
}
body[data-design=clarity] main.settings-page .settings-navigation button.settings-item{border:0;border-radius:10px;padding:13px 14px;min-height:48px;font-size:13px;font-weight:550;color:var(--ux-muted);background:transparent}
body[data-design=clarity] main.settings-page .settings-navigation button.settings-item[aria-current=page]{background:var(--ux-soft);color:var(--ux-green);font-weight:700}
body[data-design=clarity] main.settings-page .settings-navigation button.settings-item:hover{background:var(--ux-soft)}
body[data-design=clarity] main.settings-page .settings-content{border:0;padding:0;min-width:0}
body[data-design=clarity] main.settings-page .settings-content>.card,
body[data-design=clarity] main.settings-page .settings-content .settings-group,
body[data-design=clarity] main.settings-page .settings-content.devices-panel{
 padding:24px;border:1px solid var(--ux-border);background:var(--ux-surface);border-radius:var(--section-radius);box-shadow:var(--section-shadow);margin:0 0 20px;
}
body[data-design=clarity] main.settings-page .settings-content h2{font-size:18px;font-weight:700;margin:0 0 20px}
body[data-design=clarity] main.settings-page .settings-content .settings-group>.settings-row{border-top:1px solid var(--ux-border);border-radius:0;padding:14px 0;margin:0;min-height:54px}
body[data-design=clarity] main.settings-page .settings-content .settings-group>.settings-row:last-child{padding-bottom:0}
body[data-design=clarity] main.settings-page .settings-content .settings-row-status{font-size:12px;margin-top:5px;color:var(--ux-muted)}
body[data-design=clarity] main.settings-page .profile-identity{margin:0 0 18px;padding:16px;background:var(--ux-bg);border-radius:11px}
body[data-design=clarity] main.settings-page .profile-identity dt{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ux-muted);margin-bottom:7px}
body[data-design=clarity] main.settings-page .profile-identity dd{font-size:16px;font-weight:600;margin:0;overflow-wrap:anywhere}
body[data-design=clarity] main.settings-page .settings-grid label{font-size:12px;font-weight:650;color:var(--ux-muted);margin:18px 0 7px}
body[data-design=clarity] main.settings-page .settings-grid select{background:var(--ux-bg);min-height:48px;border-radius:10px}
body[data-design=clarity] main.settings-page .device-group h3{font-family:inherit;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;background:var(--ux-bg);padding:12px;border-radius:9px;color:var(--ux-muted)}
body[data-design=clarity] main.settings-page .device-row{padding:17px 0;gap:14px}
body[data-design=clarity] main.settings-page .device-description>strong{font-size:14px;font-weight:650}
body[data-design=clarity] main.settings-page .device-description p{font-size:12px}
body[data-design=clarity] main.settings-page .family-roster{padding:0;background:transparent;border:0}
body[data-design=clarity] main.settings-page .family-roster>h3{padding:14px;background:var(--ux-bg);border-radius:9px;margin:20px 0 4px}
body[data-design=clarity] main.settings-page .personal-import-sources li{padding:18px 0}
body[data-design=clarity] main.settings-page .personal-import-status-card{padding:20px 24px}
body[data-design=clarity] main.settings-page .personal-import-status-card p{margin-bottom:0}

/* Matching form treatment; no field names, ordering, validations or submit actions change. */
body[data-design=clarity] dialog.record-editor,
body[data-design=clarity] dialog.device-revoke-dialog{
 padding:26px;border-radius:20px;border:1px solid var(--ux-border);box-shadow:0 24px 80px rgb(0 0 0 / 18%);
}
body[data-design=clarity] dialog.record-editor .dialog-head,
body[data-design=clarity] dialog.device-revoke-dialog .dialog-head{border-bottom:1px solid var(--ux-border);padding-bottom:18px;margin-bottom:20px}
body[data-design=clarity] dialog.record-editor .dialog-head h2,
body[data-design=clarity] dialog.device-revoke-dialog .dialog-head h2{font:700 23px/1.25 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.03em}
body[data-design=clarity] dialog.record-editor label{font-size:12px;font-weight:650;color:var(--ux-muted);margin:16px 0 7px}
body[data-design=clarity] dialog.record-editor :is(input,select,textarea){min-height:48px;border-radius:10px;background:var(--ux-bg);font-size:15px}
body[data-design=clarity] dialog.record-editor textarea{min-height:200px;line-height:1.7}
body[data-design=clarity] dialog.record-editor button[type=submit]{min-height:48px;border-radius:11px}

@media(min-width:1100px){
 body[data-design=clarity] main.calendar-page .calendar-layout:not(.calendar-day-layout){grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}
 body[data-design=clarity] main.finance-page .finance-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr)}
}
@media(min-width:760px) and (max-width:1099px){
 body[data-design=clarity] main.finance-page .finance-grid{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity] main.finance-page .finance-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 body[data-design=clarity] main.calendar-page .calendar-layout{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity] main.settings-page .settings-layout{grid-template-columns:170px minmax(0,1fr);gap:18px}
}
@media(max-width:759px){
 body[data-design=clarity] main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) .intro{margin-bottom:22px;gap:14px;align-items:flex-start}
 body[data-design=clarity] main.tasks-page .task-filters{padding:16px;gap:14px;grid-template-columns:minmax(0,1fr);margin-bottom:18px}
 body[data-design=clarity] main.tasks-page .task-group{padding:0 16px 3px}
 body[data-design=clarity] main.tasks-page .task-group-head{padding:17px 0 13px}
 body[data-design=clarity] main.tasks-page .task-row{min-height:64px}
 body[data-design=clarity] main.calendar-page .calendar-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 body[data-design=clarity] main.calendar-page .calendar-layout .card{padding:18px}
 body[data-design=clarity] main.calendar-page .calendar-toolbar h2{font-size:16px}
 body[data-design=clarity] main.calendar-page .calendar-date,body[data-design=clarity] main.calendar-page .calendar-offset{min-height:46px;border-radius:8px}
 body[data-design=clarity] main.calendar-page .calendar-grid{gap:3px}
 body[data-design=clarity] main.calendar-page .calendar-modes{display:grid;width:100%;margin-bottom:18px}
 body[data-design=clarity] main.calendar-page .calendar-agenda-head{gap:12px}
 body[data-design=clarity] main.calendar-page .calendar-agenda-date{font-size:16px}
 body[data-design=clarity] main.notes-page .notes-library{grid-template-columns:minmax(0,1fr);gap:16px}
 body[data-design=clarity] main.notes-page .notes-library .note-card{padding:20px;min-height:190px}
 body[data-design=clarity] main.finance-page .intro{flex-direction:column;align-items:stretch}
 body[data-design=clarity] main.finance-page .finance-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:8px}
 body[data-design=clarity] main.finance-page .finance-toolbar button{font-size:12px;min-height:44px;padding:10px}
 body[data-design=clarity] main.finance-page .finance-toolbar button:first-child{grid-column:1/-1}
 body[data-design=clarity] main.finance-page .finance-navigation{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-bottom:18px}
 body[data-design=clarity] main.finance-page .finance-navigation a{justify-content:center;min-height:44px;font-size:12px;padding:8px}
 body[data-design=clarity] main.finance-page .finance-grid{grid-template-columns:minmax(0,1fr);gap:18px}
 body[data-design=clarity] main.finance-page .finance-details{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
 body[data-design=clarity] main.finance-page .finance-grid .card,body[data-design=clarity] main.finance-page .finance-details .card,body[data-design=clarity] main.finance-page .finance-grid .ledger{padding:20px}
 body[data-design=clarity] main.settings-page .settings-layout{display:block}
 body[data-design=clarity] main.settings-page .settings-navigation{padding:8px;margin-bottom:20px;gap:3px}
 body[data-design=clarity] main.settings-page .settings-content>.card,body[data-design=clarity] main.settings-page .settings-content .settings-group,body[data-design=clarity] main.settings-page .settings-content.devices-panel{padding:20px}
 body[data-design=clarity] main.settings-page .device-row{grid-template-columns:minmax(0,1fr);gap:10px}
 body[data-design=clarity] main.settings-page .device-row button{justify-self:start;width:auto;font-size:12px}
 body[data-design=clarity] dialog.record-editor{padding:20px;border-radius:16px}
}
@media(prefers-reduced-motion:no-preference){
 body[data-design=clarity] main.notes-page .note-card{transition:border-color .15s ease,transform .15s ease}
 body[data-design=clarity] main.notes-page .note-card:hover{border-color:var(--ux-green);transform:translateY(-2px)}
}
/* Override earlier screen-specific editorial font declarations consistently. */
body[data-design=clarity] #root main:is(.tasks-page,.calendar-page,.notes-page,.finance-page,.settings-page) :is(h1,h2,h3){font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body[data-design=clarity] #root main.finance-page .finance-overview h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-size:16px!important;font-weight:650!important;color:inherit}
@media(min-width:1100px){
 body[data-design=clarity] main.finance-page .finance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
 body[data-design=clarity] main.finance-page .finance-activity{grid-column:1/span 2;grid-row:1;min-width:0}
 body[data-design=clarity] main.finance-page .finance-details{display:contents}
 body[data-design=clarity] main.finance-page .finance-details .finance-overview{grid-column:3;grid-row:1}
 body[data-design=clarity] main.finance-page .finance-details .finance-accounts{grid-column:1;grid-row:2}
 body[data-design=clarity] main.finance-page .finance-details .finance-budgets{grid-column:2;grid-row:2}
 body[data-design=clarity] main.finance-page .finance-details .finance-analysis{grid-column:3;grid-row:2}
}

/* Budget entry keeps the usual monthly case short; uncommon options stay closed. */
body[data-design=clarity] dialog.budget-editor{width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;scroll-padding:18px}
body[data-design=clarity] dialog.budget-editor fieldset{min-width:0}
body[data-design=clarity] dialog.budget-editor .budget-value{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px}
body[data-design=clarity] dialog.budget-editor .budget-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body[data-design=clarity] dialog.budget-editor .budget-dates[hidden]{display:none!important}
body[data-design=clarity] dialog.budget-editor .budget-period-summary{padding:14px 16px;margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow-wrap:anywhere}
body[data-design=clarity] dialog.budget-editor .budget-period-summary strong{font-size:14px;color:var(--ink)}
body[data-design=clarity] dialog.budget-editor .budget-period-summary p{margin:5px 0 0;font-size:13px;line-height:1.5}
body[data-design=clarity] dialog.budget-editor .budget-options{margin-top:16px;border-block:1px solid var(--line);padding:0 2px}
body[data-design=clarity] dialog.budget-editor .budget-options>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;color:var(--muted);font-size:13px;font-weight:600}
body[data-design=clarity] dialog.budget-editor .budget-options>summary::-webkit-details-marker{display:none}
body[data-design=clarity] dialog.budget-editor .budget-options>summary::after{content:'+';font-size:18px;font-weight:400}
body[data-design=clarity] dialog.budget-editor .budget-options[open]{padding-bottom:16px}
body[data-design=clarity] dialog.budget-editor .budget-options[open]>summary::after{content:'−'}
body[data-design=clarity] dialog.budget-editor .budget-original-start{overflow-wrap:anywhere}
@media(max-width:420px){
 body[data-design=clarity] dialog.budget-editor{padding:18px}
 body[data-design=clarity] dialog.budget-editor .budget-dates{grid-template-columns:minmax(0,1fr);gap:0}
}

/* public-focus.css */
/* Public ULADIM: a bright, calm product introduction and readable guidance.
   This layer changes presentation only; controls and factual copy remain intact. */
/* Keep the initial HTML placeholder from moving the whole page before JS paints. */
html[data-surface="site"] body.surface-loading > :is(header, main, footer) { visibility:hidden; }
html[data-surface="site"] body.surface-loading::before,
html[data-surface="site"] body.surface-loading::after { position:fixed;left:24px;pointer-events:none; }
html[data-surface="site"] body.surface-loading::before { content:"ULADIM";top:24px;font-size:24px;font-weight:750;letter-spacing:-.04em; }
html[data-surface="site"] body.surface-loading::after { content:"Загрузка…";top:108px;font-size:15px;color:var(--muted); }
body.product-site {
  --public-canvas:#f7f8f4;
  --public-surface:#fff;
  --public-ink:#18342b;
  --public-muted:#53675e;
  --public-rule:#dce5dd;
  --public-green:#125541;
  --public-soft:#eaf1e7;
  --public-shadow:0 20px 60px #183b2410;
  --ux-bg:var(--public-canvas);--ux-surface:var(--public-surface);
  --ux-ink:var(--public-ink);--ux-muted:var(--public-muted);
  --ux-border:var(--public-rule);--ux-green:var(--public-green);--ux-soft:var(--public-soft);
  --bg:var(--public-canvas);--card:var(--public-surface);--ink:var(--public-ink);
  --muted:var(--public-muted);--line:var(--public-rule);--accent:var(--public-green);
  background:var(--public-canvas);color:var(--public-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
@media(prefers-color-scheme:dark){
 body.product-site:not([data-theme=light]){
  --public-canvas:#101d18;--public-surface:#172920;--public-ink:#edf4ee;
  --public-muted:#b1c3b5;--public-rule:#334b3b;--public-green:#abe0bc;
  --public-soft:#233c2c;--public-shadow:none;
 }
}
body.product-site[data-theme=dark]{
 --public-canvas:#101d18;--public-surface:#172920;--public-ink:#edf4ee;
 --public-muted:#b1c3b5;--public-rule:#334b3b;--public-green:#abe0bc;
 --public-soft:#233c2c;--public-shadow:none;
}
body.product-site > header.public-header{
 max-width:1280px;min-height:88px;padding:18px 40px;
 border-bottom:1px solid var(--public-rule);background:var(--public-canvas);
}
body.product-site > header.public-header .brand{font-size:26px;font-weight:800;letter-spacing:-.055em}
body.product-site > header.public-header nav{gap:22px}
body.product-site > header.public-header nav a{font-size:14px;font-weight:550}
body.product-site > header.public-header nav a[href="/account"]{
 border:1px solid var(--public-green);background:var(--public-green);
 color:var(--public-surface);border-radius:100px;padding-inline:23px;
}
body.product-site :is(a.button,button){border-radius:12px;font-weight:650;min-height:48px;padding:12px 20px}
body.product-site :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--public-green);outline-offset:4px}
body.product-site #app.landing{max-width:1280px;padding:42px 40px 72px;min-height:0}
body.product-site.focus-home #app.landing .product-hero{
 position:relative;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.12fr);
 align-items:center;gap:46px;padding:52px 0 70px;margin:0;border:0;
}
body.product-site.focus-home .hero-copy{position:relative;z-index:1;min-width:0}
body.product-site.focus-home .hero-copy h1{
 font:500 clamp(42px,5vw,70px)/1.03 Georgia,"Times New Roman",serif;
 letter-spacing:-.055em;margin:0 0 26px;max-width:10.5em;
}
body.product-site.focus-home .hero-copy h1 span{display:block}
body.product-site.focus-home .hero-description{font-size:18px;line-height:1.65;max-width:26em;margin:0 0 28px}
body.product-site.focus-home .hero-copy .hero-actions{gap:12px;margin:0;align-items:center}
body.product-site.focus-home .hero-copy .hero-actions .button{font-size:15px;min-height:52px;padding-inline:24px}
body.product-site.focus-home .hero-caption{margin-top:14px;font-size:13px}
body.product-site.focus-home .workspace-preview{
 position:relative;transform:none;grid-template-columns:128px minmax(0,1fr);
 border:1px solid var(--public-rule);border-radius:22px;
 background:var(--public-surface);box-shadow:var(--public-shadow);
 overflow:hidden;min-width:0;
}
body.product-site.focus-home .workspace-preview .preview-rail{
 padding:24px 12px;background:var(--public-green);border:0;color:var(--public-surface);gap:7px;
}
body.product-site.focus-home .preview-rail>strong{font-size:17px;color:inherit;letter-spacing:-.04em;margin:0 8px 24px}
body.product-site.focus-home .preview-view{display:flex;align-items:center;gap:8px;min-height:39px;padding:8px;border-radius:8px;font-size:11px;color:inherit}
body.product-site.focus-home .preview-view:first-of-type{background:#ffffff20;color:inherit}
body.product-site.focus-home .preview-view svg{width:17px;height:17px;flex:none}
body.product-site.focus-home .preview-view span{padding:0;color:inherit;background:none}
body.product-site.focus-home .preview-workspace{padding:26px 22px;background:var(--public-canvas)}
body.product-site.focus-home .preview-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:20px}
body.product-site.focus-home .preview-top h2{font:700 25px/1.2 Inter,system-ui,sans-serif;margin:0 0 5px;letter-spacing:-.04em}
body.product-site.focus-home .preview-top p{font-size:11px;color:var(--public-muted);margin:0}
body.product-site.focus-home .preview-label{font-size:9px;letter-spacing:0;padding:4px 8px;background:var(--public-surface);border:1px solid var(--public-rule);border-radius:30px;white-space:normal}
body.product-site.focus-home .preview-tasks{padding:17px;background:var(--public-surface);border:1px solid var(--public-rule);border-radius:12px}
body.product-site.focus-home .preview-task-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.product-site.focus-home .preview-task-heading h3{font-size:14px;margin:0;font-weight:700}
body.product-site.focus-home .preview-task-heading>span{font-size:10px;color:var(--public-muted)}
body.product-site.focus-home .preview-task-list{margin:6px 0 0;padding:0;list-style:none}
body.product-site.focus-home .preview-task{padding:10px 0;font-size:11px;gap:9px;line-height:1.5}
body.product-site.focus-home .preview-task:last-child{border:0;padding-bottom:0}
body.product-site.focus-home .preview-check{border-radius:4px;width:15px;height:15px}
body.product-site.focus-home .preview-event{display:flex;align-items:center;gap:9px;margin:12px 0;padding:12px 14px;border-radius:10px;border:1px solid var(--public-rule);background:var(--public-surface);font-size:10px}
body.product-site.focus-home .preview-event svg{width:16px;height:16px;color:var(--public-green);flex:none}
body.product-site.focus-home .preview-event time{padding:3px 6px;background:var(--public-soft);border-radius:5px;color:var(--public-green)}
body.product-site.focus-home .preview-event strong{font-weight:650}
body.product-site.focus-home .preview-finance{padding:16px;border:0;border-radius:12px;background:var(--public-soft)}
body.product-site.focus-home .preview-finance h3{font-size:13px;font-weight:700;margin:0 0 10px}
body.product-site.focus-home .preview-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:14px}
body.product-site.focus-home .preview-totals>div+div{padding-left:14px;border-left:1px solid var(--public-rule)}
body.product-site.focus-home .preview-totals dt{font-size:10px;color:var(--public-muted)}
body.product-site.focus-home .preview-totals dd{font-size:22px;font-weight:750;letter-spacing:-.04em;margin:3px 0 0;font-variant-numeric:tabular-nums;white-space:nowrap}
body.product-site.focus-home #app.landing>.product-features{
 display:block;border:0;margin:0 0 56px;padding:32px;background:var(--public-surface);border-radius:20px;
}
body.product-site.focus-home .product-features>h2,
body.product-site.focus-home .product-platforms>h2,
body.product-site.focus-home .plan-comparison>h2,
body.product-site.focus-home .product-faq>h2{font:650 clamp(25px,3vw,36px)/1.2 Inter,system-ui,sans-serif;letter-spacing:-.04em;margin:0 0 26px;max-width:none}
body.product-site.focus-home .home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
body.product-site.focus-home .product-features .feature-row{display:block;padding:0;border:0;background:none;border-radius:0}
body.product-site.focus-home .feature-row svg{height:25px;width:25px;padding:9px;box-sizing:content-box;background:var(--public-soft);color:var(--public-green);border-radius:12px;margin-bottom:18px}
body.product-site.focus-home .feature-row h3{font-size:16px;margin:0 0 9px;font-weight:700;line-height:1.3}
body.product-site.focus-home .feature-row p{font-size:14px;line-height:1.65;margin:0;color:var(--public-muted)}
body.product-site.focus-home :is(.product-platforms,.plan-comparison,.product-faq){margin:56px 0}
body.product-site .application-grid{gap:20px;margin-top:22px}
body.product-site .application-grid .card{padding:28px;border:1px solid var(--public-rule);border-radius:16px;background:var(--public-surface)}
body.product-site .application-grid .card h2{font:700 22px/1.25 Inter,system-ui,sans-serif;margin:0 0 12px;letter-spacing:-.03em}
body.product-site .application-grid .card p{font-size:15px;line-height:1.65;margin:0 0 22px;max-width:36em}
body.product-site .application-grid .button{font-size:13px;padding-inline:14px}
body.product-site .plan-comparison>p{max-width:60em;font-size:15px;line-height:1.7;margin-bottom:22px}
body.product-site .table-scroll{border:1px solid var(--public-rule);border-radius:14px;background:var(--public-surface)}
body.product-site table{background:var(--public-surface);font-size:14px}
body.product-site table :is(th,td){padding:18px;border-color:var(--public-rule)}
body.product-site thead th{background:var(--public-soft);font-weight:700}
body.product-site .product-faq details,
body.product-site .import-faq details,
body.product-site .install-guide details{border:1px solid var(--public-rule);border-radius:12px;background:var(--public-surface);padding:0 20px;margin:10px 0}
body.product-site :is(.product-faq,.import-faq,.install-guide) summary{display:flex;justify-content:space-between;gap:20px;min-height:62px;font-size:15px;font-weight:650;padding-block:12px;line-height:1.5;list-style:none}
body.product-site :is(.product-faq,.import-faq,.install-guide) summary::after{content:'+';font-size:23px;font-weight:400;line-height:1;color:var(--public-green);flex:none}
body.product-site :is(.product-faq,.import-faq,.install-guide) details[open]>summary::after{content:'−'}
body.product-site :is(.product-faq,.import-faq,.install-guide) details[open]>p{padding-bottom:6px;margin:0 0 18px;font-size:15px;line-height:1.7;max-width:66ch}
body.product-site #app.landing>.hero-actions:last-child{margin:34px 0 0;padding:28px;border-radius:16px;background:var(--public-soft);gap:12px}
body.product-site #app.product-content{max-width:1040px;padding:52px 40px 80px}
body.product-site .product-content>.eyebrow{font-size:12px;font-weight:650;letter-spacing:.12em;color:var(--public-green);margin-bottom:18px}
body.product-site .product-content>h1{font:550 clamp(34px,4.5vw,54px)/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.045em;margin:0 0 18px;max-width:20ch}
body.product-site .product-content>p{font-size:17px;line-height:1.7;margin:0 0 28px;max-width:65ch}
body.product-site .product-content>.card{padding:28px;border-radius:16px;background:var(--public-surface);border:1px solid var(--public-rule);margin:24px 0}
body.product-site .product-content>.card h2{font-size:21px;font-weight:700}
body.product-site .product-content>.card p{font-size:15px;line-height:1.8}
body.product-site .product-content .guide-navigation{display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:var(--public-surface);border:1px solid var(--public-rule);border-radius:12px;margin:28px 0}
body.product-site .guide-navigation a{border-radius:8px;font-size:14px;padding:10px 14px;min-height:44px;color:var(--public-green)}
body.product-site .guide-navigation a:hover{background:var(--public-soft)}
body.product-site .product-content>.button{margin:8px 10px 20px 0}
body.product-site .product-content .import-faq>.button,
body.product-site .product-content .import-faq>.hero-actions,
body.product-site .product-content .import-faq>.actions{margin-block:24px 16px}
body.product-site .product-content .import-faq>a.button{display:inline-flex;margin-top:24px}
body.product-site .product-content .install-guide,
body.product-site .product-content .import-guide{margin:38px 0}
body.product-site .product-content .import-guide li{padding:20px 4px 20px 8px;line-height:1.7}
body.product-site .product-content .import-guide h3{font-size:17px;font-weight:700;margin-bottom:5px}
body.product-site>.footer,body.product-site>footer:not([hidden]){max-width:1200px;margin:0 auto;padding:28px 16px 36px;border-top:1px solid var(--public-rule);font-size:13px;line-height:2.1}
body.product-site>footer a{display:inline-block;min-height:32px;padding-inline:3px;text-decoration:underline;text-underline-offset:3px}
body:has(main.focus-login)>main.focus-login{box-shadow:0 16px 60px #183b2408}
body main.focus-login .focus-login-story{border-radius:18px}
body main.focus-login .focus-login-links{padding-block:8px}
@media(max-width:1099px){
 body.product-site.focus-home #app.landing .product-hero{gap:26px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
 body.product-site.focus-home .workspace-preview{grid-template-columns:100px minmax(0,1fr)}
 body.product-site.focus-home .preview-rail{padding-inline:8px}
 body.product-site.focus-home .preview-workspace{padding:20px 16px}
 body.product-site.focus-home .preview-totals dd{font-size:19px}
 body.product-site.focus-home .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
}
@media(max-width:759px){
 body.product-site>header.public-header{padding:12px 18px;min-height:72px;gap:10px}
 body.product-site>header.public-header .brand{font-size:24px}
 body.product-site>header.public-header nav{background:var(--public-surface);border-radius:14px;padding:8px}
 body.product-site>header.public-header nav a{min-height:48px;border-radius:8px}
 body.product-site>header.public-header nav a[href="/account"]{margin-top:5px;justify-content:center}
 body.product-site .public-header-controls>a{border-radius:100px;padding-inline:14px;background:var(--public-green);color:var(--public-surface)}
 body.product-site #app.landing{padding:22px 18px 46px}
 body.product-site.focus-home #app.landing .product-hero{grid-template-columns:minmax(0,1fr);gap:32px;padding:24px 0 36px}
 body.product-site.focus-home .hero-copy h1{font-size:clamp(40px,10vw,58px);max-width:12em;margin-bottom:22px}
 body.product-site.focus-home .hero-description{font-size:16px;max-width:30em;margin-bottom:24px}
 body.product-site.focus-home .hero-copy .hero-actions{gap:9px}
 body.product-site.focus-home .hero-copy .hero-actions .button{min-height:48px;font-size:14px;padding-inline:18px;flex:1 1 auto;width:auto}
 body.product-site.focus-home .workspace-preview{grid-template-columns:87px minmax(0,1fr);border-radius:16px}
 body.product-site.focus-home .preview-rail{padding:20px 7px}
 body.product-site.focus-home .preview-rail>strong{font-size:13px;margin:0 2px 22px}
 body.product-site.focus-home .preview-view{font-size:9px;gap:5px;padding:6px 3px;min-height:34px}
 body.product-site.focus-home .preview-view svg{width:14px;height:14px}
 body.product-site.focus-home .preview-workspace{padding:18px 12px}
 body.product-site.focus-home .preview-top{display:block;margin-bottom:15px}
 body.product-site.focus-home .preview-top h2{font-size:22px}
 body.product-site.focus-home .preview-top p{font-size:10px}
 body.product-site.focus-home .preview-label{display:inline-block;margin-top:8px;font-size:9px;padding:3px 6px}
 body.product-site.focus-home .preview-tasks{padding:12px}
 body.product-site.focus-home .preview-task-heading{align-items:flex-start}
 body.product-site.focus-home .preview-task-heading h3{font-size:12px;line-height:1.3}
 body.product-site.focus-home .preview-task-heading>span{font-size:9px;white-space:nowrap}
 body.product-site.focus-home .preview-task{font-size:10px;gap:7px;padding-block:10px}
 body.product-site.focus-home .preview-check{width:14px;height:14px}
 body.product-site.focus-home .preview-event{padding:10px 9px;font-size:9px;gap:5px;flex-wrap:wrap}
 body.product-site.focus-home .preview-event strong{flex-basis:100%;padding-left:21px}
 body.product-site.focus-home .preview-finance{padding:12px}
 body.product-site.focus-home .preview-finance h3{font-size:12px}
 body.product-site.focus-home .preview-totals{gap:7px}
 body.product-site.focus-home .preview-totals>div+div{padding-left:7px}
 body.product-site.focus-home .preview-totals dd{font-size:17px}
 body.product-site.focus-home #app.landing>.product-features{padding:24px 20px;margin-bottom:36px;border-radius:16px}
 body.product-site.focus-home .home-feature-grid{grid-template-columns:minmax(0,1fr);gap:24px}
 body.product-site.focus-home .product-features .feature-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px}
 body.product-site.focus-home .feature-row svg{margin:0;padding:9px;width:24px;height:24px}
 body.product-site.focus-home .feature-row h3{font-size:16px;margin-bottom:6px}
 body.product-site.focus-home .feature-row p{font-size:14px}
 body.product-site.focus-home :is(.product-platforms,.plan-comparison,.product-faq){margin:36px 0}
 body.product-site.focus-home :is(.product-features,.product-platforms,.plan-comparison,.product-faq)>h2{font-size:25px;line-height:1.2;margin-bottom:20px}
 body.product-site .application-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 body.product-site .application-grid .card{padding:22px;border-radius:14px}
 body.product-site .application-grid .card h2{font-size:20px}
 body.product-site .application-grid .button{margin-right:0;display:flex;width:100%;min-height:46px}
 body.product-site :is(.product-faq,.import-faq,.install-guide) details{padding-inline:15px}
 body.product-site :is(.product-faq,.import-faq,.install-guide) summary{font-size:14px;min-height:60px;gap:15px}
 body.product-site #app.landing>.hero-actions:last-child{padding:20px;gap:10px}
 body.product-site #app.landing>.hero-actions:last-child .button{width:100%;margin:0}
 body.product-site #app.product-content{padding:30px 18px 52px}
 body.product-site .product-content>h1{font-size:36px;line-height:1.12;margin-bottom:16px;max-width:20ch}
 body.product-site .product-content>p{font-size:16px;line-height:1.65;margin-bottom:24px}
 body.product-site .product-content>.card{padding:22px;margin:20px 0}
 body.product-site .product-content .guide-navigation{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:6px;margin:24px 0}
 body.product-site .guide-navigation a{padding:10px;font-size:13px}
 body.product-site .product-content .import-guide{margin:30px 0}
 body.product-site .product-content .import-guide ol{padding-left:22px}
 body.product-site>.footer,body.product-site>footer:not([hidden]){padding:24px 18px;font-size:12px}
}
@media(max-width:359px){
 body.product-site.focus-home .workspace-preview{grid-template-columns:72px minmax(0,1fr)}
 body.product-site.focus-home .preview-workspace{padding:15px 9px}
 body.product-site.focus-home .preview-view{font-size:8px;gap:3px}
 body.product-site.focus-home .preview-totals dd{font-size:15px}
 body.product-site.focus-home .hero-copy h1{font-size:38px}
}
/* Explicitly finish the narrow preview as one readable canvas. */
body.product-site.focus-home>header.public-header nav a[href="/account"],
body.product-site>header.public-header .public-header-controls>a{
 background:var(--public-green);color:var(--public-surface);border-color:var(--public-green);
}
body.product-site.focus-home .preview-view svg{color:inherit}
body.product-site.focus-home .hero-copy .hero-description{margin-bottom:24px}
@media(max-width:759px){
 body.product-site.focus-home .workspace-preview{grid-template-columns:minmax(0,1fr)}
 body.product-site.focus-home .workspace-preview .preview-rail{display:none}
 body.product-site.focus-home .preview-workspace{grid-column:1;padding:20px}
 body.product-site.focus-home .preview-top{display:flex}
 body.product-site.focus-home .preview-label{margin-top:0}
 body.product-site.focus-home .preview-task-heading h3{font-size:14px}
 body.product-site.focus-home .preview-task{font-size:12px}
 body.product-site.focus-home .preview-event{flex-wrap:nowrap;font-size:11px;padding:12px}
 body.product-site.focus-home .preview-event strong{flex-basis:auto;padding:0}
 body.product-site.focus-home .preview-finance h3{font-size:13px}
 body.product-site.focus-home .preview-totals dd{font-size:22px}
}
body.product-site .product-content .import-guide>.card{margin-block:16px;padding:26px;border-radius:14px}
body.product-site .product-content .import-guide>.card h2{font:700 20px/1.3 Inter,system-ui,sans-serif;margin-bottom:12px}
body.product-site .product-content .import-guide>.button{margin:12px 10px 0 0}
/* Editorial rhythm from the public reference, with ULADIM's own composition. */
body.product-site{--public-canvas:#f7f7f2;--public-ink:#242d27;--public-muted:#626d63;--public-green:#204d3e;--public-secondary:#a4483c}
body.product-site.focus-home .hero-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--public-muted);margin:0 0 24px}
body.product-site.focus-home .hero-eyebrow::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--public-green)}
body.product-site.focus-home .hero-copy h1{font-size:clamp(42px,4.8vw,66px);line-height:1.08;letter-spacing:-.045em;max-width:11em}
body.product-site.focus-home .hero-copy h1 span+span{color:var(--public-secondary)}
body.product-site.focus-home .hero-copy .hero-description{font-size:16px;line-height:1.8;max-width:31em}
body.product-site.focus-home .hero-platform-note{font-size:12px;line-height:1.6;margin:20px 0 0;color:var(--public-muted)}
body.product-site.focus-home .hero-caption{margin-top:8px;font-size:12px}
body.product-site.focus-home .hero-copy .hero-actions .button{min-height:46px;border-radius:100px;padding:12px 22px;font-size:13px}
body.product-site.focus-home .hero-copy .hero-actions .button.secondary{background:transparent;border:1px solid var(--public-rule);color:var(--public-ink)}
body.product-site.focus-home .workspace-preview{border-radius:16px;box-shadow:0 20px 50px #14231a0b}
body.product-site.focus-home #app.landing>.product-features{border:1px solid var(--public-rule);background:transparent}
body.product-site.focus-home .feature-row svg{background:transparent;color:var(--public-secondary);padding:0;margin-bottom:15px;width:24px;height:24px}
body.product-site.focus-home .product-features>h2{font-size:25px;margin-bottom:30px}
body.product-site.focus-home .application-grid .card{box-shadow:none}
body.product-site .product-content .import-faq>.button{margin-top:30px;margin-bottom:12px}
body.product-site .application-grid .button+.button{margin-inline-start:8px}
body.product-site[data-theme=dark]{--public-canvas:#121a15;--public-ink:#eef1e9;--public-muted:#b4c0b2;--public-green:#b8d6bd;--public-secondary:#e49d8d}
@media(prefers-color-scheme:dark){body.product-site:not([data-theme=light]){--public-canvas:#121a15;--public-ink:#eef1e9;--public-muted:#b4c0b2;--public-green:#b8d6bd;--public-secondary:#e49d8d}}
@media(max-width:759px){
 body.product-site.focus-home .hero-eyebrow{font-size:10px;margin-bottom:20px}
 body.product-site.focus-home .hero-copy h1{font-size:clamp(40px,10.5vw,58px);max-width:12em}
 body.product-site.focus-home .hero-copy .hero-description{font-size:15px;margin-bottom:24px}
 body.product-site.focus-home .hero-platform-note{margin-top:18px}
 body.product-site.focus-home .product-features .feature-row{grid-template-columns:24px minmax(0,1fr);gap:16px}
 body.product-site.focus-home .feature-row svg{padding:0;margin:2px 0 0}
 body.product-site .application-grid .button+.button{margin:10px 0 0}
}
/* Access plans describe the existing free catalog; there is no checkout. */
.access-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-block:24px}
.access-plan-card{min-width:0;overflow-wrap:anywhere;display:flex;flex-direction:column;align-items:flex-start}
.access-plan-card h3{margin:0 0 12px;font:700 22px/1.25 Inter,system-ui,sans-serif;letter-spacing:-.025em}
.access-plan-card>strong{font-size:15px;line-height:1.5}
.access-plan-card>p{font-size:14px;line-height:1.65}
.access-plan-card .access-plan-label{font-size:11px;line-height:1.5;font-weight:650;letter-spacing:.04em;text-transform:uppercase;margin:0 0 14px;color:var(--muted)}
.access-plan-card ul{padding-left:19px;margin-block:12px;flex:1;font-size:13px;line-height:1.65}
.access-plan-card li+li{margin-top:8px}
.access-included-features{padding-inline-start:19px;font-size:13px;line-height:1.7;margin-block:18px 0}
.access-included-features li+li{margin-top:7px}
.access-plan-card .access-plan-availability{font-size:12px;font-weight:650;margin-top:12px;margin-bottom:0}
.access-free-note{font-weight:650;color:var(--accent);border-inline-start:3px solid currentColor;padding-inline-start:12px}
.access-plan-tier{font-size:28px;line-height:1.3;letter-spacing:-.03em}
.access-plan-boundary{font-size:13px;line-height:1.7;color:var(--muted);max-width:70ch}
.access-plan-details{margin-block:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.access-plan-details>summary{min-height:48px;padding-block:14px;cursor:pointer;font-size:14px;font-weight:600}
body.product-site .access-plan-grid .card{margin:0;padding:24px;border:1px solid var(--public-rule);background:var(--public-surface);border-radius:14px;box-shadow:none}
body.product-site .access-plan-label,body.product-site .access-plan-boundary{color:var(--public-muted)}
body.product-site .access-free-note{color:var(--public-green)}
body.product-site .access-plan-details{border-color:var(--public-rule)}
.settings-content .access-plan-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:12px;margin-block:16px}
.settings-content .access-plan-card h3{font-size:16px!important;line-height:1.4!important}
.settings-content .access-plan-card>p,.settings-content .access-plan-card ul{font-size:13px}
.settings-content .access-plan-status>h2{margin-bottom:18px}
/* Existing permission-checked support and moderation, within the page. */
.support-ticket-link{display:block;width:100%;text-align:start;min-height:44px;margin-block:8px}
.support-message{min-width:0;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:12px;padding:16px;margin-block:12px;background:var(--card)}
.support-message[data-staff=true]{border-inline-start:3px solid var(--accent)}
.support-message>p{white-space:pre-wrap;font-size:14px;line-height:1.7;margin-bottom:0}
.support-message>strong{font-size:12px;color:var(--muted)}
.support-back{margin-bottom:12px}
body[data-control=true] .control-queue-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:24px}
body[data-control=true] .control-queue-filters label{display:block;margin-bottom:8px}
body[data-control=true] .control-queue-filters select{width:100%;min-height:48px}
body[data-control=true] .control-ticket{margin-block:16px}
body[data-control=true] .control-ticket-meta{font-size:12px;color:var(--muted);margin-bottom:8px}
body[data-control=true] .control-triage,body[data-control=true] .control-moderation{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
body[data-control=true] .control-moderation .notice[hidden]{display:none}
body[data-control=true] .control-no-holds{padding-inline-start:12px;border-inline-start:3px solid var(--accent)}
@media(max-width:759px){
 .access-plan-grid{grid-template-columns:minmax(0,1fr)}
 .access-plan-card h3{font-size:21px}
 body[data-control=true] .control-queue-filters{grid-template-columns:minmax(0,1fr);gap:12px}
}
/* A short welcome: one entry, a workspace preview, and optional next steps. */
body.product-site > header.public-header nav a.public-signin{
 border:1px solid var(--public-green);border-radius:100px;padding-inline:20px;
 background:var(--public-green);color:var(--public-surface);
}
body.product-site.focus-home #app.landing{padding-top:20px;padding-bottom:40px}
body.product-site.focus-home #app.landing .product-hero{padding:46px 0 52px;gap:52px}
body.product-site.focus-home .hero-copy h1{font-size:clamp(48px,5.4vw,74px);max-width:10em}
body.product-site.focus-home .hero-copy .hero-description{max-width:28em;font-size:17px;line-height:1.75;margin-bottom:28px}
body.product-site.focus-home .hero-copy .hero-actions .button{font-size:15px;min-height:50px;padding-inline:26px}
body.product-site.focus-home .hero-copy .hero-caption{font-size:13px;line-height:1.6;margin:16px 0 0;color:var(--public-muted)}
body.product-site.focus-home .welcome-overview{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;
 border-top:1px solid var(--public-rule);border-bottom:1px solid var(--public-rule);padding:26px 0;
}
body.product-site.focus-home .welcome-capability{display:flex;align-items:flex-start;gap:14px;min-width:0}
body.product-site.focus-home .welcome-capability>svg{width:23px;height:23px;flex:none;margin-top:3px;color:var(--public-secondary)}
body.product-site.focus-home .welcome-capability h2{font:650 16px/1.5 Inter,system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 4px}
body.product-site.focus-home .welcome-capability p{font-size:13px;line-height:1.7;margin:0;color:var(--public-muted)}
body.product-site.focus-home .welcome-resources{display:flex;flex-wrap:wrap;gap:8px 26px;margin:24px 0 0}
body.product-site.focus-home .welcome-resources a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--public-muted);text-decoration:none;text-underline-offset:4px}
body.product-site.focus-home .welcome-resources a:hover{text-decoration:underline;color:var(--public-green)}
/* Keep the language picker and entry controls on one stable touch-sized row. */
body.product-site>header.public-header .public-header-controls{flex:none}
body.product-site>header.public-header .public-header-controls>:is(a,button){white-space:nowrap;flex:none;width:auto}
body.product-site>header.public-header .global-language{flex:0 0 128px;min-width:0;margin:0}
body.product-site>header.public-header .global-language select{width:100%;min-width:0;margin:0;min-height:44px}
body.product-site>header.public-header .global-language-code{display:none}
@media(max-width:759px){
 body.product-site>header.public-header{gap:4px;padding-inline:8px}
 body.product-site>header.public-header .brand{font-size:20px;flex:none}
 body.product-site>header.public-header .public-header-controls{gap:4px}
 body.product-site>header.public-header .public-header-controls>a{display:none}
 body.product-site>header.public-header .public-header-controls>:is(a,button){min-width:44px;min-height:44px;padding:8px 6px;font-size:12px;line-height:1.5}
 body.product-site>header.public-header .public-menu-toggle::after{display:none}
 body.product-site>header.public-header .global-language{position:relative;display:flex;align-items:center;justify-content:center;flex-basis:46px;min-height:46px;border:1px solid var(--public-rule);border-radius:10px;color:var(--public-ink)}
 body.product-site>header.public-header .global-language-code{display:block;padding-inline-end:10px;font-size:12px;font-weight:600;line-height:1.5;pointer-events:none}
 body.product-site>header.public-header .global-language::after{content:"";position:absolute;right:7px;top:16px;width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
 body.product-site>header.public-header .global-language select{position:absolute;inset:0;height:100%;padding:0;font-size:12px;opacity:0}
 body.product-site>header.public-header .global-language:focus-within{outline:3px solid var(--public-green);outline-offset:3px}
}
body.product-site :is(a.button,button){transition:background-color 160ms ease,color 160ms ease,box-shadow 160ms ease,transform 160ms ease}
@media(hover:hover){body.product-site a.button:hover{transform:translateY(-1px);box-shadow:0 5px 16px #15231b10}}
@media(prefers-reduced-motion:no-preference){
 body.product-site.focus-home .product-hero{animation:welcome-arrive 280ms ease-out both}
 @keyframes welcome-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
@media(max-width:1099px){
 body.product-site.focus-home #app.landing .product-hero{gap:28px}
 body.product-site.focus-home .hero-copy h1{font-size:clamp(44px,5.7vw,62px)}
 body.product-site.focus-home .welcome-overview{gap:20px}
}
@media(max-width:759px){
 body.product-site.focus-home #app.landing{padding-top:10px;padding-bottom:24px}
 body.product-site.focus-home #app.landing .product-hero{padding:28px 0 30px;gap:30px}
 body.product-site.focus-home .hero-eyebrow{font-size:9px;letter-spacing:.08em;margin-bottom:18px}
 body.product-site.focus-home .hero-copy h1{font-size:clamp(44px,12vw,60px);margin-bottom:18px}
 body.product-site.focus-home .hero-copy .hero-description{font-size:16px;line-height:1.7;margin-bottom:24px;max-width:30em}
 body.product-site.focus-home .hero-copy .hero-actions .button{flex:none;width:auto;min-height:50px;padding-inline:24px}
 body.product-site.focus-home .hero-copy .hero-caption{font-size:12px;margin-top:13px}
 body.product-site.focus-home .workspace-preview{max-width:540px;width:100%;justify-self:center}
 body.product-site.focus-home .welcome-overview{grid-template-columns:minmax(0,1fr);gap:21px;padding:24px 0}
 body.product-site.focus-home .welcome-capability h2{font-size:15px}
 body.product-site.focus-home .welcome-capability p{font-size:13px}
 body.product-site.focus-home .welcome-resources{gap:4px 22px;margin-top:18px}
 body.product-site.focus-home .welcome-resources a{font-size:12px}
 body.product-site>header.public-header nav a.public-signin{margin-top:5px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){body.product-site :is(a.button,button){transition:none}}
/* Keep the hidden tablet rail from leaving an empty fixed-width grid track. */
@media(max-width:1099px){
 body.product-site.focus-home .workspace-preview{grid-template-columns:minmax(0,1fr)}
 body.product-site.focus-home .workspace-preview .preview-rail{display:none}
 body.product-site.focus-home .preview-workspace{grid-column:1}
}
@media(max-width:759px){
 body.product-site.focus-home .hero-copy .hero-actions{display:flex;max-width:none}
 body.product-site.focus-home .hero-copy .hero-actions .button{white-space:nowrap}
}

/* The public tour is a local example of the workspace, with its own theme. */
body.product-site > footer {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
body.product-site > footer .global-language {display:flex;align-items:center;margin:0;margin-inline-start:auto}
body.product-site > footer .global-language-code {display:none}
body.product-site > footer .global-language select {width:auto;min-width:120px;max-width:100%;margin:0;min-height:44px}
body.product-site > header.public-header {min-height:74px}
body.product-site > header.public-header nav a.public-signin {padding-inline:19px}
body.product-site.focus-home #app.landing .product-hero {
 grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
 gap:clamp(28px,5vw,68px);padding-block:52px 56px;
}
body.product-site.focus-home .hero-copy h1 {font-size:clamp(50px,6.1vw,89px);line-height:.98;letter-spacing:-.061em}
body.product-site.focus-home .hero-copy h1 span+span {color:var(--public-green)}
body.product-site.focus-home .hero-copy .hero-description {font-size:clamp(16px,1.5vw,19px);line-height:1.55;max-width:32ch}
body.product-site.focus-home .hero-copy .hero-caption {margin-block:12px 0}
body.product-site.focus-home .hero-entry {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
body.product-site.focus-home .hero-entry .hero-actions {display:flex;margin:0}
body.product-site.focus-home .hero-entry > a {background:transparent;color:var(--public-ink);padding-inline:12px;border:1px solid var(--public-rule);min-height:44px}
body.product-site .hero-platforms {display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;padding:0;list-style:none;color:var(--public-muted);font-size:12px}
body.product-site .hero-platforms li {display:flex;align-items:center;gap:6px}
body.product-site .hero-platforms svg {height:17px;width:17px;flex:none;color:var(--public-green)}
body.product-site .hero-platforms a {color:inherit;text-underline-offset:3px}
body.product-site .tour-stage {
 position:relative;min-width:0;padding:24px;
 border:1px solid var(--public-rule);border-radius:29px;
 background:
  radial-gradient(ellipse at 92% 9%,color-mix(in srgb,var(--public-green) 28%,transparent),transparent 58%),
  radial-gradient(ellipse at 9% 96%,color-mix(in srgb,#bba579 23%,transparent),transparent 60%),
  var(--public-soft);
}
body.product-site .workspace-preview.product-tour {
 --tour-bg:#f3f6ef;--tour-window:#fcfdf9;--tour-ink:#183129;--tour-muted:#526358;
 --tour-line:#d7e1d6;--tour-tint:#e5efdf;--tour-accent:#155b43;--tour-note:#f6eee0;
 --tour-warm:#70522e;--tour-shadow:0 6px 10px #173a2314,0 24px 44px #173a2324;
 display:block;position:relative;transform:none;width:100%;min-width:0;max-width:none;
 background:var(--tour-window);border:1px solid var(--tour-line);border-radius:19px;
 color:var(--tour-ink);box-shadow:var(--tour-shadow);overflow:hidden;
 scroll-margin-block-start:18px;color-scheme:light;
}
body.product-site .workspace-preview.product-tour[data-demo-theme=dark] {
 --tour-bg:#16241e;--tour-window:#1c3025;--tour-ink:#f0f7ef;--tour-muted:#c0d0c4;
 --tour-line:#3b5547;--tour-tint:#263f32;--tour-accent:#aee2bd;--tour-note:#3b3426;
 --tour-warm:#f1d4a9;--tour-shadow:0 8px 18px #04110951,0 22px 50px #04110940;
 color-scheme:dark;
}
body.product-site .product-tour .tour-top {
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:10px 12px;border-bottom:1px solid var(--tour-line);
}
body.product-site .product-tour .tour-demo-label {
 font-size:12px;font-weight:650;color:var(--tour-muted);overflow-wrap:anywhere;
}
body.product-site .product-tour .tour-modes {
 display:flex;align-items:center;gap:2px;min-width:0;padding:3px;background:var(--tour-bg);
 border:1px solid var(--tour-line);border-radius:10px;
}
body.product-site .product-tour .tour-modes button {
 min-height:36px;border:0;border-radius:7px;background:transparent;
 color:var(--tour-muted);font-family:inherit;font-size:11px;font-weight:650;line-height:1.2;padding:5px 8px;
}
body.product-site .product-tour .tour-modes button[aria-pressed=true] {
 background:var(--tour-tint);color:var(--tour-accent);
}
body.product-site .workspace-preview.product-tour .tour-tabs {
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;
 background:var(--tour-window);color:var(--tour-ink);padding:5px 6px;margin:0;
 border:0;border-bottom:1px solid var(--tour-line);
}
body.product-site .product-tour .tour-tabs .preview-view {
 display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;
 min-width:0;min-height:48px;width:100%;padding:5px 2px;text-align:center;line-height:1.12;
 border:1px solid transparent;border-radius:8px;font-size:clamp(9px,.86vw,12px);background:none;color:var(--tour-muted);
 overflow-wrap:anywhere;
}
body.product-site .product-tour .tour-tabs .preview-view[aria-selected=true] {
 color:var(--tour-accent);background:var(--tour-tint);border-color:var(--tour-line);
}
body.product-site .product-tour .tour-tabs .preview-view svg {width:16px;height:16px;flex:none}
body.product-site .product-tour .preview-workspace {
 min-width:0;min-height:260px;padding:14px;background:var(--tour-bg);
}
body.product-site .product-tour .tour-panel {min-width:0}
body.product-site .product-tour .tour-panel[hidden] {display:none}
body.product-site .product-tour .tour-panel-title p {
 margin:0;color:var(--tour-muted);font-size:11px;letter-spacing:.01em;
}
body.product-site .product-tour .tour-panel-title h2 {
 color:var(--tour-ink);margin:2px 0 11px;font:600 clamp(22px,2.1vw,31px)/1.1 Georgia,serif;letter-spacing:-.05em;
}
body.product-site .product-tour .tour-cards {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start;
}
body.product-site .product-tour .tour-card {
 min-width:0;padding:11px;background:var(--tour-window);border:1px solid var(--tour-line);border-radius:10px;
}
body.product-site .product-tour .tour-card-agenda {background:var(--tour-tint)}
body.product-site .product-tour .tour-card-note {background:var(--tour-note);color:var(--tour-warm);min-height:110px}
body.product-site .product-tour .tour-card-balance {grid-column:1/-1;display:flex;align-items:baseline;justify-content:space-between;gap:6px 10px;flex-wrap:wrap}
body.product-site .product-tour .tour-card h3 {margin:0;font:700 12px/1.3 Inter,system-ui,sans-serif}
body.product-site .product-tour .tour-muted {font-size:12px;line-height:1.45;color:var(--tour-muted);margin:6px 0 0}
body.product-site .product-tour .tour-card-note .tour-muted {color:inherit}
body.product-site .product-tour :is(.tour-list,.tour-members,.tour-week) {margin:5px 0 0;padding:0;list-style:none}
body.product-site .product-tour .tour-list li {
 display:flex;gap:5px;align-items:baseline;flex-wrap:wrap;padding:6px 0;color:var(--tour-ink);
 font-size:11px;line-height:1.35;
}
body.product-site .product-tour .tour-list li+li {border-top:1px solid var(--tour-line)}
body.product-site .product-tour .tour-list li>span:nth-last-child(2) {flex:1;min-width:52px;overflow-wrap:anywhere}
body.product-site .product-tour .tour-row-detail {color:var(--tour-muted);font-size:10px;font-variant-numeric:tabular-nums}
body.product-site .product-tour .tour-task-list li {padding:0}
body.product-site .product-tour .tour-task-option {
 display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;
 width:100%;min-height:44px;margin:0;padding-block:4px;cursor:pointer;
}
body.product-site .product-tour .tour-task-option input {
 appearance:auto;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--tour-accent);
}
body.product-site .product-tour .tour-task-name {display:block;overflow-wrap:anywhere}
body.product-site .product-tour .tour-task-actions {
 grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;
}
body.product-site .product-tour .tour-task-actions .tour-muted {margin:0}
body.product-site .product-tour .tour-task-reset {
 min-height:44px;max-width:100%;margin:0;padding:5px 9px;border:1px solid var(--tour-line);
 border-radius:8px;background:var(--tour-window);color:var(--tour-accent);
 font:650 12px/1.3 Inter,system-ui,sans-serif;overflow-wrap:anywhere;
}
body.product-site .product-tour :is(.tour-task-option input,.tour-task-reset):focus-visible {
 outline:2px solid var(--tour-accent);outline-offset:2px;
}
body.product-site .product-tour .tour-check {
 align-self:center;width:12px;height:12px;flex:none;border:1px solid var(--tour-line);
 border-radius:3px;display:grid;place-items:center;line-height:1;font-size:9px;color:var(--tour-accent);
}
body.product-site .product-tour .tour-check.is-done {border-color:var(--tour-accent);background:var(--tour-tint)}
body.product-site .product-tour .tour-value {
 display:block;margin-block:5px 0;color:var(--tour-accent);font-weight:760;font-size:clamp(14px,1.4vw,20px);font-variant-numeric:tabular-nums;
}
body.product-site .product-tour progress {
 width:100%;height:8px;accent-color:var(--tour-accent);margin:5px 0 0;
}
body.product-site .product-tour .tour-week {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
body.product-site .product-tour .tour-week li {display:grid;justify-items:center;gap:4px;color:var(--tour-muted);font-size:10px;padding-block:6px;border-radius:6px}
body.product-site .product-tour .tour-week li[aria-current] {background:var(--tour-tint);color:var(--tour-accent)}
body.product-site .product-tour .tour-card-calendar {grid-column:1/-1}
body.product-site .product-tour .tour-members {display:flex;flex-wrap:wrap;gap:6px 10px;font-size:11px}
body.product-site .product-tour .tour-members li {display:flex;align-items:center;gap:5px}
body.product-site :is(.product-tour .tour-avatar,.capability-avatar) {
 display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;
 background:var(--tour-tint,var(--public-soft));color:var(--tour-accent,var(--public-green));font-weight:700;
}
body.product-site.focus-home .welcome-overview {
 grid-template-columns:minmax(0,1.36fr) minmax(0,1fr) minmax(0,1fr);align-items:stretch;
 gap:14px;border:0;padding:0;
}
body.product-site.focus-home .welcome-capability {
 display:grid;align-content:start;justify-items:start;gap:11px;padding:20px;
 border:1px solid var(--public-rule);border-radius:18px;background:var(--public-surface);
}
body.product-site.focus-home .welcome-capability[data-capability=calendar] {background:var(--public-soft)}
body.product-site.focus-home .welcome-capability h2 {font:600 clamp(19px,2vw,27px)/1.2 Georgia,serif;color:var(--public-ink)}
body.product-site.focus-home .welcome-capability .capability-hint {margin-top:7px;color:var(--public-ink);font-weight:600}
body.product-site .capability-preview {display:flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%;margin-top:3px;padding:7px 10px;border:1px solid var(--public-rule);border-radius:8px;color:var(--public-muted);font-size:12px;line-height:1.25}
body.product-site .capability-preview time {color:var(--public-green);font-variant-numeric:tabular-nums;font-weight:700}
body.product-site .capability-preview progress {width:min(120px,100%);height:7px;margin-inline-start:6px;accent-color:var(--public-green)}
body.product-site .capability-preview .capability-avatar+.capability-avatar {margin-inline-start:-3px}
body.product-site .home-scenarios {padding-block:40px 12px}
body.product-site .home-scenarios > h2 {margin:0 0 18px;font:600 clamp(25px,3vw,37px)/1.1 Georgia,serif;letter-spacing:-.045em}
body.product-site .scenario-grid {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px}
body.product-site .home-scenario {
 display:grid;grid-template-columns:30px minmax(0,1fr);align-content:start;gap:6px 10px;padding:18px;
 border-top:1px solid var(--public-rule);
}
body.product-site .home-scenario svg {width:19px;height:19px;margin-top:3px;color:var(--public-green)}
body.product-site .home-scenario h3 {margin:0;font-size:16px;line-height:1.4}
body.product-site .home-scenario p {grid-column:2;margin:0;color:var(--public-muted);font-size:14px;line-height:1.6}
body.product-site .home-scenario a {grid-column:2;justify-self:start;margin:5px 0 0;padding:6px 0;min-height:44px;background:transparent;color:var(--public-green);border:0}
@media(max-width:1099px){
 body.product-site.focus-home #app.landing .product-hero {gap:24px}
 body.product-site .tour-stage {padding:14px}
}
@media(max-width:759px){
 body.product-site > header.public-header {gap:10px;padding-inline:16px}
 body.product-site > header.public-header .public-header-controls>a {display:inline-flex;align-items:center}
 body.product-site.focus-home #app.landing .product-hero {grid-template-columns:minmax(0,1fr);gap:24px;padding-block:25px 26px}
 body.product-site.focus-home .hero-copy h1 {font-size:clamp(43px,11vw,64px);margin-bottom:15px}
 body.product-site.focus-home .hero-copy .hero-description {margin-bottom:17px}
 body.product-site .tour-stage {padding:8px;border-radius:17px}
 body.product-site .workspace-preview.product-tour {border-radius:13px}
 body.product-site .product-tour .preview-workspace {padding:9px}
 body.product-site .product-tour .tour-cards {gap:6px}
 body.product-site .product-tour .tour-card {padding:8px}
 body.product-site .product-tour .tour-tabs .preview-view {min-height:45px}
 body.product-site.focus-home .welcome-overview {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.product-site.focus-home .welcome-capability {padding:13px;gap:8px}
 body.product-site.focus-home .welcome-capability[data-capability=calendar] {grid-column:1/-1}
 body.product-site .home-scenarios {padding-top:29px}
 body.product-site .scenario-grid {grid-template-columns:minmax(0,1fr);gap:6px}
 body.product-site .home-scenario {padding:12px 0}
}
@media(max-width:520px) {
 body.product-site .workspace-preview.product-tour .tour-tabs {grid-template-columns:repeat(3,minmax(0,1fr))}
 body.product-site .product-tour .tour-tabs .preview-view {font-size:11px}
 body.product-site .product-tour .tour-top {padding-inline:8px}
 body.product-site #product-tour-panel-tasks .tour-cards {grid-template-columns:minmax(0,1fr)}
 body.product-site.focus-home .welcome-overview {grid-template-columns:minmax(0,1fr)}
 body.product-site.focus-home .hero-entry > a {padding-inline:10px;font-size:12px}
 body.product-site.focus-home .hero-entry .hero-actions .button {padding-inline:14px;font-size:13px}
}

/* app/import-presentation.css */
/* Presentation only: recognition, validation and persistence stay in import.js. */
.statement-controls{display:grid;gap:8px;min-width:0}
.statement-controls>label{margin-top:8px}
.statement-file-options{border:1px dashed var(--ux-border,var(--line));border-radius:14px;padding:0 16px;margin:12px 0;background:var(--ux-surface,var(--card))}
.statement-file-options summary{min-height:54px;font-weight:650;color:var(--ux-green,var(--accent))}
.statement-file-options input[type=file]{margin:0 0 10px;max-width:100%;font-size:14px}
.statement-advanced{border-top:1px solid var(--ux-border,var(--line));padding-top:4px;margin-block:10px}
.statement-advanced>summary{display:flex;justify-content:space-between;gap:12px;min-height:48px;font-size:14px;font-weight:600;color:var(--ux-muted,var(--muted))}
.statement-advanced>summary::after{content:'+';font-size:20px;font-weight:400;margin-left:auto}
.statement-advanced[open]>summary::after{content:'−'}
.statement-advanced-badge{font-size:11px;font-weight:500;padding:3px 8px;border-radius:6px;background:var(--ux-soft,var(--soft));color:var(--ux-muted,var(--muted))}
.statement-advanced>p{max-width:60ch;margin:2px 0 18px}
.statement-mapping{padding-top:8px;margin-top:16px;border-top:1px solid var(--ux-border,var(--line));min-width:0}
.statement-mapping>select{max-width:100%;text-overflow:ellipsis}
.statement-date-help,.statement-recognition-help{padding:18px 20px;border-radius:14px;background:var(--ux-soft,var(--soft));border:1px solid var(--ux-border,var(--line));margin-block:12px}
.statement-date-help[hidden],.statement-recognition-help[hidden]{display:none!important}
.statement-date-help h3{font-size:16px;margin:0 0 6px;line-height:1.4}
.statement-date-help p,.statement-recognition-help p{font-size:14px;margin:0 0 12px;max-width:60ch}
.statement-date-help label{font-weight:650;margin-top:10px}
.statement-date-help .statement-date-examples{font-size:12px;margin:9px 0 0;font-variant-numeric:tabular-nums}
.statement-dialog .statement-bulk{margin-block:12px;gap:8px;align-items:center}
.statement-dialog .statement-bulk button{font-size:13px;min-height:40px}
.statement-dialog .import-status{margin-block:10px;font-size:13px;color:var(--ux-muted,var(--muted))}
@media(max-width:640px){
 .statement-date-help,.statement-recognition-help{padding:15px}
 .statement-advanced-badge{font-size:10px;white-space:nowrap}
 .statement-date-help select{font-size:14px}
}

.statement-date-help.is-resolved>h3,.statement-date-help.is-resolved>p:not(.statement-date-examples){display:none}
.statement-date-help.is-resolved label{margin-top:0}

.statement-required-fields{display:grid;gap:6px;margin-bottom:10px;min-width:0}
.statement-required-fields select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}
.statement-row-correction{margin-block:16px;padding:20px;border:1px solid var(--ux-border,var(--line));border-radius:16px;background:var(--ux-soft,var(--soft))}
.statement-row-correction[hidden]{display:none!important}
.statement-row-correction h3{margin-top:0}
.statement-row-correction form{max-width:44rem}
.statement-row-correction form>button{margin-right:10px}
@media(max-width:640px){.statement-row-correction{padding:16px}}

/* app/reference.css */
/* Actual B12 video composition, applied to existing ULADIM records and actions. */
body[data-design=clarity][data-reference-layout=b12]{--ux-bg:#f5f6f2;--ux-surface:#fff;--ux-ink:#25242d;--ux-muted:#5b5866;--ux-border:#e9e8ed;--ux-green:#6956bd;--ux-soft:#efebfa;--ux-radius:12px;--bg:var(--ux-bg);--card:var(--ux-surface);--ink:var(--ux-ink);--muted:var(--ux-muted);--line:var(--ux-border);--accent:var(--ux-green);--soft:var(--ux-soft);background:var(--ux-bg);font-size:14px}
body[data-design=clarity][data-reference-layout=b12][data-theme=dark]{--ux-bg:#1e1c27;--ux-surface:#262431;--ux-ink:#f2f0f8;--ux-muted:#c9c5d1;--ux-border:#353240;--ux-green:#b3a1fb;--ux-soft:#373048}
@media(prefers-color-scheme:dark){body[data-design=clarity][data-reference-layout=b12][data-theme=system]{--ux-bg:#1e1c27;--ux-surface:#262431;--ux-ink:#f2f0f8;--ux-muted:#c9c5d1;--ux-border:#353240;--ux-green:#b3a1fb;--ux-soft:#373048}}
body[data-reference-layout=b12][data-palette=forest]{--ux-green:#286550;--ux-soft:#e7f0e9}
body[data-reference-layout=b12][data-palette=ocean]{--ux-green:#38729b;--ux-soft:#e6f0f7}
body[data-reference-layout=b12][data-palette=pistachio]{--ux-green:#617d45;--ux-soft:#edf2e5}
body[data-reference-layout=b12][data-theme=dark][data-palette=forest]{--ux-green:#a8d9bf;--ux-soft:#2c3c35}
body[data-reference-layout=b12][data-theme=dark][data-palette=ocean]{--ux-green:#a8d3ef;--ux-soft:#293745}
body[data-reference-layout=b12][data-theme=dark][data-palette=pistachio]{--ux-green:#c7dfa9;--ux-soft:#343d2d}
body[data-design=clarity][data-reference-layout=b12] #root{min-width:0;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root :is(h1,h2,h3){font-family:inherit;letter-spacing:-.025em;color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root h1{font-size:29px;font-weight:720;line-height:1.25;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root h2{font-size:16px;font-weight:650;line-height:1.4}
body[data-design=clarity][data-reference-layout=b12] #root h3{font-size:14px;line-height:1.5}
body[data-design=clarity][data-reference-layout=b12] #root>header{position:fixed;inset:0 0 auto 248px;height:72px;box-sizing:border-box;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--ux-surface);border-bottom:1px solid var(--ux-border);box-shadow:none;z-index:25;width:auto;max-width:none}
body[data-design=clarity][data-reference-layout=b12] #root>main:not(.login){margin:0 0 0 248px;max-width:none;width:calc(100% - 248px);padding:108px 34px 48px;box-sizing:border-box;min-width:0;min-height:100dvh}
body[data-design=clarity][data-reference-layout=b12] #root>.reference-sidebar{position:fixed;inset:0 auto 0 0;width:248px;height:100dvh;max-height:100dvh;box-sizing:border-box;border:0;border-right:1px solid var(--ux-border);background:var(--ux-surface);padding:28px 18px 12px;display:flex;flex-direction:column;align-items:stretch;gap:0;overflow-y:auto;overflow-x:hidden;z-index:30;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .brand{display:block;padding:0 12px 24px;font-size:25px;font-weight:800;letter-spacing:-.05em;color:var(--ux-ink);text-decoration:none;min-height:auto}
body[data-design=clarity][data-reference-layout=b12] #root .reference-workspace{display:flex;gap:10px;align-items:center;padding:12px 10px;border:1px solid var(--ux-border);border-radius:10px;margin:0 0 22px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-avatar{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--ux-soft);color:var(--ux-green);font-size:14px;font-weight:650}
body[data-design=clarity][data-reference-layout=b12] #root .reference-workspace select.workspace{min-width:0;flex:1;width:100%;max-width:100%;border:0;padding:0 18px 0 0;border-radius:0;min-height:34px;background-color:transparent;color:var(--ux-ink);font-size:13px;font-weight:650;text-overflow:ellipsis}
/* Keep a rounded keyboard cue instead of the platform's square select ring. */
body[data-design=clarity][data-reference-layout=b12] #root select.workspace:focus{outline:none;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root select.workspace:focus-visible{border-radius:6px;outline:2px solid var(--ux-green);outline-offset:3px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-nav-group{display:flex;flex-direction:column;gap:3px;margin-bottom:20px;flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-nav-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:650;color:var(--ux-muted);padding:0 12px;margin:0 0 8px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:start;gap:12px;padding:10px 12px;min-height:44px;border-radius:8px;background:transparent;border:0;color:var(--ux-muted);font-size:13px;font-weight:500;line-height:1.4;max-width:100%;width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item>svg{width:18px;height:18px;flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item[aria-current=page]{background:var(--ux-soft);color:var(--ux-green);font-weight:650}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item:hover{background:var(--ux-soft)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-nav-count{margin-inline-start:auto;background:var(--ux-bg);color:var(--ux-muted);border-radius:20px;min-width:22px;height:22px;display:grid;place-items:center;font-size:11px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar-footer{margin-top:auto;display:grid;gap:8px;padding-top:16px;background:var(--ux-surface)}
body[data-design=clarity][data-reference-layout=b12] #root .workspace-sync{display:block;white-space:normal;max-width:none;font-size:11px;line-height:1.6;color:var(--ux-muted);padding:12px;border:1px solid var(--ux-border);border-radius:8px;background:var(--ux-bg);overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root .workspace-sync[data-status=error]{color:var(--expense)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-help{justify-content:flex-start;font-size:12px;color:var(--ux-muted);padding:6px 12px;text-align:start;background:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-identity{border:0;border-top:1px solid var(--ux-border);border-radius:0;background:transparent;padding:14px 8px 4px;display:flex;gap:10px;align-items:center;justify-content:flex-start;color:var(--ux-ink);font-size:12px;min-width:0;text-align:start}
body[data-design=clarity][data-reference-layout=b12] #root .reference-identity>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-compact-money,.reference-compact-profile,.nav-more){display:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;min-width:0;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:24ch}
body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb svg{width:12px;height:12px;flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb strong{font-weight:550;white-space:nowrap;color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .header-tools{display:flex;align-items:center;flex:none;gap:8px;width:auto}
body[data-design=clarity][data-reference-layout=b12] #root .reference-date{display:flex;align-items:center;gap:8px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:8px;color:var(--ux-muted);min-height:38px;font-size:11px;padding:7px 10px;white-space:nowrap}
body[data-design=clarity][data-reference-layout=b12] #root .reference-date svg{width:16px;height:16px;color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root :is(.header-profile,.header-theme){min-width:40px;min-height:40px;width:40px;padding:0;border:0;background:none;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .header-profile .reference-avatar{width:30px;height:30px;border-radius:50%}
body[data-design=clarity][data-reference-layout=b12] #root .intro{margin:0 0 24px;min-height:auto;padding:0;gap:16px;align-items:center;overflow:visible}
body[data-design=clarity][data-reference-layout=b12] #root .intro::after{display:none;content:none}
body[data-design=clarity][data-reference-layout=b12] #root .eyebrow{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ux-muted);margin:0 0 8px}
body[data-design=clarity][data-reference-layout=b12] #root button{border-radius:8px;font-size:13px;font-weight:550}
body[data-design=clarity][data-reference-layout=b12] #root button:where(:not(.ghost):not(.secondary):not(.text-button):not(.icon):not(.reference-summary-tile):not(.reference-nav-item):not(.reference-identity):not(.reference-transaction):not(.reference-help)){background:var(--ux-green);color:var(--ux-surface)}
body[data-design=clarity][data-reference-layout=b12] #root .card{border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface);box-shadow:none;padding:20px}
body[data-design=clarity][data-reference-layout=b12] #root :is(input,select,textarea){border-radius:7px;border:1px solid var(--ux-border);background:var(--ux-surface);color:var(--ux-ink);font-size:14px;min-height:44px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-summary-tile{display:flex;align-items:flex-start;flex-direction:column;gap:9px;text-align:start;min-width:0;padding:17px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);color:var(--ux-ink);box-shadow:none;min-height:156px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-summary-tile>.ui-icon{width:20px;height:20px;padding:7px;box-sizing:content-box;border-radius:8px;background:var(--ux-soft);color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-summary-tile>strong{font-size:18px;line-height:1.35;font-weight:650;overflow-wrap:anywhere;max-width:100%;text-wrap:pretty}
body[data-design=clarity][data-reference-layout=b12] #root .reference-tile-label{font-size:11px;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-tile-detail{font-size:11px;line-height:1.4;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'tasks finance' 'transactions agenda' 'notes schedule';grid-template-rows:auto;gap:20px;align-items:start;border:0;padding:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side{display:contents}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .card{border:1px solid var(--ux-border);border-radius:12px;padding:20px!important;background:var(--ux-surface);box-shadow:none;min-width:0;align-self:start}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid h2{font-size:16px;margin:0 0 12px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks{grid-area:tasks;grid-row:1!important}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side .today-finance{grid-area:finance;grid-column:2!important;grid-row:1}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-transactions{grid-area:transactions}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side .today-agenda{grid-area:agenda;grid-column:2!important;grid-row:2}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side .today-schedule{grid-area:schedule;grid-column:2!important;grid-row:3}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes{grid-area:notes}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .task-row{padding:12px 0;min-height:52px;gap:8px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .task-actions{padding:0;margin-top:8px;gap:12px;flex-wrap:wrap}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .task-actions button{font-size:11px;min-height:40px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-money-row strong{font-size:17px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-money-row>div{padding:10px 0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-money-row>.total{background:var(--ux-soft);border-radius:8px;padding:10px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction{display:flex;align-items:center;gap:10px;text-align:start;padding:13px 0;border:0;border-bottom:1px solid var(--ux-border);border-radius:0;width:100%;background:none;color:var(--ux-ink);min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction>svg{width:18px;height:18px;padding:8px;box-sizing:content-box;border-radius:8px;color:var(--ux-green);background:var(--ux-soft);flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction-copy{display:grid;gap:4px;flex:1;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction-copy strong{font-size:12px;line-height:1.45;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction-copy small{font-size:10px;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction>strong{font-size:12px;font-weight:600;white-space:nowrap}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction>strong.expense{color:var(--expense)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction>strong.income{color:var(--income)}
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters{padding:18px 20px;margin:0;border:1px solid var(--ux-border);border-bottom:0;border-radius:12px 12px 0 0;background:var(--ux-surface)}
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-list{background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:0 0 12px 12px;padding:0 20px 12px}
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group{background:none;border:0;border-radius:0;padding:20px 0 0;margin:0;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group h2{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .settings-layout{grid-template-columns:210px minmax(0,1fr);gap:28px}
body[data-design=clarity][data-reference-layout=b12] #root .settings-navigation{border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);padding:10px;align-self:start}
body[data-design=clarity][data-reference-layout=b12] #root .settings-navigation .settings-item{border:0;border-radius:7px;min-height:44px;padding:10px;gap:6px;background:none;color:var(--ux-muted);font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .settings-navigation .settings-item[aria-current=page]{background:var(--ux-soft);color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .settings-content{min-width:0;padding:0;background:none;border:0}
body[data-design=clarity][data-reference-layout=b12] #root .settings-content>.card{border-radius:10px;max-width:none}
body[data-design=clarity][data-reference-layout=b12] #root .profile-summary .profile-identity{padding:18px 0;margin:0;border-bottom:1px solid var(--ux-border);display:grid;gap:10px}
body[data-design=clarity][data-reference-layout=b12] #root .profile-summary .account-email{font-size:20px;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root .profile-summary .profile-logout{margin-top:14px;color:var(--expense)}
body[data-design=clarity][data-reference-layout=b12] #root .settings-group{background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:10px;padding:20px;margin-bottom:16px}
body[data-design=clarity][data-reference-layout=b12] #root .settings-group h2{font-size:14px;padding-bottom:10px;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .settings-group .settings-row{border:0;border-bottom:1px solid var(--ux-border);border-radius:0;min-height:60px;padding:12px 0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-grid{gap:20px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-overview{background:var(--ux-surface);color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-overview :is(h2,strong,.small){color:inherit}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-overview .today-money-row>.total{background:var(--ux-soft);color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-overview .finance-summary-period{color:var(--ux-muted)}
body[data-reference-layout=b12] dialog{border-radius:12px;padding:24px;background:var(--ux-surface);color:var(--ux-ink);border:1px solid var(--ux-border);max-height:calc(100dvh - 32px);max-width:calc(100vw - 24px);overflow-y:auto;box-sizing:border-box}
body[data-reference-layout=b12] dialog::backdrop{background:#17132360;backdrop-filter:blur(3px)}
body[data-reference-layout=b12] dialog .dialog-head{padding-bottom:15px;margin-bottom:18px}
body[data-reference-layout=b12] dialog .dialog-head h2{font-size:20px;font-family:inherit}
body[data-reference-layout=b12] #alerts{z-index:100}
@media(min-width:760px) and (max-width:1099px){
 body[data-design=clarity][data-reference-layout=b12] #root>.reference-sidebar{width:200px;padding:24px 12px 12px}
 body[data-design=clarity][data-reference-layout=b12] #root>header{left:200px;padding:0 24px}
 body[data-design=clarity][data-reference-layout=b12] #root>main:not(.login){margin-left:200px;width:calc(100% - 200px);padding:102px 24px 40px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-date{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-summary-tile{min-height:136px}
 body[data-design=clarity][data-reference-layout=b12] #root .settings-layout{grid-template-columns:170px minmax(0,1fr);gap:18px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{gap:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .card{padding:16px!important}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction{flex-wrap:wrap}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction>strong{margin-left:44px}
}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root>header{left:0;height:80px;padding:8px 16px 24px;gap:8px}
 body[data-design=clarity][data-reference-layout=b12] #root>main:not(.login){margin:0;width:100%;padding:104px 16px 100px;min-height:100dvh}
 body[data-design=clarity][data-reference-layout=b12] #root>.reference-sidebar{inset:auto 0 0;width:100%;height:76px;max-height:76px;padding:5px 6px max(5px,env(safe-area-inset-bottom));border:0;border-top:1px solid var(--ux-border);display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible;gap:0}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar :is(.brand,.reference-workspace,.reference-nav-label,.reference-finance-group,.reference-space-group,.reference-help,.reference-identity){display:none}
 body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-nav-group,.reference-sidebar-footer){display:contents}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item{display:flex;flex-direction:column;justify-content:center;text-align:center;align-items:center;gap:5px;min-height:60px;height:60px;padding:5px 1px;min-width:0;font-size:10px;line-height:1.2;border-radius:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item>span:not(.reference-nav-count){max-width:100%;overflow-wrap:normal}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-nav-count{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-compact-money,
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-compact-profile{display:flex}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .workspace-sync{position:fixed;top:55px;left:16px;right:16px;padding:0;border:0;background:none;font-size:10px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb{gap:7px;font-size:11px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb>span{max-width:16ch}
 body[data-design=clarity][data-reference-layout=b12] #root .header-tools{gap:1px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-date{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .intro{margin-bottom:20px;gap:10px;align-items:flex-start}
 body[data-design=clarity][data-reference-layout=b12] #root .intro h1{font-size:26px}
 body[data-design=clarity][data-reference-layout=b12] #root .intro>button{min-height:40px;padding:9px 12px;white-space:nowrap;flex:none;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-summary-tile{padding:13px;min-height:148px;gap:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-summary-tile>strong{font-size:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{display:flex;flex-direction:column;gap:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .card{width:100%;padding:18px!important;box-sizing:border-box}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side{display:contents}
 body[data-design=clarity][data-reference-layout=b12] #root .today-tasks{order:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-finance{order:1}
 body[data-design=clarity][data-reference-layout=b12] #root .today-transactions{order:2}
 body[data-design=clarity][data-reference-layout=b12] #root .today-schedule{order:3}
 body[data-design=clarity][data-reference-layout=b12] #root .today-agenda{order:4}
 body[data-design=clarity][data-reference-layout=b12] #root .today-notes{order:5}
 body[data-design=clarity][data-reference-layout=b12] #root .settings-layout{display:block}
 body[data-design=clarity][data-reference-layout=b12] #root .settings-navigation{width:100%;box-sizing:border-box}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-transaction>strong{font-size:12px;white-space:normal;text-align:end}
 body[data-reference-layout=b12] dialog{padding:20px;max-height:calc(100dvh - 20px);border-radius:12px}
}
@media(prefers-color-scheme:dark){
 body[data-reference-layout=b12][data-theme=system][data-palette=forest]{--ux-green:#a8d9bf;--ux-soft:#2c3c35}
 body[data-reference-layout=b12][data-theme=system][data-palette=ocean]{--ux-green:#a8d3ef;--ux-soft:#293745}
 body[data-reference-layout=b12][data-theme=system][data-palette=pistachio]{--ux-green:#c7dfa9;--ux-soft:#343d2d}
}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-workspace{display:flex;position:fixed;top:4px;left:14px;margin:0;padding:4px 6px;width:calc(100% - 112px);max-width:290px;min-height:38px;border:0;background:var(--ux-surface);box-sizing:border-box}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-workspace .reference-avatar{width:28px;height:28px;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-workspace select.workspace{font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-breadcrumb{visibility:hidden;min-width:0;flex:1}
 body[data-design=clarity][data-reference-layout=b12] #root .header-tools{margin-left:auto}
}
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar-footer .workspace-sync{margin:0;width:100%;box-sizing:border-box}
body[data-design=clarity][data-reference-layout=b12] #root .reference-balance{display:grid;gap:14px;margin:12px 0 14px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-balance>div{display:grid;gap:6px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-balance strong{font-size:27px;letter-spacing:-.035em;font-weight:650}
body[data-design=clarity][data-reference-layout=b12] #root .reference-finance-chart{display:block;width:100%;height:auto;max-height:190px;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-finance-legend{display:flex;gap:10px 18px;flex-wrap:wrap;font-size:11px;line-height:1.5;margin:6px 0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-finance-legend .income{color:var(--income)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-finance-legend .expense{color:var(--expense)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes .note-link{display:flex;align-items:center;gap:14px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes{grid-column:1/-1;grid-row:3}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side .today-schedule{grid-column:1/-1!important;grid-row:4}
@media(min-width:760px){body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-compact-money,body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-compact-profile{display:none}}
@media(max-width:759px){body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar-footer .workspace-sync{width:auto}}
body[data-design=clarity][data-reference-layout=b12] #root .reference-identity{flex-direction:row;width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes .note-link{flex-direction:row;justify-content:flex-start;text-align:start}
@media(max-width:759px){body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-nav-item>span:not(.reference-nav-count){font-size:10px;line-height:1.2;letter-spacing:-.02em}}
/* Independent dashboard columns stay balanced when the owner has few records. */
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{grid-template-areas:'main side' 'notes notes';grid-template-rows:auto;align-items:start}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-primary{grid-area:main;min-width:0;display:grid;gap:20px;align-content:start}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-side{grid-area:side;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-content:start}
body[data-design=clarity][data-reference-layout=b12] #root .today-page :is(.today-primary,.today-side)>.card{grid-area:auto;grid-column:auto!important;grid-row:auto!important}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes{grid-area:notes}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page :is(.today-primary,.today-side){display:contents}
}
body[data-design=clarity][data-reference-layout=b12]{--ux-button:#6956bd;--ux-button-ink:#fff}
body[data-design=clarity][data-reference-layout=b12][data-theme=dark]{--ux-button:#7460c8}
body[data-design=clarity][data-reference-layout=b12][data-palette=forest]{--ux-button:#286550}
body[data-design=clarity][data-reference-layout=b12][data-palette=ocean]{--ux-button:#38729b}
body[data-design=clarity][data-reference-layout=b12][data-palette=pistachio]{--ux-button:#617d45}
body[data-design=clarity][data-reference-layout=b12] #root button:where(:not(.ghost):not(.secondary):not(.text-button):not(.icon):not(.reference-summary-tile):not(.reference-nav-item):not(.reference-identity):not(.reference-transaction):not(.reference-help)){background:var(--ux-button);color:var(--ux-button-ink)}
@media(prefers-color-scheme:dark){body[data-design=clarity][data-reference-layout=b12][data-theme=system][data-palette=violet]{--ux-button:#7460c8}}

/* Finance destinations are screens, with one coherent overview instead of anchor cards. */
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .intro{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;margin-block-end:20px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0;justify-content:flex-end}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-navigation{display:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel{margin:0 0 14px;padding:0;border:0;background:transparent;max-width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel>summary{min-height:40px;display:list-item;align-content:center;width:fit-content;cursor:pointer;color:var(--ux-muted);font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters{padding:16px;margin:4px 0 0;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface);grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:14px}
/* Native iPad date controls must fit the filter track, including padding. */
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters>div{min-width:0;min-inline-size:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters :is(input,select){box-sizing:border-box;min-width:0;min-inline-size:0;width:100%;inline-size:100%;max-width:100%;max-inline-size:100%}
/* Keep WebKit's native option content inside the field; retain its focus outline. */
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters select{contain:paint}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel input[type=date]::-webkit-datetime-edit{min-inline-size:0;padding:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel input[type=date]::-webkit-date-and-time-value{min-inline-size:0;text-align:start}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-overview{padding:0!important;margin:0 0 22px;background:transparent;border:0;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-summary-period{font-size:12px;margin:0 0 12px;color:var(--ux-muted)!important}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric{padding:20px!important;margin:0;display:flex;flex-direction:column;gap:10px;min-width:0;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:12px;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>span{color:var(--ux-muted);font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>strong{display:block;font-size:clamp(18px,1.7vw,26px);font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-.035em;overflow-wrap:anywhere;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric.income>strong{color:var(--income)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric.expense>strong{color:var(--expense)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-content{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:stretch}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-content>.card{grid-column:auto;grid-row:auto;padding:22px!important;min-width:0;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:12px;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-content h2{font-family:inherit;font-size:16px;margin:0 0 16px;letter-spacing:-.025em;line-height:1.4}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis{display:flex;flex-direction:column;gap:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis .chart-controls{margin:0 0 12px;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis :is(label,select){font-size:12px;min-width:0;max-width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis canvas{width:100%;height:auto;aspect-ratio:720/320;min-height:0;max-height:none;background:transparent;border:0;border-radius:0;margin-block:auto 0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-legend{margin:0 0 8px;gap:0;padding:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-legend-row{gap:6px;font-size:12px;padding:9px 0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger{display:flex;flex-direction:column;align-self:stretch}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row{display:grid;grid-template-columns:minmax(0,1fr) auto 32px;gap:8px;padding:14px 0;min-height:68px;border-bottom:1px solid var(--ux-border);align-items:center}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row .text{min-width:0;grid-column:auto;grid-row:auto}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row h3{font-size:12px;line-height:1.45;margin:0;font-weight:550}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row p{font-size:10px;line-height:1.5;white-space:normal;margin:3px 0 0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>strong{font-size:12px;white-space:normal;max-width:14ch;min-width:0;grid-column:auto;grid-row:auto;line-height:1.45}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>button{grid-column:auto;grid-row:auto;width:32px;min-width:32px;height:36px;min-height:36px;padding:6px;flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-ledger-all{margin-top:auto;padding-block-start:16px;justify-content:flex-start;align-self:flex-start;font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=accounts] .finance-content,
body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=budgets] .finance-content,
body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-content,
body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=analysis] .finance-content{grid-template-columns:minmax(0,1fr)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-accounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0!important;background:transparent!important;padding:0!important}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-balance{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:8px;padding:16px;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface);align-items:start;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-account-report{padding:0;border:0;border-radius:0;background:transparent;color:var(--ux-ink);text-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:22px;min-width:0;max-width:100%;white-space:normal;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-name{display:flex;align-items:center;gap:10px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-name>.text{font-size:15px;white-space:normal;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-name>svg{width:28px;height:28px;padding:8px;box-sizing:content-box;border-radius:10px;background:var(--ux-soft);color:var(--ux-green);flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-account-amount{font-size:clamp(20px,2vw,28px);line-height:1.3;letter-spacing:-.03em;min-width:0;overflow-wrap:anywhere;white-space:normal}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-account-link{color:var(--ux-green);font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-report-back{display:flex;gap:6px;align-items:center;padding:0 0 14px;font-size:12px;color:var(--ux-muted);width:fit-content}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-card{padding:22px!important;margin:0;min-width:0;display:flex;flex-direction:column;gap:18px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:12px;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-head>div{min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-head h2{margin:0 0 5px;font-size:16px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-head p{margin:0;font-size:11px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-remaining{display:flex;flex-direction:column;gap:7px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-remaining>strong{font-size:27px;font-weight:650;letter-spacing:-.035em;font-variant-numeric:tabular-nums;line-height:1.3}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-card progress{display:block;width:100%;height:7px;accent-color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-card .budget-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .budget-metrics :is(dt,dd){margin:0;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .budget-metrics dt{font-size:11px;color:var(--ux-muted);margin-bottom:5px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .budget-metrics dd{font-size:14px;font-weight:550;font-variant-numeric:tabular-nums}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-conditions{font-size:11px;line-height:1.6;margin:0;padding-top:14px;border-top:1px solid var(--ux-border)}
@media(max-width:1199px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-content{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>strong{font-size:20px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis canvas{max-height:320px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:760px){body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-import-shortcut{display:none}}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .intro{align-items:flex-start;gap:14px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .intro>div:first-child{flex:1 1 100%}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-toolbar{justify-content:flex-start}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-toolbar>button{font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;padding:2px;margin:0 0 14px;border:0}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-view-tab{min-width:0;min-height:44px;padding:7px 8px;border:1px solid var(--ux-border);border-radius:8px;color:var(--ux-muted);background:var(--ux-surface);font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-view-tab[aria-current=page]{background:var(--ux-soft);border-color:transparent;color:var(--ux-green)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric-grid{gap:10px;grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px;padding:15px 16px!important}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>span{grid-column:1;grid-row:1/-1}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>strong{grid-column:2;font-size:19px;text-align:end}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-content>.card{padding:18px!important}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-accounts{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis :is(.chart-controls,.chart-legend){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-legend-row{display:flex;flex-direction:column;align-items:flex-start;border:0;padding:8px 0}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-legend-row>strong{margin:0;font-size:14px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:479px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:359px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis .chart-controls{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric{display:flex;align-items:flex-start}
}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:6px 0 12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:baseline;min-width:0;font-size:11px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row>span{display:flex;align-items:center;gap:6px;min-width:0;grid-column:1/-1}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row>span>span:last-child{min-width:0;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-swatch{display:inline-block;flex:none;width:9px;height:9px;border-radius:3px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row>strong{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;padding-inline-start:15px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row>small{font-size:10px;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-hint{font-size:11px;line-height:1.65;margin:12px 0 0;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-hint[hidden]{display:none}
@media(max-width:359px){body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-legend{grid-template-columns:minmax(0,1fr)}}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-balance>.finance-account-report{grid-column:1;grid-row:1}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-balance>.icon{grid-column:2;grid-row:1}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>strong{order:0}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row{grid-template-columns:minmax(0,1fr) 32px;gap:4px 10px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>.text{grid-column:1;grid-row:1}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>strong{grid-column:1;grid-row:2;max-width:100%;text-align:start;font-size:14px;line-height:1.45;white-space:normal}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>button{grid-column:2;grid-row:1 / span 2}
}

/* Mobile Today starts with an actionable brief; desktop keeps its four summaries. */
body[data-design=clarity][data-reference-layout=b12] #root .today-page .quick-capture input::placeholder{color:var(--ux-muted);opacity:1}
body[data-design=clarity][data-reference-layout=b12] #root .reference-tile-currencies{display:grid;gap:5px;width:100%;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .summary-currency-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px;width:100%;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .summary-currency-code{color:var(--ux-muted);font-size:10px;font-weight:550;letter-spacing:.025em}
body[data-design=clarity][data-reference-layout=b12] #root .summary-currency-amount{font-size:14px;font-weight:650;text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.5;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-secondary-actions,
body[data-design=clarity][data-reference-layout=b12] #root .today-schedule-more{display:none}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-block-start:18px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger-pagination>p{margin:0;color:var(--ux-muted);font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger-pagination>button{min-height:42px;font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger-pagination>button[hidden]{display:none}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro{margin-bottom:16px;align-items:center}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro>button{font-size:12px;padding:9px 11px;min-height:44px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;gap:3px 10px;padding:12px 14px;border-radius:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile>.ui-icon{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=tasks]>.reference-tile-label{grid-column:1;grid-row:1;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=tasks]>strong{grid-column:2;grid-row:1 / span 2;font-size:25px;font-variant-numeric:tabular-nums;align-self:center;line-height:1.2}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=tasks]>.reference-tile-detail{grid-column:1;grid-row:2;font-size:11px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=expenses]>.reference-tile-label{grid-column:1;grid-row:1;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=expenses]>.reference-tile-detail{grid-column:2;grid-row:1;text-align:end;font-size:11px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=expenses]>.reference-tile-currencies{grid-column:1/-1;grid-row:2;gap:2px;margin-top:5px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .summary-currency-code{font-size:11px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .summary-currency-amount{font-size:16px;line-height:1.5}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile:is([data-summary=event],[data-summary=workspace]){display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .card{padding:16px!important}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks{order:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks>.today-task-secondary{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks .task-row{padding:9px 0;min-height:54px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks .task-row>.text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;line-height:1.5;font-size:13px;min-width:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks .quick-capture input{font-size:16px;min-width:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-schedule{order:1}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>.today-event-secondary{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li{grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:start}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li>button{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;white-space:normal;min-width:0;max-width:100%;text-align:start;font-size:13px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-schedule-more{display:flex;justify-content:flex-start;min-height:40px;padding-inline:0;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-secondary-actions{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0;background:transparent}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-secondary-actions>button{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-height:46px;min-width:0;padding:9px 11px;text-align:start;font-size:12px;line-height:1.4;white-space:normal;border-radius:10px;border:1px solid var(--ux-border);background:var(--ux-surface);color:var(--ux-ink)}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-secondary-actions>button>svg{flex:none;width:17px;height:17px;color:var(--ux-green)}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-agenda{order:3}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes{order:4}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance{order:5}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-transactions{order:6}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-note-text>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;line-height:1.5}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-note-text>.note-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-transaction{display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px 10px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-transaction>svg{grid-column:1;grid-row:1 / span 2}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-transaction>.reference-transaction-copy{grid-column:2;grid-row:1}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-transaction>strong{grid-column:2;grid-row:2;font-size:13px;line-height:1.5;text-align:start;white-space:normal;overflow-wrap:normal;min-width:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-transaction-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.5;white-space:normal}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-balance strong{font-size:16px;line-height:1.5;white-space:normal;overflow-wrap:normal}
}
@media(max-width:759px){
 /* A pending task retry stays visible even when it falls beyond the short preview. */
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks>.today-task-secondary:has(.task-change-status:not([hidden])){display:grid}
}

/* Keep every monetary number whole. Only its currency may start a new line. */
body[data-design=clarity][data-reference-layout=b12] #root .money-display{display:inline-flex;flex-wrap:wrap;align-items:baseline;justify-content:var(--money-align,flex-start);column-gap:.28em;row-gap:0;min-width:0;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}
body[data-design=clarity][data-reference-layout=b12] #root .money-display>.money-number{display:inline-block;flex:0 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal;line-height:inherit;font:inherit;letter-spacing:inherit}
body[data-design=clarity][data-reference-layout=b12] #root .money-display>.money-currency{display:inline-block;flex:0 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:max(11px,.8em);font-weight:550;line-height:inherit}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric{container-type:inline-size}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.money-display{font-size:clamp(15px,6cqi,24px);line-height:1.4}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-content>.card.finance-accounts{padding:0!important}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-balance{container-type:inline-size}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-balance>.finance-account-report{grid-column:1/-1;grid-row:1;width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .account-balance>.icon{grid-column:2;grid-row:1;z-index:1}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-account-report .account-name{padding-inline-end:40px;box-sizing:border-box;width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-account-amount.money-display{font-size:clamp(15px,5.8cqi,24px);line-height:1.4}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>.money-display{max-width:100%;--money-align:flex-end}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-legend{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row>.money-display{grid-column:1/-1}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row>small{grid-column:1/-1;padding-inline-start:15px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-balance{container-type:inline-size}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-balance .money-display{font-size:clamp(15px,6cqi,24px);line-height:1.5}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-card{container-type:inline-size}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-remaining>.money-display{font-size:clamp(16px,6cqi,26px)}
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-budget-card .budget-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
@media(min-width:760px) and (max-width:1199px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric-grid{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;gap:8px 18px}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>span{grid-column:1;grid-row:1/-1}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.money-display{grid-column:2;font-size:20px;--money-align:flex-end}
}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.money-display{--money-align:flex-end}
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>.money-display{--money-align:flex-start}
}
@media(max-width:359px){
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.money-display{--money-align:flex-start}
}

/* Keep the first phone screen focused on doing a task, with financial currencies
   in separate compact rows below it. Desktop composition is unchanged. */
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root main.today-page{display:flex;flex-direction:column;gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page>.intro{order:0;margin:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page>.context-help{order:1;margin:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{display:contents}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page>.reference-summary{order:2;margin:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks{order:3;margin:0}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=tasks]{display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-summary-tile[data-summary=expenses]{padding:12px 14px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .summary-currency-row{min-height:24px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-schedule{order:4}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-secondary-actions{order:5}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-agenda{order:6}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes{order:7}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance{order:8}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-transactions{order:9}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-balance{display:grid;gap:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-balance>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:10px;padding:8px 0;border-bottom:1px solid var(--ux-border)}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-balance .money-display{font-size:17px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .reference-finance-chart{max-height:150px}
}

/* Intensity blends only palette backgrounds toward neutral colors. The maximum
   is the existing palette; text, card surfaces and primary buttons stay fixed. */
body[data-design=clarity][data-reference-layout=b12][data-palette][data-theme][data-appearance-intensity]{--appearance-page-base:var(--palette-bg,#f5f6f2);--appearance-soft-base:var(--palette-soft,#efebfa);--appearance-neutral-page:#f5f5f5;--appearance-neutral-soft:#ededed;--ux-bg:color-mix(in srgb,var(--appearance-page-base) var(--appearance-tint,60%),var(--appearance-neutral-page));--ux-soft:color-mix(in srgb,var(--appearance-soft-base) var(--appearance-tint,60%),var(--appearance-neutral-soft))}
body[data-design=clarity][data-reference-layout=b12][data-palette][data-theme=dark][data-appearance-intensity]{--appearance-page-base:var(--palette-dark-bg,#1e1c27);--appearance-soft-base:var(--palette-dark-soft,#373048);--appearance-neutral-page:#202020;--appearance-neutral-soft:#353535}
@media(prefers-color-scheme:dark){body[data-design=clarity][data-reference-layout=b12][data-palette][data-theme=system][data-appearance-intensity]{--appearance-page-base:var(--palette-dark-bg,#1e1c27);--appearance-soft-base:var(--palette-dark-soft,#373048);--appearance-neutral-page:#202020;--appearance-neutral-soft:#353535}}
body[data-design=clarity][data-reference-layout=b12] #root .appearance-intensity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .appearance-intensity>label{grid-column:1;grid-row:1;margin:0;font-size:13px}
body[data-design=clarity][data-reference-layout=b12] #root .appearance-intensity>output{grid-column:2;grid-row:1;color:var(--ux-muted);font-size:13px;font-variant-numeric:tabular-nums}
body[data-design=clarity][data-reference-layout=b12] #root .appearance-intensity>input[type=range]{grid-column:1/-1;grid-row:2;min-height:44px;min-width:0;width:100%;padding:0;border:0;background:transparent;accent-color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .appearance-intensity-ends{display:flex;justify-content:space-between;gap:12px;grid-column:1/-1;color:var(--ux-muted);font-size:11px}

/* app/reference-workspaces.css */
/* Calendar and notes: the quiet surfaces and violet detail of the B12 reference. */
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page){--workspace-accent:var(--ux-button);--workspace-accent-ink:var(--ux-button-ink)}
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro{align-items:flex-end;gap:24px;margin-bottom:26px;min-height:0;border:0}
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro .eyebrow{font-size:10px;font-weight:650;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--ux-muted);margin:0 0 8px}
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro h1{font-size:30px;font-weight:700;line-height:1.2;letter-spacing:-.035em;margin:0 0 8px}
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro .workspace-description{font-size:13px;line-height:1.5;color:var(--ux-muted);margin:0}
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro>button{flex:none;min-height:40px;border:0;border-radius:7px;padding:10px 16px;background:var(--workspace-accent);color:var(--workspace-accent-ink);font-size:12px;font-weight:600;box-shadow:0 3px 8px #55409112}
body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro>button svg{width:17px;height:17px}

body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);grid-template-areas:'controls agenda' 'month agenda';grid-template-rows:auto 1fr;column-gap:20px;row-gap:0;align-items:stretch;padding:0;border:0;max-width:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.card{border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);padding:22px;box-shadow:none;margin:0;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.calendar-month{grid-area:month;border-block-start:0;border-start-start-radius:0;border-start-end-radius:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.calendar-toolbar{grid-area:controls;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding-block-end:0;border-block-end:0;border-end-start-radius:0;border-end-end-radius:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-period{display:grid;grid-template-columns:auto minmax(min-content,1fr) auto;align-items:center;gap:4px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-period h2{font-size:16px;line-height:1.35;font-weight:600;letter-spacing:-.015em;overflow-wrap:normal;margin:0;padding:0 4px;text-align:center}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-period button{min-height:44px;min-width:44px;width:44px;height:44px;padding:6px;border:0;border-radius:5px;background:transparent;color:var(--ux-muted);box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-period button:hover{background:var(--ux-bg);color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-period button svg{width:16px;height:16px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-shortcuts{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-shortcuts button.calendar-today{min-height:44px;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:var(--ux-green);font-size:12px;font-weight:600;white-space:nowrap;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-shortcuts button.calendar-today:hover{background:var(--ux-bg)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-modes{display:flex;flex-wrap:nowrap;width:auto;max-width:none;gap:2px;padding:3px;margin:0;background:var(--ux-bg);border:0;border-radius:6px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-modes button{flex:none;min-width:0;min-height:32px;padding:6px 10px;border:0;border-radius:4px;background:transparent;color:var(--ux-muted);font-size:11px;font-weight:500;white-space:nowrap;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-modes button[aria-pressed=true]{color:var(--ux-green);background:var(--ux-surface);box-shadow:0 1px 4px #2823330c;font-weight:600}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0 7px;max-width:none;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-grid:empty{display:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-grid .weekday{padding:0 0 13px;font-size:11px;font-weight:400;line-height:1.5;letter-spacing:0;text-transform:none;color:var(--ux-muted);text-align:center}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page :is(.calendar-date,.calendar-offset){position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;min-height:50px;height:50px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--ux-ink);font-size:13px;font-weight:400;line-height:1;gap:0;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-offset{color:var(--ux-muted);opacity:.45;padding-bottom:3px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date:hover{background:var(--ux-bg);box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date.is-today{box-shadow:inset 0 0 0 1px var(--ux-border);color:var(--ux-green);font-weight:650}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date[aria-pressed=true]{background:var(--workspace-accent);color:var(--workspace-accent-ink);font-weight:600;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date-number{display:block}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots{position:absolute;left:0;right:0;bottom:10px;display:flex;align-items:center;justify-content:center;gap:3px;height:4px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots>span{width:4px;height:4px;border-radius:50%;background:var(--event-color,#8d74c8)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots>span[data-visibility=shared]{background:var(--event-color,#cba17c)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date[aria-pressed=true] .calendar-event-dots>span{background:#fff}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-legend{display:flex;flex-wrap:wrap;gap:16px;border-top:1px solid var(--ux-border);padding-top:13px;margin-top:15px;color:var(--ux-muted);font-size:10px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-legend>span{display:flex;align-items:center;gap:6px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-legend>span::before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:#8d74c8}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-legend>span[data-visibility=shared]::before{background:#cba17c}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda{grid-area:agenda;display:flex;flex-direction:column;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda-head{display:block;margin:0 0 8px;padding:0 0 19px;border-bottom:1px solid var(--ux-border)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-weekday{font-size:10px;font-weight:650;line-height:1.5;text-transform:uppercase;letter-spacing:.1em;color:var(--ux-muted);margin-bottom:8px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda-date{display:flex;align-items:baseline;gap:7px;max-width:none;font-size:13px;line-height:1.2;font-weight:400;color:var(--ux-muted);margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda-date .calendar-day-number{font-size:32px;font-weight:550;letter-spacing:-.04em;color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events{margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row{position:relative;display:flex;align-items:center;gap:6px;background:transparent;border:0;border-bottom:1px solid var(--ux-border);border-radius:0;margin:0;padding:14px 0;min-height:64px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row:last-child{border-bottom:0}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row::before{display:none}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row>.text{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:baseline;gap:10px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-time{font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-visibility{grid-column:2;color:var(--ux-muted);font-size:11px;line-height:1.4}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row h3{position:relative;font-size:12px;line-height:1.5;font-weight:600;letter-spacing:0;margin:0;padding-left:12px;color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row h3::before{content:'';position:absolute;top:7px;left:0;width:5px;height:5px;border-radius:50%;background:var(--event-color,#8d74c8)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row[data-visibility=shared] h3::before{background:var(--event-color,#cba17c)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row>button{min-width:30px;width:30px;min-height:36px;padding:6px;color:var(--ux-muted);background:transparent}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row>button svg{width:16px;height:16px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-add-event{align-self:flex-start;justify-content:flex-start;min-height:40px;background:transparent;border:0;padding:8px 0;color:var(--ux-green);font-size:11px;font-weight:500;border-radius:5px;gap:6px;margin:8px 0 14px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-add-event svg{width:15px;height:15px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-picker{margin: auto 0 0;padding:16px 0 0;border-top:1px solid var(--ux-border)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-picker label{font-size:10px;font-weight:500;margin:0 0 6px;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-picker input{width:100%;min-height:38px;padding:7px 10px;background:var(--ux-surface);color:var(--ux-ink);font-size:12px;border:1px solid var(--ux-border);border-radius:5px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .workspace-empty{min-height:160px;padding:22px 0;gap:12px;text-align:left;align-items:flex-start}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .workspace-empty>svg{width:32px;height:32px;padding:7px;border-radius:8px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .workspace-empty p{font-size:12px;line-height:1.65;max-width:25ch}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:'controls' 'agenda';row-gap:20px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-layout>.calendar-toolbar{border:1px solid var(--ux-border);border-radius:9px;padding-block-end:22px}
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-layout .calendar-agenda{min-height:320px}

body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:none;margin:0 0 22px;padding:0 0 17px;border-bottom:1px solid var(--ux-border)}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library-heading{display:flex;align-items:center;gap:9px;flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library-heading h2{font-size:14px;font-weight:600;line-height:1.5;letter-spacing:0;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:1px 6px;border-radius:5px;background:var(--ux-soft);color:var(--ux-green);font-size:10px;line-height:1;font-variant-numeric:tabular-nums}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search{position:relative;width:min(100%,300px);margin-left:auto}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search>input{width:100%;min-height:39px;padding:9px 12px 9px 35px;border:1px solid var(--ux-border);border-radius:6px;background:var(--ux-surface);color:var(--ux-ink);font-size:12px;line-height:1.5}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search>input::placeholder{color:var(--ux-muted);opacity:1}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search>svg{position:absolute;left:11px;top:12px;width:16px;height:16px;color:var(--ux-muted);pointer-events:none}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-resume{min-height:39px;padding:8px 12px;border:1px solid var(--ux-border);border-radius:6px;background:var(--ux-surface);color:var(--ux-green);font-size:11px}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library .note-card{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;min-height:260px;padding:21px 22px 0;border:1px solid var(--ux-border);border-radius:9px;background:var(--ux-surface);box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 19px}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-header>svg{width:31px;height:31px;padding:7px;border-radius:7px;background:var(--ux-soft);color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-visibility{font-size:10px;line-height:1.5;color:var(--ux-muted);font-weight:400}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-content{display:block;flex:1;min-width:0;align-self:stretch;padding-bottom:20px}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-content h2{font-size:16px;line-height:1.5;letter-spacing:-.015em;font-weight:650;margin:0 0 11px;color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-content .note-preview{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.75;font-weight:400;letter-spacing:0;color:var(--ux-muted);margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-footer{display:flex;align-items:center;min-width:0;border-top:1px solid var(--ux-border);margin-top:auto;padding:5px 0}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-footer>button.text-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:43px;padding:9px 0;margin:0;border:0;border-radius:4px;background:transparent;color:var(--ux-green);font-size:11px;font-weight:550;text-align:left}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-footer>button svg{width:15px;height:15px}
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library>.workspace-empty{grid-column:1/-1;min-height:260px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:9px}

@media(min-width:760px) and (max-width:999px){
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout{grid-template-columns:minmax(0,1.5fr) minmax(235px,1fr);column-gap:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-layout{grid-template-columns:minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.card{padding:18px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.calendar-toolbar{flex-direction:column;align-items:stretch;gap:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-layout>.calendar-toolbar{padding-block-end:18px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page :is(.calendar-date,.calendar-offset){min-height:48px;height:48px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-grid{gap:4px 2px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots{bottom:7px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro{display:flex;flex-wrap:wrap;align-items:flex-start;gap:17px;margin-bottom:23px}
 body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro h1{font-size:27px;margin-bottom:7px}
 body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro .eyebrow{font-size:9px;margin-bottom:7px}
 body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro .workspace-description{font-size:12px;max-width:32ch}
 body[data-design=clarity][data-reference-layout=b12] #root :is(.calendar-page,.notes-page) .intro>button{min-height:42px;padding:10px 13px;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .intro{align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .intro h1{margin:0}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .intro :is(.eyebrow,.workspace-description){display:none}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page>.context-help{margin-bottom:14px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:'controls' 'agenda' 'month';grid-template-rows:auto;gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-day-layout{grid-template-areas:'controls' 'agenda'}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.card{padding:18px 16px;border-radius:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>:is(.calendar-month,.calendar-toolbar){border:1px solid var(--ux-border);padding-block:12px;border-radius:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.calendar-toolbar{flex-direction:column;align-items:stretch;gap:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-period h2{font-size:15px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-modes{flex:1 1 auto;display:grid;grid-template-columns:repeat(3,minmax(max-content,1fr));min-width:min-content;gap:2px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-modes button{min-height:44px;font-size:12px;padding:6px 3px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-grid{gap:3px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page :is(.calendar-date,.calendar-offset){min-height:44px;height:44px;font-size:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-grid .weekday{font-size:10px;padding-bottom:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots{bottom:6px;gap:2px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots>span{width:3px;height:3px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-legend{font-size:10px;gap:15px;padding-top:12px;margin-top:13px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-layout>.calendar-agenda{min-height:0;padding-block:14px;scroll-margin-block-start:calc(var(--app-header-height,76px) + var(--mini-top,0px) + 10px)}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda-head{padding-bottom:10px;margin-bottom:4px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda .workspace-empty{min-height:0;padding-block:10px;display:flex;flex-direction:row;align-items:center;gap:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-agenda .workspace-empty p{max-width:none}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-events .event-row h3{font-size:13px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-add-event{font-size:12px;min-height:44px;margin:0 0 6px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-picker{padding-block-start:10px}
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-picker input{min-height:44px;font-size:13px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-toolbar{flex-wrap:wrap;gap:15px;padding-bottom:17px;margin-bottom:18px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search{width:100%;margin:0;order:3}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search>input{min-height:44px;font-size:13px;padding-block:10px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-search>svg{top:14px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-resume{margin-left:auto}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library{grid-template-columns:minmax(0,1fr);gap:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library .note-card{min-height:240px;padding:20px 20px 0}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-content h2{font-size:16px}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-content .note-preview{font-size:13px;line-height:1.75}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-footer>button.text-button{min-height:46px;font-size:12px}
}
@media(prefers-reduced-motion:no-preference){
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card{transition:border-color .15s ease}
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card:hover{border-color:var(--ux-green);transform:none}
}

/* app/reference-account.css */
/* Account and workspaces follow the B12 composition with real account data. */
body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-family-page,.reference-profile-page) .intro{align-items:flex-end;gap:24px;margin-bottom:26px;min-height:0}
body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-family-page,.reference-profile-page) .intro .eyebrow{font-size:10px;font-weight:650;letter-spacing:.12em;line-height:1.4;text-transform:uppercase;margin:0 0 8px;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-family-page,.reference-profile-page) .intro h1{font-size:29px;font-weight:700;line-height:1.25;margin:0 0 8px;letter-spacing:-.035em}
body[data-design=clarity][data-reference-layout=b12] #root .reference-account-description{font-size:13px;line-height:1.5;color:var(--ux-muted);margin:0;max-width:65ch}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-page .settings-layout{display:block}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-page .settings-content{display:block}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-page .settings-navigation{display:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-page .settings-back{display:inline-flex;align-items:center;min-height:44px;gap:8px;margin-bottom:10px}
body[data-design=clarity][data-reference-layout=b12] #root .settings-content>.reference-family-panel{padding:0;border:0;border-radius:0;background:none;box-shadow:none;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;min-width:0;min-height:200px;padding:20px;text-align:start;border:1px solid var(--ux-border);border-radius:11px;background:var(--ux-surface);box-shadow:none;color:var(--ux-ink);font-weight:400;line-height:1.5;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-card[aria-pressed=true]{border-color:var(--ux-green);box-shadow:0 0 0 2px var(--ux-soft)}
body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-card:hover{background:var(--ux-surface);border-color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-bottom:17px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-card .reference-avatar{width:40px;height:40px;border-radius:12px;font-size:18px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-active{font-size:10px;line-height:1.5;background:var(--ux-soft);color:var(--ux-green);border-radius:20px;padding:4px 8px;font-weight:500}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-name{display:block;font-size:14px;font-weight:650;line-height:1.5;margin-bottom:6px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-kind{font-size:12px;color:var(--ux-muted);font-weight:400;line-height:1.5}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-member-count{font-size:11px;color:var(--ux-muted);margin-top:5px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-detail{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--ux-muted);border-top:1px solid var(--ux-border);padding-top:13px;margin-top:auto;width:100%;line-height:1.5}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-detail svg{flex:none;width:15px;height:15px}
body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-create{justify-content:center;align-items:center;text-align:center;border-style:dashed;gap:9px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-create>svg{width:24px;height:24px;padding:10px;box-sizing:content-box;background:var(--ux-soft);color:var(--ux-green);border-radius:12px;margin-bottom:4px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-create>strong{font-size:14px;font-weight:650}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-panel>.family-workspace-actions{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 18px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-panel>.family-workspace-actions>button{font-size:11px;background:none;color:var(--ux-green);padding:6px 0;min-height:36px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-page .intro>.reference-family-invite{min-height:40px;border-radius:7px;padding:10px 16px;background:var(--ux-button,var(--ux-green));color:var(--ux-button-ink,#fff);font-size:12px;line-height:1.4;flex:none;box-shadow:0 3px 8px #55409112}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-invite svg{width:17px;height:17px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-panel>.reference-family-roster{padding:20px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:11px;box-shadow:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-roster>h2{font-size:15px;font-weight:650;margin:0 0 5px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-roster-space{font-size:11px;color:var(--ux-muted);margin:0 0 14px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-member{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--ux-border);border-bottom:0;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-member>.reference-avatar{width:34px;height:34px;border-radius:10px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-member>.reference-avatar svg{width:18px;height:18px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-copy{flex:1;min-width:0;display:grid;gap:3px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-copy>strong{font-size:12px;font-weight:600;overflow-wrap:anywhere;line-height:1.5}
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-copy>span{font-size:10px;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-role{font-size:11px;color:var(--ux-muted);text-align:end;max-width:28%;line-height:1.5}

body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-content>.profile-summary{padding:22px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);box-shadow:none;margin-bottom:16px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-summary>h2{font-size:15px;font-weight:650;margin:0 0 22px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-bottom:22px;margin-bottom:8px;border-bottom:1px solid var(--ux-border)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity>.reference-avatar{width:48px;height:48px;border-radius:50%;font-size:21px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-summary .profile-identity{flex:1;min-width:0;background:none;border:0;padding:0;margin:0;gap:5px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-identity dt{font-size:10px;font-weight:400;text-transform:none;letter-spacing:0;margin:0;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-identity dd.account-email{font-size:14px;font-weight:550;line-height:1.6;margin:0;overflow-wrap:anywhere}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-verified{font-size:10px;color:var(--ux-muted);font-weight:400;display:flex;align-items:center;gap:5px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-verified[data-verified=true]{color:var(--income)}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-verified[data-verified=true]::before{content:'✓';font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-options{display:grid}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-options>.reference-profile-option{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:64px;padding:14px 0;border:0;border-bottom:1px solid var(--ux-border);border-radius:0;background:none;color:var(--ux-ink);font-size:12px;font-weight:500;text-align:start}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-option>svg:first-child{width:19px;height:19px;padding:8px;box-sizing:content-box;flex:none;background:var(--ux-soft);color:var(--ux-green);border-radius:8px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-option>svg:last-child{width:16px;height:16px;margin-inline-start:auto;color:var(--ux-muted);flex:none}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-options>.reference-profile-option:last-child{border-bottom:0;padding-bottom:0}
body[data-design=clarity][data-reference-layout=b12] #root .settings-content>.reference-profile-signout{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;border:1px solid var(--ux-border);border-radius:10px;background:var(--ux-surface);box-shadow:none;margin-bottom:16px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout h2{font-size:12px;font-weight:600;margin:0 0 5px}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout p{font-size:11px;line-height:1.5;color:var(--ux-muted);margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout .profile-logout{color:var(--expense);background:none;border:1px solid var(--ux-border);border-radius:7px;font-size:11px;padding:7px 10px;min-height:36px;flex:none;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout .profile-logout svg{width:16px;height:16px}

@media(max-width:1099px){
 body[data-design=clarity][data-reference-layout=b12] #root .reference-space-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}
}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-family-page,.reference-profile-page) .intro{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:22px}
 body[data-design=clarity][data-reference-layout=b12] #root :is(.reference-family-page,.reference-profile-page) .intro h1{font-size:25px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-space-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-card{min-height:190px;padding:20px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-family-page .settings-layout{display:block}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-layout{display:block}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page[data-settings-detail=false] .settings-navigation{display:flex;flex-direction:row;overflow-x:auto;gap:4px;padding:6px;margin-bottom:18px;scrollbar-width:thin}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-navigation>.settings-item{flex:none;white-space:nowrap;padding:8px 10px;font-size:11px;min-height:38px;gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page[data-settings-detail=false] .settings-content{display:block}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-content>.profile-summary{padding:18px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity{gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-verified{flex:0 0 calc(100% - 60px);margin-inline-start:60px}
 body[data-design=clarity][data-reference-layout=b12] #root .settings-content>.reference-profile-signout{align-items:flex-start;flex-direction:column;padding:18px;gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .reference-member-role{max-width:30%;font-size:10px}
}

/* app/reference-auth.css */
/* The owner's Emergent reference: one quiet form beside a dark visual panel.
   No authentication controls, policies or flow are changed by this layer. */
body:has(main.focus-login > .auth-form-panel){
 --login-background:#f1f2ed;--login-surface:#fff;--login-ink:#202a25;
 --login-muted:#647068;--login-accent:#194e40;--login-line:#d5dcd5;--login-rule:#e6eae4;
 background:var(--login-background);
}
body main.focus-login#app:has(>.auth-form-panel),
body[data-design=clarity] #root main.login.focus-login:has(>.auth-form-panel){
 display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);
 width:min(1056px,100% - 64px);max-width:none;min-height:640px;
 padding:0;gap:0;margin:clamp(32px,7vh,80px) auto;
 border:1px solid var(--login-rule);border-radius:18px;overflow:hidden;
 background:var(--login-surface);color:var(--login-ink);box-shadow:0 24px 80px #15261a0d;
}
body main.focus-login>.auth-form-panel{
 box-sizing:border-box;grid-column:2;grid-row:1;min-width:0;
 display:flex;flex-direction:column;justify-content:center;
 padding:64px clamp(40px,5.5vw,80px);align-self:stretch;
}
body main.focus-login>.focus-login-story{
 --auth-art:url('/app/assets/auth-texture.webp');
 display:flex;position:relative;isolation:isolate;flex-direction:column;
 grid-column:1;grid-row:1;min-width:0;min-height:640px;margin:0;
 padding:34px 34px 38px;border:0;border-radius:0;
 color:#f3f4ec;background-color:#07100d;
 background-image:linear-gradient(180deg,#02090612 25%,#020906bd 100%),var(--auth-art),radial-gradient(ellipse at 5% 10%,#1c382c,#080d0a 75%);
 background-size:cover;background-position:center;overflow:hidden;
}
body main.focus-login .focus-login-story .focus-story-label{
 margin:0 0 auto;color:#f1f3ec;font:700 14px/1.4 Georgia,serif;letter-spacing:.035em;
}
body main.focus-login .focus-login-story h2,
body[data-design=clarity] #root main.focus-login .focus-login-story h2{
 margin:220px 0 18px;font:500 clamp(27px,2.5vw,35px)/1.16 Georgia,serif;
 letter-spacing:-.035em;color:#f3f4ec;
}
body main.focus-login .focus-login-story h2 span{display:block}
body main.focus-login .focus-login-story p{margin:0;font-size:14px;line-height:1.7;color:#cad2ca;max-width:27em}
body main.focus-login .focus-login-story ul{display:none}
body main.focus-login .focus-login-story .focus-story-footnote{margin:30px 0 0;font-size:11px;line-height:1.6;color:#b5c2b8;max-width:24em}
body main.focus-login .auth-form-panel .focus-login-brand{font-size:17px;line-height:1.4;letter-spacing:-.055em;margin:0 0 30px;color:var(--login-ink)}
body main.focus-login .auth-form-panel h1,
body[data-design=clarity] #root main.focus-login .auth-form-panel h1{
 color:var(--login-ink);font:600 34px/1.1 Georgia,serif;letter-spacing:-.045em;
 margin:0 0 28px;
}
body main.focus-login .auth-form-panel form,
body main.focus-login .auth-form-panel form fieldset{display:grid;gap:9px;padding:0;margin:0;border:0;background:transparent;box-shadow:none}
body main.focus-login .auth-form-panel form label{font-size:12px;line-height:1.5;font-weight:600;color:var(--login-ink);margin:0}
body main.focus-login .auth-form-panel input,
body main.focus-login .auth-form-panel select{
 min-height:46px;border:1px solid var(--login-line);border-radius:8px;
 background:var(--login-surface);color:var(--login-ink);font:400 15px/1.4 Inter,system-ui,sans-serif;
 padding:11px 12px;box-sizing:border-box;margin:0 0 8px;
}
body main.focus-login .auth-form-panel form>button[type=submit],
body main.focus-login .auth-form-panel .focus-login-google{
 display:flex;justify-content:center;align-items:center;width:100%;min-height:46px;
 margin:4px 0 0;border-radius:100px;padding:11px 16px;
 font-size:13px;line-height:1.5;font-weight:650;
}
body main.focus-login .auth-form-panel form>button[type=submit]{background:var(--login-accent);color:var(--login-surface);border:1px solid var(--login-accent)}
body main.focus-login .auth-form-panel .focus-login-google{background:transparent;color:var(--login-ink);border:1px solid var(--login-line);margin:0}
body main.focus-login .auth-form-panel .focus-login-divider{margin:15px 0;color:var(--login-muted);font-size:11px}
body main.focus-login .auth-form-panel .focus-login-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 12px;padding:0;margin:12px 0 14px}
body main.focus-login .auth-form-panel .focus-login-google-password{margin:0}
body main.focus-login .auth-form-panel .focus-login-links button{
 min-height:44px;padding:5px 0;margin:0;font-size:12px;line-height:1.5;
 color:var(--login-muted);text-decoration:underline;text-underline-offset:3px;
 border:0;background:transparent;font-weight:500;
}
body main.focus-login .auth-form-panel .focus-login-language{border:0;padding:0;margin:0;gap:14px}
body main.focus-login .auth-form-panel .focus-login-language label{font-size:12px;color:var(--login-muted);font-weight:400}
body main.focus-login .auth-form-panel .focus-login-language select{min-height:40px;font-size:12px;border-color:var(--login-rule);margin:0}
body main.focus-login :is(a,button,input,select):focus-visible{outline:3px solid var(--login-accent);outline-offset:4px}
body main.focus-login:not(:has(>.auth-form-panel)) form>button[type=submit]{border-radius:100px}
/* Registration retains every configured field, including invitation gates. */
body dialog .registration-dialog{padding:36px;max-width:460px;box-sizing:border-box}
body dialog .registration-dialog h2{font:600 32px/1.15 Georgia,serif;letter-spacing:-.04em;margin-bottom:14px}
body dialog .registration-dialog .registration-intro{font-size:14px;line-height:1.7}
body dialog .registration-dialog input{min-height:46px;border-radius:8px}
body dialog .registration-dialog button{min-height:44px;border-radius:100px}
body[data-theme=dark]:has(main.focus-login>.auth-form-panel){
 --login-background:#121916;--login-surface:#1d2721;--login-ink:#edf2eb;
 --login-muted:#b4c0b5;--login-accent:#b4dbc2;--login-line:#536358;--login-rule:#35433a;
}
@media(prefers-color-scheme:dark){
 body[data-theme=system]:has(main.focus-login>.auth-form-panel){
  --login-background:#121916;--login-surface:#1d2721;--login-ink:#edf2eb;
  --login-muted:#b4c0b5;--login-accent:#b4dbc2;--login-line:#536358;--login-rule:#35433a;
 }
}
@media(max-width:999px){
 body main.focus-login#app:has(>.auth-form-panel),
 body[data-design=clarity] #root main.login.focus-login:has(>.auth-form-panel){
  display:block;width:min(460px,100% - 40px);min-height:0;margin:clamp(28px,8vh,90px) auto;border-radius:16px;
 }
 body main.focus-login>.focus-login-story{display:none}
 body main.focus-login>.auth-form-panel{display:flex;padding:40px 36px;min-height:0}
 body main.focus-login .auth-form-panel .focus-login-brand{margin-bottom:30px}
}
@media(max-width:480px){
 body main.focus-login#app:has(>.auth-form-panel),
 body[data-design=clarity] #root main.login.focus-login:has(>.auth-form-panel){width:calc(100% - 32px);margin-top:max(24px,env(safe-area-inset-top))}
 body main.focus-login>.auth-form-panel{padding:32px 24px}
 body main.focus-login .auth-form-panel h1,
 body[data-design=clarity] #root main.focus-login .auth-form-panel h1{font-size:32px;margin-bottom:26px}
 body dialog .registration-dialog{padding:26px 20px}
}

/* app/experience.css */
/* Shared interaction and form treatment across the existing product. */
body[data-design=clarity] {
 --motion-fast:140ms;
 --motion-view:190ms;
 -webkit-tap-highlight-color:transparent;
}
body[data-design=clarity] :is(button,a,input,select,textarea) {
 transition:background-color var(--motion-fast) ease,border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,color var(--motion-fast) ease,transform var(--motion-fast) ease;
}
body[data-design=clarity] dialog::backdrop { background:#17132360;backdrop-filter:none!important;-webkit-backdrop-filter:none!important; }
@media(prefers-reduced-motion:no-preference) {
 body[data-design=clarity] dialog[open] { animation:uladim-dialog-in var(--motion-view) ease-out; }
 body[data-design=clarity] dialog[open]::backdrop { animation:uladim-fade-in var(--motion-fast) ease-out; }
 body[data-design=clarity] dialog[open]:is(.note-editor,.inbox-startup-fullscreen) { animation-name:uladim-fade-in; }
 body[data-design=clarity] .editor-discard-choice:not([hidden]) { animation:uladim-fade-in var(--motion-fast) ease-out; }
}
@keyframes uladim-dialog-in { from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none} }
@keyframes uladim-fade-in { from{opacity:0}to{opacity:1} }
body[data-design=clarity] :is(button,a,input,select,textarea):focus-visible {
 outline:2px solid var(--ux-green);
 outline-offset:3px;
}
body[data-design=clarity] :is(h1,h2,section)[tabindex="-1"]:focus,
body[data-design=clarity] [data-focus-target]:focus { outline:none!important; }
body[data-design=clarity] main.view-enter { animation:uladim-view-in var(--motion-view) ease-out; }
.header-tool-label { display:none; }
@keyframes uladim-view-in { from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)} }
body[data-design=clarity] :is(dialog,.settings-content) form { max-width:100%; }
body[data-design=clarity] :is(dialog,.settings-content) :is(input,select,textarea) {
 min-height:46px;border-radius:11px;
}
body[data-design=clarity] :is(dialog,.settings-content) :is(input,textarea)[aria-invalid=true] { border-color:var(--expense); }
body[data-design=clarity] :is(dialog,.settings-content) label { font-size:13px;font-weight:550;line-height:1.5; }
body[data-design=clarity] .field-error { color:var(--expense);font-size:12px;line-height:1.5;margin:6px 0 0; }
body[data-design=clarity] :is(.record-options,.budget-options,.event-options) {
 border:1px solid var(--ux-border);border-radius:11px;padding:0 14px;margin-top:18px;
}
body[data-design=clarity] :is(.record-options,.budget-options,.event-options)>summary {
 font-size:13px;font-weight:500;color:var(--ux-muted);min-height:46px;
}
body[data-design=clarity] :is(.record-options,.budget-options,.event-options)[open] { padding-bottom:14px; }
body[data-design=clarity] .settings-inline-panel {
 padding:20px;border:1px solid var(--ux-border);border-radius:14px;background:var(--ux-soft);margin:8px 0 20px;box-shadow:none;
}
body[data-design=clarity] .settings-inline-panel h3 { font-size:16px;line-height:1.4;margin:0 0 12px; }
body[data-design=clarity] .settings-inline-panel .inline-cancel { margin-top:8px;color:var(--ux-muted); }
body[data-design=clarity][data-reference-layout=b12] #root .security-panel .settings-group>.settings-row { background:transparent;color:var(--ux-ink); }
body[data-design=clarity][data-reference-layout=b12] #root .security-panel .settings-group>.settings-row:hover { background:var(--ux-soft); }
body[data-design=clarity] .device-row { flex-wrap:wrap; }
body[data-design=clarity] .device-row .device-revoke-inline { flex:1 0 100%;padding:12px 0 8px;min-width:0; }
body[data-design=clarity] .device-revoke-inline form { max-width:440px; }
body[data-design=clarity] .device-revoke-inline form button[type=submit] { width:auto; }
body[data-design=clarity] .device-revoke-inline>button { margin-top:6px; }
body[data-design=clarity] .signout-panel { max-width:580px;padding:28px;border-radius:18px; }
body[data-design=clarity] .signout-panel h2 { font-size:23px;letter-spacing:-.03em; }
body[data-design=clarity] .signout-panel p { font-size:14px;line-height:1.7; }
body[data-design=clarity] .signout-panel .account-email { color:var(--ux-ink);margin:24px 0 16px;overflow-wrap:anywhere; }
body[data-design=clarity] .signout-panel form button { min-width:180px; }
body[data-design=clarity] .signout-panel>button { margin-top:12px; }
body[data-design=clarity] .signout-success { font-size:14px;color:var(--income);margin:0 0 20px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar-footer>.reference-signout {
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:8px 10px;min-height:44px;font-size:12px;color:var(--ux-muted);background:none;
}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-content>.profile-summary {
 padding:28px;border-radius:18px;border-color:var(--ux-border);box-shadow:0 4px 22px #18152404;
}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-summary>h2 { font-size:17px;margin-bottom:24px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity { display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:10px 18px;padding-bottom:28px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity>.reference-avatar { grid-column:1;grid-row:1 / span 2; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity>.profile-identity { grid-column:2;grid-row:1;width:100%;min-width:0; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity>.reference-avatar {
 width:62px;height:62px;font-size:26px;background:var(--ux-soft);color:var(--ux-green);border-radius:20px;
}
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-identity dd.account-email { font-size:17px;line-height:1.5; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .profile-identity dt { font-size:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-verified { grid-column:2;grid-row:2;justify-self:start;max-width:100%;font-size:12px;background:var(--ux-soft);padding:5px 10px;border-radius:20px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-options>.reference-profile-extra { display:none; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-options>.reference-profile-option { font-size:14px;min-height:72px; }
body[data-design=clarity][data-reference-layout=b12] #root .settings-content>.reference-profile-signout { border-radius:16px;padding:22px 26px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout h2 { font-size:14px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout p { font-size:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-signout .profile-logout { min-height:42px;font-size:13px;padding:9px 14px;border-radius:10px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px; }
body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-card { min-height:200px;border-radius:18px;padding:24px; }
body[data-design=clarity][data-reference-layout=b12] #root button.reference-space-card[aria-pressed=true] { border-color:var(--ux-green);box-shadow:0 0 0 1px var(--ux-green);background:var(--ux-soft); }
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-name { font-size:17px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-kind { font-size:13px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-member-count,
body[data-design=clarity][data-reference-layout=b12] #root .reference-space-detail { font-size:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-panel>.reference-family-roster { padding:24px;border-radius:18px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-family-roster>h2 { font-size:17px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-copy>strong { font-size:14px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-copy>span { font-size:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .reference-member-role { font-size:12px;border:1px solid var(--ux-border);border-radius:20px;padding:4px 10px; }
@media(max-width:999px) {
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar-footer>.reference-signout { display:none; }
}
@media(max-width:759px) {
 body[data-design=clarity][data-reference-layout=b12] #root .header-tools :is(.header-theme,.header-profile) { display:flex;flex-direction:column;gap:2px;width:auto;min-width:48px;min-height:46px;padding:3px 5px;border-radius:10px; }
 body[data-design=clarity][data-reference-layout=b12] #root .header-tool-label { display:block;color:var(--ux-muted);font-size:10px;font-weight:500;line-height:1.2;white-space:nowrap;overflow-wrap:normal; }
 body[data-design=clarity][data-reference-layout=b12] #root .header-tools .header-profile { min-width:56px;padding-inline:4px; }
 body[data-design=clarity][data-reference-layout=b12] #root .header-profile>.reference-avatar { width:24px;height:24px;border-radius:9px;font-size:12px; }
 body[data-design=clarity][data-reference-layout=b12] #root .header-theme>.ui-icon { width:22px;height:22px; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-workspace { width:calc(100% - var(--header-controls-width,105px) - 38px); }
 body[data-design=clarity] :is(dialog,.settings-content) :is(input,select,textarea) { font-size:16px; }
 body[data-design=clarity] .signout-panel { padding:22px; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page .settings-content>.profile-summary { padding:22px; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity { grid-template-columns:48px minmax(0,1fr);gap:10px 14px; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-identity>.reference-avatar { width:48px;height:48px;border-radius:16px;font-size:22px; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-verified { flex:initial;margin-inline-start:0; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-page[data-settings-detail] :is(.settings-navigation,.settings-back) { display:none; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-profile-options>.reference-profile-extra { display:flex; }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-space-grid { grid-template-columns:minmax(0,1fr); }
 body[data-design=clarity][data-reference-layout=b12] #root .reference-member-role { max-width:35%;font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
 body[data-design=clarity] *,body.product-site * { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
 body[data-design=clarity] :is(button,a):is(:hover,:active),body[data-design=clarity] dialog[open],body[data-design=clarity] .editor-discard-choice { transform:none!important; }
 body[data-design=clarity] dialog::backdrop { animation:none!important;transition:none!important; }
}

/* Device notification settings use the same quiet, inline account layout. */
body[data-design=clarity] .notification-panel { max-width:760px; }
body[data-design=clarity] .notification-intro { max-width:54ch;color:var(--ux-muted);line-height:1.6; }
body[data-design=clarity] .notification-status { margin-block:24px 18px;padding:14px 16px;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-soft);line-height:1.55;font-weight:550; }
body[data-design=clarity] .notification-status[data-state=enabled] { color:var(--ux-green); }
body[data-design=clarity] .notification-actions { display:flex;flex-wrap:wrap;align-items:center;gap:10px; }
body[data-design=clarity] .notification-actions>button { min-height:44px; }
body[data-design=clarity] .notification-feedback:empty,body[data-design=clarity] .notification-delivery:empty { display:none; }
body[data-design=clarity] .notification-feedback { font-size:14px;line-height:1.6; }
body[data-design=clarity] .notification-delivery { margin-block:24px;padding:18px;border:1px solid var(--ux-border);border-radius:12px; }
body[data-design=clarity] .notification-delivery>h3 { margin:0 0 8px;font-size:14px; }
body[data-design=clarity] .notification-delivery>p { margin:0;line-height:1.6;font-size:14px; }
body[data-design=clarity] .notification-options { margin-block:24px 0;border-block-start:1px solid var(--ux-border);padding-block-start:18px; }
body[data-design=clarity] .notification-options>summary { cursor:pointer;min-height:36px;font-size:14px;font-weight:550; }
body[data-design=clarity] .notification-option-fields { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-block:14px; }
body[data-design=clarity] .notification-option-fields>button { grid-column:1/-1;justify-self:start; }
body[data-design=clarity] .notification-test-help { flex-basis:100%;margin:2px 0 8px; }
body[data-design=clarity] .notification-privacy { padding-block-start:18px;margin-block-start:18px;border-block-start:1px solid var(--ux-border);line-height:1.7; }
@media(max-width:459px) {
 body[data-design=clarity] .notification-actions { align-items:stretch; }
 body[data-design=clarity] .notification-actions>button { flex:1 1 100%; }
 body[data-design=clarity] .notification-option-fields { grid-template-columns:minmax(0,1fr);gap:14px; }
 body[data-design=clarity] .notification-status { padding:12px; }
}

/* Telegram provides visual insets only. The ordinary app owns its layout. */
html[data-telegram-mini=true] {
 --mini-top:max(env(safe-area-inset-top),var(--telegram-top,0px));
 --mini-right:max(env(safe-area-inset-right),var(--telegram-right,0px));
 --mini-bottom:max(env(safe-area-inset-bottom),var(--telegram-bottom,0px));
 --mini-left:max(env(safe-area-inset-left),var(--telegram-left,0px));
}
html[data-telegram-mini=true] .telegram-browser-action {display:grid;justify-items:start;gap:6px;margin-block:8px}
html[data-telegram-mini=true] .telegram-browser-action p {margin:0}
html[data-telegram-mini=true] dialog[open] {
 --mini-dialog-top:calc(var(--mini-top) + 8px);
 --mini-dialog-bottom:calc(var(--mini-bottom) + 8px);
 --mini-dialog-viewport:var(--telegram-visible-height,100dvh);
 --mini-dialog-offset:var(--telegram-viewport-offset-top,0px);
 inset-block-start:calc(var(--mini-dialog-offset) + var(--mini-dialog-top));
 inset-block-end:calc(100% - var(--mini-dialog-offset) - var(--mini-dialog-viewport) + var(--mini-dialog-bottom));
 max-height:min(90dvh,calc(var(--mini-dialog-viewport) - var(--mini-dialog-top) - var(--mini-dialog-bottom)));
}
html[data-telegram-mini=true] .login {margin-block-start:max(24px,var(--mini-top))}
html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root {
 padding-left:var(--mini-left);padding-right:var(--mini-right);
}
html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>header {
 top:var(--mini-top);right:var(--mini-right);
}
html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>header::before {
 content:"";position:absolute;inset:auto 0 100%;height:var(--mini-top);background:inherit;pointer-events:none;
}
html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>main:not(.login) {
 margin-block-start:var(--mini-top);min-height:calc(100dvh - var(--mini-top));
}
@media(max-width:759px) {
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>header {
  left:var(--mini-left);
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>main:not(.login) {
  padding-block-end:calc(100px + var(--mini-bottom));
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>.reference-sidebar {
  inset:auto var(--mini-right) 0 var(--mini-left);width:auto;
  height:calc(76px + var(--mini-bottom));max-height:calc(76px + var(--mini-bottom));
  padding-block-end:calc(5px + var(--mini-bottom));
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .reference-workspace {
  top:calc(4px + var(--mini-top));left:calc(14px + var(--mini-left));
  width:calc(100% - var(--header-controls-width,105px) - 38px - var(--mini-left) - var(--mini-right));
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .reference-sidebar .workspace-sync {
  top:calc(55px + var(--mini-top));left:calc(16px + var(--mini-left));right:calc(16px + var(--mini-right));
 }
 html[data-telegram-keyboard=true] #root>.reference-sidebar {visibility:hidden}
}
@media(max-width:379px) {
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .reference-workspace .reference-avatar {display:none}
}
@media(min-width:760px) {
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root {
  --mini-sidebar-width:200px;--mini-sidebar-top-padding:24px;--mini-main-bottom-padding:40px;
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>header {
  left:calc(var(--mini-sidebar-width) + var(--mini-left));
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>.reference-sidebar {
  left:var(--mini-left);padding-block:calc(var(--mini-sidebar-top-padding) + var(--mini-top)) calc(12px + var(--mini-bottom));
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root>main:not(.login) {
  padding-block-end:calc(var(--mini-main-bottom-padding) + var(--mini-bottom));
 }
}
@media(min-width:1100px) {
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root {
  --mini-sidebar-width:248px;--mini-sidebar-top-padding:28px;--mini-main-bottom-padding:48px;
 }
}

/* app/refinements.css */
/* November 13 recorded feedback: quiet editors, useful reports and bounded lists. */
/* Shared native control boundary: padding belongs to a stable box, not UA date internals. */
.native-date-field { box-sizing:border-box;display:flex;align-items:center;min-width:0;min-inline-size:0;width:100%;max-width:100%;overflow:hidden;padding:0 12px;min-height:48px;border:1px solid var(--ux-border,var(--border));border-radius:10px;background:var(--ux-bg,var(--surface));font-size:16px; }
.native-date-field>input { display:block;flex:1 1 auto;min-width:0!important;min-inline-size:0!important;width:100%!important;inline-size:100%!important;max-width:100%!important;max-inline-size:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;min-height:44px!important;height:44px;color:inherit;appearance:none;-webkit-appearance:none; }
.native-date-field>input::-webkit-datetime-edit { min-width:0;padding:0; }
.native-date-field>input::-webkit-date-and-time-value { min-width:0;text-align:start; }
.native-date-field:focus-within { outline:3px solid var(--ux-green,var(--income));outline-offset:-3px; }
.native-date-field:has(>input[aria-invalid=true]) { border-color:var(--expense); }
.native-date-field:has(>input:disabled) { opacity:.65; }
body[data-design=clarity] dialog.record-editor { display:flex;flex-direction:column;overflow:hidden; }
body[data-design=clarity] dialog.record-editor:not([open]) { display:none; }
body[data-design=clarity] dialog.record-editor>.dialog-head { flex:none; }
body[data-design=clarity] dialog.record-editor>form { min-height:0;display:flex;flex-direction:column;overflow:hidden; }
body[data-design=clarity] dialog.record-editor .editor-fields { min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable; }
body[data-design=clarity] dialog.record-editor .editor-actions { flex:none;display:flex;align-items:center;gap:12px;padding-top:12px; }
body[data-design=clarity] dialog.record-editor .editor-actions>button[type=submit] { flex:1;min-width:0;margin:0; }
body[data-design=clarity] dialog.record-editor .editor-actions>.editor-secondary-actions { flex:none;order:-1;margin:0; }
body[data-design=clarity] dialog.record-editor .editor-more { max-width:100%;margin-top:12px; }
body[data-design=clarity] dialog.record-editor .editor-discard-choice { flex:none;display:flex;flex-wrap:wrap;gap:8px;padding:12px 6px 6px; }
body[data-design=clarity] dialog.record-editor .editor-discard-choice>p { flex-basis:100%;margin:0 0 4px; }
body[data-design=clarity] dialog.record-editor .editor-discard-choice>button { flex:1;min-width:0;white-space:normal; }
body[data-design=clarity] dialog.record-editor :is(button.secondary,button.text-button,summary) { min-height:44px;font-size:14px;white-space:normal;line-height:1.4; }
body[data-design=clarity][data-reference-layout=b12] #root :is(.header-profile,.header-theme) { width:44px;min-width:44px;min-height:44px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters { grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); }
body[data-design=clarity][data-reference-layout=b12] #root :is(.tasks-page,.today-page,.calendar-page,.finance-page) :is(button.secondary,button.text-button,summary) { min-height:44px;font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.4; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row>button { width:44px;min-width:44px;height:44px;min-height:44px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row { grid-template-columns:minmax(0,1fr) minmax(100px,auto) 44px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-reset-filters { margin:8px 0; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-reset-filters { align-self:end;min-width:0; }
body[data-design=clarity] :is(.task-reset-filters,.finance-reset-filters) { opacity:1;transition-property:background-color,border-color,box-shadow,color,transform,opacity; }
body :is(.task-reset-filters,.finance-reset-filters).filter-reset-idle { visibility:hidden;opacity:0; }
@media(max-width:759px) {
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger .ledger-row { grid-template-columns:minmax(0,1fr) 44px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page>.finance-filter-panel .finance-filters>div:has(select) { grid-column:1/-1; }
}
body[data-design=clarity] [hidden] { display:none!important; }
body[data-design=clarity] .record-editor .task-editor-status {
 display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 0 16px;
}
body[data-design=clarity] .record-editor .task-editor-status label { margin:0;font-size:14px;color:var(--ux-ink);font-weight:500; }
body[data-design=clarity] .record-editor .task-editor-status input { margin:0;width:22px;height:22px;min-height:22px;flex:0 0 22px; }
body[data-design=clarity] .record-editor .record-options>summary { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;font-size:13px;line-height:1.5; }
body[data-design=clarity] .record-editor .record-options>summary::after { content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 5px 4px 0; }
body[data-design=clarity] .record-editor .record-options[open]>summary::after { transform:rotate(225deg);margin-top:8px; }
body[data-design=clarity] .record-editor .editor-secondary-actions { display:flex;align-items:start;justify-content:space-between;gap:12px;margin-top:12px; }
body[data-design=clarity] .record-editor .editor-secondary-actions>.editor-cancel { min-height:44px;background:none;color:var(--ux-muted);border-color:transparent; }
body[data-design=clarity] .record-editor .editor-more { max-width:70%;padding:0;border:0;background:none; }
body[data-design=clarity] .record-editor .editor-more>summary { cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px;color:var(--ux-muted); }
body[data-design=clarity] .record-editor .editor-more>button { display:block;width:100%;min-height:44px;margin:6px 0;white-space:normal;text-align:start; }
body[data-design=clarity] .record-editor.note-editor textarea { min-height:260px;line-height:1.8;font-size:16px;resize:vertical; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters { padding:16px 18px;gap:20px;margin-bottom:18px;border-radius:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group { border-radius:12px;padding:0 20px;box-shadow:none; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group-head { min-height:60px;padding:16px 0; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page details.task-group:not([open]) .task-group-head { border:0; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page details.task-group summary { cursor:pointer; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page details.task-group summary::after { content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px 8px; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page details.task-group[open] summary::after { transform:rotate(225deg);margin-top:8px; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group-count { margin-left:auto; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-row { min-height:68px; }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .notes-library { grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:16px;align-items:start; }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card { min-height:210px;border-radius:12px;padding:20px;box-shadow:none;transition:border-color 140ms ease,box-shadow 140ms ease; }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card:focus-within { border-color:var(--ux-green);box-shadow:0 0 0 2px var(--ux-soft); }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-content h2 { font-size:18px;line-height:1.4;font-weight:650;letter-spacing:-.025em;overflow-wrap:anywhere; }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-preview { display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7;font-size:14px; }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-header>svg { width:20px;height:20px;padding:0;border-radius:0;background:none; }
body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card-header { justify-content:space-between;margin-bottom:16px; }
body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date-preview { display:none; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.finance-metric { display:flex;flex-direction:column;align-items:start;justify-content:start;gap:7px;text-align:start;border:1px solid var(--ux-border);color:var(--ux-ink);font-weight:400;background:var(--ux-surface); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.finance-metric:hover { border-color:var(--ux-green);background:var(--ux-surface); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric-link { display:block;font-size:11px;color:var(--ux-muted); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric.income .money-display { color:var(--income); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric.expense .money-display { color:var(--expense); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-breakdown-control { margin:12px 0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-breakdown-control>label { display:none; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-breakdown-control>select { width:100%;min-height:42px;font-size:14px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-breakdown-control.has-currencies { display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:12px;align-items:center; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-chart-currency>label { display:none; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-chart-currency>select { margin:0;min-height:42px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-controls { grid-template-columns:minmax(0,1fr); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-visual { position:relative;width:176px;height:176px;min-height:176px;flex:0 0 auto;display:grid;place-items:center;margin:20px auto; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-ring { position:absolute;inset:0;border-radius:50%; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-ring::after { content:'';position:absolute;inset:20px;border-radius:50%;background:var(--ux-surface); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-total { z-index:1;text-align:center;display:grid;gap:8px;max-width:128px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-total>.money-display { display:flex;flex-direction:column;align-items:center;gap:2px;font-size:17px;line-height:1.3; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-total .money-currency { font-size:11px;color:var(--ux-muted);font-weight:400; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-total .money-number { max-width:100%;font-size:clamp(11px,1.5vw,17px); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-large-total { margin:-8px 0 18px;text-align:center; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-large-total>.money-display { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;font-size:19px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row { display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;min-height:48px;padding:10px 8px;width:100%;border:0;border-radius:8px;border-bottom:1px solid var(--ux-border);background:none;color:var(--ux-ink);font-weight:400;text-align:start;font-size:13px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.chart-category-row:hover,
body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.chart-category-row[aria-pressed=true] { background:var(--ux-soft); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.chart-category-row>span { display:flex;align-items:center;gap:9px;min-width:0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row>span { grid-column:1;grid-row:1; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row>.money-display { grid-column:2;grid-row:1;padding-inline-start:0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row>small { grid-column:3;grid-row:1;padding-inline-start:0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .chart-category-row .money-display { font-size:13px; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis .chart-legend.chart-category-legend { flex:0 0 auto;grid-template-columns:minmax(0,1fr);width:100%; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-analysis>* { flex-shrink:0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-clear-drill { margin:0 0 10px;text-align:start; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-hint { font-size:12px;margin:12px 0 0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-chart-options { margin:2px 0 12px;border:0;padding:0; }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-chart-options>summary { cursor:pointer;min-height:36px;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ux-muted); }
body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-chart-options>summary::after { content:'';width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg); }
@media (min-width:1000px) {
 body[data-design=clarity] #root:has(>main.login.focus-login) { display:grid;place-items:center;min-height:100svh;padding:32px;box-sizing:border-box; }
 body[data-design=clarity] #root main.login.focus-login:has(>.auth-form-panel) { width:min(1056px,100%);margin:0 auto; }
}
@media (min-width:1200px) and (min-height:700px) {
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) { display:flex;flex-direction:column;height:100dvh;min-height:0;padding-top:96px;padding-bottom:22px;overflow:hidden; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger)>.intro { margin-bottom:16px;min-height:44px;flex-shrink:0; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger)>.finance-navigation { margin-bottom:12px;flex-shrink:0; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger)>.finance-filter-panel { margin-bottom:8px;flex-shrink:0; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger)>.finance-filter-panel[open] { max-height:180px;overflow:auto; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger)>.finance-overview { flex-shrink:0;margin-bottom:14px; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .finance-metric-grid { margin-bottom:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .finance-metric { padding:14px 16px!important;gap:5px;min-height:88px; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .finance-content { flex:1;min-height:0;align-items:stretch;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .finance-content>.card { max-height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .ledger { display:flex;flex-direction:column; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .ledger-rows { flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .chart-category-legend { max-height:180px;overflow:auto; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .chart-controls { gap:10px; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .finance-category-visual { width:148px;height:148px;min-height:148px;margin:16px auto; }
 body[data-design=clarity][data-reference-layout=b12] #root main.finance-page:has(.ledger) .finance-category-total { max-width:105px; }
}
@media (min-width:1100px) {
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date { min-height:68px;align-items:start;justify-content:start;padding:8px;gap:4px; }
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date-preview { display:block;font-size:10px;line-height:1.35;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ux-green); }
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-date[aria-pressed=true] .calendar-date-preview { color:inherit; }
 body[data-design=clarity][data-reference-layout=b12] #root .calendar-page .calendar-event-dots { display:none; }
}
@media (max-width:759px) {
 /* Keep the dedicated history's first record above the fixed phone navigation. */
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger]>.intro { gap:8px;margin-block-end:12px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-toolbar { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-toolbar>button:first-child { grid-column:auto; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger]>:is(.context-help,.finance-navigation,.finance-filter-panel,.finance-overview),
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] :is(.finance-summary-period,.finance-content>.ledger>h2) { margin-block-end:8px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-metric-grid { gap:6px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-metric { padding:6px 16px!important;row-gap:2px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-metric>.money-display:only-of-type { grid-row:1 / span 2; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] :is(.finance-view-tab, .finance-filter-panel>summary) { min-height:44px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .ledger .ledger-row { grid-template-columns:minmax(0,1fr) 44px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .ledger .ledger-row>button { width:44px;min-width:44px;height:44px;min-height:44px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.finance-metric { display:grid;grid-template-columns:minmax(62px,.8fr) minmax(0,2fr);align-items:center;gap:6px 12px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.small { grid-column:1;grid-row:1; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.money-display { grid-column:2;grid-row:auto;margin:0;font-size:16px;--money-align:flex-end; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-metric>.finance-metric-link { grid-column:1;grid-row:2;font-size:10px;text-align:start; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-total .money-number { font-size:17px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row { grid-template-columns:minmax(0,1fr) auto; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row>.money-display { grid-column:1/-1;grid-row:2;font-size:14px; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .finance-category-analysis button.chart-category-row>small { grid-column:2;grid-row:1; }
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card { min-height:180px; }
}
@media (max-width:1199px) {
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page .ledger-rows { max-height:56dvh;overflow:auto;overscroll-behavior:contain; }
}
@media (min-width:760px) and (max-width:1199px) {
 /* Keep the dedicated ledger's first record visible without narrowing its totals. */
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] button.finance-metric { display:grid;align-items:center; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-metric>.small { grid-column:1;grid-row:1; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-metric>.finance-metric-link { grid-column:1;grid-row:2; }
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page[data-finance-view=ledger] .finance-metric>.money-display:only-of-type { grid-row:1 / span 2; }
}
@media (max-width:359px) {
 /* Give enlarged monetary text the full card width on narrow phones. */
 body[data-design=clarity][data-reference-layout=b12] #root .finance-page button.finance-metric { display:flex;align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
 body[data-design=clarity][data-reference-layout=b12] #root .notes-page .note-card { transition:none; }
}

/* Evening Web/PWA feedback: visible palettes and a proportionate task workspace. */
body[data-palette=violet],.palette-choice[data-palette-choice=violet] { --palette-bg:#f5f3f9;--palette-surface:#fff;--palette-accent:#5c4ca6;--palette-soft:#efebfa;--palette-button:#6956bd;--palette-light-income:#145f4a;--palette-light-expense:#923730;--palette-dark-bg:#1e1c27;--palette-dark-surface:#262431;--palette-dark-accent:#c1b1ff;--palette-dark-soft:#373048; }
body[data-palette=forest],.palette-choice[data-palette-choice=forest] { --palette-bg:#f1f6f3;--palette-surface:#fff;--palette-accent:#235946;--palette-soft:#e3efe7;--palette-button:#286550;--palette-light-income:#145f4a;--palette-light-expense:#923730;--palette-dark-bg:#19241f;--palette-dark-surface:#22302a;--palette-dark-accent:#a8d9bf;--palette-dark-soft:#2c4035; }
body[data-palette=ocean],.palette-choice[data-palette-choice=ocean] { --palette-bg:#f0f5f9;--palette-surface:#fff;--palette-accent:#2c5c7e;--palette-soft:#e3eef7;--palette-button:#32688f;--palette-light-income:#145e73;--palette-light-expense:#963837;--palette-dark-bg:#19232d;--palette-dark-surface:#222e3a;--palette-dark-accent:#a8d3ef;--palette-dark-soft:#2b3c4c; }
body[data-palette=pistachio],.palette-choice[data-palette-choice=pistachio] { --palette-bg:#f4f6ee;--palette-surface:#fff;--palette-accent:#485e31;--palette-soft:#eaf0df;--palette-button:#526b38;--palette-light-income:#465d21;--palette-light-expense:#8f3558;--palette-dark-bg:#20251b;--palette-dark-surface:#2a3023;--palette-dark-accent:#c7dfa9;--palette-dark-soft:#303a28; }
body[data-palette=rose],.palette-choice[data-palette-choice=rose] { --palette-bg:#f9f2f4;--palette-surface:#fff;--palette-accent:#89455b;--palette-soft:#f7e6ec;--palette-button:#9c4e67;--palette-light-income:#145f4a;--palette-light-expense:#923730;--palette-dark-bg:#291e23;--palette-dark-surface:#34272d;--palette-dark-accent:#edb5c7;--palette-dark-soft:#49303b; }
body[data-palette=sand],.palette-choice[data-palette-choice=sand] { --palette-bg:#f8f5ee;--palette-surface:#fff;--palette-accent:#72562d;--palette-soft:#f2ebdc;--palette-button:#816233;--palette-light-income:#145f4a;--palette-light-expense:#923730;--palette-dark-bg:#27221a;--palette-dark-surface:#322c23;--palette-dark-accent:#e4ca99;--palette-dark-soft:#453a29; }
body[data-design=clarity][data-reference-layout=b12][data-palette] { --ux-bg:var(--palette-bg);--ux-surface:var(--palette-surface);--ux-green:var(--palette-accent);--ux-soft:var(--palette-soft);--ux-button:var(--palette-button); }
body[data-design=clarity][data-reference-layout=b12][data-theme=dark][data-palette] { --ux-bg:var(--palette-dark-bg);--ux-surface:var(--palette-dark-surface);--ux-green:var(--palette-dark-accent);--ux-soft:var(--palette-dark-soft); }
body[data-design=clarity][data-theme=dark] .palette-choice { --preview-bg:var(--palette-dark-bg);--preview-surface:var(--palette-dark-surface);--preview-accent:var(--palette-dark-accent);--preview-soft:var(--palette-dark-soft); }
@media (prefers-color-scheme:dark) {
 body[data-design=clarity][data-reference-layout=b12][data-theme=system][data-palette] { --ux-bg:var(--palette-dark-bg);--ux-surface:var(--palette-dark-surface);--ux-green:var(--palette-dark-accent);--ux-soft:var(--palette-dark-soft); }
 body[data-design=clarity][data-theme=system] .palette-choice { --preview-bg:var(--palette-dark-bg);--preview-surface:var(--palette-dark-surface);--preview-accent:var(--palette-dark-accent);--preview-soft:var(--palette-dark-soft); }
}
body[data-design=clarity] #root .appearance-settings { display:grid;gap:24px; }
body[data-design=clarity] #root .appearance-settings>h2 { margin:0; }
body[data-design=clarity] #root .appearance-controls { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
body[data-design=clarity] #root .appearance-controls label { margin:0 0 8px; }
body[data-design=clarity] #root .appearance-palettes { border:0;padding:0;margin:0;min-width:0; }
body[data-design=clarity] #root .appearance-palettes>legend { padding:0;margin:0 0 12px;color:var(--ux-muted);font-size:13px;font-weight:550; }
body[data-design=clarity] #root .palette-choices { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
body[data-design=clarity] #root button.palette-choice { display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:0;min-width:0;padding:5px;background:var(--ux-surface);color:var(--ux-ink);border:1px solid var(--ux-border);border-radius:12px;text-align:start;font-weight:500; }
body[data-design=clarity] #root button.palette-choice:hover { border-color:var(--ux-green); }
body[data-design=clarity] #root button.palette-choice[aria-pressed=true] { border-color:var(--ux-green);box-shadow:0 0 0 1px var(--ux-green); }
body[data-design=clarity] #root .palette-preview { display:flex;height:84px;gap:10px;padding:12px;border-radius:7px;background:var(--preview-bg,var(--palette-bg));overflow:hidden; }
body[data-design=clarity] #root .palette-preview-sidebar { width:17px;flex:none;border-radius:3px;background:var(--preview-soft,var(--palette-soft));border-top:9px solid var(--preview-accent,var(--palette-accent)); }
body[data-design=clarity] #root .palette-preview-page { display:flex;flex-direction:column;align-items:start;gap:7px;min-width:0;flex:1; }
body[data-design=clarity] #root .palette-preview-title { width:54%;height:4px;flex:none;border-radius:2px;background:var(--preview-accent,var(--palette-accent)); }
body[data-design=clarity] #root .palette-preview-card { width:100%;height:25px;border-radius:4px;background:var(--preview-surface,var(--palette-surface));border-inline-start:3px solid var(--preview-soft,var(--palette-soft)); }
body[data-design=clarity] #root .palette-preview-action { width:34%;height:10px;border-radius:3px;background:var(--palette-button); }
body[data-design=clarity] #root .palette-choice-label { display:flex;align-items:center;justify-content:space-between;gap:5px;padding:11px 7px 7px;font-size:12px;line-height:1.4; }
body[data-design=clarity] #root .palette-choice-check { visibility:hidden;flex:none;display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--ux-soft);color:var(--ux-green);font-size:12px; }
body[data-design=clarity] #root .palette-choice[aria-pressed=true] .palette-choice-check { visibility:visible; }
body[data-design=clarity] #root .appearance-help { border-top:1px solid var(--ux-border);padding-top:8px; }
body[data-design=clarity] #root .appearance-help .small { font-size:12px;line-height:1.65; }

/* One installation action, shared by public guidance and account/onboarding views. */
body :is(#root,.product-content) .install-affordance { box-sizing:border-box;min-width:0;max-width:100%;margin:16px 0;padding:20px;border:1px solid var(--ux-border,var(--line));border-radius:16px;background:var(--ux-surface,var(--card));color:var(--ux-ink,var(--ink));text-align:start; }
body :is(#root,.product-content) .install-affordance [hidden] { display:none!important; }
body :is(#root,.product-content) .install-affordance .install-affordance-title { margin:0 0 8px;font-size:18px;line-height:1.4;letter-spacing:-.02em; }
body :is(#root,.product-content) .install-affordance .install-affordance-status { margin:0 0 12px;font-size:14px;line-height:1.6;max-width:68ch;color:var(--ux-muted,var(--muted));overflow-wrap:anywhere; }
body :is(#root,.product-content) .install-affordance .install-affordance-actions { display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0; }
body :is(#root,.product-content) .install-affordance .install-affordance-button { min-height:44px;min-width:0;max-width:100%;padding:10px 16px;border:1px solid var(--ux-border,var(--line));border-radius:10px;background:var(--ux-surface,var(--card));color:var(--ux-ink,var(--ink));font-size:14px;font-weight:650;line-height:1.5;white-space:normal;overflow-wrap:anywhere; }
body :is(#root,.product-content) .install-affordance .install-affordance-open { display:inline-flex;align-items:center;min-height:44px;min-width:0;max-width:100%;font-size:14px;line-height:1.5;color:var(--ux-green,var(--accent));text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere; }
body :is(#root,.product-content) .install-affordance .install-affordance-guide { margin:12px 0 0;padding:0;border:0;border-top:1px solid var(--ux-border,var(--line));border-radius:0;background:transparent; }
body :is(#root,.product-content) .install-affordance .install-affordance-guide>summary { box-sizing:border-box;display:list-item;min-height:44px;padding:10px 0;list-style-position:inside;font-size:14px;font-weight:600;line-height:1.6;color:var(--ux-ink,var(--ink));cursor:pointer; }
body :is(#root,.product-content) .install-affordance .install-affordance-guide>summary::after { content:none; }
body :is(#root,.product-content) .install-affordance .install-affordance-steps>p { margin:4px 0 12px;padding:0;max-width:68ch;font-size:14px;line-height:1.65;overflow-wrap:anywhere;color:var(--ux-muted,var(--muted)); }
body :is(#root,.product-content) .install-affordance :is(button,a,summary):focus-visible { outline:3px solid var(--ux-green,var(--accent));outline-offset:3px; }
body :is(#root,.product-content) .install-affordance-compact { padding:16px; }
body.product-site .application-grid .install-affordance,body[data-design=clarity] #root .appearance-help .install-affordance { padding:0;border:0;border-radius:0;background:transparent; }
body[data-design=clarity] #root .onboarding>.install-affordance { width:100%;max-width:600px;justify-self:center; }
@media(max-width:420px) {
 body :is(#root,.product-content) .install-affordance { padding:16px; }
 body.product-site .application-grid .install-affordance,body[data-design=clarity] #root .appearance-help .install-affordance { padding:0; }
}

body[data-design=clarity][data-reference-layout=b12] #root .task-workspace { display:grid;grid-template-columns:minmax(0,1fr) 212px;align-items:start;gap:24px;max-width:1200px; }
body[data-design=clarity][data-reference-layout=b12] #root .task-primary { min-width:0; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters { padding:0 0 20px;border:0;border-radius:0;background:none;box-shadow:none;margin:0;grid-template-columns:minmax(0,1fr) minmax(0,180px) minmax(0,140px);gap:16px; }
#root .tasks-page .task-filter-toggle { display:none; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters>div { min-width:0; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters :is(input,select) { background:var(--ux-surface); }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-list { padding:0;border:0;border-radius:0;background:none;gap:16px; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group { padding:0 20px;background:var(--ux-surface);border:1px solid var(--ux-border);border-radius:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group-head { min-height:56px;padding:16px 0; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group h2 { text-transform:none;letter-spacing:0;font-size:13px;font-weight:550; }
body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .workspace-empty { min-height:220px;border:1px dashed var(--ux-border);border-radius:12px;background:var(--ux-surface);padding:28px; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview { padding:20px;border:1px solid var(--ux-border);border-radius:12px;background:var(--ux-surface);min-width:0; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-heading { display:flex;align-items:center;gap:9px;padding-bottom:20px;color:var(--ux-green); }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-heading svg { width:18px;height:18px;flex:none; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-heading h2 { font-size:13px;font-weight:550;margin:0; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts { display:grid;gap:18px;margin:0 0 20px; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts>div { display:flex;align-items:baseline;justify-content:space-between;gap:12px; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts dt { color:var(--ux-muted);font-size:12px;line-height:1.5; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts dd { font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.2;margin:0; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview progress { display:block;width:100%;height:5px;border:0;border-radius:4px;overflow:hidden;accent-color:var(--ux-green);background:var(--ux-soft); }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview progress::-webkit-progress-bar { background:var(--ux-soft); }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview progress::-webkit-progress-value { background:var(--ux-green);border-radius:4px; }
body[data-design=clarity][data-reference-layout=b12] #root .task-overview progress::-moz-progress-bar { background:var(--ux-green);border-radius:4px; }
@media (max-width:1099px) {
 body[data-design=clarity][data-reference-layout=b12] #root .task-workspace { grid-template-columns:minmax(0,1fr) 180px;gap:18px; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview { padding:18px; }
}
@media (max-width:959px) {
 body[data-design=clarity] #root .palette-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:899px) {
 body[data-design=clarity][data-reference-layout=b12] #root .task-workspace { display:flex;flex-direction:column;gap:20px; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-primary { width:100%; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview { order:-1;width:100%;padding:16px 18px;box-sizing:border-box; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview-heading { display:none; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:12px; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts>div { flex-direction:row-reverse;justify-content:end;align-items:center;gap:10px; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts>div+div { border-inline-start:1px solid var(--ux-border);padding-inline-start:18px; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts dd { font-size:22px; }
}
@media (max-width:599px) {
 body[data-design=clarity] #root .appearance-controls { grid-template-columns:1fr;gap:18px; }
 body[data-design=clarity] #root .palette-choices { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
 body[data-design=clarity] #root .palette-preview { height:76px;padding:10px; }
 body[data-design=clarity] #root .palette-choice-label { padding-inline:5px;font-size:11px; }
 body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
 body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters>div:first-child { grid-column:1/-1; }
 body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-group { padding:0 16px; }
 body[data-design=clarity][data-reference-layout=b12] #root .task-overview-counts dt { font-size:11px; }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-overview { order:0; }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filter-toggle {
  display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:44px;margin:0 0 12px;text-align:start;
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filter-toggle::after {
  content:"";flex:none;width:7px;height:7px;margin-inline-start:auto;border-right:1.5px solid;border-bottom:1.5px solid;transform:translateY(-2px) rotate(45deg);
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filter-toggle[aria-expanded=true]::after { transform:translateY(2px) rotate(225deg); }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filter-scope {
  min-width:0;color:var(--ux-muted);font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filter-toggle[aria-expanded=false]+.task-filters,
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-reset-filters.filter-reset-idle { display:none; }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-filters { grid-template-columns:minmax(0,1fr);gap:10px;padding-block-end:12px; }
 html[data-telegram-mini=true] body[data-design=clarity][data-reference-layout=b12] #root .tasks-page .task-reset-filters { justify-self:start; }
}

/* The saved 0–100 preference tints the actual page, cards and fields together.
   Light text roles keep >=4.5 contrast at the strongest tint. Button fills and
   all surfaces retain their palette/intensity values. Dark roles stay distinct. */
body[data-design=clarity][data-reference-layout=b12][data-theme=light]{--income:var(--palette-light-income);--expense:var(--palette-light-expense)}
@media(prefers-color-scheme:light){body[data-design=clarity][data-reference-layout=b12][data-theme=system]{--income:var(--palette-light-income);--expense:var(--palette-light-expense)}}
body[data-design=clarity][data-reference-layout=b12][data-palette][data-theme][data-appearance-intensity]{--ux-bg:var(--appearance-page-color,var(--palette-bg));--ux-surface:var(--appearance-surface-color,var(--palette-surface));--ux-soft:var(--appearance-soft-color,var(--palette-soft))}
body[data-design=clarity][data-reference-layout=b12] #root :is(input:not([type=checkbox]):not([type=range]),textarea,select),body[data-design=clarity] dialog :is(input:not([type=checkbox]):not([type=range]),textarea,select){background:var(--appearance-input-color,var(--ux-surface))}
body[data-design=clarity][data-reference-layout=b12] #root .field-menu-trigger,body[data-design=clarity] dialog .field-menu-trigger{background:var(--appearance-input-color,var(--ux-surface));color:var(--ux-ink);border:1px solid var(--ux-border);min-height:46px}
body[data-design=clarity] .reference-workspace .field-menu{flex:1;min-width:0}
body[data-design=clarity] #root .reference-workspace .field-menu-trigger{display:block;position:relative;min-height:44px;padding:8px 9px;padding-inline-end:28px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-design=clarity] #root .reference-workspace .field-menu-trigger::after{position:absolute;inset-inline-end:12px;top:50%;margin:0;transform:translateY(-65%) rotate(45deg)}
body[data-design=clarity] #root .reference-workspace .field-menu-trigger[aria-expanded=true]::after{transform:translateY(-25%) rotate(225deg)}
body[data-design=clarity] .account-identity-editor{padding-block:14px;border-block-start:1px solid var(--ux-border)}
body[data-design=clarity] .account-identity-editor form{max-width:480px}
body[data-design=clarity] .header-support{font-size:12px;padding:8px;min-width:44px;min-height:44px}
@media(max-width:759px){body[data-design=clarity] .header-support .header-tool-label{display:none}}

/* Today uses the same interactive shell with the Focus layout from Stitch. */
body[data-design=clarity][data-reference-layout=b12] #root:has(>.today-page){
 --today-paper:color-mix(in srgb,light-dark(#f7f8f3,#202321) 80%,var(--ux-bg));
 --today-nav:color-mix(in srgb,light-dark(#f1f3ee,#272b28) 80%,var(--ux-surface));
 --today-card:color-mix(in srgb,light-dark(#fff,#2b2f2c) 80%,var(--ux-surface));
 --today-rule:light-dark(#c4cdc3,#49524b);
 min-height:100dvh;background:var(--today-paper);
}
body[data-design=clarity][data-reference-layout=b12] #root:has(>.today-page)>:is(header,.reference-sidebar){background:var(--today-nav);border-color:var(--today-rule)}
body[data-design=clarity][data-reference-layout=b12] #root:has(>.today-page) :is(.reference-sidebar-footer,.reference-workspace){background:var(--today-nav)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro{margin-block-end:12px;padding-block-end:12px;border-block-end:1px solid var(--today-rule)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro>div{display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap;width:100%}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro h1{margin:0;font-family:Georgia,serif;font-weight:600;font-size:clamp(30px,3vw,38px);line-height:1.1;color:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro .eyebrow{margin:0;text-transform:none;letter-spacing:normal;font-size:13px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);grid-template-areas:'main side' 'main notes' 'details details';column-gap:clamp(16px,2.8vw,40px);row-gap:20px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-details{display:grid;grid-area:details;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-details>.card{grid-area:auto;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .card{min-width:0;margin:0;padding:16px!important;border-color:var(--today-rule);background:var(--today-card)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid h2{margin:0;font-size:18px;line-height:1.3}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-progress{min-width:0;gap:6px;margin-bottom:9px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-task-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-task-title>button{flex:none;min-height:44px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-task-head{display:flex;align-items:baseline;gap:4px 12px;flex-wrap:wrap;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-task-head>span{padding:0;background:transparent;color:var(--ux-muted);font-weight:500;white-space:nowrap}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks .quick-capture{margin:0 0 6px;gap:8px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks .task-row{padding:3px 0;min-height:46px;border-color:var(--today-rule)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks .task-actions{gap:8px 16px;margin:0;padding-top:3px;flex-wrap:wrap}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-block-end:10px}
/* An exact amount sets the minimum width of its metric. Metrics can move to the next row. */
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-row{display:flex;flex-wrap:wrap;gap:4px 6px;border-block-start:1px solid var(--today-rule);padding:6px 0;margin:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-row>div{display:grid;flex:1 1 0;align-content:start;gap:2px 6px;min-inline-size:min-content;margin:0;background:none;border:0;padding:0}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-row>div>.small{font-size:11px;line-height:1.3}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .money-display{font-size:13px;line-height:1.35}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-money-currency{flex:0 0 100%;font-size:11px;font-weight:650;line-height:1.3;color:var(--ux-muted)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-money-currency~div .money-currency{display:none}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-currency~div{display:flex;flex-wrap:wrap;align-items:baseline}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .income .money-display{color:var(--income)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .expense .money-display{color:var(--expense)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-history{padding-inline:0;min-height:44px;justify-content:flex-start}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline{margin-top:8px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding-inline-start:18px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li::before{inset-inline-start:4px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li::after{inset-inline-start:4px;width:7px;height:7px;background:var(--ux-green)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li>:is(time,span){grid-column:2;grid-row:1;padding:0;font-size:12px}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li>button{grid-column:1;grid-row:1;min-height:44px;padding-inline:0;color:var(--ux-ink)}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes>.note-link{display:flex;flex-wrap:nowrap;min-height:44px;margin:0;padding:8px 0;border:0;border-block-end:1px solid var(--today-rule);border-radius:0;background:none}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes>.note-link>.ui-icon{flex:none;width:18px;height:18px;padding:6px;border-radius:7px}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root main.today-page{padding-block-start:94px;gap:12px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro{margin:0;padding-block-end:8px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro>div{justify-content:space-between}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-details{display:contents}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .card{padding:12px!important}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-task-title>button{font-size:12px;padding-inline:9px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief{order:3}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-tasks{order:2}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes{order:5}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-secondary-actions{order:6}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-agenda{order:7}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .money-display{font-size:12px}
}

/* On narrow phones, reserve space for each exact amount independently of the other two. */
@media(max-width:430px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-head{margin-block-end:6px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-row{display:grid;gap:2px 10px;padding-block:4px}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-row:has(>.today-money-currency){grid-template-columns:max-content minmax(0,1fr)}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-currency~div{grid-column:2}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-currency{grid-row:span 3;align-self:baseline}
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .today-money-row>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;gap:0 8px;min-inline-size:0}
}

body[data-design=clarity][data-reference-layout=b12] #root .today-page{
 --today-accent-surface:color-mix(in srgb,var(--ux-green) 7%,var(--today-card));
 --today-note-surface:color-mix(in srgb,light-dark(#d0ba89,#ae895d) 10%,var(--today-card));
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro h1{
 color:var(--ux-ink);font-size:clamp(35px,4.2vw,56px);letter-spacing:-.05em;
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro .eyebrow{
 color:var(--ux-muted);font-size:clamp(11px,1.3vw,13px);
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid h2{
 display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere;
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid h2>.ui-icon{
 width:17px;height:17px;flex:none;color:var(--ux-green);
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .today-tasks{
 border-block-start:3px solid var(--ux-green);box-shadow:0 3px 12px #17291a0b;
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .today-finance-brief{
 background:var(--today-accent-surface);
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid .today-notes{
 background:var(--today-note-surface);
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .total .money-display{
 font-weight:750;color:var(--ux-ink);
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-finance-brief .money-display{
 font-variant-numeric:tabular-nums;
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-timeline>li:first-child::after{
 box-shadow:0 0 0 3px var(--today-accent-surface);
}
body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-notes .note-excerpt{
 color:var(--ux-muted);line-height:1.45;
}
@media(min-width:760px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .intro>div{
  flex-direction:column;align-items:flex-start;gap:5px;
 }
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-grid{
  grid-template-areas:'main side' 'notes side' 'details details';
 }
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-details{
  border-block-start:1px solid var(--today-rule);padding-block-start:20px;
 }
}
@media(min-width:1180px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-details{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}
@media(max-width:759px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page>.context-help{
  order:10;
 }
}
@media(max-width:430px){
 body[data-design=clarity][data-reference-layout=b12] #root .today-page .today-task-head h2>.ui-icon{
  display:none;
 }
}
