/* SchoolFlow design system */
:root {
	--sf-bg: #f4f6fb;
	--sf-surface: #ffffff;
	--sf-surface-2: #f8fafc;
	--sf-border: #e5e8f0;
	--sf-text: #0f172a;
	--sf-muted: #64748b;
	--sf-primary: #4f46e5;
	--sf-primary-600: #4338ca;
	--sf-primary-50: #eef2ff;
	--sf-green: #059669;
	--sf-green-50: #ecfdf5;
	--sf-amber: #b45309;
	--sf-amber-50: #fffbeb;
	--sf-red: #dc2626;
	--sf-red-50: #fef2f2;
	--sf-blue: #2563eb;
	--sf-blue-50: #eff6ff;
	--sf-violet: #7c3aed;
	--sf-violet-50: #f5f3ff;
	--sf-slate-50: #f1f5f9;
	--sf-sidebar: #0f172a;
	--sf-sidebar-2: #1e293b;
	--sf-radius: 14px;
	--sf-radius-sm: 9px;
	--sf-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .05);
	--sf-shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
	--sf-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body.sf { margin: 0; padding: 0; }
body.sf { font-family: var(--sf-font); font-size: 14.5px; line-height: 1.5; color: var(--sf-text); background: var(--sf-bg); -webkit-font-smoothing: antialiased; }
.sf a { color: var(--sf-primary); text-decoration: none; }
.sf a:hover { text-decoration: underline; }
.sf h1, .sf h2, .sf h3, .sf h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.sf h1 { font-size: 1.55rem; }
.sf h2 { font-size: 1.15rem; }
.sf h3 { font-size: 1rem; }
.sf p { margin: 0 0 .8em; }
.sf-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.sf-muted { color: var(--sf-muted); }
.sf-small { font-size: .85em; }
.sf-nowrap { white-space: nowrap; }
.sf-right { text-align: right; }
.sf-hidden { display: none !important; }
.sf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.sf-app { display: flex; min-height: 100vh; }
.sf-sidebar { width: 264px; flex: none; background: var(--sf-sidebar); color: #cbd5e1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.sf-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.sf-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #6366f1, #22d3ee); display: grid; place-items: center; color: #fff; }
.sf-brand-mark .sf-ico { width: 20px; height: 20px; }
.sf-school-chip { margin: 0 14px 10px; padding: 10px 12px; border-radius: 10px; background: var(--sf-sidebar-2); color: #e2e8f0; font-size: .85rem; }
.sf-school-chip strong { display: block; color: #fff; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-school-chip select { width: 100%; margin-top: 6px; background: #0b1222; color: #e2e8f0; border: 1px solid #334155; border-radius: 7px; padding: 5px; font: inherit; }
.sf-nav { padding: 6px 10px 20px; flex: 1; }
.sf-nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 14px 12px 6px; font-weight: 700; }
.sf .sf-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: #cbd5e1; font-weight: 500; text-decoration: none; margin-bottom: 1px; }
.sf .sf-nav a:hover { background: var(--sf-sidebar-2); color: #fff; }
.sf .sf-nav a.is-active { background: linear-gradient(90deg, rgba(99, 102, 241, .35), rgba(99, 102, 241, .1)); color: #fff; box-shadow: inset 3px 0 0 #818cf8; }
.sf-nav .sf-count { margin-left: auto; background: #ef4444; color: #fff; border-radius: 99px; font-size: .7rem; padding: 0 7px; font-weight: 700; }
.sf-sidebar-foot { padding: 14px 20px; border-top: 1px solid #1e293b; font-size: .8rem; color: #64748b; }

.sf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(244, 246, 251, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--sf-border); }
.sf-topbar-title { font-weight: 700; font-size: 1.05rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-menu-btn { display: none; }
.sf-content { padding: 26px 28px 60px; max-width: 1500px; width: 100%; }
.sf-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sf-page-head p { margin: 0; color: var(--sf-muted); }
.sf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.sf-user { display: flex; align-items: center; gap: 8px; }
.sf-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sf-primary-50); color: var(--sf-primary); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* ---------- Bell ---------- */
.sf-bell { position: relative; }
.sf-bell-btn { position: relative; }
.sf-bell-dot { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.sf-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: var(--sf-radius); box-shadow: var(--sf-shadow-lg); display: none; z-index: 60; overflow: hidden; }
.sf-dropdown.is-open { display: block; }
.sf-dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--sf-border); font-weight: 700; }
.sf-dropdown-list { max-height: 380px; overflow-y: auto; }
.sf-notif { display: block; padding: 11px 14px; border-bottom: 1px solid var(--sf-border); color: var(--sf-text); }
.sf .sf-notif { color: var(--sf-text); text-decoration: none; }
.sf-notif:hover { background: var(--sf-surface-2); }
.sf-notif.is-unread { background: var(--sf-primary-50); }
.sf-notif-title { font-weight: 600; font-size: .9rem; }
.sf-notif-msg { color: var(--sf-muted); font-size: .82rem; }
.sf-notif-time { color: #94a3b8; font-size: .75rem; }

/* ---------- Cards ---------- */
.sf-card { background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: var(--sf-radius); box-shadow: var(--sf-shadow); margin-bottom: 20px; }
.sf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--sf-border); flex-wrap: wrap; }
.sf-card-head h2, .sf-card-head h3 { margin: 0; }
.sf-card-body { padding: 18px 20px; }
.sf-card-body.is-flush { padding: 0; }
.sf-grid { display: grid; gap: 18px; }
.sf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sf-stat { background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: var(--sf-radius); box-shadow: var(--sf-shadow); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.sf-stat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--sf-primary-50); color: var(--sf-primary); }
.sf-stat-ico .sf-ico { width: 22px; height: 22px; }
.sf-stat-ico.is-green { background: var(--sf-green-50); color: var(--sf-green); }
.sf-stat-ico.is-amber { background: var(--sf-amber-50); color: var(--sf-amber); }
.sf-stat-ico.is-red { background: var(--sf-red-50); color: var(--sf-red); }
.sf-stat-ico.is-violet { background: var(--sf-violet-50); color: var(--sf-violet); }
.sf-stat-ico.is-blue { background: var(--sf-blue-50); color: var(--sf-blue); }
.sf-stat-val { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sf-stat-label { color: var(--sf-muted); font-size: .82rem; }
.sf-hero { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #0ea5e9 100%); color: #fff; border-radius: var(--sf-radius); padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--sf-shadow); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.sf-hero h1 { color: #fff; margin-bottom: 4px; }
.sf-hero p { margin: 0; opacity: .9; }
.sf-hero .sf-btn { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }
.sf-hero .sf-btn:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Progress ---------- */
.sf-progress { height: 8px; background: var(--sf-slate-50); border-radius: 99px; overflow: hidden; }
.sf-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #22d3ee); border-radius: 99px; }
.sf-steps { list-style: none; margin: 0; padding: 0; }
.sf-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--sf-border); }
.sf-steps li:last-child { border-bottom: 0; }
.sf-step-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sf-border); display: grid; place-items: center; flex: none; }
.sf-steps li.is-done .sf-step-dot { background: var(--sf-green); border-color: var(--sf-green); color: #fff; }
.sf-steps li.is-done .sf-step-dot .sf-ico { width: 14px; height: 14px; }
.sf-steps li .sf-step-label { flex: 1; }
.sf-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .85rem; }
.sf-bar-label { width: 38%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-bar-track { flex: 1; height: 10px; background: var(--sf-slate-50); border-radius: 99px; overflow: hidden; }
.sf-bar-fill { display: block; height: 100%; background: var(--sf-primary); border-radius: 99px; }
.sf-bar-fill.is-hot { background: var(--sf-red); }
.sf-bar-fill.is-warm { background: #f59e0b; }
.sf-bar-val { width: 58px; text-align: right; color: var(--sf-muted); }

/* ---------- Buttons ---------- */
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: var(--sf-radius-sm); border: 1px solid var(--sf-border); background: var(--sf-surface); color: var(--sf-text); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; line-height: 1.3; }
.sf .sf-btn { color: var(--sf-text); text-decoration: none; }
.sf-btn:hover { background: var(--sf-surface-2); border-color: #cbd5e1; }
.sf-btn:focus-visible, .sf-input:focus-visible, .sf a:focus-visible { outline: 3px solid rgba(99, 102, 241, .45); outline-offset: 1px; }
.sf .sf-btn-primary, .sf-btn-primary { background: var(--sf-primary); color: #fff; border-color: var(--sf-primary); }
.sf-btn-primary:hover { background: var(--sf-primary-600); border-color: var(--sf-primary-600); }
.sf .sf-btn-danger { color: var(--sf-red); border-color: #fecaca; background: #fff; }
.sf-btn-danger:hover { background: var(--sf-red-50); }
.sf .sf-btn-success { background: var(--sf-green); color: #fff; border-color: var(--sf-green); }
.sf-btn-ghost { background: transparent; border-color: transparent; }
.sf-btn-sm { padding: 5px 10px; font-size: .8rem; }
.sf-btn-icon { padding: 7px; }
.sf-btn[disabled], .sf-btn.is-loading { opacity: .6; pointer-events: none; }
.sf-btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sf-spin .7s linear infinite; }
@keyframes sf-spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.sf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.sf-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sf-field.is-full { grid-column: 1 / -1; }
.sf-field > label, .sf-label { font-weight: 600; font-size: .83rem; color: #334155; }
.sf-help { color: var(--sf-muted); font-size: .78rem; }
.sf-input, .sf select, .sf textarea, .sf input[type="text"], .sf input[type="email"], .sf input[type="password"], .sf input[type="number"], .sf input[type="date"], .sf input[type="time"], .sf input[type="month"], .sf input[type="search"], .sf input[type="tel"] { width: 100%; padding: 9px 11px; border: 1px solid #d5dbe6; border-radius: var(--sf-radius-sm); background: #fff; font: inherit; color: var(--sf-text); transition: border-color .15s, box-shadow .15s; }
.sf input[type="color"] { width: 56px; height: 38px; padding: 2px; border: 1px solid #d5dbe6; border-radius: 8px; background: #fff; }
.sf select:focus, .sf textarea:focus, .sf input:focus { outline: none; border-color: var(--sf-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .18); }
.sf-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.sf-check input { width: 17px; height: 17px; accent-color: var(--sf-primary); }
.sf-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sf-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-chipset label { border: 1px solid var(--sf-border); border-radius: 99px; padding: 5px 11px; cursor: pointer; font-size: .83rem; display: inline-flex; gap: 6px; align-items: center; background: #fff; }
.sf-chipset input { accent-color: var(--sf-primary); }
.sf-chipset label:has(input:checked) { background: var(--sf-primary-50); border-color: #c7d2fe; color: var(--sf-primary-600); }
.sf-form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sf-inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.sf-inline-form .sf-field { min-width: 140px; }
.sf-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--sf-border); }
.sf-toolbar .sf-input, .sf-toolbar select, .sf-toolbar input { width: auto; min-width: 150px; }
.sf-search { position: relative; }
.sf-search .sf-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--sf-muted); width: 16px; }
.sf-search input { padding-left: 32px !important; }

/* ---------- Tables ---------- */
.sf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sf-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sf-table th { text-align: left; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sf-muted); background: var(--sf-surface-2); padding: 10px 14px; border-bottom: 1px solid var(--sf-border); white-space: nowrap; }
.sf-table td { padding: 11px 14px; border-bottom: 1px solid var(--sf-border); vertical-align: middle; }
.sf-table tbody tr:hover { background: #fafbff; }
.sf-table tbody tr:last-child td { border-bottom: 0; }
.sf-table .sf-row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.sf-table input[type="number"] { width: 78px; padding: 6px 8px; }
.sf-table select { min-width: 160px; padding: 6px 8px; }
.sf-table tfoot td { font-weight: 700; background: var(--sf-surface-2); }

/* ---------- Badges ---------- */
.sf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.sf-badge-green { background: var(--sf-green-50); color: var(--sf-green); border-color: #a7f3d0; }
.sf-badge-blue { background: var(--sf-blue-50); color: var(--sf-blue); border-color: #bfdbfe; }
.sf-badge-amber { background: var(--sf-amber-50); color: var(--sf-amber); border-color: #fde68a; }
.sf-badge-red { background: var(--sf-red-50); color: var(--sf-red); border-color: #fecaca; }
.sf-badge-violet { background: var(--sf-violet-50); color: var(--sf-violet); border-color: #ddd6fe; }
.sf-badge-slate { background: var(--sf-slate-50); color: #475569; border-color: #e2e8f0; }
.sf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* ---------- Alerts ---------- */
.sf-alert { padding: 12px 14px; border-radius: var(--sf-radius-sm); margin-bottom: 14px; border: 1px solid; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.sf-alert-error { background: var(--sf-red-50); border-color: #fecaca; color: #991b1b; }
.sf-alert-success { background: var(--sf-green-50); border-color: #a7f3d0; color: #065f46; }
.sf-alert-warning { background: var(--sf-amber-50); border-color: #fde68a; color: #92400e; }
.sf-alert-info { background: var(--sf-blue-50); border-color: #bfdbfe; color: #1e40af; }
.sf-issues { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.sf-issues li { padding: 8px 12px; border-bottom: 1px solid var(--sf-border); font-size: .86rem; display: flex; gap: 8px; }
.sf-issues li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.sf-issues.is-error li::before { background: var(--sf-red); }
.sf-issues.is-warning li::before { background: #f59e0b; }
.sf-issues.is-opportunity li::before { background: var(--sf-blue); }

/* ---------- Empty state ---------- */
.sf-empty { text-align: center; padding: 42px 20px; color: var(--sf-muted); }
.sf-empty .sf-empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--sf-primary-50); color: var(--sf-primary); display: grid; place-items: center; margin: 0 auto 12px; }
.sf-empty .sf-empty-ico .sf-ico { width: 28px; height: 28px; }
.sf-empty h3 { color: var(--sf-text); }

/* ---------- Tabs ---------- */
.sf-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sf-border); margin-bottom: 18px; overflow-x: auto; }
.sf .sf-tabs a { padding: 10px 14px; color: var(--sf-muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.sf .sf-tabs a.is-active { color: var(--sf-primary); border-bottom-color: var(--sf-primary); }

/* ---------- Timetable grid ---------- */
.sf-tt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sf-tt { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 720px; }
.sf-tt th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sf-muted); font-weight: 700; padding: 6px; text-align: center; }
.sf-tt th.sf-tt-day { text-align: left; width: 90px; }
.sf-tt th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: #94a3b8; }
.sf-tt td { height: 62px; vertical-align: top; padding: 0; }
.sf-cell { height: 100%; min-height: 60px; border-radius: 10px; padding: 7px 9px; background: #fff; border: 1px solid var(--sf-border); border-left: 4px solid var(--c, #6366f1); font-size: .8rem; position: relative; }
.sf-cell-subject { font-weight: 700; color: var(--sf-text); line-height: 1.2; }
.sf-cell-meta { color: var(--sf-muted); font-size: .74rem; line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-cell.is-empty { border: 1px dashed #cbd5e1; background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, #f4f6f9 6px, #f4f6f9 12px); color: #94a3b8; border-left-width: 1px; display: grid; place-items: center; }
.sf-cell.is-blocked { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; display: grid; place-items: center; border-left-width: 1px; font-weight: 600; }
.sf-cell.is-conflict { box-shadow: 0 0 0 2px var(--sf-red); }
.sf-cell.is-sub { border-left-color: var(--sf-violet); background: var(--sf-violet-50); }
.sf-cell.is-now { box-shadow: 0 0 0 2px var(--sf-primary); }
.sf-cell-flag { position: absolute; top: 5px; right: 6px; display: flex; gap: 3px; }
.sf-cell-flag .sf-ico { width: 12px; height: 12px; color: var(--sf-muted); }
.sf-cell.is-editable { cursor: pointer; }
.sf-cell.is-editable:hover { border-color: var(--sf-primary); }
.sf-tt-master td { height: 44px; }
.sf-tt-master .sf-cell { min-height: 42px; padding: 4px 6px; font-size: .72rem; }
.sf-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .8rem; color: var(--sf-muted); }

/* Unavailability picker */
.sf-slotgrid { border-collapse: separate; border-spacing: 3px; }
.sf-slotgrid th { font-size: .72rem; color: var(--sf-muted); font-weight: 600; padding: 2px 4px; }
.sf-slotgrid label { display: block; width: 30px; height: 26px; border-radius: 6px; background: var(--sf-slate-50); border: 1px solid var(--sf-border); cursor: pointer; position: relative; }
.sf-slotgrid input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sf-slotgrid label:has(input:checked) { background: var(--sf-red-50); border-color: #fca5a5; }
.sf-slotgrid label:has(input:checked)::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--sf-red); font-weight: 700; }

/* ---------- Modal ---------- */
.sf-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; z-index: 100; overflow-y: auto; backdrop-filter: blur(2px); }
.sf-modal.is-open { display: flex; }
.sf-modal-box { background: #fff; border-radius: 16px; box-shadow: var(--sf-shadow-lg); width: 100%; max-width: 620px; animation: sf-pop .18s ease-out; }
.sf-modal-box.is-wide { max-width: 920px; }
@keyframes sf-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.sf-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--sf-border); }
.sf-modal-head h2 { margin: 0; }
.sf-modal-body { padding: 18px 20px; }
.sf-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--sf-border); background: var(--sf-surface-2); border-radius: 0 0 16px 16px; }
.sf-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--sf-muted); padding: 4px 8px; border-radius: 8px; }
.sf-close:hover { background: var(--sf-slate-50); }

/* ---------- Toast ---------- */
.sf-toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 200; max-width: calc(100vw - 36px); }
.sf-toast { background: #0f172a; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sf-shadow-lg); font-size: .9rem; max-width: 420px; display: flex; gap: 10px; align-items: flex-start; animation: sf-pop .2s ease-out; }
.sf-toast.is-error { background: #991b1b; }
.sf-toast.is-success { background: #065f46; }

/* ---------- Auth ---------- */
.sf-auth-body { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.sf-auth-side { background: linear-gradient(145deg, #312e81 0%, #4f46e5 45%, #0ea5e9 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.sf-auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .07); right: -160px; bottom: -160px; }
.sf-auth-side h2 { font-size: 2rem; color: #fff; max-width: 440px; }
.sf-auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.sf-auth-side li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.sf-auth-side li .sf-ico { background: rgba(255, 255, 255, .18); border-radius: 8px; padding: 4px; width: 26px; height: 26px; }
.sf-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.sf-auth-card { width: 100%; max-width: 430px; }
.sf-auth-card .sf-brand { color: var(--sf-text); padding: 0 0 24px; }
.sf-auth-card .sf-field { margin-bottom: 14px; }
.sf-auth-card .sf-btn-primary { width: 100%; padding: 11px; font-size: .95rem; }
.sf-auth-links { margin-top: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; }
.sf-hp { position: absolute !important; left: -9999px !important; }
.sf-divider { display: flex; align-items: center; gap: 10px; color: var(--sf-muted); font-size: .8rem; margin: 18px 0; }
.sf-divider::before, .sf-divider::after { content: ""; flex: 1; height: 1px; background: var(--sf-border); }

/* ---------- Misc ---------- */
.sf-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .88rem; }
.sf-kv dt { color: var(--sf-muted); }
.sf-kv dd { margin: 0; font-weight: 600; }
.sf-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--sf-slate-50); padding: 3px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .08em; }
.sf-list { list-style: none; margin: 0; padding: 0; }
.sf-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid var(--sf-border); }
.sf-list li:last-child { border-bottom: 0; }
.sf-score { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; }
.sf-breakdown { font-size: .78rem; color: var(--sf-muted); margin: 4px 0 0; padding-left: 16px; }
.sf-mobile-only { display: none; }
.sf-overlay { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.sf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
	.sf-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--sf-shadow-lg); }
	.sf-app.nav-open .sf-sidebar { transform: none; }
	.sf-app.nav-open .sf-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 35; }
	.sf-menu-btn { display: inline-flex; }
	.sf-grid-3, .sf-grid-2 { grid-template-columns: minmax(0, 1fr); }
	.sf-auth-body { grid-template-columns: 1fr; }
	.sf-auth-side { display: none; }
	.sf-mobile-only { display: initial; }
}
@media (max-width: 640px) {
	.sf-content { padding: 16px 14px 50px; }
	.sf-topbar { padding: 10px 14px; }
	.sf-grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
	.sf-stat { padding: 12px; gap: 10px; }
	.sf-stat-ico { width: 36px; height: 36px; }
	.sf-stat-val { font-size: 1.2rem; }
	.sf-form-grid, .sf-form-grid-3 { grid-template-columns: minmax(0, 1fr); }
	.sf-card-head, .sf-card-body { padding-left: 14px; padding-right: 14px; }
	.sf-hide-sm { display: none; }
	.sf-user-name { display: none; }
	.sf-table th, .sf-table td { padding: 9px 10px; }
	.sf-modal { padding-top: 12px; }
	.sf-toolbar .sf-input, .sf-toolbar select, .sf-toolbar input { min-width: 0; flex: 1 1 140px; }
}

/* ---------- Print ---------- */
@media print {
	body.sf { background: #fff; font-size: 11px; }
	.sf-sidebar, .sf-topbar, .sf-actions, .sf-no-print, .sf-toolbar, .sf-toasts, .sf-modal, .sf-btn { display: none !important; }
	.sf-content { padding: 0; max-width: none; }
	.sf-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
	.sf-tt { min-width: 0; }
	.sf-cell { border-color: #bbb; }
	.sf-print-break { break-after: page; }
	a { color: inherit !important; }
}
body.sf.sf-print .sf-sidebar, body.sf.sf-print .sf-topbar { display: none; }

/* ---------- Motion (app-wide) ---------- */
@keyframes sf-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-load { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }
@keyframes sf-cell-in { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes sf-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sf-pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } }
@keyframes sf-blink-a { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sf-wave-a { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
@keyframes sf-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.sf-content > * { animation: sf-fade-up .45s ease both; }
.sf-content > *:nth-child(2) { animation-delay: .05s; } .sf-content > *:nth-child(3) { animation-delay: .1s; } .sf-content > *:nth-child(4) { animation-delay: .15s; } .sf-content > *:nth-child(n+5) { animation-delay: .2s; }
.sf-grid > .sf-stat { animation: sf-fade-up .5s ease both; }
.sf-grid > .sf-stat:nth-child(2) { animation-delay: .06s; } .sf-grid > .sf-stat:nth-child(3) { animation-delay: .12s; } .sf-grid > .sf-stat:nth-child(4) { animation-delay: .18s; } .sf-grid > .sf-stat:nth-child(n+5) { animation-delay: .24s; }
.sf-stat, .sf-card { transition: transform .2s ease, box-shadow .2s ease; }
.sf-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.sf-dropdown.is-open { animation: sf-fade-up .18s ease both; }
.sf-tt .sf-cell { animation: sf-cell-in .35s ease both; }
.sf-loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #6366f1, #22d3ee); transform-origin: left; transform: scaleX(0); z-index: 300; opacity: 0; }
.sf-loadbar.is-on { opacity: 1; animation: sf-load 1.6s ease forwards; }
body.sf { animation: sf-fade .25s ease both; }
.sf-skeleton { background: linear-gradient(90deg, #f1f5f9 0, #e2e8f0 50%, #f1f5f9 100%); background-size: 800px 100%; animation: sf-shimmer 1.2s linear infinite; border-radius: 8px; height: 14px; margin: 8px 0; }
.sf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.sf-reveal.is-in { opacity: 1; transform: none; }
.sf-notif.is-priority { border-left: 3px solid var(--sf-red); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.sf-reveal { opacity: 1; transform: none; }
}

/* ---------- Timetable breaks ---------- */
.sf-tt th.sf-tt-brk { width: 34px; }
.sf-tt td.sf-tt-brk { width: 34px; }
.sf-cell.is-break { background: repeating-linear-gradient(135deg, #fff7ed, #fff7ed 6px, #ffedd5 6px, #ffedd5 12px); border: 1px solid #fed7aa; color: #c2410c; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 2px; min-height: 60px; border-left-width: 1px; }
.sf-cell.is-break.is-lunch { background: repeating-linear-gradient(135deg, #f0fdf4, #f0fdf4 6px, #dcfce7 6px, #dcfce7 12px); border-color: #bbf7d0; color: #15803d; }
.sf-cell.is-leave { background: #fef2f2; border-color: #fecaca; border-left-color: #ef4444; }

/* ---------- Landing page ---------- */
.sf-home-body { background: #fff; overflow-x: hidden; overflow-x: clip; width: 100%; max-width: 100%; }
.sf-home-body > header, .sf-home-body > section, .sf-home-body > footer { max-width: 100vw; }
.sf-home-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; }
.sf-home-nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(226, 232, 240, .7); }
.sf-home-nav-in { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 16px; }
.sf-home-nav .sf-brand { color: var(--sf-text); }
.sf-home-menu { display: flex; gap: 26px; }
.sf .sf-home-menu a { color: #475569; font-weight: 600; font-size: .92rem; text-decoration: none; position: relative; }
.sf .sf-home-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--sf-primary); transform: scaleX(0); transition: transform .2s; }
.sf .sf-home-menu a:hover::after { transform: scaleX(1); }
.sf-home-links { display: flex; gap: 8px; align-items: center; }
.sf-btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.sf .sf-btn-white { background: #fff; color: #1e1b4b; border-color: #fff; }
.sf .sf-btn-white:hover { background: #f1f5f9; }
.sf .sf-btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); }
.sf .sf-btn-outline-white:hover { background: rgba(255, 255, 255, .14); }
.sf-home-hero { position: relative; padding: 76px 0 96px; background: linear-gradient(180deg, #f8faff 0%, #fff 100%); overflow: hidden; }
.sf-hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.sf-hero-blob.b1 { width: 520px; height: 520px; background: #c7d2fe; top: -180px; right: -120px; animation: sf-floaty 9s ease-in-out infinite; }
.sf-hero-blob.b2 { width: 420px; height: 420px; background: #a5f3fc; bottom: -200px; left: -140px; animation: sf-floaty 11s ease-in-out infinite reverse; }
.sf-home-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.sf-home-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--sf-primary-600); border: 1px solid #c7d2fe; border-radius: 99px; padding: 5px 14px; font-weight: 600; font-size: .82rem; margin-bottom: 18px; box-shadow: var(--sf-shadow); }
.sf-pulse { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: sf-pulse-ring 1.6s infinite; }
.sf-home-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: 18px; }
.sf-grad-text { background: linear-gradient(90deg, #4f46e5, #7c3aed 45%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-home-copy p { font-size: 1.12rem; color: #475569; max-width: 560px; }
.sf-hero-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: #334155; font-weight: 500; font-size: .92rem; }
.sf-hero-ticks li { display: flex; align-items: center; gap: 6px; }
.sf-hero-ticks .sf-ico { color: #10b981; }
.sf-demo { position: relative; }
.sf-demo-window { background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(30, 27, 75, .18); border: 1px solid #e0e7ff; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
.sf-demo-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--sf-border); }
.sf-demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: #fca5a5; } .sf-demo-bar span:nth-child(2) { background: #fcd34d; } .sf-demo-bar span:nth-child(3) { background: #86efac; }
.sf-demo-bar em { margin-left: 10px; font-style: normal; font-size: .78rem; color: var(--sf-muted); font-weight: 600; }
.sf-demo-status { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .8rem; font-weight: 600; color: var(--sf-primary-600); position: relative; height: 38px; }
.sf-spinner { width: 14px; height: 14px; border: 2px solid #c7d2fe; border-top-color: var(--sf-primary); border-radius: 50%; animation: sf-spin .8s linear infinite, sf-hide-x 6s infinite; }
.sf-demo-gen { animation: sf-hide-x 6s infinite; }
.sf-demo-done { position: absolute; left: 14px; display: flex; align-items: center; gap: 6px; color: #059669; opacity: 0; animation: sf-show-x 6s infinite; }
.sf-demo-done .sf-ico { width: 16px; height: 16px; }
@keyframes sf-hide-x { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sf-show-x { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.sf-demo-grid { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 5px; padding: 6px 14px 16px; }
.sf-demo-grid b { font-size: .66rem; color: var(--sf-muted); text-align: center; align-self: center; }
.sf-demo-grid i { font-style: normal; font-size: .66rem; font-weight: 700; height: 34px; border-radius: 7px; display: grid; place-items: center; }
.sf-demo-cell { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); border-left: 3px solid var(--c); opacity: 0; animation: sf-demo-cell 6s infinite; animation-delay: var(--d); }
@keyframes sf-demo-cell { 0% { opacity: 0; transform: scale(.5); } 8% { opacity: 1; transform: scale(1.06); } 12%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
.sf-demo-break { background: repeating-linear-gradient(135deg, #f0fdf4, #f0fdf4 5px, #dcfce7 5px, #dcfce7 10px); color: #15803d; font-size: .58rem !important; }
.sf-float { position: absolute; display: flex; gap: 10px; align-items: center; background: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .16); border: 1px solid var(--sf-border); animation: sf-floaty 5s ease-in-out infinite; }
.sf-float strong { display: block; font-size: .82rem; } .sf-float small { color: var(--sf-muted); font-size: .74rem; }
.sf-float-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.sf-float.f1 { left: -34px; bottom: 28px; }
.sf-float.f2 { right: -22px; top: -22px; animation-delay: 1.5s; }
.sf-home-section { padding: 88px 0; }
.sf-home-h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; letter-spacing: -.02em; margin-bottom: 14px !important; }
.sf-home-sub { text-align: center; color: var(--sf-muted); max-width: 640px; margin: 0 auto 40px; font-size: 1.05rem; }
.sf-home-steps-bg { background: #f8fafc; border-top: 1px solid var(--sf-border); border-bottom: 1px solid var(--sf-border); }
.sf-entry-section { padding: 88px 0; background: radial-gradient(900px 400px at 50% 0%, #eef2ff 0%, transparent 70%); }
.sf-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sf-entry-card { position: relative; border-radius: 24px; padding: 32px; color: #fff; overflow: hidden; box-shadow: 0 24px 60px rgba(30, 27, 75, .18); transition: transform .25s ease, box-shadow .25s ease; }
.sf-entry-card:hover { transform: translateY(-4px); box-shadow: 0 32px 70px rgba(30, 27, 75, .26); }
.sf-entry-card.is-school { background: linear-gradient(150deg, #4338ca 0%, #6d28d9 60%, #7c3aed 100%); }
.sf-entry-card.is-teacher { background: linear-gradient(150deg, #0369a1 0%, #0891b2 55%, #0d9488 100%); }
.sf-entry-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .07); right: -90px; top: -110px; }
.sf-entry-art svg { width: 100%; max-width: 260px; height: auto; display: block; margin: -6px 0 6px auto; }
.sf-entry-tag { display: inline-block; background: rgba(255, 255, 255, .18); padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sf-entry-card h3 { color: #fff; font-size: 1.7rem; margin: 10px 0 12px; }
.sf-entry-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.sf-entry-card li { padding-left: 26px; position: relative; opacity: .95; }
.sf-entry-card li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: .7rem; display: grid; place-items: center; font-weight: 800; }
.sf-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.sf-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.sf-step-card { position: relative; background: #fff; border: 1px solid var(--sf-border); border-radius: 18px; padding: 24px; box-shadow: var(--sf-shadow); }
.sf-step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .1); transition: .25s; }
.sf-step-num { position: absolute; top: 18px; right: 20px; font-size: 2.4rem; font-weight: 800; color: #eef2ff; line-height: 1; }
.sf-step-card .sf-stat-ico { margin-bottom: 14px; }
.sf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sf-flow { position: relative; display: grid; gap: 14px; padding-left: 26px; }
.sf-flow::before { content: ""; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(#f59e0b, #0ea5e9, #8b5cf6, #10b981); opacity: .35; }
.sf-flow-step { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--sf-border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sf-shadow); animation: sf-flow-hl 8s infinite; animation-delay: calc(var(--i) * 2s); position: relative; }
.sf-flow-step strong { display: block; } .sf-flow-step small { color: var(--sf-muted); }
.sf-flow-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent); }
@keyframes sf-flow-hl { 0%, 22% { transform: translateX(10px); border-color: #c7d2fe; box-shadow: 0 14px 34px rgba(79, 70, 229, .18); } 28%, 100% { transform: none; border-color: var(--sf-border); box-shadow: var(--sf-shadow); } }
.sf-home-feature { padding: 26px; margin: 0; }
.sf-home-feature:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, .1); }
.sf-home-feature .sf-stat-ico { margin-bottom: 14px; }
.sf-home-features { margin-top: 32px; }
.sf-home-cta { padding: 80px 0; text-align: center; background: linear-gradient(135deg, #312e81, #4f46e5 50%, #0ea5e9); color: #fff; }
.sf-home-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sf-home-cta p { opacity: .9; font-size: 1.1rem; margin-bottom: 26px; }
.sf-home-foot { padding: 28px 0; font-size: .88rem; color: var(--sf-muted); }
.sf-home-foot .sf-home-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sf-flag { transform-origin: 120px 9px; animation: sf-wave-a 2.4s ease-in-out infinite; }
.sf-float-y { animation: sf-floaty 4s ease-in-out infinite; }
.sf-blink { animation: sf-blink-a 1.4s infinite; }
.sf-wave { transform-origin: 160px 100px; animation: sf-wave-a 2.2s ease-in-out infinite; }
@media (max-width: 980px) {
	.sf-home-hero-in, .sf-split, .sf-entry { grid-template-columns: 1fr; gap: 36px; }
	.sf-steps-row { grid-template-columns: 1fr 1fr; }
	.sf-demo-window { transform: none; }
	.sf-float.f1 { left: 6px; bottom: -22px; } .sf-float.f2 { right: 6px; top: -26px; }
	/* The section links do not fit on tablets/phones (they caused the page to be wider than the screen). */
	.sf-home-nav .sf-home-menu { display: none; }
	.sf-home-nav-in { gap: 10px; }
	.sf-home-nav .sf-brand { min-width: 0; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sf-home-links { flex-shrink: 0; }
	.sf-demo { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
	.sf-home-hero { padding: 40px 0 64px; }
	.sf-home-section, .sf-entry-section { padding: 56px 0; }
	.sf-steps-row { grid-template-columns: 1fr; }
	.sf-entry-card { padding: 24px; }
	.sf-demo-grid { gap: 3px; padding: 4px 8px 12px; grid-template-columns: 30px repeat(7, 1fr); }
	.sf-demo-grid i { font-size: .52rem; height: 28px; }
	.sf-float { padding: 8px 10px; } .sf-float strong { font-size: .74rem; }
	.sf-home-links .sf-btn-ghost { display: none; }
	.sf-home-wrap { padding: 0 16px; }
	.sf-home-nav-in { height: 60px; }
	.sf-home-links .sf-btn { padding: 8px 14px; font-size: .86rem; }
	.sf-home-copy h1 { font-size: 2rem; }
	.sf-home-copy p { font-size: 1rem; }
	.sf-home-copy .sf-actions .sf-btn-lg { flex: 1 1 100%; }
	.sf-entry-actions .sf-btn-lg { flex: 1 1 100%; }
	.sf-entry-card h3 { font-size: 1.45rem; }
	.sf-entry-art svg { max-width: 200px; }
	.sf-float.f1 { left: 4px; bottom: -26px; max-width: calc(100% - 8px); }
	.sf-float.f2 { right: 4px; top: -30px; max-width: calc(100% - 8px); }
	.sf-flow { padding-left: 0; }
	.sf-flow::before { left: 18px; }
	.sf-home-foot .sf-home-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
	.sf-home-nav .sf-brand { font-size: 1rem; }
	.sf-home-nav .sf-brand-mark { width: 30px; height: 30px; }
	.sf-demo-grid i { font-size: .46rem; }
}

/* ---------- Auth extras ---------- */
.sf-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--sf-slate-50); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.sf .sf-auth-tabs a { text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--sf-muted); text-decoration: none; transition: .2s; }
.sf .sf-auth-tabs a.is-active { background: #fff; color: var(--sf-primary-600); box-shadow: var(--sf-shadow); }
.sf-auth-side.is-teacher { background: linear-gradient(145deg, #075985 0%, #0891b2 50%, #0d9488 100%); }
.sf-auth-side .sf-entry-art svg { max-width: 320px; margin: 10px 0; }
.sf-req { color: var(--sf-red); }
.sf-auth-card .sf-form-grid .sf-field { margin-bottom: 0; }
.sf-auth-card .sf-form-grid { margin-bottom: 14px; }
.sf-chip-box { border: 1px solid #d5dbe6; border-radius: 10px; padding: 10px; max-height: 190px; overflow-y: auto; background: #fff; }
.sf-chip-box .sf-chipset label { font-size: .8rem; padding: 4px 10px; }
.sf-chip-group { font-size: .72rem; color: var(--sf-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 4px; width: 100%; }
.sf-step-hidden { display: none; }
.sf-school-found { display: flex; gap: 10px; align-items: center; background: var(--sf-green-50); border: 1px solid #a7f3d0; color: #065f46; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }

/* ---------- Import preview ---------- */
.sf-import-table td { vertical-align: top; }
.sf-import-table input { width: 100%; min-width: 110px; padding: 5px 7px; font-size: .82rem; border: 1px solid #d5dbe6; border-radius: 7px; }
.sf-import-table tr.is-error td { background: #fef2f2; }
.sf-import-table tr.is-warning td { background: #fffbeb; }
.sf-import-table .sf-issue { font-size: .74rem; margin-top: 4px; }
.sf-import-table .sf-issue.e { color: #b91c1c; } .sf-import-table .sf-issue.w { color: #92400e; }
.sf-drop { border: 2px dashed #c7d2fe; border-radius: 16px; padding: 32px; text-align: center; background: #f8faff; transition: .2s; cursor: pointer; }
.sf-drop.is-over { border-color: var(--sf-primary); background: var(--sf-primary-50); }
.sf-drop .sf-ico { width: 40px; height: 40px; color: var(--sf-primary); }

/* ---------- Charts ---------- */
.sf-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.sf-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.sf-chart-bar { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); transform-origin: bottom; animation: sf-grow .7s ease both; position: relative; }
.sf-chart-bar.is-red { background: linear-gradient(180deg, #fca5a5, #ef4444); }
.sf-chart-lbl { font-size: .66rem; color: var(--sf-muted); white-space: nowrap; }
.sf-chart-val { font-size: .68rem; font-weight: 700; color: #334155; }
@keyframes sf-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sf-donut { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; }
.sf-donut > span { width: 82px; height: 82px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }

/* ---------- Password reveal ---------- */
.sf-reveal-wrap { position: relative; }
.sf-reveal-wrap input { padding-right: 64px !important; }
.sf .sf-reveal-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--sf-primary); font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.sf .sf-reveal-btn:hover { background: var(--sf-primary-50); }

/* ---------- Teacher Assignments (class-section configuration) ---------- */
.sf-cfg-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.sf-cfg-toolbar select { width: auto; min-width: 240px; max-width: 100%; }
.sf-cfg-card.is-dirty { box-shadow: 0 0 0 2px #fcd34d, var(--sf-shadow); }
.sf-cfg-head, .sf-cfg-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 96px minmax(0, 1.7fr) 36px; gap: 10px; align-items: center; padding: 10px 20px; }
.sf-cfg-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sf-muted); font-weight: 700; background: var(--sf-surface-2); border-bottom: 1px solid var(--sf-border); }
.sf-cfg-row { border-bottom: 1px solid var(--sf-border); }
.sf-cfg-row.is-new { animation: sf-fade-up .3s ease both; background: #fafbff; }
.sf-cfg-subj { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.sf-cfg-subj strong { overflow: hidden; text-overflow: ellipsis; }
.sf-cfg-ppw input { width: 100%; padding: 7px 8px; }
.sf-cfg-teacher select { width: 100%; padding: 7px 8px; }
.sf-cfg-teacher select option[data-invalid] { color: var(--sf-red); }
.sf .sf-cfg-remove { color: var(--sf-red); font-size: 1.2rem; line-height: 1; padding: 4px 8px; }
.sf-cfg-empty { padding: 14px 20px; margin: 0; }
.sf-cfg-add { display: flex; gap: 8px; padding: 14px 20px; flex-wrap: wrap; }
.sf-cfg-add select { flex: 1 1 200px; width: auto; }
@media (max-width: 640px) {
	.sf-cfg-head { display: none; }
	.sf-cfg-row { grid-template-columns: 1fr 76px 36px; grid-template-areas: "subj ppw rm" "teacher teacher teacher"; padding: 12px 14px; row-gap: 8px; }
	.sf-cfg-subj { grid-area: subj; } .sf-cfg-ppw { grid-area: ppw; } .sf-cfg-teacher { grid-area: teacher; } .sf-cfg-remove { grid-area: rm; }
	.sf-cfg-add, .sf-cfg-empty { padding-left: 14px; padding-right: 14px; }
	.sf-cfg-toolbar select { min-width: 0; flex: 1 1 100%; }
}

/* ---------- Assignments by subject / replace teacher ---------- */
.sf-subj-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--sf-border); background: var(--sf-surface-2); }
.sf-subj-bulk select { width: auto; min-width: 200px; flex: 1 1 200px; }
.sf-subj-bulk input { width: 110px; flex: 0 0 110px; }
.sf-replace-cell { min-width: 220px; }
@media (max-width: 640px) { .sf-replace-table thead { display: none; } .sf-replace-table, .sf-replace-table tbody, .sf-replace-table tr, .sf-replace-table td { display: block; width: 100%; } .sf-replace-table tr { padding: 10px 0; border-bottom: 1px solid var(--sf-border); } .sf-replace-table td { border: 0; padding: 2px 0; } .sf-replace-table td:first-child { font-weight: 600; } .sf-replace-cell { min-width: 0; } .sf-replace-cell select { width: 100%; } }
.sf-subj-table tr.is-off td { color: var(--sf-muted); background: #fbfcfe; }
.sf-subj-table tr.is-off select { opacity: .55; }
.sf-subj-table tr.sf-needs-ppw td { background: var(--sf-amber-50); }
.sf-subj-table select { width: 100%; }
@media (max-width: 640px) { .sf-subj-bulk { padding: 12px 14px; } .sf-subj-bulk select { min-width: 0; }
 .sf-subj-table thead { display: none; } .sf-subj-table, .sf-subj-table tbody { display: block; width: 100%; }
 .sf-subj-table tr { display: grid; grid-template-columns: 28px 84px 1fr; gap: 8px 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--sf-border); }
 .sf-subj-table td, .sf-subj-table td.sf-replace-cell { display: block; border: 0; padding: 0; min-width: 0; }
 .sf-subj-table td:nth-child(2) { grid-column: 2 / 4; }
 .sf-subj-table td:nth-child(3) { grid-column: 2; } .sf-subj-table td:nth-child(4) { grid-column: 3; }
 .sf-subj-table td input[type=number], .sf-subj-table td select { width: 100%; } }

/* Teacher Assignments: bulk upload + arrangeable class boxes */
.sf-steps-mini { margin: 0 0 16px; padding-left: 20px; line-height: 1.55; font-size: .92rem; }
.sf-steps-mini li { margin-bottom: 8px; }
.sf-imp-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.sf-assign-prev { max-height: 46vh; overflow: auto; border: 1px solid var(--sf-border); border-radius: 12px; }
.sf-assign-prev .sf-issue { font-size: .76rem; margin-top: 3px; }
.sf-assign-prev .sf-issue.e { color: #b91c1c; } .sf-assign-prev .sf-issue.w { color: #92400e; }
.sf-assign-prev tr.is-error td { background: #fef2f2; }
.sf-assign-prev tr.is-skip td { color: var(--sf-muted); }
.sf-sort-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.sf-sort-hint svg { width: 16px; height: 16px; fill: currentColor; }
.sf-link-btn { background: none; border: 0; padding: 0; color: var(--sf-primary); font: inherit; cursor: pointer; text-decoration: underline; }
.sf-cfg-card .sf-card-head { gap: 12px; }
.sf-sort-tools { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.sf-drag { touch-action: none; cursor: grab; border: 1px solid var(--sf-border); background: var(--sf-surface-2); border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--sf-muted); padding: 0; }
.sf-drag svg { fill: currentColor; }
.sf-drag:hover, .sf-drag:focus-visible { color: var(--sf-primary); border-color: var(--sf-primary); }
.sf-move { border: 0; background: none; color: var(--sf-muted); font-size: 10px; line-height: 1; padding: 3px 8px; cursor: pointer; border-radius: 6px; }
.sf-move:hover, .sf-move:focus-visible { color: var(--sf-primary); background: var(--sf-primary-50); }
.sf-cfg-list.is-sorting { user-select: none; -webkit-user-select: none; }
.sf-cfg-list.is-sorting .sf-drag { cursor: grabbing; }
.sf-cfg-card.is-dragging { box-shadow: 0 18px 40px rgba(79, 70, 229, .25); outline: 2px solid var(--sf-primary); transform: scale(1.01); z-index: 5; position: relative; }
.sf-cfg-card.is-moved { outline: 2px solid var(--sf-primary); transition: outline-color .6s; }
@media (prefers-reduced-motion: reduce) { .sf-cfg-card.is-dragging { transform: none; } }
/* The hidden attribute always wins over component display rules (e.g. badges). */
.sf-app [hidden], .sf-modal [hidden] { display: none !important; }
.sf-sort-hint > span { flex: 1 1 200px; }
.sf-plan-box { display: grid; gap: 6px; margin: 10px 0 4px; padding: 12px 14px; border: 1px dashed #c7d2fe; border-radius: 12px; background: var(--sf-primary-50); }
.sf-plan-box .sf-actions { margin-top: 2px; }

/* Simple menu */
.sf-nav-more { margin-top: 10px; border-top: 1px solid rgba(148, 163, 184, .18); padding-top: 6px; }
.sf-nav-more > summary { list-style: none; cursor: pointer; color: #94a3b8; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; }
.sf-nav-more > summary::-webkit-details-marker { display: none; }
.sf-nav-more > summary::after { content: "+"; font-size: 1rem; }
.sf-nav-more[open] > summary::after { content: "–"; }
.sf-nav-more > summary:hover, .sf-nav-more > summary:focus-visible { color: #e2e8f0; background: rgba(255, 255, 255, .05); }

/* Set up timetable */
.sf-qs-options { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .sf-qs-options { grid-template-columns: 1fr; } }
.sf-qs-card h2 { margin: 10px 0 6px; font-size: 1.2rem; }
.sf-qs-card.is-recommended { border: 2px solid #c7d2fe; }
.sf-qs-layout { margin: 14px 0 0; font-size: .9rem; }
.sf-qs-layout > summary { cursor: pointer; color: var(--sf-primary); font-weight: 600; }
.sf-qs-layout ul { margin: 8px 0 10px; padding-left: 20px; line-height: 1.55; }
.sf-qs-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.sf-qs-steps li { display: flex; gap: 12px; align-items: flex-start; }
.sf-qs-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; font-size: .8rem; color: #fff; margin-top: 2px; }
.sf-qs-steps li.is-done .sf-qs-dot { background: #10b981; border-color: #10b981; }
.sf-qs-busy { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--sf-primary-50); }
.sf-qs-spin { width: 18px; height: 18px; border: 3px solid #c7d2fe; border-top-color: var(--sf-primary); border-radius: 50%; animation: sf-spin .8s linear infinite; flex: none; }
.sf-qs-found { margin: 16px 0 10px; }
.sf-qs-found h3 { margin: 0 0 10px; }
.sf-qs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.sf-qs-stats > div { background: var(--sf-surface-2); border: 1px solid var(--sf-border); border-radius: 12px; padding: 10px 12px; }
.sf-qs-stats strong { display: block; font-size: 1.4rem; }
.sf-qs-stats span { font-size: .8rem; color: var(--sf-muted); }
.sf-qs-note { display: block; }
.sf-qs-note details { margin-top: 6px; }
.sf-qs-note ul { margin: 6px 0 0; padding-left: 18px; }
.sf-qs-sec { border: 1px solid var(--sf-border); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.sf-qs-sec > summary { cursor: pointer; font-weight: 600; }
.sf-qs-sheets { display: grid; gap: 6px; margin: 8px 0 10px; }
.sf-qs-sheet { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; }
.sf-qs-sheet:hover { background: var(--sf-surface-2); }
.sf-qs-sheet input { margin-top: 4px; }
.sf-qs-wing { padding: 10px 0; border-bottom: 1px solid var(--sf-border); }
.sf-qs-wing:last-child { border-bottom: 0; }
.sf-qs-times, .sf-qs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sf-qs-times span, .sf-qs-chips span { font-size: .78rem; padding: 4px 8px; border-radius: 999px; background: var(--sf-surface-2); border: 1px solid var(--sf-border); }
.sf-qs-times span.is-break { background: #fef3c7; border-color: #fde68a; }
.sf-qs-chips span.is-ph { background: #fef3c7; border-color: #fde68a; }
.sf-qs-times em, .sf-qs-chips em { font-style: normal; color: var(--sf-muted); margin-left: 2px; }
.sf-qs-go { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sf-border); }
.sf-qs-done-head { display: flex; gap: 14px; align-items: center; }
.sf-qs-tick { width: 44px; height: 44px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.sf-qs-next { margin: 18px 0; padding-left: 20px; line-height: 1.9; }
.sf-qs-undo { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 12px; background: var(--sf-surface-2); border: 1px solid var(--sf-border); }
.sf-menu-mode .sf-card-body { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.sf-menu-mode .sf-card-body > div:first-child { flex: 1 1 280px; }
.sf-seg { display: flex; gap: 6px; }
.sf-qs-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border: 2px solid #c7d2fe; background: linear-gradient(135deg, #eef2ff, #f0fdfa); }
.sf-qs-cta h2 { margin: 0 0 4px; font-size: 1.15rem; }
.sf-tt-status .sf-card-body { display: flex; gap: 14px; align-items: flex-start; }
.sf-tt-status-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.sf-tt-status.is-good { border-left: 4px solid #10b981; } .sf-tt-status.is-good .sf-tt-status-ico { background: #10b981; }
.sf-tt-status.is-bad { border-left: 4px solid #ef4444; } .sf-tt-status.is-bad .sf-tt-status-ico { background: #ef4444; }
.sf-tt-status-list { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; }
.sf-tt-tech { margin: 0 0 20px; }
.sf-tt-tech > summary { cursor: pointer; color: var(--sf-muted); font-size: .9rem; padding: 6px 0 12px; }
/* Fixed menu: sub-items and Tools */
.sf-nav-sub { display: grid; gap: 2px; margin: -2px 0 4px 34px; border-left: 1px solid rgba(148, 163, 184, .25); padding-left: 8px; }
.sf-nav-sub a { padding: 7px 10px; font-size: .86rem; }
.sf-nav-more > summary { text-transform: none; letter-spacing: 0; font-size: .92rem; color: #cbd5e1; gap: 10px; justify-content: flex-start; }
.sf-nav-more > summary svg { width: 20px; height: 20px; fill: currentColor; opacity: .85; }
.sf-nav-more > summary::after { margin-left: auto; }
.sf-nav-more > summary .sf-count { margin-left: 6px; }
.sf-nav-more a { padding-left: 22px; }
.sf-tabs-sub { margin-bottom: 16px; }
.sf-cell-part { white-space: nowrap; }
.sf-cell-part i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.sf-cell.is-group { border-left-style: double; }
/* Set up Timetable editor */
.sf-tte-status .sf-card-body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sf-tte-status .sf-card-body > div { flex: 1 1 260px; }
.sf-tte-status.is-live { border-left: 4px solid #10b981; } .sf-tte-status.is-live .sf-tt-status-ico { background: #10b981; }
.sf-tte-status.is-draft { border-left: 4px solid var(--sf-primary); } .sf-tte-status.is-draft .sf-tt-status-ico { background: var(--sf-primary); }
.sf-tte-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 0 0 16px; }
.sf-tte-bar .sf-field { min-width: 220px; flex: 0 1 280px; margin: 0; }
.sf-tte-count { margin-left: auto; padding: 8px 14px; border-radius: 10px; background: var(--sf-surface-2); border: 1px solid var(--sf-border); }
.sf-tte th small { display: block; font-weight: 400; color: var(--sf-muted); font-size: .72rem; }
.sf-tte td { padding: 3px; vertical-align: stretch; }
.sf-tte-cell { width: 100%; min-width: 96px; min-height: 64px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; padding: 7px 9px; border-radius: 10px; border: 1px dashed #cbd5e1; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .15s, border-color .15s; }
.sf-tte-cell:hover, .sf-tte-cell:focus-visible { border-color: var(--sf-primary); box-shadow: 0 0 0 3px var(--sf-primary-50); outline: none; }
.sf-tte-cell.is-filled { border: 1px solid var(--sf-border); border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.sf-tte-cell.is-group { border-left-style: double; border-left-width: 5px; }
.sf-tte-sub { font-weight: 600; font-size: .84rem; line-height: 1.25; }
.sf-tte-sub i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.sf-tte-tch { font-size: .76rem; color: var(--sf-muted); line-height: 1.25; }
.sf-tte-plus { width: 100%; text-align: center; font-size: 1.3rem; color: #94a3b8; }
.sf-tte-brk { background: repeating-linear-gradient(135deg, #fef9c3, #fef9c3 6px, #fefce8 6px, #fefce8 12px); text-align: center; font-size: .74rem; color: #854d0e; min-width: 44px; writing-mode: vertical-rl; transform: rotate(180deg); }
.sf-tte-brk-h { background: #fef9c3; color: #854d0e; white-space: nowrap; }
.sf-tte-rename { border: 0; background: none; cursor: pointer; color: #a16207; padding: 2px 4px; border-radius: 6px; }
.sf-tte-rename:hover, .sf-tte-rename:focus-visible { background: #fde68a; }
.sf-tte-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.sf-tte-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 640px) { .sf-tte-row { grid-template-columns: 1fr auto; } .sf-tte-row .tte-t { grid-column: 1; } .sf-tte-row [data-tte-del] { grid-row: 1 / span 2; grid-column: 2; } .sf-tte-count { margin-left: 0; } .sf-tte-bar .sf-field { flex: 1 1 100%; } }
