:root{color-scheme:dark;font:16px/1.6 var(--account-font,system-ui,sans-serif);color:#f5edda;background:#102319}
*{box-sizing:border-box}
body{margin:0;padding:32px 24px;min-height:100vh}
main{max-width:760px;margin:auto;padding-bottom:48px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:40px}
.topbar>a{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:10px 20px;border:2px solid #556d42;border-radius:999px;background:#213a25;text-decoration:none;font-size:.875rem;font-weight:800}
.topbar>a::before{content:'←';font-size:18px}.topbar select{border-radius:999px;font-size:.875rem;font-weight:700;min-height:46px;padding-inline:16px}
.eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.12em;color:#dfc483;margin:0 0 10px}
h1{font:800 clamp(2.1rem,4.6vw,3.15rem)/1.1 var(--account-display,Georgia,serif);letter-spacing:-.035em;color:#f4ecd6;margin:0 0 12px}
h2{font:800 1.35rem/1.3 var(--account-display,Georgia,serif);margin:0 0 12px}h3{font-size:.9rem;margin:0 0 10px;color:#ede9d4}
main>p[data-text=local]{color:#bdc5ab;font-size:.95rem;margin:12px 0 24px}
a{color:#e4ca8d;text-underline-offset:4px}
label{display:block;margin:16px 0;font-size:.875rem;font-weight:700}
input,select,button{font:inherit;border:2px solid #425b3a;border-radius:16px;padding:11px 15px;background:#102719;color:inherit;min-height:46px;max-width:100%}
input{display:block;width:100%;margin-top:6px;line-height:1.5}
input:focus{border-color:#dec27f}
button{cursor:pointer;margin:6px 8px 6px 0;line-height:1.4;overflow-wrap:anywhere;border-radius:999px;background:#233c27;border-color:#526d3e;font-size:.875rem;font-weight:800;padding:12px 21px}
button:hover{background:#345035;border-color:#7f9660}button:disabled{opacity:.55;cursor:default}
button.primary{background:linear-gradient(115deg,#ead293,#c6a45e);color:#1b2b1b;border-color:#d8b977;box-shadow:0 9px 28px #d4b46920;font-weight:800}
button.primary:hover{background:#f3dfb1}button.quiet{background:#203724;border-color:#526d3e}
:focus-visible{outline:3px solid #f3d78d;outline-offset:4px}
.panel{background:#172d1eea;border:2px solid #3c5635;border-radius:30px;padding:24px;margin:24px 0;box-shadow:0 18px 38px #03120a30}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.section-heading h2{margin:0}.section-heading button{margin:0;flex-shrink:0}
.profile-identity,.auth-heading{display:flex;align-items:center;gap:16px;min-width:0}.profile-identity>div{min-width:0}
.account-emblem{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:22px;background:#3b5934;color:#e9e3c9}
.account-emblem svg{width:30px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#identity{overflow-wrap:anywhere;font-size:.9rem;color:#bdc5ad;margin:2px 0 0;line-height:1.4}
.auth-heading h2{font-size:1.6rem;margin:0}.auth-heading .eyebrow{margin-bottom:4px}
#auth>.note{margin-block:20px}#auth label{margin:18px 0}#auth #reset{background:transparent;border-color:transparent;padding-inline:8px;color:#c6ceb6}
.guest-link{display:block;width:fit-content;min-height:44px;padding-block:13px;margin-top:12px;font-size:.875rem;font-weight:700}
.badge{display:table;border:1px solid #9b925d;border-radius:999px;background:#332f1e;padding:4px 11px;font-size:.75rem;font-weight:700;line-height:1.5;margin:16px 0;max-width:100%}
.badge[data-tone=good]{border-color:#60774e;background:#2b492b;color:#dceac8}
#verification-status[data-tone=good]::before,#save-state[data-tone=good]::before{content:'✓';margin-inline-end:6px}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.actions button{margin:0}
#status{display:flex;align-items:center;gap:12px;padding:12px 18px;border-left:4px solid #d6ba78;border-radius:24px;background:#243e29;min-height:48px;overflow-wrap:anywhere;font-size:.875rem;font-weight:700;line-height:1.6}
#status::before{content:'◌';flex:none;font-size:21px;color:#d6ba78;line-height:1}#status[data-tone=good]{border-color:#92ae65}#status[data-tone=good]::before{content:'✓';color:#a9c77b}#status[data-tone=error],#status[data-tone=warning]{border-color:#d4a078}#status[data-tone=error]::before{content:'!'}
.progress h2{font-size:1.65rem}.progress .eyebrow{margin-bottom:3px}.progress>.note{margin-top:16px}
.save-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:22px}
.save-copy{border:2px solid #405936;border-radius:26px;padding:17px;background:#1b3320}
.save-copy h3{display:flex;align-items:center;gap:8px;font-weight:800}.save-copy h3::before{content:'';flex:none;width:14px;height:17px;border:1.5px solid #d9bd75;border-radius:3px}
.save-copy #cloud-heading::before{width:18px;height:11px;border-radius:10px 10px 6px 6px}
.save-copy p{margin:8px 0 0;overflow-wrap:anywhere;font-size:.85rem;line-height:1.6}
.save-position,.save-bookmark{display:block}.save-bookmark{margin-top:5px;color:#bac4a8}.save-bookmark::before{content:'';display:inline-block;width:10px;height:13px;margin-inline-end:5px;vertical-align:-2px;background:#ddc17d;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M2 1h8v14l-4-3-4 3Z' fill='none' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.note{font-size:.8rem;color:#bcc6ad;line-height:1.65}
.reading-position{margin:20px 0}.reading-position progress{display:block;width:100%;height:11px;border:0;border-radius:999px;background:#0e2516;overflow:hidden;accent-color:#d8bd7b}
.reading-position progress::-webkit-progress-bar{background:#0e2516;border-radius:999px}.reading-position progress::-webkit-progress-value{background:linear-gradient(100deg,#e9d197,#bc9e5c);border-radius:999px}.reading-position progress::-moz-progress-bar{background:#d8bd7b;border-radius:999px}.reading-position .note{margin:4px 0 0;font-size:.7rem;font-weight:700}
#conflict{border:2px solid #c6ad72;background:#302f1e;padding:18px;border-radius:24px;margin-top:20px}
details{margin:24px 0;padding:20px 24px;border:2px solid #3c5635;border-radius:30px;background:#172d1eea}
summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;font-size:.875rem;font-weight:800;min-height:44px;padding:4px 0;overflow-wrap:anywhere}
summary::-webkit-details-marker{display:none}summary::after{content:'';width:8px;height:8px;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline:5px}details[open]>summary::after{transform:rotate(225deg)}
details form h2{margin-top:24px}form+form{border-top:1px dashed #566c44;margin-top:28px;padding-top:4px}
#guest-details{margin:20px 0 0;padding:12px 16px;border-style:dashed;border-radius:24px;background:transparent}
.danger{border-color:#665747}.danger summary{color:#e2a38a}.danger button{border-color:#c19178}
.checkbox{display:flex;align-items:start;gap:12px}.checkbox input{width:24px;min-height:24px;margin-top:5px;flex:none}
[hidden]{display:none!important}
@media(max-width:600px){body{padding:24px 18px}.topbar{margin-bottom:32px;gap:12px}.topbar>a{padding-inline:14px;font-size:.8rem}.topbar select{padding-inline:12px}.panel{padding:21px}.save-grid{grid-template-columns:minmax(0,1fr)}.section-heading{gap:14px;align-items:flex-start;flex-wrap:wrap}.section-heading button{flex-shrink:1}.profile-identity{gap:12px;flex:1 1 170px}.profile-identity h2{font-size:1.25rem}.account-emblem{width:46px;height:48px;border-radius:17px}.progress .section-heading{align-items:center;flex-wrap:wrap}.save-copy{padding:16px}details{padding:16px 20px}.badge{border-radius:16px}.actions button{font-size:.8rem;padding-inline:16px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background-color .15s ease,border-color .15s ease}}
@media(max-width:600px){.profile .section-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.profile .profile-identity{width:100%}.profile #signout{justify-self:end}.profile-identity>div{flex:1}}
