.editable-row{cursor:pointer}.editable-row>td{transition:background-color .15s}.editable-row:hover>td,.editable-row:focus-within>td{background:#f0f6ed}.editable-row .icon-btn{transition:background-color .15s,color .15s}.editable-row:hover .icon-btn{background:#e5efdf;color:var(--green)}
.settings-subnav{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 26px;padding:0 0 12px}.settings-subnav :is(button,a){border:0;border-radius:10px;padding:12px 18px;background:transparent;color:var(--muted);font-weight:650;min-height:44px}.settings-subnav :is(button,a).active{background:#eaf2e4;color:var(--green)}.settings-subnav :is(button,a):hover{background:#f0f5eb}.sidebar .settings-nav-child{font-size:12px;padding:10px 16px 10px 45px;min-height:40px}.categories-table{width:100%;min-width:0}.categories-table td:first-child{overflow-wrap:anywhere}.categories-table td:last-child{width:60px}.categories-table th:nth-child(2),.categories-table td:nth-child(2){text-align:center;width:90px}
.admin-editor{width:min(960px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;overflow:auto;overscroll-behavior:contain;border-radius:22px}.admin-editor.compact{width:min(500px,calc(100% - 32px))}.admin-editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 26px;position:sticky;top:0;z-index:2;background:white;border-bottom:1px solid var(--line)}.admin-editor-header h2{font-size:20px;margin:0;overflow-wrap:anywhere}.admin-editor-header .icon-btn{flex-shrink:0}.admin-editor-body{padding:26px;background:#f8faf6}.admin-editor .admin-form{max-width:none}.admin-editor .form-section{margin-bottom:18px}.admin-editor .page-heading{margin-bottom:20px}.admin-editor .page-heading h1{font-size:26px}.admin-editor .student-profile-grid{gap:28px}.admin-editor .student-tabs{overflow:auto;max-width:100%}.admin-editor .student-tabs button{flex-shrink:0}.admin-editor .button-row{gap:10px}.admin-editor .field>small{display:block}.settings-anonymous{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--line)}.settings-anonymous .field{margin-bottom:8px}body:has(.admin-editor[open]){overflow:hidden}
@media(max-width:700px){.admin-editor{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.admin-editor-header{padding:14px 16px;gap:10px}.admin-editor-header h2{font-size:18px}.admin-editor-body{padding:16px 12px}.admin-editor .form-section{padding:18px 12px}.admin-editor .student-tab-content{padding:18px 12px}.admin-editor .student-tabs{gap:16px;padding:0 12px}.admin-editor .student-access-banner{margin-bottom:16px}.admin-editor .student-detail-heading{flex-direction:column;align-items:flex-start}.admin-editor .student-profile-grid{gap:18px}.categories-table th,.categories-table td{padding:14px 10px;font-size:12px}.settings-subnav :is(button,a){flex:1;padding:12px}}
@media(prefers-reduced-motion:reduce){.editable-row>td,.editable-row .icon-btn{transition:none}}
.admin-editor-notice{display:none;position:sticky;bottom:0;z-index:3;background:var(--ink);color:white;padding:14px 22px;font-size:13px;line-height:1.5}.admin-editor-notice.visible{display:block}
.admin-table-card .table-wrap{position:relative;max-width:100%}.categories-table{table-layout:fixed}.categories-table td:first-child{min-width:0;max-width:none}

/* Dedicated admin sign-in layout, independent of the centered loading screen. */
.admin-auth{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top left,#eaf1e2,transparent 65%),var(--bg)}
.admin-auth-wrap{width:100%;max-width:424px;min-width:0}
.admin-auth-brand{display:flex;justify-content:center;margin-bottom:24px}
.admin-auth-card{padding:32px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 48px #193f350b;text-align:left}
.admin-auth-card .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:10px}
.admin-auth-card h1{font-size:28px;letter-spacing:-.8px;margin:0 0 10px;line-height:1.2}
.admin-auth-card header p{font-size:14px;line-height:1.6;margin:0 0 24px}
.admin-auth-card .field{margin-bottom:18px;text-align:left}
.admin-auth-card .field>span{font-size:13px;margin-bottom:8px;color:var(--ink)}
.admin-auth-card input{min-height:48px;font-size:16px;text-align:left}
.admin-auth-card .btn{min-height:48px;font-size:14px;margin-top:4px;justify-content:space-between}
.admin-auth-back{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:fit-content;margin:16px auto 0;padding:8px 12px;border-radius:10px;font-size:13px;color:var(--muted)}
.admin-auth-back .icon{width:17px;height:17px}
.admin-auth-back:hover{background:#eaf1e2;color:var(--green)}
@media(max-width:480px){.admin-auth{padding:20px 16px}.admin-auth-card{padding:26px 22px;border-radius:18px}.admin-auth-brand{margin-bottom:20px}.admin-auth-card h1{font-size:26px}}
@media(max-height:650px) and (min-width:481px){.admin-auth{padding:20px}.admin-auth-card{padding:26px 30px}.admin-auth-brand{margin-bottom:18px}.admin-auth-card header p{margin-bottom:20px}}
@media(max-height:650px) and (max-width:480px){.admin-auth{padding:16px}.admin-auth-brand{margin-bottom:16px}.admin-auth-card{padding-top:22px;padding-bottom:22px}.admin-auth-back{margin-top:12px}}

.welcome-settings{grid-column:1/-1}
.welcome-settings>p{font-size:13px}
.welcome-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:22px}
.welcome-editor-grid textarea{min-height:220px;line-height:1.6;resize:vertical}
.welcome-editor-grid h4{margin:0 0 10px}
.welcome-variables{display:flex;flex-wrap:wrap;gap:8px}
.welcome-variable{padding:8px 10px;border:1px solid #d3ded7;border-radius:9px;background:#f3f7f1;color:#125f58;text-align:left;font-size:12px;min-height:44px}
.welcome-variable:hover{background:#e7efdf}
.welcome-variable small{display:block;font-size:10px;margin-top:3px;color:#53665d}
.welcome-preview{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #d6e6ce;border-radius:14px;background:#edf6e6;padding:20px;font-size:14px;line-height:1.7;min-height:160px;color:#243c37}
#welcome-template-error{color:#b42332}
.welcome-delivery-summary{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line)}
@media(max-width:700px){.welcome-editor-grid{grid-template-columns:1fr;gap:20px}.welcome-preview{padding:16px}}

.configurable-section textarea{resize:vertical;min-height:100px;line-height:1.5}.configurable-section{min-width:0}.configurable-section .hint{overflow-wrap:anywhere}
