:root{color:#18243d;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f3f6fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 12% 0,#dbeafe9e,#0000 30rem),#f3f6fb;min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer;transition:transform .16s,box-shadow .16s,border-color .16s,background .16s}h1,h2,p{margin-top:0}.app-shell{background:radial-gradient(circle at 0 0,#bfdbfe73 0,#0000 38%),0 0;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-shell{padding:32px 16px}.auth-card{background:#fff;border:1px solid #e5ebf5;border-radius:24px;width:min(100%,480px);padding:clamp(24px,4vw,36px);box-shadow:0 18px 45px #0f172a14}.session-loading{text-align:center}.session-loading>p:last-of-type{color:#64748b;margin:14px 0 0;line-height:1.55}.session-loading-bar{background:#e2e8f0;border-radius:999px;height:5px;margin-top:24px;position:relative;overflow:hidden}.session-loading-bar:after{border-radius:inherit;content:"";background:linear-gradient(90deg,#2563eb,#38bdf8);width:42%;animation:1.3s ease-in-out infinite alternate session-loading;position:absolute;inset:0 auto 0 0}@keyframes session-loading{0%{transform:translate(0)}to{transform:translate(140%)}}.dashboard-shell{padding:clamp(18px,3vw,36px);display:block}.dashboard-container{width:min(100%,1200px);margin:0 auto}.topbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;display:flex}.eyebrow{color:#2563eb;letter-spacing:.12em;text-transform:uppercase;margin:0 0 10px;font-size:.75rem;font-weight:800}.topbar h1,.auth-card h1{letter-spacing:-.04em;color:#0f172a;margin:0;font-size:clamp(2rem,4vw,3rem);line-height:1.1}.profile-box{text-align:right;cursor:pointer;color:inherit;font:inherit;background:#ffffffdb;border:1px solid #93c5fd;border-radius:16px;padding:10px 14px;display:grid;position:relative;box-shadow:0 12px 26px #1e40af1f}.profile-box:focus-visible,.profile-dropdown button:focus-visible,.primary-button:focus-visible,.secondary-button:focus-visible,.small-button:focus-visible{outline-offset:2px;outline:3px solid #3b82f647}.profile-box:hover{transform:translateY(-1px)}.profile-menu{position:relative}.profile-box-heading{justify-content:flex-end;align-items:center;gap:10px;display:flex}.header-avatar{color:#1d4ed8;background:#dbeafe;border-radius:50%;place-items:center;width:38px;height:38px;font-weight:800;display:grid;overflow:hidden}.header-avatar img{object-fit:cover;width:100%;height:100%}.profile-box span{color:#475569;text-transform:uppercase;letter-spacing:.08em;font-size:.7rem}.profile-box strong{color:#0f172a}.profile-box small{color:#475569;overflow-wrap:anywhere;margin-top:4px}.profile-dropdown{z-index:10;background:#fff;border:1px solid #dbe3f1;border-radius:12px;min-width:160px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 28px #0f172a24}.profile-dropdown button{color:#0f172a;text-align:left;background:#fff;border:none;border-radius:8px;width:100%;padding:10px 12px;font-weight:700;display:block}.profile-dropdown button:hover{background:#eff6ff}.overall-plan-box{background:#eff6ff;border:1px solid #dbeafe;border-radius:14px;margin-bottom:24px;padding:16px 18px}.overall-plan-box.safe{background:#ecfdf5;border-color:#a7f3d0}.overall-plan-box.warning{background:#fff7ed;border-color:#fed7aa}.overall-plan-box strong{color:#0f172a;margin-bottom:8px;display:block}.overall-plan-box p{color:#0f172a;margin:0;line-height:1.5}.summary-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:22px;display:grid}.metric-card{background:#fff;border:1px solid #e1e9f4;border-radius:18px;padding:20px;transition:transform .16s,box-shadow .16s;box-shadow:0 10px 24px #1e40af0d}.metric-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px #1e40af1a}.metric-card.highlight{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border-color:#bfdbfe}.metric-card.overall-card.below{background:linear-gradient(135deg,#fee2e2,#fff1f2);border-color:#fecaca}.metric-card.overall-card.below strong{color:#b91c1c}.metric-card.overall-card.target{background:linear-gradient(135deg,#fef3c7,#fffbeb);border-color:#fde68a}.metric-card.overall-card.target strong{color:#a16207}.metric-card.overall-card.above{background:linear-gradient(135deg,#dcfce7,#f0fdf4);border-color:#bbf7d0}.metric-card.overall-card.above strong{color:#15803d}.metric-card span{color:#475569;margin-bottom:10px;font-size:.8rem;display:block}.metric-card strong{color:#0f172a;font-size:clamp(1.4rem,5vw,2rem)}.content-grid{grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:20px;display:grid}.plan-grid{grid-template-columns:minmax(0,1fr)}.panel{background:#fff;border:1px solid #e1e9f4;border-radius:20px;padding:clamp(18px,2.5vw,26px);box-shadow:0 12px 28px #1e40af0d}.panel h2{letter-spacing:-.02em;color:#0f172a;margin-bottom:20px;font-size:1.3rem}.panel-heading-row{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.panel-kicker{color:#2563eb;letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px;font-size:.72rem;font-weight:800}.plan-state{border-radius:999px;flex-shrink:0;padding:6px 9px;font-size:.72rem;font-weight:800}.plan-state.safe{color:#166534;background:#dcfce7}.plan-state.warning{color:#9a3412;background:#ffedd5}.plan-state.neutral{color:#475569;background:#e2e8f0}.plan-ring-panel{flex-direction:column;display:flex}.plan-ring{--ring-progress:0%;aspect-ratio:1;background:conic-gradient(#2563eb var(--ring-progress), #e8eef7 var(--ring-progress) 100%);border-radius:50%;align-self:center;place-items:center;width:min(200px,70vw);margin:10px auto 18px;display:grid;position:relative}.plan-ring:before{content:"";background:#fff;border-radius:50%;position:absolute;inset:12px}.plan-ring.safe{background:conic-gradient(#16a34a var(--ring-progress), #e8f5ec var(--ring-progress) 100%)}.plan-ring.warning{background:conic-gradient(#f97316 var(--ring-progress), #fff1e8 var(--ring-progress) 100%)}.plan-ring-inner{z-index:1;text-align:center;justify-items:center;gap:2px;display:grid}.plan-ring-inner strong{color:#0f172a;font-size:2.5rem;line-height:1}.plan-ring-inner span{color:#475569;max-width:90px;font-size:.75rem;font-weight:700;line-height:1.25}.plan-ring-text{color:#334155;text-align:center;max-width:330px;margin:0 auto;font-size:.95rem;line-height:1.55}.plan-ring-caption{color:#64748b;text-align:center;margin-top:auto;padding-top:16px;font-size:.8rem}.plan-ring-caption strong{color:#0f172a}.calendar-panel{background:radial-gradient(circle at 100% 0,#dbeafeb8,#0000 22rem),#fff;margin-bottom:20px;position:relative;overflow:hidden}.calendar-panel:before{content:"";background:linear-gradient(90deg,#2563eb,#38bdf8,#8b5cf6);height:4px;position:absolute;top:0;left:0;right:0}.calendar-header{justify-content:space-between;align-items:flex-start;gap:18px;display:flex;position:relative}.calendar-header h2{margin-bottom:8px;font-size:clamp(1.35rem,3vw,1.65rem)}.calendar-header .section-help{margin-bottom:0}.calendar-connect-button{flex-shrink:0;min-width:176px}.calendar-events{gap:10px;margin-top:18px;display:grid}.calendar-day-group+.calendar-day-group{margin-top:22px}.calendar-day-group h3{color:#0f172a;margin:0 0 6px;font-size:.95rem}.calendar-layout{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);align-items:start;gap:18px;margin-top:20px;display:grid}.calendar-layout .calendar-day-group{min-width:0}.today-plan-card{background:linear-gradient(145deg,#eff6fff5,#f8fafcf5),#eff6ff;border:1px solid #c7d2fe;border-radius:16px;padding:18px;position:relative;overflow:hidden;box-shadow:0 12px 24px #2563eb17}.today-plan-card:after{content:"";background:#818cf82e;border-radius:50%;width:110px;height:110px;position:absolute;top:-55px;right:-28px}.today-plan-card h3{z-index:1;color:#0f172a;margin:0 0 8px;font-size:1rem;position:relative}.today-plan-meta{z-index:1;color:#64748b;margin:0 0 14px;font-size:.78rem;line-height:1.5;position:relative}.today-scenarios{z-index:1;gap:8px;max-height:280px;padding-right:3px;display:grid;position:relative;overflow-y:auto}.today-scenario{background:#fff;border:1px solid #bfdbfed9;border-radius:11px;gap:4px;padding:11px 12px;transition:transform .16s,border-color .16s,box-shadow .16s;display:grid;box-shadow:0 4px 10px #1e40af0d}.today-scenario.safe{background:#f0fdf4;border-color:#bbf7d0}.today-scenario.safe strong{color:#166534}.today-scenario.need{background:#fff1f2;border-color:#fecaca}.today-scenario.need strong{color:#b91c1c}.today-scenario:hover{border-color:#60a5fa;transform:translate(2px);box-shadow:0 7px 14px #1e40af1a}.today-scenario strong{color:#1e3a8a;font-size:.82rem}.today-scenario span{color:#475569;font-size:.76rem}.end-of-day-review{border-top:1px solid #dbe7f4;margin-top:18px;padding-top:18px}.end-of-day-review h3{color:#0f172a;margin:0 0 6px;font-size:.95rem}.end-of-day-scenarios{gap:8px;max-height:230px;margin-top:12px;padding-right:2px;display:grid;overflow-y:auto}.end-of-day-scenario{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;gap:3px;padding:9px 10px;display:grid}.end-of-day-scenario.need{background:#fff1f2;border-color:#fecaca}.end-of-day-scenario strong{color:#166534;font-size:.78rem}.end-of-day-scenario.need strong{color:#b91c1c}.end-of-day-scenario span{color:#475569;font-size:.75rem}.calendar-events{max-height:360px;padding:3px;overflow-y:auto}.calendar-event{background:#f8fbff;border:1px solid #dbe7f4;border-radius:14px;align-items:center;gap:16px;padding:14px;transition:transform .16s,border-color .16s,box-shadow .16s;display:flex;box-shadow:0 4px 12px #1e40af0a}.calendar-event:hover{border-color:#93c5fd;transform:translateY(-1px);box-shadow:0 8px 18px #1e40af17}.calendar-event-present{background:#f0fdf4;border-color:#86efac}.calendar-event-absent{background:#fff1f2;border-color:#b91c1c}.calendar-event-time{color:#1d4ed8;gap:4px;min-width:112px;font-size:.82rem;display:grid}.calendar-event-time span,.calendar-event-details span{color:#64748b;font-size:.82rem}.calendar-event-time small{color:#475569;font-size:.72rem;font-weight:700}.calendar-event-details{gap:4px;display:grid}.calendar-event-details>strong{color:#0f172a;font-size:.94rem}.calendar-recommendation{font-weight:700;color:#166534!important}.calendar-advice{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:8px;gap:3px;margin-top:3px;padding:7px 9px;display:grid}.calendar-advice.need{background:#fff1f2;border-color:#fecaca}.calendar-advice.need .calendar-recommendation{color:#b91c1c!important}.calendar-advice.safe{background:#ecfdf5;border-color:#bbf7d0}.calendar-advice>span{line-height:1.45;color:#475569!important;font-size:.78rem!important}.class-countdown{font-weight:700;color:#b91c1c!important;font-size:.72rem!important}.class-progress{background:linear-gradient(90deg,#fecaca 0%,#fde68a 48%,#bbf7d0 100%);border-radius:999px;width:100%;height:7px;margin-top:3px;overflow:hidden;box-shadow:inset 0 0 0 1px #94a3b833}.class-progress span{border-radius:inherit;background:linear-gradient(90deg,#ef4444 0%,#f59e0b 50%,#22c55e 100%);height:100%;transition:width .9s linear;display:block}.class-progress-present span{background:#16a34a}.class-progress-absent span{background:#991b1b}.app-footer{color:#64748b;text-align:center;padding:24px 0 10px;font-size:.78rem}.subject-form{gap:16px;display:grid}.auth-form{gap:16px;margin-top:18px;display:grid}.subject-form label,.field{color:#0f172a;gap:8px;font-weight:600;display:grid}.subject-form span,.field span{font-size:.9rem}.subject-form input,.field input{color:#0f172a;background:#fbfdff;border:1px solid #d8e3f0;border-radius:12px;width:100%;padding:.8rem .9rem}.subject-form input:focus,.field input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1f}.two-column{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.primary-button{color:#fff;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:12px;padding:.9rem 1rem;font-weight:700;box-shadow:0 8px 16px #2563eb33}.primary-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 20px #2563eb47}button:disabled{cursor:not-allowed;opacity:.65}.form-actions{align-items:center;gap:10px;display:flex}.secondary-button{color:#0f172a;background:#fff;border:1px solid #dbe3f1;border-radius:12px;width:100%;margin-top:16px;padding:.9rem 1rem;font-weight:700}.button-ghost{background:#f8fafc;width:auto;margin-top:0}.small-button{color:#0f172a;background:#fff;border:1px solid #d9e2ee;border-radius:8px;padding:6px 10px;font-size:.8rem;font-weight:600}.small-button:hover{background:#eff6ff;border-color:#93c5fd}.small-button.danger{color:#b91c1c;background:#fff5f5;border-color:#fecaca}.small-button.present-button{color:#166534;background:#ecfdf5;border-color:#a7f3d0}.small-button.absent-button{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.row-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row-actions button:disabled{cursor:not-allowed;filter:grayscale(.35);opacity:.42}.summary-list{gap:16px;display:grid}.summary-list div{border-bottom:1px solid #edf2f7;justify-content:space-between;gap:14px;padding-bottom:10px;display:flex}.summary-list span{color:#475569}.summary-list strong{color:#0f172a}.editable-row{align-items:center}.name-input{color:#0f172a;background:#f8fafc;border:1px solid #d9e2ee;border-radius:10px;width:180px;padding:8px 10px}.profile-editor{align-items:center;gap:14px;margin-bottom:18px;display:flex}.avatar-preview{color:#1d4ed8;background:#dbeafe;border-radius:50%;place-items:center;width:64px;height:64px;font-size:1.5rem;font-weight:800;display:grid;overflow:hidden}.avatar-preview img{object-fit:cover;width:100%;height:100%}.upload-button{cursor:pointer;position:relative}.upload-button input{opacity:0;width:1px;height:1px;position:absolute}.upload-button.disabled{cursor:not-allowed;opacity:.55}.profile-form{gap:14px;margin-bottom:20px;display:grid}.profile-form label{color:#0f172a;gap:8px;font-weight:600;display:grid}.profile-form input{color:#0f172a;background:#f8fafc;border:1px solid #d9e2ee;border-radius:10px;width:100%;padding:10px 12px}.profile-form input:disabled{cursor:not-allowed;color:#64748b;background:#eef2f7}.profile-modal-backdrop{z-index:60;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172a94;place-items:center;padding:22px;animation:.18s ease-out both profile-backdrop-in;display:grid;position:fixed;inset:0;overflow-y:auto}.profile-modal{background:radial-gradient(circle at 100% 0,#dbeafebf,#0000 18rem),#fff;border:1px solid #dbeafee6;border-radius:26px;width:min(100%,560px);max-height:min(92vh,760px);padding:clamp(22px,4vw,34px);animation:.22s cubic-bezier(.2,.8,.2,1) both profile-modal-in;overflow-y:auto;box-shadow:0 28px 90px #0f172a52}.subject-modal-backdrop{z-index:60}.subject-modal{width:min(100%,620px)}.subject-modal-form{grid-template-columns:1fr;gap:16px}.subject-modal-form>label:first-child,.subject-modal-form>label:last-of-type,.subject-modal-form>.two-column,.subject-modal-form>.feedback,.subject-modal-form>.form-actions{grid-column:auto}.subject-modal-form input{border-radius:12px;padding:12px 13px}.subject-modal-form input:focus{border-color:#60a5fa;outline:none;box-shadow:0 0 0 4px #3b82f61f}.subject-modal-actions{justify-content:flex-end;margin-top:4px}.subject-modal-actions .primary-button,.subject-modal-actions .secondary-button{min-width:138px}.subject-modal-actions .secondary-button{margin-top:0}.profile-modal-header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px;display:flex}.profile-modal-header h2{color:#0f172a;letter-spacing:-.035em;margin:0 0 8px;font-size:clamp(1.35rem,4vw,1.75rem)}.profile-modal-header p:last-child{color:#64748b;margin:0;font-size:.9rem;line-height:1.55}.profile-modal-close{color:#334155;background:#ffffffd9;border:1px solid #dbe7f5;border-radius:12px;flex-shrink:0;width:38px;height:38px;font-size:1.5rem;line-height:1}.profile-modal-close:hover:not(:disabled){color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.profile-modal-avatar-row{background:#ffffffbf;border:1px solid #e5edf8;border-radius:16px;align-items:center;gap:14px;margin-bottom:22px;padding:14px;display:flex}.profile-modal-avatar-row .avatar-preview{border:3px solid #fff;width:58px;height:58px;box-shadow:0 0 0 1px #bfdbfe,0 6px 14px #2563eb1f}.profile-modal-form{margin-bottom:0}.profile-modal-form label{gap:7px;font-size:.92rem}.profile-modal-form input{background:#fbfdff;border-color:#dbe5f1;border-radius:12px;padding:12px 13px;transition:border-color .15s,box-shadow .15s}.profile-modal-form input:focus{border-color:#60a5fa;outline:none;box-shadow:0 0 0 4px #3b82f61f}.profile-modal-actions{justify-content:flex-end;margin-top:4px}.profile-modal-actions .primary-button,.profile-modal-actions .secondary-button{min-width:138px}.profile-modal-actions .secondary-button{margin-top:0}@keyframes profile-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes profile-modal-in{0%{opacity:0;transform:translateY(12px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}.table-panel{background:radial-gradient(circle at 100% 0,#dbeafe6b,#0000 24rem),#fff;border-color:#dce6f4;overflow:hidden}.subject-form-panel{background:radial-gradient(circle at 100% 0,#dbeafe94,#0000 22rem),#fff;border-color:#bfdbfe;margin-bottom:20px;animation:.22s ease-out both subject-panel-enter}@keyframes subject-panel-enter{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.subject-form-heading{margin-bottom:22px}.subject-form-heading h2{margin-bottom:14px}.subject-form-heading .section-help{margin:0}.subject-form-heading>button{flex-shrink:0}.subject-form{grid-template-columns:minmax(0,1.4fr) minmax(220px,1fr);align-items:end;gap:18px}.subject-form>label:first-child,.subject-form>.two-column,.subject-form>label:last-of-type,.subject-form>.feedback,.subject-form>.form-actions{grid-column:1/-1}.subject-action-error{margin-bottom:16px}.subject-table-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;display:flex}.subject-table-heading h2{margin-bottom:14px}.subject-table-heading .section-help{margin:0}.subject-table-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.subject-table-actions .secondary-button,.subject-table-actions .primary-button{white-space:nowrap;width:auto;min-height:44px;margin:0}.export-button{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.table-wrap{background:#fff;border:1px solid #e4ebf5;border-radius:14px}.section-help{color:#475569;margin:-8px 0 16px;font-size:.9rem;line-height:1.5}.table-wrap{-webkit-overflow-scrolling:touch;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:850px}th,td{text-align:left;border-bottom:1px solid #edf2f7;padding:15px 14px;font-size:.95rem}tbody tr:nth-child(2n){background:#fbfdff}tbody tr:hover{background:#eff6ff}th{color:#475569;text-transform:uppercase;letter-spacing:.06em;background:#f1f6fc;font-size:.78rem;position:sticky;top:0}tbody tr:last-child td{border-bottom:0}tbody td:first-child{color:#0f172a;font-weight:700}.status-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:999px;justify-content:center;align-items:center;padding:6px 10px;font-size:.75rem;font-weight:700;display:inline-flex}.status-badge.safe{color:#166534;background:#dcfce7}.status-badge.warning{color:#92400e;background:#fef3c7}.status-badge.below-target{color:#b91c1c;background:#fee2e2}.whatif-panel{margin-top:24px}.whatif-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;display:grid}.whatif-grid label{color:#0f172a;gap:8px;font-weight:600;display:grid}.whatif-grid input{color:#0f172a;background:#f8fafc;border:1px solid #d9e2ee;border-radius:10px;width:100%;padding:10px 12px}.whatif-grid input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb1f}.whatif-validation{margin-top:16px}.result-placeholder{color:#94a3b8!important}.whatif-results{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:18px;display:grid}.whatif-results>div{background:#f8fbff;border:1px solid #e6edf7;border-radius:12px;gap:8px;padding:14px;display:grid}.whatif-results>div:last-child{background:#ecfdf5;border-color:#bbf7d0}.whatif-results span{color:#475569;font-size:.8rem}.whatif-results strong{color:#0f172a;font-size:1.1rem}.mode-switch{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0 20px;display:grid}.mode-button{color:#334155;background:#f8fafc;border:1px solid #d9e3f0;border-radius:10px;padding:10px 8px;font-weight:600}.mode-button.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 6px 14px #2563eb38}.warning-box,.info-box{border-radius:12px;margin-bottom:14px;padding:12px 14px}.warning-box{background:#fff7ed;border:1px solid #fed7aa}.warning-box strong,.info-box strong{color:#0f172a;margin-bottom:6px;display:block}.warning-box p,.info-box p{color:#475569;margin:0;line-height:1.6}.info-box{background:#eff6ff;border:1px solid #bfdbfe}.feedback{border-radius:10px;padding:12px 14px;font-size:.92rem;line-height:1.5}.feedback.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.oauth-origin-help{margin:8px 0 0;line-height:1.6}.oauth-origin-help code{overflow-wrap:anywhere;background:#ffffffbf;border-radius:5px;padding:2px 5px}.feedback.success{color:#166534;background:#ecfdf5;border:1px solid #a7f3d0}.confirm-backdrop{z-index:50;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0f172a8c;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-dialog{background:#fff;border:1px solid #fecaca;border-radius:20px;width:min(100%,440px);padding:26px;box-shadow:0 24px 70px #0f172a40}.confirm-dialog h2{color:#7f1d1d;margin-bottom:10px}.confirm-dialog p:not(.panel-kicker){color:#475569;line-height:1.55}.confirm-dialog input{color:#0f172a;background:#fff7f7;border:1px solid #fecaca;border-radius:10px;width:100%;margin:8px 0 18px;padding:12px 14px}.confirm-dialog input:focus{border-color:#ef4444;outline:none;box-shadow:0 0 0 3px #ef444424}.confirm-delete-button{color:#fff;background:#dc2626;border-color:#dc2626;padding:10px 14px}.confirm-delete-button:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}@media (width<=768px){.content-grid,.subject-form{grid-template-columns:1fr}.subject-form>label:first-child,.subject-form>label:last-of-type,.subject-form>.two-column,.subject-form>.feedback,.subject-form>.form-actions{grid-column:auto}.subject-table-heading{flex-direction:column}.subject-table-actions{justify-content:flex-start;width:100%}.calendar-header{flex-direction:column}.calendar-layout{grid-template-columns:1fr}.calendar-connect-button{width:100%}}@media (width<=480px){.app-shell,.dashboard-shell{padding:10px}.topbar{align-items:center;gap:8px;margin-bottom:18px}.topbar>div:first-child{min-width:0}.topbar .eyebrow{margin-bottom:4px;font-size:.62rem}.topbar h1{font-size:clamp(1.35rem,6vw,1.8rem)}.profile-box{text-align:left;width:auto;padding:7px 9px}.profile-box-heading{justify-content:flex-start}.profile-box small{display:none}.header-avatar{width:34px;height:34px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}.metric-card{border-radius:14px;min-width:0;padding:12px}.metric-card span{margin-bottom:5px;font-size:.72rem}.metric-card strong{overflow-wrap:anywhere;font-size:clamp(1.15rem,6vw,1.65rem)}.panel{border-radius:16px;padding:15px}.panel h2{margin-bottom:14px;font-size:1.15rem}.two-column{grid-template-columns:1fr}.mode-switch{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:16px 0}.mode-button{padding:9px 4px;font-size:.78rem}.whatif-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.whatif-results>div{min-width:0;padding:11px}.subject-table-actions{grid-template-columns:1fr 1fr;display:grid}.subject-table-actions .secondary-button,.subject-table-actions .primary-button{white-space:normal;width:100%}.subject-form-heading{align-items:flex-start}.subject-form-heading>button{padding:7px 10px}.form-actions{flex-direction:column}.profile-modal-backdrop{align-items:end;padding:10px}.profile-modal{border-radius:24px 24px 18px 18px;max-height:94vh}.profile-modal-actions,.subject-modal-actions{flex-direction:column-reverse}.profile-modal-actions .primary-button,.profile-modal-actions .secondary-button,.subject-modal-actions .primary-button,.subject-modal-actions .secondary-button,.button-ghost{width:100%}.row-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.row-actions .small-button{min-width:0;padding:8px 5px;font-size:.78rem}.table-wrap{background:0 0;border:0;overflow:visible}table{min-width:0;display:block}thead{display:none}tbody{gap:10px;display:grid}tbody tr{background:#fff;border:1px solid #e1e9f4;border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));display:grid;overflow:hidden;box-shadow:0 5px 14px #1e40af0d}tbody tr:nth-child(2n),tbody tr:hover{background:#fff}tbody td,tbody td:first-child{color:#0f172a;overflow-wrap:anywhere;border-bottom:1px solid #edf2f7;flex-direction:column;justify-content:center;gap:4px;min-width:0;padding:10px 12px;font-size:.88rem;display:flex}tbody td:before{color:#64748b;content:attr(data-label);letter-spacing:.05em;text-transform:uppercase;font-size:.68rem;font-weight:700}tbody td:first-child,tbody td:last-child{grid-column:1/-1}tbody td:last-child{border-bottom:0}.calendar-event{align-items:flex-start;gap:10px;padding:11px}.calendar-event-time{min-width:96px;font-size:.75rem}.calendar-event-time span,.calendar-event-details span{font-size:.75rem}.calendar-event-details{overflow-wrap:anywhere;min-width:0}.calendar-events{max-height:300px}.calendar-header{gap:10px}.calendar-connect-button{min-width:0}.content-grid{gap:12px;margin-bottom:12px}.name-input{width:100%}.auth-card{border-radius:18px}}
