:root{--navy:#0b2c56;--navy2:#164e63;--gold:#c99a32;--teal:#0f766e;--ink:#102a43;--muted:#627d98;--line:#d9e2ec;--bg:#f4f7fb;--white:#fff;--danger:#c0392b;--radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{min-height:100vh;margin:0;background:radial-gradient(circle at 92% 0,#dff3ef 0,transparent 32rem),var(--bg)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{border:0}a{color:var(--teal);text-decoration:none}.page-shell{width:min(1160px,calc(100% - 32px));margin:auto;padding:24px 0 48px}.topbar,.brand-row,.top-actions,.calendar-strip,.calendar-actions,.panel-heading,.legend,.card-label,.next-meta{display:flex;align-items:center}.topbar{justify-content:space-between;gap:20px;margin-bottom:22px}.brand-row{gap:14px}.brand-row img{width:190px;height:52px;object-fit:contain;background:#fff;border:1px solid #e5eaf0;border-radius:12px;padding:7px 10px;box-shadow:0 8px 22px #102a4312}.eyebrow{margin:0;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.brand-row h1{margin:4px 0 0;font-size:clamp(28px,4vw,38px);line-height:1;letter-spacing:-.04em}.top-actions{gap:8px}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:12px;padding:10px 16px;cursor:pointer;font-size:14px;font-weight:750;transition:.2s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--teal);color:#fff;box-shadow:0 8px 20px #0f766e22}.button.outline{border-color:#cbd7e2;background:#fff;color:var(--ink)}.button.small{min-height:36px;padding:8px 12px}.icon-button{display:grid;width:42px;height:42px;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);cursor:pointer}.flash{margin:0 0 16px;border-radius:12px;padding:12px 15px;font-size:14px;font-weight:650}.flash.success{background:#e4f7ef;color:#116149}.flash.error{background:#fff0ee;color:#a12d22}.summary-grid{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(130px,.55fr));gap:14px}.next-card,.count-card{min-height:208px;border-radius:24px}.next-card{padding:24px;color:#fff;background:linear-gradient(135deg,var(--navy),var(--navy2) 72%,var(--teal));box-shadow:0 18px 45px #102a4322}.card-label{justify-content:space-between;color:inherit;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;opacity:.75}.next-card h2{margin:36px 0 5px;font-size:clamp(27px,4vw,38px);line-height:1.1;letter-spacing:-.04em}.next-card p{margin:0;color:#dbe9f4}.next-meta{flex-wrap:wrap;gap:8px 18px;margin-top:22px;color:#d9fff7;font-size:14px}.count-card{display:flex;flex-direction:column;justify-content:flex-end;border:1px solid #fff;background:#ffffffdf;padding:22px;box-shadow:0 12px 35px #102a4310}.count-card .card-label{margin-bottom:auto;color:var(--muted)}.count-card strong{font-size:48px;line-height:1;letter-spacing:-.06em}.count-card small{margin-top:7px;color:var(--muted);font-size:14px}.calendar-strip{gap:14px;margin:14px 0 20px;border:1px solid #c8e8e2;border-radius:18px;background:#ebf8f5;padding:15px}.calendar-bell{display:grid;flex:0 0 44px;height:44px;place-items:center;border-radius:14px;background:#ccebe5;color:var(--teal);font-size:24px}.calendar-strip>div:nth-child(2){flex:1}.calendar-strip h3{margin:0;font-size:16px}.calendar-strip p{margin:3px 0 0;color:#526d82;font-size:14px}.calendar-actions{gap:8px}.schedule-panel{overflow:hidden;border:1px solid #fff;border-radius:24px;background:#ffffffea;box-shadow:0 18px 48px #102a4310}.panel-heading{justify-content:space-between;padding:24px 24px 12px}.panel-heading h2{margin:4px 0 0;font-size:26px;letter-spacing:-.04em}.legend{flex-wrap:wrap;gap:8px 18px;padding:0 24px 20px;color:#526d82;font-size:13px}.legend span{display:flex;align-items:center;gap:7px}.legend i{width:9px;height:9px;border-radius:50%}.legend i.regular{background:#3b82f6}.legend i.evening{background:#f59e0b}.legend i.weekend{background:#8b5cf6}.legend i.masters{background:#10b981}.legend i.personal{background:#e85579}.week-list{border-top:1px solid #e6edf3}.day-row{display:grid;grid-template-columns:130px minmax(0,1fr);border-bottom:1px solid #e6edf3}.day-row:last-child{border-bottom:0}.day-name{padding:22px 24px;color:#334e68}.day-name span{display:none}.day-items{border-left:1px solid #e6edf3;padding:13px}.schedule-card{--group:#3b82f6;--soft:#eaf2ff;position:relative;display:grid;grid-template-columns:145px minmax(0,1fr) 36px;align-items:center;gap:16px;overflow:hidden;margin-bottom:9px;border:1px solid #e2e9ef;border-radius:15px;background:#fff;padding:15px}.schedule-card:last-child{margin-bottom:0}.schedule-card:before{position:absolute;inset:0 auto 0 0;width:5px;background:var(--group);content:""}.schedule-card.evening{--group:#f59e0b;--soft:#fff6dc}.schedule-card.weekend{--group:#8b5cf6;--soft:#f2ecff}.schedule-card.masters{--group:#10b981;--soft:#e3f8f0}.schedule-card.personal{--group:#e85579;--soft:#ffedf2}.time{display:flex;flex-direction:column;padding-left:5px}.time strong{font-size:14px}.time small,.schedule-info small{margin-top:3px;color:#7b93a9;font-size:12px}.pill{display:inline-flex;border-radius:99px;background:var(--soft);padding:4px 8px;color:#334e68;font-size:11px;font-weight:750}.schedule-info h3{margin:6px 0 1px;font-size:16px}.schedule-info p{margin:0;color:var(--muted);font-size:14px}.schedule-info small{display:block}.delete-button{width:34px;height:34px;border-radius:10px;background:transparent;color:#9fb3c8;cursor:pointer;font-size:22px}.delete-button:hover{background:#fff0ee;color:var(--danger)}.empty{display:grid;min-height:280px;place-items:center;align-content:center;gap:7px;border-top:1px solid #e6edf3;padding:30px;text-align:center;color:#7b93a9}.empty>div{font-size:32px}.empty h3{margin:0;color:#334e68}.empty p{margin:0;font-size:14px}.modal{width:min(590px,calc(100% - 28px));max-height:92vh;overflow:auto;border:0;border-radius:22px;padding:0;box-shadow:0 28px 80px #102a4350}.modal::backdrop{background:#0b1f35aa;backdrop-filter:blur(3px)}.modal-card{position:relative;padding:26px}.modal-card h2{margin:5px 0 3px;font-size:27px}.modal-copy{margin:0 0 22px;color:var(--muted);font-size:14px}.modal-close{position:absolute;top:15px;right:15px;width:34px;height:34px;border-radius:10px;background:#eff3f6;color:#526d82;cursor:pointer;font-size:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .wide{grid-column:1/-1}.form-grid label,.stack-form label{display:flex;flex-direction:column;gap:7px;color:#334e68;font-size:13px;font-weight:700}.form-grid input,.form-grid select,.form-grid textarea,.stack-form input{width:100%;border:1px solid #bcccdc;border-radius:11px;background:#fff;padding:11px 12px;color:var(--ink);outline:0}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.stack-form input:focus{border-color:var(--teal);box-shadow:0 0 0 3px #0f766e20}.form-grid textarea{resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.auth-body{display:grid;place-items:center;padding:30px}.auth-shell{display:grid;width:min(940px,100%);grid-template-columns:1.08fr .92fr;overflow:hidden;border-radius:28px;background:#fff;box-shadow:0 25px 80px #102a4322}.auth-brand{display:flex;min-height:580px;flex-direction:column;justify-content:space-between;padding:42px;color:#fff;background:linear-gradient(145deg,var(--navy),#114b5f 70%,var(--teal))}.auth-brand img{width:230px;max-width:75%;border-radius:13px;background:#fff;padding:9px 13px}.auth-brand .eyebrow{color:#94ddd2}.auth-brand h1{max-width:420px;margin:12px 0;font-size:clamp(38px,5vw,58px);line-height:.98;letter-spacing:-.055em}.auth-brand p:last-child{max-width:430px;margin:0;color:#dceaf3;line-height:1.65}.auth-card{align-self:center;padding:42px}.auth-card h2{margin:7px 0 24px;font-size:30px;letter-spacing:-.04em}.stack-form{display:grid;gap:16px}.stack-form .button{margin-top:4px}.auth-switch{margin:22px 0 0;color:var(--muted);font-size:14px;text-align:center}.auth-switch a{font-weight:750}
@media(max-width:760px){.page-shell{width:min(100% - 22px,1160px);padding-top:14px}.topbar{align-items:flex-start}.brand-row{align-items:flex-start;flex-direction:column;gap:7px}.brand-row img{width:145px;height:43px}.brand-row h1{font-size:27px}.top-actions .primary{padding-inline:12px}.summary-grid{grid-template-columns:1fr 1fr}.next-card{grid-column:1/-1}.count-card{min-height:130px}.calendar-strip{align-items:flex-start;flex-wrap:wrap}.calendar-actions{width:100%}.calendar-actions .button{flex:1;padding-inline:10px}.panel-heading{align-items:flex-start;gap:12px}.legend{gap:8px 13px}.day-row{grid-template-columns:48px minmax(0,1fr)}.day-name{display:flex;justify-content:center;padding:17px 4px}.day-name span{display:block;font-size:12px;font-weight:800;text-transform:uppercase}.day-name strong{display:none}.day-items{padding:8px}.schedule-card{grid-template-columns:1fr 34px;gap:10px;padding:13px}.time{grid-column:1;flex-direction:row;gap:6px}.time small:before{content:"· "}.schedule-info{grid-column:1}.schedule-card form{grid-column:2;grid-row:1/3}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.auth-body{padding:13px}.auth-shell{grid-template-columns:1fr}.auth-brand{min-height:260px;padding:28px}.auth-brand img{width:180px}.auth-brand h1{font-size:36px}.auth-card{padding:28px}.modal-card{padding:22px}}
@media(max-width:410px){.top-actions{align-items:flex-end;flex-direction:column-reverse}.top-actions .primary{min-height:39px;font-size:13px}.calendar-actions{flex-direction:column}.calendar-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
