:root {
    color-scheme: dark;
    --bg: #05080d;
    --bg-soft: #071116;
    --panel: #0c1621;
    --panel-soft: #101e2b;
    --line: rgba(93, 236, 255, 0.16);
    --line-strong: rgba(93, 236, 255, 0.42);
    --cyan: #5decff;
    --cyan-dark: #17bedb;
    --green: #35e5a6;
    --blue: #5fa7ff;
    --orange: #ff9f2a;
    --red: #ff5c7a;
    --yellow: #ffd166;
    --text: #f6fbff;
    --muted: #aab8c8;
    --soft: #78889b;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
    --radius: 16px;
    --max: 1420px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { color: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 72px; padding: 12px max(22px, calc((100% - 1400px) / 2)); border-bottom: 1px solid var(--line); background: rgba(5, 8, 13, 0.88); backdrop-filter: blur(18px); }
.brand img { width: 154px; }
.site-nav { display: flex; justify-content: center; gap: 28px; color: rgba(246, 251, 255, 0.78); font-size: 14px; font-weight: 800; }
.site-nav a:hover { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-button, .ghost-button, .primary-button, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 10px; font-size: 12px; font-weight: 900; line-height: 1.15; }
.lang-button, .ghost-button, .secondary-button { border: 1px solid var(--line-strong); background: rgba(93, 236, 255, 0.03); }
.primary-button { color: #031116; background: linear-gradient(135deg, var(--cyan), #2cc8e2); box-shadow: 0 12px 30px rgba(45, 209, 235, 0.2); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.landing { min-height: 100vh; background: radial-gradient(circle at 84% 20%, rgba(93, 236, 255, 0.08), transparent 28%), linear-gradient(180deg, #05080d, #071219 60%, #08161e); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr); gap: 54px; min-height: 710px; align-items: center; max-width: 1440px; margin: 0 auto; padding: 118px 36px 54px; }
.hero::before, .modules-section::before { position: absolute; inset: 0; content: ""; opacity: 0.12; pointer-events: none; background-image: linear-gradient(rgba(93,236,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(93,236,255,.22) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, #000, transparent 48%); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 0; font-size: clamp(52px, 6vw, 82px); letter-spacing: -0.055em; line-height: 0.95; }
.hero-copy > p { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 25px); font-weight: 650; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions a { min-height: 56px; padding-inline: 28px; font-size: 16px; }
.hero-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 42px; }
.hero-point { display: grid; justify-items: center; gap: 8px; padding: 0 16px; border-left: 1px solid rgba(170, 184, 200, 0.24); color: var(--muted); text-align: center; font-size: 12px; font-weight: 800; line-height: 1.35; }
.hero-point:first-child { border-left: 0; }
.hero-point i { color: var(--cyan); font-size: 31px; }
.dashboard-preview { position: relative; z-index: 2; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(7, 15, 23, 0.98); box-shadow: var(--shadow), 0 0 34px rgba(93, 236, 255, 0.08); }
.preview-top { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.preview-top img { width: 95px; }
.preview-top strong { margin-left: 16px; }
.preview-top small { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-grid { display: grid; grid-template-columns: 145px 1fr; min-height: 495px; }
.preview-nav { display: grid; align-content: start; gap: 5px; padding: 14px 9px; border-right: 1px solid var(--line); }
.preview-nav span { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.preview-nav span:first-child { color: var(--cyan); background: rgba(93,236,255,.1); }
.preview-main { padding: 15px; }
.preview-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.preview-stat, .preview-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(15,27,39,.72); }
.preview-stat { padding: 12px; }
.preview-stat small, .preview-stat b { display: block; }
.preview-stat small { color: var(--muted); font-size: 9px; }
.preview-stat b { margin-top: 7px; font-size: 20px; }
.preview-stat em { color: var(--green); font-size: 8px; font-style: normal; }
.preview-panels { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; margin-top: 11px; }
.preview-card { min-height: 178px; padding: 13px; }
.preview-card h3 { margin: 0 0 14px; font-size: 12px; }
.chart { display: flex; height: 105px; align-items: end; gap: 7px; padding: 10px 4px; border-left: 1px solid rgba(170,184,200,.13); border-bottom: 1px solid rgba(170,184,200,.13); }
.chart span { flex: 1; min-height: 15%; border-radius: 3px 3px 0 0; background: linear-gradient(var(--cyan), rgba(93,236,255,.25)); }
.activity-row { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(170,184,200,.12); font-size: 9px; }
.activity-row:first-of-type { border-top: 0; }
.activity-row i { color: var(--green); }
.preview-lower { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.preview-lower .preview-card { min-height: 125px; }

.modules-section { position: relative; padding: 45px max(24px, calc((100% - 1400px) / 2)) 90px; border-top: 1px solid var(--line); background: #071019; }
.modules-section::before { mask-image: linear-gradient(90deg, transparent, #000, transparent); }
.modules-section > * { position: relative; z-index: 1; }
.modules-section h2 { margin: 0; font-size: clamp(29px, 4vw, 43px); letter-spacing: -0.035em; }
.modules-section > p { margin: 8px 0 27px; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { min-height: 270px; padding: 23px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(9,18,27,.82); }
.module-card:nth-child(1) { border-top-color: var(--green); }
.module-card:nth-child(2) { border-top-color: var(--blue); }
.module-card:nth-child(3) { border-top-color: var(--orange); }
.module-card h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 21px; }
.module-card h3 i { color: var(--cyan); font-size: 29px; }
.module-card p, .module-card li { color: var(--muted); font-weight: 650; line-height: 1.55; }
.module-card ul { display: grid; gap: 7px; padding: 0; list-style: none; }
.module-card li::before { margin-right: 8px; color: var(--green); content: "✓"; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 15%, rgba(93,236,255,.1), transparent 30%), var(--bg); }
.login-panel, .blocked-panel { width: min(100%, 430px); padding: 30px; border: 1px solid var(--line-strong); border-radius: 20px; background: rgba(10,21,31,.96); box-shadow: var(--shadow); }
.login-panel img, .blocked-panel img { width: 165px; margin: 0 auto 26px; }
.login-panel h1, .blocked-panel h1 { margin: 0; text-align: center; font-size: 28px; }
.login-panel > p, .blocked-panel > p { color: var(--muted); text-align: center; line-height: 1.5; }
.form-field { display: grid; gap: 7px; margin-top: 15px; }
.form-field label { color: var(--muted); font-size: 12px; font-weight: 850; }
.form-field input, .form-field textarea, .form-field select, .search-field { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: rgba(5,12,19,.72); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .search-field:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(93,236,255,.08); }
.login-panel .primary-button { width: 100%; margin-top: 20px; }
.login-error { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: 12px; text-align: center; }
.dashboard { min-height: 100vh; padding-left: 204px; background: #05090f; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 204px; flex-direction: column; padding: 22px 13px 16px; border-right: 1px solid var(--line); background: #05090f; }
.sidebar-logo { width: 152px; margin: 0 auto 24px; }
.sidebar-logo small { display: block; margin-top: 4px; color: var(--cyan); font-size: 10px; font-weight: 950; letter-spacing: .12em; text-align: center; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav button { display: flex; min-height: 44px; align-items: center; gap: 11px; padding: 0 13px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 850; text-align: left; }
.sidebar-nav button.is-active { color: var(--cyan); background: rgba(93,236,255,.1); box-shadow: inset 2px 0 var(--cyan); }
.sidebar-nav button.is-disabled { opacity: .38; cursor: not-allowed; }
.sidebar-nav i { width: 20px; font-size: 19px; text-align: center; }
.sidebar-footer { display: grid; gap: 10px; margin-top: auto; }
.plan-mini { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(14,27,39,.72); }
.plan-mini small, .plan-mini b { display: block; }
.plan-mini small { color: var(--muted); font-size: 10px; }
.plan-mini b { margin-top: 6px; color: var(--cyan); }
.logout-button { min-height: 42px; border: 1px solid rgba(255,92,122,.24); border-radius: 9px; color: var(--muted); background: rgba(255,92,122,.025); font-weight: 800; }
.dashboard-main { width: min(100%, var(--max)); margin: 0 auto; padding: 16px 18px 40px; }
.dashboard-header { display: grid; grid-template-columns: 285px minmax(260px, 1fr) auto; align-items: center; gap: 20px; min-height: 58px; }
.welcome small, .welcome b { display: block; }
.welcome small { color: var(--muted); font-size: 11px; font-weight: 750; }
.welcome b { margin-top: 1px; font-size: 21px; }
.dashboard-search { position: relative; }
.dashboard-search i { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.dashboard-search input { padding-left: 40px; }
.account-chip { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #347fd9, #38506c); font-size: 12px; font-weight: 950; }
.account-chip span b, .account-chip span small { display: block; }
.account-chip span small { color: var(--muted); font-size: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.stat-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(13,27,39,.98), rgba(8,17,26,.98)); }
.stat-card { display: grid; grid-template-columns: 1fr auto; min-height: 86px; align-items: center; padding: 12px; }
.stat-card small, .stat-card b, .stat-card em { display: block; }
.stat-card small { color: var(--muted); font-size: 9px; font-weight: 750; }
.stat-card b { margin-top: 4px; font-size: 21px; }
.stat-card em { margin-top: 3px; color: var(--green); font-size: 9px; font-style: normal; font-weight: 850; }
.stat-card i { color: var(--cyan); font-size: 26px; }
.module-access { margin-top: 10px; padding: 13px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-head h2 { font-size: 16px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.access-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.access-card { min-height: 116px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,19,29,.8); }
.access-card.is-included { border-color: rgba(53,229,166,.55); }
.access-card.is-locked { opacity: .52; }
.access-card i { color: var(--cyan); font-size: 23px; }
.access-card b, .access-card small { display: block; }
.access-card b { margin-top: 8px; font-size: 12px; }
.access-card small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.badge { display: inline-flex; min-height: 21px; align-items: center; padding: 0 7px; border-radius: 5px; font-size: 8px; font-weight: 950; }
.badge--active { color: var(--green); background: rgba(53,229,166,.12); }
.badge--pending { color: var(--orange); background: rgba(255,159,42,.12); }
.badge--locked { color: var(--muted); background: rgba(170,184,200,.1); }
.workspace { display: grid; grid-template-columns: minmax(400px, .9fr) minmax(520px, 1.1fr); gap: 12px; margin-top: 12px; }
.students-panel, .detail-panel { min-height: 555px; padding: 14px; }
.student-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }
.student-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.student-filters button { min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 850; }
.student-filters button.is-active { color: var(--cyan); border-color: var(--cyan); background: rgba(93,236,255,.07); }
.student-list { display: grid; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.student-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 76px 55px 84px; align-items: center; gap: 7px; min-height: 61px; padding: 8px 10px; border-top: 1px solid rgba(170,184,200,.1); background: transparent; text-align: left; }
.student-row:first-child { border-top: 0; }
.student-row.is-selected { background: rgba(93,236,255,.08); box-shadow: inset 0 0 0 1px var(--cyan); }
.student-person { display: flex; min-width: 0; align-items: center; gap: 8px; }
.student-person .avatar { flex: 0 0 auto; width: 34px; height: 34px; }
.student-person span { min-width: 0; }
.student-person b, .student-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.student-person b { font-size: 10px; }
.student-person small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.module-icons { color: var(--cyan); font-size: 16px; white-space: nowrap; }
.student-time { color: var(--muted); font-size: 8px; }
.empty-detail { display: grid; min-height: 520px; place-items: center; color: var(--muted); text-align: center; }
.empty-detail i { color: var(--orange); font-size: 45px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.detail-person { display: flex; align-items: center; gap: 12px; }
.detail-person .avatar { width: 44px; height: 44px; }
.detail-person h2 { margin: 0; font-size: 16px; }
.detail-person p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.detail-tabs { display: flex; gap: 20px; overflow-x: auto; margin-top: 12px; border-bottom: 1px solid var(--line); }
.detail-tabs button { min-height: 39px; flex: 0 0 auto; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 9px; font-weight: 850; }
.detail-tabs button.is-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.detail-content { padding-top: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.metric-card { min-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(12,24,35,.74); }
.metric-card small, .metric-card b, .metric-card em { display: block; }
.metric-card small { color: var(--muted); font-size: 8px; }
.metric-card b { margin-top: 9px; font-size: 22px; }
.metric-card em { margin-top: 8px; color: var(--green); font-size: 8px; font-style: normal; }
.data-list { display: grid; gap: 7px; margin-top: 10px; }
.data-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 50px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,18,27,.7); }
.data-row b, .data-row small { display: block; }
.data-row b { font-size: 10px; }
.data-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.data-row span { color: var(--cyan); font-size: 10px; font-weight: 900; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.icon-action, .editor-icon, .editor-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--cyan); background: rgba(93,236,255,.04); }
.icon-action--danger, .editor-icon--danger { color: var(--red); border-color: rgba(255,92,122,.25); background: rgba(255,92,122,.035); }
.icon-action i, .editor-icon i, .editor-close i { font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.form-grid .form-field { margin-top: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.locked-module { display: grid; min-height: 330px; place-items: center; padding: 40px; color: var(--muted); text-align: center; }
.locked-module i { color: var(--orange); font-size: 42px; }
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.68); }
.modal-panel { width: min(100%, 460px); padding: 22px; border: 1px solid var(--line-strong); border-radius: 15px; background: #0b1722; box-shadow: var(--shadow); }
.modal-panel h2 { margin: 0; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.editor-modal { align-items: start; overflow-y: auto; }
.editor-panel { width: min(1120px, 100%); margin: 18px auto; padding: 0; overflow: hidden; }
.editor-head { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(11,23,34,.97); backdrop-filter: blur(16px); }
.editor-head small { color: var(--cyan); font-size: 9px; font-weight: 950; text-transform: uppercase; }
.editor-head h2 { margin-top: 4px; }
.editor-close { color: var(--muted); background: transparent; }
.editor-ai { margin: 16px 20px 0; padding: 15px; border: 1px solid rgba(93,236,255,.3); border-radius: 12px; background: radial-gradient(circle at 0 0, rgba(93,236,255,.09), transparent 42%), rgba(7,16,25,.72); }
.editor-ai__head { display: flex; align-items: flex-start; gap: 11px; }
.editor-ai__head > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(93,236,255,.1); }
.editor-ai__head i { font-size: 21px; }
.editor-ai h3 { margin: 0; font-size: 14px; }
.editor-ai p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.editor-ai__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.editor-ai__actions button:disabled { opacity: .55; cursor: wait; }
.editor-body, .editor-grid--top { margin-inline: 20px; }
.editor-grid--top { margin-top: 16px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.editor-grid--sets { grid-template-columns: repeat(5, minmax(0,1fr)); }
.editor-grid--food { grid-template-columns: minmax(190px,1.5fr) repeat(4,minmax(90px,.72fr)); }
.editor-field { display: grid; min-width: 0; gap: 6px; }
.editor-field > span, .editor-period small { color: var(--muted); font-size: 10px; font-weight: 850; }
.editor-field input, .editor-field textarea, .editor-field select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--text); background: rgba(5,12,19,.72); font-size: 11px; }
.editor-field textarea { min-height: 72px; resize: vertical; }
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(93,236,255,.07); }
.editor-list, .editor-exercise-list, .editor-set-list, .editor-meal-list, .editor-food-list { display: grid; gap: 10px; margin-top: 12px; }
.editor-card, .editor-subcard, .editor-set { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8,18,27,.76); }
.editor-subcard { margin-left: 12px; border-color: rgba(95,167,255,.24); background: rgba(10,21,32,.9); }
.editor-set { margin-left: 12px; padding: 10px; border-color: rgba(170,184,200,.14); background: rgba(5,13,21,.72); }
.editor-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.editor-card-head h3, .editor-card-head h4 { margin: 0; font-size: 13px; }
.editor-card-head b { font-size: 10px; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.editor-icon { width: 28px; height: 28px; }
.editor-icon i { font-size: 14px; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.editor-check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; }
.editor-check input { accent-color: var(--cyan); }
.editor-add { margin-top: 10px; min-height: 36px; }
.editor-actions { position: sticky; z-index: 5; bottom: 0; margin-top: 18px; padding: 13px 20px; border-top: 1px solid var(--line); background: rgba(11,23,34,.97); backdrop-filter: blur(16px); }
.toast { position: fixed; z-index: 150; right: 20px; bottom: 20px; max-width: 390px; padding: 13px 17px; opacity: 0; border: 1px solid var(--line-strong); border-radius: 10px; pointer-events: none; color: var(--text); background: #10202d; box-shadow: var(--shadow); font-size: 12px; font-weight: 800; transform: translateY(12px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
    .hero { grid-template-columns: 1fr; }
    .dashboard-preview { max-width: 900px; }
    .workspace { grid-template-columns: 1fr; }
    .detail-panel { min-height: 500px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-nav { display: none; }
    .header-actions .primary-button span { display: none; }
    .hero { min-height: 0; padding: 116px 18px 52px; }
    .hero-copy h1 { font-size: 48px; }
    .hero-points { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .preview-grid { grid-template-columns: 1fr; }
    .preview-nav { display: none; }
    .preview-stats { grid-template-columns: repeat(2, 1fr); }
    .preview-panels { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .dashboard { padding-left: 0; }
    .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
    .sidebar-logo { width: 95px; margin: 0 8px 0 0; }
    .sidebar-logo small, .plan-mini { display: none; }
    .sidebar-footer { display: block; margin-left: auto; }
    .logout-button { min-width: 43px; padding: 0 11px; white-space: nowrap; }
    .logout-button i { margin: 0; }
    .logout-button { font-size: 0; }
    .logout-button i { font-size: 16px; }
    .sidebar-nav { display: flex; gap: 3px; }
    .sidebar-nav button { min-width: 43px; padding: 0 11px; }
    .sidebar-nav button span { display: none; }
    .dashboard-main { padding: 10px 10px 30px; }
    .dashboard-header { grid-template-columns: 1fr auto; }
    .dashboard-search { grid-column: 1 / -1; grid-row: 2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .access-grid { grid-template-columns: repeat(2, 1fr); }
    .workspace { display: block; }
    .detail-panel { margin-top: 10px; }
    .student-row { grid-template-columns: minmax(150px, 1fr) 72px; }
    .student-row > :nth-child(3), .student-row > :nth-child(4) { display: none; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .editor-panel { margin: 0; border-radius: 0; }
    .editor-grid, .editor-grid--sets, .editor-grid--food { grid-template-columns: 1fr; }
    .editor-subcard, .editor-set { margin-left: 0; }
    .editor-ai, .editor-body, .editor-grid--top { margin-inline: 12px; }
    .editor-head, .editor-actions { padding-inline: 12px; }
    .editor-actions > * { flex: 1; }
}
