:root{color-scheme:light;--color-primary: #5b21b6;--color-primary-dark: #4c1d95;--color-background: #f3f1f9;--color-surface: #ffffff;--color-tint: #eae4f6;--color-text: #241d3a;--color-text-muted: #6b628c;--color-border: #ddd4ee;--color-chrome: #2b2150;--color-chrome-border: #3a2f63;--color-chrome-text: #e9e3fb;--color-chrome-muted: #9d90c8;--color-danger: #b91c1c;--color-danger-surface: #fee2e2;--color-warning-surface: #fef3c7;--color-warning-text: #92400e;--nav-height: 56px;--header-height: 56px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--color-background);color:var(--color-text);-webkit-font-smoothing:antialiased}h1{font-size:1.4rem;margin:0 0 .5rem}p{margin:.25rem 0}button{font:inherit;cursor:pointer}:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.toast :focus-visible,.calendar-event-chip:focus-visible{outline-color:#fff}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.spinner{animation:spin 2s linear infinite!important}}button,[role=tab],a,label,input,select,textarea{touch-action:manipulation;-webkit-tap-highlight-color:transparent}@media(pointer:coarse){.button-ghost,.button-small,.tab,.toast-close,.grocery-incart-toggle,.meals-add-button,.calendar-more-count{min-height:44px}.budget-tag-remove{min-width:32px;min-height:32px}}h1,h2,h3,[tabindex="-1"]{scroll-margin-top:calc(var(--header-height) + .5rem)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:.5rem;top:.5rem;z-index:100;background:var(--color-surface);padding:.5rem .75rem;border-radius:8px}.app-shell{min-height:100%;display:flex;flex-direction:column}.app-header{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:1rem;height:var(--header-height);padding:0 1rem;background:var(--color-chrome);border-bottom:1px solid var(--color-chrome-border)}.app-brand{font-weight:700;color:var(--color-chrome-text);font-size:1.1rem;text-decoration:none}.app-nav{display:flex;gap:.25rem;flex:1;min-width:0}.nav-link{padding:.4rem .7rem;border-radius:8px;text-decoration:none;color:var(--color-chrome-muted);font-size:.95rem;white-space:nowrap}.nav-link:hover{background:#ffffff14;color:var(--color-chrome-text)}.nav-link-active{color:#fff;font-weight:600;background:var(--color-primary)}.app-user{display:flex;align-items:center;gap:.75rem;margin-left:auto;color:var(--color-chrome-text)}.app-header .button-ghost{color:var(--color-chrome-text);border-color:var(--color-chrome-border);background:transparent}.app-header :focus-visible,.app-nav :focus-visible{outline-color:#fff}.user-chip{display:inline-flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:500;white-space:nowrap}.user-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.app-content{flex:1;width:100%;max-width:960px;margin:0 auto;padding:1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom))}.placeholder-page{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:1.5rem}.placeholder-page p{color:var(--color-text-muted)}@media(max-width:640px){.app-header{gap:.5rem}.app-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--color-chrome);border-top:1px solid var(--color-chrome-border);justify-content:space-around;align-items:stretch}.nav-link{flex:1;display:flex;align-items:center;justify-content:center;border-radius:0;font-size:.72rem;padding:0}.app-content{padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 1.25rem)}}.button-primary{background:var(--color-primary);color:#fff;border:none;border-radius:8px;padding:.6rem 1rem;font-weight:600}.button-primary:hover:not(:disabled){background:var(--color-primary-dark)}.button-primary:disabled{opacity:.6;cursor:default}.button-small{padding:.3rem .7rem;font-size:.85rem}a.button-primary,a.button-ghost{display:inline-block;text-decoration:none;text-align:center}.button-ghost{background:transparent;border:1px solid var(--color-border);border-radius:8px;padding:.35rem .7rem;color:var(--color-text-muted);font-size:.85rem;white-space:nowrap}.button-ghost:hover:not(:disabled){border-color:var(--color-text-muted);color:var(--color-text)}.login-page{min-height:100%;display:flex;align-items:center;justify-content:center;padding:1rem}.login-card{width:100%;max-width:380px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;padding:2rem 1.5rem;display:flex;flex-direction:column;gap:1rem}.login-title{text-align:center;color:var(--color-primary);margin:0}.login-subtitle{text-align:center;color:var(--color-text-muted);margin:0 0 .5rem}.field{display:flex;flex-direction:column;gap:.3rem}.field-label{font-size:.85rem;font-weight:600}.field input{font:inherit;padding:.6rem .75rem;border:1px solid var(--color-border);border-radius:8px;background:var(--color-background)}.field input:focus{outline:2px solid var(--color-primary);outline-offset:-1px}.field-error,.form-error{color:var(--color-danger);font-size:.85rem}.form-error{margin:0}.event-form input[readonly],.budget-category-form input[readonly]{background:var(--color-background);color:var(--color-text-muted)}.form-hint{color:var(--color-warning-text);font-size:.85rem;margin:0}.offline-banner{background:var(--color-warning-surface);color:var(--color-warning-text);text-align:center;font-size:.85rem;padding:.4rem 1rem}.offline-banner:empty{padding:0}.toast-viewport{position:fixed;top:.75rem;left:50%;transform:translate(-50%);z-index:40;display:flex;flex-direction:column;width:min(92vw,420px);pointer-events:none}.toast-region{display:flex;flex-direction:column}.toast-region .toast{margin-bottom:.5rem;pointer-events:auto}.toast{display:flex;align-items:center;gap:.5rem;background:var(--color-text);color:#fff;border-radius:10px;padding:.6rem .9rem;font-size:.9rem;box-shadow:0 4px 16px #00000040}.toast-error{background:var(--color-danger)}.toast-message{flex:1;min-width:0}.toast-close,.toast-action{background:transparent;color:inherit;border:none;font-size:1rem;padding:.1rem .3rem}.toast-close{padding:.4rem .6rem}.toast-action{text-decoration:underline;font-weight:600;font-size:.9rem}.page-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.page-header h1{margin:0}.empty-hint{color:var(--color-text-muted);padding:.75rem 0}.form-actions{display:flex;gap:.5rem}.tabs{display:flex;gap:.25rem;margin:.5rem 0 1rem;border-bottom:1px solid var(--color-border)}.tab{background:var(--color-surface);border:1px solid var(--color-border);border-radius:999px;padding:.4rem .95rem;color:var(--color-text-muted);font-size:.95rem}.tab:hover{background:var(--color-tint)}.tab-active{background:var(--color-primary);border-color:var(--color-primary);color:#fff;font-weight:600}.tab-active:hover{background:var(--color-primary-dark)}.grocery-outbox-badge{background:var(--color-warning-surface);color:var(--color-warning-text);border-radius:8px;padding:.5rem .75rem;font-size:.85rem;margin:0 0 .75rem}.grocery-add-form{display:grid;grid-template-columns:1fr auto auto auto;gap:.4rem;margin-bottom:1rem}.grocery-add-form input,.grocery-add-form select,.grocery-item-editing input,.grocery-item-editing select,.todo-form input,.todo-form select,.todo-form textarea,.note-form textarea{font:inherit;color:var(--color-text);padding:.5rem .6rem;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);min-width:0}.grocery-add-quantity{width:4.5rem}.grocery-suggest{position:relative;min-width:0}.grocery-suggest input{width:100%}.grocery-suggest-list{position:absolute;z-index:20;top:calc(100% + 2px);left:0;right:0;margin:0;padding:.25rem;list-style:none;background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 6px 16px #1f24301f;max-height:14rem;overflow-y:auto;overscroll-behavior:contain}.grocery-suggest-option{padding:.45rem .5rem;border-radius:6px;cursor:pointer}.grocery-suggest-option:hover{background:var(--color-background)}.grocery-suggest-option-active,.grocery-suggest-option-active:hover{background:var(--color-tint)}.grocery-frequent{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-bottom:1rem}.grocery-frequent-label{font-size:.8rem;color:var(--color-text-muted)}.grocery-frequent-chip{background:var(--color-surface);border:1px solid var(--color-border);border-radius:999px;padding:.25rem .6rem;font-size:.85rem;color:var(--color-text)}.grocery-frequent-chip:hover:not(:disabled){border-color:var(--color-primary);color:var(--color-primary)}@media(max-width:640px){.grocery-add-form{grid-template-columns:1fr 4.5rem}.grocery-add-form select{grid-column:1}}.grocery-group{margin-bottom:1rem}.grocery-group-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);margin:0 0 .3rem}.grocery-item{display:flex;align-items:center;gap:.5rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.5rem .75rem;margin-bottom:.35rem}.grocery-item-editing{flex-wrap:wrap}.grocery-item-check-label{display:flex;align-items:center;gap:.6rem;flex:1;min-width:0;cursor:pointer}.grocery-item-check-label input[type=checkbox]{width:1.5rem;height:1.5rem;flex-shrink:0}.grocery-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.grocery-item-checked .grocery-item-name{text-decoration:line-through;color:var(--color-text-muted)}.grocery-item-quantity{color:var(--color-text-muted);font-size:.85rem;white-space:nowrap;font-variant-numeric:tabular-nums}.grocery-item-actions{display:flex;gap:.3rem;margin-left:auto}.grocery-incart{margin-top:1.25rem;border-top:1px dashed var(--color-border);padding-top:.75rem}.grocery-incart-toggle,.todo-section-toggle{background:transparent;border:none;padding:.3rem 0;font-size:.9rem;font-weight:600;color:var(--color-text-muted);margin-bottom:.4rem}.grocery-incart-toggle:hover{background:var(--color-background)}.grocery-validate-bar{position:sticky;bottom:.75rem;display:flex;justify-content:center;padding-top:1rem}@media(max-width:640px){.grocery-validate-bar{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + .75rem)}}.grocery-validate-button{min-width:60%;box-shadow:0 4px 16px #0000002e}.grocery-history-entry{background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.75rem;margin-bottom:.6rem}.grocery-history-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.9rem;margin-bottom:.4rem}.grocery-history-readd{padding:.2rem .5rem;font-size:.8rem}.grocery-history-date{font-weight:600}.grocery-history-user{color:var(--color-text-muted)}.grocery-history-items{list-style:none;margin:0;padding:0}.grocery-history-items li{display:flex;gap:.5rem;align-items:baseline;padding:.15rem 0;font-size:.95rem}.grocery-history-category{margin-left:auto;color:var(--color-text-muted);font-size:.8rem}.grocery-history-more{width:100%}.note-list{display:flex;flex-direction:column;gap:.5rem}.note-item{display:block;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.75rem;text-decoration:none;color:inherit}.note-item:hover{background:var(--color-background)}.note-item-header{display:flex;align-items:center;gap:.4rem}.note-item-title{font-weight:600}.note-pin{font-size:.85rem}.note-item-preview{color:var(--color-text-muted);font-size:.9rem;margin:.25rem 0 0}.note-item-meta{color:var(--color-text-muted);font-size:.8rem;margin:.35rem 0 0}.note-actions{display:flex;gap:.4rem;margin:.75rem 0}.note-form{display:flex;flex-direction:column;gap:.75rem}.note-content{background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.25rem 1rem;overflow-wrap:break-word}.note-content pre{overflow-x:auto;background:var(--color-background);padding:.5rem;border-radius:8px}.note-content img{max-width:100%}.todo-form{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}.todo-form-row{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.todo-form-assignee{display:inline-flex;align-items:center;gap:.35rem}.todo-section{margin-bottom:1.25rem}.todo-section-title{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);margin:0 0 .4rem}.todo-item{display:flex;align-items:flex-start;gap:.5rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.6rem .75rem;margin-bottom:.35rem}.todo-item-main{display:flex;align-items:flex-start;gap:.6rem;flex:1;min-width:0;cursor:pointer}.todo-item-main input[type=checkbox]{width:1.5rem;height:1.5rem;flex-shrink:0;margin-top:.15rem}.todo-item-body{display:flex;flex-direction:column;gap:.15rem;min-width:0}.todo-item-done .todo-item-title{text-decoration:line-through;color:var(--color-text-muted)}.todo-item-description{color:var(--color-text-muted);font-size:.85rem}.todo-item-meta{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:.8rem;color:var(--color-text-muted)}.todo-due-overdue{color:var(--color-danger);background:var(--color-danger-surface);border-radius:6px;padding:.05rem .35rem;font-weight:600}.todo-done-by{font-size:.8rem}.todo-item-actions{display:flex;gap:.3rem;margin-left:auto;flex-shrink:0}.chores-toolbar{display:flex;justify-content:flex-end;margin-bottom:.75rem}.rotation-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.75rem;margin-bottom:.6rem;display:flex;flex-direction:column;gap:.45rem}.rotation-card-your-week{border-color:var(--color-primary);background:var(--color-tint)}.rotation-card-header{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.rotation-card-title{font-weight:600}.rotation-interval-label{color:var(--color-text-muted);font-size:.8rem;border:1px solid var(--color-border);border-radius:999px;padding:.05rem .5rem;white-space:nowrap}.rotation-your-week-badge{background:var(--color-primary);color:#fff;font-size:.75rem;font-weight:600;border-radius:999px;padding:.1rem .55rem;white-space:nowrap}.rotation-card-description{color:var(--color-text-muted);font-size:.85rem;margin:0}.rotation-current-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;cursor:pointer}.rotation-current-row input[type=checkbox]{width:1.5rem;height:1.5rem;flex-shrink:0}.rotation-period{font-size:.85rem;color:var(--color-text-muted);white-space:nowrap}.rotation-next-up{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.rotation-next-up-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);margin-right:.15rem}.rotation-next-up-chip{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;border:1px solid var(--color-border);border-radius:999px;padding:.1rem .5rem;background:var(--color-surface);white-space:nowrap}.rotation-card-actions{display:flex;gap:.4rem}.rotation-inactive-section{margin-top:1.25rem;border-top:1px dashed var(--color-border);padding-top:.75rem}.rotation-card-inactive{flex-direction:row;align-items:center;justify-content:space-between}.rotation-card-inactive .rotation-card-title{color:var(--color-text-muted)}.rotation-inactive-chip{color:var(--color-text-muted);font-size:.75rem;border:1px solid var(--color-border);border-radius:999px;padding:.05rem .5rem}.rotation-swap-hint{color:var(--color-text-muted);font-size:.9rem;margin:0 0 .75rem}.rotation-swap-options{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.9rem}.rotation-swap-option{display:flex;align-items:center;gap:.5rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.55rem .75rem;font:inherit;text-align:left}.rotation-swap-option:hover:not(:disabled){border-color:var(--color-primary)}.rotation-swap-option:disabled{opacity:.55;cursor:default}.rotation-swap-current{margin-left:auto;color:var(--color-text-muted);font-size:.8rem}.rotation-anchor-hint{color:var(--color-text-muted);font-size:.75rem;font-weight:400}.rotation-member-builder{border:1px solid var(--color-border);border-radius:10px;padding:.6rem .75rem .75rem;margin:0;display:flex;flex-direction:column;gap:.4rem}.rotation-member-builder legend{padding:0 .25rem}.rotation-member-builder .empty-hint{padding:.25rem 0}.rotation-member-row{display:flex;align-items:center;gap:.5rem}.rotation-member-position{color:var(--color-text-muted);font-size:.85rem;font-variant-numeric:tabular-nums;width:1.2rem;flex-shrink:0}.rotation-member-row .user-chip{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.rotation-member-actions{display:flex;gap:.25rem;margin-left:auto;flex-shrink:0}.rotation-member-add-row{display:flex;align-items:center;gap:.5rem}.rotation-member-add-row select{flex:1;min-width:0}.rotation-first-member-hint{margin:0;color:var(--color-text-muted);font-size:.75rem}.meals-week-grid{display:flex;flex-direction:column;gap:.6rem}@media(min-width:900px){.meals-week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.4rem;align-items:start}}.meals-day-card{display:flex;flex-direction:column;gap:.4rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.6rem;min-width:0}.meals-day-today{border-color:var(--color-primary);background:var(--color-tint)}.meals-day-header{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.meals-day-heading{margin:0;font-size:.85rem;color:var(--color-text-muted)}.meals-day-today .meals-day-heading{color:var(--color-primary)}.meals-add-button{padding:.1rem .5rem;font-size:1rem;line-height:1.2;flex-shrink:0}.meals-slot{display:flex;flex-direction:column;gap:.2rem;width:100%;min-width:0;background:var(--color-background);border:1px solid var(--color-border);border-radius:8px;padding:.45rem .5rem;font:inherit;text-align:left;color:inherit}.meals-slot:hover{border-color:var(--color-primary)}.meals-day-today .meals-slot{background:var(--color-surface)}.meals-empty-slot{border-style:dashed}.meals-slot-main{display:flex;align-items:center;gap:.35rem;min-width:0}.meal-label-badge{color:var(--color-text-muted);font-size:.7rem;border:1px solid var(--color-border);border-radius:999px;padding:.05rem .45rem;white-space:nowrap;flex-shrink:0}.meals-entry-name{font-weight:600;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meals-empty-slot-hint{color:var(--color-text-muted);font-size:.85rem}.meals-entry-composition{color:var(--color-text-muted);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meal-label-chips{display:flex;gap:.4rem}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem}.calendar-range-label{font-weight:600;font-size:1rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-nav-buttons{display:flex;gap:.3rem;flex-shrink:0}.calendar-view-toggle{margin:0;border-bottom:none}.calendar-event-chip{display:flex;align-items:center;gap:.2rem;width:100%;border:none;border-radius:4px;color:#fff;font-size:.68rem;line-height:1.25;padding:.1rem .25rem;text-align:left;overflow:hidden}.calendar-chip-time{flex-shrink:0;font-variant-numeric:tabular-nums;opacity:.9}.calendar-chip-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-chip-repeat{flex-shrink:0;opacity:.85;font-size:.75em;line-height:1}.month-view{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;overflow:hidden}.month-weekday-row{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--color-border)}.month-weekday{text-align:center;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);padding:.35rem 0}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(6,minmax(76px,auto))}.month-day-cell{display:flex;flex-direction:column;gap:2px;padding:2px;border-right:1px solid var(--color-border);border-bottom:1px solid var(--color-border);min-width:0;cursor:pointer}.month-day-cell:hover{background:var(--color-background)}.month-day-cell:nth-child(7n){border-right:none}.month-day-cell:nth-last-child(-n+7){border-bottom:none}.month-day-number{font-size:.75rem;font-weight:600;padding:.1rem .2rem;align-self:flex-start;border-radius:999px;min-width:1.3rem;text-align:center;background:transparent;border:none;color:inherit}.month-day-outside{background:var(--color-background)}.month-day-outside .month-day-number{color:var(--color-text-muted);font-weight:400}.month-day-cell.calendar-day-today .month-day-number{background:var(--color-primary);color:#fff}.calendar-more-count{background:transparent;border:none;color:var(--color-text-muted);font-size:.65rem;text-align:left;padding:0 .25rem}.week-view{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;overflow:hidden}.week-scroll-x{overflow-x:auto}.week-inner{min-width:560px}.week-header-row,.week-allday-row,.week-time-grid{display:grid;grid-template-columns:3rem repeat(7,1fr)}.week-gutter{min-width:0}.week-gutter-label{font-size:.65rem;color:var(--color-text-muted);align-self:center;padding-left:.25rem}.week-day-header{text-align:center;font-size:.75rem;color:var(--color-text-muted);padding:.4rem 0;background:transparent;border:none;border-bottom:1px solid var(--color-border)}.week-day-header.calendar-day-today{color:var(--color-primary)}.week-allday-row{border-bottom:1px solid var(--color-border)}.week-allday-cell{display:flex;flex-direction:column;gap:2px;min-height:1.6rem;padding:2px;border-left:1px solid var(--color-border);min-width:0;cursor:pointer}.week-time-scroll{overflow-y:auto;max-height:min(60vh,620px)}.week-hour-labels{position:relative}.week-hour-label{position:absolute;right:.3rem;transform:translateY(-50%);font-size:.62rem;color:var(--color-text-muted);font-variant-numeric:tabular-nums}.week-day-column{position:relative;border-left:1px solid var(--color-border);min-width:0;cursor:pointer;background-image:linear-gradient(to bottom,var(--color-border) 1px,transparent 1px);background-size:100% 48px}.week-day-column.calendar-day-today,.week-allday-cell.calendar-day-today{background-color:var(--color-tint)}.week-event-block{position:absolute;right:2px;display:flex}.week-event-block .calendar-event-chip{height:100%;align-items:flex-start;flex-wrap:wrap;border:1px solid rgba(255,255,255,.6)}.dialog-backdrop{position:fixed;inset:0;z-index:20;background:#1f243073;display:flex;align-items:flex-end;justify-content:center;overscroll-behavior:none}.dialog-panel{width:100%;max-width:440px;max-height:90vh;overflow-y:auto;overscroll-behavior:contain;background:var(--color-surface);border-radius:16px 16px 0 0;padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom))}@media(min-width:641px){.dialog-backdrop{align-items:center;padding:1rem}.dialog-panel{border-radius:16px}}.dialog-title{margin:0 0 .75rem;font-size:1.1rem}.event-form{display:flex;flex-direction:column;gap:.65rem}.event-form input,.event-form select,.event-form textarea{font:inherit;color:var(--color-text);padding:.5rem .6rem;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);min-width:0;width:100%}.event-allday-label{display:flex;align-items:center;gap:.4rem;font-size:.9rem}.event-form input[type=checkbox]{width:1.1rem;height:1.1rem;flex-shrink:0}.event-form-times{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.event-form-times[data-testid=event-series-timing]{grid-template-columns:repeat(auto-fit,minmax(8rem,1fr))}.event-scope-picker{display:flex;flex-wrap:wrap;gap:.25rem 1rem;padding:.5rem .6rem;border-radius:8px;background:var(--color-tint);font-size:.9rem}.event-scope-picker label{display:flex;align-items:center;gap:.4rem}.event-form .event-scope-picker input[type=radio],.event-form .event-recurrence input[type=radio]{width:1.1rem;height:1.1rem;flex-shrink:0}.event-recurrence{display:flex;flex-direction:column;gap:.5rem;border:1px solid var(--color-border);border-radius:8px;padding:.6rem;margin:0}.event-recurrence-interval{display:flex;align-items:center;gap:.4rem;font-size:.9rem}.event-recurrence-interval input[type=number]{width:4.5rem;flex-shrink:0}.event-recurrence-until{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .9rem;font-size:.9rem}.event-recurrence-until label{display:flex;align-items:center;gap:.4rem}.event-recurrence-until input[type=date]{flex:1;min-width:8rem}.field-hint{margin:0;color:var(--color-text-muted);font-size:.8rem;font-weight:400}.event-form-times .field-label{display:flex;flex-direction:column;gap:.25rem;min-width:0}@media(max-width:420px){.event-form-times,.event-form-times[data-testid=event-series-timing]{grid-template-columns:1fr}.event-recurrence-until input[type=date]{flex-basis:100%}}.event-datetime-pair{display:flex;gap:.35rem}.event-datetime-pair input[type=date]{flex:1;min-width:0}.event-datetime-pair select{width:auto;flex:0 0 auto}.event-assignee-picker{border:1px solid var(--color-border);border-radius:10px;padding:.6rem .75rem .75rem;margin:0;display:flex;flex-direction:column;gap:.4rem}.event-assignee-picker legend{padding:0 .25rem}.event-assignee-option{display:flex;align-items:center;gap:.4rem;font-size:.9rem}.event-assignee-first-hint{margin-left:auto;color:var(--color-text-muted);font-size:.75rem}.event-color-row{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.event-color-swatch{width:1.5rem;height:1.5rem;border-radius:50%;border:2px solid transparent;padding:0;flex-shrink:0}.event-color-swatch-selected{border-color:var(--color-text)}.event-delete-button{color:var(--color-danger);border-color:var(--color-danger)}.spinner-wrapper{min-height:60vh;display:flex;align-items:center;justify-content:center}.spinner{width:32px;height:32px;border:3px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dashboard-header{margin-bottom:.75rem}.dashboard-header h1{margin:0 0 .15rem}.dashboard-date{margin:0;font-size:.9rem;color:var(--color-text-muted)}.dashboard-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-bottom:.75rem}@media(min-width:640px){.dashboard-quick-actions{grid-template-columns:repeat(4,1fr)}}.dashboard-quick-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.5rem .75rem;background:var(--color-tint);border:1px solid var(--color-border);border-radius:10px;color:var(--color-primary-dark);font:inherit;font-size:.9rem;font-weight:500;text-align:center;text-decoration:none;cursor:pointer}.dashboard-quick-action:hover{border-color:var(--color-primary);color:var(--color-primary)}.dashboard-grid{display:grid;grid-template-columns:1fr;gap:.75rem}@media(min-width:640px){.dashboard-grid{grid-template-columns:1fr 1fr}}.dashboard-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:.85rem 1rem;display:flex;flex-direction:column;gap:.5rem;min-height:120px}.dashboard-card-header{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}.dashboard-card-title{font-size:1rem;margin:0}.dashboard-card-title-aside{font-size:.85rem;color:var(--color-text-muted);margin-right:auto;white-space:nowrap}.dashboard-card-link{font-size:.85rem;color:var(--color-primary);text-decoration:none;white-space:nowrap}.dashboard-card-link:hover{text-decoration:underline}.dashboard-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}.dashboard-item{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.35rem 0;border-bottom:1px solid var(--color-border)}.dashboard-item:last-child{border-bottom:none}.dashboard-item-primary{font-weight:500;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-item-secondary{font-size:.8rem;color:var(--color-text-muted);white-space:nowrap;min-width:6.5rem;font-variant-numeric:tabular-nums}.dashboard-item-next{margin:.4rem 0 0;border-top:1px dashed var(--color-border);padding-top:.5rem}.dashboard-item-next .dashboard-item-secondary{white-space:normal}.dashboard-chore-item{justify-content:space-between}.dashboard-chore-label{display:flex;align-items:center;gap:.6rem;cursor:pointer;min-width:0}.dashboard-chore-label input[type=checkbox]{width:1.15rem;height:1.15rem;flex-shrink:0}.dashboard-chore-done{text-decoration:line-through;color:var(--color-text-muted)}.dashboard-today-section{display:flex;flex-direction:column;gap:.35rem}.dashboard-subheading{margin:0;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted)}.dashboard-upcoming-day{margin:.35rem 0 0;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted)}.dashboard-budget-net{margin:0;font-size:1.5rem;font-weight:600;font-variant-numeric:tabular-nums}.dashboard-note-item{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0;color:inherit;text-decoration:none}.dashboard-note-item:hover .dashboard-item-primary{color:var(--color-primary);text-decoration:underline}.dashboard-note-item .dashboard-item-secondary{min-width:0;margin-left:auto}.dashboard-count-secondary{font-size:.85rem;color:var(--color-text-muted);margin:0}.dashboard-card .spinner-wrapper{min-height:64px;flex:1}.query-error{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.5rem 0}.query-error .form-error{margin:0}.budget-summary{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.budget-totals{display:flex;gap:.75rem}.budget-total{flex:1;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:.6rem .85rem;display:flex;flex-direction:column;gap:.15rem;min-width:0}.budget-total-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted)}.budget-total-value{font-size:1.05rem;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.budget-amount-income{color:#047857}.budget-amount-expense{color:var(--color-danger)}.budget-category-rows{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;overflow:hidden}.budget-category-row{display:flex;flex-direction:column;gap:.3rem;padding:.55rem .85rem}.budget-category-row+.budget-category-row{border-top:1px solid var(--color-border)}.budget-envelope-over{background:var(--color-danger-surface)}.budget-category-line{display:flex;align-items:baseline;gap:.5rem}.budget-category-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.budget-kind-badge{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted)}.budget-category-amounts{margin-left:auto;font-size:.9rem;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.budget-category-budget{color:var(--color-text-muted);font-weight:400}.budget-category-bar{height:5px;border-radius:999px;background:var(--color-border);overflow:hidden}.budget-category-bar-fill{height:100%;border-radius:999px;background:var(--color-primary)}.budget-bar-warning{background:var(--color-warning-text)}.budget-bar-over{background:var(--color-danger)}.budget-category-remaining{font-size:.75rem;color:var(--color-text-muted)}.budget-envelope-over .budget-category-remaining{color:var(--color-danger);font-weight:600}.budget-entry-form,.budget-recurrence-form{display:flex;flex-direction:column;gap:.4rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:.75rem .85rem;margin-bottom:1rem}.budget-entry-form input,.budget-entry-form select,.budget-recurrence-form input,.budget-recurrence-form select,.budget-category-form input,.budget-category-form select,.budget-category-row-editing input,.budget-filters select{font:inherit;color:var(--color-text);padding:.5rem .6rem;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);min-width:0}.budget-form-row{display:flex;gap:.4rem}.budget-form-row>input[type=text]{flex:1}.budget-entry-amount{width:7rem}.budget-kind-toggle{display:inline-flex;gap:0;border:1px solid var(--color-border);border-radius:8px;overflow:hidden;align-self:flex-start}.budget-kind-option{border:none;background:var(--color-surface);padding:.35rem .8rem;font-size:.9rem;color:var(--color-text-muted)}.budget-kind-active{background:var(--color-primary);color:#fff;font-weight:600}.budget-inline-field{display:inline-flex;align-items:center;gap:.35rem;font-size:.9rem;color:var(--color-text-muted)}.budget-inline-field input[type=number]{width:4.5rem}.budget-tag-editor{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}.budget-tag-chip{display:inline-flex;align-items:center;gap:.25rem;background:var(--color-tint);color:var(--color-primary);border-radius:999px;padding:.15rem .6rem;font-size:.8rem;white-space:nowrap}.budget-tag-remove{border:none;background:none;color:inherit;padding:0;font-size:.95rem;line-height:1}.budget-tag-input{flex:1;min-width:8rem}.budget-filters{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:1rem}.budget-day-group{margin-bottom:1rem}.budget-day-heading{font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);margin:0 0 .3rem}.budget-entry-row,.budget-recurrence-row,.budget-category-manage-row{display:flex;align-items:center;gap:.6rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;padding:.5rem .75rem;margin-bottom:.4rem}.budget-entry-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.2rem}.budget-entry-description-text{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.budget-entry-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;font-size:.8rem;color:var(--color-text-muted)}.budget-entry-category-name{white-space:nowrap}.budget-recurring-badge{background:var(--color-warning-surface);color:var(--color-warning-text);border-radius:999px;padding:.1rem .5rem;font-size:.75rem;white-space:nowrap}.budget-entry-amount-text{font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}.budget-entry-actions{display:flex;gap:.25rem;flex-shrink:0}.budget-category-form{display:grid;grid-template-columns:1fr auto auto auto;gap:.4rem;margin-bottom:1rem}.budget-category-row-editing{flex-wrap:wrap}.budget-category-row-editing input{flex:1;min-width:8rem}@media(max-width:640px){.budget-totals{gap:.4rem}.budget-total{padding:.45rem .5rem}.budget-total-label{font-size:.65rem}.budget-total-value{font-size:.9rem}.budget-form-row{flex-wrap:wrap}.budget-filters select{flex:1 1 45%}.budget-entry-row,.budget-recurrence-row{flex-wrap:wrap}.budget-category-form{grid-template-columns:1fr auto}}
