.mobile-sheet-scrim{position:fixed;z-index:60;inset:0 0 var(--keyboard-inset, 0px);padding-top:12px;display:flex;align-items:flex-end;justify-content:center;background:#0000008c}.mobile-sheet,.mobile-prompt{width:min(460px,100%);min-width:0;max-width:100%;margin:0 auto;padding:10px 10px calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);gap:6px;border:1px solid var(--border);border-radius:16px 16px 0 0;background:#1b1b1e}.mobile-sheet-title{padding:8px 10px;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sheet-tabs{margin-top:4px;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:2px;border:1px solid var(--border);border-radius:13px;background:#151517}.mobile-sheet .mobile-sheet-tabs button{min-height:40px;justify-content:center;gap:7px;border-radius:11px;background:transparent;color:var(--muted);font-size:12px}.mobile-sheet .mobile-sheet-tabs button.active{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent-soft)}.mobile-sheet-note{margin:2px 10px 0;color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sheet-note.wrap{overflow:visible;white-space:normal;line-height:1.45}.mobile-sheet-divider{height:1px;margin:6px 8px;background:var(--border)}.mobile-sheet button{min-height:46px;padding:0 12px;display:flex;align-items:center;gap:10px;border:0;border-radius:11px;background:#242428;color:#e8e5eb;font-size:13px;text-align:left}.mobile-sheet button svg{width:17px;height:17px}.mobile-sheet button.danger{color:var(--danger)}.mobile-sheet-cancel{justify-content:center;margin-top:4px;background:transparent!important;color:var(--muted)!important}.amber-record{margin-left:auto;flex:0 0 auto;display:flex;align-items:center;gap:5px}.amber-record-more{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:var(--accent-soft);cursor:pointer}.amber-record-more svg{width:19px;height:19px}.amber-record-more:hover,.amber-record-more:focus-visible{outline:none;border-color:var(--accent);background:#242328;color:#fff}.amber-record-button{min-width:0;max-width:132px;min-height:36px;padding:3px 11px;display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;border:1px solid transparent;border-radius:11px;background:var(--amber-slot-deep);color:#fff;font-size:12px;line-height:1.15;text-align:left;white-space:nowrap;cursor:pointer}.amber-record-button.secondary{background:transparent;border-color:var(--amber-slot-soft);color:var(--amber-slot)}.amber-record-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amber-record-button.recording .amber-record-name{font-weight:600}.amber-record-unsent{width:12px;height:12px;margin-right:4px;vertical-align:-1px;opacity:.8}.amber-record-time{font-size:11px;font-variant-numeric:tabular-nums;opacity:.85}.amber-record-button:disabled{opacity:.6;cursor:default}.amber-record-button.recording{border-color:var(--amber-slot);background:var(--amber-slot-soft);color:var(--amber-slot)}.amber-sheet-slot{padding:11px 12px;display:grid;gap:9px;border:1px solid var(--border);border-left:3px solid var(--amber-slot-deep);border-radius:12px;background:var(--panel-soft)}.amber-sheet-slot.running{border-left-color:var(--amber-slot);background:var(--amber-slot-soft)}.amber-sheet-slot-head{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;letter-spacing:.12em;text-transform:uppercase}.amber-sheet-slot-head>strong{margin-left:auto;color:#fff;font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:0}.amber-slot-elapsed{margin-left:auto;padding:2px 6px;border:1px solid transparent;border-radius:9px;background:transparent;color:#fff;font:inherit;font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;cursor:pointer}.amber-slot-elapsed:hover,.amber-slot-elapsed:focus-visible{outline:none;border-color:var(--accent)}.amber-slot-held{margin-left:auto;flex:0 0 auto;color:var(--muted);font-size:15px;font-variant-numeric:tabular-nums;letter-spacing:0;text-transform:none;opacity:.8}.amber-slot-held+.amber-slot-elapsed{margin-left:0}.amber-sheet-slot-head>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amber-sheet-slot:not(.running) .amber-sheet-slot-head>strong{color:var(--muted)}.amber-slot-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:var(--amber-slot)}.amber-sheet-slot:not(.running) .amber-slot-dot{opacity:.45}.amber-sheet-head svg{width:15px;height:15px;color:var(--muted)}.amber-sheet-scrim{position:fixed;z-index:60;inset:0 0 var(--keyboard-inset, 0px);padding-top:12px;display:flex;align-items:flex-end;justify-content:center;background:#0000008c}.amber-sheet{width:min(440px,100%);min-width:0;max-width:100%;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px calc(18px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start;border-top:1px solid var(--border);border-radius:18px 18px 0 0;background:var(--panel);box-shadow:0 -14px 44px #00000080}.amber-sheet-head{display:flex;align-items:baseline;justify-content:space-between;color:var(--muted);font-size:11px;letter-spacing:.12em;text-transform:uppercase}.amber-sheet-head strong{color:#fff;font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:0}.amber-name-field{position:relative;display:grid}.amber-name-suggestions{position:absolute;z-index:2;top:calc(100% + 4px);left:0;right:0;max-height:190px;padding:4px;display:grid;gap:2px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:11px;background:#1b1b1f;box-shadow:0 12px 30px #00000080}.amber-name-suggestions.floating{position:fixed;z-index:80;top:auto;right:auto;bottom:auto}.amber-name-suggestions button{min-height:40px;padding:0 10px;display:flex;align-items:center;border:0;border-radius:8px;background:transparent;color:#e8e5eb;font:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.amber-name-suggestions button:hover,.amber-name-suggestions button:focus-visible{outline:none;background:#26262c}.amber-sheet-name{min-height:46px;padding:0 13px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;font:inherit;-webkit-user-select:text;user-select:text}.amber-sheet-name:focus{outline:none;border-color:var(--accent)}.amber-sheet-name.known,.amber-sheet-name.known:focus{border-color:#5ec98a}.amber-watch-toggle{min-height:44px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px dashed var(--border);border-radius:11px;background:transparent;color:var(--muted);font:inherit;font-size:12px;text-align:left;cursor:pointer}.amber-watch-toggle svg{width:16px;height:16px;flex:0 0 auto}.amber-watch-toggle.on{border-style:solid;border-color:var(--accent);color:var(--accent-soft)}.amber-watch-toggle:disabled{opacity:.45;cursor:default}.amber-sheet-note{margin:0;min-width:0;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.amber-sheet-note.error{color:var(--danger)}.amber-sheet-actions{display:flex;gap:10px}.amber-sheet-actions button{flex:1;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;cursor:pointer}.amber-sheet-actions button svg{width:16px;height:16px}.amber-sheet-actions button.primary{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-soft)}.amber-sheet-actions button:disabled{opacity:.5;cursor:default}.mobile-sheet.time-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.time-sheet-body{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:2px 0}.time-sheet-clock{display:flex;align-items:center;justify-content:center;gap:8px}.time-dial{position:relative;width:min(46vw,184px);flex:0 0 auto;aspect-ratio:1;border-radius:50%;background:#242428;touch-action:none}.time-dial-hand{position:absolute;left:50%;bottom:50%;width:2px;transform-origin:50% 100%;background:var(--accent, #b779ff)}.time-dial-hand:after{content:"";position:absolute;top:-15px;left:50%;width:30px;height:30px;transform:translate(-50%);border-radius:50%;background:var(--accent, #b779ff)}.time-dial-centre{position:absolute;left:50%;top:50%;width:7px;height:7px;transform:translate(-50%,-50%);border-radius:50%;background:var(--accent, #b779ff)}.time-dial-label{position:absolute;z-index:2;transform:translate(-50%,-50%);color:#d8d6dc;font-size:13px;font-variant-numeric:tabular-nums;pointer-events:none}.time-dial-label.inner{color:var(--muted);font-size:11px}.time-dial-label.active{color:#14121a;font-weight:600}.time-sheet-clock>i{color:var(--muted);font-size:30px;font-style:normal;line-height:1}.time-sheet-unit{display:grid;justify-items:center;gap:2px}.mobile-sheet .time-sheet-unit>button{width:76px;min-height:34px;justify-content:center;padding:0;border-radius:10px;background:transparent;color:var(--muted)}.mobile-sheet .time-sheet-unit>button:disabled{opacity:.3}.mobile-sheet .time-sheet-unit>button svg{width:20px;height:20px}.mobile-sheet .time-sheet-unit>.time-sheet-value{min-height:62px;justify-content:center;border-radius:12px;background:#242428;color:#f1f0f2;font-size:34px;font-variant-numeric:tabular-nums;letter-spacing:.02em}.mobile-sheet .time-sheet-unit>.time-sheet-value.active{background:var(--accent, #b779ff);color:#14121a}.time-sheet-list{width:76px;min-height:62px;padding:0 6px;border:1px solid var(--accent);border-radius:12px;background:#242428;color:#f1f0f2;font-size:26px;font-family:inherit;text-align:center;font-variant-numeric:tabular-nums}.time-sheet-clock.with-seconds{gap:5px}.time-sheet-clock.with-seconds>i{font-size:24px}.time-sheet-clock.with-seconds .time-sheet-unit>button,.time-sheet-clock.with-seconds .time-sheet-list{width:62px}.time-sheet-clock.with-seconds .time-sheet-unit>.time-sheet-value{font-size:27px}.time-sheet-clock.with-seconds .time-sheet-list{font-size:22px}.time-sheet-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:2px 0}.mobile-sheet .time-sheet-quick button{min-height:38px;justify-content:center;padding:0;font-size:12px;font-variant-numeric:tabular-nums}.time-sheet-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px;padding-top:2px}.amber-sheet-name.spent,.amber-name-suggestions button.spent,.amber-sheet-name.over,.amber-name-suggestions button.over{color:#ff2d4b}.amber-sheet-name.warn,.amber-name-suggestions button.warn{color:#ffd23f}.amber-sheet-name.day,.amber-name-suggestions button.day{color:#ff6fb5}.amber-sheet-name.curfew,.amber-name-suggestions button.curfew{color:#4d8dff}.amber-sheet-name.break,.amber-name-suggestions button.break,.amber-sheet-name.pause,.amber-name-suggestions button.pause{color:#ff8a1f}.amber-panel{position:fixed;z-index:60;inset:0 0 var(--keyboard-inset, 0px);display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);background:#101014;color:#f2f2f5;-webkit-user-select:none;user-select:none}.amber-panel-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:10px 14px}.amber-panel-tabs{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:3px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#08080b}.amber-panel-tabs button{min-width:0;min-height:38px;padding:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;border-radius:9px;background:transparent;color:#9a9aa6;font:inherit;font-size:13px;cursor:pointer}.amber-panel-tabs button.active{background:#ffffff2e;color:#f2f2f5}.amber-panel-close{flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:#ffffff1a;color:#f2f2f5;cursor:pointer}.amber-panel-close svg{width:20px;height:20px}.amber-panel.sheet-over>.amber-panel-head{display:none}.amber-bar-switches{margin-top:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.amber-bar-switch{min-width:0;min-height:48px;padding:6px 10px 6px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:transparent;color:#9a9aa6;font:inherit;font-size:13px;text-align:left;cursor:pointer}.amber-bar-switch>span{min-width:0;line-height:1.2;overflow-wrap:anywhere}.amber-bar-switch>i{flex:0 0 auto;width:40px;height:22px;padding:2px;box-sizing:border-box;display:flex;border-radius:11px;background:#ffffff29;transition:background .15s}.amber-bar-switch>i>b{width:18px;height:18px;border-radius:50%;background:#d8d6dc;transition:transform .15s}.amber-bar-switch.on{color:#f2f2f5}.amber-bar-switch.on>i{background:#f0a13c}.amber-bar-switch.on>i>b{transform:translate(18px);background:#14121a}.amber-bar-switch:disabled{opacity:.4;cursor:default}.amber-panel-pages{position:relative;flex:1 1 auto;min-height:0}.amber-panel-page{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:4px 14px calc(20px + env(safe-area-inset-bottom))}.amber-panel-frame{width:100%;height:100%;border:0;background:#101014}.amber-sheet.amber-panel-timers{width:100%;max-width:560px;max-height:none;margin:0 auto;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}.amber-panel-say{margin:0;padding:40px 12px 12px;color:#9a9aa6;font-size:14px;text-align:center}.amber-panel-section{margin:12px 0 6px;color:#9a9aa6;font-size:12px;letter-spacing:.06em;text-transform:uppercase}.amber-panel-section:first-child{margin-top:2px}.amber-panel-card{margin-bottom:8px;padding:11px 12px 12px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:#ffffff14}.amber-panel-card.alarm{border-color:#ff6b6b87}.amber-panel-card-head{display:flex;align-items:center;gap:8px;font-size:15px}.amber-panel-card-dot{flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:var(--card-color)}.amber-panel-card-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amber-panel-card-head strong{flex:0 0 auto;font-weight:500;font-variant-numeric:tabular-nums}.amber-panel-card.alarm .amber-panel-card-head strong{color:#ff6b6b}.amber-panel-card-rail{height:8px;margin-top:9px;border-radius:4px;background:#ffffff21;overflow:hidden}.amber-panel-card-rail span{display:block;height:100%;border-radius:4px;background:var(--card-color)}.amber-panel-card.alarm .amber-panel-card-rail span{background:#ff6b6b}.amber-panel-card-note{margin:6px 0 0;color:#9a9aa6;font-size:12px}.sheet-x{display:inline-flex;align-items:center;justify-content:center;padding:0}.sheet-x svg{width:18px;height:18px}.amber-sheet-actions button.sheet-x{flex:0 0 52px}.mobile-prompt-actions:has(>.sheet-x),.entry-money-new-acts:has(>.sheet-x){grid-template-columns:52px 1fr}.time-sheet-actions:has(>.sheet-x){grid-template-columns:52px repeat(auto-fit,minmax(104px,1fr))}.amber-record-time,.amber-slot-elapsed,.amber-slot-held,.amber-sheet-slot-head>strong,.amber-sheet-head strong,.amber-panel-card-head strong,.amber-from-last strong{font-family:ui-monospace,Cascadia Mono,Roboto Mono,SF Mono,Consolas,monospace}.calendar-view{flex:1 1 auto;min-width:0;height:100%;min-height:100%;padding:14px 14px 0;display:flex;flex-direction:column;gap:8px;overflow:hidden;container-type:inline-size}.calendar-view-bar{flex:0 0 auto;display:flex;align-items:center;gap:8px}.calendar-view-step{width:40px;min-height:40px;flex:0 0 auto;display:inline-grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:var(--text);font:inherit;cursor:pointer}.calendar-view-step svg{width:19px;height:19px}.calendar-view-step.today{width:auto;padding:0 13px;font-size:12px;color:var(--accent-soft)}.calendar-view-month{flex:1;min-width:0;min-height:40px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:0 10px;border:1px solid transparent;border-radius:11px;background:transparent;color:inherit;cursor:pointer}@media (hover: hover){.calendar-view-month:hover{border-color:var(--border)}}.calendar-view-month>svg{flex:0 0 auto;width:16px;height:16px;color:var(--muted)}.calendar-view-month strong{font-size:15px}.calendar-view-spend{display:inline-flex;align-items:center;gap:5px;color:var(--accent);font-size:13px}.calendar-money{display:inline-flex;align-items:baseline;gap:4px;font-variant-numeric:tabular-nums}.calendar-money-icon{width:14px;height:14px;align-self:center}.calendar-view-week{flex:0 0 auto;display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calendar-view-day{min-height:52px;display:grid;gap:2px;place-items:center;padding:5px 2px;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);color:inherit;cursor:pointer;position:relative}.calendar-view-marks{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px;max-width:100%;line-height:1}.calendar-view-marks b{color:var(--muted);font-size:9px;font-weight:500}.entry-mark{flex:0 0 auto;width:11px;height:11px}.entry-mark.dot{width:7px;height:7px;border-radius:50%}.calendar-view-day.today .entry-mark.dot{box-shadow:0 0 0 1px color-mix(in srgb,var(--on-accent) 35%,transparent)}.calendar-view-dayname{color:var(--muted);font-size:10px;letter-spacing:-.02em}.calendar-view-daynum{font-size:15px;font-variant-numeric:tabular-nums}.calendar-view-day.today{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.calendar-view-day.today .calendar-view-dayname{color:var(--on-accent);opacity:.7}.calendar-view-day.selected{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent)}.calendar-view-error{flex:0 0 auto;margin:0;color:var(--danger);font-size:13px}.calendar-view-error.floating{position:fixed;z-index:70;left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));padding:10px 12px;border:1px solid var(--danger);border-radius:12px;background:var(--panel);box-shadow:0 12px 30px #00000073}.calendar-view-groups{flex:0 0 auto;display:flex;gap:5px}.calendar-view-groups button{flex:1 1 0;min-height:38px;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:var(--muted);font:inherit;font-size:12px;cursor:pointer}.calendar-view-groups button.extra{flex:0 0 auto;width:38px;padding:0}.calendar-view-groups button.extra.lit{color:var(--accent-soft)}.calendar-view-groups button svg{flex:0 0 auto;width:15px;height:15px}.calendar-view-groups button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-view-groups button b{flex:0 0 auto;padding:0 5px;border-radius:999px;background:color-mix(in srgb,var(--muted) 20%,transparent);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}.calendar-view-groups button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 18%,transparent);color:var(--text)}.calendar-view-groups button.active b{background:color-mix(in srgb,var(--accent) 35%,transparent)}.calendar-view-body.grouped{display:flex;overflow:hidden;padding-bottom:0}.calendar-view-columns.grouped{flex:1 1 auto;min-height:0;align-content:stretch;grid-template-columns:minmax(0,1fr)}.calendar-view-columns.grouped>.calendar-view-column{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(14px,env(safe-area-inset-bottom))}.calendar-view-columns.grouped .calendar-view-column-head{position:sticky;top:0;z-index:1;padding-bottom:4px;background:linear-gradient(var(--app-bg) 70%,transparent)}.calendar-view-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom))}.calendar-view-columns{display:grid;gap:18px;align-content:start}.calendar-view-column{min-width:0;display:grid;grid-auto-rows:max-content;gap:8px;align-content:start}.calendar-view-column-head{display:flex;align-items:center;gap:6px;height:34px}.calendar-view-column-head strong{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.calendar-view-count{margin-left:auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.calendar-view-plus{width:28px;height:28px;flex:0 0 auto;display:inline-grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:9px;background:var(--panel-soft);color:var(--text);cursor:pointer}.calendar-view-plus:first-of-type{margin-left:0}.calendar-view-plus svg{width:15px;height:15px}.calendar-view-plus.ghost{border-color:transparent;background:transparent;color:var(--muted)}.calendar-view-plus.ghost.lit{color:var(--accent-soft)}.calendar-view-empty{margin:0;color:var(--muted);font-size:13px}.history-row{display:grid;gap:7px;padding:9px 10px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft)}.history-when{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.history-when input{min-height:32px;padding:0 8px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:inherit;font:inherit;font-size:12px}.history-first{font-variant-numeric:tabular-nums}.history-span{color:var(--muted);font-size:11px}.history-price{margin-left:auto;color:var(--accent-soft);font-size:12px}.history-slots{display:flex;flex-wrap:wrap;gap:6px}.history-slot{display:flex;align-items:center;gap:8px;padding:4px 9px 4px 7px;border:1px solid var(--border);border-radius:9px;background:var(--panel)}.history-slot .calendar-view-when{color:var(--text)}.history-slot .calendar-view-when.stacked{min-width:40px}.history-slot-day{color:var(--muted);font-size:12px}.history-acts{display:flex;flex-wrap:wrap;gap:6px}.history-row .history-acts button{min-height:32px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:11.5px;text-align:left;cursor:pointer}.history-row .history-acts button svg{width:14px;height:14px}.history-row .history-acts button.danger{color:var(--danger)}.entry-view-title{font-weight:700;line-height:1.25}.entry-view-title.editing{display:flex;align-items:flex-start;border-bottom:1px solid var(--accent);padding-bottom:2px}.entry-view-title.editing .entry-mark{margin-top:3px;flex:0 0 auto}.entry-view-title-input{flex:1;min-width:0;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:inherit;font-weight:700;line-height:1.25;letter-spacing:-.01em;resize:none;overflow:hidden;-webkit-user-select:text;user-select:text;outline:none}.entry-view-notes.typing{border-color:var(--accent);font:inherit;font-size:13px;line-height:1.55;resize:vertical}.entry-view-title,.entry-view-notes{cursor:text}.entry-view-link{color:var(--accent-soft);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;cursor:pointer}.calendar-view-file{min-height:44px;display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);color:inherit;font-size:14px;text-align:left;cursor:pointer}.calendar-view-file svg{flex:0 0 auto;width:16px;height:16px;color:var(--muted)}.calendar-view-file span{min-width:0;overflow-wrap:anywhere}@container (min-width: 680px){.calendar-view-body{display:flex;overflow:hidden;padding-bottom:0}.calendar-view-columns{flex:1 1 auto;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-content:stretch}.calendar-view-column{min-height:0;align-content:start;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(14px,env(safe-area-inset-bottom))}.calendar-view-column-head{position:sticky;top:0;z-index:1;padding-bottom:4px;background:linear-gradient(var(--app-bg) 70%,transparent)}}@media (orientation: landscape) and (max-height: 560px){.calendar-view{padding:8px 10px 0;gap:6px}.calendar-view-step{width:34px;min-height:34px}.calendar-view-month{min-height:32px;flex-wrap:nowrap}.calendar-view-month strong{font-size:13px}.calendar-view-day{min-height:40px;padding:3px 2px}.calendar-view-daynum{font-size:14px}.calendar-view-marks{gap:2px}.entry-mark{width:9px;height:9px}.entry-mark.dot{width:6px;height:6px}.calendar-view-column-head{height:28px}.calendar-view-row,.calendar-view-file,.habit-row-name,.habit-value{min-height:42px}.mobile-sheet-scrim{padding-top:6px}.calendar-view{overflow-y:auto;overscroll-behavior:contain}.calendar-view-body{flex:0 0 auto;min-height:auto;overflow:visible}@container (min-width: 680px){.calendar-view-body{display:block;overflow:visible}.calendar-view-columns{align-content:start}.calendar-view-column{overflow:visible}}}.calendar-view-row{min-height:48px;display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:12px;background:var(--panel-soft);color:inherit;font-size:14px;text-align:left;cursor:pointer}.calendar-view-row.done{opacity:.55}.calendar-view-row.done .calendar-view-what{text-decoration:line-through}.calendar-view-when{flex:0 0 auto;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.calendar-view-when.stacked{display:grid;justify-items:center;gap:1px;line-height:1.15}.calendar-view-when.stacked b{font-weight:500;font-size:11.5px}.calendar-view-when.stacked i{width:100%;height:1px;background:currentColor;opacity:.35}.calendar-view-what{flex:1;min-width:0;overflow-wrap:anywhere}.calendar-view-price{flex:0 0 auto;color:var(--accent);font-size:12px}.calendar-view-repeat{flex:0 0 auto;width:13px;height:13px;color:var(--muted)}.calendar-view-row .entry-mark.in-row{width:15px;height:15px}.calendar-view-row .entry-mark.dot.in-row{width:9px;height:9px}.calendar-view-span{flex:0 0 auto;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}.calendar-view-star{flex:0 0 auto;width:13px;height:13px;color:var(--accent-soft)}.calendar-view-check{width:30px;min-height:30px;flex:0 0 auto;margin-right:-4px;display:inline-grid;place-items:center;border-radius:8px;color:var(--muted)}.calendar-view-check svg{width:19px;height:19px}.calendar-view-row.done .calendar-view-check{color:var(--accent)}.calendar-month-pane{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:6px;touch-action:pan-y}.calendar-month-names{flex:0 0 auto;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-month-names span{color:var(--muted);font-size:10px;text-align:center;letter-spacing:.04em;text-transform:uppercase}.calendar-month-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(12px,env(safe-area-inset-bottom))}.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(84px,auto);gap:4px}.calendar-month-cell{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:5px 5px 6px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:inherit;text-align:left;cursor:pointer;overflow:hidden}.calendar-month-cell.outside{opacity:.38}.calendar-month-cell.today{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 22%,transparent)}.calendar-month-cell.selected{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent)}.calendar-month-num{flex:0 0 auto;font-size:13px;font-variant-numeric:tabular-nums}.calendar-month-chip{min-width:0;padding:2px 5px;display:flex;align-items:center;gap:4px;border-left:2px solid var(--accent);border-radius:4px;background:var(--panel-soft);color:var(--text);font-size:10px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-month-marks{display:none;flex-wrap:wrap;align-items:center;gap:3px;line-height:1}.calendar-month-marks b{color:var(--muted);font-size:9px;font-weight:500}@container (max-width: 620px){.calendar-month-grid{grid-auto-rows:minmax(58px,auto);gap:3px}.calendar-month-cell{padding:4px 3px 5px;border-radius:8px;gap:4px}.calendar-month-chip,.calendar-month-more{display:none}.calendar-month-marks{display:flex}}.calendar-month-grid.picker{grid-auto-rows:minmax(44px,auto);gap:4px}.calendar-month-grid.picker .calendar-month-cell{align-items:center;justify-content:center;gap:1px;padding:2px}.calendar-month-grid.picker .calendar-month-num{font-size:14px}.calendar-month-tally{display:inline-flex;align-items:center;gap:3px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums;line-height:1}.calendar-month-tally b{color:var(--danger);font-weight:600}.calendar-month-cell.unnamed{border-color:var(--danger);background:color-mix(in srgb,var(--danger) 16%,transparent)}.calendar-month-cell.unnamed .calendar-month-num{color:var(--danger)}.calendar-month-cell.unnamed.selected{box-shadow:0 0 0 2px color-mix(in srgb,var(--danger) 55%,transparent)}.calendar-month-chip .entry-mark{width:10px;height:10px}.calendar-month-chip .entry-mark.dot{width:6px;height:6px}.calendar-month-chip.done{opacity:.55;text-decoration:line-through}.calendar-month-chip i{margin-right:4px;color:var(--muted);font-style:normal}.calendar-month-more{color:var(--muted);font-size:10px}.habit-row{display:flex;align-items:center;gap:8px}.habit-row-name{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);font-size:14px;text-align:left;cursor:pointer}.habit-row-name>span{min-width:0;overflow-wrap:anywhere}.habit-row.done .habit-row-name>span{opacity:.7}.habit-value{flex:0 0 auto;min-width:52px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);color:var(--muted);cursor:pointer}.habit-value svg{width:20px;height:20px}.habit-value.check{width:48px;min-width:48px}.habit-value.check:not(.done) svg{opacity:.25}.habit-value.number{min-width:62px}.habit-value.blank{opacity:.5}.habit-value.number.done{border-color:currentColor}.habit-value strong{font-size:15px;line-height:1.1}.habit-unit{font-size:10px;opacity:.75}.habit-typing{flex:0 0 auto;display:flex;align-items:center;gap:5px}.habit-value-input{width:62px;box-sizing:border-box;min-height:48px;padding:0 8px;border:1px solid var(--accent);border-radius:12px;background:var(--panel-soft);color:inherit;font-size:15px;text-align:center}.habit-typing-ok{width:40px;min-height:48px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:0;border-radius:12px;background:var(--accent);color:var(--on-accent);cursor:pointer}.habit-typing-ok svg{width:19px;height:19px}.calendar-view-row.carried{border-left-style:dashed}.calendar-view-row.missed{border-color:color-mix(in srgb,var(--danger) 45%,transparent)}.calendar-view-carried{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:10.5px;white-space:nowrap}.calendar-view-carried svg{width:12px;height:12px}.calendar-view-carried.missed{color:var(--danger)}.habit-due{flex:0 0 auto;margin-left:auto;display:inline-flex;align-items:center;gap:3px;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--muted) 16%,transparent);color:var(--muted);font-size:11px}.habit-due svg{width:12px;height:12px}.habit-due b{font-weight:500;font-variant-numeric:tabular-nums}.habit-row.asleep .habit-row-name>span{opacity:.65}.calendar-view-group{margin-top:2px;padding:0 2px;color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase;opacity:.8}.calendar-view-group:first-child{margin-top:0}.habit-amber{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:8px;row-gap:2px}.habit-amber-name{grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere}.habit-amber-time{grid-column:2;grid-row:1;justify-self:end;color:var(--text);font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap}.habit-amber-time>span{color:var(--muted)}.habit-amber-label{grid-column:1 / -1;grid-row:2;min-width:0;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.habit-amber-bar{grid-column:1 / -1;grid-row:3;display:block;height:4px;margin-top:3px;border-radius:999px;background:var(--border);overflow:hidden}.habit-amber-fill{display:block;height:100%;border-radius:inherit;background:var(--habit-color, var(--accent))}.calendar-habits-ahead{color:var(--muted);font-size:12.5px}.calendar-hero{display:grid;gap:6px;padding:2px 2px 4px}.calendar-hero-kicker{color:var(--accent-soft);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.calendar-hero-kicker.away{color:var(--muted)}.calendar-hero-date{font-size:26px;font-weight:650;line-height:1.1}.calendar-hero-progress{position:relative;height:6px;border-radius:999px;background:var(--panel-soft)}.calendar-hero-progress-fill{position:absolute;inset:0 auto 0 0;border-radius:inherit;background:var(--accent)}.calendar-hero-progress-now{position:absolute;top:-4px;width:2px;height:14px;margin-left:-1px;border-radius:1px;background:var(--text)}.calendar-hero-clock{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.calendar-hero-clock b{color:var(--text)}.calendar-hero-stats{display:flex;flex-wrap:wrap;gap:8px}.calendar-hero-stat{display:grid;padding:6px 11px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:inherit;font:inherit;text-align:left}.calendar-hero-stat b{font-size:16px;font-variant-numeric:tabular-nums}.calendar-hero-stat span{color:var(--muted);font-size:11px}button.calendar-hero-stat{cursor:pointer}button.calendar-hero-stat:hover{border-color:var(--accent)}.calendar-view-group.today{color:var(--accent-soft);opacity:1}.calendar-view-group.carried{color:var(--calendar-warn);opacity:1}.calendar-carried-age{flex:0 0 auto;padding:2px 7px;border-radius:6px;white-space:nowrap;color:var(--calendar-warn);background:color-mix(in srgb,var(--calendar-warn) 16%,transparent);font-size:11px}.calendar-now-line{display:flex;align-items:center;gap:8px;color:var(--accent-soft);font-size:11px;font-weight:600}.calendar-now-line:before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--accent)}.calendar-now-line:after{content:"";flex:1;height:2px;background:var(--accent)}.calendar-now-line>span{order:2}.money-sheet{display:grid;gap:12px;align-content:start}.money-head{display:flex;align-items:center;gap:10px}.money-head-title{flex:1;display:grid;justify-items:center;min-width:0}.money-head-title>span{color:var(--muted);font-size:12px}.money-total{font-size:28px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}.money-total small{color:var(--muted);font-size:60%;font-weight:600}.money-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.money-trio-cell{display:grid;gap:2px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft)}.money-trio-cell>span{color:var(--muted);font-size:11px}.money-trio-cell>b{font-size:16px;font-variant-numeric:tabular-nums}.money-trio-cell>small{color:var(--muted);font-size:11px}.money-trio-cell.earned>b{color:var(--calendar-earn)}.money-trio-cell.left.short>b{color:var(--danger)}.money-bar{display:flex;gap:2px;height:10px;border-radius:999px;overflow:hidden;background:var(--panel-soft)}.money-bar-seg{min-width:3px;background:var(--accent)}.money-legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px}.money-legend-item{display:inline-flex;align-items:baseline;gap:5px}.money-legend-dot{width:8px;height:8px;border-radius:50%;align-self:center;background:var(--accent)}.money-main{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}.money-own{color:var(--muted);font-variant-numeric:tabular-nums}.money-section{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.money-section.coming{color:var(--accent-soft)}.money-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border:none;border-radius:10px;background:var(--panel-soft);color:inherit;font:inherit;text-align:left;width:100%}.money-row.paid{background:transparent;opacity:.6}.money-row-date{flex:0 0 48px;color:var(--muted);font-size:12px}.money-row:not(.paid) .money-row-date{color:var(--accent-soft);font-weight:600}.money-row-dot{flex:0 0 8px;height:8px;border-radius:50%;background:var(--muted)}.money-row-title{flex:1;min-width:0;overflow-wrap:anywhere}.money-row-own{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.money-row-main{min-width:72px;text-align:right;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.money-row.earn .money-row-main{color:var(--calendar-earn)}.money-today{display:flex;align-items:center;gap:8px;color:var(--accent-soft);font-size:11px;font-weight:600}.money-today:before,.money-today:after{content:"";flex:1;height:2px;background:var(--accent)}.money-foot{color:var(--muted);font-size:12px}.money-apart{color:var(--danger);font-size:12px}.order-list{display:grid;gap:6px}.order-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);touch-action:none}.order-row.dragging{border-style:dashed;border-color:var(--accent);background:color-mix(in srgb,var(--accent) 18%,var(--panel-soft))}.order-row.hidden-group{opacity:.5;border-style:dashed}.order-grip{flex:0 0 auto;color:var(--muted);cursor:grab;display:inline-grid;place-items:center}.order-index{flex:0 0 18px;color:var(--muted);font-size:12px}.order-name{flex:1;min-width:0;display:grid}.order-name>b{font-size:14px}.order-name>span{color:var(--muted);font-size:11px}.order-actions{display:flex;gap:4px}.order-actions button{width:28px;height:28px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:7px;background:transparent;color:var(--text);cursor:pointer}.order-actions button:disabled{opacity:.35;cursor:default}:root{color-scheme:dark;font-family:Inter,Segoe UI Variable,Segoe UI,sans-serif;color:#f1f0f2;background:#101012;font-synthesis:none;--panel: #171719;--panel-soft: #1d1d20;--border: #303035;--muted: #929099;--accent: #b779ff;--accent-soft: #d7b4ff;--danger: #ff7f8a;--text: #e8e5eb;--on-accent: #14121a;--app-bg: #101012;--calendar-earn: #7ee08a;--calendar-warn: #f2907a}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0}body{min-height:100dvh;overflow:hidden}button{font:inherit}.web-app{--web-header: 64px}@media (orientation: landscape) and (max-height: 520px){.web-app{--web-header: 54px}}.web-app{min-height:100dvh;background:radial-gradient(circle at 70% 0,color-mix(in srgb,var(--accent) 8%,transparent),transparent 34%),#101012;-webkit-user-select:none;user-select:none}.web-app.bare>.document-stage{height:100dvh}.web-header{position:relative;z-index:20;height:calc(var(--web-header, 64px) + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border);background:#171719f0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.empty-gem{display:grid;place-items:center;flex:0 0 auto;transform:rotate(45deg);border:1px solid #8f5fc2;background:linear-gradient(145deg,#363039,#161518);box-shadow:inset 0 0 18px #ffffff0d,0 8px 24px #00000059}.empty-gem span{width:42%;height:42%;border:1px solid rgba(215,180,255,.66);border-radius:3px}.web-header-copy{min-width:0;flex:1 1 auto;display:grid;line-height:1.1}.web-header-title{min-width:0;display:flex;align-items:center;gap:8px}.web-header-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.web-header-copy>span{margin-top:5px;color:var(--muted);font-size:11px}.connection-badge{flex:0 0 auto;min-height:22px;padding:0 8px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:999px;background:#202024;color:var(--muted);font-size:10px;white-space:nowrap}button.connection-badge{cursor:pointer}.connection-badge i{width:7px;height:7px;border-radius:50%;background:#e0ad53;box-shadow:0 0 8px currentColor}.connection-badge.ready{padding:0;border-color:transparent;background:transparent;color:#94d5aa}.connection-badge.ready i{background:#64c486}.connection-badge.reconnecting{color:#e0ad53}.connection-badge.offline,.connection-badge.denied{color:var(--danger)}.connection-badge.offline i,.connection-badge.denied i{background:var(--danger)}.change-notice{position:fixed;z-index:30;top:calc(74px + env(safe-area-inset-top));left:50%;min-height:38px;max-width:calc(100vw - 28px);padding:0 13px;display:flex;align-items:center;gap:8px;transform:translate(-50%);border:1px solid #4a3a59;border-radius:999px;background:#201d23f5;color:var(--accent-soft);box-shadow:0 10px 34px #0006;font-size:12px;white-space:nowrap}.change-notice svg{width:15px;height:15px}.web-layout{height:calc(100dvh - var(--web-header, 64px) - env(safe-area-inset-top));display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}@media (min-width: 761px){.web-layout.files-hidden{grid-template-columns:minmax(0,1fr)}.web-layout.files-hidden .file-drawer{display:none}.mobile-editor,.cd-reader{width:100%;max-width:none}.cd-reader{padding-right:clamp(24px,5vw,72px);padding-left:clamp(24px,5vw,72px)}}.file-drawer{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid var(--border);background:#171719f0}.tree-scroll{flex:1 1 auto;min-height:0;padding:10px max(8px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.tree-row{width:100%;min-height:43px;padding:0 10px;display:flex;align-items:center;gap:10px;border:0;border-radius:9px;background:transparent;color:#d8d6dc;text-align:left;cursor:pointer}.tree-row:hover,.tree-row:focus-visible{outline:none;background:#242328;color:#fff}.tree-row svg{flex:0 0 auto;width:17px;height:17px;color:#a983d0}.tree-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-row.folder svg{color:#8d8994}.tree-row .tree-chevron{width:14px;margin-left:auto;color:#69666f}.tree-row.special{margin-bottom:6px;border:1px solid var(--module-accent, var(--accent));border-color:color-mix(in srgb,var(--module-accent, var(--accent)) 26%,transparent);background:color-mix(in srgb,var(--module-accent, var(--accent)) 9%,transparent);color:var(--module-accent, var(--accent-soft))}.tree-row.special svg{color:var(--module-accent, var(--accent-soft))}.tree-row.special.active{border-color:color-mix(in srgb,var(--module-accent, var(--accent)) 62%,transparent);background:color-mix(in srgb,var(--module-accent, var(--accent)) 20%,transparent);color:#fff}.module-list{display:grid}.drawer-head{flex:0 0 auto;min-height:48px;padding:0 6px 0 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border)}.drawer-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;letter-spacing:.04em;text-transform:uppercase}.files-module{min-height:100%;display:flex;flex-direction:column;padding:8px max(8px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.tree-section-label{padding:10px 4px 6px 10px;display:flex;align-items:center;gap:8px;color:#706d76;font-size:9px;letter-spacing:.14em;text-transform:uppercase}.tree-section-label>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-label-button{width:32px;height:32px;flex:0 0 auto;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#8d8994;cursor:pointer}.tree-label-button svg{width:17px;height:17px}.tree-label-button:hover{background:#242328;color:#fff}.sync-badge{margin-left:auto;display:inline-grid;place-items:center;color:#6f8f79}.sync-badge svg{width:16px;height:16px}.sync-badge.saving,.sync-badge.dirty{color:#e0ad53}.sync-badge.conflict,.sync-badge.error{color:var(--danger)}.tree-file-error{margin:0 6px 8px;padding:8px 10px;border:1px solid rgba(255,127,138,.4);border-radius:9px;color:var(--danger);font-size:11px}.tree-row-wrap{display:flex;align-items:center;gap:2px}.tree-row-wrap .tree-row{min-width:0}.tree-row-actions{width:34px;height:40px;flex:0 0 auto;display:inline-grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#69666f;cursor:pointer}.tree-row-actions svg{width:16px;height:16px}.tree-row-actions:hover{background:#242328;color:#fff}.tree-glyph{flex:0 0 auto;width:17px;text-align:center;font-size:15px;line-height:1}.tree-children{padding-left:13px}.tree-row-wrap.drop-target,.tree-section-label.drop-target{border-radius:9px;outline:1px dashed var(--accent);outline-offset:-1px;background:color-mix(in srgb,var(--accent) 12%,transparent)}.tree-drag-chip{position:fixed;z-index:70;max-width:62vw;padding:7px 12px;display:flex;align-items:center;gap:8px;transform:translate(-50%,-150%);border:1px solid var(--accent);border-radius:999px;background:#201d23f7;color:var(--accent-soft);box-shadow:0 12px 32px #00000080;font-size:12px;white-space:nowrap;pointer-events:none}.tree-drag-chip svg{flex:0 0 auto;width:15px;height:15px}.tree-drag-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis}.tree-label-button.active{background:color-mix(in srgb,var(--accent) 26%,transparent);color:#fff}.tree-row .tree-check{color:var(--accent)}.tree-row-wrap.picked{border-radius:9px;background:color-mix(in srgb,var(--accent) 14%,transparent)}.tree-row-wrap.favorites-folder .tree-row>span{color:var(--accent);font-size:11px;letter-spacing:.06em;text-transform:uppercase}.tree-row-wrap.favorites-folder .tree-row>svg:first-child{color:var(--accent)}.tree-offline{width:14px!important;height:14px!important;margin-left:auto;color:#6f8f79!important}.tree-offline.pending{color:#e0ad53!important}.tree-offline.conflict{color:var(--danger)!important}.tree-bulk-bar{flex:0 0 auto;padding:8px max(8px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:4px;border-top:1px solid var(--border);background:#1c1b1ffa}.tree-bulk-bar>span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}.tree-bulk-bar button{width:38px;height:38px;flex:0 0 auto;display:inline-grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#d8d6dc}@media (max-width: 380px){.tree-bulk-bar>span{flex:0 1 auto}.tree-bulk-bar button{width:34px;height:34px}}.tree-bulk-bar button svg{width:18px;height:18px}.tree-bulk-bar button:disabled{opacity:.3}.tree-bulk-bar button:not(:disabled):active{background:#2c2b31}.tree-bulk-bar button.danger{color:var(--danger)}.offline-screen{min-height:100%;padding:14px max(12px,env(safe-area-inset-left)) calc(28px + env(safe-area-inset-bottom));display:grid;gap:14px;align-content:start;overflow-y:auto}.offline-head{display:flex;align-items:center;gap:10px}.offline-head>div{display:grid;gap:3px;min-width:0}.offline-head strong{font-size:15px}.offline-head span{color:var(--muted);font-size:12px}.offline-head button{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;background:transparent;color:#d8d6dc;font-size:12px}.offline-head button svg{width:15px;height:15px}.offline-busy{margin:0;color:var(--accent-soft);font-size:12px}.offline-section{display:grid;gap:8px}.offline-section h3{margin:0;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px;letter-spacing:.1em;text-transform:uppercase}.offline-section h3 svg{width:14px;height:14px}.offline-note{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.offline-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;padding:4px;border:1px solid var(--border);border-radius:12px}.offline-row.pending{border-color:#e0ad5373}.offline-path{min-width:0;min-height:40px;padding:0 8px;display:flex;align-items:center;gap:9px;border:0;border-radius:9px;background:transparent;color:#d8d6dc;font-size:12px;text-align:left}.offline-path svg{flex:0 0 auto;width:16px;height:16px;color:var(--accent-soft)}.offline-path span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.offline-path small{margin-left:auto;flex:0 0 auto;color:var(--muted);font-size:10px}.offline-more{width:38px;height:40px;display:inline-grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#69666f}.offline-row-actions{grid-column:1 / -1;display:grid;gap:4px;padding:4px 2px 2px}.offline-row-actions button{min-height:40px;padding:0 10px;display:flex;align-items:center;gap:9px;border:0;border-radius:9px;background:#242328;color:#d8d6dc;font-size:12px}.offline-row-actions button.danger{color:var(--danger)}.offline-conflict{display:grid;gap:8px;padding:10px;border:1px solid rgba(255,127,138,.4);border-radius:12px;background:#ff7f8a0d}.offline-conflict header{display:flex;align-items:center;gap:8px;min-width:0}.offline-conflict header svg{flex:0 0 auto;width:16px;height:16px;color:var(--danger)}.offline-versions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.offline-versions>div{display:grid;gap:4px;min-width:0}.offline-versions strong{font-size:12px}.offline-versions small{color:var(--muted);font-size:10px}.offline-versions pre{margin:0;max-height:140px;padding:8px;overflow:auto;border:1px solid var(--border);border-radius:8px;background:#161619;color:#b9b6c0;font-size:11px;line-height:1.4;white-space:pre-wrap;word-break:break-word}.offline-choices{display:flex;flex-wrap:wrap;gap:6px}.offline-choices button{min-height:40px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;background:transparent;color:#d8d6dc;font-size:12px}.offline-choices button svg{width:15px;height:15px}.offline-choices button.primary{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 24%,transparent);color:#fff}.folder-picker-list{max-height:min(56vh,420px);display:grid;gap:4px;overflow-y:auto;overscroll-behavior:contain}.mobile-sheet .folder-picker-list button{min-height:44px;font-size:13px}.mobile-sheet .folder-picker-list button:disabled{opacity:.45}.mobile-sheet .folder-picker-list button small{margin-left:auto;color:var(--muted);font-size:10px}.mobile-prompt{align-items:stretch}.mobile-prompt strong{padding:6px 4px;font-size:13px}.mobile-prompt input{min-height:46px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:#131316;color:#e8e5eb;font-size:15px}.mobile-prompt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-prompt-actions button{min-height:44px;border:1px solid var(--border);border-radius:11px;background:#242428;color:#e8e5eb}.mobile-prompt-actions .primary{border-color:transparent;background:var(--accent);color:#14121a}.papyrus-mobile{height:100%;min-height:100%;display:flex;flex-direction:column}.papyrus-mobile-bar{flex:0 0 auto;padding:5px 10px;display:flex;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--border);background:#171719f5}.papyrus-mobile-bar-row{margin:0 auto;display:flex;align-items:center;gap:2px}.papyrus-mobile-bar::-webkit-scrollbar{height:0}.papyrus-mobile-bar button{width:40px;height:40px;flex:0 0 auto;display:inline-grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#cfccd4}.papyrus-mobile-bar button svg{width:19px;height:19px}.papyrus-mobile-bar button:disabled{opacity:.35}.papyrus-mobile-bar button.active{background:color-mix(in srgb,var(--accent) 26%,transparent);color:#fff}.papyrus-mobile-sep{width:1px;height:20px;flex:0 0 auto;margin:0 7px;background:var(--border)}.papyrus-mobile-bar .papyrus-mobile-pen svg{width:21px;height:21px}.papyrus-mobile-colors{display:inline-flex;align-items:center;gap:7px}.papyrus-mobile-color{width:24px!important;height:24px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.14)!important}.papyrus-mobile-color.active{box-shadow:0 0 0 2px #171719f5,0 0 0 3.5px var(--accent)}.mobile-sheet .papyrus-eraser-row{grid-template-columns:repeat(2,1fr)}.papyrus-mobile-viewport{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;touch-action:none;overscroll-behavior:contain;isolation:isolate}.papyrus-mobile-viewport>canvas{position:absolute;top:0;left:0;display:block}.papyrus-mobile-live{pointer-events:none}.papyrus-eraser-ring{position:absolute;z-index:4;top:0;left:0;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #0000008c,inset 0 0 0 1px #0000008c;pointer-events:none;will-change:transform}.papyrus-transform-dot{position:absolute;z-index:4;top:0;left:0;box-sizing:border-box;border:2px solid #fff;border-radius:50%;background:transparent;opacity:.8;box-shadow:0 0 0 1px #00000073,inset 0 0 0 1px #00000073;pointer-events:none;will-change:transform}.papyrus-steps{--papyrus-thumb: 34px;display:flex;align-items:center;gap:4px}.papyrus-steps .papyrus-steps-nudge{width:40px;min-height:40px;flex:0 0 auto;display:inline-grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#cfccd4}.papyrus-steps .papyrus-steps-nudge svg{width:18px;height:18px}.papyrus-steps .papyrus-steps-nudge:disabled{opacity:.3}.papyrus-steps-track{position:relative;flex:1 1 auto;min-width:0;height:var(--papyrus-thumb);touch-action:none}.papyrus-steps-track:before,.papyrus-steps-track:after{position:absolute;top:50%;left:calc(var(--papyrus-thumb) / 2 - 3px);height:6px;border-radius:999px;transform:translateY(-50%);content:""}.papyrus-steps-track:before{right:calc(var(--papyrus-thumb) / 2 - 3px);background:#2b2b30}.papyrus-steps-track:after{width:calc(3px + var(--papyrus-step) * (100% - var(--papyrus-thumb)));background:#6f6c78}.papyrus-steps-dots{position:absolute;z-index:1;top:0;bottom:0;right:calc(var(--papyrus-thumb) / 2);left:calc(var(--papyrus-thumb) / 2);display:flex;align-items:center;justify-content:space-between}.papyrus-steps-dots i{width:3px;height:3px;border-radius:50%;background:var(--muted);opacity:.6}.papyrus-steps-dots i.past{opacity:0}.papyrus-steps-thumb{position:absolute;z-index:2;top:50%;left:calc(var(--papyrus-thumb) / 2 + var(--papyrus-step) * (100% - var(--papyrus-thumb)));width:var(--papyrus-thumb);height:var(--papyrus-thumb);display:grid;place-items:center;border-radius:50%;background:#e8e5eb;color:#17171b;font-size:12px;font-weight:700;box-shadow:0 1px 3px #00000080;transform:translate(-50%,-50%);pointer-events:none}.mobile-sheet.papyrus-ink-sheet,.mobile-sheet.papyrus-paper-sheet,.mobile-sheet.papyrus-tool-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.color-wheel{display:grid;justify-items:center;gap:10px;padding:2px 0 4px}.color-wheel-ring{position:relative;width:min(72vw,260px);aspect-ratio:1;border-radius:50%;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red);box-shadow:inset 0 0 0 1px #ffffff2e;touch-action:none}.color-wheel-ring:after{position:absolute;top:9%;right:9%;bottom:9%;left:9%;border-radius:50%;background:#6c6d70;content:""}.color-wheel-hue-cursor{position:absolute;z-index:3;top:50%;left:50%;width:15px;height:15px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #111;transform:translate(-50%,-50%);pointer-events:none}.color-wheel-sv{position:absolute;z-index:2;top:50%;left:50%;width:58%;height:58%;overflow:hidden;border:1px solid rgba(0,0,0,.65);background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--color-wheel-hue));transform:translate(-50%,-50%);touch-action:none}.color-wheel-sv-cursor{position:absolute;width:15px;height:15px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #111;transform:translate(-50%,-50%);pointer-events:none}.color-wheel-current{display:flex;align-items:center;gap:10px}.color-wheel-chip{width:34px;height:34px;border:1px solid rgba(255,255,255,.35);border-radius:8px}.color-wheel-hex{display:flex;align-items:center;gap:3px;color:var(--muted);font-size:13px}.color-wheel-hex input{width:9.5ch;min-height:38px;padding:0 8px;border:1px solid var(--border);border-radius:9px;background:#131316;color:#e8e5eb;font-size:14px;letter-spacing:.06em}.mobile-sheet.papyrus-icon-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.papyrus-icon-search{min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:#131316;color:#e8e5eb;font-size:15px}.papyrus-icon-row{display:flex;flex-wrap:wrap;gap:6px}.mobile-sheet .papyrus-icon-row button{width:42px;min-height:42px;padding:0;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:11px;background:transparent;color:#cfccd4}.mobile-sheet .papyrus-icon-row button.active{border-color:var(--accent);color:var(--accent-soft);background:color-mix(in srgb,var(--accent) 12%,transparent)}.mobile-sheet .papyrus-icon-row button svg{width:19px;height:19px}.palette-picker{display:grid;gap:7px;padding:4px 4px 0}.palette-picker-head{display:flex;align-items:center;justify-content:space-between}.palette-picker-head>span{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.mobile-sheet .palette-picker-edit{min-height:34px;padding:0 12px;gap:6px;border-radius:999px;background:#242428;color:var(--muted);font-size:12px}.mobile-sheet .palette-picker-edit.active{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-soft)}.mobile-sheet .palette-picker-edit svg{width:15px;height:15px}.palette-picker-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.palette-picker-tabs::-webkit-scrollbar{height:0}.mobile-sheet .palette-picker-tabs button{min-height:36px;flex:0 0 auto;padding:0 13px;border:1px solid var(--border);border-radius:999px;background:transparent;color:#cfccd4;font-size:12px}.mobile-sheet .palette-picker-tabs button.active{border-color:var(--accent);color:var(--accent-soft)}.mobile-sheet .palette-picker-tabs button.palette-picker-new{padding:0 10px;color:var(--muted)}.palette-picker-grid{display:flex;flex-wrap:wrap;gap:8px}.mobile-sheet .palette-picker-swatch{width:40px;min-height:40px;padding:0;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:50%;color:#fff}.mobile-sheet .palette-picker-swatch.active{outline:2px solid var(--accent);outline-offset:2px}.mobile-sheet .palette-picker-swatch.add{border-style:dashed;background:transparent;color:var(--muted)}.mobile-sheet .palette-picker-swatch.removing svg{width:16px;height:16px;filter:drop-shadow(0 0 2px rgba(0,0,0,.9))}.palette-picker-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-sheet .papyrus-color-open{gap:10px;font-size:12px;letter-spacing:.03em}.mobile-sheet .papyrus-color-open i{width:24px;height:24px;flex:0 0 auto;border:1px solid rgba(255,255,255,.25);border-radius:50%}.palette-picker-empty,.palette-picker-error{color:var(--muted);font-size:12px;padding:2px 2px 4px}.palette-picker-error{color:var(--danger)}.papyrus-mobile-return{position:absolute;z-index:5;top:50%;width:36px;height:58px;display:grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:12px;background:#171719e6;color:#d8d6dc}.papyrus-mobile-return.right{transform:translate(8px,-50%)}.papyrus-mobile-return.left{transform:translate(calc(-100% - 8px),-50%)}.papyrus-mobile-return svg{width:20px;height:20px}.papyrus-mobile-layer{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.papyrus-mobile-layer .papyrus-mobile-text{pointer-events:auto}.papyrus-mobile-text{position:absolute;min-height:1.4em;padding:2px 4px;border:1px dashed rgba(76,141,255,.4);border-radius:4px;background:transparent;line-height:1.35;resize:none;overflow:hidden}.papyrus-mobile-page-label{position:absolute;transform:translate(-50%);color:var(--muted);font-size:10px;white-space:nowrap}.papyrus-mobile-zoom{display:inline-flex;align-items:center;gap:2px}.papyrus-mobile-bar .papyrus-mobile-zoom button{width:34px;height:34px;border-radius:9px}.papyrus-mobile-bar .papyrus-mobile-zoom button svg{width:16px;height:16px}.papyrus-mobile-bar .papyrus-mobile-zoom-value{width:auto;min-width:46px;padding:0 6px;font-size:11px}.papyrus-paper-sheet .papyrus-paper-group,.amber-sheet .papyrus-paper-group{display:grid;gap:6px;padding:6px 4px 2px}.papyrus-paper-group>span{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.papyrus-paper-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.mobile-sheet .papyrus-paper-row button{min-height:56px;display:grid;place-items:center;gap:4px;padding:0;border:1px solid var(--border);font-size:11px;text-align:center}.mobile-sheet .papyrus-paper-row button.active{border-color:var(--accent);color:var(--accent-soft)}.papyrus-paper-colors{display:flex;flex-wrap:wrap;gap:8px}.mobile-sheet .papyrus-paper-swatch,.amber-sheet .papyrus-paper-swatch{width:40px;min-height:40px;padding:0;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:50%;background:#242428;color:#e8e5eb;font-size:13px;cursor:pointer}.amber-sheet .papyrus-paper-swatch svg{width:17px;height:17px}.mobile-sheet .papyrus-paper-swatch.active,.amber-sheet .papyrus-paper-swatch.active{outline:2px solid var(--accent);outline-offset:2px}.mobile-sheet .papyrus-paper-swatch.custom,.amber-sheet .papyrus-paper-swatch.custom{color:var(--muted)}.papyrus-paper-check{min-height:46px;display:flex;align-items:center;gap:10px;padding:0 4px;color:#d8d5dc;font-size:13px}.papyrus-paper-check input{width:20px;height:20px;accent-color:var(--accent)}.papyrus-preview{display:block;width:100%;border:1px solid var(--border);border-radius:10px}.mobile-settings-tabs{margin:0 0 6px;padding-bottom:4px;display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}.mobile-settings-tabs::-webkit-scrollbar{display:none}.mobile-settings-tabs button{flex:0 0 auto;min-height:40px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--muted);font-size:13px;cursor:pointer}.mobile-settings-tabs button svg{width:16px;height:16px}.mobile-settings-tabs button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-soft)}.mobile-settings-value{justify-self:end;color:var(--muted);font-size:13px}.mobile-settings-rowicon{width:16px;height:16px;margin-right:8px;vertical-align:-3px;color:var(--accent-soft)}.mobile-settings-edit{min-height:38px;padding:0 14px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:10px;background:#242428;color:#e8e5eb;font-size:13px}.mobile-settings-edit svg{width:15px;height:15px}.document-stage{min-width:0;height:100%;overflow:auto;overscroll-behavior:contain;-webkit-user-select:text;user-select:text}.empty-state,.message-state{min-height:100%;padding:40px 22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-gem{width:74px;height:74px;margin-bottom:30px;border-radius:17px}.empty-state h1{max-width:500px;margin:0;font-size:clamp(27px,5vw,48px);letter-spacing:-.04em}.empty-state p,.message-state p{max-width:460px;margin:14px 0 0;color:var(--muted);line-height:1.55}.read-only-pill{margin-top:26px;padding:7px 11px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;color:var(--accent-soft);background:color-mix(in srgb,var(--accent) 8%,transparent);font-size:11px}.read-only-pill svg{width:14px}.cd-reader{width:min(780px,100%);min-height:100%;margin:0 auto;padding:clamp(32px,7vw,92px) clamp(22px,6vw,68px) 120px}.cd-reader pre{margin:0;color:#eceaf0;font:var(--reader-size, 17px)/1.82 "Segoe UI Variable","Segoe UI",sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.cd-empty-note{margin:0;color:var(--muted)}.cdr{color:#eceaf0;font:var(--reader-size, 17px)/1.75 "Segoe UI Variable","Segoe UI",sans-serif;-webkit-user-select:text;user-select:text}.cdr-p,.cdr-heading{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.cdr-heading{margin:14px 0 4px;font-weight:700}.cdr-blank{height:1.25em}.cdr-url,.cdr-link{color:var(--accent-soft);text-decoration:none;overflow-wrap:anywhere}button.cdr-link{padding:0;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}button.cdr-link:disabled,.cdr-link.missing{color:var(--muted);cursor:default}.cd-inline-icon{display:inline-flex;vertical-align:-.14em}.cd-divider{height:0;margin:12px 0;border-top:2px solid #3a3a42}.cd-divider-dotted{border-top-style:dotted}.cd-divider-dashed{border-top-style:dashed}.cd-divider-wavy{border-top-style:solid;opacity:.6}.cd-divider-pulse{border-top-style:double}.cdr-callout{margin:10px 0;padding:10px 12px;border-radius:10px}.cd-callout-title{display:flex;align-items:center;gap:7px;font-weight:700}.cd-callout-title.collapsible{cursor:pointer}.cd-callout-title svg{width:15px;height:15px}.cd-table-scroll{max-width:100%;margin:10px 0;overflow-x:auto}.cd-table{border-collapse:collapse}.cd-table th,.cd-table td{padding:6px 10px;border:1px solid var(--border);text-align:left}.cd-table th{background:#1d1d20}.cd-embed-img{display:block;max-width:100%;margin:8px 0;border-radius:8px}.cd-embed-cd{display:block;max-width:100%;margin:8px 0;padding:10px;border:1px solid var(--border);border-radius:10px;background:#151517}.cd-embed-audio{display:block;max-width:100%;margin:8px 0}.cd-embed-audio audio{width:100%}.cd-embed-pdf{max-width:100%;margin:8px 0;border:1px solid var(--border);border-radius:10px;overflow:hidden}.cd-embed-pdf iframe{width:100%;height:100%;border:0;background:#2a2a2d}.cd-embed-missing{display:inline-flex;align-items:center;gap:6px;color:var(--danger);font-size:12px}.cd-embed-missing svg{width:14px;height:14px}.mobile-editor{width:min(920px,100%);min-height:100%;margin:0 auto;padding:18px clamp(12px,4vw,32px) max(90px,env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none}.mobile-editor input,.mobile-editor textarea,.carat-mobile-search input{-webkit-user-select:text;user-select:text}.mobile-save-status{position:sticky;z-index:12;top:10px;min-height:38px;margin-bottom:12px;padding:9px 11px;border:1px solid var(--border);border-radius:11px;background:#1d1d20f5;box-shadow:0 9px 28px #00000040;color:var(--muted);font-size:11px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.mobile-save-status>div:first-child{display:flex;align-items:center;gap:7px}.mobile-save-status svg{width:15px;height:15px}.mobile-save-status.saved{color:#94d5aa}.mobile-save-status.dirty,.mobile-save-status.saving{color:#e0ad53}.mobile-save-status.conflict,.mobile-save-status.error{border-color:#ff7f8a73;color:var(--danger)}.mobile-save-status p{margin:8px 0 0;color:#d8b7bb;line-height:1.45}.mobile-conflict-actions{margin-top:9px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.mobile-conflict-actions button,.mobile-save-status.error>button{min-height:38px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);border-radius:9px;background:#242428;color:#e8e5eb}.mobile-conflict-actions button.primary{border-color:#8554b6;background:#6e409c}.mobile-editor-toolbar{margin-bottom:10px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.mobile-editor-toolbar button{min-height:42px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:10px;background:#1d1d20;color:var(--muted)}.mobile-editor-toolbar button.active{border-color:color-mix(in srgb,var(--accent) 58%,transparent);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-soft)}.mobile-editor-toolbar svg{width:16px;height:16px}.cd-mobile-textarea{width:100%;min-height:calc(100dvh - 184px - env(safe-area-inset-top));padding:clamp(18px,5vw,38px);resize:none;border:1px solid var(--border);border-radius:12px;outline:none;background:#151517;color:#eeecf1;font:16px/1.7 Segoe UI Variable,Segoe UI,sans-serif;caret-color:var(--accent-soft)}.cd-mobile-textarea:focus{border-color:color-mix(in srgb,var(--accent) 58%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 10%,transparent)}.cd-reader.mobile-preview{min-height:calc(100dvh - 184px);padding-top:24px;border:1px solid var(--border);border-radius:12px;background:#151517}.mobile-add-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;margin-bottom:12px}.mobile-add-row.compact{flex:0 0 auto;margin:10px 0 0}.mobile-add-row input,.mobile-field-label input,.todo-mobile-list-title input,.todo-mobile-item>input[type=text],.todo-mobile-item>input:not([type]),.carat-mobile-search input{min-width:0;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:9px;outline:none;background:#18181b;color:#f0edf2;font:inherit}.mobile-add-row input:focus,.mobile-field-label input:focus,.todo-mobile-list-title input:focus,.todo-mobile-item>input:focus,.carat-mobile-search input:focus{border-color:color-mix(in srgb,var(--accent) 58%,transparent)}.mobile-add-row button,.mobile-primary-action{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid color-mix(in srgb,var(--accent) 58%,transparent);border-radius:9px;background:#6e409c;color:#fff}.mobile-add-row button:disabled{opacity:.45}.todo-mobile-editor{height:100%;display:flex;flex-direction:column}.todo-mobile-lists{flex:1 1 auto;min-height:0;display:flex;align-items:stretch;gap:12px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.todo-mobile-list{width:min(310px,82vw);flex:0 0 auto;max-height:100%;display:flex;flex-direction:column;scroll-snap-align:start;padding:11px;border:1px solid var(--border);border-radius:12px;background:#171719}.todo-mobile-new-list{align-self:flex-start;background:transparent;border-style:dashed}.todo-mobile-new-list .mobile-add-row{margin:0}.todo-mobile-list-title{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:7px}.todo-mobile-list-title input{min-height:38px;padding-left:8px;border-color:transparent;background:transparent;font-weight:650}.icon-button.compact{width:38px;height:38px}.todo-mobile-items{flex:1 1 auto;min-height:0;display:grid;align-content:start;gap:6px;margin-top:8px;overflow-y:auto;overscroll-behavior:contain}.todo-mobile-item{min-height:43px;display:grid;grid-template-columns:26px minmax(0,1fr) 36px;align-items:start;gap:5px}.todo-mobile-item>input[type=checkbox],.mobile-check-row input{width:19px;height:19px;margin-top:12px;accent-color:var(--accent)}.todo-mobile-item>textarea{min-width:0;min-height:39px;padding:8px 7px;resize:none;overflow:hidden;border:1px solid transparent;border-radius:9px;outline:none;background:#1d1d20;color:#f0edf2;font:inherit;line-height:1.4;field-sizing:content;overflow-wrap:anywhere;white-space:pre-wrap}.todo-mobile-item>textarea:focus{border-color:color-mix(in srgb,var(--accent) 58%,transparent)}.todo-mobile-item-text{min-width:0;min-height:39px;padding:8px 7px;border-radius:9px;background:#1d1d20}.todo-mobile-item-text .cdr{font-size:14px;line-height:1.45}.todo-mobile-item-empty{color:var(--muted);font-size:14px}.todo-mobile-item.done .todo-mobile-item-text,.todo-mobile-item.done>textarea{color:#77737c;text-decoration:line-through}.todo-mobile-item>.icon-button.compact{margin-top:2px}.lingua-mobile-bar{margin-bottom:10px;display:flex;align-items:center;gap:8px}.lingua-mobile-counts{min-width:0;flex:1 1 auto;display:flex;gap:5px;overflow:hidden;font-size:10px}.lingua-mobile-counts span{padding:3px 8px;border-radius:999px;background:#1d1d20;white-space:nowrap}.lingua-mobile-counts .new{color:#7fb2ff}.lingua-mobile-counts .learning{color:#e0ad53}.lingua-mobile-counts .review{color:#94d5aa}.lingua-mobile-counts .frozen{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent-soft)}.lingua-mobile-modes{flex:0 0 auto;padding:3px;display:flex;gap:3px;border:1px solid var(--border);border-radius:10px;background:#1a1a1d}.lingua-mobile-modes button{width:36px;height:28px;display:inline-grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--muted);cursor:pointer}.lingua-mobile-modes button svg{width:16px;height:16px}.lingua-mobile-modes button.active{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-soft)}.lingua-mobile-settings{padding:0 0 24px}.lingua-mobile-voice-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.lingua-mobile-voice-row button{min-height:38px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--accent) 58%,transparent);border-radius:10px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent-soft);cursor:pointer}.lingua-mobile-voice-row button svg{width:15px;height:15px}.lingua-mobile-voice-row span{flex:1 1 140px;color:var(--muted);font-size:11px}.mobile-field-label{display:grid;gap:6px;margin-bottom:10px}.mobile-field-label>span{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.mobile-check-row{min-height:42px;display:flex;align-items:center;gap:9px;color:#d8d5dc;font-size:12px}.mobile-primary-action{width:100%;margin:5px 0 12px}.lingua-mobile-cards{display:grid;gap:8px}.lingua-mobile-card{border:1px solid var(--border);border-radius:11px;background:#171719;overflow:hidden}.lingua-mobile-card summary{min-height:48px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.lingua-mobile-card summary::-webkit-details-marker{display:none}.lingua-mobile-card summary span{font-weight:600;font-size:12px}.lingua-mobile-card summary small{color:var(--muted);text-transform:capitalize}.lingua-mobile-card textarea{width:calc(100% - 20px);min-height:210px;margin:0 10px;padding:12px;resize:vertical;border:1px solid var(--border);border-radius:9px;outline:none;background:#111113;color:#ece9ef;font:14px/1.55 ui-monospace,Consolas,monospace}.lingua-mobile-card textarea:focus{border-color:color-mix(in srgb,var(--accent) 58%,transparent)}.lingua-mobile-card-actions{padding:6px 10px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.lingua-mobile-card-actions button{min-height:36px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,127,138,.35);border-radius:8px;background:#ff7f8a14;color:var(--danger)}.lingua-review{display:grid;gap:14px}.lingua-review-done{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center}.lingua-review-done svg{width:38px;height:38px;color:#64c486}.lingua-review-done strong{color:#eceaf0;font-size:17px}.lingua-reveal{margin:4px 0 0}.lingua-card,.lingua-question,.lingua-card-html{width:100%}.lingua-card-html,.lingua-question-body{color:#fff;font-size:19px;font-weight:500;line-height:1.45;-webkit-user-select:text;user-select:text}.lingua-question{display:flex;flex-direction:column;align-items:center;padding:18px 4px;border:1px solid var(--border);border-radius:14px;background:#151517;text-align:center}.lingua-question-words{margin-bottom:14px;color:#fff;font-size:21px;font-weight:700}.lingua-vs{margin:0 8px;color:#888;font-size:12px;font-style:normal;letter-spacing:1px;text-transform:uppercase;vertical-align:middle}.lingua-question-body{cursor:pointer}.lingua-question-hint{margin-top:16px;color:#55525b;font-size:12px;font-style:italic}.lingua-target,.lingua-blank{color:#00a2ff;font-weight:700}.lingua-blank{letter-spacing:2px}.lingua-tab-row{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;width:100%;margin-bottom:10px}.lingua-tab{min-height:38px;padding:6px 13px;border:2px solid #444;border-radius:10px;background:transparent;color:#888;font-family:inherit;font-size:13px}.lingua-tab.active{font-weight:700}.lingua-meaning-row{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%;margin-bottom:14px;padding:6px;border:2px solid #444;border-radius:10px}.lingua-meaning-tab{min-height:34px;padding:3px 12px;border:2px solid #444;border-radius:8px;background:transparent;color:#888;font-family:inherit;font-size:13px}.lingua-meaning-tab.active{color:#fff;font-weight:700}.lingua-content-divider,.lingua-divider-thick{width:80%;height:1px;margin:6px auto 18px;background:#444}.lingua-divider-dashed{width:99%;height:0;margin:20px auto;border-top:2px dashed #666}.lingua-line{width:100%;margin-bottom:6px;text-align:left}.lingua-line.rtl{text-align:right}.lingua-sep{margin:0 8px;color:#fff}.lingua-pos-divider{margin:0 4px;color:#fff6;font-weight:300}.lingua-meta{font-size:.75em}.lingua-ipa-lang{color:#9e9e9e;font-size:.55em}.lingua-tts{display:inline-block;padding:3px 9px;border:1px solid #444;border-radius:6px;background:#2c2c2c;cursor:pointer}.lingua-form-chip{display:inline-block;margin:0 2px;padding:3px 10px;border:1px solid #555;border-radius:7px;color:#999;font-size:.9em}.lingua-form-chip.active{border-width:2px;font-weight:700}.lingua-mini-toggle{margin:0 5px;padding:3px 10px;border:1px solid #444;border-radius:6px;background:#2c2c2c;color:#9e9e9e;font-family:inherit;font-size:.72em;vertical-align:middle}.lingua-mini-toggle.active{border-color:#00a2ff;color:#00a2ff}.lingua-swap,.lingua-ex,.lingua-colloc-head{margin-bottom:6px}.lingua-ex-row{display:flex;align-items:flex-start;gap:6px}.lingua-ex-main{flex:1 1 auto;min-width:0}.lingua-ex-toggle{flex:0 0 auto;align-self:flex-start;margin-top:2px;padding:2px 9px;border:1px solid #555;border-radius:6px;background:transparent;color:#9e9e9e;font-family:inherit;font-size:.8em}.lingua-ex-trans{margin:3px 0 0 16px;color:#9e9e9e;font-size:.92em}.lingua-colloc-item{display:inline-block;margin:2px 0}.lingua-colloc-tr{color:#9e9e9e;font-size:.75em}.lingua-empty-card{padding:20px;color:#777;font-size:15px;text-align:center}.lingua-grades{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.lingua-grade{min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid var(--border);border-radius:11px;background:#1d1d20;color:#e8e5eb}.lingua-grade small{color:var(--muted);font-size:10px}.lingua-grade.grade-1{border-color:#ff7f8a73}.lingua-grade.grade-2{border-color:#e0ad5373}.lingua-grade.grade-3{border-color:#94d5aa73}.lingua-grade.grade-4{border-color:#7fb2ff73}.carat-mobile-view{min-height:100%;padding:18px clamp(12px,4vw,32px) max(80px,env(safe-area-inset-bottom));-webkit-user-select:none;user-select:none}.carat-mobile-hero{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px}.carat-mobile-hero>div{display:flex;align-items:center;gap:10px;color:#e8e5eb;font-size:21px;font-weight:700}.carat-mobile-hero>div svg{width:25px;height:25px;color:var(--accent)}.carat-mobile-hero button{min-height:39px;padding:0 11px;display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:9px;background:#202024;color:#dedbe2}.carat-mobile-hero button svg{width:15px;height:15px}.carat-mobile-tabs{margin:9px 0 10px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.carat-mobile-tabs button{min-height:43px;border:1px solid var(--border);border-radius:10px;background:#19191c;color:var(--muted)}.carat-mobile-tabs button.active{border-color:color-mix(in srgb,var(--accent) 58%,transparent);background:color-mix(in srgb,var(--accent) 11%,transparent);color:var(--accent-soft)}.carat-mobile-tabs span{margin-left:5px;color:#77727e;font-size:10px}.carat-mobile-search{min-height:44px;display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;border:1px solid var(--border);border-radius:10px;background:#18181b}.carat-mobile-search>svg{width:16px;height:16px;justify-self:end;color:var(--muted)}.carat-mobile-search input{min-height:42px;border:0;background:transparent}.carat-mobile-meta{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px}.carat-mobile-error{margin-bottom:10px;padding:10px;display:flex;align-items:center;gap:8px;border:1px solid rgba(255,127,138,.35);border-radius:9px;color:var(--danger);font-size:11px}.carat-mobile-error svg{width:16px;height:16px}.carat-mobile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:11px}.carat-mobile-card{position:relative;min-width:0;display:grid;grid-template-columns:142px minmax(0,1fr);border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#171719;color:inherit;text-decoration:none;content-visibility:auto;contain-intrinsic-size:106px}.carat-mobile-art{position:relative;min-height:106px;display:grid;place-items:center;background:#0f0f11;overflow:hidden}.carat-mobile-art img{width:100%;height:100%;object-fit:contain}.carat-mobile-art>svg{width:30px;height:30px;color:#4d4a52}.carat-mobile-art>strong{position:absolute;right:6px;bottom:6px;padding:4px 6px;border-radius:6px;background:#4e9e65;color:#fff;font-size:12px}.carat-mobile-card-copy{min-width:0;padding:11px 28px 10px 11px}.carat-mobile-card-copy h3{margin:0;overflow:hidden;color:#eeebf0;font-size:13px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.carat-mobile-price{min-height:25px;display:flex;align-items:center;gap:7px;font-size:11px}.carat-mobile-price del{color:#77727d}.carat-mobile-price strong{color:#9dd5ad}.carat-mobile-card-copy p{margin:2px 0 0;overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.carat-mobile-countdown{display:block;margin-top:5px;color:#d9b375;font-size:9px}.carat-mobile-link{position:absolute;top:10px;right:9px;width:14px;height:14px;color:#6f6b75}.carat-mobile-empty{min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.carat-mobile-empty>svg{width:42px;height:42px;color:#5d5863}.carat-mobile-empty h2{margin:15px 0 0}.carat-mobile-empty p{max-width:360px;margin:8px 0 0;color:var(--muted);line-height:1.5}.gallery-mobile{height:100%;display:flex;flex-direction:column}.gallery-mobile-bar{flex:0 0 auto;display:grid;gap:8px;padding:12px clamp(12px,3vw,24px) 10px;border-bottom:1px solid var(--border)}.gallery-mobile-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.gallery-mobile-controls button{min-height:36px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:9px;background:#19191c;color:var(--muted);font-size:12px}.gallery-mobile-controls button.active{border-color:color-mix(in srgb,var(--accent) 58%,transparent);background:color-mix(in srgb,var(--accent) 11%,transparent);color:var(--accent-soft)}.gallery-mobile-controls svg{width:15px;height:15px}.gallery-mobile-size{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:var(--muted)}.gallery-mobile-size svg{width:15px;height:15px}.gallery-mobile-size input{width:clamp(90px,22vw,160px)}.gallery-mobile-exts{display:flex;flex-wrap:wrap;gap:5px}.gallery-mobile-exts button{min-height:30px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--muted);font-size:11px}.gallery-mobile-exts button.active{border-color:color-mix(in srgb,var(--accent) 58%,transparent);color:var(--accent-soft)}.gallery-mobile-grid{flex:1 1 auto;min-height:0;display:grid;align-content:start;gap:10px;padding:12px clamp(12px,3vw,24px) calc(28px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.gallery-mobile-tile{display:grid;gap:5px;padding:0;border:0;background:transparent;color:inherit;text-align:left}.gallery-mobile-thumb{display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#151517}.gallery-mobile-thumb img{width:100%;height:100%;object-fit:cover}.gallery-mobile-thumb>svg{width:22px;height:22px;color:#4d4a52}.gallery-mobile-name{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.gallery-mobile-date{color:var(--muted);font-size:9px;opacity:.72;white-space:nowrap}.gallery-mobile-empty{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:30px;text-align:center}.gallery-mobile-empty svg{width:42px;height:42px;color:#5d5863}.gallery-mobile-empty p{margin:0;max-width:320px;color:var(--muted);line-height:1.5}.media-view{min-height:100%;padding:22px;display:grid;place-items:center}.media-view.image img{max-width:100%;max-height:calc(100dvh - 112px);object-fit:contain;border-radius:10px;box-shadow:0 18px 60px #0000006b}.media-view.audio{align-content:center;gap:24px}.media-view.audio>svg{width:64px;height:64px;color:var(--accent)}.media-view.audio audio{width:min(560px,100%)}.media-view.pdf{padding:0}.media-view.pdf iframe{width:100%;height:100%;border:0;background:#2a2a2d}.gra-stage{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.gra-surface{position:relative;flex:1;min-height:0;touch-action:none;overscroll-behavior:contain;background:#131315}.gra-camera-canvas{display:block;width:100%;height:100%}.gra-loading{position:absolute;inset:auto 0 50% 0;display:flex;justify-content:center;gap:8px}.gra-loading span{width:10px;height:10px;border-radius:50%;background:linear-gradient(90deg,#1d1d20,#37363c,#1d1d20);background-size:220% 100%;animation:shimmer 1.4s linear infinite}.gra-controls{display:flex;align-items:center;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#171719}.gra-controls button{min-width:44px;height:38px;padding:0 10px;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:#202024;color:#e4e2e7;font-size:12px;cursor:pointer}.gra-controls button svg{width:18px;height:18px}.gra-readonly{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.gra-readonly svg{width:14px;height:14px}.module-home{min-height:100%;padding:18px 14px calc(28px + env(safe-area-inset-bottom))}.module-home-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}.module-home-head>svg{width:26px;height:26px;color:var(--accent)}.module-home-head strong{display:block;font-size:19px}.module-home-head span{color:var(--muted);font-size:12px}.module-home-list{display:grid;gap:10px}.module-home-switch{margin-left:auto;min-height:34px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--muted);font-size:12px;cursor:pointer}.module-home-switch svg{width:15px;height:15px}.module-home-switch.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-soft)}.module-home-switch b{min-width:18px;padding:0 5px;border-radius:999px;background:color-mix(in srgb,var(--accent) 26%,transparent);color:#fff;font-size:10px;text-align:center}.module-home-error{margin-bottom:10px;padding:9px 12px;border:1px solid var(--danger);border-radius:12px;color:var(--danger);font-size:12px}.module-home-row{display:flex;align-items:stretch;gap:8px}.module-home-row.done{opacity:.7}.module-home-row .module-home-card{flex:1 1 auto;min-width:0}.module-home-tick{flex:0 0 auto;width:46px;display:grid;place-items:center;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:var(--muted);cursor:pointer}.module-home-tick svg{width:18px;height:18px}.module-home-tick:disabled{opacity:.4}.module-home-card{display:grid;gap:6px;padding:13px 14px;border:1px solid var(--border);border-radius:14px;background:#1b1b1e;color:inherit;text-align:left;cursor:pointer}.module-home-card-title{display:flex;align-items:center;gap:8px;min-width:0}.module-home-card-title svg{width:17px;height:17px;color:var(--accent-soft);flex:none}.module-home-card-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.module-home-card-stats{color:var(--muted);font-size:12px}.module-home-card-stats.lingua{display:flex;align-items:center;gap:8px}.module-home-card-stats.lingua i{font-style:normal;font-variant-numeric:tabular-nums}.module-home-card-stats.lingua .new{color:#6fb2ff}.module-home-card-stats.lingua .learning{color:#ffb45c}.module-home-card-stats.lingua .review{color:#7ee0a1}.module-home-card-stats.lingua em{margin-left:auto;font-style:normal}.module-home-card-note{color:var(--accent-soft);font-size:12px}.module-home-chips{display:flex;flex-wrap:wrap;gap:5px}.module-home-chips i{padding:2px 8px;border-radius:999px;background:#26262b;color:#c9c6cf;font-style:normal;font-size:11px}.module-home-empty{display:grid;justify-items:center;gap:6px;padding:46px 20px;color:var(--muted);text-align:center}.module-home-empty svg{width:30px;height:30px}.module-home-empty strong{color:#e4e2e7}.message-state>svg{width:52px;height:52px;color:#8e8995}.message-state.error>svg{color:var(--danger)}.message-state h2{margin:20px 0 0;font-size:23px}.document-loading{width:min(700px,calc(100% - 44px));margin:70px auto;display:grid;gap:16px}.document-loading span,.tree-skeleton span{display:block;border-radius:8px;background:linear-gradient(90deg,#1d1d20,#29282d,#1d1d20);background-size:220% 100%;animation:shimmer 1.4s linear infinite}.document-loading span{height:18px}.document-loading span:nth-child(2){width:86%}.document-loading span:nth-child(3){width:64%}.tree-skeleton{display:grid;gap:9px;padding:8px}.tree-skeleton span{height:34px}.icon-button{width:42px;height:42px;padding:0;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:#202024;color:#e4e2e7;cursor:pointer}.icon-button svg{width:20px;height:20px}.mobile-only{display:none}@keyframes shimmer{to{background-position:-220% 0}}@media (max-width: 760px){.mobile-only{display:inline-grid}.web-header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));gap:9px}.connection-badge{max-width:118px;overflow:hidden;text-overflow:ellipsis}.web-layout{display:block}.file-drawer{position:fixed;z-index:40;top:0;bottom:0;left:0;width:min(88vw,360px);padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);border-right:1px solid var(--border);transform:translate(-102%);transition:transform .22s ease;box-shadow:18px 0 50px #00000070}.file-drawer.open{transform:translate(0)}.drawer-scrim{position:fixed;z-index:35;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;background:#00000094}.document-stage{height:100%;padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}.cd-reader{padding-top:34px}.cd-reader pre{line-height:1.72}.media-view{padding:12px}.mobile-editor,.carat-mobile-view{padding-top:10px}.mobile-conflict-actions,.carat-mobile-grid{grid-template-columns:1fr}.amber-record-button{max-width:104px;padding:0 10px}.amber-day-view{padding:10px 10px 24px}}@media (max-width: 430px){.carat-mobile-card{grid-template-columns:118px minmax(0,1fr)}.carat-mobile-art{min-height:96px}}@media (max-width: 760px) and (orientation: landscape) and (max-height: 520px){.file-drawer{width:min(68vw,340px)}.change-notice{top:calc(62px + env(safe-area-inset-top))}.empty-state,.message-state{padding-top:24px;padding-bottom:24px}.empty-gem{width:54px;height:54px;margin-bottom:20px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.amber-day-view{position:relative;height:100%;min-height:0;padding:14px 14px 0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.amber-day-head{display:grid;gap:10px}.amber-day-scroll{min-height:0;padding-bottom:calc(20px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.amber-day-bar{display:flex;align-items:center;gap:8px}.amber-day-bar button{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;cursor:pointer}.amber-day-date{flex:1 1 auto;min-width:0;gap:8px;padding:0 10px;font:inherit;font-size:13px}.amber-day-date svg{flex:0 0 auto;width:16px;height:16px;color:var(--muted)}.amber-day-date span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sheet.amber-month-sheet{gap:10px;padding:12px 12px calc(16px + env(safe-area-inset-bottom))}.amber-month-bar{display:flex;align-items:center;gap:8px}.amber-month-bar strong{flex:1 1 auto;min-width:0;text-align:center;font-size:15px}.amber-month-bar button{min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;font:inherit;font-size:12px;cursor:pointer}.amber-month-bar button svg{width:17px;height:17px}.amber-day-bar button svg{width:17px;height:17px}.amber-day-bar input{flex:1;min-width:0;min-height:40px;padding:0 11px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;font:inherit}.amber-day-today{padding:0 12px;font-size:12px;color:var(--accent-soft)!important}.amber-day-summary{display:flex;align-items:baseline;justify-content:space-between;color:var(--muted);font-size:12px}.amber-day-summary strong{color:#fff;font-size:17px;font-variant-numeric:tabular-nums}.amber-day-error{margin:0;color:var(--danger);font-size:12px}.amber-day-toname{margin-left:10px;min-height:26px;padding:0 9px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--danger);border-radius:9px;background:transparent;color:var(--danger);font:inherit;font-size:12px;cursor:pointer}.amber-day-toname svg{width:14px;height:14px}.amber-day-tools{margin-left:auto;margin-right:8px;display:inline-flex;gap:6px}.amber-day-tools button{width:32px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:9px;background:var(--panel-soft);color:inherit;cursor:pointer}.amber-day-tools button svg{width:15px;height:15px}.amber-day-tools button:disabled{opacity:.35;cursor:default}.amber-day-tools button.active{border-color:var(--accent);background:var(--accent-soft);color:#14121a}.amber-day-selection{position:absolute;z-index:4;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));padding:8px 10px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:13px;background:#1a1a1ef5;box-shadow:0 12px 30px #00000080}.amber-day-selection>span{flex:1 1 auto;min-width:0;color:var(--muted);font-size:12px}.amber-day-selection button{min-height:38px;padding:0 10px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:inherit;font-size:12px;cursor:pointer}.amber-day-selection button svg{width:15px;height:15px}.amber-day-selection button:disabled{opacity:.4;cursor:default}.amber-day-selection button.danger{color:var(--danger)}.amber-from-last{min-height:34px;padding:0 9px;display:flex;align-items:center;gap:9px;border:1px dashed var(--border);border-radius:11px;background:transparent;color:var(--muted);font:inherit;font-size:12px;text-align:left;cursor:pointer}.amber-from-last svg{width:15px;height:15px;flex:0 0 auto}.amber-from-last span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amber-from-last strong{margin:0;color:#e8e5eb;font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:0}.amber-from-last:disabled{opacity:.5;cursor:default}.amber-day-zoom{margin-left:0;display:inline-flex;gap:6px}.amber-day-zoom button{width:34px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:9px;background:var(--panel-soft);color:inherit;cursor:pointer}.amber-day-zoom button svg{width:16px;height:16px}.amber-day-zoom button:disabled{opacity:.4;cursor:default}.amber-day-grid{display:grid;grid-template-columns:46px minmax(0,1fr);gap:6px}.amber-day-hours{position:relative}.amber-day-hour{position:absolute;right:0;transform:translateY(-50%)}.amber-day-hour span{color:#b6b2be;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.amber-day-hour.quarter span{color:#6d6a74;font-size:10px;font-weight:400}.amber-day-track{position:relative;height:100%;border:1px solid var(--border);border-radius:10px;background:#151517;overflow:hidden}.amber-day-line{position:absolute;left:0;right:0;height:1px;background:#2b2b31}.amber-day-line.quarter{background:#202024}.amber-day-block{position:absolute;padding:2px 6px;display:flex;flex-direction:column;justify-content:flex-start;overflow:hidden;border:1px solid;border-radius:4px;text-align:left;line-height:1.25;cursor:pointer}.amber-day-block b,.amber-day-block span,.amber-day-block i{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amber-day-block.full b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--amber-name-lines, 1);white-space:normal;overflow-wrap:anywhere}.amber-day-block.full span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--amber-info-lines, 1);white-space:normal}.amber-day-block b{font-size:12px;font-weight:700}.amber-day-block span{font-size:11px;font-variant-numeric:tabular-nums;opacity:.82}.amber-day-block i{font-style:normal;font-size:11px;opacity:.68}.amber-day-block .amber-day-device{position:absolute;right:3px;bottom:2px;width:11px;height:11px;opacity:.55;pointer-events:none}.amber-day-block.tail .amber-day-device{bottom:auto;top:2px}.amber-sheet-prefix{display:flex;align-items:center;gap:8px;margin-bottom:8px}.amber-sheet-prefix-chip{padding:4px 9px;border-radius:7px;background:#8a7bd829;border:1px solid rgba(138,123,216,.5);color:#cfc6ff;font-size:13px}.amber-sheet-prefix-field{flex:0 1 150px}.amber-sheet-prefix-edit{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:7px;border:1px solid var(--border, #2a2a30);background:transparent;color:var(--text-dim);font-size:12px}.amber-sheet-prefix-edit svg{width:13px;height:13px}.amber-day-block.tail{justify-content:flex-end}.amber-day-block.line{padding:0 6px;flex-direction:row;align-items:flex-start;gap:0;line-height:1.15}.amber-day-block.line.tail{align-items:flex-end;justify-content:flex-start}.amber-day-block.line b{flex:0 1 auto;font-size:11px}.amber-day-block.line span{flex:1 1 auto;min-width:0;font-size:11px}.amber-day-block.picked{outline:2px solid #fff;outline-offset:-2px}.amber-day-block.running{border-style:dashed;border-width:2px;opacity:.6;cursor:default;pointer-events:none}.amber-entry-times{display:grid;gap:9px}.amber-entry-times label{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px;color:var(--muted);font-size:12px}.amber-entry-times input{min-width:0;min-height:42px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:#e8e5eb;font:inherit;font-variant-numeric:tabular-nums}.amber-entry-times input:focus{outline:none;border-color:var(--accent)}.time-field{min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:#e8e5eb;font:inherit;font-variant-numeric:tabular-nums;cursor:pointer}.time-field svg{width:15px;height:15px;flex:0 0 auto;color:var(--muted)}.time-field:focus-visible{outline:none;border-color:var(--accent)}.mobile-settings-row .time-field{justify-self:end}.amber-sheet-actions button.ghost.danger{border-color:var(--danger);color:var(--danger)}.mobile-sheet.entry-view{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.entry-view-title{margin:0;padding:0 10px;font-size:19px;letter-spacing:-.01em}.entry-view-facts{display:flex;flex-wrap:wrap;gap:6px 14px;padding:2px 10px}.entry-view-facts span{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.entry-view-facts svg{width:14px;height:14px}.entry-view-notes{margin:4px 0 0;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:#131316;color:#ddd9e2;font-size:14px;line-height:1.5;white-space:pre-wrap;-webkit-user-select:text;user-select:text}.entry-view-notes.empty{color:var(--muted);font-style:italic}.entry-view-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px;padding-top:4px}.mobile-sheet .entry-view-actions button{justify-content:center;min-height:44px}.mobile-sheet .entry-view-actions button.primary{background:var(--accent, #b779ff);color:#14121a}.mobile-sheet .entry-view-actions button.lit{color:var(--accent-soft)}.entry-view-title .entry-mark{width:18px;height:18px;margin-right:8px;vertical-align:-2px}.entry-view-title .entry-mark.dot{width:11px;height:11px}.mobile-sheet.entry-list-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.entry-list-row{display:flex;align-items:center;gap:6px}.mobile-sheet .entry-list-open{flex:1;min-width:0;gap:9px}.mobile-sheet .entry-list-open>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sheet .entry-list-open>i{flex:0 0 auto;color:var(--muted);font-size:11px;font-style:normal;font-variant-numeric:tabular-nums}.mobile-sheet .entry-list-act{width:46px;flex:0 0 auto;justify-content:center;padding:0}.mobile-sheet .entry-list-act.danger{color:var(--danger)}.entry-list-when{flex:0 0 auto;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.entry-look-icon{display:flex;align-items:center;gap:6px}.mobile-sheet .entry-look-icon .papyrus-color-open{flex:1;min-width:0}.mobile-sheet.entry-sheet{max-height:100%;display:flex;flex-direction:column}.entry-sheet-scroll{flex:1 1 auto;min-height:0;display:grid;gap:6px;align-content:start;overflow-y:auto;overscroll-behavior:contain}.entry-sheet-name{display:flex;align-items:stretch;gap:6px}.entry-sheet .entry-sheet-title{flex:1;min-width:0;min-height:46px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:#131316;color:#e8e5eb;font-size:16px;-webkit-user-select:text;user-select:text}.mobile-sheet .entry-sheet-mark{width:46px;flex:0 0 auto;justify-content:center;padding:0;border:1px solid var(--border);background:#131316;color:var(--muted)}.mobile-sheet .entry-sheet-mark.lit{border-color:var(--accent);color:var(--accent-soft)}.entry-sheet-mark .entry-mark{width:19px;height:19px}.entry-sheet-mark .entry-mark.dot{width:13px;height:13px}.entry-sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:2px 2px 0}.entry-sheet-grid>label{display:grid;gap:3px;min-width:0;color:var(--muted);font-size:10px;letter-spacing:.06em;text-transform:uppercase}.entry-sheet-grid input,.entry-sheet-grid select,.entry-sheet-grid textarea{width:100%;box-sizing:border-box;min-height:38px;padding:6px 9px;border:1px solid var(--border);border-radius:10px;background:#131316;color:#e8e5eb;font-size:14px;font-family:inherit;-webkit-user-select:text;user-select:text}.entry-sheet-grid textarea{min-height:0;resize:vertical}.entry-sheet-notes{width:100%;box-sizing:border-box;min-height:46px;padding:8px 12px;border:1px solid var(--border);border-radius:11px;background:#131316;color:#e8e5eb;font-size:14px;font-family:inherit;line-height:1.45;resize:vertical;-webkit-user-select:text;user-select:text}.entry-sheet-toggle{align-self:end;display:flex!important;align-items:center;gap:8px;min-height:38px;padding:0 9px;box-sizing:border-box;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:inherit;font-size:12px;letter-spacing:0!important;text-transform:none!important}.entry-sheet-toggle input{width:auto!important;min-height:0;accent-color:var(--accent)}.entry-sheet-title.static{flex:1;min-width:0;display:flex;align-items:center;padding:0 4px;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-sheet-wide{grid-column:1 / -1}.entry-sheet-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.entry-sheet-weekdays button{min-height:36px;padding:0 2px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:9px;background:var(--panel-soft);color:var(--muted);font:inherit;font-size:11px}.entry-sheet-weekdays button.active{border-color:var(--accent);color:var(--accent-soft)}.entry-sheet-note{grid-column:1 / -1;margin:0;color:var(--muted);font-size:11px;line-height:1.45}.entry-sheet-currency{display:flex;gap:6px}.entry-sheet-currency input{flex:1;min-width:0}.entry-sheet-currency-icon{width:38px;min-height:38px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:var(--muted);cursor:pointer}.entry-sheet-currency-icon.active{border-color:var(--accent);color:var(--accent-soft)}.entry-sheet-currency-icon svg{width:17px;height:17px}.entry-sheet-actions{flex:0 0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:10px -10px calc(-14px - env(safe-area-inset-bottom));padding:12px 10px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#1b1b1e}.mobile-sheet .entry-sheet-actions button{justify-content:center;min-height:44px}.mobile-sheet .entry-sheet-actions button.primary{background:var(--accent, #b779ff);color:#14121a}.entry-sheet-time{width:100%;box-sizing:border-box;min-height:38px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:10px;background:#131316;color:#e8e5eb;font-size:14px;font-variant-numeric:tabular-nums;cursor:pointer}.entry-sheet-time svg{flex:0 0 auto;width:15px;height:15px;color:var(--muted)}.calendar-view-files .tree-row-wrap{border:1px solid var(--border);border-radius:12px;background:var(--panel-soft)}.calendar-view-files .tree-row{min-height:44px;border-radius:12px;font-size:14px}.calendar-view-files .tree-row-actions{height:44px}@media (min-width: 720px){.mobile-sheet.habit-sheet,.mobile-sheet.entry-sheet,.mobile-sheet.entry-view,.mobile-sheet.time-sheet{width:min(680px,100%)}.entry-sheet-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}}@media (orientation: landscape) and (max-height: 560px){.entry-sheet .entry-sheet-title{min-height:38px;font-size:15px}.entry-sheet-notes{min-height:38px}.entry-sheet-grid input,.entry-sheet-grid select,.entry-sheet-grid textarea,.entry-sheet-time,.entry-sheet-toggle{min-height:32px}.entry-sheet-currency-icon{width:32px;min-height:32px}.mobile-sheet .entry-sheet-actions button{min-height:38px}.calendar-month-grid{grid-auto-rows:minmax(62px,auto)}.time-dial{width:min(26vw,146px)}.time-sheet-body{gap:10px}.mobile-sheet .time-sheet-unit>.time-sheet-value{min-height:46px;font-size:26px}.time-sheet-list{min-height:46px;font-size:20px}.mobile-sheet .time-sheet-unit>button{min-height:28px}.mobile-sheet .time-sheet-quick button{min-height:32px}.mobile-sheet .time-sheet-actions button{min-height:38px}}.mobile-sheet.habit-archive-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.habit-archive-row{display:flex;align-items:center;gap:8px}.mobile-sheet .habit-archive-row>button:first-child{flex:1;min-width:0}.mobile-sheet .habit-archive-row>button:first-child>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-sheet .habit-archive-edit{width:46px;flex:0 0 auto;justify-content:center;padding:0}.mobile-sheet.habit-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.habit-sheet-color{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:12px;align-items:start;padding:4px 2px 0}.habit-sheet .color-wheel,.habit-editor .color-wheel{justify-items:center;gap:8px}.habit-sheet .color-wheel-ring,.habit-editor .color-wheel-ring{width:min(40vw,156px)}.habit-sheet .color-wheel-chip,.habit-editor .color-wheel-chip{width:28px;height:28px;border-radius:50%}.habit-sheet .color-wheel-hex input,.habit-editor .color-wheel-hex input{width:8.5ch;min-height:34px;font-size:13px}.habit-sheet .palette-picker,.habit-editor .palette-picker{padding:0}.habit-sheet-actions{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;margin:0 -10px calc(-14px - env(safe-area-inset-bottom));padding:6px 10px calc(10px + env(safe-area-inset-bottom));background:#1b1b1e}.mobile-sheet .habit-sheet-actions button{justify-content:center;min-height:44px}.mobile-sheet .habit-sheet-actions button.primary{background:var(--accent, #b779ff);color:#14121a}@media (max-width: 400px){.habit-sheet-color{grid-template-columns:minmax(0,1fr)}.habit-sheet .color-wheel-ring{width:min(52vw,190px)}}@media (orientation: landscape) and (max-height: 560px){.mobile-sheet.habit-sheet .mobile-sheet-tabs button{min-height:34px}.habit-sheet .color-wheel-ring{width:min(24vw,132px)}.habit-sheet .color-wheel{gap:6px}.mobile-sheet .habit-sheet-actions button{min-height:38px}}.mobile-settings{max-width:640px;margin:0 auto;padding:18px 16px calc(40px + env(safe-area-inset-bottom));display:grid;gap:22px}.mobile-settings h1{margin:0;font-size:22px;letter-spacing:-.02em}.mobile-settings section{display:grid;gap:10px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#1d1d2099}.mobile-settings h2{margin:0;display:flex;align-items:center;gap:8px;font-size:13px}.mobile-settings h2 svg{width:16px;height:16px;color:var(--accent-soft)}.mobile-settings-note{margin:-4px 0 0;color:var(--muted);font-size:11px}.mobile-settings-hint{margin:-2px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.mobile-settings-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:4px}.mobile-settings-actions button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:#e8e5eb;font-size:13px;cursor:pointer}.mobile-settings-actions button svg{width:16px;height:16px}.mobile-settings-row{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;font-size:14px}.mobile-settings-row select,.mobile-settings-row input[type=range]{min-height:40px;max-width:190px}.mobile-settings-row input[type=range]{flex:1 1 200px;max-width:280px}.mobile-settings-stepper{display:grid;gap:4px;padding:6px 2px 2px}.mobile-settings-stepper>span{color:var(--muted);font-size:11px;letter-spacing:.04em;text-transform:uppercase}.mobile-settings-probe{min-height:62px;padding:10px 12px;display:grid;gap:3px;align-content:start;border:1px dashed var(--border);border-radius:12px;background:#131316;color:var(--muted);font-size:11px;line-height:1.45;touch-action:none;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.mobile-settings-probe code{font-family:ui-monospace,Cascadia Mono,Consolas,monospace}.mobile-settings-probe code:first-child{color:#e8e5eb}.mobile-settings-row select{padding:0 10px;border:1px solid var(--border);border-radius:10px;background:#131316;color:#e8e5eb;font-size:14px}.mobile-settings-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.mobile-settings-row input[type=text],.mobile-settings-row input:not([type]){width:130px;min-height:40px;padding:0 10px;border:1px solid var(--border);border-radius:10px;outline:none;background:#131316;color:#e8e5eb;font:inherit;font-size:14px;text-align:right;-webkit-user-select:text;user-select:text}.mobile-settings-row input[type=text]:focus,.mobile-settings-row input:not([type]):focus{border-color:color-mix(in srgb,var(--accent) 58%,transparent)}.mobile-settings-row.static strong{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--muted);font-size:12px}.mobile-settings-error{margin:0;color:var(--danger);font-size:12px}.mobile-settings-saved{margin:0;display:flex;align-items:center;gap:6px;color:#94d5aa;font-size:12px}.mobile-settings-saved svg{width:14px;height:14px}.mobile-settings-danger{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(255,127,138,.45);border-radius:11px;background:transparent;color:var(--danger);font-size:14px}.mobile-settings-danger svg{width:16px;height:16px}.mobile-captions-stage{max-height:190px;padding:10px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:repeating-linear-gradient(115deg,#3b3550 0,#3b3550 26px,#2a3348 26px,#2a3348 52px,#4a3b3b 52px,#4a3b3b 78px,#2f4340 78px,#2f4340 104px)}.mobile-captions-window{max-width:100%;padding:4px 6px;border-radius:4px;text-align:center}.mobile-captions-line{display:inline-block;padding:.18em .5em;border-radius:3px;line-height:1.35}.mobile-captions-slider{width:100%;min-height:40px;accent-color:var(--accent)}.mobile-captions-scale{margin-top:-6px;display:flex;align-items:baseline;justify-content:space-between;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.mobile-captions-scale strong{color:#e8e5eb;font-size:14px;font-weight:600}.mobile-captions-swatch{min-height:38px;padding:0 10px 0 8px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;background:#131316;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.mobile-captions-swatch i{width:22px;height:22px;border:1px solid rgba(255,255,255,.25);border-radius:6px;background-image:linear-gradient(var(--caption-swatch),var(--caption-swatch)),conic-gradient(#57575f 0,#57575f 25%,#34343a 0,#34343a 50%,#57575f 0,#57575f 75%,#34343a 0);background-size:auto,8px 8px}.mobile-captions-grant{display:grid;gap:8px;padding:10px;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:12px;background:color-mix(in srgb,var(--accent) 6%,transparent)}.mobile-captions-grant p{margin:0;display:flex;gap:8px;color:var(--muted);font-size:11px;line-height:1.5}.mobile-captions-grant p svg{flex:none;width:15px;height:15px;margin-top:2px;color:var(--accent-soft)}.mobile-captions-grant code{padding:8px 10px;border-radius:8px;background:#101012;color:#cfc6da;font-size:11px;line-height:1.5;word-break:break-all;-webkit-user-select:text;user-select:text}.mobile-sheet.caption-color-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.caption-color-sheet .papyrus-paper-group input[type=range]{width:100%;min-height:40px;accent-color:var(--accent)}.readonly-stage{position:relative;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;touch-action:none}.readonly-canvas{position:relative;margin:10px auto;overflow:hidden;border-radius:10px}.readonly-world{position:absolute;top:0;left:0;transform-origin:top left}.readonly-object{position:absolute;display:flex;align-items:center;justify-content:center}.readonly-object>svg{position:absolute;top:0;right:0;bottom:0;left:0}.readonly-box{position:absolute;top:0;right:0;bottom:0;left:0}.readonly-shape-text,.readonly-text{position:relative;padding:6px;white-space:pre-wrap;overflow:hidden}.readonly-image{width:100%;height:100%;object-fit:contain}.readonly-placeholder,.readonly-frame{width:100%;height:100%;display:grid;place-items:center;border:1px dashed rgba(255,255,255,.2);border-radius:8px;color:var(--muted);font-size:11px}.readonly-file{display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:8px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:#0000004d;color:#d8d6dc;font-size:12px;overflow:hidden}.readonly-file svg,.readonly-placeholder svg,.readonly-map-node svg{width:16px;height:16px}.readonly-map-node{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(255,255,255,.16);border-radius:12px;color:#d8d6dc;font-size:12px;text-align:center;padding:8px}.readonly-badge{position:sticky;bottom:8px;left:0;margin:0 auto;display:flex;width:fit-content;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#171719e6;color:var(--muted);font-size:11px}.readonly-badge svg{width:13px;height:13px}.steel-mobile{padding:14px 12px calc(30px + env(safe-area-inset-bottom));display:grid;gap:8px}.steel-mobile-head{display:flex;align-items:center;gap:10px;padding-bottom:6px}.steel-mobile-head svg{width:20px;height:20px;color:#c678dd}.steel-mobile-head strong{display:block;font-size:14px}.steel-mobile-head span{color:var(--muted);font-size:11px}.steel-mobile-decl{border:1px solid var(--border);border-radius:11px;background:#1d1d2099;overflow:hidden}.steel-mobile-decl summary{min-height:46px;padding:0 12px;display:flex;align-items:center;gap:8px;cursor:pointer}.steel-mobile-decl summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.steel-mobile-decl summary small{margin-left:auto;color:var(--muted);font-size:10px}.steel-mobile-kind{padding:2px 7px;border-radius:999px;background:#c678dd29;color:#d9a6e8;font-size:10px}.steel-mobile-row{display:flex;gap:8px;padding:7px 12px;border-top:1px solid var(--border);color:#cfccd4;font-size:12px;overflow-wrap:anywhere}.steel-mobile-row>span:first-child{flex:0 0 92px;color:var(--muted);font-size:11px}.text-mobile{height:100%;display:flex;flex-direction:column}.text-mobile-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);font-size:12px}.text-mobile-head svg{width:15px;height:15px;color:var(--accent-soft)}.text-mobile-head small{margin-left:auto;color:var(--muted);font-size:10px}.text-mobile-body{flex:1 1 auto;margin:0;padding:12px 12px calc(30px + env(safe-area-inset-bottom));overflow:auto;font:12px/1.6 Cascadia Mono,Consolas,monospace;white-space:pre;color:#d8d6dc;-webkit-user-select:text;user-select:text}.amber-entries-find{padding:0 max(8px,env(safe-area-inset-left)) 8px}.amber-entries-find input{width:100%;min-height:38px;padding:0 11px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:inherit;font:inherit;-webkit-user-select:text;user-select:text}.amber-entries-find input:focus{outline:none;border-color:var(--accent)}.amber-entries-rows{padding-bottom:8px}.amber-entries-dot{width:11px;height:11px;flex:0 0 auto;border:1px solid;border-radius:3px}.amber-entries-effort{width:15px;height:15px;flex:0 0 auto}.amber-entries-tagcount{flex:0 0 auto;display:inline-flex;align-items:center;gap:2px;color:var(--muted);font-size:10px}.amber-entries-tagcount svg{width:12px;height:12px}.amber-entries-count{flex:0 0 auto;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.amber-entries-empty{margin:10px;color:var(--muted);font-size:12px}.mobile-sheet.amber-list-sheet{max-height:100%;overflow-y:auto;overscroll-behavior:contain}.amber-list-sheet .amber-sheet-name{min-height:46px;padding:0 13px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;font:inherit;-webkit-user-select:text;user-select:text}.amber-list-sheet .amber-sheet-note{margin:0;color:var(--muted);font-size:11px}.amber-list-sheet .amber-sheet-note.error{color:var(--danger)}.amber-list-sheet .amber-sheet-actions{display:flex;gap:10px}.amber-list-sheet .amber-sheet-actions button{flex:1;justify-content:center;min-height:46px}.amber-list-sheet .amber-sheet-actions button.primary{border:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-soft)}.amber-list-sheet .amber-sheet-actions button.ghost.danger{border:1px solid var(--danger);color:var(--danger)}.amber-entries-note{min-height:62px;padding:9px 12px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;font:inherit;resize:none;-webkit-user-select:text;user-select:text}.amber-entries-note:focus{outline:none;border-color:var(--accent)}.amber-entries-check{min-height:44px;display:flex;align-items:center;gap:10px;padding:0 4px;color:#d8d5dc;font-size:13px}.amber-entries-check input{width:20px;height:20px;accent-color:var(--accent)}.mobile-sheet .amber-entries-icon{min-height:46px;padding:0 13px;display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft);color:inherit;font-size:13px}.mobile-sheet .amber-entries-icon svg{width:22px;height:22px}.amber-entries-select{min-height:42px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);color:inherit;font:inherit}.amber-effort-row{display:grid;gap:6px;padding:2px 4px}.amber-effort-row>span{color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.amber-effort-choices{display:flex;flex-wrap:wrap;gap:6px}.mobile-sheet .amber-effort-choices button{min-height:40px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:10px;background:var(--panel-soft);font-size:12px}.mobile-sheet .amber-effort-choices button.active{border-color:var(--accent)}.mobile-sheet .amber-effort-choices button svg{width:15px;height:15px}.amber-phone .web-layout,.carat-phone .web-layout,.lingua-phone .web-layout,.amethyst-phone .web-layout{height:calc(100dvh - var(--web-header, 64px) - env(safe-area-inset-top))}.amber-phone .web-layout .file-drawer,.carat-phone .web-layout .file-drawer,.lingua-phone .web-layout .file-drawer,.amethyst-phone .web-layout .file-drawer{display:flex}.amber-phone .document-stage,.carat-phone .document-stage,.lingua-phone .document-stage,.amethyst-phone .document-stage{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.amber-phone .file-drawer,.carat-phone .file-drawer,.lingua-phone .file-drawer,.amethyst-phone .file-drawer{position:fixed;z-index:25;top:calc(var(--web-header, 64px) + env(safe-area-inset-top));padding-left:env(safe-area-inset-left);bottom:0;left:0;width:min(300px,86vw);transform:translate(-102%);transition:transform .18s ease}.amber-phone .file-drawer.open,.carat-phone .file-drawer.open,.lingua-phone .file-drawer.open,.amethyst-phone .file-drawer.open{transform:none}.amber-phone .drawer-scrim,.carat-phone .drawer-scrim,.lingua-phone .drawer-scrim,.amethyst-phone .drawer-scrim{position:fixed;z-index:24;inset:calc(var(--web-header, 64px) + env(safe-area-inset-top)) 0 0 0;border:0;background:#00000073}.amber-phone .drawer-head,.carat-phone .drawer-head,.lingua-phone .drawer-head,.amethyst-phone .drawer-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 8px 6px 14px;color:var(--muted);font-size:12px}
