.shell{min-height:100dvh;padding-bottom:calc(var(--tabbar-height) + env(safe-area-inset-bottom))}.tabbar{height:calc(var(--tabbar-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);grid-template-columns:1fr 1fr 1fr;align-items:center;display:grid;position:fixed;inset:auto 0 0}.tabbar__tab{color:var(--text-muted);flex-direction:column;align-items:center;gap:2px;font-size:.7rem;text-decoration:none;display:flex}.tabbar__tab.active{color:var(--accent)}.tabbar__icon{font-size:1.4rem;line-height:1}.tabbar__plus{background:var(--accent);width:48px;height:48px;color:var(--accent-contrast);border-radius:50%;place-items:center;margin-top:-20px;font-size:2rem;line-height:1;display:grid;box-shadow:0 2px 8px #00000040}.barcode-scanner{z-index:20;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);color:#fff;background:#000;flex-direction:column;display:flex;position:fixed;inset:0}.barcode-scanner__view{flex:1;place-items:center;min-height:0;display:grid;position:relative;overflow:hidden}.barcode-scanner__view video{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.barcode-scanner__frame{aspect-ratio:1;border:2px solid #fff;border-radius:16px;width:min(80vw,60vh);position:relative;box-shadow:0 0 0 100vmax #00000073}.barcode-scanner__status{text-align:center;text-shadow:0 1px 3px #000;margin:0;position:absolute;inset:auto 1rem 1rem}.barcode-scanner__manual{flex-direction:column;gap:.35rem;padding:.75rem 1rem 0;display:flex}.barcode-scanner__manual label{color:#cfc9cb;font-size:.8rem}.barcode-scanner__row{gap:.5rem;display:flex}.barcode-scanner__row .input{flex:1;min-width:0}.barcode-scanner__row .button{margin-top:0}.barcode-scanner__manual .field-error{color:#ff9c8f}.barcode-scanner__close{min-height:56px;font:inherit;color:#fff;background:0 0;border:none;font-weight:600}.journal-filters{flex-wrap:wrap;align-items:center;gap:.3rem .75rem;margin:0 0 .5rem;display:flex}.journal-filters__group{align-items:center;gap:.25rem;display:flex}.journal-filters__label{letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);margin-right:.1rem;font-size:.7rem}.journal-filters__option{min-height:34px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.1rem .65rem;font-size:.85rem}.journal-filters__option[aria-pressed=true]{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent)}.journal-filters__sort{align-items:center;gap:.3rem;margin-left:auto;font-size:.85rem;display:flex}.journal-filters__sort select{min-height:34px;font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.1rem .4rem;font-size:.85rem}.journal-chips{flex-wrap:wrap;align-items:center;gap:.3rem;margin:0 0 .75rem;display:flex}.journal-chip{min-height:30px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:999px;align-items:center;gap:.35rem;padding:0 .5rem;font-size:.8rem;display:inline-flex}.journal-chip span{color:var(--text-muted)}.journal-chips__clear{min-height:30px;font:inherit;color:var(--accent);background:0 0;border:none;padding:0 .35rem;font-size:.8rem;text-decoration:underline}.journal-count{font-variant-numeric:tabular-nums;color:var(--text-muted);margin:.15rem 0 .6rem;font-size:.8rem}.journal-sheet{z-index:3;max-height:70vh;padding:.75rem 1rem calc(env(safe-area-inset-bottom) + .75rem);background:var(--bg);border-top:1px solid var(--border);border-radius:16px 16px 0 0;flex-direction:column;gap:.5rem;display:flex;position:fixed;inset:auto 0 0;box-shadow:0 -2px 12px #0003}.journal-sheet__header{justify-content:space-between;align-items:center;display:flex}.journal-sheet__header h2{margin:0;font-size:1rem}.journal-sheet__header button{min-width:44px;min-height:44px;font:inherit;color:var(--text-muted);background:0 0;border:none}.journal-sheet__options{flex-direction:column;gap:.15rem;display:flex;overflow-y:auto}.journal-sheet__option{min-height:44px;font:inherit;text-align:left;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;justify-content:space-between;align-items:center;gap:.75rem;padding:0 .6rem;display:flex}.journal-sheet__option[aria-pressed=true]{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent);font-weight:600}.journal-sheet__option .muted[aria-hidden=true]{font-variant-numeric:tabular-nums}.stats-card{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:14px;gap:.45rem;margin-bottom:1rem;padding:.85rem .9rem;text-decoration:none;display:grid}.stats-card__head{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.stats-card__grapes{flex-wrap:wrap;gap:.35rem .75rem;margin:0;padding:0;font-size:.95rem;list-style:none;display:flex}.stats-card__foot{color:var(--text-muted);font-size:.85rem}.stats-screen{padding-bottom:calc(env(safe-area-inset-bottom) + 2rem)}.stats-headline{flex-wrap:wrap;align-items:baseline;gap:.25rem .6rem;margin:0 0 1.25rem;display:flex}.stats-panel{margin-bottom:1.75rem}.stats-panel h2{margin:0 0 .5rem;font-size:1.05rem}.stats-bars,.stats-list{margin:0;padding:0;list-style:none}.stats-bar{grid-template-columns:minmax(5rem,40%) 1fr auto;align-items:center;gap:.5rem;min-height:1.9rem;display:grid}.stats-bar__link{color:inherit;grid-column:1/-1;grid-template-columns:minmax(5rem,40%) 1fr auto;align-items:center;gap:.5rem;min-height:1.9rem;text-decoration:none;display:grid}.stats-bar__link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.stats-bar__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.stats-bar__track{background:var(--surface);border-radius:999px;height:.55rem}.stats-bar__fill{background:var(--accent);border-radius:999px;height:100%;display:block}.stats-bar__count{font-variant-numeric:tabular-nums;color:var(--text-muted);font-size:.85rem}.stats-list li{align-items:baseline;gap:.4rem;padding:.2rem 0;display:flex}.stats-rhythm{align-items:flex-end;gap:.25rem;height:6rem;margin:0;padding:0;list-style:none;display:flex}.stats-rhythm__month{text-align:center;flex-direction:column;flex:1;justify-content:flex-end;gap:.2rem;height:100%;display:flex}.stats-rhythm__bar{background:var(--accent);border-radius:4px 4px 0 0;min-height:0;display:block}.stats-rhythm__label{color:var(--text-muted);font-size:.65rem}.stats-note{margin:.5rem 0 0;font-size:.9rem}.journal-month h2,.in-progress h2{letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);margin:1.2rem 0 .4rem;font-size:.8rem}.journal-month ul{margin:0;padding:0;list-style:none}.journal-row{border-bottom:1px solid var(--border);align-items:center;gap:.75rem;padding:.6rem 0;display:flex}.journal-row__thumb{object-fit:cover;border:1px solid var(--border);border-radius:8px;flex:none;width:48px;height:64px}.journal-row__thumb--empty{background:var(--surface);place-items:center;font-size:1.3rem;display:grid}.journal-row__text{flex-direction:column;flex:1;min-width:0;display:flex}.journal-row__text strong,.journal-row__text .muted{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.journal-row__text .muted{font-size:.85rem}.journal-row__meta{flex-direction:column;align-items:flex-end;gap:.2rem;font-size:.8rem;display:flex}.level-badge{background:var(--surface);border-radius:6px;padding:.05rem .4rem;font-size:.7rem;font-weight:700}.buy-again-mark{color:var(--accent);margin-right:.3rem;font-weight:700}.colour-dot{vertical-align:middle;border:1px solid #0000001a;border-radius:50%;width:9px;height:9px;margin-right:.3rem;display:inline-block}.journal-search{z-index:1;padding:calc(env(safe-area-inset-top) + .5rem) 0 .5rem;margin-top:calc(-1 * env(safe-area-inset-top));background:var(--bg);align-items:center;gap:.25rem;display:flex;position:sticky;top:0}.journal-search .input{appearance:none;flex:1}.journal-search button{min-width:44px;min-height:44px;font:inherit;color:var(--text-muted);background:0 0;border:none}.journal-search button svg{margin:0 auto;display:block}.journal-filter,.journal-unknown{font-variant-numeric:tabular-nums;background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:.75rem;margin:0 0 .75rem;padding:.35rem .35rem .35rem .9rem;display:flex}.journal-filter>span,.journal-unknown>p{flex:1;min-width:0;margin:0}.journal-unknown>p{flex-direction:column;font-size:.85rem;display:flex}.journal-unknown strong{font-size:1rem}.journal-unknown{flex-wrap:wrap;row-gap:.25rem}.journal-unknown .button{text-align:center;flex-basis:100%;margin:0 .55rem .55rem 0}.journal-filter button,.journal-unknown button{min-width:44px;min-height:44px;font:inherit;color:var(--text-muted);background:0 0;border:none}.journal-search .input::-webkit-search-cancel-button{-webkit-appearance:none;display:none}.journal-row__link{min-width:0;color:inherit;flex:1;align-items:center;gap:.75rem;text-decoration:none;display:flex}.tasting-detail__nav{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.tasting-detail__nav a:first-child{text-decoration:none}.button--small{margin:0;padding:.45rem 1rem;font-size:.9rem}.tasting-detail__photo{object-fit:contain;background:var(--surface);border-radius:14px;width:100%;max-height:60vh;margin-bottom:1rem;display:block}.tasting-detail h1{margin-bottom:.25rem}.tasting-detail__wine{margin:0 0 .25rem}.sat-section h2{margin:1.4rem 0 .4rem;font-size:1.05rem}.sat-section dl{margin:0}.sat-line{border-bottom:1px solid var(--border);justify-content:space-between;gap:1rem;padding:.45rem 0;display:flex}.sat-line dt{color:var(--text-muted)}.sat-line dd{text-align:right;margin:0}.sat-line--block{flex-direction:column;gap:.25rem}.sat-line--block dd{text-align:left}.sat-line__faulty{color:#b03a2e;font-weight:600}.in-progress ul{margin:0;padding:0;list-style:none}.in-progress a{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:12px;grid-template-columns:auto 1fr;gap:.1rem .6rem;padding:.75rem;text-decoration:none;display:grid}.in-progress .muted{grid-column:2;font-size:.85rem}.in-progress__title{font-weight:600}.toast{inset:auto 1rem calc(var(--tabbar-height) + env(safe-area-inset-bottom) + .75rem);z-index:2;max-width:32rem;color:var(--accent-contrast);background:var(--text);border-radius:10px;justify-content:space-between;align-items:center;margin:0 auto;padding:.6rem .9rem;display:flex;position:fixed;box-shadow:0 2px 10px #00000040}.toast__action{font:inherit;color:var(--bg);background:0 0;border:none;font-weight:700}.deleted-list{margin:0;padding:0;list-style:none}.deleted-row__actions{gap:1.25rem;display:flex}.deleted-row__danger{color:#b03a2e}.back-link{margin-bottom:.5rem;text-decoration:none;display:inline-block}.swipe-row{touch-action:pan-y;position:relative;overflow:hidden}.in-progress .swipe-row{border-radius:12px;margin-bottom:.5rem}.swipe-row__delete{font:inherit;color:#fff;background:#b03a2e;border:none;font-weight:600;position:absolute;inset:0 0 0 auto}.swipe-row--closed .swipe-row__delete{visibility:hidden}.swipe-row__content{background:var(--bg);-webkit-user-select:none;user-select:none;transition:transform .2s;position:relative}.swipe-row__content--dragging{transition:none}.personal-note{white-space:pre-wrap;overflow-wrap:anywhere}.journal-show-more{margin:.75rem auto 0;display:block}.level-choice{flex-direction:column;gap:.75rem;margin-bottom:1.25rem;display:flex}.level-card{font:inherit;text-align:left;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:.2rem;padding:1rem;display:flex}.level-card[aria-checked=true]{border:2px solid var(--accent)}.level-card span{color:var(--text-muted);font-size:.85rem}.flow{flex-direction:column;height:100dvh;display:flex}.flow-header{padding:calc(env(safe-area-inset-top) + .75rem) 1rem .6rem;border-bottom:1px solid var(--border)}.flow-header h1{margin:.25rem 0 .6rem;font-size:1.2rem}.flow-header__row{color:var(--text-muted);justify-content:space-between;font-size:.85rem;display:flex}.flow-header__back{text-decoration:none}.flow-header__wine{margin:.3rem 0 .6rem;font-weight:600}.stepbar{grid-template-columns:repeat(6,1fr);gap:4px;display:grid}.stepbar__step{font:inherit;color:var(--text-muted);background:var(--surface);border:none;border-radius:6px;padding:.45rem 0;font-size:.68rem}.stepbar__step--done{color:var(--accent);background:color-mix(in srgb, var(--accent) 14%, var(--bg))}.stepbar__step[aria-current=step]{color:var(--accent-contrast);background:var(--accent);font-weight:600}.flow-body{flex:1;padding:1rem;overflow-y:auto}.flow-body>h1{margin-top:0}.flow-footer{padding:.6rem 1rem calc(env(safe-area-inset-bottom) + .75rem);border-top:1px solid var(--border);gap:.5rem;display:flex}.flow-footer .button{flex:1;margin:0}.sat-field{margin-bottom:1.1rem}.sat-field__label{color:var(--text-muted);margin-bottom:.4rem;font-size:.85rem}.options{flex-wrap:wrap;gap:.4rem;margin-bottom:.4rem;display:flex}.option{min-height:42px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:.5rem .75rem;font-size:.95rem}.option--chip{border-radius:999px;min-height:36px}.option--faulty{color:#b03a2e;border-style:dashed}.option[aria-pressed=true]{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent);border-style:solid}.descriptor-summary{width:100%;min-height:48px;font:inherit;text-align:left;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:10px;justify-content:space-between;gap:.5rem;padding:.7rem .8rem;display:flex}.picker{display:contents}.picker__tabs{gap:.4rem;display:flex}.picker__tabs button{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:999px;flex:1;padding:.5rem;font-size:.85rem}.picker__tabs button[aria-selected=true]{color:var(--bg);background:var(--text)}.picker__picked{margin-top:0;font-size:.85rem}.cluster{border:1px solid var(--border);border-radius:12px;margin-bottom:.6rem;padding:.7rem}.cluster h2{margin:0 0 .5rem;font-size:.95rem}.verdict{border-top:1px solid var(--border);padding-top:1rem}.notice{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-top:1rem;padding:.75rem;font-size:.9rem}.notice ul{margin:.4rem 0 0;padding-left:1.2rem}.notice--blocking{border-color:#b03a2e}.label-photo__empty{flex-direction:column;align-items:flex-start;gap:.4rem;display:flex}.label-photo__add,.label-photo__placeholder{width:100%;min-height:96px;font:inherit;color:var(--accent);background:var(--surface);border:1.5px dashed var(--border);border-radius:12px;font-weight:600}.label-photo__placeholder{color:var(--text-muted);place-items:center;display:grid}.label-photo__thumb{width:100%;font:inherit;color:var(--text);text-align:left;background:0 0;border:none;align-items:center;gap:.8rem;padding:0;display:flex}.label-photo__thumb img{object-fit:cover;border:1px solid var(--border);border-radius:10px;width:84px;height:112px}.label-photo__thumb span{flex-direction:column;display:flex}.label-photo__thumb small{color:var(--text-muted)}.photo-viewer{z-index:10;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);background:#000;flex-direction:column;display:flex;position:fixed;inset:0}.photo-viewer img{object-fit:contain;flex:1;width:100%;min-height:0}.photo-viewer__actions{grid-template-columns:repeat(3,1fr);display:grid}.photo-viewer__actions button{min-height:56px;font:inherit;color:#fff;background:0 0;border:none;font-weight:600}.wine-form{flex-direction:column;gap:.9rem;display:flex}.field{flex-direction:column;gap:.25rem;display:flex;position:relative}.field label{color:var(--text-muted);font-size:.8rem}.suggestions{border:1px solid var(--border);background:var(--bg);border-radius:10px;margin:0;padding:0;list-style:none;overflow:hidden}.suggestions li{border-top:1px solid var(--border);cursor:pointer;padding:.8rem}.suggestion-alias{color:var(--text-muted)}.suggestions li:first-child{border-top:none}.vintage-row{gap:.5rem;display:flex}.nv-toggle{min-width:56px;font:inherit;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);border-radius:10px;font-weight:600}.nv-toggle[aria-pressed=true]{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent)}.chips{flex-wrap:wrap;gap:.4rem;margin:-.4rem 0 0;padding:0;list-style:none;display:flex}.chip{background:var(--surface);border:1px solid var(--border);border-radius:999px;align-items:center;gap:.3rem;padding:.35rem .4rem .35rem .75rem;display:inline-flex}.chip button{min-width:28px;min-height:28px;color:var(--text-muted);font:inherit;background:0 0;border:none}.tasted-before{background:color-mix(in srgb, var(--accent) 8%, var(--bg));border:1px solid color-mix(in srgb, var(--accent) 30%, var(--bg));border-radius:12px;padding:.8rem}.tasted-before strong{color:var(--accent)}.tasted-before ul{margin:.4rem 0 0;padding:0;list-style:none}.tasted-before li{margin-top:.3rem}.vintage--same{color:var(--accent-contrast);background:var(--accent);border-radius:6px;padding:.1rem .4rem}.tasted-before a{color:var(--text);padding:.2rem 0;display:inline-block}.barcode-scan{min-height:44px;font:inherit;color:var(--accent);background:var(--surface);border:1px solid var(--border);border-radius:999px;align-self:flex-start;padding:0 1rem;font-weight:600}.barcode-line{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:0 1.25rem;display:flex}.barcode-line>span{flex-basis:100%}.field-note{color:var(--accent);font-size:.72rem;position:absolute;top:0;right:0}.wine-form>.field-note{margin-top:-.5rem;position:static}.label-reading{color:var(--text-muted);margin:-.4rem 0 0;font-size:.85rem}.settings-list{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin:0;padding:0;list-style:none}.settings-list a{color:var(--text);justify-content:space-between;padding:.9rem 1rem;text-decoration:none;display:flex}.settings-section{margin-bottom:1.5rem}.settings-section h2{margin:0 0 .25rem;font-size:1.05rem}.settings-section .button{margin-top:.5rem}.backup-status{text-align:center;margin:.5rem 0 0;font-size:.9rem}.backup-status--overdue{color:#b03a2e;font-weight:600}.import-review{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-top:.75rem;padding:.8rem}.import-review p{margin:0 0 .6rem}.import-review__actions{gap:.5rem;display:flex}.import-review__actions .button{flex:1;margin:0}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--accent:#7b1e3a;--accent-contrast:#fff;--bg:#fff;--surface:#f6f3f4;--text:#1d1a1b;--text-muted:#6b6366;--border:#e4dde0;--danger:#b03a2e;--danger-tint:#f9e9e7;--tabbar-height:64px;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,system-ui,sans-serif;font-size:17px;line-height:1.4}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--accent:#c9506f;--accent-contrast:#fff;--bg:#141213;--surface:#1f1c1d;--text:#f2eeef;--text-muted:#a69ea1;--border:#332e30;--danger:#e05a4d;--danger-tint:#e05a4d24}}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}h1{margin:0 0 1rem;font-size:1.75rem}a{color:var(--accent)}.screen{padding:calc(env(safe-area-inset-top) + 1rem) 1rem 1rem}.empty-state{text-align:center;color:var(--text-muted);margin-top:25vh}.error-state{background:var(--danger-tint);border:1px solid color-mix(in srgb, var(--danger) 30%, var(--border));border-radius:12px;align-items:flex-start;gap:.6rem;margin-top:.75rem;padding:.8rem .9rem;display:flex}.error-state__icon{color:var(--danger);flex:none;margin-top:.15rem}.error-state__body p{margin:0 0 .35rem}.error-state__body .button{margin-top:.35rem}.button{background:var(--accent);color:var(--accent-contrast);border-radius:999px;margin-top:1rem;padding:.75rem 1.5rem;font-weight:600;text-decoration:none;display:inline-block}.link-button{font:inherit;color:var(--accent);background:0 0;border:none;padding:.4rem 0;font-size:.9rem}.input{width:100%;min-height:48px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:.7rem .8rem}.input:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);outline:none}.input[aria-invalid=true]{border-color:#c0392b}.input:disabled{background:var(--surface)}.field-error{color:#c0392b;margin:0;font-size:.85rem}.button--danger{color:#b03a2e;background:var(--surface);border:1px solid var(--border);margin-top:2rem}.button{font:inherit;cursor:pointer;border:none}.button:disabled{opacity:.45}.button--block{text-align:center;width:100%;display:block}.button--secondary{color:var(--text);background:var(--surface);border:1px solid var(--border)}.muted{color:var(--text-muted)}.badge{color:var(--accent);border:1px solid var(--accent);border-radius:6px;align-self:start;padding:.1rem .45rem;font-size:.7rem;font-weight:600}.sheet-backdrop{z-index:20;background:#0006;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;padding:1.25rem 1rem calc(env(safe-area-inset-bottom) + 1rem);background:var(--bg);border-radius:20px 20px 0 0}.sheet h2{margin:0 0 .5rem;font-size:1.2rem}.install-steps{padding-left:1.2rem;line-height:1.8}.install-steps__icon{color:#0a84ff;background:var(--surface);border-radius:6px;place-items:center;width:1.6rem;height:1.6rem;display:inline-grid}
