*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.45}h1,h2,p{margin:0}button,input{font:inherit;color:inherit}.app{max-width:640px;min-height:100dvh;margin:0 auto}.app--signed-in{padding-bottom:calc(var(--tabbar-height) + env(safe-area-inset-bottom))}.account-button{cursor:pointer;background:0 0;border:0;border-radius:50%;place-items:center;width:44px;height:44px;margin-right:-5px;padding:0;display:grid}.sheet{z-index:30;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet__backdrop{background:#00000073;position:absolute;inset:0}.sheet__panel{width:100%;max-width:640px;padding:10px 16px calc(18px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--bg);border-radius:20px 20px 0 0;gap:12px;display:grid;position:relative}.sheet__handle{background:var(--border);border-radius:999px;justify-self:center;width:40px;height:4px}.sheet__user{overflow-wrap:anywhere;align-items:center;gap:12px;padding:4px 2px;display:flex}.sheet__user small{color:var(--muted);font-size:.85rem;display:block}.avatar img{object-fit:cover;width:100%;height:100%}.sheet__group{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow:hidden}.sheet__item{width:100%;min-height:54px;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:14px;padding:0 16px;text-decoration:none;display:flex}.sheet__item+.sheet__item{border-top:1px solid var(--border)}.sheet__item svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;color:var(--muted);flex:none}.sheet__item.router-link-exact-active{color:var(--accent);font-weight:600}.sheet__item.router-link-exact-active svg,.sheet__item--danger svg{color:inherit}.sheet__item--danger{color:var(--danger)}.sheet-enter-active,.sheet-leave-active{transition:opacity .2s}.sheet-enter-active .sheet__panel,.sheet-leave-active .sheet__panel{transition:translate .22s ease-out}.sheet-enter-from,.sheet-leave-to{opacity:0}.sheet-enter-from .sheet__panel,.sheet-leave-to .sheet__panel{translate:0 100%}@media (prefers-reduced-motion:reduce){.sheet-enter-active .sheet__panel,.sheet-leave-active .sheet__panel{transition:none}}.tabbar__item.router-link-exact-active{color:var(--accent);font-weight:600}.login .button{margin-top:12px}.account{gap:8px;max-width:340px;display:grid}.account .button{margin-top:12px}.account__form{gap:8px;margin-top:16px;display:grid}.profile-picture{align-items:center;gap:16px;display:flex}.profile-picture__actions{gap:8px;display:grid}.profile-picture .button{margin-top:0}.account__note{color:var(--muted);font-size:.88rem}.account__success{color:var(--accent);padding:8px 0;font-weight:600}.setting{gap:8px;padding:12px 0;display:grid}.setting small,.switch small{color:var(--muted);font-size:.85rem;display:block}.switch input{appearance:none;background:color-mix(in srgb, var(--muted) 60%, var(--bg));cursor:pointer;border-radius:999px;flex:none;width:52px;height:32px;margin:0;transition:background .2s;position:relative}.switch input:after{content:"";background:#fff;border-radius:50%;width:26px;height:26px;transition:translate .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch input:checked{background:var(--accent)}.switch input:checked:after{translate:20px}:root{--bg:#fff;--surface:#f5f6f7;--segment-active:#fff;--text:#1a1c1e;--muted:#59616b;--border:#dde1e5;--accent:#1d6b58;--accent-text:#fff;--accent-soft:#dcefe9;--danger:#b3261e;--star:#b7791f;--shadow:#00000024;--radius:14px;--tabbar-height:62px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#17150f;--surface:#211e17;--segment-active:#211e17;--text:#efe9dc;--muted:#a59d8b;--border:#37322a;--accent:#7fbfa8;--accent-text:#10201a;--accent-soft:#263a33;--danger:#ef8f7f;--star:#f0c04a;--shadow:#00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme]){--bg:#17150f;--surface:#211e17;--segment-active:#211e17;--text:#efe9dc;--muted:#a59d8b;--border:#37322a;--accent:#7fbfa8;--accent-text:#10201a;--accent-soft:#263a33;--danger:#ef8f7f;--star:#f0c04a;--shadow:#00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}.topbar{padding:calc(14px + env(safe-area-inset-top)) 16px 6px;justify-content:space-between;align-items:center;gap:12px;display:flex;position:relative}.topbar__title{font-family:Georgia,Times New Roman,serif;font-size:1.5rem;font-weight:700}.avatar{background:var(--accent-soft);color:var(--accent);text-transform:uppercase;border-radius:50%;flex:none;place-items:center;font-family:Georgia,Times New Roman,serif;font-weight:700;line-height:1;display:grid;overflow:hidden}.content{padding:10px 16px 24px}.tabbar{z-index:10;padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);justify-content:center;display:flex;position:fixed;inset:auto 0 0}.tabbar__item{max-width:160px;height:var(--tabbar-height);color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;font-size:.75rem;text-decoration:none;display:flex}.tabbar__item svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.button{border:1px solid var(--accent);background:var(--accent);min-height:46px;color:var(--accent-text);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;padding:0 18px;font-weight:600;text-decoration:none;display:inline-flex}.button--secondary{background:var(--accent-soft);border-color:var(--accent-soft);color:var(--text)}.button--ghost{border-color:var(--border);color:var(--text);background:0 0}.button--small{min-height:38px;padding:0 14px;font-size:.9rem}.button:disabled{opacity:.55;cursor:default}.link-button{color:var(--accent);text-align:left;text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:8px 0;font-size:.9rem;text-decoration:underline}.link-button--danger{color:var(--danger)}input[type=text],input[type=search],input[type=password],input[type=number]{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-height:46px;padding:0 12px}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}label{color:var(--muted);font-size:.9rem}.hint{color:var(--muted);text-align:center;padding:18px 0}.error{color:var(--danger);padding:8px 0}.empty{color:var(--muted);justify-items:center;gap:16px;padding:48px 0;display:grid}.lists{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:8px;margin-bottom:14px;display:grid}.lists__item{border:1px solid var(--border);background:var(--surface);color:var(--muted);font:inherit;cursor:pointer;border-radius:12px;justify-items:center;gap:1px;padding:9px 2px 8px;display:grid}.lists__count{color:var(--text);font-variant-numeric:tabular-nums;font-size:1.2rem;font-weight:700;line-height:1.15}.lists__label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:.74rem;overflow:hidden}.lists__item[aria-selected=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}.lists__item[aria-selected=true] .lists__label{font-weight:600}.segments{background:var(--border);border-radius:999px;gap:4px;margin-bottom:14px;padding:4px;display:flex;overflow-x:auto}.segments__item{min-height:38px;color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:999px;flex:1;padding:0 6px;font-size:.9rem}.segments__item[aria-selected=true]{background:var(--segment-active);color:var(--text);font-weight:600}.login{gap:8px;max-width:340px;margin:0 auto;padding-top:18vh;display:grid}.login h1{text-align:center;margin-bottom:20px;font-family:Georgia,Times New Roman,serif;font-size:2.2rem}.account h1{margin-bottom:8px;font-family:Georgia,Times New Roman,serif;font-size:1.3rem}.setting label{color:var(--text);font-size:1rem}select{border:1px solid var(--border);background:var(--surface);min-height:46px;color:var(--text);font:inherit;border-radius:10px;padding:0 12px}.switch{color:var(--text);cursor:pointer;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;font-size:1rem;display:flex}.cover{aspect-ratio:2/3;background:var(--accent-soft);box-shadow:0 2px 8px var(--shadow);border-radius:6px;overflow:hidden}.cover img{object-fit:cover;width:100%;height:100%;display:block}.cover__placeholder{height:100%;color:var(--accent);text-transform:uppercase;place-items:center;font-family:Georgia,Times New Roman,serif;font-size:2rem;display:grid}.book-list{gap:12px;display:grid}.book{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);grid-template-columns:84px minmax(0,1fr);align-items:start;gap:14px;padding:14px;display:grid}.book__title{overflow-wrap:anywhere;font-family:Georgia,Times New Roman,serif;font-size:1.08rem;line-height:1.25}.book__meta{color:var(--muted);margin-top:2px;font-size:.88rem}.book__actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.book__menu{justify-items:start;margin-top:6px;display:grid}.rating{grid-column:1/-1;gap:2px;display:grid}.rating__stars{grid-template-columns:repeat(10,minmax(0,1fr));max-width:400px;display:grid}.rating__star{height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.rating__star svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linejoin:round;width:26px;height:26px}.rating__star--on{color:var(--star)}.rating__star--on svg{fill:currentColor}.rating__label{color:var(--muted);font-size:.85rem}.progress{background:var(--border);border-radius:999px;height:8px;margin-top:12px;overflow:hidden}.progress__bar{background:var(--accent);border-radius:999px;height:100%;transition:width .3s}.page-form{flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;display:flex}.page-form input{font-variant-numeric:tabular-nums;width:84px;min-height:38px}.page-form .page-form__date,.page-form input[type=date]{border:1px solid var(--border);background:var(--surface);width:auto;min-height:38px;color:var(--text);font:inherit;border-radius:10px;padding:0 10px}.page-form__break{flex-basis:100%;height:0}.page-form__hint{flex-basis:100%}.page-form__total{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.88rem}.back{border:1px solid var(--border);min-height:38px;color:var(--text);font:inherit;cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:2px;margin-bottom:6px;padding:0 14px 0 8px;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-flex}.back svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.details{gap:22px;margin-top:8px;display:grid}.details__head{grid-template-columns:116px minmax(0,1fr);align-items:start;gap:16px;display:grid}.details__title{overflow-wrap:anywhere;font-family:Georgia,Times New Roman,serif;font-size:1.3rem;line-height:1.25}.details__status{color:var(--accent);margin-top:10px;font-size:.9rem;font-weight:600;display:block}.details__action{margin-top:12px}.details__heading{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;margin-bottom:6px;font-size:.8rem;font-weight:600}.details__description{white-space:pre-line;max-width:65ch}.details__facts{grid-template-columns:max-content minmax(0,1fr);gap:6px 18px;margin:0;display:grid}.details__facts dt{color:var(--muted)}.details__facts dd{overflow-wrap:anywhere;margin:0}.details__subjects{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.details__subjects li{background:var(--accent-soft);border-radius:999px;padding:4px 10px;font-size:.85rem}.book__title a,.suggestion__link{color:inherit;text-decoration:none}.suggestion__link{flex-direction:column;gap:4px;display:flex}.notes{gap:12px;margin:0 0 16px;padding:0;list-style:none;display:grid}.note__text{white-space:pre-line;overflow-wrap:anywhere;margin:0}.note--quote .note__text{border-left:3px solid var(--accent);padding-left:12px;font-family:Georgia,Times New Roman,serif;font-style:italic}.note__meta{color:var(--muted);align-items:center;gap:12px;font-size:.85rem;display:flex}.note-form{gap:8px;max-width:480px;display:grid}.note-form__kind{max-width:220px;margin-bottom:0}textarea{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);font:inherit;resize:vertical;border-radius:10px;padding:10px 12px}.stats{gap:26px;display:grid}.stats__header{justify-content:space-between;align-items:center;gap:12px;display:flex}.stats__header h1{font-family:Georgia,Times New Roman,serif;font-size:1.3rem}.stats__header select{min-height:38px}.stats__year{color:var(--muted);font-variant-numeric:tabular-nums}.stats__tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;display:grid}.stats__tiles div{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:14px 12px}.stats__tiles dd{font-variant-numeric:tabular-nums;margin:0;font-size:1.7rem;font-weight:700;line-height:1.1}.stats__tiles dt{color:var(--muted);margin-top:4px;font-size:.8rem}.goal{justify-items:start;gap:6px;display:grid}.goal .progress{width:100%;margin-top:2px}.goal__text span{color:var(--muted)}.chart{border-bottom:1px solid var(--border);grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;height:180px;display:grid}.chart__column{color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;grid-template-rows:20px minmax(0,1fr);place-items:end center;padding:0;text-decoration:none;display:grid;position:relative}.chart__value{font-variant-numeric:tabular-nums;font-size:.8rem}.chart__bar{background:var(--accent);opacity:.85;border-radius:4px 4px 0 0;width:min(22px,70%);min-height:0}.chart__column:hover .chart__bar{opacity:1}.chart__column:active{background:var(--surface)}.chart__label{color:var(--muted);font-size:.72rem;position:absolute;top:calc(100% + 6px)}.chart__detail{color:var(--muted);margin-top:28px;font-size:.88rem}.stats__tiles small{color:var(--muted);font-size:.8rem;font-weight:400}.chart-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.chart-header .details__heading{margin-bottom:0}.chart-header__toggle{flex:none;width:170px;margin-bottom:0}.chart-header__toggle .segments__item{min-height:30px;font-size:.8rem}.month-switch{grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;display:grid}.month-switch__title{text-align:center;font-family:Georgia,Times New Roman,serif;font-size:1.15rem}h1.month-switch__title{font-size:1.3rem}.month-nav__link{border:1px solid var(--border);width:38px;height:38px;color:var(--text);cursor:pointer;background:0 0;border-radius:50%;place-items:center;padding:0;display:grid}.month-nav__link svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.calendar__weekday{color:var(--muted);text-align:center;padding-bottom:2px;font-size:.72rem}.calendar__day{border:1px solid var(--border);background:var(--surface);border-radius:9px;grid-template-rows:auto 1fr;justify-items:center;min-height:50px;padding:5px 2px 4px;display:grid}.calendar__number{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.72rem}.calendar__pages{font-variant-numeric:tabular-nums;align-self:center;font-size:.9rem;font-weight:700}.calendar__day--level-1{background:color-mix(in srgb, var(--accent) 16%, var(--bg));border-color:#0000}.calendar__day--level-2{background:color-mix(in srgb, var(--accent) 28%, var(--bg));border-color:#0000}.calendar__day--level-3{background:color-mix(in srgb, var(--accent) 40%, var(--bg));border-color:#0000}.calendar__day--level-4{background:color-mix(in srgb, var(--accent) 52%, var(--bg));border-color:#0000}.calendar__day[class*=--level-]:not(.calendar__day--level-0) .calendar__number{color:var(--text)}.calendar__day--future{opacity:.55;background:0 0;border-style:dashed}.calendar__legend{margin-top:10px}.reading-log{margin-top:8px}.reading-log__month{margin:10px 0 8px}.month-nav__link:disabled{opacity:.35}.reading-log__bar-cell{vertical-align:middle;width:45%;padding-right:0}.reading-log__bar{background:var(--accent);border-radius:0 4px 4px 0;min-width:2px;height:8px;display:block}.stats__table.reading-log .stats__number{padding-right:12px}.stats__table{border-collapse:collapse;width:100%;font-size:.92rem}.stats__table th{border-bottom:1px solid var(--border);color:var(--muted);text-align:left;padding:6px 8px 6px 0;font-size:.8rem;font-weight:600}.stats__table td{border-bottom:1px solid var(--border);vertical-align:top;padding:8px 8px 8px 0}.stats__table a{color:inherit}.stats__table .stats__number{text-align:right;font-variant-numeric:tabular-nums;padding-left:8px;padding-right:0}.stats__undated{margin-top:10px}.stats__date{color:var(--muted);white-space:nowrap}.scanner{aspect-ratio:4/3;border-radius:var(--radius);background:#000;position:relative;overflow:hidden}.scanner video{object-fit:cover;width:100%;height:100%}.scanner__frame{border:3px solid #fff;border-radius:12px;position:absolute;inset:30% 10%;box-shadow:0 0 0 100vmax #00000059}.manual{gap:6px;margin-top:8px;display:grid}.manual__row{gap:8px;display:flex}.manual__row input{flex:1;min-width:0}.scan-result{text-align:center;justify-items:center;gap:6px;padding-top:8px;display:grid}.scan-result .cover{width:150px;margin:10px 0}.scan-result__note{color:var(--accent);font-weight:600}.scan-result__actions{gap:10px;width:100%;max-width:320px;margin-top:16px;display:grid}.suggestions{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;display:grid}@media (width>=520px){.suggestions{grid-template-columns:repeat(3,minmax(0,1fr))}}.suggestion{flex-direction:column;gap:4px;display:flex}.suggestion .cover{margin-bottom:6px}.suggestion__title{overflow-wrap:anywhere;font-family:Georgia,Times New Roman,serif;font-size:.98rem;line-height:1.25}.suggestion__reason{color:var(--muted);font-size:.8rem}.suggestion .suggestion__dismiss{margin-top:4px}.suggestion--dismissed{border:1px dashed var(--border);border-radius:var(--radius);align-self:start;padding:12px}.suggestions--results{margin-top:18px}.suggestion .button{align-self:flex-start;margin-top:auto}
