*{box-sizing:border-box}
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#193a30;background:#e9f0eb;font-size:15px;color-scheme:light}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #59b998;outline-offset:3px}
.app{max-width:520px;min-height:100dvh;margin:0 auto;background:#f7faf7;display:flex;flex-direction:column;box-shadow:0 0 35px #2445361a}
.app-header{background:#fff;padding:17px 19px 13px;border-bottom:1px solid #e5eee7;position:sticky;top:0;z-index:2;padding-top:max(17px,env(safe-area-inset-top))}
.brand-row,.header-row,.between{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand-row{margin-bottom:14px}
.wordmark{letter-spacing:2px;font-size:12px;font-weight:900}
.wordmark b{color:#0d8b61;font-size:19px}
.version{font-size:10px;letter-spacing:1px;color:#61917b;font-weight:850}
.header-row strong{font-size:21px;letter-spacing:-.6px}
.private-tag{font-size:10px;border-radius:99px;background:#ebf6ed;padding:7px 9px;color:#267954;font-weight:750;white-space:nowrap}
.pwa-status{background:#eaf5ec;color:#275a48;padding:6px 19px;font-size:10px;line-height:1.5;border-bottom:1px solid #d6e8d9}
.app-content{flex:1;min-height:0}
.screen{padding:23px 17px 45px}
h1{font-size:26px;letter-spacing:-1px;line-height:1.2;margin:0 0 8px}
h2{font-size:16px;margin:0 0 6px;letter-spacing:-.3px}
p{margin:0}
.muted{color:#6a8176;font-size:12px;line-height:1.55}
.section{font-size:14px;font-weight:800;margin:24px 0 12px;display:flex;justify-content:space-between}
.section small{font-size:11px;color:#789084;font-weight:600}
.profile-row{display:flex;gap:8px;overflow-x:auto;padding:3px 1px 8px;scrollbar-width:none}
.chip{display:flex;align-items:center;gap:8px;border:1px solid #dbe9df;padding:6px 13px 6px 7px;background:#fff;border-radius:99px;font-size:12px;font-weight:750;color:#4c735c;white-space:nowrap}
.chip[aria-pressed="true"]{background:#e1f3e7;border-color:#73c6a0;color:#125f47}
.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2efe6;color:#257052;font-size:11px;font-weight:900}
.chip[aria-pressed="true"] .avatar{background:#177c5d;color:#fff}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0}
.metric{border:1px solid #e1eae3;border-radius:15px;padding:13px 10px;background:#fff}
.metric strong{font-size:24px;display:block;letter-spacing:-1px}
.metric span{font-size:10px;color:#73887b;font-weight:700}
.card,.panel{background:#fff;border:1px solid #e0eae2;border-radius:17px;overflow:hidden;margin:13px 0}
.album{width:100%;padding:0;text-align:left;color:inherit}
.album-cover{display:flex;justify-content:space-between;align-items:center;min-height:96px;background:linear-gradient(115deg,#176e57,#54b08b);color:#fff;padding:18px 16px}
.album:nth-of-type(even) .album-cover{background:linear-gradient(115deg,#b96b45,#e8a25d)}
.album-cover b{font-size:18px;line-height:1.2;display:block;max-width:260px}
.album-cover span{font-size:11px;opacity:.9}
.album-cover .art{font-size:39px;margin-left:15px}
.album-body{padding:14px 15px 16px}
.album-body .between{font-size:12px}
.album-body .between small{color:#789083}
progress{display:block;width:100%;height:9px;accent-color:#1d8e69;border:0;margin:11px 0}
progress::-webkit-progress-bar{background:#e4eee7;border-radius:99px}
progress::-webkit-progress-value{background:#22986f;border-radius:99px}
progress::-moz-progress-bar{background:#22986f;border-radius:99px}
.foot{font-size:11px;color:#6f8378;display:flex;justify-content:space-between;gap:9px}
.foot b{color:#246c52}
.note{display:flex;gap:12px;background:#ebf4e8;border-radius:15px;border:1px solid #d7e9d8;padding:15px;margin-top:17px}
.note .emoji{font-size:23px}
.note b{font-size:12px}
.note p{font-size:11px;color:#6d8374;margin-top:3px}
.panel{padding:17px}
.panel h2{margin-bottom:6px}
label{display:block;font-size:11px;color:#577668;font-weight:800;margin:17px 0 7px}
input,select{width:100%;border:1px solid #cedfd4;border-radius:11px;padding:12px;background:#fff;color:#173c2e;min-height:44px}
input:focus,select:focus{border-color:#219976}
.row{display:flex;gap:8px;margin-top:14px}
.row>*{flex:1}
.primary,.secondary,.danger{border:0;border-radius:11px;padding:12px 14px;min-height:44px;font-size:12px;font-weight:800}
.primary{background:#17785a;color:#fff}
.secondary{background:#fff;color:#1e7656;border:1px solid #d2e5d8}
.danger{background:#fff3ef;color:#a64d40}
.full{width:100%}
.back{border:0;background:transparent;color:#168063;font-weight:800;font-size:12px;padding:0;margin-bottom:17px}
.hero{background:linear-gradient(115deg,#167258,#4ca17f);border-radius:18px;color:#fff;padding:21px 18px;margin:14px 0}
.hero small{font-weight:850;font-size:11px;letter-spacing:1px}
.hero h2{font-size:22px;margin:8px 0 18px;color:#fff}
.hero strong{font-size:31px;letter-spacing:-1px}
.hero progress{accent-color:#ffe4a2}
.hero progress::-webkit-progress-bar{background:#ffffff50}
.hero progress::-webkit-progress-value{background:#ffe4a2}
.hero .foot{color:#f7fff9}
.segment{background:#ecf1ec;border:1px solid #e1e8e1;padding:4px;border-radius:12px;display:flex;gap:3px;margin:13px 0}
.segment button{border:0;background:transparent;border-radius:9px;color:#718278;font-size:11px;font-weight:800;flex:1;padding:10px 3px}
.segment button[aria-pressed="true"]{background:#fff;color:#177355;box-shadow:0 1px 5px #16372115}
.legend{display:flex;flex-wrap:wrap;gap:15px;font-size:10px;color:#74897a;margin:12px 0}
.legend i{display:inline-block;width:8px;height:8px;border-radius:99px;margin-right:4px}
.legend .dot-have{background:#65b993}.legend .dot-missing{background:#cdd9d0}.legend .dot-extra{background:#ebb956}
.copy-buffer{position:fixed;left:-10000px;top:0;opacity:0;pointer-events:none}
.grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:12px 0 19px}
.tile{aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px dashed #dbe5dd;background:#fff;color:#a0b0a3;border-radius:10px;font-weight:850;min-width:0}
.tile span{font-size:13px}
.tile small{font-size:9px}
.tile.have{background:#e3f5e8;color:#13714f;border:1px solid #b1e1c3}
.tile.extra{background:#fff0ce;color:#9a6915;border:1px solid #ecd58a}
.pills{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}
.pill{padding:9px 12px;font-weight:800;font-size:12px;border-radius:9px;border:1px solid #dce9e0;background:#fff;color:#26654e}
.pill.extra{background:#fff0cc;border-color:#ebd28a;color:#965e14}
.empty{border:1px dashed #ccded1;padding:25px 16px;border-radius:15px;background:#fff;text-align:center;color:#668372;font-size:12px;margin:14px 0}
.help{font-size:11px;line-height:1.55;color:#7b9081;margin:10px 0}
.person{display:flex;gap:12px;align-items:center;border-bottom:1px solid #ecf0ec;padding:13px 0}
.person:last-child{border-bottom:0}
.person-icon{border-radius:13px;background:#e6f3e9;color:#197253;display:grid;place-items:center;font-weight:850;width:42px;height:42px;flex:none}
.person-info{flex:1}
.person-info b{font-size:13px}
.person-info p{font-size:11px;color:#809084;margin-top:2px}
.tag{font-size:10px;background:#e4f6ea;color:#1b7755;padding:6px 8px;border-radius:9px;font-weight:800}
.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #e2eae3;position:sticky;bottom:0;z-index:2;padding:7px 5px max(11px,env(safe-area-inset-bottom))}
.bottom-nav button{border:0;background:transparent;color:#92a498;font-size:10px;font-weight:800;border-radius:11px;padding:7px 3px;display:flex;align-items:center;flex-direction:column;gap:4px}
.bottom-nav button span{font-size:23px;line-height:25px}
.bottom-nav button[aria-current="page"]{background:#e7f5ec;color:#147458}
.modal-host:empty{display:none}
.overlay{position:fixed;inset:0;background:#173225b9;z-index:10}
.sheet{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:520px;width:100%;background:#fff;border-radius:23px 23px 0 0;padding:18px 23px max(25px,env(safe-area-inset-bottom));z-index:11;box-shadow:0 -18px 30px #0002}
.sheet h2{font-size:22px;margin-bottom:6px}
.counter{display:flex;gap:18px;justify-content:center;align-items:center;margin:24px 0}
.counter button{font-size:26px;background:#e8f4eb;border:1px solid #cfe4d4;color:#147452;border-radius:13px;width:52px;height:52px}
.counter strong{font-size:38px;min-width:74px;text-align:center}
.toast{display:none;position:fixed;bottom:90px;left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:484px;z-index:30;background:#183f30;color:white;font-size:12px;text-align:center;border-radius:12px;padding:14px;box-shadow:0 6px 20px #173c2930}
.toast.visible{display:block}
.notice{margin:12px 0;background:#fff3dd;border:1px solid #eacb87;border-radius:12px;padding:12px;font-size:12px;color:#805a20}
@media(min-width:650px){.app{min-height:100dvh}}
@media(max-width:340px){.screen{padding:20px 11px 35px}.grid{gap:4px}.tile span{font-size:11px}.header-row strong{font-size:18px}.version{font-size:9px}}
