.feedback-panel{min-width:0}.feedback-toolbar .segmented{background:var(--surface);border-radius:999px;gap:4px;padding:3px;display:inline-flex}.feedback-toolbar .segmented button{min-height:44px;color:var(--ink);border-radius:999px;padding:10px 18px;font-size:14px}.feedback-toolbar .segmented button[aria-pressed=true]{background:var(--green);color:var(--paper)}.feedback-toolbar,.feedback-compose-actions,.feedback-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.feedback-toolbar,.feedback-compose-actions{justify-content:space-between;margin-bottom:20px}.feedback-reports{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;display:grid}.feedback-report{border:1px solid var(--line);text-align:left;background:var(--surface);width:100%;min-width:0;color:var(--ink);border-radius:16px;padding:18px;display:block}.feedback-report p{-webkit-line-clamp:3;overflow-wrap:anywhere;white-space:pre-wrap;-webkit-box-orient:vertical;margin:12px 0;line-height:1.5;display:-webkit-box;overflow:hidden}.feedback-report-meta{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:13px;display:flex}.feedback-report-footer{color:var(--muted);justify-content:flex-end;align-items:center;gap:12px;display:flex}.feedback-report-footer span{align-items:center;gap:5px;margin-right:auto;display:flex}.feedback-pending{margin-bottom:14px}.feedback-empty{color:var(--muted);padding:16px 0}.feedback-error{color:var(--negative,#a53e35);overflow-wrap:anywhere}.feedback-sheet form{gap:14px;min-width:0;display:grid}.feedback-sheet textarea{resize:vertical;width:100%;min-width:0;font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:14px;font-size:16px;line-height:1.5}.feedback-file-input{display:none}.feedback-files{margin:0;padding:0;list-style:none}.feedback-files li{align-items:center;gap:8px;min-width:0;display:flex}.feedback-files li>span{overflow-wrap:anywhere;flex:1;min-width:0}.feedback-actions button,.feedback-compose-actions button{border-radius:999px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;display:inline-flex}.feedback-compose-actions{margin:0}.feedback-detail-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.feedback-media{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:20px 0;display:grid}.feedback-media figure{min-width:0;margin:0}.feedback-media img,.feedback-media video{border-radius:12px;max-width:100%;max-height:60vh;display:block}.feedback-media figcaption{color:var(--muted);overflow-wrap:anywhere;margin-top:8px;font-size:12px}.panel-count{background:var(--green);min-width:19px;height:19px;color:var(--paper);border-radius:999px;justify-content:center;align-items:center;padding:0 5px;font-size:11px;font-weight:700;line-height:1;display:flex;position:absolute;top:5px;right:8px}.more-panel-tile .panel-count{top:9px;right:9px}.changelog-panel{align-content:start;gap:1.5rem;min-width:0;padding:.25rem 0 1.5rem;display:grid}.changelog-release{border-bottom:1px solid var(--line);min-width:0;padding-bottom:1.5rem}.changelog-release:last-child{border-bottom:0}.changelog-release header{flex-wrap:wrap;align-items:baseline;gap:.35rem 1rem;display:flex}.changelog-release h2{margin:0;font-size:1.1rem;font-weight:650}.changelog-release time{color:var(--muted);font-size:.875rem}.changelog-release ul{gap:.6rem;max-width:75ch;margin:.85rem 0 0;padding-left:1.25rem;line-height:1.5;display:grid}.changelog-release li{overflow-wrap:anywhere}.budget-category-sheet .sheet-inner{max-width:100%}.budget-category-sheet .budget-review-body{margin:0 -26px calc(-24px - env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));padding:0 26px calc(24px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));touch-action:pan-y pinch-zoom;min-width:0}.budget-category-sheet .budget-review-body:has(input:focus,textarea:focus,select:focus,[contenteditable=true]:focus){touch-action:auto}.budget-category-sheet .budget-review-hint,.budget-category-sheet .budget-review-tabs,.budget-category-sheet .budget-entry-editor-amount,.budget-category-sheet .budget-entry-editor-meta,.budget-category-sheet .budget-review-category>svg,.budget-category-sheet .budget-category-reference,.budget-category-sheet .budget-review-accessible-actions{touch-action:pan-y pinch-zoom}.budget-category-sheet .budget-category-reference{display:inline-block}.budget-review-tabs{background:var(--field);border-radius:14px;gap:4px;margin:4px 0 20px;padding:4px;display:flex}.budget-review-tabs button{min-height:44px;font:inherit;color:var(--muted);background:0 0;border:0;border-radius:11px;flex:1}.budget-review-tabs button[aria-pressed=true]{color:var(--green);background:var(--surface);font-weight:650}.budget-review-stage{background:var(--surface);border-radius:20px;position:relative;overflow:clip}.budget-review-card{background:color-mix(in srgb, var(--green) 6%, var(--surface));border:1px solid color-mix(in srgb, var(--green) 15%, var(--surface));touch-action:auto;border-radius:20px;gap:16px;padding:20px;display:grid;position:relative}.budget-review-card--cue{animation:.85s ease-in-out .25s budget-review-swipe-cue}.budget-review-card:focus-within{animation:none}.budget-review-card:focus-visible{outline:2px solid var(--green);outline-offset:-4px}@keyframes budget-review-swipe-cue{0%,to{transform:translate(0)}30%{transform:translate(-10px)}65%{transform:translate(10px)}}.budget-review-category{grid-template-columns:28px minmax(0,1fr);align-items:center;gap:12px;display:grid}.budget-review-category>div{min-width:0}.budget-review-category .budget-select>select{width:100%;min-width:0;min-height:48px;font:inherit;background:var(--surface);color:var(--ink);border:0;border-radius:12px;padding:12px 36px 12px 12px;font-size:16px}.budget-review-accessible-actions{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.budget-review-accessible-actions:focus-within{clip-path:none;white-space:normal;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;width:auto;height:auto;margin:14px 0 0;display:grid;position:static;overflow:visible}.budget-review-accessible-actions>button,.budget-soft-button{justify-content:center;align-items:center;gap:8px;min-height:48px;display:inline-flex}.budget-soft-button{font:inherit;background:color-mix(in srgb, var(--green) 10%, var(--surface));color:var(--green);border:0;border-radius:12px;padding:12px 16px}.budget-review-hint{color:var(--muted);justify-content:space-between;gap:8px;margin:14px 0 0;font-size:14px;display:flex}.budget-review-hint>span{align-items:center;gap:4px;display:inline-flex}.budget-review-swipe-label{color:var(--on-negative);background:var(--negative);flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;padding:12px;font-weight:650;display:flex;position:absolute;inset:0}.budget-review-swipe-label[data-direction=approve]{color:var(--on-positive);background:var(--positive);align-items:flex-end}.budget-review-empty{text-align:center;color:var(--muted);padding:32px 0}.budget-review-empty>svg{color:var(--green)}.budget-review-empty button{margin:12px auto;display:flex}@media (prefers-reduced-motion:reduce){.budget-review-card{animation:none}}.budget-receipt-sheet .sheet-inner{max-width:100%}.budget-receipt-capture,.budget-receipt-actions{gap:.65rem;display:flex}.budget-receipt-capture>button,.budget-receipt-actions>button{flex:1;justify-content:center;align-items:center;gap:.45rem;display:flex}.budget-receipt-list{margin:1rem 0;padding:0;list-style:none}.budget-receipt-list li>button{text-align:left;border:0;border-bottom:1px solid var(--line);width:100%;color:inherit;background:0 0;align-items:center;gap:.6rem;padding:.9rem 0;display:flex}.budget-receipt-list li>button>span{flex:1;min-width:0}.budget-receipt-list strong,.budget-split-form .budget-card-heading strong{overflow-wrap:anywhere}.budget-receipt-list small{color:var(--muted);margin-top:.2rem;display:block}.budget-receipt-import{justify-content:space-between;align-items:center;gap:.5rem;padding:.7rem 0;display:flex}.budget-split-form{gap:1rem;min-width:0;display:grid}.budget-split-form label{gap:.4rem;min-width:0;font-size:.875rem;display:grid}.budget-split-form input,.budget-split-form .budget-select>select{box-sizing:border-box;border:1px solid var(--line);width:100%;min-width:0;min-height:44px;font:inherit;color:var(--ink);background:var(--field);border-radius:10px;padding:10px 12px;font-size:16px}.budget-split-form .budget-select>select{padding-right:38px}.budget-split-rows{gap:.7rem;display:grid}.budget-split-row{grid-template-columns:minmax(0,1fr) minmax(4.5rem,.55fr) 2.75rem;align-items:start;gap:.4rem;display:grid}.budget-split-row .icon-button{width:2.75rem;min-width:2.75rem;min-height:2.75rem;margin-top:.1rem}.budget-split-remainder{justify-self:end;padding:0;font-size:.75rem}.budget-split-total{justify-content:space-between;display:flex}.budget-receipt-summary p{overflow-wrap:anywhere;margin:0 0 .75rem}.budget-receipt-summary dl{gap:.65rem;margin:0;display:grid}.budget-receipt-summary dl>div{justify-content:space-between;gap:1rem;display:flex}.budget-receipt-summary dt{overflow-wrap:anywhere;min-width:0}.budget-receipt-summary dd{white-space:nowrap;margin:0}.budget-receipt-lines>div{justify-content:space-between;gap:1rem;margin-top:.55rem;font-size:.875rem;display:flex}.budget-receipt-lines>div>span:first-child{overflow-wrap:anywhere;min-width:0}.budget-receipt-lines>div>span:last-child{white-space:nowrap}.budget-receipt-actions{background:var(--surface);z-index:1;padding:.75rem 0;position:sticky;bottom:-1px}.budget-bank-transaction>.budget-entry-main{width:100%;padding:0}.budget-entry-receipt-actions{gap:.5rem;display:flex}.budget-entry-receipt-actions>button{flex:1;justify-content:center;align-items:center;gap:.45rem;display:flex}.budget-receipt-photos img{border-radius:.5rem;width:100%;height:auto;margin:.5rem 0;display:block}.budget-split-form>.budget-card-heading{background:color-mix(in srgb, var(--green) 8%, var(--surface));border-radius:16px;align-items:start;margin:0;padding:18px}.budget-split-form>.budget-card-heading>strong:last-child{color:var(--green);white-space:nowrap}.budget-split-total{color:var(--green);background:color-mix(in srgb, var(--green) 8%, var(--surface));border-radius:12px;padding:14px 16px}.budget-entry-editor{gap:16px;min-width:0;display:grid}.budget-entry-editor-meta{min-height:44px;color:var(--muted);justify-content:space-between;align-items:center;gap:12px;font-size:14px;display:flex}.budget-entry-editor-meta>span{overflow-wrap:anywhere;min-width:0}.budget-entry-editor-meta>button{flex:none}.budget-entry-editor-amount{letter-spacing:-.04em;overflow-wrap:anywhere;font-size:clamp(2rem,8vw,3rem);line-height:1.1}.budget-entry-editor-description{min-width:0;color:var(--muted);gap:8px;font-size:14px;display:grid}.budget-entry-editor-description>input{border:1px solid var(--line);background:var(--field);width:100%;min-width:0;min-height:48px;color:var(--ink);font:inherit;-webkit-user-select:text;user-select:text;border-radius:12px;padding:12px;font-size:16px}.budget-chart-selectable .budget-donut circle[role=button]{cursor:pointer;transition:opacity .14s,stroke-width .14s}.budget-chart-selectable .budget-donut circle[data-selected]{stroke-width:30px}.budget-chart-selectable .budget-donut circle[data-dimmed]{opacity:.22;filter:saturate(.25)}.budget-chart-selectable .budget-chart-list>li[data-selected]>button{font-weight:600}.budget-chart-selectable .budget-chart-list>li[data-dimmed]{filter:grayscale()}.budget-chart-selectable .budget-chart-list>li[data-dimmed]>button{color:color-mix(in srgb, var(--ink) 75%, var(--paper))}.budget-chart-selectable .budget-chart-list>li[data-dimmed]:hover>button,.budget-chart-selectable .budget-chart-list>li[data-dimmed]:focus-within>button{color:var(--ink)}@media (prefers-reduced-motion:reduce){.budget-chart-selectable .budget-donut circle[role=button]{transition:none}}.budget-overview-reorder-handle{width:44px;height:44px;color:var(--muted);cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;z-index:3;background:0 0;border-radius:12px;justify-content:flex-start;align-items:flex-start;padding:8px;display:flex;position:absolute;top:0;left:0;touch-action:none!important}.budget-overview-editor .is-dragging .budget-overview-reorder-handle{cursor:grabbing}.budget-overview-editor.is-editing .budget-overview-widget{min-height:88px}.budget-overview-editor.is-editing .budget-overview-widget-content{opacity:.55;pointer-events:none;padding-top:36px}.budget-overview-edit-cover{border-radius:inherit;outline:1px dashed var(--muted);z-index:1;background:0 0;width:100%;height:100%;position:absolute;inset:0}.budget-overview-edit-cover>span,.budget-overview-remove{width:44px;height:44px;color:var(--ink);place-items:center;display:grid;position:absolute;top:0}.budget-overview-edit-cover>span{right:44px}.budget-overview-edit-cover>span:before,.budget-overview-remove:before{content:"";background:var(--paper);border:1px solid var(--line);border-radius:50%;position:absolute;inset:6px}.budget-overview-edit-cover svg,.budget-overview-remove svg{position:relative}.budget-overview-remove{z-index:2;background:0 0;border-radius:50%;right:0}.budget-overview-edit-cover:focus-visible,.budget-overview-reorder-handle:focus-visible,.budget-overview-remove:focus-visible{outline:2px solid var(--green);outline-offset:2px}.budget-overview-editor .is-dragging .budget-overview-edit-cover{outline:2px solid var(--green)}.budget-overview-empty-widget{padding:52px 16px 16px;font-size:15px;font-weight:600}.budget-overview-widget-settings,.budget-overview-widget-picker{gap:16px;min-width:0;display:grid}.budget-overview-widget-settings>label{min-width:0;color:var(--muted);gap:8px;font-size:14px;display:grid}.budget-overview-settings-sheet .budget-select{width:100%;min-width:0;max-width:none}.budget-overview-settings-sheet select{border:1px solid var(--line);width:100%;min-width:0;min-height:44px;color:var(--ink);background:var(--field);border-radius:10px;padding:10px 38px 10px 12px;font-size:16px}.budget-overview-widget-picker button{text-align:left;overflow-wrap:anywhere;align-items:center;gap:12px;min-height:48px;display:flex}.budget-overview-widget-picker svg{flex-shrink:0}.custom-icon-picker{border:0;min-width:0;margin:0;padding:0}.custom-icon-picker legend{margin-bottom:10px;font-weight:600}.custom-icon-picker>div{grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:8px;display:grid}.custom-icon-picker button{border:1px solid var(--line);background:var(--surface);min-height:48px;color:var(--ink);border-radius:10px;justify-content:center;align-items:center;display:flex}.custom-icon-picker button[aria-pressed=true]{border-color:var(--green);outline:2px solid var(--green);outline-offset:-2px}.custom-icon-picker button{white-space:nowrap;padding:6px;font-size:14px}.budget-panel{gap:14px;min-width:0;display:grid}.budget-toolbar,.budget-toolbar-actions{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.budget-toolbar-actions{flex-shrink:0}.budget-period{min-width:0;max-width:240px;display:block;position:relative}.budget-panel select,.budget-panel input,.budget-panel textarea,.budget-settings input,.budget-customize select{font:inherit;min-width:0;max-width:100%;min-height:44px;color:var(--ink);background:var(--field);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:16px}.budget-panel select{width:100%}.budget-period select{appearance:none;padding-right:36px}.budget-panel button,.budget-settings button,.budget-customize button,.budget-entry-details button{touch-action:manipulation}.budget-tabs{background:var(--surface);border-radius:13px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;display:grid}.budget-tabs button{min-height:44px;color:var(--muted);font:inherit;background:0 0;border:0;border-radius:9px;font-size:14px;font-weight:600}.budget-tabs button[aria-selected=true]{background:var(--field);color:var(--ink);box-shadow:0 1px 3px #0000000a}.budget-overview{align-items:start;gap:14px;min-width:0;display:grid}.budget-cashflow{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.budget-stat{text-align:left;min-width:0;min-height:82px;color:var(--ink);background:var(--surface);border:0;border-radius:15px;align-content:start;gap:9px;padding:16px 12px;display:grid}.budget-stat>span{color:var(--muted);font-size:13px}.budget-stat>strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(18px,3.9vw,28px);font-weight:650}.budget-card{background:var(--surface);border-radius:18px;min-width:0;padding:18px}.budget-card h2{margin:0 0 16px;font-size:17px;font-weight:650}.budget-card-heading{justify-content:space-between;align-items:center;gap:8px;min-width:0;margin-top:-6px;margin-bottom:8px;display:flex}.budget-card-heading h2{margin:0}.budget-text-button{min-height:44px;color:var(--green);font:inherit;background:0 0;border:0;flex-shrink:0;justify-content:center;align-items:center;gap:7px;padding:8px 4px;font-size:14px;text-decoration:none;display:inline-flex}.budget-panel .secondary-button,.budget-category-sheet .secondary-button{min-height:44px;font:inherit;color:var(--ink);border:1px solid var(--line);background:var(--field);border-radius:11px;padding:10px 14px;font-size:14px}.budget-help,.budget-updated,.budget-empty,.budget-chat-note{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:14px;line-height:1.5}.budget-basis{grid-column:1/-1}.budget-empty{padding:18px 0}.budget-chart-list,.budget-planned ul,.budget-entries,.budget-question-history,.budget-widget-options{margin:0;padding:0;list-style:none}.budget-donut-layout{align-items:center;gap:14px;min-width:0;display:grid}.budget-donut{justify-self:center;width:180px;height:180px;position:relative}.budget-donut svg{width:100%;height:100%;display:block;overflow:visible}.budget-donut-center{pointer-events:none;text-align:center;place-content:center;gap:4px;display:grid;position:absolute;inset:0}.budget-donut-center strong{font-variant-numeric:tabular-nums;font-size:20px;font-weight:650}.budget-donut-center span{color:var(--muted);font-size:12px}.budget-chart-list{gap:3px;min-width:0;display:grid}.budget-chart-list button{width:100%;min-width:0;min-height:46px;color:var(--ink);text-align:left;font:inherit;background:0 0;border:0;align-content:center;gap:9px;padding:8px 0;display:grid}.budget-chart-list-top{align-items:center;gap:8px;min-width:0;font-size:14px;display:flex}.budget-chart-category{overflow-wrap:anywhere;flex:1;align-items:center;gap:9px;min-width:0;display:flex}.budget-chart-category i{border-radius:50%;flex:0 0 8px;width:8px;height:8px;display:block}.budget-chart-list-top>strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.budget-chart-list-top>svg{color:var(--muted);flex-shrink:0}.budget-bar-track{background:var(--line);border-radius:4px;height:4px;overflow:hidden}.budget-bar-track>span{border-radius:inherit;height:100%;display:block}.budget-period-chart{min-width:0}.budget-period-chart svg{width:100%;height:auto;min-height:160px;display:block;overflow:visible}.budget-chart-axis{stroke:var(--line)}.budget-chart-column,.budget-chart-point{fill:var(--green)}.budget-chart-hit{fill:#0000}.budget-chart-line{fill:none;stroke:var(--green);stroke-width:3px}.budget-chart-label{fill:var(--muted);font-size:15px}.budget-chart-range{color:var(--muted);justify-content:space-between;gap:10px;margin-top:5px;font-size:12px;display:flex}.budget-panel svg [role=button]{cursor:pointer}.budget-panel svg [role=button]:focus-visible{outline:3px solid var(--green);outline-offset:4px}.budget-card-link{color:var(--ink);text-align:left;width:100%;min-width:0;min-height:44px;font:inherit;background:0 0;border:0;justify-content:space-between;align-items:center;gap:10px;padding:0;display:flex}.budget-card-link>span{gap:8px;min-width:0;display:grid}.budget-card-link>svg{color:var(--muted);flex-shrink:0}.budget-card-link>span>span{color:var(--muted);font-size:14px}.budget-card-link strong{font-size:16px;font-weight:600}.budget-planned .budget-card-link strong{font-variant-numeric:tabular-nums;font-size:26px}.budget-planned ul{gap:16px;margin-top:20px;display:grid}.budget-planned li{justify-content:space-between;gap:12px;font-size:14px;display:flex}.budget-planned li>span{overflow-wrap:anywhere;min-width:0}.budget-planned li>strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}.budget-expenses{gap:12px;min-width:0;display:grid}.budget-expense-search{align-items:center;gap:8px;min-width:0;display:flex}.budget-expense-search>button{flex-shrink:0}.budget-search{flex:1;align-items:center;min-width:0;display:flex;position:relative}.budget-search svg{color:var(--muted);position:absolute;left:12px}.budget-search input{width:100%;padding-left:38px}.budget-entry-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.budget-entry-filters label{min-width:0}.budget-entry-filters select{padding-inline:8px}.budget-entry{border-bottom:1px solid var(--line);align-items:center;gap:4px;min-width:0;display:flex}.budget-entry:last-child{border:0}.budget-entry-main{min-width:0;min-height:76px;color:var(--ink);text-align:left;font:inherit;background:0 0;border:0;flex:1;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;display:flex}.budget-entry-text{gap:6px;min-width:0;display:grid}.budget-entry-text>strong{overflow-wrap:anywhere;font-size:15px;font-weight:550;line-height:1.35}.budget-entry-text>span{color:var(--muted);overflow-wrap:anywhere;font-size:12px;line-height:1.4}.budget-entry-amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;gap:5px;font-size:14px;display:grid}.budget-entry-amount strong{font-weight:600}.budget-entry-amount small{color:var(--muted);margin-top:3px;font-size:11px;font-weight:400;display:block}.budget-entry-edit{color:var(--muted);flex-shrink:0}.budget-active-filter{justify-content:space-between;align-items:center;gap:8px;min-width:0;font-size:14px;display:flex}.budget-active-filter>span{overflow-wrap:anywhere}.budget-entry-details .sheet-inner{gap:18px;display:grid}.budget-detail-amount{font-variant-numeric:tabular-nums;font-size:32px;font-weight:650}.budget-entry-details dl{gap:18px;margin:0;display:grid}.budget-entry-details dl>div{justify-content:space-between;align-items:baseline;gap:20px;font-size:15px;display:flex}.budget-entry-details dt{color:var(--muted)}.budget-entry-details dd{text-align:right;overflow-wrap:anywhere;margin:0}.budget-chat{flex-direction:column;gap:22px;min-width:0;min-height:48dvh;display:flex}.budget-question-history{gap:28px;min-width:0;display:grid}.budget-question-history li{overflow-wrap:anywhere;gap:14px;min-width:0;font-size:15px;line-height:1.55;display:grid}.budget-question-prompt{background:var(--surface);white-space:pre-wrap;border-radius:17px 17px 4px;justify-self:end;max-width:90%;padding:12px 16px}.budget-answer{min-width:0}.budget-answer>p{white-space:pre-wrap;margin:0}.budget-answer-chart{border:1px solid var(--line);border-radius:16px;min-width:0;margin-top:18px;padding:18px}.budget-answer-chart h3{margin:0 0 14px;font-size:16px;font-weight:600}.budget-answer-actions{flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:10px;display:flex}.budget-answer>.budget-chat-note{margin-top:10px}.budget-chat-composer{border:1px solid var(--line);background:var(--field);border-radius:18px;align-items:flex-end;gap:8px;min-width:0;margin-top:auto;padding:8px;display:flex}.budget-chat-composer textarea{resize:vertical;background:0 0;border:0;flex:1;width:100%;min-height:70px;max-height:200px;padding:8px}.budget-chat-composer .budget-send{background:var(--green);color:var(--paper);border-radius:50%;flex-shrink:0}.budget-chat-composer .budget-send:disabled{opacity:.45}.budget-source-form{gap:18px;min-width:0;display:grid}.budget-source-form label{gap:8px;min-width:0;font-size:14px;display:grid}.budget-source-form input{width:100%}.budget-source-form>button{justify-self:start;min-height:44px;padding-inline:18px}.budget-settings-link{width:100%;min-width:0;min-height:52px;color:var(--ink);font:inherit;background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;font-size:15px;text-decoration:none;display:flex}.budget-settings-link>svg{color:var(--muted);flex-shrink:0}.budget-source-settings,.budget-import-notes{min-width:0;margin:12px 0}.budget-settings summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:15px}.budget-source-settings[open] summary{margin-bottom:8px}.budget-import-notes ul{color:var(--muted);padding-left:20px;font-size:14px;line-height:1.5}.budget-updated{margin-top:20px;font-size:12px}.budget-widget-options{gap:8px;display:grid}.budget-widget-options>li{border-bottom:1px solid var(--line);min-width:0;padding-bottom:12px}.budget-widget-options>li:last-child{border:0}.budget-widget-option-top{align-items:center;gap:4px;min-width:0;display:flex}.budget-widget-option-top>label{overflow-wrap:anywhere;flex:1;align-items:center;gap:10px;min-width:0;min-height:44px;font-size:15px;display:flex}.budget-widget-option-top input{width:21px;height:21px;accent-color:var(--green);flex-shrink:0}.budget-widget-option-top>button{flex-shrink:0}.budget-widget-chart-option{color:var(--muted);justify-content:space-between;align-items:center;gap:14px;margin-top:6px;padding-left:31px;font-size:14px;display:flex}.budget-error{background:var(--surface);border:1px solid var(--line);border-radius:12px;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:10px 12px;font-size:14px;line-height:1.4;display:flex}.budget-error>span{overflow-wrap:anywhere;min-width:0}.budget-error>button{flex-shrink:0}.budget-refreshing{animation:1s linear infinite budget-spin}.budget-category-sheet .sheet-inner{min-width:0}.budget-category-sheet .budget-help{margin-bottom:12px}.budget-category-actions{flex-wrap:wrap;gap:10px;margin-bottom:12px;display:flex}.budget-select-all{align-items:center;gap:10px;min-height:44px;font-size:14px;display:flex}.budget-select-all input,.budget-category-select input{width:22px;height:22px;accent-color:var(--green);flex-shrink:0}.budget-category-rows{overscroll-behavior:contain;max-height:min(48svh,500px);margin-bottom:18px;display:grid;overflow-y:auto}.budget-category-row{border-bottom:1px solid var(--line);grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px;padding:14px 0;display:grid}.budget-category-select{justify-content:center;align-items:center;min-width:44px;min-height:44px;display:flex}.budget-category-row>div{gap:8px;min-width:0;display:grid}.budget-category-row a{color:var(--ink);overflow-wrap:anywhere;font-size:14px;line-height:1.4;text-decoration:none}.budget-category-row a:hover{text-decoration:underline}.budget-category-reference{color:var(--muted);font-size:12px;line-height:1.4}.budget-category-row input[type=text],.budget-category-row .budget-select>select{font:inherit;border:1px solid var(--line);width:100%;min-width:0;min-height:44px;color:var(--ink);background:var(--field);border-radius:10px;padding:10px 12px;font-size:16px}.budget-category-row .budget-select>select{padding-right:38px}.budget-overview-editor{gap:14px;min-width:0;display:grid}.budget-overview-edit-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.budget-overview-add{min-width:0}.budget-overview-add-options{flex-wrap:wrap;gap:8px;display:flex}.budget-overview-widget{border-radius:18px;min-width:0;transition:transform .16s;position:relative}.budget-overview-widget[data-widget-id=cashflow]{grid-column:1/-1}.budget-overview-widget.is-dragging{z-index:2;transition:none}.budget-overview-widget-controls{border:1px solid var(--line);background:var(--surface);border-radius:14px 14px 0 0;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;display:flex}.budget-overview-widget-name{overflow-wrap:anywhere;flex:100%;min-width:0;padding:4px 6px;font-size:14px;font-weight:600}.budget-overview-drag{cursor:grab;touch-action:none!important}.budget-overview-widget-content{min-width:0}.budget-overview-chart-option{background:var(--surface);border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px;flex:100%;justify-content:space-between;align-items:center;gap:12px;padding:10px;font-size:14px;display:flex}.budget-linked-bank{border-top:1px solid var(--line);gap:14px;min-width:0;padding-top:18px;display:grid}.budget-linked-bank h3{margin:0;font-size:16px}.budget-linked-bank>strong{overflow-wrap:anywhere;font-size:15px}.budget-category-control{align-items:center;gap:6px;min-width:0;display:flex}.budget-category-control>.budget-select{flex:1;min-width:0}.budget-category-control>.icon-button{flex-shrink:0}.budget-entry-category{gap:10px;min-width:0;display:grid}.budget-entry-category>label{color:var(--muted);font-size:14px}.budget-entry-category select{border:1px solid var(--line);width:100%;min-height:44px;color:var(--ink);background:var(--field);border-radius:10px;padding:10px 38px 10px 12px;font-size:16px}.budget-bank-transactions>.budget-card-heading{scroll-margin-top:16px}.budget-overview-chart-option .budget-select{max-width:150px}@media (prefers-reduced-motion:reduce){.budget-overview-widget{transition:none}}.budget-category-apply{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.budget-category-apply .budget-help{margin:0}.budget-category-apply .primary-button{min-height:44px;padding-inline:16px}@keyframes budget-spin{to{transform:rotate(360deg)}}@media (width>=550px){.budget-donut-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.budget-cashflow{gap:14px}.budget-stat{padding:20px}}@media (width>=850px){.budget-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-overview .budget-donut-layout{grid-template-columns:150px minmax(0,1fr);gap:12px}.budget-overview .budget-donut{width:150px;height:150px}.budget-overview .budget-donut-center strong{font-size:17px}.budget-entry-filters{grid-template-columns:minmax(0,1fr) repeat(2,minmax(140px,220px))}.budget-expenses .budget-entries{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;column-gap:30px;display:grid}.budget-answer-chart{max-width:800px}}@media (width>=1250px){.budget-overview .budget-donut-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.budget-overview .budget-donut{width:180px;height:180px}.budget-overview .budget-donut-center strong{font-size:20px}}@media (prefers-reduced-motion:reduce){.budget-refreshing{animation:none}}.budget-tabs{grid-template-columns:none;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column}.budget-bank{gap:18px;min-width:0;display:grid}.budget-bank-accounts{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:14px;min-width:0;display:grid}.budget-bank-account{text-align:left;color:var(--ink);font:inherit;border:1px solid #0000}.budget-bank-account[aria-pressed=true]{border-color:var(--green)}.budget-bank-account-title{justify-content:space-between;align-items:center;gap:12px;font-size:16px;font-weight:600;display:flex}.budget-bank-account-title>span{overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.budget-bank-account-title small{color:var(--muted);font-size:12px;font-weight:400}.budget-bank-account-title svg{color:var(--muted);flex-shrink:0}.budget-bank-account dl{gap:12px;margin:20px 0 0;display:grid}.budget-bank-account dl>div{justify-content:space-between;align-items:baseline;gap:14px;font-size:14px;display:flex}.budget-bank-account dt{color:var(--muted)}.budget-bank-account dd{text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:600}.budget-bank-connections summary{cursor:pointer;min-height:44px;padding-block:12px;font-size:14px}.budget-bank-connection{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:12px 0;display:flex}.budget-bank-connection>div:first-child{gap:6px;min-width:0;display:grid}.budget-bank-connection strong{font-size:15px;font-weight:600}.budget-bank-connection span{color:var(--muted);font-size:12px}.budget-bank-connection-actions{flex-wrap:wrap;gap:8px;display:flex}.budget-bank-link,.budget-bank-connect{justify-items:start;gap:10px;display:grid}.budget-bank-connect label{align-items:center;gap:10px;min-height:44px;font-size:14px;line-height:1.45;display:flex}.budget-bank-connect input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--green);flex-shrink:0}.budget-bank-transactions{gap:12px;min-width:0;display:grid}.budget-bank-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;display:grid}.budget-bank-filters label{min-width:0}.budget-bank-transaction{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;min-width:0;padding:16px 0;display:flex}.budget-bank-transaction:last-child{border:0}.budget-load-more{justify-self:start}.budget-bank-disconnect-actions{flex-wrap:wrap;justify-content:end;gap:12px;margin-top:24px;display:flex}.budget-bank-disconnect-actions button{min-height:44px;padding-inline:18px}.budget-stat{padding-inline:8px}.budget-stat>strong{white-space:nowrap;overflow-wrap:normal;letter-spacing:-.035em;font-size:clamp(15px,3.5vw,28px)}@media (width<=359px){.budget-cashflow{grid-template-columns:minmax(0,1fr);gap:6px}.budget-stat{justify-content:space-between;align-items:center;min-height:52px;padding:12px 16px;display:flex}.budget-stat>strong{font-size:20px}}@media (width>=550px){.budget-stat{padding-inline:20px}}.budget-select{width:100%;min-width:0;display:block;position:relative}.budget-select>select{appearance:none;width:100%;min-width:0;padding-right:38px}.budget-select>svg{color:var(--muted);pointer-events:none;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.budget-period{flex-shrink:0;width:140px;max-width:140px}.budget-toolbar-actions{gap:4px}.budget-entry-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-entry-filters>label:first-child{grid-column:1/-1}.budget-entry-filters .budget-select>select{padding-left:12px;padding-right:38px}.budget-widget-chart-option>.budget-select{width:130px}.budget-widget-chart-option select{width:100%}@media (width<=549px){.budget-toolbar-actions [data-budget-customize-shortcut]{display:none}}@media (width<=359px){.budget-period{width:132px;max-width:132px}.budget-toolbar{gap:6px}}@media (width>=550px){.budget-entry-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.budget-entry-filters>label:first-child{grid-column:auto}}.budget-plan-editor form{gap:18px;min-width:0;display:grid}.budget-plan-editor label{gap:8px;min-width:0;font-size:14px;display:grid}.budget-plan-editor input,.budget-plan-editor select{width:100%;min-width:0;max-width:100%;min-height:44px;font:inherit;border:1px solid var(--line);color:var(--ink);background:var(--field);border-radius:10px;padding:10px 12px;font-size:16px}.budget-entry-category-label{align-items:flex-start;gap:6px;display:flex}.budget-entry-category-label>svg{flex-shrink:0;margin-top:1px}.budget-entry-category-label>span{min-width:0}.budget-chart-category>svg{flex-shrink:0}.budget-category-settings-list{margin:10px 0 0;padding:0;list-style:none}.budget-category-settings-list li+li{border-top:1px solid var(--line)}.budget-category-settings-list li{align-items:center;gap:8px;display:flex}.budget-category-settings-list button{width:100%;min-height:56px;color:var(--ink);font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:12px;min-width:0;padding:12px 0;display:flex}.budget-category-settings-list button>span{overflow-wrap:anywhere;flex:1;min-width:0}.budget-category-settings-list button>svg{flex-shrink:0}.budget-category-settings-list .budget-category-featured{width:44px;min-height:44px;color:var(--muted);flex:0 0 44px;justify-content:center}.budget-category-settings-list .budget-category-featured[aria-pressed=true]{color:var(--green)}.budget-categories-sheet .budget-text-button{align-items:center;gap:8px;min-height:44px;display:flex}.budget-category-editor form{gap:20px;min-width:0;display:grid}.budget-category-editor form>label{gap:8px;min-width:0;font-size:14px;display:grid}.budget-category-editor form>label>input{width:100%;min-width:0;max-width:100%;min-height:44px;font:inherit;border:1px solid var(--line);color:var(--ink);background:var(--field);border-radius:10px;padding:10px 12px;font-size:16px}.budget-category-editor input[readonly]{color:var(--muted)}.budget-category-palette{border:0;min-width:0;margin:0;padding:0}.budget-category-palette legend{margin-bottom:10px;font-weight:600}.budget-category-palette>div{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:8px;display:grid}.budget-category-palette button{background:var(--surface);border:1px solid var(--line);border-radius:10px;justify-content:center;align-items:center;min-height:48px;padding:8px;display:flex}.budget-category-palette button i{border-radius:50%;width:28px;height:28px;display:block}.budget-category-palette button[aria-pressed=true]{outline:2px solid var(--green);outline-offset:-2px}.budget-category-custom-color{justify-items:center;gap:2px;font-size:11px;line-height:1.2;display:grid}.budget-category-custom-color input{background:0 0;border:0;border-radius:6px;width:40px;min-width:0;height:30px;min-height:30px;padding:0}.budget-plan-fields{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;display:grid}.budget-plan-kind{background:var(--surface);border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;display:grid}.budget-plan-kind button{min-height:44px;font:inherit;color:var(--muted);background:0 0;border:0;border-radius:8px;font-size:15px}.budget-plan-kind button[aria-pressed=true]{color:var(--ink);background:var(--field)}.budget-plan-save{justify-content:end;display:flex}.budget-plan-save>button{min-width:100px;min-height:44px;padding-inline:24px}.budget-plan-save{flex-wrap:wrap;justify-content:space-between;gap:12px}.budget-plan-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.budget-plan-totals button{color:var(--ink);text-align:left;background:0 0;border:0;gap:8px;min-width:0;padding:10px 0;display:grid}.budget-plan-totals span{color:var(--muted);font-size:13px}.budget-plan-totals strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:clamp(16px,4vw,23px);font-weight:600}.budget-plan-preview{width:100%;min-height:44px;font:inherit;color:var(--ink);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:14px;padding:0;display:flex}.budget-plan-preview>span{overflow-wrap:anywhere;gap:4px;min-width:0;display:grid}.budget-plan-preview small{color:var(--muted);font-size:12px}.budget-plan-list{margin:14px 0 0;padding:0;list-style:none}.budget-plan-list>li{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:end;gap:8px;padding:14px 0;display:flex}.budget-plan-list>li:last-child{border-bottom:0}.budget-plan-main{color:var(--ink);font:inherit;text-align:left;background:0 0;border:0;justify-content:space-between;gap:16px;width:100%;min-width:0;padding:0;display:flex}.budget-plan-main>span{overflow-wrap:anywhere;gap:6px;min-width:0;display:grid}.budget-plan-main>span>strong{font-size:15px;font-weight:600}.budget-plan-main>strong{white-space:nowrap;font-size:15px;font-weight:600}.budget-plan-main small{color:var(--muted);font-size:12px;line-height:1.4}.budget-plan-row-actions{gap:4px;display:flex}.budget-plan-editor .budget-select>select{padding-right:38px}.budget-category-editor .budget-plan-save{z-index:1;padding-block:12px max(12px, env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));background:var(--paper);border-top:1px solid var(--line);position:sticky;bottom:0}.budget-category-editor .custom-icon-picker{padding-bottom:12px}.media-review{gap:12px;min-width:0;max-width:100%;padding:20px 0;display:grid}.media-review-stars{flex-wrap:wrap;gap:5px;display:flex}.media-review-stars button{min-width:44px;min-height:44px;color:var(--green)}.media-review-feedback{width:100%;min-width:0}.media-review-feedback summary{cursor:pointer;min-height:44px;padding:12px 0}.media-review-feedback label{gap:8px;margin:16px 0;font-size:14px;display:grid}.media-review textarea{background:var(--field);color:var(--ink);border:1px solid var(--line);font:inherit;resize:vertical;border-radius:12px;width:100%;min-width:0;max-width:100%;padding:12px;font-size:16px}.suggestions-panel{min-width:0}.sheet.suggestions-sheet{width:min(100%,960px);max-width:min(100vw,960px)}.suggestions-sheet:has(.suggestions-panel) .sheet-inner{flex-direction:column;max-height:calc(100svh - 40px);display:flex;overflow:hidden}.suggestions-sheet .sheet-header{flex:none}.suggestions-sheet .suggestions-panel{flex-direction:column;min-height:0;display:flex}.suggestions-sheet .suggestions-results{overscroll-behavior-y:contain;min-height:0;padding:3px;overflow-y:auto}.suggestions-sheet .suggestions-panel>form{flex:none;margin-top:14px}.suggestion-shelves,.suggestion-shelf{min-width:0}.suggestion-shelves{gap:22px;display:grid}.suggestion-shelf h3{margin:0 0 12px;font-size:17px;font-weight:650}.suggestion-row{overscroll-behavior-x:contain;scroll-snap-type:x proximity;grid-auto-columns:clamp(116px,30vw,156px);grid-auto-flow:column;justify-content:start;gap:14px;padding:3px 3px 10px;display:grid;overflow-x:auto}.suggestion-cell{scroll-snap-align:start;min-width:0}.suggestion-tile{width:100%;color:var(--ink);text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;flex-direction:column;gap:7px;padding:0;display:flex}.suggestion-tile:focus-visible,.suggestion-row:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}.suggestion-tile .suggestion-title{-webkit-line-clamp:2;overflow-wrap:anywhere;background:0 0;border:0;border-radius:0;-webkit-box-orient:vertical;width:100%;padding:0;font-size:14px;font-weight:600;line-height:1.35;display:-webkit-box;overflow:hidden}.suggestion-subtitle{color:var(--muted);-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:12px;line-height:1.35;display:-webkit-box;overflow:hidden}.suggestions-results .suggestion-tile .book-cover,.suggestion-tile .suggestion-artwork{aspect-ratio:2/3;object-fit:cover;border-radius:8px;flex:none;width:100%;height:auto;margin:0;display:grid;overflow:hidden}.suggestion-tile .book-cover img{object-fit:cover;width:100%;height:100%}@media (width>=700px){.suggestion-row{grid-auto-columns:156px;gap:18px}}.suggestions-panel>p{white-space:pre-line;overflow-wrap:anywhere;margin:10px 0 20px;font-size:15px;line-height:1.6}.suggestions-panel form{gap:6px;margin-top:25px;display:flex}.suggestions-panel input{min-width:0;min-height:44px;font:inherit;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:12px;flex:1;padding:10px 12px;font-size:16px}.suggestions-results{gap:8px;display:grid}.suggestions-results .book-cover{flex:0 0 46px;width:46px;height:68px;margin:0}.suggestion-title{text-align:left;border:1px solid var(--line);background:var(--paper);width:100%;color:var(--ink);border-radius:14px;align-items:center;gap:14px;padding:10px;display:flex}.suggestion-title>span{flex:1;min-width:0}.suggestion-title strong,.suggestion-title small{overflow-wrap:anywhere;display:block}.suggestion-title small{color:var(--muted);margin-top:4px}.suggestion-artwork{object-fit:cover;background:var(--surface);border-radius:6px;flex:0 0 48px;width:48px;height:72px}span.suggestion-artwork{place-items:center;display:grid}.tv-player{z-index:1000;color:#fff;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);isolation:isolate;background:#000;flex-direction:column;min-width:0;display:flex;position:fixed;inset:0}.tv-player.tv-player-floating{opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden}.tv-player video{object-fit:contain;flex:1;width:100%;height:100%;min-height:0}.tv-player video:focus-visible{outline-offset:-3px;outline:2px solid #fff}.tv-player-toolbar{top:env(safe-area-inset-top);z-index:2;background:linear-gradient(#000b,#0000);align-items:center;gap:.5rem;padding:.65rem 1rem 2rem;display:flex;position:absolute;left:0;right:0}.tv-player-toolbar>span{text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 3px #000;flex:1;min-width:0;font-size:1rem;font-weight:600;overflow:hidden}.tv-player-heading{gap:3px;display:grid}.tv-player-heading>:is(strong,small){text-overflow:ellipsis;overflow:hidden}.tv-player-heading>small{color:#ddd;font-size:.85rem;font-weight:400}.tv-player button{width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;flex:0 0 44px;place-items:center;display:grid;position:relative}.tv-player button:hover{background:#ffffff20}.tv-player button:disabled{opacity:.4;cursor:default}.tv-player :is(button,select,input):focus-visible{outline-offset:2px;outline:2px solid #fff}.tv-player button small{font-size:9px;font-weight:700;line-height:1;position:absolute;top:17px}.tv-player-controls{z-index:2;left:env(safe-area-inset-left);right:env(safe-area-inset-right);bottom:env(safe-area-inset-bottom);background:linear-gradient(#0000,#000d);padding:2rem 1rem .65rem;position:absolute}.tv-player-control-row,.tv-player-transport,.tv-player-settings{align-items:center;gap:.2rem;min-width:0;display:flex;position:relative}.tv-player-control-row{flex-wrap:wrap;justify-content:space-between;gap:.4rem 1rem}.tv-player-settings{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.tv-player-settings-panel{background:#202020f5;border:1px solid #ffffff30;border-radius:12px;gap:8px;width:min(320px,100vw - 32px);max-height:min(55vh,320px);padding:12px;display:grid;position:absolute;bottom:calc(100% + 12px);right:0;overflow-y:auto;box-shadow:0 8px 28px #0006}.tv-player-settings-panel .tv-player-select{justify-content:space-between;gap:12px}.tv-player-settings-panel .tv-player-select>span{clip-path:none;width:auto;height:auto;font-size:.85rem;position:static;overflow:visible}.tv-player-settings-panel select{flex:1;min-width:0}.tv-player-settings-panel .tv-player-autoplay{border:1px solid #777;border-radius:8px;min-width:56px;min-height:44px;font-size:.85rem}.tv-player-settings-panel .tv-player-autoplay[aria-checked=true]{color:#111;background:#fff}.tv-player-time{white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:.3rem;font-size:.8rem}.tv-player-time>span{color:#ccc}.tv-player-volume{accent-color:#fff;width:70px;min-height:44px}.tv-player-select{align-items:center;gap:.35rem;min-height:44px;display:flex}.tv-player-select>span{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.tv-player select{color:#fff;background:#202020;border:1px solid #555;border-radius:7px;max-width:160px;min-height:38px;padding:.3rem .4rem;font-size:.8rem}.tv-player select option{color:#fff;background:#202020}.tv-player .tv-subtitle-picker{min-width:0;max-width:200px}.tv-player .tv-subtitle-picker select{max-width:150px}.tv-player-timeline{align-items:center;height:24px;display:flex;position:relative}.tv-player-timeline:before{content:"";background:linear-gradient(to right, #fff var(--tv-played), #aaa var(--tv-played), #aaa var(--tv-buffered), #ffffff35 var(--tv-buffered));pointer-events:none;border-radius:4px;width:100%;height:4px;position:absolute}.tv-player-timeline input{appearance:none;cursor:pointer;background:0 0;width:100%;height:24px;margin:0;position:relative}.tv-player-timeline input::-webkit-slider-runnable-track{background:0 0;height:4px}.tv-player-timeline input::-moz-range-track{background:0 0;height:4px}.tv-player-timeline input::-webkit-slider-thumb{appearance:none;background:#fff;border-radius:50%;width:12px;height:12px;margin-top:-4px}.tv-player-timeline input::-moz-range-thumb{background:#fff;border:0;border-radius:50%;width:12px;height:12px}.tv-player-buffering{pointer-events:none;background:#000b;border-radius:8px;align-items:center;gap:.65rem;padding:.65rem 1rem;font-size:.9rem;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tv-loading-spinner{flex-shrink:0;animation:1s linear infinite tv-loading-spin}@keyframes tv-loading-spin{to{transform:rotate(360deg)}}.tv-player-error{z-index:3;text-align:center;background:#202020e8;border-radius:8px;width:min(90%,30rem);margin:0;padding:1rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tv-player-error p{margin:0}.tv-player .tv-player-retry{background:#ffffff20;width:auto;min-width:44px;margin:.75rem auto 0;padding:0 .75rem}.tv-player-chrome{opacity:1;transition:opacity .18s}.tv-player-quiet .tv-player-chrome{opacity:0;pointer-events:none}.tv-player-quiet{cursor:none}@media (width<=600px){.tv-player select{min-height:44px;font-size:16px}.tv-player-controls{padding:1.5rem .5rem .4rem}.tv-player-toolbar{padding:.4rem .5rem 1.5rem}.tv-player-volume{display:none}.tv-player-control-row{gap:.2rem}.tv-player-transport{flex:1 0 100%}.tv-player-settings{flex:1 0 100%;justify-content:flex-end}.tv-player-time{margin-left:auto;padding-right:6px}.tv-player .tv-subtitle-picker{max-width:145px}.tv-player .tv-subtitle-picker select{max-width:110px}}@media (prefers-reduced-motion:reduce){.tv-loading-spinner{animation:none}.tv-player-chrome{transition:none}}.tv-subtitle-picker{cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex;position:relative}.tv-subtitle-picker select{opacity:0;cursor:pointer;width:100%;height:100%;font-size:16px;position:absolute;inset:0}.tv-subtitle-picker:focus-within{outline-offset:2px;border-radius:8px;outline:2px solid}.tv-subtitle-picker:has(select:disabled){opacity:.5}.sheet.tv-subtitle-sheet{width:min(100%,520px);max-width:min(100vw,520px)}.tv-subtitle-settings{gap:20px;min-width:0;display:grid}.tv-subtitle-choices{min-width:0;display:grid}.tv-subtitle-choices>button{border-bottom:1px solid var(--line);text-align:left;justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding:10px 4px;font-size:15px;display:flex}.tv-subtitle-choices>button>span{overflow-wrap:anywhere;min-width:0}.tv-subtitle-choices>button>svg{color:var(--green);flex-shrink:0}.tv-subtitle-language{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;font-size:14px;display:grid}.tv-subtitle-language select{background:var(--surface);border:1px solid var(--line);width:100%;min-width:0;min-height:44px;color:var(--ink);font:inherit;border-radius:10px;padding:8px 10px;font-size:16px}.tv-subtitle-defaults,.tv-subtitle-pending{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.tv-subtitle-reset{min-height:44px;color:var(--muted);text-underline-offset:3px;padding:8px;font-size:14px;text-decoration:underline}.tv-subtitle-search{border-top:1px solid var(--line);gap:12px;min-width:0;padding-top:18px;display:grid}.tv-subtitle-search>.tv-secondary{justify-self:start}.tv-subtitle-pending{color:var(--muted);font-size:14px}.tv-subtitle-results{min-width:0;display:grid}.tv-subtitle-result{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:6px 0;font-size:14px;display:grid}.tv-subtitle-result>span{overflow-wrap:anywhere}@media (width>=768px){.sheet.tv-subtitle-sheet{border-radius:24px;max-height:calc(100svh - 64px);margin:auto}}.tv-panel{gap:22px;width:100%;min-width:0;padding-bottom:14px;display:grid}.tv-toolbar{align-items:center;gap:8px;min-width:0;display:flex}.tv-search{background:var(--surface);min-width:0;color:var(--muted);border-radius:14px;flex:1;align-items:center;gap:10px;padding:0 12px;display:flex}.tv-search input{width:100%;min-width:0;color:var(--ink);outline-offset:-3px;background:0 0;border:0;height:46px;font-size:16px}.tv-search .icon-button{width:32px;height:38px}.tv-tabs{flex-wrap:wrap;gap:7px;display:flex}.tv-tabs button{background:var(--surface);border-radius:24px;min-height:42px;padding:8px 16px;font-size:14px;font-weight:600}.tv-tabs button[aria-pressed=true]{background:var(--green);color:var(--on-accent)}.tv-section{gap:13px;min-width:0;display:grid}.tv-section h2{font-size:19px}.tv-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:22px 16px;min-width:0;display:grid}.tv-card{min-width:0;position:relative}.tv-card-main{text-align:left;border-radius:10px;gap:7px;width:100%;min-width:0;padding:0;display:grid}.tv-poster{aspect-ratio:2/3;background:var(--surface);border-radius:12px;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.tv-poster img{object-fit:cover;width:100%;height:100%;display:block}.tv-poster-placeholder{color:var(--muted)}.tv-card-title{text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;overflow:hidden}.tv-card-meta{color:var(--muted);font-size:12px;line-height:1.4}.tv-card-add{background:var(--paper);width:38px;height:38px;color:var(--ink);border-radius:50%;place-items:center;display:grid;position:absolute;top:8px;right:8px;box-shadow:0 1px 5px #0003}.tv-card-dismiss{color:var(--ink);position:absolute;top:0;right:0}.tv-card-dismiss:before{content:"";background:var(--paper);border-radius:50%;width:28px;height:28px;position:absolute;box-shadow:0 1px 5px #0003}.tv-card-dismiss svg{position:relative}.tv-card-dismiss:hover{background:0 0}.tv-progress{background:#0005;height:4px;position:absolute;bottom:0;left:0;right:0}.tv-progress>span{background:var(--green);min-width:2px;height:100%;display:block}.tv-continue{scroll-snap-type:x proximity;scrollbar-width:thin;grid-auto-columns:minmax(170px,220px);grid-auto-flow:column;gap:16px;margin:-3px;padding:3px 3px 8px;display:grid;overflow-x:auto}.tv-continue>*{scroll-snap-align:start}.tv-continue .tv-card-meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tv-empty{color:var(--muted);text-align:center;padding:30px 0;font-size:15px}.tv-error{color:var(--error);background:var(--error-bg);border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:14px;display:flex}.tv-error button{flex-shrink:0}.tv-error>span{flex:1}.tv-retry{min-height:44px;padding:8px;font-weight:600;text-decoration:underline}.sheet.tv-detail{width:min(100%,860px);max-width:min(100vw,860px)}.tv-detail .sheet-inner{width:100%;max-width:900px}.tv-detail-body{gap:22px;min-width:0;display:grid}.tv-detail-summary{grid-template-columns:minmax(0,140px) minmax(0,1fr);align-items:start;gap:22px;display:grid}.tv-detail-copy{gap:12px;min-width:0;display:grid}.tv-description{overflow-wrap:anywhere;grid-column:1/-1;font-size:15px;line-height:1.5}.tv-metadata{color:var(--muted);flex-wrap:wrap;gap:10px;font-size:13px;display:flex}.tv-play-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tv-favorite[aria-pressed=true]{color:var(--green)}.tv-release-date{color:var(--muted);font-size:12px;line-height:1.4}.tv-description .tv-release-date{margin-bottom:6px}.tv-delete-options,.tv-delete-confirmation{gap:14px;min-width:0;display:grid}.tv-delete-confirmation h3{overflow-wrap:anywhere;font-size:17px}.tv-delete-confirmation p{overflow-wrap:anywhere;font-size:14px;line-height:1.5}.tv-delete-button{color:var(--error)}.icon-button.tv-action-primary{background:var(--green);color:var(--on-accent)}.tv-secondary{background:var(--surface);border-radius:24px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;font-size:14px;display:inline-flex}.tv-episodes{gap:8px;min-width:0;display:grid}.tv-episodes select{background:var(--surface);width:fit-content;min-width:130px;max-width:100%;min-height:44px;color:var(--ink);border:1px solid var(--line);font:inherit;border-radius:10px;padding:8px 12px;font-size:16px}.tv-episode-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.tv-episode{text-align:left;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;min-height:66px;padding:12px 4px;display:grid}.tv-episode-number{color:var(--muted);font-size:14px}.tv-episode-copy{gap:4px;min-width:0;display:grid}.tv-episode-title{overflow-wrap:anywhere;font-size:15px;font-weight:500}.tv-episode-description{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;display:-webkit-box;overflow:hidden}.tv-episode-runtime{color:var(--muted);font-size:12px}.tv-list{min-width:0;display:grid}.tv-list-row{text-align:left;border-bottom:1px solid var(--line);grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 0;display:grid}.tv-list-row .tv-poster{border-radius:7px}.tv-list-title{font-size:15px;font-weight:600;display:block}.tv-list-caption{color:var(--muted);margin-top:5px;font-size:13px;display:block}.tv-request-status{color:var(--muted);font-size:13px}.tv-detail-loading{color:var(--muted);font-size:14px}@media (width<=600px){.tv-continue{grid-auto-columns:144px;gap:12px}}@media (width<=480px){.tv-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 10px}.tv-card-title{font-size:12px}.tv-card-meta{font-size:11px}.tv-poster{border-radius:9px}.tv-detail-summary{grid-template-columns:minmax(0,92px) minmax(0,1fr);gap:15px}.tv-description{grid-column:1/-1;font-size:14px}.tv-tabs{gap:5px}.tv-tabs button{padding:8px 13px}}@media (width>=1000px){.tv-grid{grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:25px 20px}.tv-continue{grid-auto-columns:220px}}@media (prefers-reduced-motion:reduce){.tv-panel *,.tv-detail *{scroll-behavior:auto}}@media (width>=768px){.sheet.tv-detail{border-radius:24px;max-height:calc(100svh - 64px);margin:auto}}.tv-episode-loading{white-space:nowrap;align-items:center;gap:.4rem;font-size:.85rem;display:inline-flex}.smart-home-content{width:100%;min-width:0;padding:4px 0 24px}.smart-home-content .lighting-content{padding:12px 0 0}.smart-home-toolbar,.smart-home-blaster-row,.smart-home-action-row,.smart-home-add-row,.smart-home-error,.smart-automation-row,.smart-home-found-button{align-items:center;gap:8px;display:flex}.smart-home-toolbar{justify-content:space-between;margin-bottom:16px}.smart-home-segments{background:var(--surface);border-radius:12px;flex-wrap:wrap;gap:4px;padding:4px;display:flex}.smart-home-segments button,.smart-home-weekdays button{min-height:44px;color:var(--ink);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:9px;padding:8px 16px}.smart-home-segments button[aria-pressed=true],.smart-home-weekdays button[aria-pressed=true]{background:var(--green);color:var(--on-accent)}.smart-home-segments button:disabled{opacity:.45}.smart-home-blaster-row{margin-bottom:12px}.smart-home-blaster-row>label{flex:1;min-width:0}.smart-home-blaster-row select,.smart-home-form select,.smart-home-form input:not([type=checkbox]){background:var(--surface);width:100%;min-height:48px;color:var(--ink);border:1px solid var(--line);font:inherit;border-radius:10px;padding:10px 12px}.smart-home-add-row{margin:8px 0 16px}.smart-home-device-groups{gap:24px;display:grid}.smart-home-group-title{margin:0 0 8px;font-size:16px;font-weight:600}.smart-home-action-grid,.smart-automation-grid{grid-template-columns:1fr;gap:8px;display:grid}.smart-home-action-row,.smart-automation-row{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-width:0;padding-right:4px}.smart-action-button{min-height:60px;color:var(--ink);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:flex-start;align-items:center;gap:12px;min-width:0;display:flex}.smart-action-list{flex:1;padding:12px 16px}.smart-action-button span{overflow-wrap:anywhere;min-width:0}.smart-action-button svg{color:var(--green);flex-shrink:0}.smart-action-tile{text-align:center;flex-direction:column;justify-content:center;gap:8px;width:100%;height:100%;padding:8px}.smart-action-button:disabled{cursor:default}.smart-home-empty{color:var(--muted);text-align:center;padding:28px 0}.smart-home-error{background:var(--surface);color:var(--error);border-radius:10px;justify-content:space-between;margin-bottom:12px;padding:10px 12px}.smart-home-error span{min-width:0}.smart-home-form{grid-template-columns:minmax(0,1fr);gap:16px;display:grid}.smart-home-record-button{border:1px solid var(--line);background:var(--surface);min-height:48px;color:var(--ink);border-radius:12px;justify-content:center;align-items:center;gap:10px;padding:12px;display:flex}.smart-home-form>label:not(.smart-home-check){gap:7px;display:grid}.smart-home-check{align-items:center;gap:10px;min-height:44px;display:flex}.smart-home-check input,.smart-automation-toggle input{width:22px;height:22px;accent-color:var(--green);flex-shrink:0}.smart-home-form .smart-home-check{flex-direction:row;display:flex}.smart-home-form .smart-home-check input{width:22px;height:22px;min-height:22px;padding:0}.smart-home-sync{color:var(--muted);margin-bottom:12px;font-size:14px}.smart-home-learning{background:var(--surface);border-radius:10px;padding:12px}.smart-home-learning p,.smart-home-setup p{margin:0 0 12px;line-height:1.5}.smart-home-captured{color:var(--green);align-items:center;gap:8px;margin:0;display:flex}.smart-home-delete{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.smart-home-setup{gap:12px;display:grid}.smart-home-found{gap:8px;display:grid}.smart-home-found-button{border:1px solid var(--line);background:var(--surface);width:100%;min-height:52px;color:var(--ink);font:inherit;text-align:left;border-radius:10px;padding:10px 12px}.smart-home-found-button span{flex:1}.smart-home-weekdays{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.smart-home-weekdays button{border:1px solid var(--line);padding:8px 0;font-size:13px}.smart-automation-toggle{flex:1;align-items:center;gap:12px;min-width:0;min-height:88px;padding:12px;display:flex}.smart-automation-toggle span{gap:3px;min-width:0;display:grid}.smart-automation-toggle strong{overflow-wrap:anywhere;font-weight:600}.smart-automation-toggle small{color:var(--muted);overflow-wrap:anywhere;font-size:13px}@media (width>=600px){.smart-home-content{padding:4px 0 28px}.smart-home-action-grid,.smart-automation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1000px){.smart-home-action-grid,.smart-automation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.smart-home-content{padding:4px 0 32px}}@media (prefers-reduced-motion:reduce){.smart-home-content *{scroll-behavior:auto!important;transition:none!important}}.smart-signal-details{min-width:0;color:var(--muted);font-size:14px}.smart-signal-details summary{cursor:pointer;color:var(--ink);padding:10px 0}.smart-signal-details dl{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:8px 0;display:grid}.smart-signal-details dd{text-align:right;margin:0}.smart-signal-details p{line-height:1.5}.device-action-trigger{touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.device-actions-sheet .sheet-inner{padding-top:42px;position:relative}.device-actions-dismiss{min-height:42px;color:var(--muted);touch-action:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0 24px auto}.device-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;display:grid}.device-actions-grid .smart-action-button{overflow-wrap:anywhere;min-width:0;min-height:84px}@media (width>=768px){.device-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.custom-remote{width:100%;padding:0 0 24px}.custom-remote-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;max-width:640px;margin:24px auto;display:grid}.custom-remote-button{border:1px solid var(--line);background:var(--surface);min-width:0;min-height:80px;color:var(--ink);touch-action:manipulation;overflow-wrap:anywhere;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px;display:flex}.custom-remote-button span{font-weight:600;line-height:1.3}.custom-remote-button.is-missing{color:var(--muted)}.custom-remote-button:active{background:var(--surface-raised,var(--surface))}.custom-remote-form{gap:20px;display:grid}.custom-remote-form label{gap:8px;min-width:0;font-weight:600;display:grid}.custom-remote-form input,.custom-remote-form select{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;min-height:46px;color:var(--ink);border-radius:10px;padding:10px 12px}.custom-layout-toolbar{grid-template-columns:80px minmax(0,1fr);gap:16px;display:grid}.custom-editor-actions{flex-wrap:wrap;justify-content:space-between;gap:16px;display:flex}.custom-remote-grid.is-editing{margin:0}.custom-remote-grid.is-editing .custom-remote-button{border-style:dashed}.custom-conflict{border:1px solid var(--line);border-radius:12px;padding:12px}@media (width>=768px){.custom-remote-grid{gap:16px}.custom-remote-button{min-height:96px}}.reminders-panel{width:100%;min-width:0}.reminder-toolbar,.reminder-actions,.reminder-recipients,.reminder-snooze{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.reminder-toolbar{justify-content:space-between;margin-bottom:18px}.reminder-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:0 28px;display:grid}.reminder-row{border-bottom:1px solid var(--line);align-items:center;min-width:0;padding:12px 0;display:flex}.reminder-check{background:0 0;border:0;flex:0 0 44px;place-items:center;width:44px;height:48px;display:grid}.reminder-check span{border:2px solid var(--muted);border-radius:50%;width:23px;height:23px}.reminder-main{text-align:left;min-width:0;color:var(--ink);background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start;gap:5px;padding:6px;display:flex}.reminder-main strong{overflow-wrap:anywhere}.reminder-main span,.reminder-main small{overflow-wrap:anywhere;font-size:.82rem}.reminder-overdue{color:var(--green)}.reminder-note{white-space:pre-wrap;overflow-wrap:anywhere}.reminder-form{gap:18px;display:grid}.reminder-form label{gap:7px;display:grid}.reminder-form input,.reminder-form textarea,.reminder-custom input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.reminder-form fieldset{border:0;margin:0;padding:0}.reminder-form legend{margin-bottom:8px}.reminder-recipients button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:24px;padding:10px 20px}.reminder-recipients button[aria-pressed=true]{background:var(--green);color:var(--on-accent,#fff);border-color:var(--green)}.reminder-actions{justify-content:space-between;margin-top:20px}.reminder-snooze{margin-top:14px}.reminder-snooze button,.reminder-actions button,.reminder-notifications{align-items:center;gap:7px;display:inline-flex}.reminder-custom{gap:8px;max-width:100%;display:flex}.reminder-delete{margin-top:16px}.home-reminders{height:100%;padding:14px;overflow:hidden}.home-reminders .reminder-row{padding:4px 0}.home-reminders .reminder-main strong{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.home-reminders .reminder-main span{font-size:.75rem}.reminder-toolbar .segmented{background:var(--surface);border-radius:14px;padding:3px;display:flex}.reminder-toolbar .segmented button{color:var(--muted);background:0 0;border:0;border-radius:11px;padding:10px 14px}.reminder-toolbar .segmented button[aria-pressed=true]{color:var(--ink);background:var(--paper)}.reminder-snooze .secondary-button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:12px 14px}.reminder-delete .danger-button{background:var(--error);color:var(--on-error);border:0;border-radius:12px;padding:12px 18px}.reminder-form input,.reminder-form textarea,.reminder-custom input{font:inherit;color:var(--ink);background:var(--field);border:1px solid var(--line);border-radius:12px;min-height:48px;padding:12px}.reminder-form textarea{resize:vertical}.reminder-main .secondary{white-space:normal}.reminder-form input:focus,.reminder-form textarea:focus{outline:2px solid var(--green);outline-offset:2px}.cameras-screen{width:100%;min-width:0}.cameras-header{justify-content:flex-end;align-items:center;gap:8px;margin-bottom:18px;display:flex}.cameras-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;display:grid}.camera-grid-item{min-width:0;transition:transform .18s;position:relative}.camera-grid-item.camera-size-small{grid-column:span 3}.camera-grid-item.camera-size-medium,.camera-grid-item.camera-size-large{grid-column:span 6}.camera-grid-item .camera-tile{aspect-ratio:16/9;height:auto}.camera-tile{isolation:isolate;color:#fff;background:#111714;border-radius:18px;width:100%;min-width:0;height:100%;min-height:112px;position:relative;overflow:hidden}.camera-tile header{z-index:2;pointer-events:none;background:linear-gradient(#0009,#0000);align-items:center;min-height:42px;padding:10px 12px 20px;display:flex;position:absolute;inset:0 0 auto}.camera-tile header strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:550;overflow:hidden}.camera-media{position:absolute;inset:0}.camera-preview{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.camera-media video{object-fit:contain;opacity:0;width:100%;height:100%}.camera-media.is-playing video{opacity:1}.camera-pip-video{pointer-events:none;width:1px;height:1px;position:fixed;top:0;left:-10000px}.camera-placeholder{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:6px 12px 16px;display:flex;position:absolute;inset:38px 0 0}.camera-placeholder span{font-size:13px}.camera-placeholder>button{color:#fff;min-width:44px;min-height:40px;font-size:13px}.camera-placeholder .camera-play{background:#ffffff18;border-radius:50%;place-items:center;width:52px;height:52px;padding-left:5px;display:grid}.camera-loading{border-radius:inherit;color:#fff;cursor:pointer;background:0 0;border:0;place-items:center;width:100%;height:100%;padding:0;display:grid;position:absolute;inset:0}.camera-loading:focus-visible{outline-offset:-3px;outline:3px solid #fff}.camera-controls{background:linear-gradient(#0000,#000a);align-items:center;gap:2px;padding:10px 5px 3px;display:flex;position:absolute;inset:auto 0 0}.camera-controls button{color:#fff;place-items:center;width:40px;height:40px;display:grid}.camera-controls>span{flex:1}.camera-error{color:#fff;text-align:center;overflow-wrap:anywhere;background:#171d18ed;border-radius:8px;padding:7px 9px;font-size:12px;position:absolute;inset:auto 10px 8px}.camera-error button{color:#fff;min-height:32px;margin:2px auto 0;text-decoration:underline;display:block}.camera-panel-error{color:var(--ink);align-items:center;gap:10px;padding:10px 0 16px;font-size:14px;display:flex}.camera-panel-error button{min-width:40px;min-height:40px;margin-left:auto}.camera-spinner{animation:1s linear infinite camera-spin}.camera-editing{pointer-events:none}.camera-edit-controls{align-items:center;gap:8px;padding:5px 2px;display:flex}.camera-edit-controls>button:first-child{text-align:left;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;min-height:40px;font-size:13px;overflow:hidden}.camera-reorder{touch-action:none}.cameras-grid.is-editing{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.camera-hidden{opacity:.45}.camera-dragging{filter:drop-shadow(0 8px 14px #0005)}.camera-empty{color:var(--muted);margin-top:24px;font-size:14px}.camera-options{gap:14px;display:grid}.camera-options label{justify-content:space-between;align-items:center;gap:16px;min-height:46px;display:flex}.camera-options select{width:auto;min-width:110px;color:var(--ink);background:var(--surface);border:1px solid var(--line);font:inherit;border-radius:10px;padding:9px}.camera-toggle input{width:21px;height:21px;accent-color:var(--green)}@media (width>=700px){.camera-grid-item.camera-size-small{grid-column:span 2}.camera-grid-item.camera-size-medium{grid-column:span 3}}@media (width>=1200px){.cameras-grid{grid-template-columns:repeat(12,minmax(0,1fr))}.camera-grid-item.camera-size-small{grid-column:span 3}.camera-grid-item.camera-size-medium{grid-column:span 4}.camera-grid-item.camera-size-large{grid-column:span 6}}@media (prefers-reduced-motion:reduce){.camera-grid-item{transition:none}.camera-spinner{animation:none}}@keyframes camera-spin{to{transform:rotate(360deg)}}.camera-all-button{min-height:44px;margin-right:auto}.cameras-grid.camera-focused>.camera-grid-item{grid-column:1/-1}.recipes-panel{flex-direction:column;gap:16px;min-width:0;padding-bottom:16px;display:flex}.recipe-toolbar{align-items:center;gap:8px;min-width:0;display:flex}.recipe-toolbar h2{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:1.3rem}.recipe-screen-awake-control{flex-shrink:0;margin-right:auto;position:relative}.recipe-toolbar .recipe-screen-awake{border:1px solid var(--line);background:var(--field);min-height:44px;color:var(--ink);font:inherit;white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:8px 12px;font-size:.875rem;display:inline-flex}.recipe-toolbar .recipe-screen-awake[aria-pressed=true]{background:var(--green);border-color:var(--green);color:var(--on-accent)}.recipe-awake-tooltip{z-index:4;border:1px solid var(--line);background:var(--paper);width:min(260px,100vw - 64px);color:var(--ink);border-radius:10px;padding:10px 12px;font-size:.875rem;line-height:1.4;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 2px 8px #0002}@media (width<=420px){.recipe-toolbar:has(h2){flex-wrap:wrap}.recipe-toolbar:has(h2) .recipe-screen-awake-control{flex-basis:100%}}.recipe-list .list-action{text-align:left;align-items:center;gap:14px;width:100%;display:flex}.recipe-list .list-action span{overflow-wrap:anywhere;flex:1;min-width:0}.recipe-batches label{justify-content:space-between;display:flex}.recipe-batches>div{align-items:center;gap:12px;display:flex}.recipe-batches input{min-width:0;accent-color:var(--green);flex:1;padding:0}.recipe-step{border-bottom:1px solid var(--line);align-items:center;gap:8px;min-width:0;display:flex}.recipe-check{text-align:left;min-width:0;color:inherit;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;touch-action:manipulation;background:0 0;border:0;flex:1;align-items:flex-start;gap:12px;padding:16px 0;display:flex}.recipe-check-box{border:1.5px solid;border-radius:6px;flex:0 0 22px;place-items:center;width:22px;height:22px;margin-top:1px;display:grid}.is-checked .recipe-check{opacity:.5}.is-checked .recipe-check>span:last-child{text-decoration:line-through}.recipe-amount{color:var(--green);font:inherit;overflow-wrap:anywhere;text-align:left;background:0 0;border:0;flex:0 0 100px;max-width:42%;min-height:44px;padding:12px 4px}.recipe-amount-text{color:inherit;white-space:pre-wrap;align-content:center}.recipe-step.note{background:var(--surface);border-radius:12px;margin:12px 0;padding:0 12px}.recipe-editor{flex-direction:column;gap:16px;min-width:0;display:flex}.recipe-editor label{flex-direction:column;gap:8px;display:flex}.recipe-editor .recipe-yield{flex-direction:row;align-items:center}.recipe-yield input{width:88px}.recipe-edit-rows{flex-direction:column;gap:16px;display:flex}.recipe-edit-row{border-bottom:1px solid var(--line);gap:8px;min-width:0;padding-bottom:12px;display:flex}.recipe-row-fields{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.recipe-row-fields textarea{resize:vertical;width:100%;min-height:112px}.recipe-quantity-fields{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:8px;display:grid}.recipe-editor input,.recipe-editor select,.recipe-editor textarea{min-width:0;max-width:100%}.recipe-row-actions{flex-direction:column;flex:0 0 44px;display:flex}.recipe-row-actions .icon-button{width:44px;height:44px}.recipe-add-actions{justify-content:space-between;gap:8px;display:flex}.recipe-unit-options .list-action{text-align:left;justify-content:space-between;width:100%;display:flex}.recipe-notes h3{margin:8px 0;font-size:1rem}.recipe-notes article{border-bottom:1px solid var(--line);padding:12px 0}.recipe-notes article p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 4px}.recipe-notes small{color:var(--muted);font-size:.8rem}.recipe-notes form{align-items:center;gap:8px;margin-top:12px;display:flex}.recipe-notes textarea{resize:vertical;flex:1;min-width:0}.recipe-toolbar{justify-content:flex-end}.recipes-panel .list-action,.recipe-unit-options .list-action{border-bottom:1px solid var(--line);min-height:54px;font:inherit;gap:12px;padding:16px 0}.recipes-panel>input,.recipe-editor input,.recipe-editor textarea,.recipe-editor select,.recipe-notes textarea{background:var(--field);color:var(--ink);border:1px solid var(--line);font:inherit;border-radius:12px;padding:12px;font-size:16px}.recipes-panel>input{width:100%;min-width:0}.recipe-editor input:focus,.recipe-editor textarea:focus,.recipe-editor select:focus,.recipe-notes textarea:focus{outline:2px solid var(--green);outline-offset:1px}.recipe-import{border-bottom:1px solid var(--line);flex-direction:column;gap:12px;min-width:0;padding-bottom:16px;display:flex}.recipe-import-actions{justify-content:space-between;gap:8px;display:flex}.recipe-import-actions button{align-items:center;gap:6px;min-height:44px;display:flex}.recipe-import-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.recipe-import-photos:empty{display:none}.recipe-import-photos>div{min-width:0;position:relative}.recipe-import-photos img{object-fit:cover;border-radius:8px;width:100%;height:100px}.recipe-import-photos button{background:var(--surface);width:36px;height:36px;position:absolute;top:0;right:0}.recipe-import p{margin:0}.recipe-editor-sheet{max-height:calc(100dvh - 24px);overflow:hidden}.recipe-editor-sheet .sheet-inner{height:min(800px,100dvh - 24px);padding-bottom:max(12px, env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));flex-direction:column;display:flex}.recipe-editor-sheet .sheet-header{flex-shrink:0;margin-bottom:12px}.recipe-editor-sheet form.recipe-editor{flex:1;gap:0;min-height:0}.recipe-editor-scroll{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;flex:1;gap:16px;min-height:0;padding:3px 3px 16px;display:flex;overflow-y:auto}.recipe-editor-scroll>*{flex-shrink:0}.recipe-editor-footer{border-top:1px solid var(--line);background:var(--paper);flex-direction:column;flex-shrink:0;gap:8px;padding-top:8px;display:flex}.recipe-editor-footer .text-button{min-height:44px}.recipe-editor-footer .form-error{margin:0}.recipe-edit-rows{gap:0}.recipe-edit-row{background:var(--paper);padding:12px 0;position:relative}.recipe-edit-row.is-reordering{transition:transform .18s}.recipe-edit-row.is-dragging{cursor:grabbing;z-index:2;outline:1px solid var(--line);background:var(--surface);transition:none;box-shadow:0 2px 12px #0002}.recipe-edit-row.is-reordering .recipe-row-fields{pointer-events:none}.recipe-row-actions{justify-content:center}.reorder-handle{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:0 0;border:0;min-height:44px}.recipe-row-menu{z-index:3;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-direction:column;padding:8px 12px;display:flex;position:absolute;top:44px;right:0;box-shadow:0 2px 12px #0002}.recipe-row-menu button{text-align:left;min-height:44px}@media (prefers-reduced-motion:reduce){.recipe-edit-row.is-reordering{transition:none}}.recipe-share-sheet .sheet-header{margin-bottom:2px}.recipe-share-name{color:var(--muted);margin:0 0 22px;line-height:1.45}.recipe-share-public{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.recipe-share-public h3{margin:0;font-size:1.05rem}.recipe-share-public p{margin:8px 0 14px;line-height:1.45}.recipe-share-public p:not(.form-error){color:var(--muted)}.recipe-share-actions{flex-wrap:wrap;gap:8px;display:flex}.recipe-share-button{background:var(--field);min-height:44px;color:var(--ink);border:1px solid var(--line);border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-size:.9rem;font-weight:550;text-decoration:none;display:inline-flex}.recipe-share-button:focus-visible{outline:2px solid var(--green);outline-offset:2px}.recipe-share-public .recipe-share-revoke{margin:4px 0 0}@media (width>=600px){.recipe-share-sheet{width:min(100% - 48px,480px)}}.kara-launcher{z-index:30;border:1px solid color-mix(in srgb, var(--ink) 18%, transparent);background:var(--paper);width:48px;height:48px;color:var(--green);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-radius:50%;place-items:center;padding:0;display:grid;position:fixed;box-shadow:0 2px 12px #0002}.kara-launcher[hidden]{display:none}.kara-launcher:focus-visible{outline:3px solid var(--green);outline-offset:3px}.kara-dragging{cursor:grabbing}.kara-sheet{width:min(100%,850px);max-width:min(100vw,850px);height:min(88dvh,900px);max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px));overflow:hidden}.kara-sheet .sheet-inner{height:100%;min-height:0;padding:26px 22px max(12px, env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));flex-direction:column;display:flex}.kara-sheet .sheet-header{flex:none;margin-bottom:4px}.kara-swipe-handle{touch-action:none;place-items:center;height:25px;display:grid;position:absolute;top:0;left:0;right:0}.kara-swipe-handle span{background:color-mix(in srgb, var(--ink) 25%, transparent);border-radius:4px;width:36px;height:4px}.kara-toolbar{flex:none;justify-content:flex-end;padding:0 0 8px;display:flex}.kara-text-button{color:var(--ink);font:inherit;background:0 0;border:0;align-items:center;gap:7px;min-height:40px;padding:8px 0;font-size:14px;display:inline-flex}.kara-log{overscroll-behavior:contain;flex-direction:column;flex:1;gap:16px;min-height:80px;padding:4px 1px 18px;display:flex;overflow-y:auto}.kara-message{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-width:100%;line-height:1.5}.kara-message p{margin:0}.kara-user{background:var(--green);max-width:88%;color:var(--on-accent);border-radius:18px 18px 4px;align-self:flex-end;padding:11px 15px}.kara-assistant{align-self:flex-start;padding:2px 0}.kara-message-file{align-items:center;gap:6px;margin-top:5px;font-size:13px;display:flex}.kara-waiting{color:var(--ink);padding:4px}.kara-waiting svg{animation:1.2s linear infinite kara-spin}.kara-error{color:var(--danger,#b42318);margin:0;font-size:14px}.kara-composer{border-top:1px solid color-mix(in srgb, var(--ink) 15%, transparent);flex:none;grid-template-columns:minmax(0,1fr);gap:4px;padding-top:8px;display:grid}.kara-input-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;display:grid}.kara-input-actions{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.kara-voice-control{background:color-mix(in srgb, var(--ink) 8%, transparent);min-height:44px;color:var(--ink);font:inherit;border:0;border-radius:12px;justify-content:center;align-items:center;gap:7px;padding:0 12px;display:inline-flex}.kara-voice-status{color:var(--muted);padding-inline:8px;font-size:13px}.kara-composer textarea{resize:vertical;width:100%;min-height:44px;max-height:160px;color:var(--ink);font:inherit;background:0 0;border:0;border-radius:10px;padding:11px 6px;font-size:16px;line-height:22px}.kara-composer .icon-button{min-width:44px;min-height:44px}.kara-send{background:var(--green);color:var(--on-accent);border-radius:50%}.kara-send:disabled{opacity:.4}.kara-files{flex-wrap:wrap;grid-column:1/-1;gap:6px;display:flex}.kara-file{border:1px solid color-mix(in srgb, var(--ink) 18%, transparent);overflow-wrap:anywhere;border-radius:14px;align-items:center;gap:5px;min-width:0;max-width:100%;padding-left:10px;font-size:13px;display:inline-flex}.kara-file .icon-button{flex:none;min-width:36px;min-height:36px}.kara-review{border:1px solid color-mix(in srgb, var(--ink) 22%, transparent);border-radius:14px;min-width:0;padding:14px}.kara-review>p{margin:0 0 12px}.kara-review-details{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:240px;font-size:14px;overflow-y:auto}.kara-review-fields{gap:8px;margin:0;display:grid}.kara-review-fields>div{grid-template-columns:minmax(75px,.35fr) minmax(0,1fr);gap:10px;display:grid}.kara-review-fields dt{color:var(--muted)}.kara-review-fields dd{min-width:0;margin:0}.kara-review-items{gap:10px;display:grid}.kara-review-item+.kara-review-item{border-top:1px solid color-mix(in srgb, var(--ink) 13%, transparent);padding-top:10px}.kara-prose{gap:12px;display:grid}.kara-prose ul,.kara-prose ol{margin:0;padding-left:20px}.kara-prose li+li{margin-top:7px}.kara-prose a{color:var(--green)}.kara-source{color:var(--green);margin-top:8px;font-size:13px;display:block}.kara-review-actions{justify-content:flex-end;gap:10px;margin-top:14px;display:flex}.kara-position-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}@keyframes kara-spin{to{transform:rotate(360deg)}}@media (width>=700px){.kara-sheet{border-radius:24px;margin-bottom:24px}.kara-sheet .sheet-inner{padding-inline:30px}}@media (prefers-reduced-motion:reduce){.kara-waiting svg{animation:none}}.remote-volume-fields{border:0;border-top:1px solid var(--line);gap:16px;min-width:0;margin:0;padding:20px 0 0;display:grid}.remote-volume-fields legend{padding-right:12px;font-size:16px;font-weight:600}.remote-volume-fields select{background:var(--field);width:100%;min-width:0;min-height:53px;color:var(--ink);border:1px solid var(--line);font:inherit;border-radius:13px;padding:12px;font-size:16px}.remote-volume-fields .field-hint{margin:0}.remote-binding-row{align-items:center;gap:8px;min-width:0;display:flex}.remote-binding-row label{flex:1;min-width:0}.remote-extra-editor{border-top:1px solid var(--line);gap:14px;padding-top:16px;display:grid}.remote-custom-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:440px;margin:20px auto 0;display:grid}.remote-custom-buttons button{border:1px solid var(--line);background:var(--surface);min-height:52px;color:var(--ink);font:inherit;overflow-wrap:anywhere;border-radius:13px;justify-content:center;align-items:center;gap:8px;padding:12px;display:flex}.remote-custom-buttons svg{flex-shrink:0}.remote-edit-device{position:absolute;top:0;right:0}.device-pager{position:relative}.device-pager.is-editable{padding-inline:44px}.device-pager.is-editable .device-selector{max-width:100%}.scene-button{min-width:0}.scene-button>span{overflow-wrap:anywhere}.scene-tile-button{text-align:left;border-radius:inherit;width:100%;height:100%;min-height:100px;font:inherit;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px;font-weight:550;line-height:1.3;display:flex}.scene-tile-button>span{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.scene-tile-button>svg{color:var(--green);flex-shrink:0}.scene-tile-button:disabled{opacity:1;cursor:grab}.photo-crop-area{aspect-ratio:1;background:var(--surface);touch-action:none;cursor:grab;border-radius:14px;width:min(100%,280px);margin:0 auto;position:relative;overflow:hidden}.photo-crop-area:active{cursor:grabbing}.photo-crop-area img{-webkit-user-select:none;user-select:none;pointer-events:none;max-width:none;position:absolute}.photo-crop-mask{pointer-events:none;border:2px solid #fff;border-radius:50%;position:absolute;inset:0;box-shadow:0 0 0 150px #0009}.photo-crop-controls{align-items:center;gap:16px;margin:22px 0;display:flex}.photo-crop-controls label{flex:1;align-items:center;gap:14px;font-size:14px;display:flex}.photo-crop-controls input{min-width:0;height:44px;accent-color:var(--green);flex:1}.books-screen,.book-list,.library-book,.book-search-row,.book-author,.book-toc-row,.book-waypoint{overflow-wrap:anywhere;min-width:0}.library-book>svg,.book-search-row>.icon-button{flex-shrink:0}.books-tools{align-items:center;gap:5px;margin:0 0 18px;display:flex}.books-tools form{border:1px solid var(--line);border-radius:16px;flex:1;align-items:center;min-width:0;padding-left:12px;display:flex}.books-tools input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;padding:13px 8px;font-size:15px}.books-tools form button{width:38px;height:44px}.book-list{flex-direction:column;display:flex}.library-book,.book-search-row{border-bottom:1px solid var(--line);text-align:left;align-items:center;gap:8px;width:100%;min-height:90px;padding:20px 2px;display:flex}.library-book>div,.book-search-row>div{flex:1;min-width:0}.library-book strong,.book-search-row strong{font-size:17px;font-weight:550;line-height:1.4;display:block}.library-book span,.book-search-row span{color:var(--muted);margin-top:5px;font-size:14px;line-height:1.5;display:block}.books-empty{min-height:45vh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;display:flex}.library-book .book-formats{vertical-align:-2px;gap:5px;margin:0 7px 0 0;display:inline-flex}.library-book .book-format{color:var(--muted);margin:0;display:inline-flex}.book-empty,.book-inline-status{color:var(--muted);text-align:center;padding:22px 0;font-size:14px}.book-author{color:var(--muted);margin:-8px 0 24px;font-size:15px}.book-back-results{margin-left:0}.book-review{border-bottom:1px solid var(--line);padding:24px 0}.book-stars{flex-wrap:wrap;gap:5px;margin-bottom:17px;display:flex}.book-stars button{min-width:44px;min-height:44px;color:var(--green)}.book-review label{flex-direction:column;gap:8px;margin:16px 0;font-size:14px;display:flex}.book-review textarea,.book-generation select,.book-recommendations input{background:var(--field);color:var(--ink);border:1px solid var(--line);font:inherit;border-radius:12px;max-width:100%;padding:12px}.book-review textarea{resize:vertical}.book-audio-panel{padding:16px 0}.book-audio-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;padding:10px 0;display:flex}.book-play{background:var(--green);width:52px;height:52px;color:var(--on-accent);border-radius:50%;justify-content:center;align-items:center;display:flex}.book-speed{min-width:44px;min-height:44px;font-size:14px}.book-audio-time{width:100%;color:var(--muted);text-align:center;font-size:12px}.book-generation{padding-top:15px}.book-setting-row{align-items:center;gap:12px;min-height:58px;padding:12px 0;font-size:14px;display:flex}.book-setting-row>span:first-child,.book-setting-row>label{flex:1}.book-setting-row select{flex:1;min-width:0}.book-setting-row input[type=range]{width:48%;accent-color:var(--green)}.book-chapter-selection{margin:20px 0}.book-chapter-selection summary{cursor:pointer;min-height:44px;font-weight:550}.book-chapter-selection label{align-items:center;gap:12px;min-height:44px;font-size:14px;display:flex}.book-chapter-selection input{accent-color:var(--green);width:19px;height:19px}.book-cost p,.book-job{margin:12px 0;font-size:14px;line-height:1.5}.book-job p{color:var(--muted);margin-top:5px}.book-recommendations>p{white-space:pre-line;margin:10px 0 20px;font-size:15px;line-height:1.6}.book-search-title{overflow-wrap:anywhere;margin-bottom:18px}.audiobook-search-result{color:var(--ink);text-decoration:none}.audiobook-search-result>span{flex:1;min-width:0}.audiobook-search-result small{color:var(--muted);display:block}.book-recommendations form{gap:6px;margin-top:25px;display:flex}.book-recommendations input{flex:1;min-width:0}.book-opening{z-index:10;background:var(--paper);flex-direction:column;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.book-reader{overscroll-behavior:none;z-index:10;background:var(--paper);height:100dvh;color:var(--ink);padding:env(safe-area-inset-top,var(--safe-area-inset-top,0px)) max(22px, calc((100vw - 750px) / 2)) env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px));flex-direction:column;display:flex;position:fixed;inset:0;overflow:clip}.book-reader.theme-light{--paper:#faf9f4;--ink:#282721;--surface:#eeede6;--muted:#645f54;--line:#d5d3c8;--green:#304a3e;--on-accent:#fff}.book-reader.theme-sepia{--paper:#eee2c8;--ink:#392f22;--surface:#e0d2b4;--muted:#695c45;--line:#c8b795;--green:#3c4931;--on-accent:#fff}.book-reader.theme-dark{--paper:#181a18;--ink:#deded4;--surface:#2b302c;--muted:#aeb4aa;--line:#555e52;--green:#b3d2bb;--on-accent:#17231a}.reader-toolbar{flex-shrink:0;align-items:center;gap:1px;height:64px;margin:0 -10px;display:flex}.reader-toolbar>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);flex:1;margin:0 4px;font-size:13px;overflow:hidden}.reader-chrome-hidden{visibility:hidden}.book-pages{touch-action:pinch-zoom;outline:none;flex:1;min-width:0;min-height:0;position:relative;overflow:clip}.book-page-columns{overflow-wrap:anywhere;column-fill:auto;column-width:100vw;will-change:transform;height:100%;color:var(--ink);position:absolute;inset:0 auto 0 0}.book-page-columns.serif{font-family:Georgia,Noto Serif,serif}.book-page-columns.system{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.book-page-columns p{white-space:pre-wrap;overflow-wrap:anywhere;orphans:2;widows:2;margin:0 0 1em}.book-page-columns h2{break-after:avoid;letter-spacing:0;margin:0 0 1.3em;font-size:1.2em;font-weight:600;line-height:1.4}.spoken-word{background:var(--surface);box-shadow:0 2px 0 var(--green);border-radius:3px}.reader-footer{flex-shrink:0;padding:6px 0}.reader-location{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.reader-location>span{text-overflow:ellipsis;white-space:nowrap;text-align:center;flex:1;min-width:0;overflow:hidden}.reader-footer .book-audio-controls{gap:10px;padding:0 0 6px}.reader-footer .book-play{width:44px;height:44px}.reader-footer .book-audio-time{display:none}.reader-return{width:max-content;max-width:calc(100% - 32px);min-height:44px;margin-inline:auto;padding:10px 16px;font-size:13px;position:absolute;bottom:100px;left:0;right:0}.reader-error{background:var(--paper);border:1px solid var(--line);border-radius:14px;align-items:center;gap:8px;padding:8px 12px;font-size:13px;display:flex;position:absolute;bottom:70px;left:16px;right:16px}.reader-error span{flex:1}.book-reader-loading{color:var(--muted);flex:1;place-content:center;display:grid}.book-segments{background:var(--surface);border-radius:24px;margin-bottom:16px;padding:4px;display:flex}.book-segments button{border-radius:22px;flex:1;min-height:44px;font-size:13px}.book-segments button[aria-pressed=true]{background:var(--paper);font-weight:600}.book-toc-row{text-align:left;border-bottom:1px solid var(--line);width:100%;min-height:50px;font-size:15px;line-height:1.45}.book-waypoint{border-bottom:1px solid var(--line);align-items:center;display:flex}.book-waypoint>button:first-child{text-align:left;flex-direction:column;flex:1;gap:6px;min-width:0;padding:16px 0;font-size:15px;display:flex}.book-waypoint small{color:var(--muted);font-size:12px}.book-accessible-page:focus{clip:auto;background:var(--paper);width:auto;height:44px;color:var(--ink);z-index:2;padding:10px;top:0;left:0}@media (prefers-reduced-motion:reduce){.book-page-columns{will-change:auto}}.book-audio-seek{width:100%;accent-color:var(--green);min-height:30px}.reader-footer .book-audio-seek{display:none}.book-stop-date{color:var(--muted);margin:5px 0 10px;font-size:12px;display:block}.book-library-toolbar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.book-library-toolbar select{font:inherit;min-width:0;color:var(--ink);background:0 0;border:0;flex:1;padding:10px 0;font-size:19px;font-weight:600}.library-book .book-cover,.book-cover{background:var(--surface);border:1px solid var(--line);border-radius:4px;flex:0 0 54px;justify-content:center;align-items:center;width:54px;height:80px;margin:0;display:flex;overflow:hidden}.book-cover img{object-fit:cover;width:100%;height:100%}.book-cover>span{text-align:center;overflow-wrap:anywhere;color:var(--ink);margin:0;padding:6px;font-size:9px;line-height:1.3}.book-detail-heading{color:var(--muted);overflow-wrap:anywhere;align-items:center;gap:18px;margin-bottom:22px;display:flex}.book-cover-edit{flex-shrink:0;padding:0;position:relative}.book-cover-edit>svg{background:var(--paper);border-radius:3px;position:absolute;bottom:4px;right:4px}.book-link-form{gap:6px;margin-bottom:18px;display:flex}.book-link-form input{background:var(--field);min-width:0;color:var(--ink);border:1px solid var(--line);border-radius:12px;flex:1;padding:10px}.library-book-row{border-bottom:1px solid var(--line);align-items:center;min-width:0;display:flex}.library-book-row .library-book{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;border:0;flex:1;min-width:0}.reader-listening{align-items:center;gap:8px;display:flex}.reader-listening .book-audio-controls{flex:1;min-width:0}.reader-audio-button{position:relative}.reader-audio-button.audio-unavailable>svg{opacity:.4}.audio-progress-badge{min-width:28px;color:var(--paper);background:var(--ink);border-radius:9px;padding:2px 4px;font-size:10px;font-weight:650;position:absolute;top:-4px;right:-9px}.audio-chapter-row{align-items:center;gap:8px;display:flex}.audio-chapter-row label{flex:1;min-width:0}.audio-chapter-row input,.audio-chapter-row .text-button{flex-shrink:0}.audio-chapter-locked{opacity:.5}.voice-preview-button{align-items:center;gap:8px;display:inline-flex}.sheet-inner .book-detail-heading>p{flex:1;min-width:0}.sheet-inner .book-audio-panel,.sheet-inner .book-generation,.sheet-inner .book-review{min-width:0;max-width:100%}.book-review textarea{width:100%;min-width:0;font-size:16px}.book-setting-row>label{min-width:0}.book-setting-row select{width:0;font-size:16px}.book-library-cover{flex:0 0 54px;position:relative;margin:0!important}.library-book .book-cover-progress{background:#fffc;border-radius:2px;height:3px;margin:0;position:absolute;bottom:4px;left:3px;right:3px;overflow:hidden}.library-book .book-cover-progress>i{background:var(--green);height:100%;display:block}.recommendation-book-heading{align-items:center;gap:14px;min-width:0;margin:14px 0;display:flex}.recommendation-book-heading p{overflow-wrap:anywhere;margin:0}.book-recommendations .book-cover{flex:0 0 46px;width:46px;height:68px;margin:0}.book-find-sheet .book-link-form{grid-template-columns:minmax(0,1fr) 44px;width:100%;min-width:0;display:grid}.book-find-sheet .book-link-form input{width:100%}.book-find-sheet .book-toc-row{white-space:normal;align-items:center;gap:8px;max-width:100%;display:flex}.book-find-sheet .book-toc-row>span{overflow-wrap:anywhere;min-width:0}.book-shelves{gap:26px;min-width:0;display:grid}.book-shelves h2{overflow-wrap:anywhere;margin:0 0 12px;font-size:18px}.book-shelf-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.book-shelf-heading h2{min-width:0;margin:0}.book-shelf-heading{margin-bottom:12px}.book-tile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.book-tile-grid .library-book-row{flex-direction:column;min-width:0;display:flex;position:relative}.book-tile-grid .library-book{border:0;flex-direction:column;flex:1;align-items:stretch;gap:7px;min-width:0;padding:0}.book-tile-grid .book-library-cover{aspect-ratio:2/3;width:100%;height:auto;margin:0}.book-tile-grid .library-book .book-cover{aspect-ratio:2/3;width:100%;height:100%}.book-tile-grid .library-book strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.35;display:-webkit-box;overflow:hidden}.book-tile-grid .library-book>div>span{margin-top:4px;font-size:11px;line-height:1.3}.book-tile-grid .book-formats{display:none}.book-tile-grid .library-book-row>.icon-button{align-self:flex-end;height:32px;min-height:32px}.book-search-row>.book-cover{flex:0 0 44px;width:44px;height:66px}.book-detail-heading>div{min-width:0}.book-goodreads{min-height:44px;color:var(--ink);align-items:center;gap:7px;font-size:14px;text-decoration:none;display:inline-flex}.goodreads-letter{font:30px/1 Georgia,serif}.book-description{overflow-wrap:anywhere;margin:0 0 16px}.book-description p{white-space:pre-line;margin:0;line-height:1.5}.book-description-preview{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.book-description .text-button{padding-left:0}.book-menu-tabs{border-bottom:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr));margin:16px 0;display:grid}.book-menu-tabs button{min-height:46px;color:var(--muted);border-bottom:2px solid #0000;padding:8px 4px}.book-menu-tabs button[aria-pressed=true]{color:var(--ink);border-color:var(--green)}.book-audio-sync,.book-audio-advanced,.book-voice-settings{border-top:1px solid var(--line);margin-top:12px}.book-audio-sync>summary,.book-audio-advanced>summary,.book-voice-settings>summary{cursor:pointer;min-height:48px;padding:14px 0}.book-audio-advanced{color:var(--muted);font-size:14px}.book-job{overflow-wrap:anywhere}.grocery-list-order select{min-width:0;max-width:70%}.book-feedback{width:100%}.book-feedback summary{cursor:pointer;min-height:44px;padding:12px 0}.book-feedback label{gap:8px;margin-bottom:12px;display:grid}.book-audio-actions{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.book-audio-action{border:1px solid var(--line);border-radius:12px;flex:95px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:9px;font-size:14px;display:inline-flex}.book-detail-heading .book-cover{width:70px;height:105px}.book-description-preview{-webkit-line-clamp:3}.book-search-preview{text-align:left;min-width:0;color:inherit;background:0 0;border:0;flex:1;align-items:center;gap:12px;padding:4px 0;display:flex}.book-search-preview>.book-cover{flex:0 0 42px;width:42px;height:60px}.book-search-preview>span:last-child{overflow-wrap:anywhere;min-width:0}.book-search-preview small{color:var(--muted);margin-top:4px;display:block}.book-search-owned .book-search-preview{opacity:.6}.book-series-tile{min-width:0;color:inherit;text-align:left;background:0 0;border:0;padding:8px 7px}.book-series-tile strong{overflow-wrap:anywhere;margin-top:12px;font-size:14px;display:block}.book-series-stack{padding:5px 8px 0 0;display:grid}.book-series-stack>.book-cover{aspect-ratio:2/3;grid-area:1/1;width:100%;height:auto;box-shadow:0 1px 4px #0003}.book-series-stack>.book-cover:not(:last-child){transform:rotate(4deg)translate(5px,-3px)}.book-series-stack>.book-cover:first-child:not(:last-child){transform:rotate(7deg)translate(8px,-4px)}.book-series-form{gap:14px;display:grid}.book-series-form select,.book-series-form input{width:100%;min-width:0}.book-series-stack>.book-cover{position:relative}.book-series-stack>.book-cover:last-child{z-index:3}.book-series-stack>.book-cover:nth-last-child(2){z-index:2}.series-actions{align-items:center;gap:6px;display:flex}.series-grid{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.series-grid img{-webkit-user-drag:none}.series-volume{min-width:0;transition:transform .18s;position:relative}.series-volume.is-dragging .book-cover{box-shadow:0 8px 20px #0004}.series-editing .library-book{touch-action:none;cursor:grab}.series-editing .library-book-row>.icon-button{visibility:hidden}.series-volume>select{width:100%;min-height:36px;margin-top:-32px;position:relative}@media (prefers-reduced-motion:reduce){.series-volume{transition:none}}.series-volume{flex-direction:column;display:flex}.series-volume>.library-book-row{flex:1}.series-volume>select{border:1px solid var(--line);background:var(--paper);color:var(--ink);font:inherit;border-radius:10px;padding:6px 10px;font-size:14px}.file-drop{border-radius:12px;min-width:0}.file-drop-active{outline:2px dashed var(--accent);outline-offset:-2px;background:var(--surface)}.file-drop>button{width:100%}.book-audio-actions>.file-drop{flex:1;display:flex}.book-request-bell{flex:none;position:relative}.book-request-bell>span{background:var(--accent);color:var(--accent-ink,white);border-radius:12px;padding:1px 5px;font-size:11px;position:absolute;top:0;right:0}.book-request-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:12px 0;display:flex}.book-request-row a{min-width:0;color:inherit;overflow-wrap:anywhere;flex:1;gap:5px;text-decoration:none;display:grid}.book-request-row span,.book-request-row small{color:var(--muted)}.book-request-choice{align-items:center;gap:12px;padding:16px 0;display:flex}.book-request-choice input{width:22px;height:22px}.home-screen{padding:0 0 16px}.home-widget-grid{grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:10px;display:grid;position:relative}.home-widget{background:var(--surface);border-radius:18px;min-width:0;position:relative}.home-widget-small{aspect-ratio:1;grid-column:span 2;align-self:start}.home-widget-medium{grid-column:span 3;min-height:158px}.home-widget-large{grid-column:span 6;min-height:180px}.home-widget-content{border-radius:inherit;width:100%;height:100%}.home-widget-empty-slot{aspect-ratio:1;border:1px dashed var(--line);border-radius:18px;align-self:start}button.home-widget-action,.home-widget .home-scene-button{width:100%;height:100%;min-height:90px;color:var(--ink);border-radius:inherit;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:14px 10px;display:flex}button.home-widget-action>span,.home-widget .home-scene-button>span{overflow-wrap:anywhere;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:14px;font-weight:550;line-height:1.25;display:-webkit-box;overflow:hidden}.home-widget-small button.home-widget-action,.home-widget-small .home-scene-button{gap:6px;min-height:0;padding:8px 6px}.home-widget-small button.home-widget-action>span,.home-widget-small .home-scene-button>span{-webkit-line-clamp:2;font-size:12px}.home-widget-large button.home-widget-action,.home-widget-large .home-scene-button{flex-direction:row;gap:18px}.home-widget-large button.home-widget-action>span,.home-widget-large .home-scene-button>span{font-size:18px}.home-grocery-widget{padding:8px 12px 12px}.home-widget-heading{text-align:left;align-items:center;gap:8px;width:100%;min-height:44px;font-size:14px;font-weight:600;display:flex}.home-widget-heading>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.home-widget-heading svg{flex-shrink:0}.home-grocery-items button{text-align:left;align-items:center;gap:8px;width:100%;min-height:44px;font-size:13px;display:flex}.home-grocery-items button>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.home-grocery-check{border:1px solid var(--muted);border-radius:50%;flex-shrink:0;width:19px;height:19px}.home-grocery-empty{min-height:44px;color:var(--muted);text-align:left;width:100%;font-size:13px}.home-edit-toolbar{justify-content:space-between;align-items:center;margin:-10px 0 12px;display:flex}.home-edit-toolbar button,.home-add-empty{align-items:center;gap:7px;min-height:44px;font-size:14px;display:inline-flex}.home-edit-toolbar button:disabled{opacity:.4}.home-add-empty{margin-top:12px}.home-widget-edit-cover{border-radius:inherit;z-index:1;outline:1px dashed var(--muted);width:100%;height:100%;position:absolute;inset:0}.home-widget-edit-cover svg{color:var(--muted);position:absolute;bottom:12px;right:12px}.home-widget-reorder-handle{z-index:2;width:44px;height:44px;color:var(--muted);cursor:grab;touch-action:none;border-radius:12px;justify-content:flex-start;align-items:flex-start;padding:8px;display:flex;position:absolute;top:0;left:0}.home-widget.is-dragging .home-widget-reorder-handle{cursor:grabbing}.home-widget-remove{z-index:2;border-radius:50%;place-items:center;width:44px;height:44px;display:grid;position:absolute;top:-10px;right:-8px}.home-widget-remove:before{content:"";background:var(--paper);border:1px solid var(--line);border-radius:50%;position:absolute;inset:9px}.home-widget-remove svg{position:relative}.home-screen.is-editing .home-widget-content{opacity:.6;pointer-events:none}.home-screen.is-editing .calendar-header,.home-screen.is-editing .calendar-home>.home-custom-heading,.home-screen.is-editing .home-widget-heading{padding-left:32px}.home-screen.is-editing .camera-tile header{padding-left:44px}.home-screen.is-editing .home-widget{animation:.28s ease-in-out infinite alternate home-widget-jiggle}.home-screen.is-editing .home-widget:nth-child(2n){animation-direction:alternate-reverse}.home-screen .home-widget.is-dragging{outline:2px solid var(--green);animation:none}.home-widget-picker button{text-align:left;align-items:center;gap:14px;width:100%;min-height:56px;padding:12px 0;display:flex}.home-widget-picker button>span{flex:1}.home-widget-form{gap:22px;min-width:0;display:grid}.home-widget-form label{gap:10px;min-width:0;font-size:14px;display:grid}.home-widget-form input:not([type=radio]),.home-widget-form select{border:1px solid var(--line);background:var(--field);width:100%;min-width:0;min-height:48px;color:var(--ink);font:inherit;border-radius:12px;padding:10px;font-size:16px}.home-size-options,.home-action-options{border:0;min-width:0;margin:0;padding:0}.home-action-options legend{margin-bottom:10px;font-size:14px}.home-action-options>div{overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;max-height:280px;overflow-y:auto}.home-widget-form .home-action-options label{cursor:pointer;align-items:center;gap:12px;min-height:56px;padding:9px 12px;display:flex}.home-action-options label+label{border-top:1px solid var(--line)}.home-action-options input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0;margin:0}.home-action-options label>span{overflow-wrap:anywhere;gap:3px;min-width:0;display:grid}.home-action-options small{color:var(--muted);font-size:12px}.home-size-options legend{margin-bottom:10px;font-size:14px}.home-size-options>div{gap:8px;display:flex}.home-size-options button{border:1px solid var(--line);border-radius:12px;flex:1;min-height:44px;font-size:14px}.home-size-options button[aria-pressed=true]{background:var(--surface);border-color:var(--green)}.home-widget-settings{gap:4px;padding-top:18px;display:grid}.home-widget-settings button{text-align:left;align-items:center;gap:12px;min-height:48px;display:flex}.home-widget-settings button:disabled{opacity:.35}.home-widget-error{color:var(--error);align-items:center;gap:10px;margin-bottom:12px;font-size:13px;display:flex}.home-widget-error>span{flex:1}@keyframes home-widget-jiggle{0%{transform:rotate(-.5deg)}to{transform:rotate(.5deg)}}@media (prefers-reduced-motion:reduce){.home-screen.is-editing .home-widget{animation:none}}.home-widget-calendar>.home-widget-content{padding:12px}.home-screen{--home-row-height:clamp(100px, calc((100cqw - 20px) / 3), 180px);--home-row-gap:10px;container-type:inline-size}.home-widget{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.home-widget.home-widget-calendar{height:calc(var(--home-row-height) * var(--home-widget-rows,2) + var(--home-row-gap) * (var(--home-widget-rows,2) - 1));align-self:start;min-height:0}.home-widget-calendar>.home-widget-content{border-radius:inherit;min-height:0;padding:6px 12px;overflow:hidden}.home-widget.is-reordering{transition:transform .18s;animation:none!important}.home-widget.is-dragging{box-shadow:0 10px 28px #0002}@media (width>=600px){.home-screen{--home-row-gap:16px;--home-row-height:clamp(120px, 18vw, 180px)}}@media (prefers-reduced-motion:reduce){.home-widget.is-reordering{transition:none}}.home-custom-heading{overflow-wrap:anywhere;align-items:center;gap:8px;min-width:0;font-weight:600;display:flex}.home-custom-heading svg{flex-shrink:0}.calendar-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.calendar-header select{color:var(--ink);font:inherit;letter-spacing:-.5px;background:0 0;border:0;max-width:calc(100% - 48px);padding:9px 22px 9px 0;font-size:22px;font-weight:600}.calendar-events{display:grid}.calendar-event{text-align:left;border-bottom:1px solid var(--line);align-items:center;gap:16px;width:100%;min-height:72px;padding:13px 0;display:flex}.calendar-event:last-child{border-bottom:0}.calendar-when{color:var(--muted);flex:0 0 76px;gap:4px;font-size:12px;display:grid}.calendar-when span:first-child{color:var(--ink);font-size:13px;font-weight:600}.calendar-event-title{gap:4px;min-width:0;display:grid}.calendar-event-title strong{text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:550;line-height:1.35;overflow:hidden}.calendar-event-title>span{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.calendar-empty{color:var(--muted);margin:0;padding:20px 0;font-size:14px}.calendar-view-all{margin:6px 0 0}.calendar-empty-connect{padding:18px 0}.calendar-settings{gap:16px;display:grid}.calendar-check{align-items:center;gap:12px;min-height:46px;font-size:15px;display:flex}.calendar-check input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.calendar-connection h3{overflow-wrap:anywhere;margin:10px 0;font-size:15px;font-weight:550}.calendar-connect{border-top:1px solid var(--line);padding-top:12px}.calendar-connect .primary-button{margin-top:8px}.calendar-disconnect{border-top:1px solid var(--line);padding-top:12px;font-size:14px}.calendar-disconnect>div{justify-content:flex-end;gap:12px;display:flex}.calendar-error{color:var(--danger);justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.calendar-event-detail p{overflow-wrap:anywhere;line-height:1.5}.calendar-home-medium,.calendar-home-large{width:100%;min-width:0}.calendar-home-medium .calendar-header select,.calendar-home-large .calendar-header select{min-width:0;font-size:18px}.calendar-home-medium .calendar-event{flex-direction:column;align-items:stretch;gap:6px;min-height:62px;padding:10px 0}.calendar-home-medium .calendar-when{flex-wrap:wrap;flex:none;gap:4px 8px;font-size:11px;display:flex}.calendar-home-medium .calendar-header select{appearance:none;letter-spacing:-.2px;flex:1;max-width:calc(100% - 44px);min-height:44px;padding:9px 0;font-size:14px}.calendar-home-medium .calendar-event-title strong{font-size:14px}.calendar-home-medium .calendar-event-title>span{font-size:11px}.calendar-home-medium .calendar-view-all,.calendar-home-large .calendar-view-all{margin:0;padding-bottom:8px}.calendar-home-medium .calendar-empty,.calendar-home-large .calendar-empty{padding:12px 0}.calendar-header-actions{flex-shrink:0;gap:2px;display:flex}.calendar-panel .calendar-header select{flex:1;min-width:0}.calendar-event-form,.calendar-event-form fieldset{gap:16px;min-width:0;display:grid}.calendar-event-form fieldset{border:0;margin:0;padding:0}.calendar-event-form label:not(.calendar-check){gap:7px;font-size:14px;display:grid}.calendar-event-form input:not([type=checkbox]),.calendar-event-form select,.calendar-event-form textarea{box-sizing:border-box;background:var(--surface);width:100%;min-width:0;max-width:100%;min-height:46px;color:var(--ink);border:1px solid var(--line);font:inherit;border-radius:10px;padding:10px 12px}.calendar-date-fields{gap:16px;min-width:0;display:grid}.calendar-event-form textarea{resize:vertical}.calendar-description{white-space:pre-wrap}.calendar-home-fixed{flex-direction:column;height:100%;min-height:0;display:flex}.calendar-home-fixed>.calendar-header{flex:none;margin-bottom:0}.calendar-home-fixed>.calendar-home-body{overscroll-behavior:contain;scrollbar-width:thin;min-height:0;overflow-y:auto}.calendar-home-fixed .calendar-event{gap:10px;min-height:52px;padding:6px 0}.calendar-home-fixed.calendar-home-medium .calendar-event{gap:4px}.calendar-home-rows-1 .calendar-event-title>span{display:none}.calendar-home-rows-1 .calendar-event{min-height:44px}.calendar-home-rows-1 .calendar-empty{padding:5px 0}.calendar-home-rows-1 .calendar-empty-connect{min-height:44px;padding:0}.date-time-field{gap:8px;min-width:0;display:grid}.date-time-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:14px;display:flex}.date-time-shortcuts{gap:8px;display:flex}.date-time-shortcuts button{border:1px solid var(--line);border-radius:10px;min-height:40px;padding:8px 10px;font-size:13px}.date-time-inputs{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:10px;display:grid}.date-time-inputs.date-only{grid-template-columns:minmax(0,1fr)}.date-time-inputs input{box-sizing:border-box;width:100%;min-width:0;max-width:100%;font-size:16px!important}.date-time-inputs input::-webkit-date-and-time-value{text-align:left}.reminder-offsets{flex-wrap:wrap;gap:8px;display:flex}.reminder-offsets button{border:1px solid var(--line);border-radius:12px;min-height:44px;padding:8px 12px}.reminder-offsets button[aria-pressed=true]{background:var(--green);color:var(--on-accent,white)}.calendar-detail-actions{flex-wrap:wrap;gap:8px 18px;display:flex}.calendar-delete-confirm{border-top:1px solid var(--line);padding:12px 0}.calendar-delete-confirm>div{flex-wrap:wrap;gap:16px;display:flex}.calendar-browse{min-width:0}.calendar-period,.calendar-period>div{align-items:center;gap:2px;display:flex}.calendar-period{flex-wrap:wrap;justify-content:space-between;gap:0 8px;margin-bottom:8px}.calendar-period strong{font-size:15px}.calendar-period .text-button{margin:0;padding:8px;font-size:13px}.calendar-day-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;display:grid}.calendar-weekday{text-align:center;color:var(--muted);padding:4px 0;font-size:12px}.calendar-day-grid button{border-radius:12px;flex-direction:column;align-items:center;gap:3px;min-width:0;min-height:42px;padding:4px 0;font-size:14px;display:flex}.calendar-day-grid button:disabled{opacity:.3}.calendar-day-grid button[aria-current=date]{box-shadow:inset 0 0 0 1px var(--green)}.calendar-day-grid button[aria-pressed=true]{background:var(--green);color:var(--on-accent,white)}.calendar-outside-month{color:var(--muted)}.calendar-day-mark{background:currentColor;border-radius:50%;width:4px;height:4px}.calendar-day-agenda h3{margin:18px 0 0;font-size:14px;font-weight:600}.calendar-panel .calendar-day-grid button{min-height:52px}.calendar-home-medium .calendar-day-grid{gap:1px}.calendar-home-medium .calendar-period>div{flex-wrap:wrap}@media (width>=768px){.calendar-panel .calendar-browse-month{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:16px 28px;display:grid}.calendar-panel .calendar-browse-month .calendar-period{grid-column:1/-1;margin-bottom:0}.calendar-panel .calendar-browse-month .calendar-day-agenda h3{margin-top:4px}}.custom-bottom-nav{gap:3px;padding-left:10px;padding-right:10px}.favorite-tab{flex:1;min-width:0;max-width:132px;position:relative}.custom-bottom-nav .tab-target{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;min-width:0;height:100%}.custom-bottom-nav .tab-more{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;min-width:0}.custom-bottom-nav .tab-remove{width:44px;height:44px;min-height:44px;color:var(--ink);background:0 0;border-radius:50%;position:absolute;top:-13px;right:-8px}.custom-bottom-nav .tab-remove:before{content:"";background:var(--paper);border:1px solid var(--line);border-radius:50%;position:absolute;inset:9px}.custom-bottom-nav .tab-remove svg{position:relative}.is-editing .favorite-tab .tab-target{outline:1px dashed var(--line);animation:.22s ease-in-out infinite alternate tab-jiggle}.is-editing .favorite-tab:nth-child(2n) .tab-target{animation-direction:alternate-reverse}.favorite-tab.is-dragging .tab-target{background:var(--surface);outline-color:var(--green)}.tab-edit-bar,.tab-save-error{z-index:10;width:100%;left:50%;bottom:calc(83px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));background:var(--paper);border-top:1px solid var(--line);padding:4px 20px;position:fixed;transform:translate(-50%)}.tab-edit-bar{justify-content:space-between;display:flex}.tab-edit-bar button{align-items:center;gap:6px;min-height:44px;font-size:14px;display:inline-flex}.tab-save-error{bottom:calc(137px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));padding:12px 20px;font-size:14px}.tab-menu-row{align-items:center;gap:10px;min-height:56px;display:flex}.tab-menu-row>span{flex:1}.tab-panel-choice{text-align:left;flex:1;align-items:center;gap:14px;min-height:56px;display:flex}.tab-arrange-list{border-bottom:1px solid var(--line);margin-bottom:12px;padding-bottom:12px}.tab-menu-row button:disabled{opacity:.3}.more-panel-sheet .sheet-header{margin-bottom:16px}.more-panel-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid;position:relative}.more-panel-tile{background:var(--surface);min-width:0;min-height:92px;color:var(--ink);text-align:center;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border:1px solid #0000;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:14px 5px;font-size:14px;line-height:1.2;display:flex;position:relative}.more-panel-tile[aria-current=page]{color:var(--green);border-color:var(--green)}.more-panel-tile:active{transform:none}.more-panel-grid.is-reordering .more-panel-tile{touch-action:none;cursor:grab;border:1px dashed var(--muted)}.more-panel-grid.is-reordering .more-panel-tile.is-selected{border:2px solid var(--green);padding:13px 4px}.more-panel-tile.is-dragging{z-index:1;cursor:grabbing;box-shadow:0 6px 18px #15231a20}.more-favorite-add{position:absolute;top:8px;right:8px}.more-tabs-edit{align-items:center;min-height:44px;margin-top:12px;display:inline-flex}.more-order-controls{flex-wrap:wrap;align-items:center;gap:4px;min-height:44px;margin-top:12px;display:flex}.more-order-controls>span{flex:1;min-width:60px;font-size:14px}.more-order-done{justify-content:center;align-items:center;gap:6px;min-height:44px;padding:0 8px;display:inline-flex}.more-order-error{color:var(--error);margin-top:12px;font-size:14px}.more-panel-sheet .tab-menu-row:last-child{border-top:1px solid var(--line);margin-top:8px}@media (width>=600px){.sheet.more-panel-sheet{width:min(100% - 48px,960px);max-width:min(100% - 48px,960px)}.more-panel-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.more-panel-tile{min-height:104px;font-size:15px}}@media (width>=900px){.more-panel-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@keyframes tab-jiggle{0%{transform:rotate(-1.3deg)}to{transform:rotate(1.3deg)}}@media (prefers-reduced-motion:reduce){.is-editing .favorite-tab .tab-target{animation:none}}.bet-banks{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.bet-banks button{background:var(--surface);text-align:left;border-radius:20px;min-height:108px;padding:18px}.bet-banks span{font-size:15px}.bet-banks strong{margin-top:6px;font-size:32px;font-weight:650;display:block}.bet-banks small{color:var(--muted);font-size:12px;font-weight:400;display:block}.bet-toolbar,.bet-tabs,.bet-bank-actions{align-items:center;gap:12px;display:flex}.bet-toolbar{justify-content:space-between;margin:18px 0 10px}.bet-tabs{gap:4px}.bet-tabs button{min-height:44px;color:var(--muted);border-radius:12px;align-items:center;gap:6px;padding:10px 13px;display:flex}.bet-tabs button[aria-selected=true]{background:var(--surface);color:var(--ink)}.bet-list{gap:12px;display:grid}.bet-card{text-align:left;border:1px solid var(--line);border-radius:18px;width:100%;min-width:0;padding:17px}.bet-card-title{justify-content:space-between;align-items:center;gap:10px;display:flex}.bet-card-title strong{overflow-wrap:anywhere;font-size:18px}.bet-card-title svg{flex-shrink:0}.bet-sides,.bet-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px;display:grid}.bet-sides div,.bet-details div{overflow-wrap:anywhere;min-width:0}.bet-sides span,.bet-sides small{display:block}.bet-sides span{margin:5px 0;font-size:16px}.bet-sides small,.bet-details span,.bet-result,.bet-pending{color:var(--muted);font-size:12px;line-height:1.4}.bet-result{margin-top:14px}.bet-empty{text-align:center;padding:30px 0}.bet-pending{margin-top:8px}.bet-form{gap:20px;display:grid}.bet-form label{color:var(--muted);gap:8px;min-width:0;font-size:13px;display:grid}.bet-form input{background:var(--field);width:100%;min-width:0;color:var(--ink);border:1px solid var(--line);border-radius:12px;min-height:48px;padding:12px;font-size:16px}.bet-form fieldset{border:0;gap:14px;min-width:0;margin:0;padding:0;display:grid}.bet-form legend{margin-bottom:12px;font-size:17px;font-weight:600}.bet-reward-fields{grid-template-columns:minmax(100px,1fr) minmax(0,1.3fr);gap:12px;display:grid}.bet-outcome{color:var(--muted);gap:8px;font-size:13px;display:grid}.bet-effect{border:1px solid var(--line);border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;display:grid}.bet-effect button{min-width:0;min-height:44px;color:var(--muted);overflow-wrap:anywhere;border-radius:10px;padding:10px 8px}.bet-effect button[aria-pressed=true]{background:var(--green);color:var(--on-accent)}.bet-bank-total{color:var(--muted);margin-bottom:18px;font-size:15px}.bet-bank-total strong{color:var(--ink);font-size:38px}.bet-bank-actions{flex-wrap:wrap}.bet-bank-actions button{border-radius:12px;align-items:center;gap:6px;min-height:44px;padding:10px 14px;display:flex}.bet-bank-actions button:not(.primary-button){background:var(--surface)}.bet-adjustment{margin-top:20px}.bet-activity{border-bottom:1px solid var(--line);gap:12px;padding:17px 0;display:flex}.bet-activity>div{overflow-wrap:anywhere;flex:1;min-width:0}.bet-activity strong{font-size:15px;font-weight:600}.bet-activity span,.bet-activity time{color:var(--muted);margin-top:5px;font-size:12px;line-height:1.4;display:block}.bet-activity .bet-delta{white-space:nowrap;font-size:22px}.bet-delta small{text-align:right;color:var(--muted);font-size:11px;font-weight:400;display:block}.bet-details{margin:0 0 20px}.bet-details p{margin:8px 0}.bet-confirm p{margin:20px 0}@media (width>=700px){.bet-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1100px){.bet-list{grid-template-columns:repeat(3,minmax(0,1fr))}}.app-shell>main.grocery-main{flex-direction:column;display:flex}.grocery-screen{touch-action:pan-y;flex:1 0 auto;padding-bottom:90px}.grocery-toolbar{align-items:center;gap:4px;margin:0 0 10px;display:flex}.grocery-toolbar>span,.grocery-toolbar .grocery-list-picker{flex:1;min-width:0}.grocery-toolbar .grocery-list-picker{color:var(--ink);font:inherit;text-overflow:ellipsis;background:0 0;border:0;padding:12px 6px 12px 0;font-size:21px;font-weight:600}.grocery-list-picker{text-align:left;align-items:center;gap:9px;display:flex}.grocery-list-picker span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.grocery-list-picker svg{flex-shrink:0}.grocery-list-options button span{overflow-wrap:anywhere;flex:1}.grocery-toolbar .icon-button{flex-shrink:0}.grocery-items{display:grid}.grocery-row{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;border-bottom:1px solid var(--line);border-radius:4px;position:relative;overflow:hidden}.grocery-row-face{background:var(--paper);align-items:stretch;min-height:60px;display:flex;position:relative}.grocery-item{text-align:left;touch-action:pan-y;flex:1;align-items:center;gap:13px;min-width:0;padding:16px 6px 16px 0;font-size:16px;line-height:1.4;display:flex}.grocery-item>span:last-child{overflow-wrap:anywhere}.grocery-checkbox{border:1.5px solid var(--muted);border-radius:50%;flex-shrink:0;place-items:center;width:23px;height:23px;display:grid}.grocery-item.is-checked{color:var(--muted)}.grocery-item.is-checked>span:last-child{text-decoration:line-through}.grocery-item.is-checked .grocery-checkbox{border-color:var(--green);background:var(--green);color:var(--on-accent)}.grocery-handle{width:44px;color:var(--muted);touch-action:none;cursor:grab;flex-shrink:0;place-items:center;display:grid}.grocery-item:active,.grocery-handle:active{transform:none}.grocery-row.is-reordering{transition:transform .18s}.grocery-row.is-dragging{cursor:grabbing;z-index:1;outline:1px solid var(--line);transition:none;box-shadow:0 2px 12px #0002}.grocery-row.is-dragging .grocery-row-face{background:var(--surface)}.grocery-delete-reveal{background:var(--error);color:var(--on-error);justify-content:space-between;align-items:center;padding:0 25px;display:flex;position:absolute;inset:0}.grocery-quick-add{background:var(--field);border:1px solid var(--line);z-index:8;border-radius:17px;flex-direction:column;align-items:stretch;gap:4px;width:calc(100% - 36px);max-width:436px;margin:0 auto;padding:5px 6px 5px 17px;display:flex;position:fixed;left:0;right:0;box-shadow:0 4px 18px #0001}.grocery-quick-add input{min-width:0;color:var(--ink);outline-offset:4px;background:0 0;border:0;flex:1;height:44px;padding:0;font-size:16px}.grocery-quick-add button{background:var(--green);width:44px;height:44px;color:var(--on-accent);border-radius:12px;flex-shrink:0;place-items:center;display:grid}.grocery-quick-add button:disabled{opacity:.4;cursor:default}.grocery-error{color:var(--error);align-items:center;gap:3px;margin-bottom:9px;font-size:13px;display:flex}.grocery-error span{flex:1}.grocery-error .icon-button{width:44px;min-width:44px}.grocery-create-empty{align-items:center;gap:10px;min-height:52px;padding:10px 0;font-size:16px;display:flex}.grocery-name-form{gap:16px;display:grid}.grocery-name-form label{gap:8px;display:grid}.grocery-name-form label>span{color:var(--muted);font-size:13px}.grocery-name-form input{border:1px solid var(--line);background:var(--field);width:100%;min-height:50px;color:var(--ink);border-radius:12px;padding:12px;font-size:16px}.grocery-options{margin-top:8px;display:grid}.grocery-options button{text-align:left;align-items:center;gap:12px;min-height:52px;padding:16px 3px;display:flex}.grocery-options button:disabled{cursor:default}.grocery-history>div{border-bottom:1px solid var(--line);padding:14px 0}.grocery-history p{overflow-wrap:anywhere;font-size:15px;line-height:1.45}.grocery-history strong{font-weight:600}.grocery-history time{color:var(--muted);margin-top:5px;font-size:12px;display:block}@media (prefers-reduced-motion:reduce){.grocery-row,.grocery-row.is-reordering,.grocery-row-face{transition:none}}.grocery-quick-add-input{align-items:center;gap:4px;min-width:0;display:flex}.grocery-suggestions{flex-direction:column;display:flex}.grocery-suggestion{border-bottom:1px solid var(--line);align-items:center;gap:4px;min-height:52px;display:flex}.grocery-suggestion span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.grocery-suggestion button{color:var(--green);background:0 0}.grocery-suggestion button:last-child{color:var(--muted)}.grocery-item.grocery-section{border-top:1px solid var(--line);padding-top:18px;font-weight:700}.grocery-new-list,.grocery-import-rows{min-width:0}.grocery-import-actions,.grocery-new-actions{align-items:center;gap:8px;display:flex}.grocery-import-actions button,.grocery-new-actions button{justify-content:center;align-items:center;gap:6px;min-height:44px;display:inline-flex}.grocery-import-actions{margin:12px 0}.grocery-import-rows{gap:8px;display:grid}.grocery-import-row{grid-template-columns:96px minmax(0,1fr) 44px;align-items:center;gap:6px;display:grid}.grocery-import-row input,.grocery-import-row select{width:100%;min-width:0;font-size:16px}.grocery-import-row.is-section input{font-weight:700}.grocery-new-actions{background:var(--paper);margin-top:12px;padding:12px 0;position:sticky;bottom:0}.grocery-new-actions .primary-button{margin-left:auto}.grocery-import-row select{border:1px solid var(--line);background:var(--field);min-height:50px;color:var(--ink);border-radius:12px;padding:8px}:root{color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#f7f7f2;--ink:#26352f;--muted:#6d776e;--line:#e0e4da;--green:#304a3e;--surface:#e8ece2;--on-accent:#fff;--positive:#2d7a46;--negative:#b9423a;--on-positive:#fff;--on-negative:#fff;--hover:#d8e1d2;--selected:#e9ede3;--field:#fff;--error:#a44735;--error-bg:#f6e6df;--on-error:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;font-weight:400}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{width:100%;min-width:0;height:100%;overflow:clip}body{min-width:0;margin:0}button,input{font:inherit}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.55;cursor:wait}button:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:4px}button{background:0 0;border:0}button svg{flex-shrink:0}button:active{transform:scale(.97)}svg{vertical-align:middle}h1,h2,p{margin:0}h1{letter-spacing:-1.15px;font-size:30px;font-weight:650;line-height:1.2}h2{letter-spacing:-.5px;font-size:21px;font-weight:600}.app-shell{background:var(--paper);width:100%;min-width:0;height:100dvh;padding-top:env(safe-area-inset-top,var(--safe-area-inset-top,0px));flex-direction:column;margin:0 auto;display:flex;position:relative;overflow:hidden}.app-shell>main{overscroll-behavior:none;flex:1;min-width:0;min-height:0;padding:16px 26px 13px;overflow:hidden auto}.app-shell>.account-screen{padding:45px 26px 24px}.icon-button{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.icon-button:hover{background:var(--surface)}.bottom-nav{z-index:3;width:100%;height:calc(83px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));padding:10px 16px calc(10px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));background:var(--paper);border-top:1px solid var(--line);flex-shrink:0;justify-content:center;gap:6px;display:flex;position:relative}.bottom-nav button{color:var(--muted);border-radius:16px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;max-width:132px;min-height:54px;font-size:12px;display:flex}.bottom-nav button.active{color:var(--green);background:var(--surface);font-weight:650}.device-selector{letter-spacing:-.4px;border-radius:12px;justify-content:center;align-items:center;gap:11px;max-width:100%;min-height:46px;margin:4px auto 0;padding:6px 15px;font-size:20px;font-weight:550;display:flex}.device-selector span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.device-selector:hover{background:var(--surface)}.remote-layout{flex-direction:column;align-items:center;max-width:332px;margin:23px auto 0;display:flex}.utility-row{justify-content:space-between;width:100%;margin-bottom:14px;padding:0 6px;display:flex}.remote-button{-webkit-user-select:none;user-select:none;border-radius:18px;justify-content:center;align-items:center;width:58px;height:54px;transition:background .12s,transform .12s;display:flex}.remote-button:hover{background:var(--hover)}.utility-row .remote-button{background:var(--surface);border:1px solid var(--line);border-radius:50%;width:54px;height:54px}.utility-row .remote-button svg{stroke-width:1.8px;width:22px;height:22px}.remote-content{touch-action:pan-y}.device-pager{-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;max-width:360px;margin:0 auto;display:flex}.device-pager .device-selector{min-width:0;margin:4px 0 0}.navigation-pad-wrap{position:relative}.navigation-mode-toggle{width:44px;height:44px;color:var(--muted);border-radius:50%;place-items:center;display:grid;position:absolute;bottom:-4px;right:-28px}.navigation-mode-toggle:hover{background:var(--surface)}.navigation-surface{background:var(--surface);border:1px solid var(--line);width:272px;height:272px;box-shadow:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;position:relative}.navigation-surface button{touch-action:none}.direction-pad{border-radius:50%;overflow:hidden}.direction-pad .direction{border-radius:0;width:100%;height:100%;padding:0;position:absolute;inset:0}.direction-pad .direction:active{background:var(--hover);transform:none}.direction-pad .direction:focus-visible{background:var(--hover);outline:none}.direction-pad .direction svg{position:absolute}.direction-pad .up{clip-path:polygon(0 0,100% 0,50% 50%)}.direction-pad .up svg{top:10%;left:calc(50% - 16px)}.direction-pad .down{clip-path:polygon(0 100%,50% 50%,100% 100%)}.direction-pad .down svg{bottom:10%;left:calc(50% - 16px)}.direction-pad .left{clip-path:polygon(0 0,50% 50%,0 100%)}.direction-pad .left svg{top:calc(50% - 16px);left:10%}.direction-pad .right{clip-path:polygon(100% 0,100% 100%,50% 50%)}.direction-pad .right svg{top:calc(50% - 16px);right:10%}.direction-pad .select,.swipe-touch-area span{background:var(--green);width:35%;height:35%;color:var(--on-accent);letter-spacing:1px;border-radius:50%;font-size:20px;font-weight:550;position:absolute;top:50%;left:50%;translate:-50% -50%;box-shadow:0 3px 5px #243f3320}.direction-pad .select:hover,.direction-pad .select:active{background:var(--green)}.swipe-pad{border-radius:36px}.swipe-touch-area{border-radius:inherit;width:100%;height:100%;position:absolute;inset:0}.swipe-touch-area:active{background:var(--hover);transform:none}.swipe-touch-area span{pointer-events:none;justify-content:center;align-items:center;display:flex}.playback-row{justify-content:space-between;align-items:center;width:100%;margin-top:25px;padding:0 7px;display:flex}.play-button{background:var(--surface);width:64px;height:60px}.play-button svg{fill:var(--ink);stroke-width:1.5px;transform:translate(2px)}.secondary-row{flex-wrap:wrap;justify-content:space-between;width:100%;margin-top:4px;padding:0 7px;display:flex}.secondary-row .connection-message{flex-basis:100%;order:1}.remote-button[aria-pressed=true]{color:var(--green);box-shadow:inset 0 0 0 2px}.volume-row{align-items:center;gap:14px;width:100%;margin-top:20px;display:flex}.volume-rocker{background:var(--surface);border-radius:30px;flex:1;justify-content:space-between;align-items:center;height:54px;display:flex}.volume-rocker>svg{color:var(--muted);stroke-width:1.7px}.volume-rocker .remote-button{border-radius:30px;width:67px}.mute-button{border:1px solid var(--line);border-radius:50%;width:54px}.connection-message{color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;max-width:100%;margin:8px auto 0;font-size:13px;line-height:1.4;display:flex}.connection-message button{text-underline-offset:3px;min-height:30px;padding:0 3px;font-size:13px;text-decoration:underline}.demo-banner{background:var(--surface);border-radius:10px;justify-content:space-between;align-items:center;min-height:36px;margin-bottom:13px;padding:6px 12px;font-size:13px;display:flex}.demo-banner button{text-underline-offset:3px;min-height:32px;font-size:13px;font-weight:550;text-decoration:underline}.secondary{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:14px;display:block;overflow:hidden}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:calc(100svh - 250px);padding:30px 0 64px;display:flex}.empty-icon{background:var(--surface);border-radius:28px;justify-content:center;align-items:center;width:92px;height:92px;margin-bottom:26px;display:flex}.empty-state h2{letter-spacing:-.75px;margin-bottom:14px;font-size:24px;font-weight:500}.primary-button{background:var(--green);color:var(--on-accent);border-radius:15px;justify-content:center;align-items:center;gap:8px;min-height:52px;padding:14px 22px;font-size:15px;font-weight:550;display:flex}.primary-button:hover{background:var(--green)}.wide{width:100%}.text-button{min-height:48px;color:var(--muted);margin:6px auto;padding:14px 10px;font-size:14px;display:block}.text-button:hover{color:var(--ink)}.sheet{contain:inline-size;background:var(--paper);color:var(--ink);overscroll-behavior:contain;border:0;border-radius:26px 26px 0 0;width:min(100%,480px);min-width:0;max-width:min(100vw,480px);max-height:calc(100svh - 40px);margin:auto auto 0;padding:0;position:fixed;inset:0;overflow:hidden auto;box-shadow:0 -12px 60px #15231a14}.sheet::backdrop{background:#18281f50}.sheet-inner{contain:inline-size;overflow-wrap:anywhere;width:100%;min-width:0;max-width:100%;padding:22px 26px calc(24px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)))}.sheet-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px;display:flex}.sheet-header h2{overflow-wrap:anywhere;letter-spacing:-.7px;flex:1;min-width:0;font-size:23px}.sheet-header .icon-button{flex-shrink:0}.sheet-inner input,.sheet-inner select,.sheet-inner textarea{min-width:0;max-width:100%;font-size:max(16px,1em)!important}.sheet-inner :where(form,label,fieldset){min-width:0;max-width:100%}.device-form{flex-direction:column;gap:21px;display:flex}.device-form label{flex-direction:column;gap:9px;font-size:14px;font-weight:550;display:flex}.device-form input{border:1px solid var(--line);background:var(--field);width:100%;min-height:53px;color:var(--ink);border-radius:13px;outline:none;padding:13px 15px;font-size:16px}.device-form input:focus{border-color:var(--green);box-shadow:0 0 0 3px #6d8e6c16}.device-form input::placeholder{color:var(--muted)}.field-hint{color:var(--muted);margin-top:-11px;font-size:13px;line-height:1.6}.form-error{color:var(--error);font-size:14px;line-height:1.5}.device-list{margin-bottom:24px}.device-row{border-bottom:1px solid var(--line);align-items:center;min-height:72px;display:flex}.device-choice{text-align:left;flex:1;align-items:center;gap:14px;min-width:0;min-height:72px;padding:12px 0;display:flex}.device-choice span{overflow-wrap:anywhere;flex:1;font-weight:500}.device-choice>svg:last-child{flex-shrink:0}.settings-list{margin-bottom:22px}.settings-link{border-bottom:1px solid var(--line);text-align:left;align-items:center;gap:14px;width:100%;padding:19px 0;display:flex}.settings-link>span:not(.account-avatar){flex:1}.settings-sync-error{color:var(--error);flex-direction:column;align-items:flex-start;gap:4px;margin:12px 0;font-size:14px;line-height:1.5;display:flex}.help-details{font-size:14px;line-height:1.65}.help-details summary{cursor:pointer;align-items:center;gap:14px;min-height:48px;list-style:none;display:flex}.help-details summary::-webkit-details-marker{display:none}.help-details summary:after{content:"+";margin-left:auto;font-size:20px}.help-details[open] summary:after{content:"−"}.help-details p{color:var(--muted);margin:12px 0}.version{color:var(--muted);text-align:center;margin-top:28px;font-size:12px}.danger{color:var(--error)}.remove-confirm{text-align:center;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin-top:24px;display:flex}.remove-confirm p{width:100%;font-size:14px}.remove-confirm .text-button{margin:0}.danger-button{background:var(--error);color:var(--on-error);border-radius:12px;min-height:48px;padding:12px 20px}.error-notice{z-index:5;bottom:calc(96px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));border:1px solid var(--line);background:var(--error-bg);border-radius:14px;align-items:center;gap:10px;width:min(100% - 32px,428px);padding:12px 14px;font-size:13px;line-height:1.5;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 4px 15px #2029190c}.error-notice span{flex:1}.error-notice button{min-height:36px;padding:6px;text-decoration:underline}.error-notice button:last-child{font-size:23px;text-decoration:none}.toast{z-index:6;left:50%;bottom:calc(99px + env(safe-area-inset-bottom,var(--safe-area-inset-bottom,0px)));background:var(--green);color:var(--on-accent);pointer-events:none;border-radius:24px;max-width:calc(100% - 32px);padding:10px 18px;font-size:13px;position:fixed;transform:translate(-50%);box-shadow:0 4px 20px #172f2220}@media (width>=600px){.sheet{border-radius:26px;width:min(100% - 48px,720px);max-width:min(100% - 48px,720px);margin:auto}.empty-state{min-height:calc(100svh - 300px)}}@media (height<=900px){.remote-layout{margin-top:15px}.utility-row{margin-bottom:10px}.navigation-surface{width:244px;height:244px}.playback-row{margin-top:16px}.volume-row{margin-top:12px}.remote-layout{max-width:306px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.books-content{min-height:55svh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:14px;display:flex}.books-content p{margin:0;font-size:15px}.lighting-content{padding:4px 0 24px}.lighting-toolbar{justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px;display:flex}.lighting-sections{background:var(--surface);border-radius:18px;gap:4px;padding:3px;display:flex}.lighting-sections button{min-height:44px;color:var(--muted);border-radius:15px;padding:8px 14px;font-size:14px}.lighting-sections button[aria-pressed=true]{background:var(--paper);color:var(--ink);font-weight:600;box-shadow:0 1px 5px #233f2f0d}.lighting-add-row{justify-content:flex-end;display:flex}.lighting-add-row .text-button{align-items:center;gap:5px;min-height:44px;display:flex}.lighting-row{border-bottom:1px solid var(--line);align-items:center;gap:8px;min-height:76px;display:flex}.lighting-item{text-align:left;flex:1;align-items:center;gap:14px;min-width:0;min-height:76px;display:flex}.lighting-item>span{overflow-wrap:anywhere;flex:1;font-size:17px;font-weight:500}.lighting-item>svg{color:var(--green);flex-shrink:0}.lighting-empty{min-height:220px;color:var(--muted);justify-content:center;align-items:center;font-size:15px;display:flex}.lighting-progress{color:var(--muted);margin:12px 0;font-size:14px}.lighting-error{color:var(--error);align-items:center;gap:8px;font-size:14px;line-height:1.5;display:flex}.lighting-error>span{flex:1}.light-power.is-on{background:var(--green);color:var(--on-accent)}.light-controls{flex-direction:column;gap:26px;padding:8px 0 24px;display:flex}.light-power-options{gap:12px;display:flex}.light-power-options button{background:var(--surface);border-radius:16px;flex:1;justify-content:center;align-items:center;gap:8px;min-height:52px;display:flex}.light-power-options button[aria-pressed=true]{color:var(--on-accent);background:var(--green)}.light-slider{flex-direction:column;gap:8px;font-size:15px;display:flex}.light-slider>span{justify-content:space-between;display:flex}.light-slider output{color:var(--muted);font-variant-numeric:tabular-nums}.light-slider input{width:100%;min-height:44px;accent-color:var(--green);cursor:pointer}.light-checkbox{cursor:pointer;flex:1;align-items:center;min-height:66px;flex-direction:row!important;gap:14px!important;display:flex!important}.light-checkbox input{height:22px;accent-color:var(--green);width:22px!important}.light-checkbox span{overflow-wrap:anywhere;flex:1;font-size:16px}.lighting-delete{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:10px;display:flex}.lighting-delete>span{text-align:center;width:100%;font-size:14px}@media (width<=360px){.lighting-sections button{padding:8px 10px}}.light-selection{overscroll-behavior:contain;max-height:38svh;overflow-y:auto}.scene-group-choices{flex-wrap:wrap;gap:8px;display:flex}.scene-group-choices button{background:var(--surface);border-radius:14px;min-height:44px;padding:8px 13px;font-size:14px}.scene-group-choices button[aria-pressed=true]{background:var(--green);color:var(--on-accent)}.light-selection-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.light-selection-actions .text-button{min-height:44px}.color-wheels{padding:0 8px 8px;position:relative}.color-wheel{aspect-ratio:1;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none;border-radius:50%;width:min(100%,320px);margin:0 auto;position:relative}.hue-wheel{background:radial-gradient(circle closest-side,#fff,#fff0),conic-gradient(from 180deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}.warmth-wheel{background:linear-gradient(#c5dfff,#f6f8ff 25%,#fff5dd 50%,#ffdf9e 75%,#ffaf52)}.wheel-marker{pointer-events:none;border:3px solid #fff;border-radius:50%;width:32px;height:32px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0004,0 1px 4px #0004}.wheel-accessible-page{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.wheel-accessible-page:focus-visible{clip-path:none;width:auto;height:auto;margin:12px auto 0;padding:10px;display:block;position:relative}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.account-screen{text-align:center;padding-top:45px}.account-screen h1{margin-bottom:64px}.account-screen h2{margin:20px 0 32px}.account-screen .device-form{text-align:left;max-width:330px;margin:0 auto}.account-back{position:absolute;top:112px;left:20px}.account-choices{flex-wrap:wrap;justify-content:center;gap:28px;padding:15px 0 32px;display:flex}.account-choice{border-radius:24px;flex-direction:column;align-items:center;gap:18px;min-width:126px;padding:14px;font-size:19px;display:flex}.account-choice:hover{background:var(--surface)}.account-avatar{background:var(--surface);width:40px;height:40px;color:var(--ink);aspect-ratio:1;border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.account-avatar.large{width:92px;height:92px}.account-avatar img{object-fit:cover;width:100%;height:100%}.profile-identity{flex-direction:column;align-items:center;gap:14px;display:flex}.profile-identity h3{margin:0;font-size:21px}.profile-photo-actions{justify-content:center;gap:8px;display:flex}.profile-photo-actions .text-button{margin:6px 0}.profile-section{border-bottom:1px solid var(--line);padding:16px 0 24px}.profile-section h3{margin:0 0 14px;font-size:16px}.theme-modes{background:var(--surface);border-radius:25px;padding:4px;display:flex}.theme-modes button{border-radius:22px;flex:1;min-height:44px;font-size:14px}.theme-modes button[aria-pressed=true]{background:var(--paper);font-weight:600}.custom-theme{margin-top:22px}.custom-theme label{justify-content:space-between;align-items:center;min-height:54px;font-size:15px;display:flex}.custom-theme input{background:var(--field);border:1px solid var(--line);border-radius:12px;width:60px;height:44px;padding:4px}.theme-preview{border:1px solid var(--line);border-radius:18px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:15px 0;padding:20px 12px;display:flex}.theme-preview span{border-radius:12px;justify-content:center;align-items:center;padding:14px;display:inline-flex}.profile-password{padding:10px 0 24px}:root{--app-gutter:26px}.app-shell>main{padding-left:max(var(--app-gutter), env(safe-area-inset-left,0px));padding-right:max(var(--app-gutter), env(safe-area-inset-right,0px))}.bottom-nav{padding-left:max(16px, env(safe-area-inset-left,0px));padding-right:max(16px, env(safe-area-inset-right,0px))}@media (width>=600px){:root{--app-gutter:clamp(28px, 4vw, 64px)}.book-tile-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:20px}.lighting-list,.recipe-list,.bet-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));align-items:start;gap:12px 28px;display:grid}.lighting-empty{grid-column:1/-1}.home-widget-grid{gap:16px}.home-widget-small,.home-widget-empty-slot{aspect-ratio:auto;height:clamp(120px,18vw,180px)}.home-widget-small .home-widget-action>span,.home-widget-small .home-scene-button>span{font-size:15px}.home-widget-medium{min-height:180px}.grocery-quick-add{width:auto;max-width:none;left:max(var(--app-gutter), env(safe-area-inset-left,0px));right:max(var(--app-gutter), env(safe-area-inset-right,0px))}}@media (width>=900px){.calendar-panel .calendar-events{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}}
