.ui-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);max-width:100%;min-height:var(--button-height);margin:0;padding:var(--space-2) var(--space-5);border:1px solid transparent;border-radius:var(--radius-lg);font-family:var(--font);font-size:var(--text-base);font-weight:var(--weight-bold);letter-spacing:-.2px;line-height:var(--leading-tight);text-align:center;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,border-color .12s ease,transform .12s ease,opacity .12s ease}.ui-button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.ui-button:active:not(:disabled){transform:scale(.97)}.ui-button:disabled{cursor:not-allowed;opacity:.55}.ui-button[aria-busy=true]{cursor:progress;opacity:.85}.ui-button--primary{background:var(--brand);color:var(--text-on-brand)}.ui-button--primary:active:not(:disabled){background:var(--brand-hover)}.ui-button--secondary{background:var(--brand-soft);color:var(--brand-strong)}.ui-button--secondary:active:not(:disabled){background:var(--surface-sunken)}.ui-banner .ui-button--secondary{background:var(--surface)}.ui-button--ghost{background:transparent;color:var(--brand-strong)}.ui-button--ghost:active:not(:disabled){background:var(--brand-softer)}.ui-button--danger{background:var(--danger);color:var(--text-on-brand)}.ui-button--danger:active:not(:disabled){opacity:.85}@media(hover:hover){.ui-button--primary:hover:not(:disabled){background:var(--brand-hover)}.ui-button--secondary:hover:not(:disabled){background:var(--surface-sunken)}.ui-button--ghost:hover:not(:disabled){background:var(--brand-softer)}.ui-button--danger:hover:not(:disabled){opacity:.9}}.ui-button--lg{min-height:calc(var(--button-height) + var(--space-1));padding-inline:var(--space-6);font-size:var(--text-base)}.ui-button--full{display:flex;width:100%}.ui-button__icon{display:inline-flex;flex:none}.ui-button__label{min-width:0;overflow-wrap:anywhere}.ui-spinner{flex:none;width:1.1em;height:1.1em;border:2px solid currentColor;border-right-color:transparent;border-radius:var(--radius-pill);animation:ui-spin .8s linear infinite}@keyframes ui-spin{to{transform:rotate(360deg)}}.ui-icon-button{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);min-width:var(--tap-min);min-height:var(--tap-min);margin:0;padding:0;border:1px solid transparent;border-radius:var(--radius-pill);background:transparent;color:var(--text-muted);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,color .12s ease}.ui-icon-button:active:not(:disabled){background:var(--surface-sunken);color:var(--text)}@media(hover:hover){.ui-icon-button:hover:not(:disabled){background:var(--surface-sunken);color:var(--text)}}.ui-icon-button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.ui-icon-button:disabled{cursor:not-allowed;opacity:.5}.ui-icon-button--outline{border-color:var(--border);background:var(--surface)}.ui-icon-button__icon{display:inline-flex}.ui-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:var(--space-6);background:var(--scrim);overscroll-behavior:contain;animation:ui-fade-in .2s ease-out}.ui-sheet{position:relative;display:flex;flex-direction:column;width:100%;max-width:560px;max-height:90vh;max-height:90dvh;overflow:hidden;border-radius:var(--radius-xl);background:var(--surface);box-shadow:var(--shadow-lg);color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading);animation:ui-sheet-in .2s ease-out}.ui-sheet:focus{outline:none}.ui-sheet--lg{max-width:760px}.ui-sheet__header{display:flex;flex:none;align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-3) var(--space-3) var(--space-5);border-bottom:var(--hairline) solid var(--border);background:var(--surface)}.ui-sheet__heading{flex:1;min-width:0;padding-block:var(--space-2)}.ui-sheet__title{margin:0;color:var(--text);font-family:var(--font);font-size:var(--text-lg);font-weight:var(--weight-bold);line-height:var(--leading-tight);overflow-wrap:anywhere}.ui-sheet__description{margin:var(--space-1) 0 0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.ui-sheet__body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--space-5)}.ui-sheet__footer{display:flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:var(--space-3);padding:var(--space-4) var(--space-5);border-top:var(--hairline) solid var(--border);background:var(--surface)}.ui-sheet--dragging{animation:none;transition:none}.ui-sheet--settling{transition:transform .25s cubic-bezier(.32,.72,0,1)}@keyframes ui-sheet-in{0%{opacity:0;transform:scale(.98)}}@keyframes ui-sheet-up{0%{transform:translateY(100%)}}@keyframes ui-fade-in{0%{opacity:0}}@media(max-width:619.98px){.ui-sheet-backdrop{align-items:flex-end;padding:0;bottom:var(--keyboard-inset, 0px);animation-duration:.35s}.ui-sheet,.ui-sheet--lg{max-width:none;height:auto;max-height:calc(100vh - 12px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - 12px);max-height:min(calc(100dvh - env(safe-area-inset-top,0px) - 12px),100%);border-radius:var(--radius-xl) var(--radius-xl) 0 0;box-shadow:none;animation:ui-sheet-up .35s cubic-bezier(.32,.72,0,1)}.ui-sheet:before{content:"";position:absolute;z-index:2;top:6px;left:50%;width:36px;height:5px;border-radius:var(--radius-pill);background:var(--border-strong);transform:translate(-50%);pointer-events:none}.ui-sheet__header{padding-top:var(--space-5);padding-right:calc(var(--space-2) + env(safe-area-inset-right,0px));padding-left:calc(var(--gutter) + env(safe-area-inset-left,0px));touch-action:none}.ui-sheet__body{padding:var(--space-5) calc(var(--gutter) + env(safe-area-inset-right,0px)) var(--space-5) calc(var(--gutter) + env(safe-area-inset-left,0px))}.ui-sheet__footer{padding:var(--space-3) calc(var(--gutter) + env(safe-area-inset-right,0px)) calc(var(--space-3) + env(safe-area-inset-bottom,0px)) calc(var(--gutter) + env(safe-area-inset-left,0px))}.ui-sheet__footer>.ui-button{flex:1 1 140px}}.ui-list-row{--row-inset: var(--space-4);position:relative;display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:calc(var(--tap-min) + var(--space-4));margin:0;padding:var(--space-3) var(--space-4);border:0;background:transparent;color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading-tight);text-align:left}.ui-list-row:has(.ui-list-row__leading){--row-inset: calc(var(--space-4) + var(--tap-min) + var(--space-3))}.ui-list-row:has(.settings-icon,.auth-options__icon,.offline-status-icon){--row-inset: calc(var(--space-4) + 29px + var(--space-3))}.ui-list-row+.ui-list-row:before{content:"";position:absolute;top:0;right:0;left:var(--row-inset);border-top:var(--hairline) solid var(--border);pointer-events:none}.ui-list-row--clickable{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease}.ui-list-row--clickable:active:not(:disabled){background:var(--surface-sunken);transition:none}@media(hover:hover){.ui-list-row--clickable:hover:not(:disabled){background:var(--surface-muted)}.ui-list-row--clickable:active:not(:disabled){background:var(--surface-sunken)}}.ui-list-row--clickable:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}.ui-list-row--clickable:disabled{cursor:not-allowed;opacity:.55}.ui-list-row__leading{display:inline-flex;flex:none;align-items:center;justify-content:center}.ui-list-row__main{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3);min-width:0}.ui-list-row__text{display:flex;flex:1 1 12em;flex-direction:column;gap:2px;min-width:0}.ui-list-row__title{color:var(--text);font-size:var(--text-base);font-weight:var(--weight-regular);letter-spacing:-.2px;overflow-wrap:anywhere}.ui-list-row__subtitle{color:var(--text-muted);font-size:var(--text-sm);overflow-wrap:anywhere}.ui-list-row__meta{flex:0 1 auto;color:var(--text-muted);font-size:var(--text-sm);overflow-wrap:anywhere}.ui-list-row--warning .ui-list-row__meta{color:var(--warning);font-weight:var(--weight-bold)}.ui-list-row--danger .ui-list-row__meta{color:var(--danger);font-weight:var(--weight-bold)}.ui-list-row__chevron{flex:none;width:16px;height:16px;color:var(--text-subtle);opacity:.7;stroke-width:2.5}.ui-chip-group{display:flex;flex-wrap:wrap;gap:var(--space-2)}.ui-chip{position:relative;display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--space-10);margin:0;padding:0 var(--space-4);border:0;border-radius:var(--radius-pill);background:var(--surface);box-shadow:inset 0 0 0 var(--hairline) var(--border-strong);color:var(--text);font-family:var(--font);font-size:var(--text-sm);font-weight:var(--weight-medium);line-height:var(--leading-tight);white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,color .12s ease,transform .12s ease}.ui-chip:after{content:"";position:absolute;inset:calc((var(--space-10) - var(--tap-min)) / 2) 0}.ui-chip:active:not(:disabled){transform:scale(.97)}@media(hover:hover){.ui-chip:hover:not(:disabled):not(.ui-chip--selected){background:var(--surface-sunken)}}.ui-chip:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.ui-chip:disabled{cursor:not-allowed;opacity:.5}.ui-chip--selected{background:var(--brand);box-shadow:none;color:var(--text-on-brand)}.ui-chip__icon{display:inline-flex;flex:none}.ui-chip__count{min-width:1.6em;padding:2px var(--space-2);border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text-muted);font-size:var(--text-xs);font-weight:var(--weight-bold);text-align:center}.ui-chip--selected .ui-chip__count{background:var(--brand-hover);color:var(--text-on-brand)}@media(max-width:619.98px){.ui-chip-group:not(.ui-chip-group--segmented){flex-wrap:nowrap;margin-inline:calc(-1 * var(--gutter));padding-inline:var(--gutter);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;padding-block:4px;margin-block:-4px;scroll-snap-type:x proximity;scroll-padding-inline:var(--gutter);scrollbar-width:none}.ui-chip-group:not(.ui-chip-group--segmented)::-webkit-scrollbar{display:none}.ui-chip-group:not(.ui-chip-group--segmented)>.ui-chip{flex:none;scroll-snap-align:start}}.ui-chip-group--segmented{flex-wrap:nowrap;gap:2px;padding:2px;border-radius:var(--radius-sm);background:var(--surface-sunken)}.ui-chip-group--segmented>.ui-chip{flex:1 1 0;justify-content:center;min-width:0;min-height:36px;padding:var(--space-1) var(--space-2);border-radius:8px;background:transparent;box-shadow:none;color:var(--text);text-align:center;white-space:normal;overflow-wrap:anywhere}.ui-chip-group--segmented>.ui-chip:after{top:-4px;right:0;bottom:-4px;left:0}.ui-chip-group--segmented>.ui-chip--selected{background:var(--surface);color:var(--text);font-weight:var(--weight-bold);box-shadow:0 1px 3px #00000024,0 0 0 .5px #0000000a}@media(hover:hover){.ui-chip-group--segmented>.ui-chip:hover:not(:disabled):not(.ui-chip--selected){background:transparent}}.ui-chip-group--segmented .ui-chip__count{background:transparent;padding:0}@media screen and (prefers-color-scheme:dark){.ui-chip-group--segmented>.ui-chip--selected{background:var(--border-strong)}}.ui-card{padding:var(--space-5);border:var(--hairline) solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text)}.ui-card--flush{padding:0;overflow:hidden}@media(max-width:619.98px){.ui-card{border-color:transparent}}.ui-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-10) var(--space-5);color:var(--text-muted);font-family:var(--font);text-align:center}.ui-empty__icon{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;margin-bottom:var(--space-2);border-radius:0;background:transparent;color:var(--text-subtle)}.ui-empty__icon svg{width:56px;height:56px;stroke-width:1.25}.ui-empty__title{margin:0;color:var(--text);font-family:var(--font);font-size:1.25rem;font-weight:var(--weight-bold);line-height:var(--leading-tight)}.ui-empty__body{max-width:28em;margin:0;font-size:var(--text-base);line-height:var(--leading)}.ui-empty__action{margin-top:var(--space-3)}.ui-empty__action .ui-button{min-height:var(--tap);padding-inline:var(--space-6);border-radius:var(--radius-pill)}.ui-page-header{margin:0 0 var(--space-6);font-family:var(--font)}.ui-page-header__back{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--tap-min);margin:0 0 var(--space-2) calc(-1 * var(--space-2));padding:0 var(--space-2);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--brand-strong);font-family:var(--font);font-size:var(--text-base);font-weight:var(--weight-regular);cursor:pointer}.ui-page-header__back:active{opacity:.5}@media(hover:hover){.ui-page-header__back:hover{background:var(--brand-softer)}}.ui-page-header__back:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.ui-page-header__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-4)}.ui-page-header__title{flex:1 1 0;min-width:5em;margin:0;color:var(--text);font-family:var(--font);font-size:var(--text-xl);font-weight:var(--weight-heavy);letter-spacing:.37px;line-height:1.12;overflow-wrap:anywhere}.ui-page-header__subtitle{margin:var(--space-2) 0 0;color:var(--text-muted);font-size:var(--text-base);line-height:var(--leading)}.ui-page-header__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2)}@media(min-width:900px){.ui-page-header__title{font-size:var(--text-2xl)}}.ui-switch{display:flex;align-items:center;gap:var(--space-4);width:100%;min-height:var(--tap);margin:0;padding:var(--space-2) 0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text);font-family:var(--font);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}.ui-switch:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.ui-switch:disabled{cursor:not-allowed;opacity:.55}.ui-switch[aria-busy=true]{cursor:progress}.ui-switch__text{display:flex;flex:1;flex-direction:column;gap:var(--space-1);min-width:0}.ui-switch__label{font-size:var(--text-base);font-weight:var(--weight-regular);line-height:var(--leading-tight)}.ui-switch__description{color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.ui-switch__track{position:relative;flex:none;width:51px;height:31px;border-radius:var(--radius-pill);background:#78788052;transition:background-color .3s cubic-bezier(.32,.72,0,1)}.ui-switch__thumb{position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:var(--radius-pill);background:var(--paper);box-shadow:0 3px 8px #00000026,0 1px 1px #00000029,0 3px 1px #0000001a;transition:transform .3s cubic-bezier(.32,1.4,.5,1),width .2s ease}.ui-switch:active:not(:disabled) .ui-switch__thumb{width:33px}.ui-switch--on .ui-switch__track{background:var(--brand)}.ui-switch--on .ui-switch__thumb{transform:translate(20px)}.ui-switch--on:active:not(:disabled) .ui-switch__thumb{transform:translate(14px)}.ui-menu{position:fixed;top:0;left:0;z-index:70;min-width:220px;max-width:calc(100vw - var(--space-4));max-height:70vh;overflow-y:auto;padding:var(--space-1);border:var(--hairline) solid var(--border);border-radius:var(--radius-lg);background:var(--menu-bg);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:var(--shadow-lg);font-family:var(--font)}.ui-menu:focus{outline:none}.ui-menu__item{display:flex;align-items:center;gap:var(--space-3);width:100%;min-height:var(--tap);margin:0;padding:0 var(--space-3);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading-tight);text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}.ui-menu__item:active:not(:disabled){background:var(--surface-sunken)}@media(hover:hover){.ui-menu__item:hover:not(:disabled){background:var(--surface-sunken)}}.ui-menu__item:focus{background:var(--surface-sunken);outline:none}.ui-menu__item:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}.ui-menu__item:disabled{cursor:not-allowed;opacity:.5}.ui-menu__item--danger{color:var(--danger)}.ui-menu__icon{display:inline-flex;flex:none;color:var(--text-muted)}.ui-menu__item--danger .ui-menu__icon{color:inherit}.ui-menu__label{flex:1;min-width:0;overflow-wrap:anywhere}.ui-banner{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-3) var(--space-4);border:var(--hairline) solid var(--border);border-radius:var(--radius-md);background:var(--brand-softer);color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading)}.ui-banner__icon{display:inline-flex;flex:none;padding-top:2px;color:var(--brand)}.ui-banner__main{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:var(--space-2) var(--space-4);min-width:0}.ui-banner__content{flex:1 1 14em;min-width:0}.ui-banner__title{margin:0;font-weight:var(--weight-bold)}.ui-banner__body p{margin:0}.ui-banner__body p+p{margin-top:var(--space-2)}.ui-banner__action{flex:none}.ui-banner__dismiss{margin:calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) 0}.ui-banner--success{border-color:transparent;background:var(--success-soft)}.ui-banner--success .ui-banner__icon{color:var(--success)}.ui-banner--warning{border-color:var(--warning-border);background:var(--warning-soft)}.ui-banner--warning .ui-banner__icon{color:var(--warning)}.ui-banner--warning .ui-button--secondary{border-color:var(--warning);background:transparent;color:var(--text)}.ui-banner--warning .ui-button--ghost{color:var(--text);text-decoration:underline}@media(hover:hover){.ui-banner--warning .ui-button--secondary:hover:not(:disabled),.ui-banner--warning .ui-button--ghost:hover:not(:disabled){background:var(--warning-border)}}.ui-banner--danger{border-color:var(--danger-border);background:var(--danger-soft)}.ui-banner--danger .ui-banner__icon{color:var(--danger)}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.ui-menu{background:var(--surface)}}@media(forced-colors:active){.ui-chip--selected,.ui-switch--on .ui-switch__track{forced-color-adjust:none;background:Highlight;color:HighlightText}.ui-switch__track{border:1px solid ButtonText}.ui-card,.ui-menu,.ui-sheet{border:1px solid CanvasText}.ui-sheet:before{background:CanvasText}}.scan-review,.scan-adjust,.scan-start{display:flex;flex-direction:column;gap:var(--space-4)}.scan-stage{--scan-stage-h: max(280px, calc(100dvh - 290px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) );display:flex;align-items:center;justify-content:center;height:var(--scan-stage-h);padding:var(--space-3);overflow:hidden;border-radius:var(--radius-lg);background:var(--surface-sunken)}@media(min-width:620px){.scan-stage{--scan-stage-h: clamp(280px, calc(90dvh - 330px) , 640px)}}.scan-review--multi .scan-stage{--scan-stage-h: max(240px, calc(100dvh - 410px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) )}@media(min-width:620px){.scan-review--multi .scan-stage{--scan-stage-h: clamp(240px, calc(90dvh - 450px) , 560px)}}.scan-result{display:block;width:auto;height:auto;max-width:100%;max-height:100%;background:var(--paper);box-shadow:var(--shadow-md)}.scan-loading{display:flex;align-items:center;gap:var(--space-3);margin:0;color:var(--text-muted)}.scan-loading .ui-spinner{color:var(--brand)}.scan-preview-error{margin:0;color:var(--danger);font-size:var(--text-sm);text-align:center}.scan-status{display:flex;align-items:center;justify-content:center;gap:var(--space-2);margin:0;color:var(--success);font-size:var(--text-sm);text-align:center}.scan-status--warning{color:var(--warning)}.scan-quality{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-muted, transparent)}.scan-quality p{display:flex;align-items:center;gap:var(--space-2);margin:0;color:var(--text);font-size:var(--text-sm);text-align:left}.scan-quality p svg{flex:none;color:var(--warning)}.scan-quality__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-2)}.scan-hint{margin:0;color:var(--text-muted);font-size:var(--text-sm);text-align:center}.scan-actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.scan-actions>*{flex:1 1 140px}.scan-back{align-self:center}.scan-pages{display:flex;flex-wrap:wrap;gap:var(--space-3);margin:0;padding:var(--space-2) 0 0;list-style:none}.scan-page{position:relative}.scan-page__select{display:flex;flex-direction:column;align-items:center;gap:var(--space-1);min-width:80px;margin:0;padding:var(--space-1);border:2px solid transparent;border-radius:var(--radius-md);background:none;color:var(--text-muted);font-family:var(--font);font-size:var(--text-sm);cursor:pointer}.scan-page--active .scan-page__select{border-color:var(--brand);color:var(--text);font-weight:var(--weight-bold)}.scan-page__select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.scan-page__thumb{display:grid;place-items:center;width:64px;height:80px;overflow:hidden;border-radius:var(--radius-sm);background:var(--surface-sunken);color:var(--text-subtle)}.scan-page__thumb img{width:100%;height:100%;object-fit:cover}.scan-page__remove{position:absolute;top:calc(-1 * var(--space-4));right:calc(-1 * var(--space-4))}.scan-page__remove .ui-icon-button__icon{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);box-shadow:var(--shadow-sm)}.scan-stage--source{--scan-stage-h: max(260px, calc(100dvh - 320px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) );padding:var(--space-6)}@media(min-width:620px){.scan-stage--source{--scan-stage-h: clamp(280px, calc(90dvh - 330px) , 620px)}}.scan-source-frame{position:relative;flex:none;width:min(100%,calc((var(--scan-stage-h) - 2 * var(--space-6)) * var(--scan-aspect, 1)));aspect-ratio:var(--scan-aspect, 1);box-shadow:var(--shadow-md);touch-action:none}.scan-source-frame img{display:block;width:100%;height:100%;object-fit:fill;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.scan-outline{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.scan-outline polygon{fill:var(--brand);fill-opacity:.16;stroke:var(--paper);stroke-width:3;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px var(--scrim))}.scan-corner{position:absolute;display:grid;place-items:center;width:var(--tap);height:var(--tap);margin:0;padding:0;border:0;border-radius:var(--radius-pill);background:transparent;transform:translate(-50%,-50%);touch-action:none;cursor:grab}.scan-corner span{width:28px;height:28px;border:3px solid var(--brand);border-radius:var(--radius-pill);background:var(--paper);box-shadow:var(--shadow-md)}.scan-corner:active{cursor:grabbing}.scan-corner:active span{transform:scale(1.15)}.scan-corner:focus-visible{outline:3px solid var(--focus-ring);outline-offset:0}.scan-tools{display:flex;flex-wrap:wrap;gap:var(--space-2)}.scan-tools>*{flex:1 1 auto}.scan-finish{display:flex;align-items:flex-start;gap:var(--space-4)}.scan-finish__controls{flex:1;min-width:0}.scan-label{margin:0 0 var(--space-2);color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold)}.scan-finish__preview{display:flex;flex:none;flex-direction:column;align-items:center;gap:var(--space-1);width:96px;margin:0;color:var(--text-muted);font-size:var(--text-xs)}.scan-finish__canvas{display:block;max-width:96px;max-height:128px;background:var(--paper);box-shadow:var(--shadow-sm)}.scan-more{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.scan-more>summary{display:list-item;min-height:var(--tap);padding:var(--space-3) 0;color:var(--brand-strong);font-weight:var(--weight-bold);cursor:pointer}.scan-contrast{display:flex;flex-direction:column;gap:var(--space-1);padding-bottom:var(--space-3);color:var(--text-muted);font-size:var(--text-sm)}.scan-contrast input[type=range]{width:100%;min-height:var(--tap);accent-color:var(--brand)}.add-flow{position:relative;display:flex;flex-direction:column;gap:var(--space-5);min-height:100%}.add-flow:focus{outline:none}.add-drop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:center;justify-content:center;gap:var(--space-3);border:2px dashed var(--brand);border-radius:var(--radius-lg);background:var(--brand-softer);color:var(--brand-strong);font-size:var(--text-md);font-weight:var(--weight-bold);pointer-events:none}.add-picker{position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent}.add-picker:has(input:focus-visible){outline:3px solid var(--focus-ring);outline-offset:2px}.add-picker--disabled{cursor:not-allowed;opacity:.55}.add-picker--disabled.ui-button:hover{background:inherit}.add-start{display:flex;flex-direction:column;gap:var(--space-4)}.add-choices{display:grid;grid-template-columns:1fr;gap:var(--space-3)}.add-choice{display:flex;align-items:center;gap:var(--space-4);min-height:112px;padding:var(--space-5);border:1px solid var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm);color:var(--text);transition:border-color .12s ease,background-color .12s ease}.add-choice:hover:not(.add-picker--disabled){border-color:var(--brand);background:var(--brand-softer)}.add-choice__icon{display:grid;flex:none;place-items:center;width:64px;height:64px;border-radius:var(--radius-pill);background:var(--brand-soft);color:var(--brand-strong)}.add-choice__text{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}.add-choice__title{font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.add-choice__sub{color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.add-helper{margin:0;color:var(--text-muted);font-size:var(--text-base);text-align:center}.add-helper--drop{display:none}@media(hover:hover)and (pointer:fine){.add-helper--drop{display:block;color:var(--text-subtle);font-size:var(--text-sm)}}@media(min-width:620px){.add-choices{grid-template-columns:1fr 1fr}.add-choice{flex-direction:column;justify-content:center;min-height:200px;text-align:center}.add-choice__icon{width:72px;height:72px}}.add-details{display:flex;flex-direction:column;gap:var(--space-6)}.add-preview{display:flex;flex-direction:column;align-items:center;gap:var(--space-3)}.add-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-3);width:100%}.add-preview__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-2)}.add-preview>.ui-banner{align-self:stretch}.add-thumb{display:inline-flex;flex-direction:column;align-items:center;gap:var(--space-2);max-width:100%;margin:0;padding:0;border:0;background:none;color:var(--text-muted);font-family:var(--font);font-size:var(--text-sm)}.add-thumb__frame{display:grid;place-items:center;max-width:100%;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-sunken);box-shadow:var(--shadow-sm);color:var(--text-subtle)}.add-thumb__frame img{display:block;max-width:100%;background:var(--paper)}.add-thumb--large .add-thumb__frame{min-width:120px;min-height:160px}.add-thumb--large .add-thumb__frame img{max-height:240px}.add-strip .add-thumb--large:not(:only-child) .add-thumb__frame img{max-height:180px}.add-thumb--small .add-thumb__frame{width:64px;height:80px;flex:none}.add-thumb--small .add-thumb__frame img{width:100%;height:100%;object-fit:cover}.add-thumb--button{cursor:pointer;-webkit-tap-highlight-color:transparent}.add-thumb--button:hover .add-thumb__frame{border-color:var(--brand)}.add-thumb--button:focus-visible{outline:none}.add-thumb--button:focus-visible .add-thumb__frame{outline:3px solid var(--focus-ring);outline-offset:2px}.add-docs-section{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3)}.add-docs{display:flex;flex-direction:column;align-self:stretch;margin:0;padding:0;list-style:none;border:1px solid var(--border);border-radius:var(--radius-lg)}.add-doc{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-3)}.add-doc+.add-doc{border-top:1px solid var(--border)}.add-doc__main{display:flex;flex:1;flex-direction:column;gap:var(--space-2);min-width:0}.add-doc__status{margin:0;color:var(--text-muted);font-size:var(--text-sm)}.add-doc__status--ok{color:var(--success);font-weight:var(--weight-bold)}.add-doc__error{margin:0;color:var(--danger);font-size:var(--text-sm)}.add-doc--saved{background:var(--surface-muted)}.add-field{display:flex;flex-direction:column;gap:var(--space-2);min-width:0;margin:0}.add-field__label{margin:0;color:var(--text);font-family:var(--font);font-size:var(--text-base);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.add-field__help{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.add-field__error{margin:0;color:var(--danger);font-size:var(--text-sm);font-weight:var(--weight-medium)}.add-subfield{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-1)}.add-input{display:block;width:100%;max-width:100%;min-width:0;min-height:var(--tap);margin:0;padding:var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading-tight)}.add-input:focus-visible{outline:3px solid var(--focus-ring);outline-offset:1px}.add-input[aria-invalid=true]{border-color:var(--danger)}.add-input:disabled{background:var(--surface-muted);color:var(--text-muted);cursor:not-allowed}.add-input--date{-moz-appearance:none;appearance:none;-webkit-appearance:none}.add-textarea{min-height:96px;resize:vertical;line-height:var(--leading)}.add-hint{display:flex;align-items:center;gap:var(--space-2);margin:0;color:var(--brand-strong);font-size:var(--text-sm)}.add-note{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.add-reading{display:flex;align-items:center;gap:var(--space-3);margin:0;padding:var(--space-1) var(--space-1) var(--space-1) var(--space-4);border-radius:var(--radius-md);background:var(--surface-muted);color:var(--text-muted);font-size:var(--text-sm)}.add-reading__text{flex:1;min-width:0}.add-reading .ui-spinner{color:var(--brand)}.add-reading--quiet{padding:0;background:transparent}.add-more{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.add-more>summary{display:list-item;min-height:var(--tap);padding:var(--space-3) 0;color:var(--brand-strong);font-size:var(--text-base);font-weight:var(--weight-bold);cursor:pointer}.add-more__body{display:flex;flex-direction:column;gap:var(--space-5);padding:var(--space-2) 0 var(--space-5)}.add-more--row{border-bottom:0}.add-more--row>summary{padding:var(--space-2) 0;font-size:var(--text-sm)}.add-more--row>.add-textarea{margin-bottom:var(--space-2)}.add-own>summary{color:var(--brand-strong);font-weight:var(--weight-medium)}.add-own__body{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-2) 0 var(--space-3)}.add-own__field{display:flex;flex-direction:column;gap:var(--space-2)}.add-confirm__actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.add-duplicate{margin-top:var(--space-2)}.sd{margin-bottom:var(--space-5)}.sd__summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--tap-min);padding:var(--space-2) var(--space-4);cursor:pointer}.sd__title{color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold)}.sd__heading{display:grid;flex:1;gap:2px;min-width:0}.sd__progress-text{color:var(--text-muted);font-size:var(--text-sm)}.sd__meter{display:block;height:4px;margin-top:var(--space-1);overflow:hidden;border-radius:var(--radius-pill);background:var(--surface-sunken)}.sd__meter-fill{display:block;height:100%;border-radius:inherit;background:var(--brand);transition:width .24s ease}@media(prefers-reduced-motion:reduce){.sd__meter-fill{transition:none}}.sd__count{color:var(--text-subtle);font-size:var(--text-sm)}.sd__intro{margin:0;padding:0 var(--space-4) var(--space-3);color:var(--text-subtle);font-size:var(--text-sm)}.sd__list{margin:0;padding:0;list-style:none}.sd__item{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-top:1px solid var(--border)}.sd__label{flex:1 1 auto;min-width:0;color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight);overflow-wrap:anywhere}.sd__actions{display:flex;flex:none;gap:var(--space-1)}.sd__button.ui-button{min-height:var(--space-10);padding:0 var(--space-3);border-radius:var(--radius-pill);font-size:var(--text-sm);white-space:nowrap}.sd__button .ui-button__label{overflow-wrap:normal}.sd__footer{padding:var(--space-1) var(--space-2);border-top:1px solid var(--border)}.sd-restore{margin:0 0 var(--space-4)}.fv-banner{margin-bottom:var(--space-5)}.fv-section-title{margin:0;color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.fv-search{position:relative;display:flex;align-items:center;margin-bottom:var(--space-6)}.fv-search__icon{position:absolute;left:var(--space-4);color:var(--text-subtle);pointer-events:none}.fv-search input{width:100%;min-width:0;min-height:calc(var(--tap) + var(--space-1));margin:0;padding:var(--space-2) calc(var(--tap-min) + var(--space-2)) var(--space-2) calc(var(--space-4) + 20px + var(--space-3));border:1px solid var(--border-strong);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font-size:var(--text-base);box-shadow:var(--shadow-sm);-webkit-appearance:none;-moz-appearance:none;appearance:none}.fv-search input::placeholder{color:var(--text-subtle)}.fv-search input::-webkit-search-cancel-button,.fv-search input::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.fv-search input:focus-visible{border-color:var(--brand);outline:3px solid var(--focus-ring);outline-offset:1px}.fv-search__clear{position:absolute;right:var(--space-1);display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--text-muted)}.fv-search__clear:hover{background:var(--surface-sunken);color:var(--text)}.fv-list,.fv-card{margin-bottom:var(--space-6)}.fv-card__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);border-bottom:1px solid var(--border)}.fv-attention{border-color:var(--warning-border)}.fv-attention .fv-card__head{background:var(--warning-soft);border-bottom-color:var(--warning-border)}.fv-see-all{min-height:var(--tap-min);padding-inline:var(--space-3)}.fv-people>.fv-section-title,.fv-group-title{margin-bottom:var(--space-3)}.fv-group-title{margin-top:0;color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-bold);letter-spacing:.2px;text-transform:uppercase}.fv-doc-title{display:inline}.fv-star{display:inline-block;margin-left:var(--space-2);color:var(--tint-gold-ink);vertical-align:-2px}.fv-tone-danger{color:var(--danger);font-weight:var(--weight-bold)}.fv-tone-warning{color:var(--warning);font-weight:var(--weight-bold)}.fv-badge{display:inline-block;padding:var(--space-1) var(--space-3);border-radius:var(--radius-pill);background:var(--warning-soft);color:var(--warning);font-size:var(--text-xs);font-weight:var(--weight-bold);white-space:nowrap}.fv-avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-pill);font-size:var(--text-base);font-weight:var(--weight-bold)}.fv-avatar--blue{background:var(--tint-blue);color:var(--tint-blue-ink)}.fv-avatar--violet{background:var(--tint-violet);color:var(--tint-violet-ink)}.fv-avatar--coral{background:var(--tint-coral);color:var(--tint-coral-ink)}.fv-avatar--gold{background:var(--tint-gold);color:var(--tint-gold-ink)}.fv-avatar--green{background:var(--tint-green);color:var(--tint-green-ink)}.fv-avatar--family{border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand-strong)}.fv-avatar--unsorted{border-radius:var(--radius-md);background:var(--surface-sunken);color:var(--text-muted)}.fv-avatar--add{border:2px dashed var(--border-strong);background:var(--surface);color:var(--brand-strong)}.fv-add-person .ui-list-row__title{color:var(--brand-strong)}.fv-chips{margin-bottom:var(--space-6)}.fv-group{margin-bottom:var(--space-2)}.fv-sort{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-2);margin-bottom:var(--space-3);color:var(--text-muted);font-size:var(--text-sm)}.fv-sort select{min-height:var(--space-10);padding:0 var(--space-3);border:var(--hairline) solid var(--border-strong);border-radius:var(--radius-pill);background-color:var(--surface);color:var(--text);font-family:var(--font);font-size:var(--text-sm);font-weight:var(--weight-medium)}.fv-sort select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.fv-form{display:grid;gap:var(--space-3)}.fv-field{display:grid;gap:var(--space-2);font-weight:var(--weight-medium)}.fv-field input{width:100%;min-width:0;padding:var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-weight:var(--weight-regular)}.fv-field input[aria-invalid=true]{border-color:var(--danger)}.fv-error{margin:0;color:var(--danger);font-size:var(--text-sm)}.fv-note,.fv-sheet-text{margin:0;color:var(--text-muted)}.fv-sheet-text{color:var(--text)}.fv-add{white-space:nowrap}@media(max-width:899.98px){.fv-add{position:fixed;bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px) + var(--space-3));right:0;left:0;z-index:26;width:max-content;max-width:calc(100vw - 2 * var(--gutter));margin-inline:auto;padding-inline:var(--space-8);border-radius:var(--radius-pill);box-shadow:var(--shadow-lg)}.fv--with-add{padding-bottom:calc(var(--tap) + var(--space-10))}}.fv-mark{padding:0 2px;margin:0 -2px;border-radius:var(--radius-xs);background:var(--brand-soft);color:inherit}.fv-search+.fv-filters,.fv-search+.fv-recent{margin-top:calc(-1 * var(--space-3))}.fv-filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-bottom:var(--space-5)}.fv-filter{display:inline-flex;max-width:100%}.fv-filter select{max-width:100%;min-height:var(--tap-min);padding:0 var(--space-4);border:0;border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text);font-family:var(--font);font-size:var(--text-sm);font-weight:var(--weight-medium)}.fv-filter--on select{background:var(--brand-soft);color:var(--brand-strong)}.fv-filter select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.fv-filters__clear{min-height:var(--tap-min)}.fv-recent{margin-bottom:var(--space-5)}.fv-recent__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3)}.fv-recent__title{margin:0;color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-bold)}.fv-recent__clear{min-height:var(--tap-min)}.fv-recent__list{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0;padding:0;list-style:none}.fv-recent__item{min-height:var(--tap-min);max-width:100%;padding:0 var(--space-4);overflow:hidden;border:0;border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text);font-family:var(--font);font-size:var(--text-sm);text-overflow:ellipsis;white-space:nowrap}.fv-recent__item:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.fv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-3)}.fv-toolbar .fv-sort{margin-bottom:0}.fv-toolbar .ui-button{flex:none;padding-inline:var(--space-3);white-space:nowrap}.fv-toolbar .ui-button__label{overflow-wrap:normal}.fv-toolbar__count{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold);text-align:center}.fv-row{position:relative;-webkit-touch-callout:none}.fv-row+.fv-row>.ui-list-row:before{content:"";position:absolute;top:0;right:0;left:var(--row-inset);border-top:var(--hairline) solid var(--border);pointer-events:none}.fv-row--select{display:flex;align-items:center}.fv-row--select>.ui-list-row{flex:1;min-width:0;padding-left:var(--space-2)}.fv-row--select+.fv-row--select>.ui-list-row:before{left:calc(var(--row-inset) + var(--tap-min))}.fv-row--checked{background:var(--brand-softer)}.fv-check{flex:none;width:24px;height:24px;margin:0 0 0 var(--space-4);accent-color:var(--brand)}.fv-check:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.fv-bulkbar{position:fixed;right:var(--space-3);bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom,0px) + var(--space-3));left:var(--space-3);z-index:27;display:flex;justify-content:space-around;gap:var(--space-1);max-width:560px;margin-inline:auto;padding:var(--space-1) var(--space-2);border:var(--hairline) solid var(--border);border-radius:var(--radius-xl);background:var(--bg-translucent);box-shadow:var(--shadow-lg);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}@media(min-width:900px){.fv-bulkbar{bottom:var(--space-6);left:calc(var(--sidebar-width) + var(--space-3))}}.fv-bulkbar__btn{display:inline-flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:var(--tap);padding:var(--space-1) var(--space-2);border:0;border-radius:var(--radius-md);background:transparent;color:var(--brand-strong);font-family:var(--font);font-size:var(--text-xs);font-weight:var(--weight-medium)}.fv-bulkbar__btn--danger{color:var(--danger)}.fv-bulkbar__btn:disabled{opacity:.4}.fv-bulkbar__btn:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}@media(hover:hover){.fv-bulkbar__btn:hover:not(:disabled){background:var(--surface-sunken)}}.fv--selecting{padding-bottom:calc(var(--tap) + var(--space-10))}.fv-pick{overflow:hidden;border-radius:var(--radius-md);background:var(--surface)}.fv-start{border-color:var(--brand-soft)}.fv-start .fv-card__head{background:var(--brand-softer)}.fv-start__title{display:grid;gap:2px}.fv-start__count{color:var(--text-muted);font-size:var(--text-sm)}.fv-start__list{margin:0;padding:0;list-style:none}.fv-start__step{--row-inset: calc(var(--space-4) + 24px + var(--space-3))}.fv-start__list li+li .ui-list-row:before{content:"";position:absolute;top:0;right:0;left:var(--row-inset);border-top:var(--hairline) solid var(--border);pointer-events:none}.fv-start__mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:2px solid var(--border-strong);border-radius:var(--radius-pill);color:var(--text-on-brand)}.fv-start__mark--done{border-color:var(--brand);background:var(--brand)}.auth-layout{display:grid;grid-template-columns:minmax(320px,2fr) 3fr;min-height:100vh;min-height:100dvh;background:var(--surface);color:var(--text);font-family:var(--font)}.auth-aside{position:sticky;top:0;display:flex;flex-direction:column;gap:var(--space-8);height:100vh;height:100dvh;padding:var(--space-10);background:var(--surface-inverse);color:var(--text-on-inverse)}.auth-aside__copy{margin:auto 0;max-width:24em}.auth-aside__title{margin:0 0 var(--space-5);color:var(--text-on-inverse);font-size:var(--text-2xl);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.auth-aside__line{display:flex;align-items:flex-start;gap:var(--space-3);margin:0;color:var(--text-on-inverse-muted);font-size:var(--text-base);line-height:var(--leading)}.auth-aside__line svg{flex:none;margin-top:2px;color:var(--brand-accent)}.auth-main{display:flex;justify-content:center;min-width:0;margin:0;padding:var(--space-10) var(--space-6)}.auth-panel{display:flex;flex-direction:column;gap:var(--space-5);width:100%;max-width:440px;margin:auto 0;overflow-wrap:anywhere}.auth-logo{display:flex;align-items:center;gap:var(--space-3);color:var(--text);font-size:var(--text-lg);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.auth-logo--inverse{color:var(--text-on-inverse)}.auth-logo__mark{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:3px;width:36px;height:36px;border-radius:var(--radius-md);background:var(--brand-accent)}.auth-logo__mark span{display:block;width:4px;height:13px;border-radius:var(--radius-pill);background:var(--brand-ink)}.auth-logo__mark span:last-child{height:19px;background:var(--paper)}.auth-panel__logo,.auth-welcome__logo{display:none}.auth-welcome,.auth-bottom{display:flex;flex-direction:column;gap:var(--space-5)}.auth-heading{display:flex;flex-direction:column;gap:var(--space-2)}.auth-heading__title{margin:0;color:var(--text);font-family:var(--font);font-size:var(--text-xl);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.auth-heading__subtitle{margin:0;color:var(--text-muted);font-size:var(--text-base);line-height:var(--leading)}.auth-steps{display:flex;flex-direction:column;gap:var(--space-2);margin-bottom:var(--space-2)}.auth-steps__label{margin:0;color:var(--brand-strong);font-size:var(--text-sm);font-weight:var(--weight-bold)}.auth-steps__bar{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;gap:var(--space-1)}.auth-steps__segment{height:6px;border-radius:var(--radius-pill);background:var(--surface-sunken)}.auth-steps__segment--done{background:var(--brand)}.auth-form{display:flex;flex-direction:column;gap:var(--space-4);margin:0}.auth-field{display:flex;flex-direction:column;gap:var(--space-1);min-width:0}.auth-field__label{color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.auth-field__hint{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.auth-field__control{position:relative;display:flex;margin-top:var(--space-1)}.auth-field__input,.auth-select{width:100%;min-width:0;min-height:var(--tap);margin:0;padding:var(--space-3) var(--space-4);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading-tight)}.auth-field__control--trailing .auth-field__input{padding-right:calc(var(--space-4) + 84px)}.auth-field__input:focus-visible,.auth-select:focus-visible{border-color:var(--focus-ring);outline:3px solid var(--focus-ring);outline-offset:0}.auth-field__input[readonly]{background:var(--surface-muted);font-family:var(--font-mono)}.auth-field__input[type=file]{padding:var(--space-2)}.auth-field__toggle{position:absolute;top:50%;right:var(--space-1);display:inline-flex;align-items:center;justify-content:center;gap:var(--space-1);min-width:80px;min-height:var(--tap-min);padding:0 var(--space-2);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--brand-strong);font-family:var(--font);font-size:var(--text-sm);font-weight:var(--weight-bold);cursor:pointer;transform:translateY(-50%)}.auth-field__toggle:hover{background:var(--brand-softer)}.auth-field__toggle:focus-visible{outline:3px solid var(--focus-ring);outline-offset:0}.auth-message{font-size:var(--text-base)}.auth-check{display:flex;align-items:flex-start;gap:var(--space-3);min-height:var(--tap);padding:var(--space-3) var(--space-4);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);color:var(--text);font-size:var(--text-base);font-weight:var(--weight-medium);line-height:var(--leading);cursor:pointer}.auth-check--on{border-color:var(--brand);background:var(--brand-softer)}.auth-check input{flex:none;width:22px;height:22px;min-height:0;margin:1px 0 0;accent-color:var(--brand)}.auth-check:focus-within{outline:3px solid var(--focus-ring);outline-offset:2px}.auth-link{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--tap-min);margin:0;padding:0 var(--space-1);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--brand-strong);font-family:var(--font);font-size:var(--text-base);font-weight:var(--weight-bold);text-align:left;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer}.auth-link:hover:not(:disabled){background:var(--brand-softer)}.auth-link:disabled{color:var(--text-subtle);cursor:not-allowed}.auth-switch{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 var(--space-1);margin:0;color:var(--text-muted);font-size:var(--text-base);text-align:center}.auth-note{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading);text-align:center}.auth-actions{display:flex;flex-direction:column;gap:var(--space-3)}.auth-center{align-self:center;justify-content:center;text-align:center}.auth-disclosure{border-top:1px solid var(--border)}.auth-disclosure__summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--tap);padding:var(--space-2) 0;color:var(--brand-strong);font-size:var(--text-base);font-weight:var(--weight-bold);list-style:none;cursor:pointer}.auth-disclosure__summary::-webkit-details-marker{display:none}.auth-disclosure__summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.auth-disclosure__chevron{flex:none;transition:transform .15s ease}.auth-disclosure[open] .auth-disclosure__chevron{transform:rotate(180deg)}.auth-disclosure__body{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-1) 0 var(--space-2)}.auth-options{overflow:hidden}.auth-options__icon{display:inline-flex;align-items:center;justify-content:center;width:var(--space-10);height:var(--space-10);border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand-strong)}.auth-loading{display:flex;align-items:center;gap:var(--space-3);color:var(--text-muted)}.auth-loading .ui-spinner{color:var(--brand)}.auth-qr{display:flex;justify-content:center;padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--paper)}.auth-qr svg{display:block;width:176px;max-width:100%;height:auto}.auth-codes{display:grid;grid-template-columns:repeat(auto-fill,minmax(15em,1fr));gap:var(--space-1) var(--space-4);margin:0;padding:var(--space-4);overflow-wrap:anywhere;border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--surface-muted);font-family:var(--font-mono);font-size:var(--text-base);list-style:none}.auth-back{align-self:flex-start;margin-left:calc(-1 * var(--space-1));text-decoration:none}.auth-sheet{display:flex;flex-direction:column;gap:var(--space-4)}@media(max-width:900px){.auth-layout{grid-template-columns:minmax(0,1fr)}.auth-aside{display:none}.auth-main{align-items:flex-start;padding:max(var(--space-6),env(safe-area-inset-top)) max(var(--gutter),env(safe-area-inset-right)) max(var(--space-8),env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left))}.auth-panel{margin:0}.auth-panel__logo{display:flex;margin-bottom:var(--space-2)}.auth-main--split{align-items:stretch}.auth-panel--split{gap:var(--space-6)}.auth-welcome{flex:1 0 auto;align-items:center;justify-content:center;gap:var(--space-6);padding-block:var(--space-8) var(--space-4);text-align:center}.auth-welcome .auth-heading{align-items:center}.auth-welcome .auth-heading__title{font-size:var(--text-2xl)}.auth-welcome .auth-heading__subtitle{max-width:22em}.auth-welcome__logo{display:flex;flex-direction:column;gap:var(--space-3);font-size:var(--text-xl)}.auth-welcome__logo .auth-logo__mark{gap:5px;width:64px;height:64px;border-radius:var(--radius-lg)}.auth-welcome__logo .auth-logo__mark span{width:7px;height:23px}.auth-welcome__logo .auth-logo__mark span:last-child{height:34px}}@media(min-width:901px){.auth-heading__title{font-size:var(--text-2xl)}}.ek{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-5);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm);color:var(--text);font-family:var(--font)}.ek__head{display:flex;align-items:center;gap:var(--space-3)}.ek__icon{display:inline-flex;flex:none;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand-strong)}.ek__title{margin:0;color:var(--text);font-size:var(--text-lg);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.ek__summary{margin:0;color:var(--text-muted);font-size:var(--text-base);line-height:var(--leading)}.ek__key-box,.ek__codes{padding:var(--space-4);border:1px dashed var(--border-strong);border-radius:var(--radius-md);background:var(--surface-muted)}.ek__key-label{margin:0 0 var(--space-2);color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-bold)}.ek__key{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-3);margin:0;color:var(--text);font-family:var(--font-mono);font-size:var(--text-lg);font-weight:var(--weight-bold);line-height:var(--leading);letter-spacing:.04em}.ek__group{white-space:nowrap}.ek__code-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(15em,1fr));gap:var(--space-1) var(--space-4);margin:0;padding:0;list-style:none;font-family:var(--font-mono);font-size:var(--text-base);overflow-wrap:anywhere}.ek__actions{display:grid;gap:var(--space-2)}.ek__status{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.ek__status:empty{display:none}.ek-print{display:none}@media print{body>:not(.ek-print){display:none!important}html,body{background:var(--surface)!important}.ek-print{display:block;max-width:17cm;margin:0 auto;color:var(--text);font-family:var(--font);font-size:12pt;line-height:var(--leading)}.ek-print__title{margin:0 0 var(--space-4);font-size:22pt}.ek-print__meta{display:grid;grid-template-columns:max-content 1fr;gap:var(--space-1) var(--space-4);margin:0 0 var(--space-6)}.ek-print__meta dt{font-weight:var(--weight-bold)}.ek-print__meta dd{margin:0}.ek-print__label{margin:var(--space-4) 0 var(--space-2);font-weight:var(--weight-bold)}.ek-print__key{margin:0;padding:var(--space-4);border:2px solid var(--text);border-radius:var(--radius-sm);font-family:var(--font-mono);display:flex;flex-wrap:wrap;gap:var(--space-1) .9em;font-size:16pt;font-weight:var(--weight-bold);letter-spacing:.04em}.ek-print__codes{columns:3;margin:0;padding:0;list-style:none;font-family:var(--font-mono)}.ek-print__text{margin:var(--space-3) 0 0}}.account-security{display:grid;gap:var(--space-8);min-width:0}.security-section{display:grid;gap:var(--space-3);min-width:0}.security-section__title,.recovery-check__title,.operations__title{margin:0;color:var(--text);font-size:var(--text-lg)}.security-row{display:flex;align-items:center;min-width:0}.security-row+.security-row{border-top:1px solid var(--border)}.security-row>.ui-list-row{flex:1;min-width:0}.security-row__action.ui-button{flex:none;margin-right:var(--space-2);padding-inline:var(--space-3);color:var(--danger)}.security-row__lines{display:flex;flex-direction:column;gap:2px}.security-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand-strong)}.security-status{margin:0}.security-pill{display:inline-block;padding:var(--space-1) var(--space-3);border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-bold)}.security-pill--on{background:var(--success-soft);color:var(--success)}.security-actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.security-danger-text.ui-button{color:var(--danger)}.security-copy{margin:0;color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.security-steps{margin:0;padding-left:var(--space-6);color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.security-steps li+li{margin-top:var(--space-1)}.security-qr{display:flex;justify-content:center;padding:var(--space-3);border-radius:var(--radius-md);background:var(--paper)}.security-qr svg{max-width:100%;height:auto}.recovery-check{display:grid;gap:var(--space-3);min-width:0}.recovery-check .form-stack{max-width:480px}.recovery-check__result{margin-top:var(--space-2)}.operations{display:grid;gap:var(--space-3);min-width:0}.operations__actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.emergency-screen{display:flex;align-items:flex-start;justify-content:center;min-height:100vh;min-height:100dvh;margin-left:0;padding:calc(var(--space-4) + env(safe-area-inset-top,0px)) var(--space-6) var(--space-8);background:var(--bg)}@media(max-width:619.98px){.emergency-screen{padding-right:calc(var(--gutter) + env(safe-area-inset-right,0px));padding-left:calc(var(--gutter) + env(safe-area-inset-left,0px))}}.recovery-check__show.ui-button{flex:none;padding-inline:var(--space-3)}.viewer-preview__open{position:relative;display:flex;align-items:center;justify-content:center;width:auto;max-width:100%;margin:0;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;cursor:zoom-in;-webkit-tap-highlight-color:transparent}.viewer-preview__open:disabled{cursor:default}.viewer-preview__open:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.viewer-preview__image{display:block;background:var(--paper);max-width:100%;max-height:62vh;max-height:62dvh;object-fit:contain;border-radius:var(--radius-sm);-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.viewer-preview__badge{position:absolute;right:var(--space-2);bottom:var(--space-2);display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);box-shadow:var(--shadow-md);color:var(--text);pointer-events:none}.viewer-preview__message{margin:0;padding:var(--space-6) var(--space-4);color:var(--text-muted);font-size:var(--text-base);text-align:center}.viewer-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:65;display:flex;flex-direction:column;background:var(--surface-inverse);color:var(--text-on-inverse);font-family:var(--font);overscroll-behavior:contain}.viewer-fullscreen:focus{outline:none}.viewer-fullscreen__bar,.viewer-fullscreen__controls{display:flex;flex:none;align-items:center;gap:var(--space-3);padding:var(--space-2) calc(var(--space-2) + env(safe-area-inset-right,0px)) var(--space-2) calc(var(--gutter) + env(safe-area-inset-left,0px));background:var(--surface-inverse)}.viewer-fullscreen__bar{padding-top:calc(var(--space-2) + env(safe-area-inset-top,0px));border-bottom:1px solid var(--border-inverse)}.viewer-fullscreen__controls{flex-wrap:wrap;justify-content:center;gap:var(--space-2) var(--space-6);padding:var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border-inverse)}.viewer-fullscreen__title{flex:1;min-width:0;margin:0;overflow:hidden;font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight);text-overflow:ellipsis;white-space:nowrap}.viewer-fullscreen__group{display:flex;align-items:center;gap:var(--space-2)}.viewer-fullscreen__status{min-width:7.5em;font-size:var(--text-base);font-weight:var(--weight-medium);text-align:center}.viewer-fullscreen__button.ui-icon-button{width:var(--tap);height:var(--tap);color:var(--text-on-inverse)}.viewer-fullscreen__button.ui-icon-button:hover:not(:disabled){background:var(--surface-inverse-raised);color:var(--text-on-inverse)}.viewer-fullscreen__button.ui-icon-button:disabled{opacity:.35}.viewer-fullscreen__stage{position:relative;display:flex;flex:1 1 auto;align-items:center;justify-content:center;min-height:0;overflow:hidden;touch-action:none;cursor:zoom-in;-webkit-user-select:none;user-select:none}.viewer-fullscreen__stage.is-zoomed{cursor:grab}.viewer-fullscreen__stage.is-zoomed.is-gesturing{cursor:grabbing}.viewer-fullscreen__content{flex:none;transform-origin:center center;transition:transform .16s ease-out}.viewer-fullscreen__stage.is-gesturing .viewer-fullscreen__content{transition:none}.viewer-fullscreen__image,.viewer-fullscreen__page,.viewer-fullscreen__canvas{display:block;width:100%;height:100%}.viewer-fullscreen__image{object-fit:contain;pointer-events:none;-webkit-user-drag:none}.viewer-fullscreen__page,.viewer-fullscreen__image{background:var(--paper)}.viewer-fullscreen__message{position:absolute;inset:auto var(--gutter) var(--space-4);margin:0;padding:var(--space-3);border-radius:var(--radius-sm);background:var(--danger-soft);color:var(--danger);font-size:var(--text-base);text-align:center}.viewer-facts{display:flex;flex-direction:column;gap:var(--space-3)}.viewer-facts__archived{align-self:flex-start;margin:0;padding:var(--space-1) var(--space-3);border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-medium)}.viewer-facts__list{margin:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.viewer-facts__row{display:grid;grid-template-columns:minmax(5.5em,8em) minmax(0,1fr);gap:var(--space-3);padding:var(--space-3) var(--space-4)}.viewer-facts__row+.viewer-facts__row{border-top:1px solid var(--border)}.viewer-facts__row dt{color:var(--text-muted);font-size:var(--text-base)}.viewer-facts__row dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-1) var(--space-3);min-width:0;margin:0;color:var(--text);font-size:var(--text-base);font-weight:var(--weight-medium);overflow-wrap:anywhere}.viewer-facts__row--block{grid-template-columns:minmax(0,1fr);gap:var(--space-1)}.viewer-facts__notes{font-weight:var(--weight-regular);line-height:var(--leading);white-space:pre-wrap}.viewer-facts__detail{color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-bold)}.viewer-facts__detail--ok{color:var(--success)}.viewer-facts__detail--warning{color:var(--warning)}.viewer-facts__detail--danger{color:var(--danger)}.viewer-facts__tags{display:flex;flex-wrap:wrap;gap:var(--space-2)}.viewer-facts__tag{padding:2px var(--space-3);border-radius:var(--radius-pill);background:var(--brand-soft);color:var(--brand-strong);font-size:var(--text-sm);font-weight:var(--weight-medium)}.viewer-facts__scan{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface)}.viewer-facts__scan summary,.viewer-edit__more summary{display:flex;align-items:center;min-height:var(--tap);padding:0 var(--space-4);border-radius:var(--radius-lg);color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold);cursor:pointer}.viewer-facts__scan[open] summary{border-bottom:1px solid var(--border);border-radius:var(--radius-lg) var(--radius-lg) 0 0}.viewer-facts__hint{margin:var(--space-3) var(--space-4) 0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.viewer-facts__scan-text{margin:var(--space-3) var(--space-4) var(--space-4);font-size:var(--text-base);line-height:var(--leading);white-space:pre-wrap;overflow-wrap:anywhere}.viewer-activity__list{list-style:none;margin:var(--space-3) 0 var(--space-4);padding:0 var(--space-4);display:grid;gap:var(--space-3)}.viewer-activity__row{display:flex;flex-direction:column;gap:2px}.viewer-activity__label{font-size:var(--text-base);color:var(--text)}.viewer-activity__meta{font-size:var(--text-sm);color:var(--text-muted)}.viewer-facts__copy-note{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.viewer-field__suggestions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.viewer-suggestion{min-height:36px;padding:0 var(--space-3);border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--surface);color:var(--text);font:inherit;font-size:var(--text-sm);cursor:pointer}.viewer-suggestion[aria-pressed=true]{border-color:var(--accent, currentColor);font-weight:600}.viewer-guide{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);font-size:var(--text-base);line-height:var(--leading)}.viewer-guide p{margin:0}.viewer-guide__head{display:flex;flex-direction:column;gap:var(--space-1)}.viewer-guide__title{margin:0;color:var(--text);font-size:var(--text-md)}.viewer-guide__place{color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-medium)}.viewer-guide__status{display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-3) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--brand-softer)}.viewer-guide__status-title{color:var(--text);font-weight:var(--weight-bold)}.viewer-guide__status-detail{color:var(--text-muted);font-size:var(--text-sm)}.viewer-guide__status--info .viewer-guide__status-title{color:var(--brand-strong)}.viewer-guide__status--warning{border-color:var(--warning-border);background:var(--warning-soft)}.viewer-guide__status--warning .viewer-guide__status-title{color:var(--warning)}.viewer-guide__status--danger{border-color:var(--danger-border);background:var(--danger-soft)}.viewer-guide__status--danger .viewer-guide__status-title{color:var(--danger)}.viewer-guide__note{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);color:var(--text-muted);font-size:var(--text-sm)}.viewer-guide__lines,.viewer-guide__tips ul,.viewer-guide__sources ul{margin:0;padding:0;list-style:none}.viewer-guide__lines{display:flex;flex-direction:column;gap:var(--space-3)}.viewer-guide__line{display:flex;align-items:flex-start;gap:var(--space-3);color:var(--text)}.viewer-guide__icon{display:inline-flex;flex:none;padding-top:2px;color:var(--text-subtle)}.viewer-guide__line--after .viewer-guide__icon{color:var(--warning)}.viewer-guide__subtitle{margin:0 0 var(--space-2);color:var(--text);font-size:var(--text-base)}.viewer-guide__tips ul{display:flex;flex-direction:column;gap:var(--space-2)}.viewer-guide__tips li{position:relative;padding-left:var(--space-5);color:var(--text)}.viewer-guide__tips li:before{content:"";position:absolute;top:.65em;left:var(--space-1);width:6px;height:6px;border-radius:var(--radius-pill);background:var(--brand)}.viewer-guide__renew.ui-button{align-self:flex-start}.viewer-guide__sources{border-top:1px solid var(--border)}.viewer-guide__sources summary{display:flex;align-items:center;min-height:var(--tap);color:var(--text);font-weight:var(--weight-bold);cursor:pointer}.viewer-guide__sources summary::-webkit-details-marker{display:none}.viewer-guide__sources summary:after{content:"";width:10px;height:10px;margin-left:auto;border-right:2px solid var(--text-muted);border-bottom:2px solid var(--text-muted);transform:translateY(-3px) rotate(45deg)}.viewer-guide__sources[open] summary:after{transform:translateY(3px) rotate(-135deg)}.viewer-guide__sources ul{display:flex;flex-direction:column;padding-bottom:var(--space-2);font-size:var(--text-sm)}.viewer-guide__sources li{display:flex;flex-wrap:wrap;align-items:center;column-gap:var(--space-1)}.viewer-guide__sources a{display:inline-flex;align-items:center;min-height:var(--tap-min);color:var(--brand-strong);font-weight:var(--weight-medium);overflow-wrap:anywhere}.viewer-guide__checked{color:var(--text-muted)}.viewer-guide__caveat{color:var(--text-muted);font-size:var(--text-sm)}@media(min-width:1000px){.document-viewer__body>.viewer-facts:has(.viewer-guide){position:static}}.viewer-edit__fields{display:flex;flex-direction:column;gap:var(--space-5);min-width:0;margin:0;padding:0;border:0}.viewer-field{display:flex;flex-direction:column;gap:var(--space-2);min-width:0}.viewer-small-sheet .viewer-field+.viewer-field{margin-top:var(--space-5)}.viewer-field__label{color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold)}.viewer-field__hint{color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.viewer-input{width:100%;min-width:0;max-width:100%;min-height:var(--tap);margin:0;padding:var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-family:var(--font);font-size:var(--text-base);line-height:var(--leading-tight)}.viewer-input:disabled{opacity:.6}.viewer-select{cursor:pointer}.viewer-place{margin:0;padding:0;border:0}.viewer-place legend{margin-bottom:var(--space-2);padding:0}.viewer-place__label{color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-medium)}.viewer-place__label:not(:first-of-type){margin-top:var(--space-2)}.viewer-input--date{max-width:16em}.viewer-textarea{line-height:var(--leading);resize:vertical}.viewer-edit__more{border:1px solid var(--border);border-radius:var(--radius-lg)}.viewer-edit__more[open] summary{border-bottom:1px solid var(--border);border-radius:var(--radius-lg) var(--radius-lg) 0 0}.viewer-edit__more-body{display:flex;flex-direction:column;gap:var(--space-5);padding:var(--space-4)}.viewer-facts__scan summary::-webkit-details-marker,.viewer-edit__more summary::-webkit-details-marker{display:none}.viewer-facts__scan summary:after,.viewer-edit__more summary:after{content:"";width:10px;height:10px;margin-left:auto;border-right:2px solid var(--text-muted);border-bottom:2px solid var(--text-muted);transform:translateY(-3px) rotate(45deg)}.viewer-facts__scan[open] summary:after,.viewer-edit__more[open] summary:after{transform:translateY(3px) rotate(-135deg)}.viewer-error{margin:0 0 var(--space-4);padding:var(--space-3) var(--space-4);border:1px solid var(--danger-border);border-radius:var(--radius-md);background:var(--danger-soft);color:var(--danger);font-size:var(--text-base)}.viewer-confirm__body p{margin:0;font-size:var(--text-base);line-height:var(--leading)}.viewer-confirm__body p+p{margin-top:var(--space-3)}.viewer-field__optional{color:var(--text-muted);font-weight:var(--weight-regular)}.viewer-renew__file{display:flex;align-items:center;gap:var(--space-2);min-height:var(--tap);padding-left:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-muted)}.viewer-renew__file-name{flex:1;min-width:0;overflow:hidden;font-size:var(--text-base);text-overflow:ellipsis;white-space:nowrap}.viewer-history{margin:calc(-1 * var(--space-2)) calc(-1 * var(--space-4))}.safe-pdf-preview,.safe-preview-image{width:100%;min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-sunken)}.safe-pdf-page{position:relative;display:flex;justify-content:center;min-height:240px;padding:var(--space-3)}.safe-pdf-page[hidden]{display:none}.safe-pdf-open{max-width:100%}.safe-pdf-canvas{display:block;max-width:100%;height:auto;background:var(--paper);box-shadow:var(--shadow-md)}.safe-pdf-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:var(--bg-translucent)}.safe-pdf-pager{display:flex;align-items:center;justify-content:center;gap:var(--space-4);padding:var(--space-2) var(--space-3) var(--space-3)}.safe-pdf-pager__button.ui-icon-button{width:var(--tap);height:var(--tap);color:var(--text)}.safe-pdf-pager__status{min-width:7.5em;color:var(--text);font-size:var(--text-base);font-weight:var(--weight-medium);text-align:center}.safe-preview-image{display:flex;justify-content:center;padding:var(--space-3)}.safe-preview-loading,.safe-preview-message{display:flex;align-items:center;justify-content:center;gap:var(--space-3);margin:0;padding:var(--space-4);color:var(--text-muted);font-size:var(--text-base);text-align:center}.safe-preview-message{min-height:120px}.form-stack{display:grid;gap:var(--space-5);min-width:0}.form-field{display:grid;gap:var(--space-2);min-width:0;margin:0}.form-field__label{color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.form-field__hint{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.form-field__input{width:100%;min-width:0;max-width:100%;min-height:var(--tap);margin:0;padding:var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);font-family:var(--font);font-size:var(--text-base);font-weight:var(--weight-regular)}.form-field__input:focus-visible{outline:3px solid var(--focus-ring);outline-offset:1px}.form-field__input--code{max-width:12em;font-family:var(--font-mono);letter-spacing:.1em}.form-field__input--mono{font-family:var(--font-mono);overflow-wrap:anywhere}.form-field__row{display:flex;align-items:center;gap:var(--space-2);min-width:0}.form-field__row .form-field__input{flex:1}.form-check{display:flex;align-items:flex-start;gap:var(--space-3);min-height:var(--tap-min);margin:0;color:var(--text);font-size:var(--text-base);line-height:var(--leading);cursor:pointer}.form-check input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--brand)}.form-group-label{margin:0 0 var(--space-2);color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold)}.form-note{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.offline-manager{display:grid;gap:var(--space-4);min-width:0}.offline-status-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-md);background:var(--surface-sunken);color:var(--text-muted)}.offline-status-icon--on{background:var(--brand-soft);color:var(--brand-strong)}.offline-shell{display:flex;align-items:flex-start;gap:var(--space-2);margin:0;color:var(--warning);font-size:var(--text-base);line-height:var(--leading)}.offline-shell svg{flex:none;margin-top:3px}.offline-shell--ready{color:var(--success)}.offline-actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.offline-danger-text.ui-button{color:var(--danger)}.offline-danger-text.ui-button:hover:not(:disabled){background:var(--danger-soft)}.offline-show.ui-button{flex:none;padding-inline:var(--space-3)}.offline-advanced{border-top:1px solid var(--border)}.offline-advanced>summary{display:flex;align-items:center;min-height:var(--tap);color:var(--brand-strong);font-size:var(--text-base);font-weight:var(--weight-bold);cursor:pointer}.offline-advanced__body{display:grid;justify-items:start;gap:var(--space-3);padding-bottom:var(--space-2)}.offline-copy{margin:0 0 var(--space-4);color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.offline-choices{display:grid;gap:var(--space-2);min-width:0;margin:0;padding:0;border:0}.offline-count{display:block;margin-top:var(--space-1);color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-regular)}.offline-choice{display:flex;align-items:center;gap:var(--space-3);min-height:calc(var(--tap) + var(--space-2));padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);cursor:pointer}.offline-choice:has(input:checked){border-color:var(--brand);background:var(--brand-softer)}.offline-choice:has(input:disabled){cursor:not-allowed;opacity:.6}.offline-choice input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--brand)}.offline-choice__text{display:grid;gap:2px;min-width:0}.offline-choice__title{color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold);overflow-wrap:anywhere}.offline-choice__meta{color:var(--text-muted);font-size:var(--text-sm);overflow-wrap:anywhere}.offline-reader{display:grid;gap:var(--space-4);width:100%;max-width:720px;min-width:0;font-family:var(--font)}.offline-reader .ui-page-header{margin-bottom:var(--space-2)}.offline-reader__bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--tap)}.offline-reader__bar>.ui-button--ghost{margin-left:calc(-1 * var(--space-3));padding-inline:var(--space-3)}.offline-reader__preview{display:grid;justify-items:start;gap:var(--space-2);min-width:0}.offline-reader__preview>.ui-button--ghost{margin-left:calc(-1 * var(--space-3));padding-inline:var(--space-3)}.offline-reader__doc-title{margin:0;color:var(--text);font-size:var(--text-lg);overflow-wrap:anywhere}.offline-reader__frame{width:100%;min-width:0;margin-top:var(--space-2);padding-top:var(--space-3);border-top:1px solid var(--border)}.offline-reader__frame .safe-pdf-preview{max-width:100%}.offline-suggest.ui-button{min-height:var(--tap-min);margin-inline-start:calc(-1 * var(--space-3));padding-inline:var(--space-3)}.copy-text{display:flex;align-items:center;gap:var(--space-3);min-height:var(--tap);margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.copy-text__label{flex:1;min-width:0}.copy-text__skip.ui-button{flex:none;min-height:var(--tap-min);padding-inline:var(--space-3)}.copy-text--quiet{min-height:0}.changes-sheet{display:flex;flex-direction:column;gap:var(--space-2)}.viewer-followup .ui-banner__body p{overflow-wrap:anywhere}@media(min-width:1000px){.document-viewer__body>.viewer-followup{order:-1}}.checklist-sheet .ui-sheet__body{display:flex;flex-direction:column;gap:var(--space-5)}.checklist{display:flex;flex-direction:column;gap:var(--space-3)}.checklist__title{margin:0;color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.checklist__items{display:flex;flex-direction:column;margin:0;padding:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);list-style:none}.checklist__empty,.checklist__rules{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}.checklist-item{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3) var(--space-4) var(--space-4)}.checklist-item+.checklist-item{border-top:1px solid var(--border)}.checklist-item__head{display:flex;align-items:flex-start;gap:var(--space-3);min-height:var(--tap-min);padding-top:var(--space-2);cursor:pointer}.checklist-item__box{flex:none;width:24px;height:24px;margin:0;accent-color:var(--brand);cursor:pointer}.checklist-item__box:disabled{cursor:not-allowed}.checklist-item__box:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.checklist-item__title{flex:1;min-width:0;color:var(--text);font-size:var(--text-base);font-weight:var(--weight-bold);line-height:var(--leading-tight);overflow-wrap:anywhere}.checklist-item--done .checklist-item__title,.checklist-item--skipped .checklist-item__title{color:var(--text-muted)}.checklist-item--done .checklist-item__title{text-decoration:line-through}.checklist-item__body,.checklist-item__actions{margin-left:calc(24px + var(--space-3))}.checklist-item__body{display:flex;flex-direction:column;gap:var(--space-1)}.checklist-item__body p{margin:0;font-size:var(--text-sm);line-height:var(--leading);overflow-wrap:anywhere}.checklist-item__detail{color:var(--text)}.checklist-item__note{color:var(--text-muted)}.checklist-item__note--holds{color:var(--brand-strong);font-weight:var(--weight-medium)}.checklist-item__tag{align-self:flex-start;padding:2px var(--space-3);border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text-muted);font-weight:var(--weight-medium)}.checklist-item__deadline{color:var(--text-muted)}.checklist-item__deadline--ok strong{color:var(--success)}.checklist-item__deadline--warning strong{color:var(--warning)}.checklist-item__deadline--danger strong{color:var(--danger)}.checklist-item__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-1) var(--space-3)}.checklist-item__link{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--tap-min);color:var(--brand-strong);font-size:var(--text-base);font-weight:var(--weight-medium);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.checklist-item__link-end{white-space:nowrap}.checklist-item__link-icon{display:inline-block;margin-inline-start:var(--space-1);vertical-align:-2px}.checklist-item__link:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-sm)}.checklist-inline.ui-button{min-height:var(--tap-min);margin-inline-start:calc(-1 * var(--space-3));padding-inline:var(--space-3)}.checklist-item__body:empty,.checklist-item__actions:empty{display:none}.checklist__sources{font-size:var(--text-sm);line-height:var(--leading)}.checklist__sources summary{display:inline-flex;align-items:center;min-height:var(--tap-min);color:var(--text-muted);font-weight:var(--weight-medium);cursor:pointer}.checklist__sources summary:focus-visible,.checklist__sources a:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px;border-radius:var(--radius-sm)}.checklist__sources ul{display:flex;flex-direction:column;gap:var(--space-3);margin:var(--space-1) 0 0;padding:0;list-style:none}.checklist__sources li{display:flex;flex-direction:column;gap:var(--space-1)}.checklist__sources-item{color:var(--text);font-weight:var(--weight-medium)}.checklist__sources a{color:var(--brand-strong);overflow-wrap:anywhere}.checklist__checked{color:var(--text-muted)}.checklist-home{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--space-2) var(--space-3);margin:0;padding:var(--space-3) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-muted)}.checklist-home__text{margin:0;font-size:var(--text-base);line-height:var(--leading)}.checklist-home--ask{display:flex;flex-direction:column;align-items:stretch;min-width:0}.checklist-home--ask legend{float:left;width:100%;padding:0}.checklist-home--ask legend+*{clear:both}.checklist-home__fields{display:flex;flex-wrap:wrap;gap:var(--space-3)}.checklist-home__field{display:flex;flex:1 1 12em;flex-direction:column;gap:var(--space-1);min-width:0;color:var(--text);font-size:var(--text-sm);font-weight:var(--weight-medium)}.checklist-since{display:flex;flex-direction:column;gap:var(--space-1);min-width:0;margin:0 0 var(--space-3);padding:var(--space-3) var(--space-4);border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-muted)}.checklist-since .viewer-field__hint{margin:0}.checklist-since__input{max-width:14em}.viewer-arrival__actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}.ui-sheet.document-viewer{position:relative}.document-viewer--star .ui-sheet__heading{padding-right:var(--tap)}.document-viewer__star{position:absolute;z-index:1;top:var(--space-3);right:calc(var(--space-3) + var(--tap-min) + var(--space-1))}.document-viewer__star.is-on{color:var(--tint-gold-ink)}.document-viewer__star.is-on:hover:not(:disabled){color:var(--tint-gold-ink);background:var(--tint-gold)}.document-viewer__body{display:flex;flex-direction:column;gap:var(--space-4)}.document-viewer__preview.is-loading{opacity:.55;transition:opacity .12s ease}.document-viewer__loading{display:flex;align-items:center;justify-content:center;gap:var(--space-3);min-height:40vh;border-radius:var(--radius-lg);background:var(--surface-sunken);color:var(--text-muted);font-size:var(--text-base)}.document-viewer__sample{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-3);min-height:220px;padding:var(--space-6);border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-muted);color:var(--text-muted);text-align:center}.document-viewer__sample svg{color:var(--brand)}.document-viewer__sample p{margin:0;max-width:22em;font-size:var(--text-base)}.viewer-actionbar{display:flex;flex:1 1 100%;align-items:stretch;justify-content:flex-end;gap:var(--space-2);min-width:0}.viewer-actionbar__button.ui-button{padding-inline:var(--space-4)}.viewer-actionbar__more.ui-icon-button{width:var(--tap);height:auto;min-height:var(--tap);border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);color:var(--text)}@media(min-width:1000px){.ui-sheet--lg.document-viewer{max-width:min(1160px,100%)}.document-viewer__body{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:var(--space-4) var(--space-6)}.document-viewer__body>*{grid-column:1 / -1}.document-viewer__body>:is(.document-viewer__preview,.document-viewer__loading,.document-viewer__sample,.safe-preview-image){grid-column:1}.document-viewer__body>.viewer-facts{position:sticky;top:0;grid-column:2}}@media(max-width:619.98px){.viewer-actionbar{justify-content:stretch}.viewer-actionbar__button.ui-button{flex:1 1 0;flex-direction:column;gap:var(--space-1);min-width:0;padding:var(--space-2) var(--space-1);font-size:var(--text-sm)}.ui-sheet.document-viewer{height:calc(100dvh - env(safe-area-inset-top,0px) - 12px)}.viewer-actionbar__more.ui-icon-button{flex:none;width:calc(var(--tap) + var(--space-2))}.ui-sheet.document-viewer .document-viewer__star{top:var(--space-5);right:calc(var(--space-2) + env(safe-area-inset-right,0px) + var(--tap-min) + var(--space-1))}}.renewal-calendar{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);min-width:0}.renewal-calendar__note{margin:0;color:var(--text-muted);font-size:var(--text-sm);line-height:var(--leading)}@media(max-width:619.98px){.renewal-calendar{align-items:stretch}}.ui-card.reminders-card{display:flex;flex-direction:column;gap:var(--space-2);margin:0 0 var(--space-6);padding:var(--space-3) var(--space-5)}.ui-card.reminders-card--simple{gap:var(--space-3);padding-block:var(--space-4) var(--space-5)}.reminders-card__lead{margin:0;color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.reminders-card__hint,.reminders-card__error,.reminders-card__notice{margin:0;font-size:var(--text-sm);line-height:var(--leading)}.reminders-card__hint,.reminders-card__notice{color:var(--text-muted)}.reminders-card__error{color:var(--danger);font-weight:var(--weight-medium)}.reminders-card__notice:empty,.reminders-card__messages:empty{display:none}.reminders-card__messages{display:flex;flex-direction:column;gap:var(--space-1)}.reminders-card__push{border-top:1px solid var(--border);padding-top:var(--space-3)}.reminders-card__reset{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}.reminders-card__more{margin:0 calc(-1 * var(--space-5)) calc(-1 * var(--space-3));border-top:1px solid var(--border)}.reminders-card__more>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--tap);padding:var(--space-2) var(--space-5);color:var(--brand-strong);font-size:var(--text-base);font-weight:var(--weight-medium);list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.reminders-card__more>summary::-webkit-details-marker{display:none}.reminders-card__more>summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}.reminders-card__chevron{flex:none;transition:transform .15s ease}.reminders-card__more[open] .reminders-card__chevron{transform:rotate(180deg)}.reminders-card__more-body{display:flex;flex-direction:column;gap:var(--space-4);padding:0 var(--space-5) var(--space-5);color:var(--text-muted);font-size:var(--text-base);line-height:var(--leading)}.reminders-card__more-body p{margin:0}.reminders-card__address{color:var(--text);overflow-wrap:anywhere}.reminders-card__points{display:flex;flex-direction:column;gap:var(--space-2);margin:0;padding-left:var(--space-5)}.reminders-card__test{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}@media(max-width:619.98px){.ui-card.reminders-card{padding-inline:var(--space-4)}.reminders-card__more{margin-inline:calc(-1 * var(--space-4))}.reminders-card__more>summary{padding-inline:var(--space-4)}.reminders-card__more-body{padding-inline:var(--space-4)}.reminders-card__test,.reminders-card__reset{align-items:stretch}}.renewals-section{margin:0 0 var(--space-6)}.renewals-section__title{display:flex;align-items:center;gap:var(--space-2);margin:0 0 var(--space-3);color:var(--text);font-size:var(--text-lg);line-height:var(--leading-tight)}.renewals-section__title--expired svg{color:var(--danger)}.renewals-section__title--start svg{color:var(--warning)}.renewals-section__title--soon svg{color:var(--brand-strong)}.renewals-section__title--later svg{color:var(--text-subtle)}.renewals-section__count{min-width:1.8em;padding:2px var(--space-2);border-radius:var(--radius-pill);background:var(--surface-sunken);color:var(--text-muted);font-size:var(--text-xs);font-weight:var(--weight-bold);text-align:center}.renewals-section__title--expired .renewals-section__count{background:var(--danger-soft);color:var(--danger)}.renewals-section__title--start .renewals-section__count{background:var(--warning-soft);color:var(--warning)}.renewals-section__title--soon .renewals-section__count{background:var(--brand-soft);color:var(--brand-strong)}.renewals-page__clear{margin:0 0 var(--space-5);color:var(--text);font-size:var(--text-lg);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.renewal-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;height:56px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-muted);color:var(--text);line-height:var(--leading-tight)}.renewal-badge__month{color:var(--text-muted);font-size:var(--text-xs);font-weight:var(--weight-bold);letter-spacing:.04em}.renewal-badge__day{font-size:var(--text-lg);font-weight:var(--weight-bold)}.renewal-badge--expired{border-color:var(--danger-border);background:var(--danger-soft)}.renewal-badge--expired .renewal-badge__month,.renewal-badge--expired .renewal-badge__day{color:var(--danger)}.renewal-badge--start{border-color:var(--warning-border);background:var(--warning-soft)}.renewal-badge--start .renewal-badge__month,.renewal-badge--start .renewal-badge__day{color:var(--warning)}.renewal-badge--soon{background:var(--brand-softer)}.renewal-badge--soon .renewal-badge__day{color:var(--brand-strong)}.renewals-due--danger{color:var(--danger);font-weight:var(--weight-bold)}.renewals-due--warning{color:var(--warning);font-weight:var(--weight-bold)}.renewals-advice{display:block;margin-top:2px;color:var(--text-muted);font-weight:var(--weight-medium)}.renewals-advice--start{color:var(--warning);font-weight:var(--weight-bold)}.renewals-item+.renewals-item{border-top:1px solid var(--border)}.renewals-item__renew{margin:0 var(--space-4) var(--space-3) calc(var(--space-4) + 52px + var(--space-3))}@media(min-width:600px){.renewals-item{display:flex;align-items:center}.renewals-item .renewals-row{flex:1;min-width:0}.renewals-item__renew{flex:none;margin:0 var(--space-4) 0 0}}.renewals-page__view{margin:0 0 var(--space-4)}.family-page{min-width:0}.family-banner{margin-bottom:var(--space-5)}.family-section{margin-bottom:var(--space-6)}.family-section__title{margin:0 0 var(--space-1);color:var(--text);font-size:var(--text-lg)}.family-section__hint{margin:0 0 var(--space-3);color:var(--text-muted);font-size:var(--text-base)}.family-row{display:flex;align-items:center;min-width:0}.family-row+.family-row{border-top:1px solid var(--border)}.family-row>.ui-list-row{flex:1;min-width:0}.family-row__action{flex:none;margin-right:var(--space-4);padding-inline:var(--space-4)}.family-row__lines{display:flex;flex-direction:column;gap:2px}.family-row__pending{color:var(--warning);font-weight:var(--weight-bold)}.family-avatar{display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-pill);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:1}.family-avatar--blue{background:var(--tint-blue);color:var(--tint-blue-ink)}.family-avatar--violet{background:var(--tint-violet);color:var(--tint-violet-ink)}.family-avatar--coral{background:var(--tint-coral);color:var(--tint-coral-ink)}.family-avatar--gold{background:var(--tint-gold);color:var(--tint-gold-ink)}.family-avatar--green{background:var(--tint-green);color:var(--tint-green-ink)}.family-footer{display:flex;flex-wrap:wrap;gap:var(--space-3)}.family-note{margin:0;color:var(--text-muted);font-size:var(--text-base)}.family-sheet-copy p{margin:0 0 var(--space-3);color:var(--text);font-size:var(--text-base);line-height:var(--leading);overflow-wrap:anywhere}.family-sheet-copy p:last-child{margin-bottom:0}.family-sheet-access{font-weight:var(--weight-bold)}.family-sheet-actions{display:grid;gap:var(--space-4);margin-top:var(--space-5);padding-top:var(--space-5);border-top:1px solid var(--border)}.family-danger-text.ui-button{color:var(--danger)}.family-danger-text.ui-button:hover:not(:disabled){background:var(--danger-soft)}.family-permission-note{margin-top:var(--space-3)}@media(max-width:619.98px){.family-footer>.ui-button{flex:1 1 100%}.family-row__action{margin-right:var(--space-3);padding-inline:var(--space-3)}}.family-person{display:grid;gap:var(--space-5);min-width:0}.family-person__title{display:inline-flex;align-items:center;gap:var(--space-3);min-width:0}.family-person__name{min-width:0;overflow-wrap:anywhere}.family-person__next{margin:var(--space-3) 0 0;color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.family-facts{display:flex;gap:var(--space-6);margin:0}.family-facts dt{color:var(--text-muted);font-size:var(--text-sm)}.family-facts dd{margin:0;font-size:var(--text-xl, 1.5rem);font-weight:var(--weight-bold)}.family-facts__warn{color:var(--warning)}.trusted-words{margin:0;padding:var(--space-4);border-radius:var(--radius-lg);background:var(--surface-muted, var(--brand-softer));font-size:var(--text-xl);font-weight:var(--weight-bold);line-height:1.6;text-align:center;letter-spacing:.01em}.family-summary-security-note{font-size:var(--text-xs);color:var(--text-muted);margin-top:1rem}.family-summary-printable{font-size:var(--text-sm);line-height:1.5;color:var(--text)}@media print{@page{margin:16mm}body *{visibility:hidden}.family-summary-printable,.family-summary-printable *{visibility:visible}.family-summary-printable{position:absolute;left:0;top:0;width:100%}.family-summary-printable,.family-summary-header,.family-summary-group h2,.family-summary-table th,.family-summary-table td{color:var(--text)}.family-summary-group{break-inside:avoid}}.family-summary-header{text-align:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid var(--border)}.family-summary-header h1{font-size:var(--text-lg);font-weight:var(--weight-bold);margin:0 0 .5rem}.family-summary-date{font-size:var(--text-xs);color:var(--text-muted);margin:0 0 .5rem}.family-summary-notice{font-size:var(--text-xs);color:var(--text-muted);margin:0;font-weight:var(--weight-medium)}.family-summary-group{margin-top:2rem}.family-summary-group:first-of-type{margin-top:0}.family-summary-group h2{font-size:var(--text-base);font-weight:var(--weight-bold);margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid var(--border)}.family-summary-table{width:100%;border-collapse:collapse;font-size:var(--text-xs)}.family-summary-table thead{background:var(--surface-muted);border-bottom:2px solid var(--border)}.family-summary-table th{padding:.75rem;text-align:left;font-weight:var(--weight-bold);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;color:var(--text)}.family-summary-table td{padding:.75rem;border-bottom:1px solid var(--border);word-break:break-word}.family-summary-table tbody tr:last-child td{border-bottom:none}.family-summary-table tbody tr:hover{background:var(--surface-muted)}@media print{.family-summary-table{break-inside:avoid}.family-summary-table thead{display:table-header-group;background:var(--paper)}.family-summary-table th{border:1px solid var(--text);background:var(--paper);color:var(--text);padding:.5rem}.family-summary-table td{border:1px solid var(--border-strong);padding:.5rem}.family-summary-table tbody tr:hover{background:var(--paper)}.family-summary-header,.family-summary-group h2{border-bottom-color:var(--text)}}@media screen{.family-summary-preview{overflow-x:auto}.family-summary-table{min-width:640px}.family-summary-table th,.family-summary-table td{overflow-wrap:normal;word-break:normal;-webkit-hyphens:none;hyphens:none}}.settings-page{min-width:0}.settings-card-gap{margin-top:var(--space-5)}.settings-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-md);background:var(--brand-soft);color:var(--brand-strong)}.settings-icon--plain{background:var(--surface-sunken);color:var(--text-muted)}.settings-prose p{max-width:44em;margin:0 0 var(--space-3);color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.settings-prose p:last-child{margin-bottom:0}.security-autolock{display:flex;align-items:center;gap:var(--space-2);margin:var(--space-8) 0 0;padding-top:var(--space-5);border-top:1px solid var(--border);color:var(--text-muted);font-size:var(--text-base)}.security-autolock svg{flex:none}.help-question+.help-question{border-top:1px solid var(--border)}.help-question>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:calc(var(--tap) + var(--space-2));padding:var(--space-3) var(--space-4);color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight);list-style:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.help-question>summary::-webkit-details-marker{display:none}.help-question>summary:hover{background:var(--surface-muted)}.help-question>summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:-3px}.help-question__chevron{flex:none;color:var(--text-subtle);transition:transform .15s ease}.help-question[open] .help-question__chevron{transform:rotate(180deg)}.help-question__answer{padding:0 var(--space-4) var(--space-4)}.help-question__answer p{max-width:44em;margin:0 0 var(--space-3);color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.help-question__answer p:last-child{margin-bottom:0}.help-privacy{margin-top:var(--space-8)}.help-privacy__title{margin:0 0 var(--space-3);color:var(--text);font-size:var(--text-lg)}.help-privacy__list{display:grid;gap:var(--space-4);margin:0;padding:0;list-style:none;color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.help-privacy__list b{display:block;margin-bottom:var(--space-1)}.settings-lost{margin-bottom:var(--space-2)}.settings-lost__title{margin:0 0 var(--space-3);color:var(--text);font-size:var(--text-lg);line-height:var(--leading-tight)}.settings-lost__steps{max-width:44em;margin:0 0 var(--space-4);padding-left:var(--space-6);color:var(--text);font-size:var(--text-base);line-height:var(--leading)}.settings-lost__steps li+li{margin-top:var(--space-2)}.settings-group{margin-top:var(--space-6)}.settings-group__title{margin:0 0 var(--space-2);padding:0 var(--space-1);color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-bold);letter-spacing:.02em;text-transform:uppercase}.settings-autolock{min-width:0;margin:0;padding:var(--space-3) var(--space-4) var(--space-4);border:0;border-top:1px solid var(--border)}.settings-autolock__legend{display:flex;align-items:center;gap:var(--space-3);float:left;width:100%;padding:0}.settings-autolock__title{display:block;color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.settings-autolock__hint{display:block;margin-top:var(--space-1);color:var(--text-muted);font-size:var(--text-sm)}.settings-autolock__options{clear:both;display:grid;gap:var(--space-1);padding-top:var(--space-3)}.settings-autolock__option{display:flex;align-items:center;gap:var(--space-3);min-height:var(--tap-min);padding:0 var(--space-3);border-radius:var(--radius-md);color:var(--text);font-size:var(--text-base);cursor:pointer}.settings-autolock__option:hover{background:var(--surface-muted)}.settings-autolock__option input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--brand)}.settings-autolock__option:has(input:focus-visible){outline:3px solid var(--focus-ring);outline-offset:-3px}.recently-deleted__loading{margin:var(--space-6) 0;color:var(--text-muted)}.recently-deleted__item{padding-bottom:var(--space-3);border-bottom:var(--hairline) solid var(--border)}.recently-deleted__item:last-child{border-bottom:0}.recently-deleted__dates{margin:0;padding:0 var(--space-4) var(--space-2);color:var(--text-muted);font-size:var(--text-sm)}.recently-deleted__actions{display:flex;flex-wrap:wrap;gap:var(--space-2);padding:0 var(--space-4)}.topbar-title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:50%;overflow:hidden;color:var(--text);font-size:17px;font-weight:600;line-height:var(--leading-tight);text-align:center;text-overflow:ellipsis;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s ease}[data-compact=true]>.topbar-title{opacity:1}@media(prefers-reduced-motion:reduce){.topbar-title{transition:none}}.gs{margin-bottom:var(--space-6);border-color:var(--brand);background:var(--brand-softer)}.gs__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-3) var(--space-2) var(--space-3) var(--space-4);border-bottom:1px solid var(--border)}.gs__heading{min-width:0}.gs__title{margin:0;color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.gs__count{margin:var(--space-1) 0 0;color:var(--text-muted);font-size:var(--text-sm)}.gs__hide{flex:none;min-height:var(--tap-min);padding-inline:var(--space-3)}.gs__steps{margin:0;padding:0;list-style:none}.gs__steps>li+li{border-top:1px solid var(--border)}.gs__mark{display:inline-flex;align-items:center;justify-content:center;color:var(--text-subtle)}.gs__mark--done{color:var(--success)}.gs__step--done .ui-list-row__title{color:var(--text-muted);font-weight:var(--weight-medium)}.ui-banner.install-prompt{margin:0 0 var(--space-4);border-color:var(--brand-accent)}.ui-banner.install-prompt .ui-banner__main{gap:var(--space-1) var(--space-3)}.ui-banner.install-prompt .ui-banner__content{flex-basis:11em}.ui-banner.install-prompt .ui-banner__body{color:var(--text-muted);font-size:var(--text-sm)}.ui-banner.install-prompt .ui-button{min-height:var(--tap-min)}.install-prompt__steps{display:flex;flex-direction:column;gap:var(--space-4);margin:0;padding:0;list-style:none;counter-reset:install-step}.install-prompt__steps li{display:flex;align-items:flex-start;gap:var(--space-3);min-width:0;color:var(--text);font-size:var(--text-base);line-height:var(--leading);counter-increment:install-step}.install-prompt__steps li:before{content:counter(install-step);display:inline-flex;flex:none;align-items:center;justify-content:center;width:1.75em;height:1.75em;border-radius:var(--radius-pill);background:var(--brand-soft);color:var(--brand-strong);font-size:var(--text-sm);font-weight:var(--weight-bold)}.install-prompt__steps li>span{min-width:0;overflow-wrap:break-word}.install-prompt__glyph{display:inline-block;vertical-align:-.2em;color:var(--brand-strong)}.install-prompt-sheet .ui-sheet__footer>.ui-button--ghost{flex:1 1 11em}.kist-toasts{position:fixed;z-index:80;left:0;right:0;bottom:var(--space-6);display:flex;flex-direction:column;align-items:center;gap:var(--space-2);padding:0 var(--gutter);pointer-events:none}.kist-toast{display:flex;align-items:center;gap:var(--space-2);max-width:min(520px,100%);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);border:1px solid var(--border-inverse);border-radius:14px;background:var(--surface-inverse);color:var(--text-on-inverse);font-size:var(--text-sm);line-height:var(--leading);box-shadow:var(--shadow-lg);overflow-wrap:anywhere;pointer-events:auto;animation:kist-toast-in .22s ease-out both}@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))){.kist-toast{background:color-mix(in srgb,var(--surface-inverse) 82%,transparent);-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%)}}.kist-toast--error{border-color:var(--danger-border)}.kist-toast__icon{flex-shrink:0}.kist-toast--success .kist-toast__icon{color:#7fd9a8}.kist-toast--error .kist-toast__icon{color:#ffb4a6}.kist-toast__message{flex:1 1 auto;min-width:0;padding:var(--space-1) 0}.kist-toast__action,.kist-toast__dismiss{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:var(--tap-min);min-height:var(--tap-min);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-on-inverse);font:inherit;cursor:pointer}.kist-toast__action{padding:0 var(--space-3);font-weight:var(--weight-bold);color:var(--brand-accent)}.kist-toast__action:hover,.kist-toast__dismiss:hover{background:var(--surface-inverse-raised)}.kist-toast__action:focus-visible,.kist-toast__dismiss:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}@keyframes kist-toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes kist-toast-in-top{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@media(max-width:620px){.kist-toasts{top:calc(env(safe-area-inset-top,0px) + var(--space-2));bottom:auto}.kist-toast{animation-name:kist-toast-in-top}}@media(prefers-reduced-motion:reduce){.kist-toast{animation:none}}:root{color-scheme:light dark;--brand: #167f75;--brand-hover: #0f6259;--brand-strong: #0f6259;--brand-soft: #e6f4f1;--brand-softer: #f0f8f6;--brand-ink: #0c3b36;--brand-accent: #36b5a7;--focus-ring: #2f9d90;--bg: #f2f2f7;--surface: #ffffff;--surface-muted: #f9f9fb;--surface-sunken: #ececf1;--surface-inverse: #102927;--surface-inverse-raised: #173734;--surface-inverse-active: #204743;--border-inverse: #29433f;--bg-translucent: rgba(249, 249, 251, .8);--bar-opaque: #f9f9fb;--menu-bg: rgba(255, 255, 255, .82);--scrim: rgba(0, 0, 0, .4);--paper: #ffffff;--text: #1c1c1e;--text-muted: #55555a;--text-subtle: #6a6a6f;--text-on-brand: #ffffff;--text-on-inverse: #e8f4f2;--text-on-inverse-muted: #a9c4bf;--border: rgba(60, 60, 67, .18);--border-strong: rgba(60, 60, 67, .36);--hairline: 1px;--danger: #b23b2a;--danger-soft: #fdeeea;--danger-border: #f1c3b9;--warning: #8a5a0b;--warning-soft: #fff4dd;--warning-border: #f0d49b;--success: #1d7a4f;--success-soft: #e6f5ec;--tint-blue: #e7effb;--tint-blue-ink: #2d5f9e;--tint-violet: #efeafb;--tint-violet-ink: #5b45a0;--tint-coral: #fbebe6;--tint-coral-ink: #a24a33;--tint-gold: #fbf1dc;--tint-gold-ink: #85600f;--tint-green: #e5f4ea;--tint-green-ink: #2f7348;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;--text-xs: .8125rem;--text-sm: .9375rem;--text-base: 1.0625rem;--text-md: 1.125rem;--text-lg: 1.375rem;--text-xl: 2.125rem;--text-2xl: 2.125rem;--text-tab: .625rem;--weight-regular: 400;--weight-medium: 500;--weight-bold: 600;--weight-heavy: 700;--leading-tight: 1.2;--leading: 1.45;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-10: 40px;--gutter: 16px;--radius-xs: 7px;--radius-sm: 10px;--radius-md: 12px;--radius-lg: 14px;--radius-xl: 20px;--radius-pill: 999px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--shadow-md: 0 2px 10px rgba(0, 0, 0, .07);--shadow-lg: 0 10px 32px rgba(0, 0, 0, .14);--tap: 48px;--tap-min: 44px;--button-height: 50px;--content-max: 1000px;--sidebar-width: 252px;--bottom-nav-height: 49px}@media screen and (prefers-color-scheme:dark){:root{--brand: #3fb5a6;--brand-hover: #5cc8ba;--brand-strong: #7fd8cc;--brand-soft: #12322e;--brand-softer: #0e2623;--focus-ring: #5fd0c2;--bg: #000000;--surface: #1c1c1e;--surface-muted: #242426;--surface-sunken: #2c2c2e;--surface-inverse: #2c2c2e;--surface-inverse-raised: #3a3a3c;--surface-inverse-active: #48484a;--border-inverse: #48484a;--bg-translucent: rgba(28, 28, 30, .78);--bar-opaque: #1c1c1e;--menu-bg: rgba(44, 44, 46, .82);--scrim: rgba(0, 0, 0, .6);--text: #f5f5f7;--text-muted: #aeaeb2;--text-subtle: #98989f;--text-on-brand: #04201c;--text-on-inverse: #f5f5f7;--text-on-inverse-muted: #aeaeb2;--border: rgba(255, 255, 255, .14);--border-strong: rgba(255, 255, 255, .26);--danger: #ff9a85;--danger-soft: #3a1c17;--danger-border: #6e3327;--warning: #f2c261;--warning-soft: #32270f;--warning-border: #5f4a1b;--success: #73d49c;--success-soft: #14301f;--tint-blue: #1b2b41;--tint-blue-ink: #a3c3f2;--tint-violet: #29233f;--tint-violet-ink: #c7b8f6;--tint-coral: #39231f;--tint-coral-ink: #f3ac97;--tint-gold: #372c14;--tint-gold-ink: #efc96d;--tint-green: #16301f;--tint-green-ink: #93d8a9;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);--shadow-md: 0 2px 10px rgba(0, 0, 0, .45);--shadow-lg: 0 10px 32px rgba(0, 0, 0, .6)}}@media(min-resolution:2dppx){:root{--hairline: .5px}}@media(prefers-reduced-transparency:reduce){:root{--bg-translucent: var(--bar-opaque);--menu-bg: var(--surface)}}@media(prefers-contrast:more){:root{--text-muted: #2c2c2e;--text-subtle: #3a3a3c;--border: rgba(0, 0, 0, .55);--border-strong: rgba(0, 0, 0, .75);--hairline: 1px;--bg-translucent: var(--bar-opaque);--menu-bg: var(--surface);--brand-strong: #0a4d46}}@media screen and (prefers-color-scheme:dark)and (prefers-contrast:more){:root{--text-muted: #d1d1d6;--text-subtle: #c7c7cc;--border: rgba(255, 255, 255, .6);--border-strong: rgba(255, 255, 255, .8);--brand-strong: #a6eae0}}:root{font-family:var(--font);color:var(--text);background:var(--bg);font-synthesis:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}html,body,#root{width:100%;overflow-x:hidden;overflow-x:clip}body{margin:0;min-width:320px;font-size:var(--text-base);line-height:var(--leading);overscroll-behavior-y:none}button,nav,.sidebar,.bottom-nav,.topbar{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.lucide{stroke-width:1.75}button,input,select,textarea{font:inherit}button,input,select{line-height:var(--leading-tight)}button{cursor:pointer}button svg{flex-shrink:0}input:where(:not([type=checkbox],[type=radio],[type=file],[type=range])),select,textarea{min-height:var(--tap);font-size:var(--text-base)}h1,h2,h3{font-family:var(--font);font-weight:var(--weight-bold);line-height:var(--leading-tight)}h1{font-size:var(--text-2xl);font-weight:var(--weight-heavy);letter-spacing:.37px}h2{letter-spacing:-.2px}h2{font-size:var(--text-lg)}h3{font-size:var(--text-md)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.app-shell{min-height:100vh;background:var(--bg)}main{min-width:0;margin-left:var(--sidebar-width)}.page{min-width:0;max-width:calc(var(--content-max) + 2 * var(--space-10));margin:0 auto;padding:var(--space-10) var(--space-10) 56px}.shell-banners{display:grid;gap:var(--space-3);margin:0 0 var(--space-5)}.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;display:flex;flex-direction:column;width:var(--sidebar-width);padding:var(--space-6) var(--space-3) var(--space-5);border-right:var(--hairline) solid var(--border);background:var(--bg-translucent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);color:var(--text)}.brand{display:flex;align-items:center;gap:var(--space-3);padding:0 var(--space-3);color:var(--text);font-size:var(--text-lg);font-weight:var(--weight-bold);letter-spacing:-.4px}.brand-mark{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:3px;width:32px;height:32px;border-radius:var(--radius-md);background:var(--brand-accent)}.brand-mark span{display:block;width:4px;height:12px;border-radius:var(--radius-pill);background:var(--brand-ink)}.brand-mark span:last-child{height:17px;background:var(--paper)}.sidebar-family{margin:var(--space-6) 0 var(--space-5);padding:0 var(--space-3);color:var(--text-muted);font-size:var(--text-sm);font-weight:var(--weight-medium);overflow-wrap:anywhere}.sidebar .brand+nav{margin-top:var(--space-8)}.sidebar nav{display:grid;gap:var(--space-1)}.sidebar nav button,.sidebar-bottom button{display:flex;align-items:center;gap:var(--space-3);min-height:var(--tap-min);padding:var(--space-2) var(--space-3);border:0;border-radius:8px;background:transparent;color:var(--text);font-size:var(--text-base);text-align:left;transition:background-color .12s ease}.sidebar nav button svg,.sidebar-bottom button svg{color:var(--brand-strong)}@media(hover:hover){.sidebar nav button:hover,.sidebar-bottom button:hover{background:var(--surface-sunken)}}.sidebar nav button:active,.sidebar-bottom button:active{background:var(--surface-sunken)}.sidebar nav button.active{background:var(--brand-soft);color:var(--brand-strong);font-weight:var(--weight-bold)}.sidebar-bottom{display:grid;gap:var(--space-1);margin-top:auto}.nav-icon{position:relative;display:inline-flex;flex-shrink:0}.nav-badge{position:absolute;top:-6px;right:-10px;min-width:20px;height:20px;padding:0 var(--space-1);border:2px solid var(--bg);border-radius:var(--radius-pill);background:var(--danger);color:var(--text-on-brand);font-size:var(--text-xs);font-weight:var(--weight-bold);line-height:16px;text-align:center}.sidebar .nav-badge{border-color:var(--bg)}.topbar{display:none}.topbar-brand{display:flex;align-items:center;gap:var(--space-2);min-width:0;color:var(--text);font-size:var(--text-md);font-weight:var(--weight-bold);line-height:var(--leading-tight)}.topbar-brand .brand-mark{width:28px;height:28px}.bottom-nav{display:none}.file-mark{display:grid;flex-shrink:0;place-items:center;width:var(--tap-min);height:var(--tap-min);border-radius:var(--radius-sm)}.file-mark.blue{background:var(--tint-blue);color:var(--tint-blue-ink)}.file-mark.violet{background:var(--tint-violet);color:var(--tint-violet-ink)}.file-mark.coral{background:var(--tint-coral);color:var(--tint-coral-ink)}.file-mark.gold{background:var(--tint-gold);color:var(--tint-gold-ink)}.file-mark.green{background:var(--tint-green);color:var(--tint-green-ink)}.settings-back{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--tap-min);margin:0 0 var(--space-2) calc(-1 * var(--space-2));padding:0 var(--space-2);border:0;border-radius:var(--radius-sm);background:transparent;color:var(--brand-strong);font-size:var(--text-base);font-weight:var(--weight-medium)}@media(hover:hover){.settings-back:hover{background:var(--brand-softer)}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);border:0;white-space:nowrap}.ui-list-row__leading .settings-icon,.ui-list-row__leading .auth-options__icon,.ui-list-row__leading .offline-status-icon{width:29px;height:29px;border-radius:var(--radius-xs)}.ui-list-row__leading .settings-icon svg,.ui-list-row__leading .auth-options__icon svg,.ui-list-row__leading .offline-status-icon svg{width:18px;height:18px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.ui-spinner{animation-duration:2.4s!important;animation-iteration-count:infinite!important}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){.sidebar{background:var(--bar-opaque)}}@media(forced-colors:active){.sidebar,.topbar,.bottom-nav{border-color:CanvasText;background:Canvas}.sidebar nav button.active,.bottom-nav button.active{outline:2px solid Highlight;outline-offset:-2px}}@media(max-width:899.98px){.sidebar{display:none}main{margin-left:0}.page{padding:var(--space-6) max(var(--space-6),env(safe-area-inset-right)) calc(var(--bottom-nav-height) + var(--space-6) + env(safe-area-inset-bottom)) max(var(--space-6),env(safe-area-inset-left))}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:52px;padding:max(var(--space-1),env(safe-area-inset-top)) max(var(--space-2),env(safe-area-inset-right)) var(--space-1) max(var(--gutter),env(safe-area-inset-left));border-bottom:var(--hairline) solid var(--border);background:var(--bg-translucent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.bottom-nav{position:fixed;inset-inline:0;bottom:0;z-index:25;display:flex;justify-content:space-around;height:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);border-top:var(--hairline) solid var(--border);background:var(--bg-translucent);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.bottom-nav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:var(--tap-min);padding:var(--space-1) 2px;border:0;background:transparent;color:var(--text-subtle);font-size:var(--text-tab);font-weight:var(--weight-medium);letter-spacing:.1px;line-height:1.2;-webkit-tap-highlight-color:transparent}.bottom-nav button>span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bottom-nav .nav-icon{transition:transform .12s ease}.bottom-nav button:active .nav-icon{transform:scale(.92)}.bottom-nav button.active{color:var(--brand-strong)}.bottom-nav button[aria-current] .lucide{stroke-width:2.25}.bottom-nav button:focus-visible{outline-offset:-3px}.bottom-nav .nav-badge{border-color:transparent}}@media(max-width:620px){h1{letter-spacing:.37px}.page{padding:var(--space-5) max(var(--gutter),env(safe-area-inset-right)) calc(var(--bottom-nav-height) + var(--space-6) + env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left))}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){@media(max-width:899.98px){.topbar,.bottom-nav{background:var(--bar-opaque)}}}
