@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500&family=Sora:wght@600;700;800&display=swap";:root{--ink: #1a1a2e;--ink-soft: #4a4a6a;--ink-muted: #8888a8;--surface: #ffffff;--surface-raised: #f8f9fc;--surface-dim: #f0f1f6;--border: #e8e9f0;--border-light: #f0f1f6;--accent: #4a90d9;--accent-hover: rgba(66, 133, 244, .06);--accent-hover-soft: rgba(66, 133, 244, .06);--accent-soft: #eff4ff;--green: #2cb665;--green-soft: #eaf7ef;--amber: #9a6700;--amber-soft: #fff5e8;--red: #dc2626;--red-soft: #fdecec;--success-bg: #eaf7ef;--success-text: #2cb665;--warning-bg: #fff5e8;--warning-text: #9a6700;--danger-bg: #dc2626;--danger-bg-hover: #b91c1c;--danger-text: #ffffff;--brand-navy: #0b1629;--brand-navy-border: #243358;--brand-sky: #38bdf8;--form-text: #1f3150;--form-label: #324b6c;--form-control-bg: #e8edf4;--form-control-border: #e2e8f2;--form-placeholder: #94a3b8;--form-focus: #6da9e8;--form-focus-ring: rgba(77, 143, 224, .18);--button-surface: #dde4ef;--button-surface-hover: #d2dbea;--button-surface-text: #1b2e4a;--button-disabled-bg: #e6ebf3;--button-disabled-text: #97a3b8;--button-disabled-border: #d7deea;--card-bg: #ffffff;--card-border: #d7e0ec;--card-radius: 18px;--card-shadow: 0 1px 0 rgba(15, 23, 42, .02);--radius-sm: 10px;--radius-md: 14px;--radius-lg: 16px;--space-xs: 6px;--space-sm: 8px;--space-md: 12px;--space-lg: 16px;--fs-xs: 11px;--fs-sm: 12px;--fs-md: 13px;--fs-lg: 14px;--fs-xl: 16px}*{box-sizing:border-box}html,body,#root{height:100%;min-height:100%}body{margin:0;font-family:DM Sans,sans-serif;-webkit-font-smoothing:antialiased;color:var(--ink);background:#f8fafb;overflow:hidden}.app-bg{height:100dvh;min-height:100dvh;width:100%;display:flex;align-items:stretch;justify-content:center;padding:0;position:relative;overflow:hidden;background:radial-gradient(1200px 420px at 12% -8%,#2563eb1a,#2563eb00 60%),radial-gradient(980px 380px at 88% -10%,#0596691a,#05966900 58%),#f8fafb}.phone-frame{width:min(1120px,100%);height:100dvh;max-height:100dvh;background:var(--surface);border-radius:24px;border:1px solid #d7dae6;box-shadow:none;overflow:hidden;position:relative;display:flex;flex-direction:column}.app-brand-bar{height:56px;margin:0;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(220px 120px at 88% -24%,#4a90d93d,#4a90d900 70%),linear-gradient(165deg,#1b2e4a,#2d4a6f,#1b2e4a);border:none;border-radius:0;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);flex-shrink:0;position:sticky;top:0;z-index:90}.brand-left{display:flex;align-items:center;gap:8px}.brand-home-btn{border:none;background:transparent;padding:0;cursor:pointer;color:inherit}.brand-home-btn:hover:not(:disabled),.brand-home-btn:focus:not(:disabled),.brand-home-btn:active:not(:disabled){background:transparent!important;box-shadow:none!important}.brand-mark{width:28px;height:28px;border-radius:8px;background:var(--brand-navy);border:1px solid var(--brand-navy-border);color:#fff;font-size:12px;font-weight:700;font-family:Sora,DM Sans,sans-serif;display:inline-flex;align-items:center;justify-content:center;letter-spacing:-.08em;line-height:1}.brand-name{font-size:16px;font-weight:700;letter-spacing:-.3px;font-family:Sora,DM Sans,sans-serif;color:var(--ink)}.brand-name-sync{color:var(--brand-sky)}.brand-bell{width:22px;height:22px;color:var(--ink-soft);position:relative}.brand-bell svg{width:100%;height:100%}.brand-mark-l{color:#f8fafc}.brand-mark-s{color:var(--brand-sky)}.brand-dot{position:absolute;top:-1px;right:-1px;width:8px;height:8px;border-radius:4px;border:2px solid #fff;background:var(--red)}.brand-badge{position:absolute;top:-7px;right:-10px;min-width:16px;height:16px;border-radius:999px;border:1px solid rgba(255,255,255,.72);padding:0 4px;background:var(--red);color:#fff;font-size:10px;font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center}@media(max-width:640px){.brand-badge{min-width:8px;width:8px;height:8px;padding:0;border-radius:999px;top:-2px;right:-2px;font-size:0;line-height:0}}.app-brand-bar .brand-name{color:#f8fbff}.app-brand-bar .brand-name-sync{color:#7ecbff}.app-brand-bar .brand-mark{border-color:#ffffff3d;background:#0b16298f}.app-brand-bar .brand-bell,.app-brand-bar .brand-icon-btn,.app-brand-bar .menu-trigger{color:#dbe9ff}.app-brand-bar .brand-icon-btn:hover:not(:disabled),.app-brand-bar .menu-trigger:hover:not(:disabled){background:#0b16296b}.notifications-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:118;pointer-events:none}.notifications-popover{position:absolute;top:52px;right:14px;width:min(320px,calc(100% - 28px));background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 30px #0f172a29;z-index:120;overflow:hidden;pointer-events:auto}.notifications-popover-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border-light)}.notifications-popover-header h3{margin:0;font-size:14px;font-weight:700;color:var(--ink)}.notifications-count{min-width:18px;height:18px;border-radius:9px;padding:0 6px;background:var(--red-soft);color:var(--red);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.notifications-popover-body{max-height:240px;overflow-y:auto;padding:8px}.notifications-empty{margin:8px;color:var(--ink-muted);font-size:13px}.notifications-item{position:relative;border:1px solid var(--border-light);border-radius:10px;padding:10px 34px 10px 11px;background:#f9fbff}.notifications-item-link{cursor:pointer}.notifications-item-link:hover{border-color:#cfd5e4;background:#eef4ff}.notifications-item-close{position:absolute;top:7px;right:8px;width:22px;height:22px;border:none;border-radius:11px;background:transparent;color:var(--ink-muted);font-size:16px;line-height:1;cursor:pointer}.notifications-item-close:hover{background:#eef2ff;color:var(--ink)}.notifications-item+.notifications-item{margin-top:8px}.notifications-item-title{margin:0;font-size:13px;font-weight:600;color:var(--ink)}.notifications-item-detail{margin:4px 0 0;font-size:12px;color:var(--ink-muted)}.phone-content{flex:1;min-height:0;overflow-y:auto;background:var(--surface-raised);padding:0 16px 86px}.phone-content>*+*{margin-top:12px}.page{width:100%;height:100dvh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px 12px calc(16px + env(safe-area-inset-bottom))}.topbar.panel,.app-header{margin-top:14px;margin-bottom:12px;background:transparent;border:none;box-shadow:none;padding:0}.panel{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--card-radius);padding:var(--space-lg);box-shadow:var(--card-shadow)}.auth-page{display:flex;align-items:flex-start;justify-content:center;background:radial-gradient(680px 280px at 16% 0%,#2563eb24,#2563eb00 60%),radial-gradient(620px 260px at 84% -4%,#0596691f,#05966900 62%),#f8fafb}.auth-panel{position:relative;width:min(560px,100%);margin:6px auto 16px;border-radius:20px;border:1px solid #d8deea;box-shadow:0 18px 40px #0b162914}.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}.auth-panel .auth-brand{height:56px;margin:-14px -14px 14px;padding:0 16px;border-radius:20px 20px 0 0;background:radial-gradient(220px 120px at 88% -24%,#4a90d93d,#4a90d900 70%),linear-gradient(165deg,#1b2e4a,#2d4a6f,#1b2e4a);border-bottom:1px solid rgba(138,167,205,.32)}.auth-panel .auth-brand .brand-name{color:#f8fbff}.auth-panel .auth-brand .brand-name-sync{color:#7ecbff}.auth-panel .auth-brand .brand-mark{border-color:#ffffff3d;background:#0b16298f}.auth-subtitle{margin:6px 0 2px;color:#667085;font-size:13px;line-height:1.45}.auth-form{margin-top:8px}.password-input-wrap{position:relative}.password-input-wrap input{padding-right:42px}.password-visibility-btn{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:30px;height:30px;border:none;border-radius:8px;background:transparent;color:#64748b;padding:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.password-visibility-btn:hover{background:var(--accent-hover-soft);color:#334155}.password-visibility-btn:focus-visible{outline:none;box-shadow:0 0 0 3px #2563eb33}.password-visibility-btn svg{width:16px;height:16px}.password-match-indicator{margin:2px 0 0;font-size:12px;font-weight:600}.password-match-indicator.ok{color:#0f766e}.password-match-indicator.error{color:#b91c1c}.auth-actions{margin-top:6px}.auth-mode-toggle{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#eef2ff;border:1px solid #d3dcf8;border-radius:12px;padding:4px;margin-bottom:14px}.auth-mode-toggle button{border:1px solid transparent;background:transparent;color:#475569;font-weight:700;border-radius:9px;padding:9px 10px;transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}.auth-mode-toggle button:hover{background:var(--accent-hover-soft);color:#1e293b}.auth-mode-toggle button:focus-visible{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px #3b82f633}.auth-mode-toggle button.active{background:#fff;color:var(--accent);border-color:#bcd0ff;box-shadow:0 6px 14px #2563eb24}.auth-landing-page{padding:0;align-items:stretch;background:#f4f6fa}.auth-landing-panel{width:min(430px,100%);max-width:430px;margin:0 auto;height:100dvh;border-radius:0;border:none;box-shadow:none;padding:0;background:#eef1f6;overflow-y:auto;-webkit-overflow-scrolling:touch}.auth-landing-hero-wrap{background:radial-gradient(220px 180px at 86% 16%,#4a90d92e,#4a90d900 72%),radial-gradient(180px 170px at 8% 86%,#48bb781f,#48bb7800 72%),linear-gradient(165deg,#1b2e4a,#2d4a6f,#1b2e4a);padding:14px 20px 24px;position:relative}.auth-landing-login-wrap{position:absolute;top:12px;right:14px;width:78px;height:36px}.auth-landing-login-btn{width:100%;height:100%;border:1px solid rgba(139,164,196,.5);background:#0b162973;color:#e7f1ff;border-radius:10px;font-size:13px;font-weight:700;padding:0}.auth-landing-login-btn:hover{background:#0b16299e}.auth-floating-login-wrap{position:absolute;top:12px;right:12px;width:78px;height:36px}.auth-floating-login-btn{width:100%;height:100%;border:1px solid rgba(139,164,196,.45);background:#1b2e4af0;color:#e7f1ff;border-radius:10px;font-size:13px;font-weight:700;padding:0}.auth-floating-login-btn:hover{background:#1b2e4a}.auth-landing-banner{margin:0 0 18px;border-radius:0;border:none;background:transparent;padding:0;box-shadow:none}.auth-landing-banner-logo{display:inline-flex;align-items:center;gap:10px}.auth-landing-banner-logo .brand-mark{width:28px;height:28px;border-color:#ffffff3d;background:#0b16298f}.auth-landing-banner-logo .brand-name{color:#f8fbff}.auth-landing-banner-logo .brand-name-sync{color:#7ecbff}.auth-landing-hero{padding:0}.auth-landing-hero h1{margin:0;color:#fff;font-family:Fraunces,Georgia,serif;font-size:52px;line-height:1.08;letter-spacing:-.02em}.auth-landing-hero h1 span{display:block;color:#48bb78}.auth-landing-hero .auth-subtitle{margin-top:14px;color:#8ba4c4;font-size:15px;line-height:1.45}.auth-landing-actions{margin-top:24px;display:grid;gap:10px}.auth-landing-actions button{border:none;border-radius:14px;background:#48bb78;color:#fff;font-size:15px;font-weight:700;padding:16px 20px}.auth-landing-proof{margin:0;color:#5a7a9a;font-size:15px;text-align:center}.auth-landing-content{padding:18px 20px 26px}.landing-section{border-top:1px solid #d8dde8;padding-top:16px;margin-top:16px}.landing-section:first-child{border-top:none;margin-top:0;padding-top:0}.landing-eyebrow{margin:0 0 14px;color:#3b82f6;text-transform:uppercase;letter-spacing:.16em;font-weight:700;font-size:13px}.landing-eyebrow.success{color:#38b271}.landing-pain-card{display:flex;gap:12px;background:#fff;border:1px solid #d5dce8;border-radius:14px;padding:14px}.landing-pain-card+.landing-pain-card,.landing-feature-row+.landing-feature-row{margin-top:12px}.landing-icon-box{width:44px;height:44px;border-radius:11px;background:#eef3f9;display:inline-flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}.landing-pain-card h3,.landing-feature-row h3,.landing-price-card h3{margin:0;color:#20314c;font-size:14px;line-height:1.3}.landing-pain-card p,.landing-feature-row p{margin:4px 0 0;color:#64748b;font-size:13px;line-height:1.45}.landing-feature-row{display:flex;gap:12px}.landing-section.pricing{margin-top:22px}.landing-pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.landing-price-card{position:relative;border:1px solid #d5dce8;border-radius:16px;padding:18px 16px;background:#fff}.landing-price-card.popular{border:2px solid #4a90d9;background:#ecf4ff}.landing-popular-pill{position:absolute;top:-10px;left:50%;transform:translate(-50%);background:#4a90d9;color:#fff;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700}.landing-price{margin:8px 0 12px;display:flex;align-items:baseline;gap:4px}.landing-price strong{color:#1b2e4a;font-family:Fraunces,Georgia,serif;font-size:26px;line-height:1}.landing-price span{color:#64748b;font-size:12px}.landing-price-card ul{margin:0;padding:0;list-style:none;display:grid;gap:7px}.landing-price-card li{color:#4a5568;font-size:14px;padding-left:20px;position:relative}.landing-price-card li:before{content:"✓";position:absolute;left:0;color:#38b271;font-weight:700}.auth-back-link{border:none;background:transparent;color:#2563eb;font-size:12px;font-weight:600;padding:4px 0 2px;text-align:left;cursor:pointer}@media(max-width:480px){.auth-landing-hero h1{font-size:32px}.auth-landing-hero .auth-subtitle,.auth-landing-actions button{font-size:15px}.landing-pain-card h3,.landing-feature-row h3,.landing-price-card h3{font-size:14px}.landing-pain-card p,.landing-feature-row p{font-size:13px}.landing-pricing-grid{grid-template-columns:1fr}}.signup-onboarding-shell{border-top:1px solid #e8ecf5;padding-top:10px}.signup-onboarding-head h1{margin:2px 0 0}.signup-onboarding-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 4px}.signup-onboarding-progress span{height:4px;border-radius:999px;background:#e2e8f0;transition:background-color .2s ease}.signup-onboarding-progress span.active{background:#3b82f6}.signup-onboarding-form{gap:10px}.signup-step-caption{margin:2px 0 8px;color:#334155;font-size:13px;font-weight:600}.signup-availability-grid{display:grid;grid-template-columns:38px repeat(7,minmax(0,1fr));gap:4px;margin-bottom:6px}.signup-availability-header{text-align:center;color:#64748b;font-size:10px;font-weight:700}.signup-availability-slot{color:#64748b;font-size:10px;font-weight:700;display:inline-flex;align-items:center}.signup-availability-cell{-moz-appearance:none;appearance:none;-webkit-appearance:none;margin:0;width:100%;min-height:30px;height:30px;border:1px solid #d6deea;background:#f8fafc;border-radius:8px;padding:0;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.signup-availability-cell.active,.signup-availability-cell:checked{background:#3b82f6;border-color:#2563eb}.signup-actions{margin-top:8px;display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.signup-actions button:only-child{grid-column:1 / -1}.checkbox-inline{display:flex;align-items:center;gap:10px;color:#334155;font-size:13px;font-weight:500}.checkbox-inline input{width:16px;height:16px;min-height:16px;margin:0}.grid-two{display:grid;grid-template-columns:1fr;gap:10px}.metric-grid{margin-top:2px;grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:16px;padding:14px 16px}.metric-card .eyebrow{color:#7c8da7}.metric-card .muted{color:#6f86a6;font-weight:600}.metric-card-outstanding{border-color:#f0d8d2;background:#fff8f6}.metric-card-outstanding h2{color:#e56a54}.metric-card-earned{border-color:#cfe8dc;background:#f4fbf7}.metric-card-earned h2{color:var(--success-text)}.stack{display:grid;gap:var(--space-sm)}.stack.compact{max-height:460px;overflow:auto;padding-right:2px}h1,h2{margin:0;color:#1f3150;font-family:Sora,DM Sans,sans-serif;letter-spacing:-.03em;line-height:1.12}h1{font-size:30px;font-weight:700}h2{font-size:24px;font-weight:700}@media(max-width:899px){h1{font-size:28px}h2{font-size:22px}}.eyebrow{margin:0;font-size:var(--fs-xs);font-weight:600;letter-spacing:.3px;color:var(--ink-muted);text-transform:uppercase}.muted{margin:2px 0 0;color:var(--ink-muted);font-size:var(--fs-sm)}label{display:grid;gap:7px;font-size:var(--fs-xs);color:var(--form-label);font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;min-width:0}input,select,textarea,button,a,code{font:inherit}input,select,textarea{width:100%;min-height:48px;font-size:var(--fs-lg);border:1px solid var(--form-control-border);border-radius:var(--radius-md);padding:11px 14px;background:var(--form-control-bg);color:var(--form-text);font-weight:600}select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667a99' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='M1 1.25 6 6.25 11 1.25'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}input[type=checkbox],input[type=radio]{width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;padding:0;border:1px solid var(--form-control-border);border-radius:4px;background:#fff;flex:0 0 16px}@media(max-width:899px){input,select,textarea{font-size:16px}}textarea{min-height:108px;resize:vertical}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--form-focus);box-shadow:0 0 0 3px var(--form-focus-ring)}input::placeholder,textarea::placeholder{color:var(--form-placeholder);font-weight:600}input[type=datetime-local]{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;padding-right:34px;text-align:left;text-align-last:left}input[type=datetime-local]::-webkit-datetime-edit{text-align:left}input[type=datetime-local]::-webkit-date-and-time-value{text-align:left;min-width:0}input[type=datetime-local]::-webkit-datetime-edit-fields-wrapper{display:flex;justify-content:flex-start;min-width:0}input[type=datetime-local]::-webkit-calendar-picker-indicator{margin-left:auto}input[type=date],input[type=time]{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;text-align:left;text-align-last:left}input[type=date]::-webkit-datetime-edit,input[type=time]::-webkit-datetime-edit,input[type=date]::-webkit-date-and-time-value,input[type=time]::-webkit-date-and-time-value{text-align:left;min-width:0}input[type=date]::-webkit-datetime-edit-fields-wrapper,input[type=time]::-webkit-datetime-edit-fields-wrapper{display:flex;justify-content:flex-start;min-width:0}input[type=date]::-webkit-calendar-picker-indicator,input[type=time]::-webkit-calendar-picker-indicator{margin-left:auto}.modal-sheet .stack>label,.modal-sheet .stack>label>input[type=datetime-local]{min-width:0;max-width:100%}.modal-sheet .stack>label>input[type=date],.modal-sheet .stack>label>input[type=time]{min-width:0;max-width:100%;width:calc(100% - 10px)}@media(max-width:899px){.modal-sheet .stack>label,.modal-sheet .stack>label>input[type=date],.modal-sheet .stack>label>input[type=time]{width:100%;max-width:100%;min-width:0}}button{min-height:42px;border:none;border-radius:var(--radius-sm);padding:0 14px;background:var(--accent);color:#fff;font-size:var(--fs-md);font-weight:700;cursor:pointer}button:hover:not(:disabled){background:var(--accent-hover-soft);color:var(--accent)}button.secondary{background:var(--button-surface);color:var(--button-surface-text);border:1px solid var(--border)}button.secondary:hover:not(:disabled),button.secondary:focus:not(:disabled),button.secondary:active:not(:disabled){background:var(--button-surface-hover)}button:disabled{opacity:1;background:var(--button-disabled-bg)!important;color:var(--button-disabled-text)!important;border-color:var(--button-disabled-border)!important;box-shadow:none!important;filter:saturate(.65);cursor:not-allowed}.actions{display:flex;gap:var(--space-sm);align-items:center;flex-wrap:wrap}.actions.inline{display:flex;gap:var(--space-sm)}.actions:not(.inline)>button{flex:1 1 140px}.invoice-row{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--radius-lg);padding:var(--space-md) 14px;display:flex;justify-content:space-between;gap:10px}.accent-strip-card{position:relative;overflow:hidden;padding-left:20px}.accent-strip{position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:var(--radius-lg) 0 0 var(--radius-lg)}.invoice-row-student-head{display:inline-flex;align-items:center;gap:8px}.invoice-row-student-avatar{width:30px;height:30px;border-radius:10px;border:1px solid #d5dfec;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-xs);font-weight:700;flex:0 0 30px}.invoice-outstanding-card{background:#fff;border:1px solid #d7dae6;border-radius:16px;padding:16px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.invoice-outstanding-label{margin:0;text-transform:uppercase;letter-spacing:.04em;font-size:12px;color:#8a90b2;font-weight:600}.invoice-outstanding-value{margin:4px 0 0;font-size:28px;line-height:1;letter-spacing:-.02em;font-weight:700;color:#1e2333}.invoice-payment-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:16px;padding:12px 14px;margin-bottom:12px}.invoice-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:16px;padding:12px 14px;display:grid;gap:10px}.invoice-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.invoice-card-student{margin:0;color:var(--ink);font-weight:700;font-size:14px}.invoice-card-id{margin:2px 0 0;color:var(--ink-muted);font-family:JetBrains Mono,monospace;font-size:11px}.invoice-card-right{text-align:right}.invoice-card-amount{margin:0;color:var(--ink);font-size:18px;font-weight:700}.invoice-card-meta{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--ink-muted);font-size:11px}.invoice-status{display:inline-flex;align-items:center;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:600;margin-top:4px}.invoice-status-draft{background:var(--surface-dim);color:var(--ink-muted)}.invoice-status-sent{background:var(--amber-soft);color:var(--amber)}.invoice-status-overdue{background:var(--red-soft);color:var(--red)}.invoice-status-paid{background:var(--green-soft);color:var(--green)}.invoice-status-pending-cash{background:var(--warning-bg);color:var(--warning-text);border:1px solid #f3d88a}.invoice-cash-meta{margin-top:6px}.invoice-status-void{background:var(--surface-dim);color:var(--ink-muted)}.invoice-card-actions{margin-top:2px}.invoice-card-actions input{width:132px;min-height:38px;padding:7px 10px}.invoice-screen{padding-top:6px}.invoice-screen-header{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px}.invoice-screen-header h1{font-size:18px;line-height:1.1;font-weight:700;letter-spacing:-.01em;margin:0}.invoice-tab-strip{margin-bottom:8px;background:var(--surface-dim);border-radius:12px;padding:4px}.invoice-metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.invoice-metric-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 11px}.invoice-metric-label{margin:0;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-muted)}.invoice-metric-value{margin:5px 0 0;font-size:18px;font-weight:700;color:var(--ink);line-height:1.1}.invoice-metric-value.ok{color:var(--green)}.invoice-metric-value.warn{color:var(--red)}.invoice-metric-meta{margin:4px 0 0;font-size:11px;color:var(--ink-muted)}.invoice-overdue-panel{border:1px solid #f1d0d0;background:#fff;border-radius:12px;padding:12px;margin-bottom:10px}.invoice-overdue-item{border:1px solid #f2d7d7;border-radius:10px;background:snow;padding:10px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px}.invoice-overdue-title{margin:0;font-size:13px;font-weight:700;color:var(--ink)}.invoice-overdue-meta{margin:2px 0 0;font-size:11px;color:var(--ink-muted)}.invoice-tab-strip .chip{flex:1;border-radius:10px}.invoice-send-all{min-height:40px;border-radius:12px;padding:0 14px;background:var(--accent);color:#fff;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:7px}.invoice-send-all-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;opacity:.95}.invoice-send-all-icon svg{width:14px;height:14px}.invoice-card-list{gap:10px}.invoice-card-clean{cursor:pointer}.invoice-card-clean:hover{border-color:#d6deef}.invoice-create-screen{margin-top:6px}.notice{margin:0;border-radius:12px;padding:11px 14px;font-size:14px;font-weight:700;line-height:1.35;border:1px solid transparent;box-shadow:0 10px 28px #0f172a2e}.notice-success{border-color:#b7ebd0;background:var(--success-bg);color:var(--success-text)}.notice-warning{border-color:#f5d7a1;background:var(--warning-bg);color:var(--warning-text)}.notice-error{border-color:#f2b8be;background:var(--red-soft);color:#b42318}.notice.global{position:fixed;left:50%;transform:translate(-50%);bottom:calc(env(safe-area-inset-bottom,8px) + 84px);z-index:120;width:min(760px,calc(100vw - 24px))}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid var(--border-light);padding:8px 6px;font-size:13px}th{color:var(--ink-soft);font-weight:600}.collapsible-panel{padding-top:6px}.collapsible-summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0 10px}.collapsible-summary::-webkit-details-marker{display:none}.summary-main{display:flex;align-items:center;gap:10px}.summary-icon{width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);font-size:14px}.collapsible-meta{font-size:11px;font-weight:600;color:var(--ink-muted);background:var(--surface-dim);border:1px solid var(--border);border-radius:999px;padding:3px 10px}.collapsible-body{padding-top:4px}.group-switcher{display:flex;gap:8px;flex-wrap:wrap}.chip{min-height:34px;padding:0 12px;border-radius:20px;border:1px solid var(--border);background:var(--surface-dim);color:var(--ink-soft);font-size:12px;font-weight:600}.chip.active{border-color:#bcd0ff;background:#fff;color:var(--accent);box-shadow:0 2px 8px #2563eb1f}.bottom-nav{position:sticky;bottom:0;left:0;right:0;z-index:80;display:flex;justify-content:space-around;align-items:center;background:#fffffff5;border-top:1px solid var(--border);box-shadow:0 -6px 18px #0f172a0a;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:6px 0 env(safe-area-inset-bottom,8px)}.nav-item{border:none;background:none;color:var(--ink-muted);min-height:auto;padding:4px 8px;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;font-weight:600}.bottom-nav .nav-item.active{color:var(--accent)!important;background:transparent!important}.bottom-nav .nav-item.active>span:not(.nav-icon){color:var(--accent)!important}.bottom-nav .nav-item.active .nav-icon{color:var(--accent)!important}.bottom-nav .nav-item:hover{color:#4c77ee;background:transparent}.bottom-nav .nav-item:hover>span:not(.nav-icon){color:#4c77ee}.bottom-nav .nav-item:hover .nav-icon{color:#4c77ee}.nav-icon{width:20px;height:20px;display:inline-flex}.nav-icon svg{width:100%;height:100%}.fab{position:absolute;right:20px;bottom:74px;width:52px;height:52px;border-radius:16px;background:var(--accent);color:#fff;border:none;box-shadow:0 4px 16px #2563eb59;z-index:70;padding:0;display:inline-flex;align-items:center;justify-content:center}.fab svg{width:24px;height:24px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#1a1a2e5c;display:grid;place-items:center;padding:10px 10px calc(env(safe-area-inset-bottom,16px) + var(--space-md));z-index:100}.modal-sheet{width:min(1100px,100%);max-height:min(92vh,calc(100dvh - env(safe-area-inset-bottom,16px) - 20px));display:grid;grid-template-rows:auto minmax(0,1fr);gap:var(--space-sm);overflow:hidden}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:var(--space-sm);flex-wrap:wrap}.modal-header-actions,.modal-title-with-icon{display:inline-flex;align-items:center;gap:8px}.modal-title-icon{width:30px;height:30px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:inline-flex;align-items:center;justify-content:center}.modal-title-icon svg{width:16px;height:16px}.modal-sheet>.stack{min-height:0;overflow-y:auto;padding-right:2px;padding-bottom:calc(env(safe-area-inset-bottom,16px) + var(--space-md))}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--button-surface);color:var(--button-surface-text);text-decoration:none;padding:0 12px;font-size:var(--fs-md);font-weight:700}.modal-frame{width:100%;min-height:70vh;border:1px solid var(--border);border-radius:12px;background:#fff}.invoice-preview-backdrop{align-items:center;padding:0}.invoice-preview-sheet{width:min(1120px,calc(100vw - 28px));height:min(97vh,calc(100dvh - env(safe-area-inset-bottom,8px) - 8px));max-height:min(97vh,calc(100dvh - env(safe-area-inset-bottom,8px) - 8px));background:var(--surface);border-radius:24px;box-shadow:0 -8px 40px #00000026;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden}.invoice-preview-handle-wrap{display:flex;justify-content:center;padding:10px 0 4px}.invoice-preview-handle{width:36px;height:4px;border-radius:99px;background:var(--border)}.invoice-preview-header{padding:4px 20px 14px;border-bottom:1px solid var(--border-light);display:flex;justify-content:space-between;align-items:center;gap:12px}.invoice-preview-header h2{margin:2px 0 0;font-size:13px;color:var(--ink-soft);font-weight:600}.invoice-preview-label{margin:0;font-size:16px;line-height:1.2;color:var(--ink);font-weight:700}.invoice-preview-close{width:40px;height:40px;border-radius:12px;border:none;background:var(--surface-dim);color:var(--ink-soft);display:inline-flex;align-items:center;justify-content:center}.invoice-preview-close svg{width:20px;height:20px}.invoice-preview-scroll{min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:12px 16px}.invoice-preview-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:10px;padding:10px 14px;background:var(--surface-raised);border:1px solid var(--border);margin-bottom:10px}.invoice-preview-status-meta{font-size:12px;color:var(--ink-muted)}.invoice-preview-doc-shell{flex:0 0 auto;min-height:620px;height:min(73vh,760px);border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--surface)}.invoice-pay-head-left{display:inline-flex;align-items:center;gap:8px}.invoice-pay-icon{width:24px;height:24px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;font-family:DM Sans,sans-serif}.invoice-pay-icon-bank{background:#1a1a2e}.invoice-pay-icon-dd{background:#00b4d8}.invoice-pay-icon-card{background:#635bff}.invoice-preview-fit-canvas-wrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#fff}.invoice-preview-fit-canvas{display:block;max-width:100%;max-height:100%}.invoice-preview-frame{width:100%;height:100%;min-height:520px;border:none;background:#fff}.invoice-preview-loading{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--ink-soft);font-size:14px;font-weight:600;background:#fff}.invoice-pay-section{margin-top:10px;display:grid;gap:8px;padding:0 6px}.invoice-pay-title{margin:0;font-size:12px;font-weight:700;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.04em}.invoice-pay-card{border:1px solid var(--border);border-radius:12px;background:#fff;padding:10px 12px;margin:0 4px}.invoice-pay-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.invoice-pay-copy,.invoice-pay-ref,.invoice-pay-chip-row{margin:4px 0 0;font-size:12px;color:var(--ink-soft)}.invoice-pay-copy-row{display:block;margin:0;padding:0}.invoice-pay-copy-row .invoice-pay-copy,.invoice-pay-copy-row .invoice-pay-ref{margin:0}.invoice-pay-detail-block{margin:2px 0 0;padding:0}.invoice-pay-detail-line{margin:0;padding:0}.invoice-pay-detail-line+.invoice-pay-detail-line{margin-top:0}.invoice-pay-detail-line .invoice-pay-copy,.invoice-pay-detail-line .invoice-pay-ref{margin:0}.invoice-pay-copy-inline{display:flex;align-items:center;gap:4px;color:var(--ink-soft);line-height:1.1}.invoice-pay-copy-icon-btn{margin-top:0;width:16px;height:16px;min-height:0;min-width:0;border:none;border-radius:0;background:transparent;color:var(--ink-muted);display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;cursor:pointer;box-shadow:none;padding:0;line-height:1}.invoice-pay-copy-icon-btn svg{width:13px;height:13px}.invoice-pay-copy-icon-btn:hover:not(:disabled),.invoice-pay-copy-icon-btn:focus-visible:not(:disabled),.invoice-pay-copy-icon-btn:active:not(:disabled){background:transparent;color:var(--accent);transform:none}.invoice-pay-copy-icon-btn:disabled{background:transparent!important;color:#99a7bd!important;border:none!important}.invoice-pay-mono{font-family:JetBrains Mono,monospace;font-size:11.5px}.invoice-pay-badge{border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700}.invoice-pay-chip-btn{min-height:0;border:none;cursor:pointer;padding:2px 8px;line-height:1.2;box-shadow:none}.invoice-pay-chip-btn:hover:not(:disabled),.invoice-pay-chip-btn:active:not(:disabled){filter:brightness(.97);transform:none}.invoice-pay-badge-green{background:var(--green-soft);color:var(--green)}.invoice-pay-badge-teal{background:#e6fffb;color:#0f766e}.invoice-pay-badge-blue{background:#eaf1ff;color:var(--accent)}.invoice-pay-badge-purple{background:#f3e8ff;color:#7c3aed}.invoice-pay-received{border:1px solid #b9ead8;border-radius:12px;background:var(--success-bg);padding:12px}.invoice-pay-received-title{margin:0;font-size:14px;font-weight:700;color:var(--success-text)}.invoice-pay-received-meta{margin:4px 0 0;font-size:12px;color:var(--success-text)}.invoice-preview-actions{border-top:1px solid var(--border-light);padding:10px 14px calc(env(safe-area-inset-bottom,16px) + 10px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;background:#f9fafc}.invoice-preview-action{min-height:64px;border-radius:14px;border:1px solid #d8deed;background:var(--button-surface);color:#626a88;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-decoration:none;font-size:10px;font-weight:700;letter-spacing:.01em;line-height:1.1;padding:6px 4px 5px;box-shadow:0 1px #10182805;-webkit-tap-highlight-color:transparent}.invoice-preview-action:hover:not(:disabled),.invoice-preview-action:focus:not(:disabled),.invoice-preview-action:active:not(:disabled){background:var(--button-surface-hover)}.invoice-preview-action-download:hover:not(:disabled),.invoice-preview-action-download:focus:not(:disabled),.invoice-preview-action-download:active:not(:disabled){color:#4f5674}.invoice-preview-action-email:hover:not(:disabled),.invoice-preview-action-email:focus:not(:disabled),.invoice-preview-action-email:active:not(:disabled){color:var(--accent)}.invoice-preview-action-sent:hover:not(:disabled),.invoice-preview-action-sent:focus:not(:disabled),.invoice-preview-action-sent:active:not(:disabled){color:var(--success-text)}.invoice-preview-action-delete:hover:not(:disabled),.invoice-preview-action-delete:focus:not(:disabled),.invoice-preview-action-delete:active:not(:disabled){color:var(--red)}.invoice-preview-action-icon{display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center}.invoice-preview-action-icon svg{width:19px;height:19px}.invoice-preview-action-label{white-space:nowrap}.invoice-preview-action-download{color:#4f5674}.invoice-preview-action-email{color:var(--accent)}.invoice-preview-action-sent{color:var(--success-text)}.invoice-preview-action-delete{color:var(--red)}.invoice-preview-action:active{transform:translateY(1px)}.invoice-preview-action.is-disabled{opacity:.45}@media(max-width:640px){.invoice-preview-backdrop{align-items:end;top:0;right:0;bottom:0;left:0;padding:0}.invoice-preview-sheet{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-top-left-radius:0;border-top-right-radius:0}.invoice-preview-scroll{padding:0}.invoice-preview-actions{padding:9px 10px calc(env(safe-area-inset-bottom,16px) + 8px);gap:6px}.invoice-preview-status-row{flex-wrap:wrap;margin:10px}.invoice-preview-doc-shell{border:none;border-radius:0;width:100%}.invoice-preview-frame{min-height:0;width:100%;transform:none;display:block}.invoice-preview-doc-shell{min-height:360px;height:min(50vh,440px)}}.invite-disclosure{margin-top:10px;border-top:1px solid var(--border-light);padding-top:8px}.invite-summary{list-style:none;cursor:pointer;font-size:12px;font-weight:700;color:var(--ink-soft)}.invite-summary::-webkit-details-marker{display:none}.invoice-filters{margin-bottom:8px}.lesson-pick{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--ink-soft)}.lesson-pick input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:var(--accent)}a{color:var(--accent);text-decoration:none;font-weight:600}a:hover{text-decoration:underline}@media(max-width:720px){.table-wrap thead{display:none}.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}.table-wrap tr{border:1px solid var(--border);border-radius:10px;padding:8px;margin-bottom:8px;background:#fff}.table-wrap td{border-bottom:0;padding:4px 0}.table-wrap td:before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:var(--ink-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}}@media(min-width:900px){body{overflow:auto}.app-bg{min-height:100vh;height:auto;align-items:center;padding:24px 12px;overflow:visible}.phone-frame{width:min(1120px,100%);height:calc(100vh - 48px);max-height:920px;border-radius:24px;box-shadow:0 28px 60px #0b162924}.phone-content{padding-bottom:24px}.grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{border-top:1px solid var(--border)}.fab{position:absolute;right:20px;bottom:74px}}.brand-right{display:inline-flex;align-items:center;gap:6px}.brand-icon-btn{width:34px;height:34px;min-height:34px;padding:0;border:none;border-radius:9px;background:transparent;color:var(--ink-soft);display:inline-flex;align-items:center;justify-content:center}.brand-icon-btn:hover:not(:disabled){background:var(--surface-dim)}.brand-icon-btn svg{width:19px;height:19px}.menu-trigger{width:34px;height:34px;min-height:34px;padding:0;border:none;border-radius:9px;background:transparent;color:var(--ink-soft);display:inline-flex;align-items:center;justify-content:center}.menu-trigger:hover:not(:disabled){background:var(--surface-dim)}.menu-trigger svg{width:20px;height:20px}.sidebar-sync-note{margin:4px 2px 2px;font-size:11px;line-height:1.35;color:var(--ink-muted)}.calendar-sync-note{margin:0 0 10px;border:1px solid var(--border);background:var(--surface-dim);border-radius:10px;padding:8px 10px;font-size:12px;color:var(--ink-soft)}.home-welcome{padding:14px 2px 8px}.welcome-date{margin:0;font-size:14px;color:var(--ink-muted);font-weight:500}.welcome-title{margin-top:4px;font-size:24px;line-height:1.2}.section-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-weekly-header{align-items:center}.home-weekly-header-left{display:inline-flex;align-items:center;gap:8px;min-width:0}.home-weekly-header-left h2{white-space:nowrap}.home-weekly-count{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-sm);font-weight:700;line-height:1}.home-weekly-view-all{margin-left:auto;min-height:34px;border-radius:999px;padding:0 12px}.home-weekly-view-all-link{margin-left:auto;min-height:auto;padding:0;border:none;border-radius:0;background:transparent;color:var(--accent);font-size:var(--fs-lg);font-weight:700}.home-weekly-view-all-link:hover:not(:disabled),.home-weekly-view-all-link:focus:not(:disabled),.home-weekly-view-all-link:active:not(:disabled){background:transparent;color:var(--accent-hover);text-decoration:underline}@media(max-width:760px){.home-weekly-header{gap:8px}.home-weekly-header-left{min-width:0;overflow:hidden}.home-weekly-header-left h2{font-size:18px}.home-weekly-view-all{flex:0 0 auto;min-width:74px;padding:0 10px}.home-weekly-view-all-link{flex:0 0 auto;min-width:56px;font-size:var(--fs-md)}}.students-head,.calendar-header-row,.invoice-screen-header,.parent-header-copy,.modal-header,.section-row:has(>h2):not(.student-card-title):not(.parent-note-row){border-bottom:1px solid #d6dfeb;padding-bottom:var(--space-md);margin-bottom:var(--space-md)}.schedule-list{display:grid;gap:8px;margin-top:10px}.schedule-item{display:flex;gap:12px;background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--radius-lg);padding:var(--space-md)}.schedule-item.accent-strip-card{padding-left:calc(var(--space-md) + 12px)}.schedule-item .accent-strip{left:0;top:0;bottom:0;width:4px;border-radius:var(--radius-lg) 0 0 var(--radius-lg)}.schedule-main{flex:1;min-width:0}.schedule-student-avatar{width:38px;height:38px;border-radius:12px;border:1px solid #d5dfec;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-md);font-weight:700;flex:0 0 38px}.action-needed-panel{padding:14px}.action-needed-list{display:grid;gap:8px;margin-top:10px}.action-needed-item{width:100%;border:1.5px solid var(--card-border);background:var(--card-bg);border-radius:var(--radius-lg);padding:var(--space-md) 14px;text-align:left;display:grid;gap:2px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.action-needed-item:hover:not(:disabled){background:#f9fafc}.action-needed-overdue{border-color:#f4d1ca}.action-needed-draft{border-color:#ecdab1}.action-needed-notes{border-color:#c8d9ff}.action-needed-invites{border-color:#d3dae6}.action-needed-reconciliation{border-color:#c6d2e8}.invoice-bulk-actions{margin-top:8px;margin-bottom:6px}.action-needed-title{font-size:var(--fs-md);line-height:1.25;font-weight:600;color:var(--ink)}.action-needed-meta{font-size:var(--fs-sm);line-height:1.3;color:var(--ink-muted)}.action-needed-meta-row{display:inline-flex;align-items:center;gap:8px}.action-needed-student-avatar{width:28px;height:28px;border-radius:10px;border:1px solid #d5dfec;display:inline-flex;align-items:center;justify-content:center;font-size:var(--fs-xs);font-weight:700;flex:0 0 28px}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 11px;font-size:var(--fs-xs);font-weight:700;border:1px solid transparent}.status-pill:before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor}.status-scheduled{background:var(--accent-soft);color:var(--accent)}.status-completed{background:var(--success-bg);color:var(--success-text)}.status-other{background:#edf1f6;color:#7890ab}.next-lesson-card{background:linear-gradient(135deg,#2563eb,#1e40af);border:none;color:#fff}.next-lesson-card .eyebrow{color:#ffffffc2}.next-lesson-card h2{color:#fff;font-size:20px}.next-lesson-time{display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:6px 10px;border-radius:10px;background:#fff3;font-size:20px;font-weight:700;letter-spacing:-.02em}.next-lesson-meta{margin:6px 0 0;color:#ffffffe0;font-size:13px}.sidebar-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1a1a2e66;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:150;animation:fade-in .2s ease forwards}.sidebar-drawer{position:absolute;top:0;right:0;bottom:0;width:min(320px,82vw);background:var(--surface);border-top-left-radius:24px;border-bottom-left-radius:24px;box-shadow:-8px 0 40px #0000001f;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;animation:slide-in-right .28s cubic-bezier(.16,1,.3,1) forwards}.sidebar-head{padding:20px 20px 16px;border-bottom:1px solid var(--border-light)}.sidebar-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.sidebar-title{margin:0;font-size:16px;line-height:1.15;font-weight:700;color:var(--ink)}.sidebar-email{margin:4px 0 0;font-size:12px;color:var(--ink-muted);word-break:break-word}.sidebar-userid{margin:4px 0 0;font-size:11px;color:var(--ink-muted);word-break:break-all}.sidebar-close{width:32px;height:32px;min-height:32px;padding:0;border-radius:10px;border:none;background:var(--surface-dim);color:var(--ink-soft);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.sidebar-close:hover:not(:disabled){background:var(--border)}.sidebar-close svg{width:16px;height:16px}.sidebar-quick-stats{display:flex;gap:0;margin-top:14px;padding:10px 12px;border-radius:10px;background:var(--surface-raised)}.sidebar-quick-stats>div{flex:1;text-align:center}.sidebar-quick-stats>div+div{border-left:1px solid var(--border)}.sidebar-quick-stats strong{display:block;font-size:16px;line-height:1.1;color:var(--ink)}.sidebar-quick-stats span{display:block;margin-top:2px;font-size:10px;font-weight:600;color:var(--ink-muted)}.sidebar-actions{padding:8px 12px;overflow-y:auto;display:grid;gap:2px;align-content:start}.menu-row{width:100%;padding:12px 10px;border:none;border-radius:12px;background:transparent;color:var(--ink);display:flex;align-items:center;gap:14px;text-align:left;opacity:0;transform:translate(20px);animation:menu-row-in .3s cubic-bezier(.16,1,.3,1) forwards}.menu-row:nth-of-type(1){animation-delay:.04s}.menu-row:nth-of-type(2){animation-delay:.08s}.menu-row:nth-of-type(3){animation-delay:.12s}.menu-row:nth-of-type(4){animation-delay:.16s}.menu-row:nth-of-type(5){animation-delay:.2s}.menu-row:nth-of-type(6){animation-delay:.24s}.menu-row:nth-of-type(7){animation-delay:.28s}.menu-row:hover:not(:disabled),.menu-row:focus-visible:not(:disabled),.menu-row:active:not(:disabled){background:var(--accent-hover-soft)}.menu-row-google:hover:not(:disabled),.menu-row-google:focus-visible:not(:disabled),.menu-row-google:active:not(:disabled){background:var(--accent-hover-soft)!important}.menu-row:disabled{opacity:.55;cursor:not-allowed}.menu-row-tile{width:38px;height:38px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.menu-row-tile svg{width:18px;height:18px}.menu-tile-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--ink-muted)}.menu-tile-icon-profile{color:#1d3557}.menu-tile-icon-create-invoice{color:#334155}.menu-tile-icon-add-student{color:#0f766e}.menu-tile-icon-create-lesson{color:#b91c1c}.menu-tile-icon-reminders{color:#b8860b}.menu-tile-icon-messages{color:#4f46e5}.menu-tile-icon-invite-parent{color:#7c3aed}.menu-row-tile-accent,.menu-row-tile-purple,.menu-row-tile-green,.menu-row-tile-amber,.menu-row-tile-google,.menu-row-tile-slate{background:var(--surface-dim);color:var(--ink-muted)}.menu-row-copy{flex:1;min-width:0;display:grid;gap:1px}.menu-row-label{display:block;font-size:14px;line-height:1.2;font-weight:600;color:var(--ink)}.menu-row-desc{display:block;font-size:11px;line-height:1.25;color:var(--ink-muted)}.menu-row-chevron{color:var(--ink-muted);opacity:.45;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.menu-row-chevron svg{width:14px;height:14px}.menu-divider{height:1px;background:var(--border-light);margin:8px}.menu-row-separated{margin-top:2px}.menu-row-danger .menu-row-label{color:var(--ink)}.sidebar-foot{padding:12px 20px 16px;border-top:1px solid var(--border-light);text-align:center}.sidebar-foot p{margin:0;font-size:10px;color:var(--ink-muted)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes menu-row-in{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}.student-dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:8px;vertical-align:middle}.calendar-panel{overflow:hidden}.calendar-header-row{display:grid;gap:7px;margin-bottom:8px}.calendar-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.schedule-add-btn{min-height:38px;padding:0 14px 0 10px;border-radius:14px;box-shadow:0 6px 14px #4288db38}.calendar-range-label{margin:0 0 2px;font-size:21px;line-height:1.15;font-weight:700;letter-spacing:-.01em;color:var(--ink)}.calendar-toolbar-stack{display:grid;gap:6px}.calendar-nav-sync-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-mode-toggle .chip{min-height:34px;border:1px solid transparent;border-radius:10px;background:transparent;color:#6f84a1;font-weight:700}.calendar-mode-toggle .chip.active{background:#fff;color:#1f3150;border-color:#dbe4ef;box-shadow:none}.calendar-nav-row{display:flex;align-items:center;justify-content:flex-start;gap:4px}.calendar-nav-btn{min-height:30px;width:30px;padding:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}.calendar-nav-icon{width:16px;height:16px;display:inline-flex}.calendar-nav-icon svg{width:100%;height:100%}.calendar-nav-icon-left{transform:rotate(180deg)}.calendar-sync-inline{margin-bottom:8px;border:1px solid var(--card-border);border-radius:12px;background:#fff;padding:8px 10px;display:grid;gap:8px}.calendar-sync-inline-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-sync-inline-copy{min-width:0}.calendar-sync-inline-actions{display:inline-flex;align-items:center;gap:6px}.calendar-sync-now-btn{min-height:28px;padding:0 9px;border-radius:9px;font-size:11px;font-weight:700}.calendar-sync-inline-title{margin:0;font-size:12px;font-weight:700;color:var(--ink);display:inline-flex;align-items:center;gap:6px}.calendar-sync-inline-meta{margin:1px 0 0;font-size:10px;color:var(--ink-muted)}.calendar-sync-toggle-row{margin:0 0 0 auto;border:none;border-radius:0;background:transparent;padding:0;display:flex;align-items:center;justify-content:flex-end;gap:4px;text-align:left}.calendar-sync-toggle-row:hover:not(:disabled),.calendar-sync-toggle-row:focus-visible:not(:disabled),.calendar-sync-toggle-row:active:not(:disabled){background:var(--accent-hover-soft)!important}.calendar-sync-toggle-title{font-size:11px;font-weight:700;color:var(--accent);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.calendar-sync-toggle-icon{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center;color:var(--accent);transition:transform .2s ease}.calendar-sync-toggle-icon svg{width:100%;height:100%}.calendar-sync-toggle-icon.open{transform:rotate(90deg)}.calendar-sync-google-icon{width:12px;height:12px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 12px}.calendar-sync-google-icon svg{width:100%;height:100%}.google-unmatched-panel{border-top:1px solid var(--border-light);padding-top:8px}.google-unmatched-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.google-unmatched-badges{display:inline-flex;align-items:center;gap:6px}.google-unmatched-title{margin:0;font-size:11px;font-weight:700;color:var(--ink);text-transform:uppercase;letter-spacing:.04em}.google-unmatched-count{min-width:18px;height:18px;padding:0 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.google-unmatched-count.muted{background:#eef2f8;color:#6f7f99}.google-unmatched-empty{margin:6px 0 0;font-size:11px;color:var(--ink-muted)}.google-unmatched-list{margin-top:6px;display:grid;gap:6px}.google-unmatched-list.muted-list{margin-top:8px}.google-unmatched-item{border:1px solid var(--border-light);border-radius:10px;background:#fff;padding:7px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.google-unmatched-item.muted-item{opacity:.82}.google-unmatched-item-main{min-width:0}.google-unmatched-item-title{margin:0;font-size:12px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.google-unmatched-item-meta{margin:2px 0 0;font-size:10px;color:var(--ink-muted)}.google-unmatched-ignore-btn{min-height:24px;padding:0 8px;border-radius:8px;font-size:10px;font-weight:700;flex:0 0 auto}.google-unmatched-hint{margin:6px 0 0;font-size:10px;color:var(--ink-muted)}@media(max-width:560px){.calendar-sync-toggle-title{font-size:10px}}.calendar-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:12px}.calendar-day{border:none;border-radius:10px;min-height:52px;background:var(--surface-dim);color:var(--ink-soft);display:grid;place-items:center;gap:2px;padding:6px 2px}.calendar-day span{font-size:10px;font-weight:600;opacity:.8}.calendar-day strong{font-size:16px;line-height:1}.calendar-day.active{background:#fff;border:1px solid #bcd0ff;color:var(--accent);box-shadow:0 2px 10px #2563eb1f}.calendar-timeline{position:relative;margin-left:44px;min-height:720px}.calendar-hour-row{height:60px;border-top:1px solid var(--border-light);position:relative}.calendar-hour-label{position:absolute;left:-44px;top:-7px;width:36px;text-align:right;font-size:10px;color:var(--ink-muted);font-family:JetBrains Mono,monospace}.calendar-lesson{position:absolute;left:4px;right:0;border-left:3px solid var(--accent);border-radius:10px;background:#f5f8ff;padding:6px 10px;overflow:hidden}.calendar-lesson strong{font-size:12px}.calendar-lesson .muted{font-size:11px}.students-panel{padding:var(--space-lg)}.students-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:0}.students-head h2{font-size:24px;letter-spacing:-.02em;color:#1d2f4f}.students-add-btn{min-height:42px;padding:0 16px 0 12px;border-radius:var(--radius-md);border:1px solid var(--accent);background:var(--accent);color:#f8fbff;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:8px;box-shadow:0 6px 14px #2563eb38}.students-add-btn:hover:not(:disabled){background:var(--accent-hover-soft);color:var(--accent);border-color:#4285f438;box-shadow:0 4px 10px #2563eb14}.students-add-btn-icon{width:18px;height:18px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:#ffffff24;font-size:16px;line-height:1}.students-list{display:grid;gap:8px}.students-controls{display:grid;gap:var(--space-sm);margin-top:8px;margin-bottom:var(--space-md)}.students-search-field{display:grid;gap:6px;font-size:12px;font-weight:600;color:var(--ink-soft)}.students-search-field input{min-height:48px;border-radius:var(--radius-md);border-color:#dde5f1;background:#ecf1f7}.students-filter-chips{display:flex;gap:8px;flex-wrap:wrap}.students-filter-chips .chip{min-height:36px;border-radius:999px;padding:0 16px;border:1px solid #e2e8f1;background:#e6edf5;color:#7287a3;font-weight:700}.students-filter-chips .chip.active{border-color:#223558;background:#223558;color:#f5f9ff;box-shadow:none}.pending-invites-panel{border:1px solid var(--card-border);background:var(--card-bg);border-radius:var(--radius-lg);padding:var(--space-md);margin-bottom:var(--space-md)}.pending-invites-list{margin-top:8px;display:grid;gap:8px}.pending-invite-card{border:1px solid var(--card-border);background:var(--card-bg);border-radius:var(--radius-lg);padding:var(--space-md);display:grid;gap:8px}.pending-invite-name{margin:0;font-size:13px;font-weight:700;color:var(--ink)}.pending-invite-email,.pending-invite-meta{margin:3px 0 0;font-size:11px;color:var(--ink-muted)}.pending-invite-error{color:#b45309}.pending-invite-link-wrap{display:grid;gap:6px}.pending-invite-link{font-size:12px;min-height:36px;background:#fff;color:var(--ink-soft)}.pending-invite-actions{justify-content:flex-start}.invite-modal-pending-invites{margin-top:10px}.invite-modal-pending-invites .pending-invites-list{max-height:260px;overflow:auto;padding-right:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.field-invalid{border-color:#ef4444!important;box-shadow:0 0 0 1px #ef444424}.field-error{margin-top:4px;display:block;font-size:12px;line-height:1.35;color:#b91c1c;font-weight:600}.student-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--radius-lg);padding:14px var(--space-lg);display:flex;gap:var(--space-md);box-shadow:var(--card-shadow)}.student-avatar{width:54px;height:54px;border-radius:var(--radius-lg);border:1px solid #d5dfec;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;letter-spacing:-.02em;flex:0 0 54px}.student-card-main{flex:1;min-width:0;display:grid;gap:var(--space-xs)}.student-card-title{justify-content:space-between;align-items:center;gap:8px;padding-right:0}.student-card-title strong{font-size:16px;line-height:1.12;letter-spacing:-.02em;color:#1d2f4f}.student-card-subject{margin:0;font-size:var(--fs-md);line-height:1.2;color:#6b84a5;font-weight:600}.student-card-bottom-row{margin-top:2px;padding-top:10px;border-top:1px solid #deE6f0;display:flex;align-items:baseline;justify-content:space-between;gap:10px}.student-card-next{margin:0;font-size:var(--fs-sm);line-height:1.25;color:#7a8faf;font-weight:700}.student-card-due{margin:0;color:#e95647;font-size:var(--fs-sm);line-height:1.2;font-weight:700;white-space:nowrap}.student-card-redesign .status-pill{background:var(--success-bg);color:var(--success-text);border:none;font-size:var(--fs-sm);padding:6px 14px}.student-card-redesign .status-pill.status-other{background:#edf2f7;color:#8ea0b7}.student-card-click{cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}.student-card-click:hover{border-color:#bfd1ff;transform:translateY(-1px);box-shadow:0 10px 20px #2563eb14}.student-detail-back-row{padding:2px 0 12px}.student-back-btn{min-height:30px;padding:0;border:none;background:transparent;color:#468bd8;font-size:var(--fs-md);font-weight:700}.student-detail-shell{border-top:1px solid #d7e0ec}.student-detail-header{display:grid;gap:14px;padding:10px 0 14px}.student-detail-head-main{display:flex;align-items:flex-start;gap:14px}.student-detail-avatar{width:54px;height:54px;border-radius:var(--radius-lg);border:1px solid #d5dfec;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;flex:0 0 54px}.student-detail-title-wrap{flex:1;min-width:0}.student-detail-title-wrap h2{margin:0;font-size:22px;line-height:1.04;letter-spacing:-.02em;color:#1d2f4f}.student-detail-title-wrap .muted{margin-top:4px;font-size:var(--fs-md);color:#6b84a5}.student-parent-inline{margin-top:7px;display:inline-flex;align-items:center;gap:10px;font-size:var(--fs-md);color:#6f86a6;font-weight:600}.student-parent-inline-label{color:#6f86a6}.student-parent-inline-action{color:#4f95ea;text-decoration:none;line-height:1}.student-detail-head-main>.status-pill{margin-top:6px;font-size:var(--fs-sm);padding:6px 14px}.student-detail-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #d7e0ec;border-bottom:1px solid #d7e0ec}.student-detail-tab{min-height:48px;border:none;border-radius:0;background:transparent;color:#7d92ad;font-size:var(--fs-md);font-weight:700;box-shadow:none;border-bottom:2px solid transparent}.student-detail-tab.active{color:#4f95ea;border-bottom-color:#4f95ea}.student-tab-panel{padding:12px 0 0}.student-detail-edit{min-height:34px;padding:0 10px}.student-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-sm)}.student-stat-card{background:#f2f6fb;border:1px solid #e2e9f3;border-radius:var(--radius-md);padding:var(--space-md);text-align:left;display:grid;gap:2px}.student-stat-card strong{font-size:36px;line-height:1;color:#1d2f4f}.student-stat-card strong.ok{color:var(--green)}.student-stat-card strong.warn{color:var(--red)}.student-stat-card span{font-size:var(--fs-xs);font-weight:600;color:#7d92ad;text-transform:uppercase;letter-spacing:.04em}.student-overview-actions{margin-top:var(--space-md);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-sm);align-items:stretch}.student-overview-actions .secondary,.student-overview-actions button:not(.secondary){min-height:48px;border-radius:var(--radius-md);font-size:var(--fs-md);font-weight:700}.student-overview-actions .secondary{background:#fff;border:1px solid #d0dceb;color:#1d2f4f}@media(max-width:760px){.student-overview-actions{grid-template-columns:minmax(0,1fr)}}.student-rate-edit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--space-sm);margin-top:10px}.student-rate-edit-row label{min-width:0}.student-rate-edit-row input{width:100%;max-width:220px;min-height:48px}.student-rate-edit-row button{min-height:48px;padding:0 16px;white-space:nowrap;border-radius:var(--radius-md)}.student-rate-edit-primary{margin-top:var(--space-md)}.student-rate-edit-primary label{max-width:220px}.student-rate-edit-primary button{justify-self:end}.student-accent-editor{margin-top:10px;padding:10px 12px;border:1px solid var(--border-light);border-radius:12px;background:#fff}.student-accent-editor-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.student-accent-editor-head p{margin:0;font-size:12px;font-weight:700;color:var(--ink-soft)}.student-accent-auto-btn{min-height:26px;padding:0 9px;border-radius:8px;font-size:11px}.student-accent-swatches{margin-top:8px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.student-accent-preview-row{margin-top:8px;display:inline-flex;align-items:center;gap:8px}.student-accent-preview-label{font-size:11px;font-weight:600;color:var(--ink-muted)}.student-accent-preview-dot{width:16px;height:16px;border-radius:999px;border:1px solid #d1d9e6}.student-accent-swatch{width:22px;height:22px;min-height:22px;min-width:22px;border-radius:999px;border:2px solid transparent;padding:0;box-shadow:none}.student-accent-swatch.active{border-color:#0f172a;box-shadow:0 0 0 2px #fff}.student-accent-actions{margin-top:10px}.student-accent-actions button{min-height:34px}.modal-student-accent-editor{margin-top:6px}.student-notes-privacy-note{margin:0 0 8px;font-size:12px;color:var(--ink-muted);font-weight:600}.student-accent-wheel-row{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:600;color:var(--ink-soft)}.student-accent-wheel{width:32px;height:24px;min-height:24px;padding:0;border:1px solid #d7deea;border-radius:8px;background:#fff}.student-accent-dup-warning{margin:6px 0 0;font-size:11px;color:#9a6700}.student-package-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}.student-package-copy{min-width:0}.student-package-actions{justify-content:flex-end}.student-package-actions button{min-height:44px;border-radius:var(--radius-md);font-size:var(--fs-md);font-weight:700}@media(max-width:760px){.student-rate-edit-row,.student-package-row{grid-template-columns:minmax(0,1fr)}.student-rate-edit-primary label,.student-rate-edit-row input{max-width:100%}.student-rate-edit-primary button,.student-package-actions{justify-self:stretch}.student-package-actions{justify-content:flex-start;flex-wrap:wrap}}.student-parent-card{display:flex;align-items:center;gap:10px;border:1px solid var(--card-border);border-radius:var(--radius-md);padding:10px 12px;background:var(--card-bg)}.student-parent-icon,.student-parent-arrow{color:var(--ink-muted);display:inline-flex;align-items:center;justify-content:center}.student-parent-icon svg,.student-parent-arrow svg{width:16px;height:16px}.student-parent-copy{flex:1;min-width:0}.student-parent-title{margin:0;font-size:12px;font-weight:600;color:var(--ink)}.student-parent-meta{margin:2px 0 0;font-size:11px;color:var(--ink-muted)}.student-add-lesson-btn{width:100%;min-height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.student-add-lesson-btn svg{width:18px;height:18px}.student-lesson-row,.student-payment-row,.student-note-history-item{border-bottom:1px solid #dfe6f0;padding:10px 0}.student-lesson-row,.student-payment-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.student-lesson-row.has-notes-panel{display:grid;gap:10px}.student-lesson-row-main{display:flex;align-items:center;justify-content:space-between;gap:8px}.student-lesson-notes-panel{border:1px solid var(--border-light);border-radius:10px;background:#f9fbff;padding:10px;display:grid;gap:8px}.student-lesson-notes-panel label{display:grid;gap:6px;font-size:12px;color:var(--form-label);font-weight:600}.student-lesson-notes-panel textarea{min-height:76px;resize:vertical}.student-lesson-notes-actions{justify-content:flex-end}.student-note-history-item:last-child,.student-lesson-row:last-child,.student-payment-row:last-child{border-bottom:none}.student-note-history{margin-top:10px}.student-inline-lesson{border:2px solid var(--accent);border-radius:12px;background:#fff;padding:12px;display:grid;gap:10px}.student-inline-title{margin:0;font-size:13px;font-weight:700}.student-inline-chips{display:flex;flex-wrap:wrap;gap:6px}.student-inline-chips span{border-radius:7px;padding:4px 9px;background:var(--surface-dim);color:var(--ink-soft);font-size:11px;font-weight:600}.student-inline-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.student-inline-fields>label,.student-inline-fields input,.student-inline-fields select,.student-inline-fields input[type=datetime-local],.student-inline-fields input[type=date],.student-inline-fields input[type=time]{min-width:0;max-width:100%}.student-inline-fields input[type=datetime-local]{width:100%}.student-inline-fields input[type=date],.student-inline-fields input[type=time]{width:calc(100% - 10px)}.student-inline-toggle{display:flex;align-items:center;justify-content:space-between}.toggle{width:44px;min-height:24px;height:24px;border-radius:999px;border:none;background:var(--border);padding:2px;display:inline-flex;align-items:center;justify-content:flex-start}.toggle span{width:20px;height:20px;border-radius:999px;background:#fff;box-shadow:0 1px 2px #0000002e}.toggle.on{background:var(--green);justify-content:flex-end}.student-inline-conflict{border:1px solid var(--border);background:var(--surface-dim);border-radius:8px;padding:8px 10px;font-size:11px;font-weight:600;color:var(--ink-soft)}.student-inline-conflict.ok{border-color:#c8ecd9;background:var(--green-soft);color:var(--green)}.student-inline-conflict.bad{border-color:#f1c7c7;background:var(--red-soft);color:var(--red)}.student-inline-actions{justify-content:flex-end}.student-notes-panel,.student-timeline-panel{border:1px solid var(--card-border);border-radius:16px;background:var(--card-bg);padding:12px;margin-top:10px}.student-notes-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.student-notes-title{display:inline-flex;align-items:center;gap:6px}.student-notes-title h3,.student-timeline-panel h3{margin:0;font-size:13px;text-transform:uppercase;letter-spacing:.03em}.student-notes-body{margin:0;font-size:13px;color:var(--ink-soft);line-height:1.6}.student-timeline-list{display:grid;gap:6px;margin:8px 0 12px}.student-timeline-item{border:1px solid var(--border);border-radius:10px;background:#fff;padding:10px 12px;display:flex;gap:10px;cursor:pointer}.timeline-bar{width:3px;border-radius:999px;background:var(--surface-dim)}.student-timeline-item.upcoming .timeline-bar{background:var(--accent)}.student-timeline-item.done .timeline-bar{background:var(--green)}.student-timeline-item.cancelled .timeline-bar{background:var(--amber)}.student-timeline-item.no-show .timeline-bar{background:var(--red)}.timeline-main{flex:1;min-width:0}.timeline-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.timeline-title{margin:0;font-size:13px;font-weight:600;color:var(--ink)}.timeline-meta{margin:2px 0 0;font-size:11px;color:var(--ink-muted)}.timeline-actions{margin-top:8px}.timeline-actions button{min-height:30px;padding:0 10px;font-size:12px}.timeline-note-card{margin-top:8px;border:1px solid #dfe7f2;background:#eef3f8;border-radius:12px;padding:8px 10px;font-size:12px;color:var(--ink-soft);line-height:1.5}.timeline-note-empty{border:1px dashed #c8cfde;border-radius:6px;padding:5px 8px;display:inline-block;color:var(--ink-muted)}.timeline-add-notes-btn{min-height:30px;font-size:12px}.parent-screen{display:grid;gap:10px}.parent-header-copy{padding:14px 2px 4px}.parent-header-copy.compact{padding-bottom:0}.parent-header-copy h2{font-size:18px;line-height:1.1;margin:2px 0 0}.parent-section-title h2{font-size:16px}.parent-alert-card{border:1px solid #f2d7a7;background:#fff8ea;border-radius:12px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.parent-alert-title{margin:0;font-size:13px;font-weight:700;color:#b45309}.parent-alert-sub{margin:2px 0 0;font-size:11px;color:var(--ink-soft)}.parent-pay-btn{min-height:38px;border-radius:10px;padding:0 14px;font-size:13px}.parent-card-list{display:grid;gap:8px}.parent-lesson-card,.parent-note-card,.parent-invoice-card,.parent-payment-card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:16px}.parent-lesson-card{padding:12px 14px;display:flex;align-items:center;gap:12px}.parent-lesson-icon{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex:0 0 42px}.parent-lesson-main{flex:1;min-width:0}.parent-lesson-title{margin:0;font-size:14px;font-weight:600;color:var(--ink)}.parent-lesson-meta{margin:2px 0 0;font-size:12px;color:var(--ink-muted)}.parent-note-card{padding:12px 14px}.parent-note-card.detailed{padding:14px}.parent-note-head,.parent-note-row{display:flex;align-items:flex-start;gap:8px}.parent-note-head{justify-content:space-between;align-items:center}.parent-note-row{justify-content:flex-start}.parent-note-row>div{min-width:0;flex:1}.parent-note-chip{font-size:12px;font-weight:600;color:var(--ink)}.parent-note-title{margin:0;font-size:13px;font-weight:600;color:var(--ink)}.parent-note-date{margin:0;font-size:11px;color:var(--ink-muted)}.parent-note-session{margin:3px 0 0;font-size:12px;line-height:1.35;color:#7a8fab}.parent-note-body{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--ink-soft);white-space:pre-wrap;word-break:break-word}.parent-note-icon{width:32px;height:32px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px}.parent-note-icon svg{width:16px;height:16px}.parent-payment-card{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px}.parent-payment-left{display:flex;align-items:center;gap:10px}.parent-payment-icon{width:30px;height:30px;border-radius:8px;background:var(--green-soft);color:var(--green);display:inline-flex;align-items:center;justify-content:center}.parent-payment-icon svg{width:16px;height:16px}.parent-payment-title{margin:0;font-size:13px;font-weight:600;color:var(--ink)}.parent-payment-sub{margin:2px 0 0;font-size:11px;color:var(--ink-muted)}.parent-invoice-card{padding:12px 14px}.parent-invoice-actions{margin-top:10px}.parent-invoice-pay-section{margin-top:8px;padding-top:0}.parent-invoice-pay-section .invoice-pay-card{margin-top:8px;display:grid;gap:0}.parent-invoice-pay-section .invoice-pay-copy-row+.invoice-pay-copy-row{margin-top:0}.parent-invoice-pay-section .invoice-pay-detail-block{margin-top:0}.parent-paid-note{margin:8px 0 0;font-size:11px;color:var(--green);font-weight:600}.parent-settings-panel{margin-top:12px}.parent-messages-layout{display:grid;gap:10px}.parent-message-thread-list{display:grid;gap:8px}.parent-message-thread-item{width:100%;text-align:left;border:1px solid var(--card-border);background:var(--card-bg);border-radius:12px;padding:10px 12px;display:grid;gap:2px}.parent-message-thread-item.active{border-color:var(--accent);box-shadow:0 0 0 1px #4a90d929}.parent-message-thread-title{font-size:13px;font-weight:700;color:var(--ink)}.parent-message-thread-meta{font-size:11px;color:var(--ink-muted)}.parent-message-thread-unread{justify-self:end;min-width:18px;height:18px;border-radius:9px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;background:var(--accent)}.parent-message-thread-panel{border:1px solid var(--card-border);border-radius:14px;background:var(--card-bg);padding:10px;min-height:280px;display:grid;gap:10px}.parent-message-stream{display:grid;gap:8px;max-height:320px;overflow:auto;padding-right:4px}.parent-message-bubble{max-width:88%;border:1px solid #cfd8ea;background:#f8f9fd;border-radius:12px;padding:8px 10px;display:grid;gap:4px}.parent-message-bubble.own{margin-left:auto}.parent-message-bubble p{margin:0;font-size:13px;line-height:1.4;color:#173155;white-space:pre-wrap;word-break:break-word}.parent-message-bubble span{font-size:10px;color:#4d627f}.parent-message-meta-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.parent-message-actions{display:inline-flex;align-items:center;gap:6px}.parent-message-icon-btn{min-height:28px;height:28px;width:28px;padding:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:#eef3fb;color:#35507a;border:1px solid #cfdbeb}.parent-message-icon-btn svg{width:14px;height:14px}.parent-message-icon-btn.danger{color:#9a2a2a;background:#fcecec;border-color:#efc9c9}.parent-message-bubble.role-tutor{background:#e8f1ff;border-color:#97b8eb}.parent-message-bubble.role-parent{background:#e8f8ef;border-color:#9acfb0}.parent-message-bubble.role-parent p{color:#1d4c2e}.parent-message-bubble.role-parent span{color:#4a6b55}.parent-message-compose{display:grid;gap:8px}.parent-message-compose textarea{width:100%;min-height:80px;resize:vertical}.tutor-messages-modal{width:min(900px,96vw)}.tutor-message-create-row{display:grid;gap:8px;grid-template-columns:1fr auto;align-items:end}.tutor-message-create-row label{margin:0}.tutor-message-create-row select{margin-top:4px}.message-parent-select{background-color:var(--form-control-bg);border-color:var(--form-control-border);color:var(--form-text);box-shadow:inset 0 1px #fff9}.message-parent-select option{background:#eef3fa;color:#1f3150}.message-hint-wrap{display:grid;justify-items:end;gap:6px;align-self:start}.message-hint-btn{min-height:28px;height:28px;width:28px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;line-height:1;background:#eef3fb;color:#35507a;border:1px solid #cfdbeb}.message-hint-text{margin:0;max-width:240px;font-size:12px;color:var(--ink-muted);text-align:right}.tutor-messages-layout .parent-message-thread-panel{min-height:340px}.settings-termtime-toggle{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff}.settings-termtime-toggle span{font-size:13px;color:var(--ink);line-height:1.35}.reminder-settings-panel{margin-top:6px}.reminder-settings-panel h3{margin:0 0 8px}.reminder-offsets-group{margin-top:8px}.reminder-offsets-label{margin:0 0 6px;font-size:12px;font-weight:700;color:var(--ink-soft)}.reminder-offsets-chips{display:flex;flex-wrap:wrap;gap:8px}.reminder-offset-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #dde5f1;border-radius:999px;background:#eef3f9;color:#6f84a1;padding:5px 10px;font-size:12px;font-weight:700}.reminder-offset-chip input{margin:0;width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;flex:0 0 14px}.reminder-offset-chip.active{border-color:var(--accent);background:#fff;color:var(--accent)}.reminder-offsets-help{margin-top:6px;font-size:11px}.reminder-health-panel{margin-top:10px;border:1px solid var(--border);border-radius:10px;padding:10px;background:#fff}.reminder-health-actions{margin-top:8px}.reminder-failed-list{margin-top:8px;gap:6px}.reminder-failed-item{border:1px solid #f2d5d5;background:#fff6f6;border-radius:8px;padding:6px 8px;display:grid;gap:2px}.reminder-failed-item strong{font-size:12px;color:#7f1d1d}.reminder-failed-item span{font-size:11px;color:#9f3b3b}.settings-termtime-checkbox{width:16px;height:16px;margin:0;flex:0 0 auto}.holiday-periods-panel{padding:12px;border-radius:12px}.holiday-periods-panel h3{margin:0;font-size:13px;font-weight:700;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.04em}.payment-reconciliation-panel{padding:12px;border-radius:12px}.payment-reconciliation-panel h3{margin:0;font-size:13px;font-weight:700;color:var(--ink-soft);text-transform:uppercase;letter-spacing:.04em}.payment-reconciliation-empty{margin:8px 0 0}.payment-reconciliation-list{margin-top:8px;display:grid;gap:8px}.payment-reconciliation-item{background:#fff;border:1px solid var(--border);border-radius:10px;padding:9px 11px}.payment-reconciliation-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.payment-reconciliation-row strong{font-size:13px;color:var(--ink)}.payment-reconciliation-title{margin:4px 0 0;font-size:12px;font-weight:600;color:var(--ink)}.payment-reconciliation-meta{margin:2px 0 0;font-size:12px;color:var(--ink-muted)}.payment-reconciliation-actions{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}.holiday-periods-list{margin-top:8px;margin-bottom:10px}.holiday-period-item{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.holiday-period-meta{min-width:0}.holiday-period-meta strong{display:block;font-size:13px;color:var(--ink)}.holiday-period-meta .muted{margin:2px 0 0;font-size:12px;color:var(--ink-muted)}.holiday-period-remove{flex:0 0 auto;min-height:34px}.holiday-period-empty{margin:0;padding:8px 2px}.holiday-period-form{gap:8px}.holiday-period-date-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.holiday-period-date-field{min-width:0}.holiday-period-actions{justify-content:flex-end}.holiday-period-actions button{min-width:110px}@media(max-width:640px){.invoice-metrics-grid{grid-template-columns:1fr}.invoice-overdue-item{align-items:flex-start;flex-direction:column}.invoice-overdue-item .actions.inline{width:100%}.invoice-overdue-item .actions.inline button{flex:1}.students-filter-chips .chip{flex:1 1 calc(33.333% - 6px)}.student-card-click:hover{transform:none;box-shadow:none}.holiday-period-item{align-items:flex-start;flex-direction:column}.holiday-period-remove{width:100%}.holiday-period-date-row{grid-template-columns:1fr}.holiday-period-actions{justify-content:stretch}.holiday-period-actions button{width:100%}}.calendar-mode-toggle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#e7edf5;border:1px solid #d9e2ee;border-radius:14px;padding:4px}.calendar-mode-toggle .chip{min-height:34px;border-radius:10px;border:1px solid transparent;background:transparent;color:#6f84a1;font-weight:700}.calendar-mode-toggle .chip.active{border-color:#dbe4ef;background:#fff;color:#1f3150;box-shadow:none}.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:8px}.calendar-month-head{text-align:center;font-size:10px;font-weight:700;color:var(--ink-muted);text-transform:uppercase;letter-spacing:.04em;padding:3px 0}.calendar-month-day{border:1px solid var(--border);background:#fff;color:var(--ink);border-radius:10px;min-height:54px;display:grid;align-content:start;justify-items:end;padding:6px;gap:4px}.calendar-month-day.outside{opacity:.5}.calendar-month-day.active{border-color:#bcd0ff;background:#fff;box-shadow:0 2px 10px #2563eb1a}.calendar-month-date{font-size:13px;font-weight:700}.calendar-month-count{align-self:end;justify-self:start;font-size:11px;font-weight:700;color:var(--accent);background:var(--accent-soft);border:1px solid #cfe0ff;border-radius:999px;padding:1px 8px}@media(hover:none),(pointer:coarse){button:hover:not(:disabled){background:inherit}.invoice-preview-action:hover:not(:disabled),.invoice-preview-action:focus:not(:disabled),.invoice-preview-action:active:not(:disabled){background:#fff;box-shadow:0 1px #10182805}.invoice-preview-action-download:hover:not(:disabled),.invoice-preview-action-download:focus:not(:disabled),.invoice-preview-action-download:active:not(:disabled){color:#4f5674}.invoice-preview-action-email:hover:not(:disabled),.invoice-preview-action-email:focus:not(:disabled),.invoice-preview-action-email:active:not(:disabled){color:#1f4fd4}.invoice-preview-action-sent:hover:not(:disabled),.invoice-preview-action-sent:focus:not(:disabled),.invoice-preview-action-sent:active:not(:disabled){color:#0f9f6e}.invoice-preview-action-delete:hover:not(:disabled),.invoice-preview-action-delete:focus:not(:disabled),.invoice-preview-action-delete:active:not(:disabled){color:#c63b4a}}.invoice-payment-timeline{margin-top:6px}.invoice-payment-timeline-row{margin:2px 0;font-size:12px;color:var(--ink-soft)}.modal-close-btn{margin-left:auto;width:40px;min-width:40px;height:40px;min-height:40px;border-radius:var(--radius-sm);padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-soft)}.modal-close-btn svg{width:18px;height:18px}.confirm-modal-sheet{width:min(520px,100%);max-height:min(78vh,calc(100dvh - env(safe-area-inset-bottom,16px) - 24px));grid-template-rows:auto auto auto;gap:var(--space-sm)}.confirm-modal-copy{display:grid;gap:6px}.confirm-modal-copy p{margin:0;font-size:var(--fs-lg);color:var(--ink-soft);line-height:1.45}.confirm-modal-actions{justify-content:flex-end}.confirm-danger-btn{background:var(--danger-bg);border-color:var(--danger-bg);color:var(--danger-text)}.confirm-danger-btn:hover:not(:disabled),.confirm-danger-btn:focus:not(:disabled),.confirm-danger-btn:active:not(:disabled){background:var(--danger-bg-hover);border-color:var(--danger-bg-hover)}.lesson-repeat-block{display:grid;gap:8px}.student-inline-repeat-count{display:grid;gap:6px}.prompt-modal-form{margin-top:4px}.prompt-modal-form textarea{min-height:120px}
