:root{font:16px/1.55 system-ui,-apple-system,sans-serif;color:#173d32;background:#f5f7f2;--green:#164836;--border:#d7e0d6;--muted:#506358}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:#fff;border-bottom:1px solid var(--border)}.shell{width:min(100%,48rem);margin:auto;padding:0 clamp(14px,4vw,30px)}main.shell{padding-bottom:42px}.topline,.brand,.tabs,.languages,.inline,.meta,.account{display:flex;align-items:center}.topline{justify-content:space-between;min-height:70px}.brand{font-size:1.45rem;font-weight:750;letter-spacing:-.045em;gap:10px}.brand img{border-radius:11px}.languages{gap:2px;border:1px solid var(--border);border-radius:12px;padding:2px}.languages button{background:none;color:var(--muted);min-width:42px;min-height:36px;padding:4px;border:0;border-radius:8px;font-size:.82rem}.languages button[aria-pressed=true]{background:var(--green);color:white}
a{color:inherit;text-decoration:none}.tabs{gap:6px;padding:12px 0;flex-wrap:wrap}.tabs a{font-size:.89rem;font-weight:650;padding:8px 12px;border-radius:8px}.tabs a[aria-current=page]{background:#e0ead8}.hero{color:#fff;background:radial-gradient(ellipse at 110% 120%,#547147 0%,transparent 60%),#143e31;border-radius:22px;padding:clamp(22px,5vw,38px);overflow-wrap:anywhere}.hero h1{font-weight:670;line-height:1.12;letter-spacing:-.045em;font-size:clamp(2rem,6vw,3rem);margin:0}.hero p{margin:0}.hero #heroLead{color:#d4e9a6;font-weight:650;font-size:.88rem;margin-bottom:8px}.hero #heroIntro{margin-top:12px;max-width:56ch;color:#e8eee4;white-space:pre-line}.meta{flex-wrap:wrap;gap:8px;margin-top:14px}.meta span{border-radius:16px;background:#ffffff17;padding:4px 10px;font-size:.84rem}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:clamp(17px,4vw,27px);margin:14px 0;overflow-wrap:anywhere}.card h2{font-size:1.25rem;line-height:1.25;letter-spacing:-.03em;margin:0 0 12px}.card h3{font-size:1rem;margin:0}.card p{margin:8px 0;color:var(--muted)}button,input,select,textarea{font:inherit}button{cursor:pointer;font-weight:660;line-height:1.25;touch-action:manipulation}button:disabled{cursor:default;opacity:.68}input,textarea,select{display:block;width:100%;max-width:100%;min-width:0;border:1px solid #aebfb2;border-radius:9px;background:white;color:#183e30;padding:11px 12px}textarea{resize:vertical}label,legend{font-size:.94rem;font-weight:660;display:block;margin:14px 0 5px}fieldset{margin:15px 0 0;padding:0;border:0;min-width:0}legend{padding:0}.primary,.secondary{padding:12px 17px;border-radius:10px;min-height:45px;border:1px solid transparent;margin-top:15px}.primary{background:var(--green);color:white}.secondary{color:var(--green);background:#f2f7ef;border-color:#ccd9c5}.inline{align-items:stretch;gap:8px}.inline input,.inline select{flex:1}.inline button{margin:0}.card .inset,.notice{background:#edf5e6;color:#285233;border-radius:10px;padding:12px 14px;font-size:.91rem;margin-top:14px}.notice.error{color:#802f1f;background:#ffebe3}.notice{position:relative;scroll-margin-top:8px}.account{gap:15px;justify-content:space-between;color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}.account button{background:none;border:0;color:#285238;padding:8px}.figures{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}.figures>div+div{border-inline-start:1px solid var(--border)}.figures strong{display:block;font-size:1.65rem;line-height:1.2}.figures small,.card small{color:var(--muted)}.card small{display:block;margin-top:6px}.progressCard progress{width:100%;height:8px;accent-color:#447451;display:block;margin-top:16px}.grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.grid button{display:flex;flex-flow:column;align-items:center;justify-content:center;min-height:67px;gap:3px;border:1px solid #bdcdbb;border-radius:10px;background:#f7faf4;color:#214635;padding:6px;overflow-wrap:anywhere}.grid button strong{font-size:1.13rem}.grid button span{font-size:.76rem}.grid [data-status=read],.grid [data-status=reading]{background:#e9efea;color:#374b3e}.grid button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #2c6542;background:#dfeccd}.partForm{padding:15px;background:#f2f6ed;border-radius:12px;margin-top:14px;scroll-margin-block:15px}.check{display:flex;align-items:center;gap:8px;font-weight:500}.check input{width:18px;height:18px}.entry{padding:12px 0;display:block;border-top:1px solid var(--border)}.entry span{display:block;color:var(--muted);font-size:.9rem}.card summary{cursor:pointer;font-weight:700}a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #608744;outline-offset:2px}@media(max-width:550px){.tabs{gap:1px}.tabs a{font-size:.83rem;padding:8px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.primary{width:100%}.inline{flex-wrap:wrap}.inline input,.inline select{min-width:140px}.hero{border-radius:17px}.hero h1{font-size:2rem}}

.check.consent{align-items:flex-start;gap:10px;line-height:1.45}.check.consent input{flex:0 0 18px;margin-top:2px;accent-color:var(--green)}

:root { background:#f7f5ed; --border:#dbdcd0; }
main.shell { padding-bottom:calc(7rem + env(safe-area-inset-bottom)); }
.hero { position:relative; isolation:isolate; overflow:hidden; background:#183f33; border:1px solid #96814e; }
.card { box-shadow:0 4px 20px -12px #1d493b35; }
.form-mount { display:flow-root; }
.form-mount + .form-mount .card { margin-top:0; }
.tip { margin:.8rem 0; border:1px solid #dfe5d9; border-radius:.75rem; background:#f8faf4; }
.tip > summary { display:flex; align-items:center; gap:.6rem; list-style:none; padding:.58rem .72rem; font-size:.88rem; }
.tip > summary::-webkit-details-marker { display:none; }
.tip > summary::before { content:'i'; display:grid; place-items:center; width:1.2rem; height:1.2rem; border:1px solid #91ac98; border-radius:100%; color:#47634f; font:italic bold .85rem/1 Georgia,serif; flex:none; }
.tip > summary::after { content:''; border:solid #607765; border-width:0 1.5px 1.5px 0; width:.4rem; height:.4rem; margin-inline-start:auto; transform:rotate(45deg); }
.tip[open] > summary::after { transform:rotate(225deg); }
.card .tip p { margin:0; padding:0 .75rem .75rem; font-size:.91rem; }
.progressCard { background:linear-gradient(115deg,#fff 10%,#f1f8ee); }
.progressHead { display:flex; align-items:center; gap:1rem; margin-bottom:1.1rem; }
.progressHead h2 { margin:0 0 .18rem; }
#progressFraction { color:var(--muted); }
#ring { flex:none; width:4.85rem; height:4.85rem; border-radius:50%; background:conic-gradient(#2d7955 var(--fill,0%),#d7e7d8 0); display:grid; place-items:center; }
#ring strong { width:calc(100% - .74rem); height:calc(100% - .74rem); border-radius:inherit; background:#f9fcf6; display:grid; place-items:center; font-size:1.28rem; letter-spacing:-.04em; }
#progress { position:absolute; width:1px; height:1px; margin:0; overflow:hidden; clip-path:inset(50%); }
#ring strong,.figures strong,.statsGrid strong { font-variant-numeric:tabular-nums; }
.figures { border-top:1px solid #dce7d9; padding-top:.85rem; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:.56rem; }
.grid button { position:relative; isolation:isolate; overflow:hidden; align-items:flex-start; justify-content:space-between; min-height:5.7rem; border-radius:.85rem; padding:.67rem .64rem; text-align:start; transition:transform .15s ease,box-shadow .15s ease; }
.grid button strong { letter-spacing:-.06em; font-weight:760; font-size:1.65rem; line-height:1; }
.grid button span { line-height:1.24; font-size:.79rem; font-weight:600; }
.grid [data-status=available] { background:linear-gradient(135deg,#fff6d3,#fbe09a); color:#533d12; border-color:#dac482; }
.grid [data-status=reading] { background:#a03570; color:white; border-color:#872357; }
.grid [data-status=reading][data-own=true] { background:#2456ac; border-color:#204786; }
.grid [data-status=read] { background:#21583e; color:white; border-color:#1e5139; }
.grid button:disabled { opacity:1; }
.grid button[aria-pressed=true] { box-shadow:inset 0 0 0 2px currentColor; }
@media(hover:hover) { .grid button:not(:disabled):hover { transform:translateY(-2px); box-shadow:0 .28rem .65rem #1a473124; } }
.grid button:active:not(:disabled) { transform:translateY(1px); }
.grid [data-status=read]::after,.grid [data-status=reading]::after { position:absolute; right:.42rem; top:.4rem; display:grid; place-items:center; color:#174732; background:white; }
.grid [data-status=read]::after { content:'✓'; width:1.24rem; height:1.24rem; border-radius:50%; font:700 .85rem/1 system-ui; }
.grid [data-status=reading]::after { content:''; right:.65rem; top:.7rem; width:.43rem; height:.43rem; border-radius:50%; box-shadow:0 0 0 4px #ffffff40; animation:juz-pulse 2.8s ease-out infinite; }
@property --juz-angle { syntax:'<angle>'; initial-value:0deg; inherits:false; }
.grid [data-status=reading]::before { content:''; position:absolute; inset:0; padding:2px; border-radius:inherit; pointer-events:none; background:conic-gradient(from var(--juz-angle),transparent 0deg 235deg,#ffe36a 295deg,#fff5ab 320deg,transparent 355deg); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; animation:juz-orbit 5s linear infinite; }
@keyframes juz-orbit { to { --juz-angle:360deg; } }
@keyframes juz-pulse { 0%,100% { box-shadow:0 0 0 1px #ffffff50; } 70% { box-shadow:0 0 0 5px #ffffff08; } }
#juzDialog { overscroll-behavior:contain; overflow:auto; color:#183f32; background:#fffef9; width:min(27rem,calc(100% - 2rem)); max-height:calc(100dvh - 2rem); padding:1.3rem; border:1px solid #d0dccb; border-radius:1.25rem; box-shadow:0 1.5rem 5rem #09271c40; }
#juzDialog::backdrop { background:#122d2373; }
html:has(#juzDialog[open]) { overflow:hidden; }
.sheetHead { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding-bottom:.65rem; border-bottom:1px solid var(--border); }
.sheetHead h2 { margin:0; font-size:1.6rem; line-height:1.18; letter-spacing:-.045em; }
.sheetHead button { display:grid; place-items:center; border:0; border-radius:100%; width:2.75rem; height:2.75rem; color:var(--green); background:#ebf0e6; font-size:1.55rem; }
#sheetContext > .card { padding:1rem 0 0; border:0; box-shadow:none; background:none; margin:0; }
#sheetContext .card h2 { font-size:1.05rem; }
.partForm { margin:0; padding:0; background:transparent; }
.partForm .primary { width:100%; }
.chosen-reader { font-weight:680; margin:.9rem 0 .2rem; }
#actionHelp { margin:0; color:var(--muted); font-size:.92rem; }
#notice { position:fixed; z-index:40; top:max(.7rem,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); width:max-content; max-width:min(93vw,40rem); border:1px solid #c7d8c3; box-shadow:0 4px 22px #132c2430; margin:0; pointer-events:none; }
#sheetNotice { margin:.65rem 0; }
#preferencesForm { margin-top:1.15rem; padding-top:.35rem; border-top:1px solid var(--border); }
.statsGrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.statsGrid > div { padding:.8rem; border-radius:.78rem; border:1px solid #d1dfca; background:#ecf4e7; }
.statsGrid > div:nth-child(2) { border-color:#cdded8; background:#e7f2ed; }
.statsGrid > div:nth-child(3) { border-color:#e9dcc0; background:#fbf2df; }
.statsGrid > div:nth-child(4) { border-color:#d4dfeb; background:#eaf1f8; }
.statsGrid strong,.statsGrid span { display:block; }
.statsGrid strong { font-size:1.9rem; line-height:1.18; }
.statsGrid span { font-size:.86rem; color:#3b5548; }
#statsPanel { margin:0 0 1.5rem; }
#statsWho { margin-top:-.3rem; }
.entry { display:grid; grid-template-columns:1fr auto; align-items:center; gap:.15rem .7rem; padding:.95rem 0; }
.entry span { grid-column:1; }
.entry::after { content:'›'; grid-row:1/3; grid-column:2; color:#587d5c; font-size:1.65rem; }
.list-picker { display:flex; flex-wrap:wrap; gap:.4rem; }
.list-picker .check { border:1px solid #ccd9c5; background:#f4f8ef; border-radius:10px; margin:0; padding:.52rem .7rem; }
.list-picker .check:has(:checked) { background:#e1efd9; border-color:#49865a; }
.list-picker input { margin:0; accent-color:var(--green); }
#shareForm { border-top:1px solid var(--border); margin-top:1rem; }
@media(max-width:550px) {
  .grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.42rem; }
  .grid button { min-height:5.3rem; }
  #juzDialog { margin:auto auto 0; width:100%; max-width:30rem; border-radius:1.3rem 1.3rem 0 0; padding:1rem max(1.1rem,env(safe-area-inset-right)) calc(1.15rem + env(safe-area-inset-bottom)) max(1.1rem,env(safe-area-inset-left)); }
}
@media(max-width:330px) { .grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) {
 .grid button,.grid button::before,.grid button::after { animation:none!important; transition:none!important; transform:none!important; }
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, #183f33f5 8%, #183f33cc 42%, #183f3322), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22800%22%20height%3D%22240%22%20viewBox%3D%220%200%20800%20240%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23c7ad70%22%20stroke-width%3D%221%22%20opacity%3D%22.42%22%3E%3Cpath%20d%3D%22M410%20-50%20C720%2025%20370%20145%20610%20290%22%2F%3E%3Cpath%20d%3D%22M429%20-50%20C733%2025%20389%20145%20632%20290%22%2F%3E%3Cpath%20d%3D%22M448%20-50%20C746%2025%20408%20145%20654%20290%22%2F%3E%3Cpath%20d%3D%22M467%20-50%20C759%2025%20427%20145%20676%20290%22%2F%3E%3Cpath%20d%3D%22M486%20-50%20C772%2025%20446%20145%20698%20290%22%2F%3E%3Cpath%20d%3D%22M505%20-50%20C785%2025%20465%20145%20720%20290%22%2F%3E%3Cpath%20d%3D%22M524%20-50%20C798%2025%20484%20145%20742%20290%22%2F%3E%3Cpath%20d%3D%22M543%20-50%20C811%2025%20503%20145%20764%20290%22%2F%3E%3Cpath%20d%3D%22M562%20-50%20C824%2025%20522%20145%20786%20290%22%2F%3E%3Cpath%20d%3D%22M581%20-50%20C837%2025%20541%20145%20808%20290%22%2F%3E%3Cpath%20d%3D%22M600%20-50%20C850%2025%20560%20145%20830%20290%22%2F%3E%3Cpath%20d%3D%22M619%20-50%20C863%2025%20579%20145%20852%20290%22%2F%3E%3Cpath%20d%3D%22M638%20-50%20C876%2025%20598%20145%20874%20290%22%2F%3E%3Cpath%20d%3D%22M657%20-50%20C889%2025%20617%20145%20896%20290%22%2F%3E%3Cpath%20d%3D%22M676%20-50%20C902%2025%20636%20145%20918%20290%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.reader-controls,.decision-actions,#myPartButtons,.juz-legend { display:flex;align-items:center;gap:.55rem; }
.reader-controls select { flex:1 1 12rem; }
.remove-profile,.release-link,.danger { min-height:44px; }
.remove-profile { display:inline-flex;align-items:center;gap:.25rem;padding:.45rem .6rem;border:1px solid #e2d6cd;border-radius:.65rem;background:#fffaf5;color:#884934;font-size:.89rem; }
.remove-profile > span:first-child { font-size:1.2rem; }
.another-reader { margin:.85rem 0 .35rem;min-height:2.75rem;font-weight:620; }
.another-reader input { margin:0;accent-color:var(--green); }
.decision { border:1px solid #dfd3c5;border-radius:.8rem;background:#fbf7ef;padding:.7rem .8rem;margin:.65rem 0; }
.decision p { margin:.1rem 0 .5rem; }
.decision-actions { flex-wrap:wrap; }
.decision-actions button { border-radius:.6rem;margin:0;padding:.55rem .72rem; }
.danger { background:#7e4433;color:white;border:1px solid transparent; }
.juz-legend { list-style:none; padding:0;margin:.9rem 0; flex-wrap:wrap; gap:.42rem .8rem; }
.juz-legend li { display:inline-flex;align-items:center;gap:.3rem; font-size:.86rem; font-weight:640; }
.juz-legend i { display:inline-grid;place-items:center;width:1.18rem;height:1.18rem; border-radius:.33rem; font:normal 700 .85rem/1 system-ui;color:white; }
.juz-legend [data-state=available] i { background:#f8e09a;color:#534018;border:1px solid #d8bd70; }
.juz-legend [data-state=reading] i { background:#a03570; }
.juz-legend [data-state=own] i { background:#2456ac; }
.juz-legend [data-state=read] i { background:#21583e; }
.grid button { min-height:6.45rem; }
.grid button strong { font-size:1.79rem; }
.grid button span { font-size:.86rem; }
.my-parts { border-top:1px solid var(--border);margin-top:1rem;padding-top:.8rem; }
.my-parts h3 { font-size:.94rem; }
#myPartButtons { margin-top:.45rem;flex-wrap:wrap; }
#myPartButtons button { background:#ebf1fc;color:#244c91;border:1px solid #c4d6ec;border-radius:.6rem; padding:.52rem .68rem;min-height:44px; }
#releaseArea { border-top:1px solid var(--border);margin-top:1rem; padding-top:.7rem; }
#releaseHint { color:var(--muted);font-size:.88rem; margin:.15rem 0; }
.release-link { padding:.4rem 0;border:0;background:none;color:#773e2c;text-decoration:underline;text-underline-offset:.18em; }
@media(max-width:550px){.grid button { min-height:5.95rem; }}
