:root{--bg:#151618;--surface:#1e1f22;--surface-2:#26282c;--line:#34363b;--text:#f2efe9;--muted:#9a968e;--gold:#c2a06a;--gold-light:#dcc08e;--gold-dark:#9c7c4a;--green:#3fae6a;--red:#e0524a;--radius:14px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:16px}h1,h2,.brand{letter-spacing:.04em;font-family:Cinzel,Georgia,serif;font-weight:600}h2{color:var(--gold-light);margin:0 0 .5rem;font-size:1.1rem}.page{max-width:640px;padding:16px 16px calc(32px + env(safe-area-inset-bottom));margin:0 auto}.title{color:var(--gold);margin:8px 0 16px;font-size:1.4rem}.muted{color:var(--muted)}.header{z-index:10;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);background:#151618eb;align-items:center;gap:12px;display:flex;position:sticky;top:0}.header-logo{border-radius:8px;width:38px;height:38px}.header-text{flex-direction:column;flex:1;line-height:1.15;display:flex}.brand{color:var(--gold);font-size:1rem}.brand-sub{color:var(--muted);font-size:.8rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}.placeholder p{margin:0 0 6px}.btn{appearance:none;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer;border-radius:10px;padding:12px 16px;font-weight:600}.btn:disabled{opacity:.6}.btn-gold{background:linear-gradient(180deg, var(--gold-light), var(--gold-dark));color:#17140f;border:none}.link{color:var(--gold);font:inherit;cursor:pointer;background:0 0;border:none;padding:8px}.row{flex-wrap:wrap;gap:8px;display:flex}.form{flex-direction:column;gap:14px;display:flex}label{color:var(--muted);flex-direction:column;gap:6px;font-size:.85rem;display:flex}input,select,textarea{width:100%;min-width:0;max-width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px;font-size:16px}input:focus,select:focus{outline:2px solid var(--gold-dark);border-color:#0000}.msg{margin:0;font-size:.9rem}.msg.error{color:var(--red)}.msg.ok{color:var(--green)}.login{flex-direction:column;justify-content:center;max-width:420px;min-height:100vh;margin:0 auto;padding:24px 16px;display:flex}.login-logo{width:100%;max-width:360px;margin:0 auto 16px;display:block}.demo{text-align:center;color:var(--muted);margin-top:24px;font-size:.85rem}.demo .row{justify-content:center}.splash,.center-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:100vh;padding:16px;display:flex}.splash img{opacity:.9;border-radius:20px;width:96px}.with-tabs{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.tabs{z-index:10;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#151618f5;display:flex;position:fixed;bottom:0;left:0;right:0}.tabs a{text-align:center;color:var(--muted);flex:1;padding:16px 0;font-size:.9rem;font-weight:600;text-decoration:none}.tabs a.active{color:var(--gold);box-shadow:inset 0 2px 0 var(--gold)}.title-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.title-row .title{margin-bottom:12px}.btn-sm{padding:8px 14px;font-size:.9rem;text-decoration:none;display:inline-block}.grow{flex:1}.small{font-size:.85rem}.gold{color:var(--gold)}.ok{color:var(--green)}.back{margin-top:4px;padding-left:0;text-decoration:none;display:inline-block}.danger{color:var(--red);margin-top:24px}.section{flex-direction:column;gap:10px;margin-top:20px;display:flex}.section-title{text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin:0;font-family:Inter,sans-serif;font-size:.8rem}.count{color:var(--gold);margin-left:4px}.plan-card{color:inherit;flex-direction:column;gap:4px;text-decoration:none;display:flex}.plan-card-top{justify-content:space-between;gap:8px;display:flex}.price{color:var(--gold-light);font-weight:700}.plan-card.is-paused{opacity:.85;border-color:#5a5f6a}.badge{border-radius:99px;align-self:flex-start;margin-top:4px;padding:3px 10px;font-size:.78rem;font-weight:600}.badge-paused{color:#b9c3d6;background:#2f3440}.banner{border-radius:var(--radius);justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:12px 14px;display:flex}.banner-paused{color:#c9d2e3;background:#252a34;border:1px solid #3c4352}.info{flex-direction:column;gap:0;padding:4px 16px;display:flex}.info-row{border-bottom:1px solid var(--line);text-align:right;justify-content:space-between;gap:16px;padding:12px 0;display:flex}.info-row:last-child{border-bottom:none}.info-row>span:first-child{text-align:left;flex-shrink:0}.list-row{background:var(--surface);border:1px solid var(--line);border-radius:10px;justify-content:space-between;align-items:center;padding:10px 14px;display:flex}.icon-btn{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:6px 10px;font-size:1rem}fieldset{min-width:0;margin:0}legend{color:var(--gold-light);padding:0 6px;font-family:Cinzel,serif;font-weight:600}.check{color:var(--text);flex-direction:row;align-items:center;gap:10px;font-size:.95rem}.check input{width:20px;height:20px;accent-color:var(--gold);flex:none}.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;display:grid}.two input{width:100%;min-width:0}.slot-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.segmented{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:3px;display:flex}.segmented button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;padding:10px 0;font-weight:600}.segmented button.on{background:var(--gold);color:#17140f}.with-actions{padding-bottom:calc(90px + env(safe-area-inset-bottom))}.sticky-actions{z-index:10;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#151618f5;flex-wrap:nowrap;position:fixed;bottom:0;left:0;right:0}textarea{resize:vertical}input[type=date],input[type=time]{appearance:none;min-height:48px}html,body{overflow-x:hidden}.pass-row{justify-content:space-between;align-items:center}.pass{color:var(--gold-light);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-family:ui-monospace,Menlo,monospace;font-size:1.1rem}.row .grow{flex:1}.card.form>h2,.card.form>p{margin:0}.user-row{color:inherit;align-items:center;gap:12px;padding:12px 14px;text-decoration:none;display:flex}.user-row .grow{min-width:0;overflow:hidden}.user-row .muted.small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dot{background:#4a4d54;border-radius:50%;flex:none;width:10px;height:10px}.dot.on{background:var(--green);box-shadow:0 0 0 3px #3fae6a40}.seen{text-align:right;white-space:nowrap;flex:none}.tag{background:var(--gold);color:#17140f;vertical-align:middle;border-radius:99px;margin-left:8px;padding:2px 8px;font-size:.7rem;font-weight:700}.nav-card{color:inherit;justify-content:space-between;align-items:center;text-decoration:none;display:flex}.chev{color:var(--gold);font-size:1.6rem;line-height:1}.hero{color:#fff;border-radius:20px;flex-direction:column;gap:4px;margin-bottom:14px;padding:22px 20px 20px;display:flex;position:relative;overflow:hidden}.hero:after{content:"";background:#ffffff14;border-radius:50%;width:160px;height:160px;position:absolute;top:-40px;right:-40px}.hero-red{background:linear-gradient(135deg,#e0524a,#8f1f1a);box-shadow:0 10px 30px #e0524a40}.hero-amber{background:linear-gradient(135deg,#e0a84a,#8f5c12);box-shadow:0 10px 30px #e0a84a33}.hero-green{background:linear-gradient(135deg,#2f9a5b,#145a32);box-shadow:0 10px 30px #3fae6a33}.hero-label{text-transform:uppercase;letter-spacing:.14em;opacity:.9;font-size:.78rem;font-weight:700}.hero-amount{letter-spacing:-.02em;font-size:2.6rem;font-weight:700;line-height:1.1}.hero-sub{opacity:.92;font-size:.95rem}.hero-note{opacity:.85;margin-top:10px;font-size:.85rem}.hero-btn{color:#1a1a1a;z-index:1;background:#fff;border:none;margin-top:14px;padding:14px;font-size:1.05rem;position:relative}.hero-link{color:#fff;opacity:.85;z-index:1;align-self:flex-start;margin-top:6px;padding-left:0;text-decoration:underline;position:relative}.stats3{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.stat{background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:12px;flex-direction:column;align-items:center;gap:2px;padding:12px 6px;font-size:.78rem;display:flex}.stat-n{font-size:1.6rem;font-weight:700}.stat-red .stat-n{color:var(--red)}.stat-amber .stat-n{color:#e0a84a}.stat-green .stat-n{color:var(--green)}.total-red{color:var(--red);font-size:1.1rem;font-weight:700}.pay-row{background:var(--surface);border:1px solid var(--line);color:inherit;border-radius:12px;align-items:center;gap:10px;padding:12px 12px 12px 14px;text-decoration:none;display:flex}.pay-row-red{border-left:4px solid var(--red)}.pay-row-amber{border-left:4px solid #e0a84a}.pay-row-main{color:inherit;flex-direction:column;min-width:0;text-decoration:none;display:flex}.pay-row-main .small{color:var(--muted)}.pay-row-red .pay-amount{color:var(--red);font-weight:700}.pay-row-amber .pay-amount{color:#e0a84a;font-weight:700}.btn-paid{background:var(--green);color:#fff;border:none}.plan-card.st-pending{border-left:4px solid var(--red)}.plan-card.st-soon{border-left:4px solid #e0a84a}.plan-card.st-paid{border-left:4px solid var(--green)}.badges{gap:6px;margin-top:4px}.badges .badge{margin-top:0}.badge-red{color:#ff8f88;background:#e0524a2e}.badge-amber{color:#f0c47a;background:#e0a84a2e}.badge-green{color:#7fd6a0;background:#3fae6a29}.toast{left:16px;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:20;color:#17140f;background:#f2efe9;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;max-width:608px;margin:0 auto;padding:12px 14px;font-weight:500;display:flex;position:fixed;box-shadow:0 8px 24px #0006}.toast .link{color:#8a6a32;font-weight:700}.countdown{background:linear-gradient(180deg, #23211d, var(--surface));border-color:#4a3f2c;flex-direction:column;gap:6px;display:flex}.cd-head{font-size:1.25rem;line-height:1.3}.cd-head b{color:var(--gold-light);font-size:1.5rem}.countdown.compact .cd-head{font-size:1.05rem}.countdown.compact .cd-head b{font-size:1.15rem}.bar{background:var(--bg);border-radius:99px;height:8px;margin:8px 0 4px;overflow:hidden}.bar span{background:linear-gradient(90deg, var(--gold-dark), var(--gold-light));border-radius:99px;height:100%;display:block}.cd-stats{text-align:center;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:6px;display:grid}.cd-stats>div{color:var(--muted);flex-direction:column;font-size:.78rem;display:flex}.cd-n{color:var(--text);font-size:1.4rem;font-weight:700}.cd-n small{color:var(--muted);font-size:.8rem;font-weight:500}.cd-n.gold{color:var(--gold-light)}.cd-n.red,.red{color:var(--red)}.cd-note{color:var(--gold-light);margin:6px 0 0}.class-list{flex-direction:column;gap:8px;display:flex}.class-row{background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;display:flex}.class-row.is-absent{opacity:.75;border-style:dashed}.class-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.btn-ghost{border-color:var(--gold-dark);color:var(--gold-light);background:0 0}.btn-danger{background:var(--red);color:#fff;border:none}.confirm{border-top:1px solid var(--line);flex-direction:column;flex-basis:100%;gap:8px;padding-top:10px;display:flex}.confirm p{margin:0}.confirm .row{justify-content:flex-end}.week-nav{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.week-title{flex-direction:column;align-items:center;display:flex}.icon-btn.big{color:var(--gold);padding:4px 14px;font-size:1.8rem}.icon-btn:disabled{opacity:.25}.grid{gap:3px;margin:10px -8px 0;display:grid}.grid-day{text-align:center;color:var(--muted);border-radius:8px;flex-direction:column;padding:4px 0;font-size:.7rem;display:flex}.grid-day b{color:var(--text);font-size:.95rem}.grid-day.is-today{background:var(--gold);color:#17140f}.grid-day.is-today b{color:#17140f}.grid-time{color:var(--muted);justify-content:flex-end;align-items:center;padding-right:4px;font-size:.7rem;display:flex}.cell{min-height:38px;font:inherit;color:var(--text);text-overflow:ellipsis;word-break:normal;overflow-wrap:normal;cursor:pointer;background:#1b1c1f;border:1px solid #0000;border-radius:7px;padding:2px;font-size:.66rem;font-weight:600;line-height:1.1;overflow:hidden}.cell-fixed{color:var(--gold-light);background:linear-gradient(#4a3c22,#3a2f1b);border-color:#6b5631}.cell-recovery{border:1px dashed var(--gold);color:var(--gold-light);background:#2b2618}.cell-free{color:#7fd6a0;background:#3fae6a1f;border:1px dashed #3fae6a99}.cell-busy{color:#8d9097;letter-spacing:-.01em;background:#2a2c31;font-size:.58rem}.cell.is-past{opacity:.35}.legend{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:14px;display:flex}.lg{border-radius:3px;width:12px;height:12px;margin-right:-4px;display:inline-block}.lg-fixed{background:#4a3c22;border:1px solid #6b5631}.lg-recovery{border:1px dashed var(--gold)}.lg-free{background:#3fae6a1f;border:1px dashed #3fae6a99}.lg-busy{background:#2a2c31}.sheet-backdrop{z-index:30;background:#0000008c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);border-top:1px solid var(--line);width:100%;max-width:640px;padding:10px 16px calc(20px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;flex-direction:column;gap:12px;animation:.18s ease-out up;display:flex}.sheet p{margin:0}.sheet-grip{background:var(--line);border-radius:4px;width:40px;height:4px;margin:0 auto 4px}@keyframes up{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}.flash{background:#3fae6a1f;border:1px solid #3fae6a66;border-radius:10px;margin:6px 0;padding:10px 12px}.chart{position:relative}.chart svg{touch-action:pan-y;width:100%;height:auto;display:block}.axis-t{fill:var(--muted);font-family:Inter,sans-serif;font-size:10px}.axis-strong{fill:var(--text);font-weight:700}.end-label{fill:var(--text);font-family:Inter,sans-serif;font-size:11px;font-weight:700}.tip{pointer-events:none;white-space:nowrap;color:#17140f;background:#f2efe9;border-radius:8px;padding:5px 9px;font-size:.78rem;position:absolute;top:-6px;transform:translate(-50%);box-shadow:0 4px 14px #0006}.tip .muted{color:#6b6658}.year-select{width:auto;padding:8px 12px}.month-hero{background:linear-gradient(135deg, #2c2416, var(--surface));border-color:#4a3f2c;flex-direction:column;gap:2px;margin-bottom:10px;display:flex}.month-amount{color:var(--gold-light);letter-spacing:-.02em;font-size:2.2rem;font-weight:700}.stat-n.gold{color:var(--gold-light);font-size:1.15rem}.stat-n.red{color:var(--red)}.tbl{border-collapse:collapse;width:100%;margin-top:6px;font-size:.9rem}.tbl td{border-bottom:1px solid var(--line);padding:6px 0}.tbl td:last-child{text-align:right}.breakdown{color:inherit;flex-direction:column;gap:3px;text-decoration:none;display:flex}
