@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --ink: #17201d;
  --muted: #69736f;
  --paper: #f7f5ef;
  --card: #fffefa;
  --line: #deddd5;
  --green: #1d5948;
  --green-soft: #dcebe4;
  --coral: #e96f51;
  --coral-soft: #fbe3db;
  --shadow: 0 18px 50px rgba(23, 32, 29, .08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 Manrope, sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(247,245,239,.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 50%; font-family: 'Playfair Display', serif; }
.profile { display: flex; align-items: center; gap: 12px; }
.account-tools { display: flex; align-items: center; gap: 22px; }.portal-nav { display: flex; gap: 6px; }.portal-nav a { padding: 8px 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }.portal-nav a:hover { color: var(--green); background: var(--green-soft); }
.profile-name { font-weight: 600; }.role, .moscow-clock { color: var(--muted); font-size: 13px; }.moscow-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 72px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; border-top: 1px solid var(--line); }
h1, h2 { font-family: 'Playfair Display', serif; margin: 0; line-height: 1.05; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 6vw, 70px); } h2 { font-size: 34px; } h3 { margin: 16px 0 4px; font-size: 20px; }
.eyebrow { color: var(--coral); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 580px; }
.hero { padding: 44px; min-height: 270px; border-radius: 28px; color: white; background: var(--green); display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; right: -80px; top: -100px; box-shadow: 0 0 0 45px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.025); }
.hero .eyebrow { color: #a9d1c1; }.hero .lead { color: #d2e3dc; }.hero > * { position: relative; z-index: 1; }
.hero-stat { min-width: 155px; border-left: 1px solid rgba(255,255,255,.3); padding-left: 24px; display: flex; flex-direction: column; }
.hero-stat strong { font: 600 54px/1 'Playfair Display', serif; }.hero-stat span { color: #d2e3dc; font-size: 13px; }
.stats-row { display: flex; gap: 28px; }.section { margin-top: 58px; }.section-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-card { padding: 24px; min-height: 205px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.lesson-card time { display: inline-block; color: var(--coral); font-weight: 700; font-size: 13px; }.lesson-card p { color: var(--muted); margin: 0 0 24px; }
.teacher-accent { border-top: 4px solid var(--coral); }.two-column { display: grid; grid-template-columns: 1.3fr .7fr; gap: 42px; }.teacher-columns { grid-template-columns: .7fr 1.3fr; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; } tbody tr:last-child td { border: 0; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }.status.scheduled { background: #e7eef7; color: #345572; }.status.completed { background: var(--green-soft); color: var(--green); }.status.cancelled { background: var(--coral-soft); color: #9d442e; }
.status.pending-payment { background: #fff0c9; color: #7a5710; }
.status-button { border: 0; cursor: pointer; font-family: inherit; }
.upload-card, .login-card { padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.form-stack, .upload-card { display: flex; flex-direction: column; gap: 18px; } label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: white; padding: 12px 14px; border-radius: 10px; color: var(--ink); outline: none; } input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,89,72,.1); } textarea { resize: vertical; }
.dropzone { padding: 28px; border: 1px dashed #aeb5b1; border-radius: 14px; text-align: center; }.dropzone span { color: var(--muted); font-weight: 400; }.dropzone input { border: 0; padding: 0; }
.button { border: 1px solid transparent; border-radius: 10px; padding: 11px 17px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }.button.primary { background: var(--green); color: white; }.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }.button.small { padding: 7px 11px; font-size: 12px; }.button:disabled { opacity: .45; cursor: not-allowed; }
.file-list, .student-list { display: flex; flex-direction: column; gap: 10px; }.file-row, .student-row { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }.file-icon, .avatar { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--coral-soft); color: var(--coral); font-weight: 700; font-size: 11px; }.avatar { border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 16px; }.file-meta, .student-row > div:last-child { min-width: 0; flex: 1; display: flex; flex-direction: column; }.file-meta strong { overflow: hidden; text-overflow: ellipsis; }.file-meta span, .student-row span { color: var(--muted); font-size: 12px; }.file-row.compact { flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; }.inline-form input { min-width: 0; padding: 8px 10px; }.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: 14px; }.flash { padding: 14px 18px; margin-bottom: 22px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; }.flash.error { background: var(--coral-soft); color: #913a25; }
.telegram-link-form { display: grid; grid-template-columns: minmax(110px, 150px) auto; gap: 7px; }
.telegram-link-form input { min-width: 0; padding: 7px 9px; font-size: 12px; }
.notice-panel, .credential-card { margin-top: 28px; padding: 28px; border: 1px solid #ead39d; border-radius: 20px; background: #fff8e6; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; }
.notice-panel h2, .credential-card h2 { font-size: 29px; }.notice-panel p, .credential-card p { color: var(--muted); margin: 10px 0 0; }.payment-request { background: var(--coral-soft); border-color: #efb4a4; }
.payment-cards { display: grid; gap: 10px; }.payment-card { padding: 14px 16px; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid rgba(23,32,29,.11); border-radius: 12px; }.payment-card strong { flex: 1; }.payment-card > span, .payment-card > div { color: var(--muted); font-size: 12px; }
.check-action { flex-direction: row; align-items: center; cursor: pointer; }.check-action input { width: 18px; height: 18px; accent-color: var(--green); }.check-action span { color: var(--green); }
.credential-card { background: var(--green-soft); border-color: #abcdbf; }.credential-copy { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }.credential-copy label { grid-column: 1 / -1; }.credential-copy textarea { min-height: 84px; font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: white; resize: none; }
.notification-list { display: grid; gap: 9px; }.notification-row { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }.notification-row.unread { border-left: 4px solid var(--coral); }.notification-row > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }.notification-row strong, .notification-row span { overflow-wrap: anywhere; }.notification-row span { color: var(--muted); font-size: 12px; }.compact-section { margin-top: 34px; }
.notification-contact-message { margin: 7px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink); font-size: 13px; line-height: 1.45; }
.notification-tab { position: fixed; top: 46%; right: 0; z-index: 35; display: flex; align-items: center; gap: 7px; padding: 11px 10px 11px 8px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; color: var(--green); background: var(--card); box-shadow: var(--shadow); cursor: pointer; font-weight: 800; }.notification-tab:hover { background: var(--green-soft); }.notification-tab-arrow { font-size: 25px; line-height: .65; }.notification-tab-label { font-size: 11px; }.notification-tab b { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 999px; color: white; background: var(--coral); font-size: 10px; }
.notification-drawer { position: fixed; inset: 0 0 0 auto; z-index: 40; width: min(390px, calc(100vw - 32px)); display: flex; flex-direction: column; padding: 24px; border-left: 1px solid var(--line); background: #f7f5ef; box-shadow: -18px 0 40px rgba(23,32,29,.14); transform: translateX(105%); transition: transform .22s ease; }.notification-drawer.open { transform: none; }.notification-drawer-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }.notification-drawer-head h2 { font-size: 31px; }.notification-drawer .notification-list { min-height: 0; overflow-y: auto; padding: 16px 2px 24px; }.drawer-close, .notification-dismiss { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; cursor: pointer; font-size: 22px; line-height: 1; }.drawer-close:hover, .notification-dismiss:hover { color: #9d442e; border-color: #efb4a4; background: var(--coral-soft); }.notification-dismiss { width: 27px; height: 27px; font-size: 18px; }
.label-note { color: var(--muted); font-weight: 400; }.form-help { color: var(--muted); font-size: 12px; margin: -4px 0 0; }.admin-form { height: 100%; }.payment-inline { display: inline; }.student-search { max-width: 480px; margin: 0 0 9px; }.student-search-help { margin: 0 0 16px; }
.login-page { min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 70px; align-items: center; }.login-card h1 { font-size: 52px; }.login-art { min-height: 570px; background: var(--green); border-radius: 32px; position: relative; overflow: hidden; }.orb { position: absolute; border-radius: 50%; }.orb.one { width: 340px; height: 340px; background: var(--coral); right: -40px; top: -70px; }.orb.two { width: 220px; height: 220px; border: 2px solid rgba(255,255,255,.5); left: 40px; bottom: 30px; box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 80px rgba(255,255,255,.03); }.quote { color: white; position: absolute; left: 60px; top: 190px; font: 700 clamp(45px, 6vw, 78px)/.95 'Playfair Display', serif; }.quote span { color: #aad0c2; }
.materials-cta { margin-top: 34px; padding: 25px 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border: 1px solid #abcdbf; border-radius: 20px; background: linear-gradient(120deg, var(--green-soft), #f7f5ef); }.materials-cta h2 { font-size: 28px; }.materials-cta p { margin: 7px 0 0; color: var(--muted); }.student-materials-cta { border-color: #efb4a4; background: linear-gradient(120deg, var(--coral-soft), #f7f5ef); }
.dashboard-shortcuts { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dashboard-shortcuts .materials-cta { min-width: 0; height: 100%; margin-top: 0; }
.teacher-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.teacher-shortcuts .materials-cta { align-items: flex-start; flex-direction: column; }
.teacher-shortcuts .materials-cta .button { margin-top: auto; }
.students-cta, .students-hero { border-color: #c7dace; background: linear-gradient(120deg, #e7f0e9, #f7f5ef); }
.teacher-students-page .students-create-section { margin-top: 34px; }
.student-create-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 16px; box-shadow: none; }
.student-create-form > .form-help { grid-column: 1 / -1; margin: 0; }
.students-directory-section .section-head { align-items: end; }
.student-management-list { display: grid; gap: 14px; }
.student-management-card { min-width: 0; display: grid; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 8px 25px rgba(23,32,29,.04); }
.student-management-card[hidden], .student-search-empty[hidden] { display: none; }
.student-management-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.student-management-head > .button { white-space: nowrap; }
.student-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.student-identity > div { min-width: 0; }
.student-identity h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.student-identity p { margin: 2px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.student-management-meta { min-width: 0; display: grid; grid-template-columns: minmax(150px, .9fr) minmax(300px, 1.5fr) minmax(85px, .4fr) minmax(130px, .8fr); gap: 10px; margin: 0; }
.student-management-meta > div { min-width: 0; padding: 10px 13px; border-radius: 10px; background: #f7f7f3; }
.student-management-meta dt { color: var(--muted); font-size: 11px; }
.student-management-meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.student-password-control { min-width: 0; display: grid; grid-template-columns: minmax(115px, 1fr) auto auto; gap: 6px; align-items: center; }
.student-password-control input { min-width: 0; width: 100%; padding: 8px 9px; font: inherit; }
.mini-button { padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); background: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.mini-button:hover { background: var(--green-soft); }
.password-unavailable { color: var(--muted); font-size: 11px; font-weight: 500; }
.profile-password { display: grid; gap: 6px; margin: 14px 0; }
.profile-password > label { font-size: 12px; font-weight: 700; }
.student-management-actions { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; padding-top: 17px; border-top: 1px solid var(--line); }
.student-telegram-form { min-width: 0; display: grid; grid-template-columns: minmax(130px, 230px) auto; gap: 10px; align-items: end; }
.student-telegram-form label { min-width: 0; }
.student-account-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding-bottom: 2px; }
.student-account-actions form { margin: 0; }
.student-search-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.calendar-cta { border-color: #cbd8e7; background: linear-gradient(120deg, #e7eef7, #f7f5ef); }
.subpage-hero { min-height: 230px; padding: 38px 42px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; border-radius: 28px; background: #e4ede8; border: 1px solid #c9d9d1; }.subpage-hero h1 { color: var(--green); font-size: clamp(42px, 5vw, 64px); }.subpage-hero .lead { margin-bottom: 0; }.student-library-hero { background: #fae9e2; border-color: #efc5b9; }
.materials-builder { margin-top: 30px; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }.materials-sidebar, .materials-canvas { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }.materials-sidebar { padding: 22px; position: sticky; top: 98px; }.materials-canvas { padding: 30px; min-height: 520px; }.builder-head, .canvas-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.builder-head h2, .canvas-head h2 { font-size: 30px; }.count-badge { padding: 6px 10px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 700; }
.material-tree { display: grid; gap: 5px; }.tree-item { min-width: 0; padding: 9px 10px 9px calc(10px + var(--depth) * 18px); display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-radius: 9px; color: var(--ink); text-decoration: none; }.tree-item:hover { background: #f3f1eb; }.tree-item.active { color: var(--green); background: var(--green-soft); font-weight: 700; }.tree-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.tree-item small { color: var(--muted); }.tree-dot { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }.tree-item.active .tree-dot { background: currentColor; }.builder-form { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }.compact-empty { padding: 16px; font-size: 12px; }
.material-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.material-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fbfaf6; }.material-card h3 { margin-top: 11px; }.material-card p { color: var(--muted); min-height: 45px; }.material-type { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.material-type.material { color: #9d442e; background: var(--coral-soft); }
.publish-form { display: grid; gap: 16px; margin-top: 34px; padding: 26px; border-radius: 17px; background: #f3f1eb; }.publish-form .section-head { margin-bottom: 0; }.publish-form h2 { font-size: 29px; }.form-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 14px; }.canvas-placeholder { min-height: 450px; display: grid; place-content: center; justify-items: center; text-align: center; }.canvas-placeholder > span { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font: 600 25px 'Playfair Display', serif; }.canvas-placeholder h2 { margin-top: 20px; }.canvas-placeholder p { max-width: 480px; color: var(--muted); }
.teacher-tabs { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }.teacher-tabs a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; background: var(--card); }.teacher-tabs a.active { color: white; border-color: var(--green); background: var(--green); }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 12px 17px; border-radius: 11px; color: white; background: var(--green); box-shadow: var(--shadow); font-weight: 700; transform: translateY(24px); opacity: 0; pointer-events: none; transition: .2s ease; }.toast.visible { transform: none; opacity: 1; }.toast.error { background: #9d442e; }

/* Structured material tree and nested sections */
.tree-row { min-width: 0; padding-left: calc(var(--depth) * 18px); display: flex; align-items: center; gap: 4px; border-radius: 9px; }
.tree-row .tree-item { flex: 1; padding-left: 10px; }
.tree-actions { display: flex; align-items: center; gap: 2px; opacity: .35; transition: opacity .15s ease; }
.tree-row:hover .tree-actions, .tree-actions:focus-within { opacity: 1; }
.tree-actions form, .material-card-top form { margin: 0; }
.icon-button, .mini-icon { flex: 0 0 auto; border: 1px solid var(--line); color: var(--green); background: white; display: inline-grid; place-items: center; text-decoration: none; cursor: pointer; }
.icon-button { width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; }
.mini-icon { width: 27px; height: 27px; padding: 0; border-radius: 8px; font-size: 18px; line-height: 1; }
.mini-icon:hover, .icon-button:hover { background: var(--green-soft); border-color: #abcdbf; }
.mini-icon.danger { color: #a33f2c; }
.mini-icon.danger:hover { background: var(--coral-soft); border-color: #efb4a4; }
.quick-section-form { display: grid; gap: 15px; margin-bottom: 28px; padding: 24px; border: 1px solid #abcdbf; border-radius: 17px; background: var(--green-soft); }
.rename-section-form { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(240px, 1.3fr) auto; align-items: end; gap: 14px; margin-bottom: 24px; padding: 20px; border: 1px solid #cbd8e7; border-radius: 17px; background: #f2f6fb; }.rename-section-form h2 { margin: 3px 0 0; font-size: 28px; }.rename-section-form .form-actions { white-space: nowrap; }
.quick-section-form h2 { font-size: 29px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.subsection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.subsection-card { min-width: 0; padding: 17px 18px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
.subsection-main { min-width: 0; flex: 1; display: grid; gap: 3px; color: var(--ink); text-decoration: none; }
.subsection-main > span { color: var(--coral); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.subsection-main > strong { overflow-wrap: anywhere; font-size: 16px; }
.subsection-main > small { color: var(--muted); }
a.subsection-card:hover, .subsection-card:has(.subsection-main:hover) { border-color: #abcdbf; background: var(--green-soft); }
.subsection-prompt { margin-bottom: 28px; }
.content-head { margin: 32px 0 18px; }
.content-head h2 { font-size: 28px; }
.material-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teacher-label { color: var(--muted); font-size: 13px; }

/* Shared website / Telegram schedule */
.calendar-hero { background: #e7eef7; border-color: #cbd8e7; }
.teacher-calendar-hero { background: #e4ede8; border-color: #c9d9d1; }
.calendar-alert { margin-top: 24px; padding: 17px 20px; display: flex; flex-direction: column; gap: 3px; color: #7a5710; background: #fff0c9; border: 1px solid #ead39d; border-radius: 14px; }
.calendar-alert span { color: #74643d; }
.slot-builder { margin-top: 28px; padding: 25px 28px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.slot-builder h2 { font-size: 30px; }
.slot-builder p { margin: 8px 0 0; color: var(--muted); }
.slot-builder-form { display: grid; grid-template-columns: 1.3fr .8fr .8fr auto; gap: 10px; align-items: end; }
.weekly-builder { border-color: #b9d4c8; background: linear-gradient(135deg, #f7fbf8, var(--card)); }
.weekly-builder-form { grid-template-columns: 1.25fr 1fr .75fr 1fr; }
.weekly-builder-form .weekly-topic { grid-column: 1 / 4; }
.weekly-builder-form .weekly-topic span { color: var(--muted); font-weight: 400; }
.weekly-builder-form .button { grid-column: 4; }
.calendar-shell { margin-top: 28px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.calendar-toolbar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 16px; margin-bottom: 15px; text-align: center; }
.calendar-toolbar .eyebrow { margin-bottom: 6px; }
.calendar-toolbar h2 { font-size: 34px; }
.month-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fbfaf6; text-decoration: none; font-size: 20px; }
.month-arrow:hover { border-color: #abcdbf; background: var(--green-soft); }
.calendar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 17px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.calendar-legend i.free { background: #9bc7b6; }.calendar-legend i.own { background: var(--coral); }.calendar-legend i.busy { background: #aeb5b1; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.calendar-weekdays span { padding: 8px; }
.calendar-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-day { min-width: 0; min-height: 92px; padding: 10px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.calendar-day.outside { background: #f5f3ed; color: #9ca39f; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--green); }
.calendar-date { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.calendar-date strong { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; }
.calendar-day.today .calendar-date strong { color: white; background: var(--green); }
.calendar-date span { display: none; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.day-slots { display: grid; gap: 6px; }
.calendar-day-details { min-width: 0; }
.calendar-day-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; color: var(--muted); font-size: 12px; }
.calendar-day-details > summary::-webkit-details-marker { display: none; }
.slot-counts { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px 9px; }
.slot-counts b { color: var(--ink); }
.details-link { color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.calendar-day-details[open] .details-link { color: var(--coral); }
.calendar-day-details[open] .details-link::before { content: "Скрыть"; }
.calendar-day-details[open] .details-link { font-size: 0; }
.calendar-day-details[open] .details-link::before { font-size: 12px; }
.slot-list { display: grid; gap: 6px; margin-top: 8px; }
.lesson-slot { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 9px; background: #f8f7f2; font-size: 11px; }
.lesson-slot time { color: var(--ink); font-weight: 800; }
.lesson-slot > span, .slot-summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-slot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 6px; color: var(--green); background: #edf6f2; border-color: #c9e0d7; }
.free-slot button { grid-column: 1 / -1; padding: 3px 0 0; border: 0; color: var(--green); background: none; cursor: pointer; text-align: left; font-weight: 800; }
.free-slot button:disabled { color: var(--muted); cursor: not-allowed; }
.busy-slot { display: flex; gap: 6px; color: var(--muted); background: #f0efea; }
.own-slot { color: #8b3e2c; background: var(--coral-soft); border-color: #efb4a4; }
.slot-summary { min-width: 0; display: flex; gap: 6px; }
.slot-summary span { flex: 1; }
.slot-topic { margin: 5px 0 0; font-size: .82rem; line-height: 1.35; color: #6c382d; overflow-wrap: anywhere; }
.lesson-slot > small { display: block; color: var(--muted); margin-top: 3px; }
.slot-actions { margin-top: 6px; }
.slot-actions summary { color: inherit; cursor: pointer; font-weight: 800; }
.slot-actions[open] summary { margin-bottom: 8px; }
.slot-actions form { display: grid; gap: 7px; margin-top: 7px; }
.slot-actions label { font-size: 10px; }
.slot-actions select { min-width: 0; padding: 7px; font-size: 11px; }
.text-danger { padding: 3px 0; border: 0; color: #9d442e; background: none; cursor: pointer; text-align: left; font-weight: 700; }
.teacher-slot.free-slot { display: block; }
.teacher-slot.free-slot > summary { display: flex; gap: 6px; cursor: pointer; list-style: none; }
.teacher-slot.free-slot > summary::-webkit-details-marker { display: none; }
.teacher-slot.booked .slot-summary { font-weight: 700; }
.notification-settings-compact { margin: 38px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.notification-settings-compact > summary { cursor: pointer; color: var(--green); font-weight: 700; }
.notification-settings-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: end; gap: 18px; padding-top: 14px; }
.notification-settings-body p { margin: 0 0 8px; color: var(--muted); }
.telegram-settings-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.telegram-settings-form input { width: 100%; }
.student-profile-hero { margin-bottom: 0; }
.profile-tools, .assignment-workspace { align-items: start; }
.profile-summary { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.profile-summary h2 { font-size: 30px; margin: 5px 0 8px; }.profile-summary p { color: var(--muted); margin: 8px 0; }
.assignment-list { display: flex; flex-direction: column; gap: 14px; }
.assignment-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.assignment-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.assignment-head h3 { margin: 10px 0 4px; }.assignment-head p { margin: 0; color: var(--muted); font-size: 12px; }
.assignment-comment { max-width: 100%; margin: 15px 0 0; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }.assignment-comment.answer { padding: 12px; border-radius: 10px; background: var(--green-soft); }
.assignment-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }.assignment-files:empty { display: none; }.assignment-files a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; background: #fff; }.response-files a { color: #8b3e2c; }
.assignment-response { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }.assignment-response summary { cursor: pointer; color: var(--green); font-weight: 800; }.assignment-response[open] summary { margin-bottom: 14px; }.compact-upload { gap: 12px; }.compact-upload .dropzone { padding: 18px; }.profile-calendar-section .calendar-shell { margin-top: 16px; }
.teacher-feedback { padding: 12px; border-radius: 10px; color: #68491a; background: #fff0c9; }
.assignments-cta { border-color: #cbd8e7; background: linear-gradient(120deg, #e7eef7, #f7f5ef); }
.assignments-hero { background: #e7eef7; border-color: #cbd8e7; }
.assignments-page-section { max-width: 920px; margin-inline: auto; }
.assignment-filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.assignment-filter-bar label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 700; }
.assignment-filter-bar input, .assignment-filter-bar select { width: 100%; }
.filter-empty { margin-top: 14px; }
.assignment-index-card .assignment-head { align-items: center; }
.file-picker { display: grid; gap: 10px; text-align: center; }
.file-picker > strong { font-size: 13px; }
.file-picker-list { display: grid; gap: 8px; }
.file-picker-item { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 8px; }
.file-picker-item input[type="file"] { min-width: 0; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; }
.file-picker-item button { width: 32px; height: 32px; border: 1px solid #efb4a4; border-radius: 8px; color: #a33f2c; background: #fff3ef; cursor: pointer; font-size: 20px; line-height: 1; }
.file-picker-item button:hover { background: var(--coral-soft); }
.file-picker [data-file-picker-add] { justify-self: center; }
.lesson-notes-editor { display: grid; gap: 13px; padding: 18px; border: 1px solid #cbd8e7; border-radius: 14px; background: #f2f6fb; }
.lesson-notes-editor p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.assignment-notes { display: grid; gap: 8px; margin-top: 15px; padding: 13px; border: 1px solid #cbd8e7; border-radius: 11px; background: #f2f6fb; }
.assignment-notes > strong { color: #36536e; font-size: 13px; }
.assignment-notes > a { width: fit-content; color: var(--green); font-weight: 800; font-size: 13px; }
.material-search { margin-bottom: 8px; }
.material-preview { display: grid; gap: 5px; padding: 13px; border: 1px solid #c9d9d1; border-radius: 11px; background: var(--green-soft); }
.material-preview { margin-top: -4px; }
.material-preview strong { color: #36536e; font-size: 13px; }
.material-preview span { color: var(--muted); font-size: 13px; }
.material-preview a { width: fit-content; color: var(--green); font-weight: 800; font-size: 13px; }
.assignment-material { margin: 18px 0 4px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #c9d9d1; border-radius: 14px; background: linear-gradient(135deg, #eef7f3, #f8fbfa); }
.assignment-material-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #dcefe7; font-size: 23px; }
.assignment-material-copy { min-width: 0; display: grid; gap: 3px; }
.assignment-material-copy > span { color: #56736a; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.assignment-material-copy > strong { overflow-wrap: anywhere; color: var(--ink); font-size: 16px; line-height: 1.35; }
.assignment-material-copy > small { color: var(--muted); font-size: 13px; }
.assignment-material-link { padding: 9px 13px; border: 1px solid #abcdbf; border-radius: 10px; color: var(--green); background: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.assignment-material-link:hover { border-color: var(--green); background: #f7fffb; }
.materials-cta .button { flex: 0 0 auto; white-space: nowrap; }
.reports-cta, .reports-hero { border-color: #d7c5ea; background: linear-gradient(120deg, #f0eafb, #f7f5ef); }
.assignment-calendar-section { max-width: 1240px; margin-inline: auto; }
.assignment-calendar-shell, .reports-calendar-shell { max-width: 1240px; margin-inline: auto; }
.assignment-calendar-grid .calendar-day { min-height: 150px; }
.assignment-calendar-item { min-width: 0; display: grid; gap: 3px; padding: 7px 8px; border: 1px solid #cbd8e7; border-radius: 9px; color: var(--ink); text-decoration: none; background: #f2f6fb; font-size: 11px; }
.assignment-calendar-item span { color: #446b8e; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.assignment-calendar-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.assignment-calendar-item.submitted { color: #79522a; border-color: #ead39d; background: #fff0c9; }.assignment-calendar-item.submitted span { color: #79522a; }
.assignment-completed-count { color: var(--green); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.assignment-legend i.new-task { background: #8eb3d7; }.assignment-legend i.sent-task { background: #e2b85d; }.assignment-legend i.done-task { background: #7db69d; }
.selected-assignment-section { max-width: 920px; margin-inline: auto; }.assignment-detail-card { box-shadow: var(--shadow); }
.completed-assignments { max-width: 920px; margin-inline: auto; }.completed-assignments details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }.completed-assignments summary { cursor: pointer; color: var(--green); font-weight: 800; }.completed-assignments summary span { display: inline-grid; min-width: 24px; height: 24px; place-items: center; margin-left: 6px; border-radius: 999px; color: white; background: var(--green); font-size: 12px; }.completed-assignment-list { display: grid; gap: 8px; margin-top: 16px; }.completed-assignment-list a { display: flex; justify-content: space-between; gap: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; background: #fbfaf6; }.completed-assignment-list a:hover { background: var(--green-soft); }.completed-assignment-list span { color: var(--muted); font-size: 12px; }
.assignment-complete-form { margin: 0; }.assignment-complete-form .check-action { white-space: nowrap; }
.report-workspace { align-items: start; }.report-day { min-height: 130px; }.report-day-item { padding: 7px 8px; border: 1px solid #d7c5ea; border-radius: 9px; background: #f7f2fc; font-size: 11px; }.report-day-item summary { cursor: pointer; color: #60427b; font-weight: 800; }.report-day-item[open] summary { margin-bottom: 7px; }.report-day-item p { margin: 0 0 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 1100px) { .profile-name, .role { display: none; } }
@media (max-width: 900px) { .schedule-grid { grid-template-columns: 1fr 1fr; }.two-column, .login-page, .notice-panel, .credential-card { grid-template-columns: 1fr; }.login-art { display: none; }.profile-name, .role { display: none; }.hero { align-items: flex-start; gap: 32px; flex-direction: column; }.stats-row { width: 100%; flex-wrap: wrap; }.teacher-columns { grid-template-columns: 1fr; }.materials-builder { grid-template-columns: 1fr; }.materials-sidebar { position: static; }.material-cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .page { width: min(100% - 28px, 1240px); padding-top: 28px; }.topbar { padding: 0 14px; }.portal-nav a:first-child { display: none; }.portal-nav a { padding-inline: 7px; }.account-tools { gap: 6px; }.schedule-grid { grid-template-columns: 1fr; }.hero { padding: 28px; border-radius: 20px; }.hero h1 { font-size: 42px; }.stats-row { flex-direction: column; }.section { margin-top: 40px; }.file-row, .payment-card, .notification-row { align-items: flex-start; flex-wrap: wrap; }.file-meta { flex-basis: calc(100% - 60px); }.credential-copy { grid-template-columns: 1fr; }.credential-copy label { grid-column: auto; }.student-row { flex-wrap: wrap; }.materials-cta, .subpage-hero { align-items: flex-start; flex-direction: column; }.subpage-hero { padding: 28px; }.materials-canvas { padding: 20px; }.form-grid { grid-template-columns: 1fr; }.toast { left: 14px; right: 14px; bottom: 14px; } }

@media (max-width: 900px) {
  .dashboard-shortcuts { grid-template-columns: 1fr; }
  .student-management-actions { grid-template-columns: 1fr; }
  .student-account-actions { justify-content: flex-start; }
  .student-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-create-form > .button { justify-self: start; }
  .slot-builder { grid-template-columns: 1fr; }
  .slot-builder-form { grid-template-columns: repeat(3, 1fr); }
  .slot-builder-form .button { grid-column: 1 / -1; }
  .weekly-builder-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekly-builder-form .weekly-topic { grid-column: 1 / -1; }
  .weekly-builder-form .button { grid-column: 1 / -1; }
  .notification-settings-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { height: auto; min-height: 76px; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .brand { min-height: 40px; }
  .account-tools { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .portal-nav { min-width: 0; display: flex; gap: 4px; overflow-x: auto; }
  .portal-nav a, .portal-nav a:first-child { display: block; flex: 0 0 auto; padding: 8px 7px; background: rgba(255,255,255,.58); text-align: center; font-size: 11px; white-space: nowrap; }
  .profile { gap: 0; }.moscow-clock { font-size: 11px; }
  .subsection-grid { grid-template-columns: 1fr; }
  .rename-section-form { grid-template-columns: 1fr; }
  .tree-actions { opacity: 1; }
  .calendar-shell { padding: 15px; }
  .calendar-toolbar { grid-template-columns: 38px 1fr 38px; gap: 8px; }
  .calendar-toolbar h2 { font-size: 28px; }
  .month-arrow { width: 36px; height: 36px; }
  .calendar-weekdays { display: none; }
  .calendar-grid { grid-template-columns: 1fr; gap: 8px; border: 0; }
  .calendar-day { min-height: 0; padding: 12px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .calendar-day.outside { display: none; }
  .calendar-date { margin: 0; align-items: flex-start; justify-content: flex-start; flex-direction: column; }
  .calendar-date span { display: block; }
  .slot-builder { padding: 22px; }
  .slot-builder-form { grid-template-columns: 1fr 1fr; }
  .slot-builder-form label:first-of-type, .slot-builder-form .button { grid-column: 1 / -1; }
  .weekly-builder-form .weekly-topic { grid-column: 1 / -1; }
  .telegram-link-form { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .notification-settings-compact { padding: 16px; }
  .telegram-settings-form { grid-template-columns: 1fr; }
  .notification-tab { top: auto; bottom: 18px; padding: 10px; border-right: 1px solid var(--line); border-radius: 999px; right: 14px; }
  .notification-tab-label { display: none; }
  .notification-drawer { width: min(100%, 420px); padding: 18px; }
  .assignment-filter-bar { grid-template-columns: 1fr; }
  .assignment-calendar-grid .calendar-day, .report-day { min-height: 0; }
  .completed-assignment-list a { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 600px) {
  .student-create-form { grid-template-columns: 1fr; }
  .student-management-card { padding: 18px; }
  .student-management-head { grid-template-columns: 1fr; }
  .student-management-head > .button { justify-self: start; }
  .student-management-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-management-meta > div:last-child { grid-column: 1 / -1; }
  .student-password-meta { grid-column: 1 / -1; }
  .student-telegram-form { grid-template-columns: minmax(0, 1fr) auto; }
  .assignment-material { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
  .assignment-material-icon { width: 42px; height: 42px; }
  .assignment-material-link { grid-column: 1 / -1; width: 100%; text-align: center; }
}

/* Public teacher landing page — linen editorial system */
:root {
  --color-bone-white: #f8f3e7;
  --color-linen: #eee7d8;
  --color-pebble: #c9bea8;
  --color-bark: #615f56;
  --color-ink-black: #123f35;
  --color-emerald: #123f35;
  --color-mint: #b5d5c2;
  --color-peach: #e8d6bd;
  --color-gold: #9d7d32;
  --font-editorial: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-beausite: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --home-page-width: 1440px;
}

body.public-home {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bone-white);
  color: var(--color-ink-black);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.79;
  letter-spacing: -.022em;
}

.public-home *, .public-home *::before, .public-home *::after { box-sizing: border-box; }
.public-home a { color: inherit; text-underline-offset: 4px; }
.public-home h1, .public-home h2, .public-home h3, .public-home p, .public-home figure, .public-home dl, .public-home dd { margin: 0; }
.public-home h1, .public-home h2, .public-home h3 { font-family: var(--font-editorial); font-weight: 400; }
.public-home h1 { font-size: clamp(64px, 5.7vw, 96px); line-height: .9; letter-spacing: -.055em; }
.public-home h2 { font-size: clamp(42px, 5vw, 70px); line-height: .98; letter-spacing: -.046em; }
.public-home h3 { font-size: 26px; line-height: 1.08; letter-spacing: -.035em; }

.home-skip-link { position: fixed; left: 18px; top: 12px; z-index: 100; padding: 8px 12px; border: 1px solid var(--color-emerald); background: var(--color-bone-white); transform: translateY(-160%); }
.home-skip-link:focus { transform: none; }

.home-header { position: sticky; top: 0; z-index: 30; border-top: 1px solid var(--color-pebble); border-bottom: 1px solid var(--color-pebble); background: rgba(248, 243, 231, .95); backdrop-filter: blur(12px); }
.home-header-inner { width: min(var(--home-page-width), calc(100% - 48px)); min-height: 84px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.home-wordmark { width: fit-content; display: inline-flex; align-items: center; gap: 16px; color: var(--color-ink-black); text-decoration: none; font-family: var(--font-editorial); font-size: 22px; font-weight: 400; }
.home-wordmark-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--color-emerald); border-radius: 50%; color: var(--color-emerald); font-family: var(--font-editorial); font-size: 18px; letter-spacing: -.05em; }
.home-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.home-nav a, .home-account-link { position: relative; text-decoration: none; font-family: var(--font-editorial); font-size: 14px; }
.home-nav a::after, .home-account-link::after { content: ""; position: absolute; inset: auto 0 -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.home-nav a:hover::after, .home-nav a:focus-visible::after, .home-account-link:hover::after, .home-account-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.home-header-actions { justify-self: end; display: flex; align-items: center; gap: 24px; padding-left: 34px; border-left: 1px solid var(--color-pebble); }
.home-account-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.home-apply-link { padding: 13px 22px; border: 1px solid var(--color-gold); color: var(--color-bone-white); background: var(--color-gold); font-family: var(--font-editorial); font-size: 13px; line-height: 1.25; text-decoration: none; white-space: nowrap; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.public-home .home-apply-link { color: var(--color-bone-white); }
.home-apply-link:hover, .home-apply-link:focus-visible { color: var(--color-bone-white); border-color: var(--color-emerald); background: var(--color-emerald); }

.home-hero { width: 100%; height: clamp(620px, calc(100svh - 84px), 780px); min-height: 620px; margin: 0 auto; position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--color-pebble); background: var(--color-bone-white); }
.home-hero::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, var(--color-bone-white) 0%, rgba(248,243,231,.99) 31%, rgba(248,243,231,.88) 43%, rgba(248,243,231,.52) 54%, rgba(248,243,231,.08) 70%, transparent 78%); pointer-events: none; }
.home-hero-copy { width: min(58%, 820px); height: 100%; min-width: 0; position: relative; z-index: 2; padding: clamp(54px, 7vh, 82px) 42px clamp(48px, 7vh, 72px) max(34px, calc((100vw - var(--home-page-width)) / 2 + 48px)); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.home-kicker, .home-section-index { color: var(--color-gold); font-family: var(--font-beausite); font-size: 10px; font-weight: 500; letter-spacing: .3em; line-height: 1.4; text-transform: uppercase; }
.home-hero h1 { max-width: 700px; margin-top: 30px; }
.home-hero-rule { width: 74px; height: 2px; margin-top: 32px; background: var(--color-gold); }
.home-hero-lead { max-width: 540px; margin-top: 34px; color: var(--color-bark); font-size: clamp(18px, 2vw, 21px); line-height: 1.36; letter-spacing: -.022em; }
.home-hero-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.home-button { min-width: 240px; min-height: 58px; padding: 12px 26px; display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; border: 1px solid var(--color-emerald); color: var(--color-bone-white); background: var(--color-emerald); font-family: var(--font-editorial); font-size: 16px; text-decoration: none; line-height: 1.2; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.public-home .home-button { color: var(--color-bone-white); }
.home-button:hover, .home-button:focus-visible { color: var(--color-bone-white); border-color: var(--color-gold); background: var(--color-gold); transform: translateY(-2px); }
.home-button-outline { color: var(--color-ink-black); border-color: var(--color-gold); background: transparent; }
.public-home .home-button-outline { color: var(--color-ink-black); }
.home-button-outline:hover, .home-button-outline:focus-visible { color: var(--color-bone-white); }
.home-text-link { padding: 9px 0; text-decoration: none; border-bottom: 1px solid var(--color-ink-black); line-height: 1.2; }
.home-hero-facts { width: 100%; margin-top: auto; padding-top: 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.home-hero-facts div { padding-top: 12px; border-top: 1px solid var(--color-pebble); }
.home-hero-facts dt { color: var(--color-bark); font-size: 11px; }
.home-hero-facts dd { margin-top: 6px; line-height: 1.45; }
.home-hero-media { min-height: 0; position: absolute; z-index: 0; inset: 0; overflow: hidden; background: var(--color-bone-white); transform: translateY(var(--reveal-shift, 0px)); }
.home-hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; filter: sepia(.04) saturate(.86) contrast(.98); transform: scale(1.01); }
.home-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248,243,231,.04), rgba(248,243,231,.02) 68%, rgba(248,243,231,.12)); pointer-events: none; }
.home-hero-media figcaption { display: none; }

.home-moving-line { width: 100%; padding: 19px 0; overflow: hidden; border-bottom: 1px solid var(--color-pebble); white-space: nowrap; }
.home-moving-line div { width: max-content; color: var(--color-gold); font-family: var(--font-beausite); font-size: 9px; letter-spacing: .25em; transform: translateX(var(--marquee-shift, 0)); will-change: transform; }

.home-section { width: min(var(--home-page-width), calc(100% - 34px)); margin: 0 auto; padding: clamp(72px, 9vw, 112px) 0; border-bottom: 1px solid var(--color-pebble); }
.home-about, .home-formats, .home-materials, .home-final-cta { scroll-margin-top: 86px; }
.home-about { padding-top: 58px; }
.home-about > .home-section-index { margin-bottom: 18px; }
.home-about-grid { display: grid; grid-template-columns: 1.15fr .95fr .6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-about-title { display: grid; gap: 24px; justify-items: start; position: static; align-self: start; }
.home-about-title h2 { font-size: clamp(42px, 3.8vw, 56px); }
.home-about-title p { max-width: 500px; color: var(--color-bark); font-size: 18px; line-height: 1.55; }
.home-about-rule { width: 36px; height: 1px; background: var(--color-gold); }
.home-inline-tag { display: inline-flex; width: fit-content; align-items: center; min-height: 38px; padding: 6px 15px; border: 1px solid var(--color-pebble); border-radius: 20px; color: var(--color-bark); }
.home-about-photo { height: 340px; overflow: hidden; background: var(--color-linen); transform: translateY(calc(var(--reveal-shift, 0px) + var(--scroll-shift, 0px))); }
.home-about-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 36%; filter: saturate(.88) contrast(.97); transform: scale(1.025); }
.home-about-copy { max-width: 360px; }
.home-about-principles { margin: 0; padding: 0; list-style: none; }
.home-about-principles li { display: grid; grid-template-columns: 32px 24px 1fr; align-items: start; gap: 10px; padding: 16px 0; color: var(--color-bark); }
.home-about-principles li::before { content: ''; width: 24px; height: 1px; margin-top: 10px; background: var(--color-gold); grid-column: 2; }
.home-about-principles span { color: var(--color-gold); font-size: 12px; grid-column: 1; grid-row: 1; }
.home-about-principles p { grid-column: 3; grid-row: 1; line-height: 1.4; }
.home-large-copy { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.home-large-copy + p { max-width: 560px; margin-top: 34px; color: var(--color-bark); font-size: 17px; line-height: 1.55; }
.home-about-meta { margin-top: 52px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.home-about-meta div { padding-top: 11px; border-top: 1px solid var(--color-pebble); }
.home-about-meta dt { color: var(--color-bark); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.home-about-meta dd { margin-top: 7px; line-height: 1.45; }

.home-method { padding-inline: clamp(24px, 5vw, 61px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 112px); background: var(--color-linen); }
.home-method-intro .home-kicker { margin-bottom: 24px; }
.home-method-list { display: grid; }
.home-method-list article { padding: 24px 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; border-top: 1px solid var(--color-pebble); }
.home-method-list article:last-child { border-bottom: 1px solid var(--color-pebble); }
.home-feature-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 500; }
.home-feature-icon.mint { background: var(--color-mint); }.home-feature-icon.peach { background: var(--color-peach); }.home-feature-icon.pink { background: #eadbd4; }
.home-method-list h3 { font-size: 21px; font-weight: 500; }
.home-method-list p { max-width: 480px; margin-top: 6px; color: var(--color-bark); line-height: 1.6; }

.home-section-heading { margin-bottom: 52px; display: flex; align-items: end; justify-content: space-between; gap: 34px; }
.home-section-heading h2 { margin-top: 20px; }
.home-section-heading > p { max-width: 350px; color: var(--color-bark); }
.home-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--color-ink-black); border-bottom: 1px solid var(--color-ink-black); }
.home-price-card { min-height: 470px; padding: 34px 28px 24px; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; border-right: 1px solid var(--color-pebble); color: var(--color-ink-black); background: rgba(248,243,231,0); text-decoration: none; cursor: pointer; transform-origin: center; transition: transform .28s cubic-bezier(.2,.7,.2,1), background-color .28s ease, box-shadow .28s ease; }
.home-price-card:first-child { padding-left: 28px; }.home-price-card:last-child { padding-right: 28px; border-right: 0; }
.home-price-card:hover, .home-price-card:focus-visible { z-index: 3; background: var(--color-bone-white); box-shadow: 0 18px 46px rgba(18,63,53,.11); transform: scale(1.025); outline: none; }
.home-card-number { color: var(--color-bark); font-size: 11px; }
.home-price-card h3 { min-height: 58px; margin-top: 0; }
.home-price-card p { margin-top: 20px; color: var(--color-bark); line-height: 1.65; }
.home-price-card ul { min-height: 110px; margin: auto 0 0; padding: 20px 0 0 17px; border-top: 1px solid var(--color-pebble); }
.home-price-card li { padding-left: 5px; }
.home-price-meta { padding-top: 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--color-pebble); }
.home-price-meta span { color: var(--color-bark); font-size: 11px; }
.home-price-meta strong { font-size: 24px; font-weight: 400; line-height: 1; white-space: nowrap; }

.home-materials { background: var(--color-linen); padding-inline: clamp(24px, 5vw, 61px); }
.home-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.home-material-grid article { transform: translateY(calc(var(--reveal-shift, 0px) + var(--scroll-shift, 0px))); }
.home-material-visual { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--color-bone-white); }
.home-material-visual span { padding: 11px 16px; border: 1px solid currentColor; color: var(--color-ink-black); font-family: var(--font-beausite); font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; }
.visual-notes { background: var(--color-mint); }.visual-practice { background: var(--color-peach); }.visual-course { background: #d4e5da; }
.visual-notes span, .visual-practice span, .visual-course span { transform: none; }
.home-material-grid h3 { margin-top: 17px; font-size: 21px; font-weight: 500; }
.home-material-grid p { margin-top: 8px; color: var(--color-bark); line-height: 1.65; }

.home-final-cta { min-height: 360px; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(48px, 8vw, 110px); align-items: start; }
.home-final-cta .home-kicker { margin-bottom: 24px; }
.home-contact-form { width: min(100%, 520px); justify-self: end; display: grid; gap: 20px; }
.home-contact-form label { display: grid; gap: 7px; color: var(--color-bark); font-size: 10px; font-weight: 500; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.home-contact-form input, .home-contact-form textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--color-pebble); border-radius: 0; outline: 0; background: transparent; color: var(--color-ink-black); font: 400 16px/1.5 var(--font-beausite); letter-spacing: -.022em; text-transform: none; box-shadow: none; resize: vertical; }
.home-contact-form textarea { min-height: 84px; }
.home-contact-form input:focus, .home-contact-form textarea:focus { border-color: var(--color-ink-black); box-shadow: none; }
.home-contact-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.home-contact-submit > span { max-width: 250px; color: var(--color-bark); font-size: 11px; line-height: 1.5; }
.home-contact-result { min-height: 20px; color: var(--color-ink-black); font-size: 13px; line-height: 1.5; }
.home-contact-result.error { color: #9d442e; }
.home-contact-form button:disabled { cursor: wait; opacity: .62; }

.home-footer { width: min(var(--home-page-width), calc(100% - 34px)); margin: 0 auto; padding: 34px 0 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border: 0; color: var(--color-bark); background: transparent; text-align: left; font-size: 11px; }
.home-footer .home-wordmark { color: var(--color-ink-black); font-size: 15px; }
.home-footer p { text-align: center; }
.home-footer > div { justify-self: end; display: flex; gap: 18px; }
.home-footer > div a { text-decoration: none; }

.public-home [data-reveal] { --reveal-shift: 24px; opacity: 0; transform: translateY(calc(var(--reveal-shift) + var(--scroll-shift, 0px))); transition: opacity .65s ease, transform .75s cubic-bezier(.2, .68, .24, 1); }
.public-home [data-reveal].is-visible { --reveal-shift: 0px; opacity: 1; }
.public-home .home-hero-copy [data-reveal]:nth-child(2) { transition-delay: .06s; }
.public-home .home-hero-copy [data-reveal]:nth-child(3) { transition-delay: .12s; }
.public-home .home-hero-copy [data-reveal]:nth-child(4) { transition-delay: .18s; }
.public-home .home-hero-copy [data-reveal]:nth-child(5) { transition-delay: .24s; }

@media (max-width: 900px) {
  .home-header-inner { grid-template-columns: 1fr auto; }
  .home-header-actions { gap: 10px; }
  .home-nav { display: none; }
  .home-hero { height: 680px; min-height: 680px; background: var(--color-bone-white); }
  .home-hero::after { background: linear-gradient(90deg, var(--color-bone-white) 0%, rgba(248,243,231,.97) 42%, rgba(248,243,231,.76) 64%, rgba(248,243,231,.2) 100%); }
  .home-hero-copy { width: 100%; height: 100%; min-height: 0; padding-right: 28px; }
  .home-hero-media { min-height: 0; }
  .home-hero-media img { object-position: 62% center; }
  .home-about-grid, .home-method, .home-final-cta { grid-template-columns: 1fr; }
  .home-about-title { position: static; }
  .home-method { gap: 48px; }
  .home-price-grid, .home-material-grid { grid-template-columns: 1fr; }
  .home-price-grid { border-bottom: 0; }
  .home-price-card, .home-price-card:first-child, .home-price-card:last-child { min-height: 0; padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--color-pebble); }
  .home-price-card h3 { min-height: 0; }
  .home-price-card ul { min-height: 0; }
  .home-material-grid { gap: 48px; }
  .home-contact-form { justify-self: start; }
  .home-footer { grid-template-columns: 1fr auto; }
  .home-footer p { display: none; }
}

@media (max-width: 600px) {
  .home-header-inner, .home-hero, .home-section, .home-footer { width: min(100% - 28px, var(--home-page-width)); }
  .home-header-inner { min-height: 0; padding-block: 10px; grid-template-columns: 1fr; gap: 8px; }
  .home-header-actions { width: 100%; padding-top: 8px; justify-self: stretch; justify-content: space-between; border-top: 1px solid var(--color-pebble); }
  .home-wordmark { font-size: 15px; }
  .home-wordmark-mark { width: 30px; height: 30px; }
  .home-account-link, .home-apply-link { font-size: 10px; }
  .home-account-link span { display: none; }
  .home-apply-link { padding: 6px 8px; }
  .public-home h1 { font-size: clamp(46px, 14vw, 66px); }
  .public-home h2 { font-size: clamp(36px, 11vw, 50px); }
  .home-hero { height: 640px; min-height: 640px; }
  .home-hero::after { background: linear-gradient(90deg, rgba(248,243,231,.99) 0%, rgba(248,243,231,.95) 58%, rgba(248,243,231,.68) 100%); }
  .home-hero-copy { min-height: 0; padding-top: 54px; padding-bottom: 48px; }
  .home-hero-lead { font-size: 18px; }
  .home-hero-facts { grid-template-columns: 1fr; gap: 11px; }
  .home-hero-facts div { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; }
  .home-hero-facts dd { margin: 0; }
  .home-hero-media { min-height: 0; }
  .home-section { padding-block: 72px; }
  .home-about > .home-section-index { margin-bottom: 34px; }
  .home-about-grid { gap: 42px; }
  .home-large-copy { font-size: 26px; }
  .home-about-meta { grid-template-columns: 1fr; }
  .home-method, .home-materials { width: 100%; padding-inline: 14px; }
  .home-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .home-price-card h3 { font-size: 25px; }
  .home-final-cta { min-height: 0; gap: 46px; }
  .home-footer { align-items: start; grid-template-columns: 1fr; }
  .home-footer > div { justify-self: start; }
}

.home-contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) {
  .public-home *, .public-home *::before, .public-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .public-home [data-reveal] { --reveal-shift: 0px; opacity: 1; }
  .public-home [data-parallax], .home-moving-line div { transform: none !important; }
}

/* Student dashboard — editorial companion to the public landing page */
.student-portal-shell {
  --student-paper: var(--color-bone-white);
  --student-panel: var(--color-linen);
  --student-ink: var(--color-ink-black);
  --student-muted: var(--color-bark);
  --student-line: var(--color-pebble);
  min-height: 100vh;
  color: var(--student-ink);
  background: var(--student-paper);
  font-family: var(--font-beausite);
}
.student-portal-shell .topbar {
  width: 100%;
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  border-color: rgba(106, 105, 101, .32);
  background: rgba(252, 249, 238, .94);
  backdrop-filter: blur(14px);
}
.student-portal-shell .brand { gap: 11px; color: var(--student-ink); font-weight: 500; }
.student-portal-shell .brand-mark {
  width: 34px; height: 34px; border: 1px solid var(--student-ink); border-radius: 50%;
  color: var(--student-ink); background: transparent; font: 500 10px/1 var(--font-beausite);
}
.student-portal-shell .portal-nav { gap: 23px; }
.student-portal-shell .portal-nav a {
  padding: 7px 0; border-radius: 0; color: var(--student-muted); background: transparent;
  font-size: 12px; font-weight: 500; border-bottom: 1px solid transparent;
}
.student-portal-shell .portal-nav a:hover { color: var(--student-ink); background: transparent; border-color: currentColor; }
.student-portal-shell .profile { gap: 14px; }
.student-portal-shell .profile-name { font-weight: 500; }
.student-portal-shell .profile .button {
  padding: 8px 12px; border-radius: 0; border-color: var(--student-line); color: var(--student-ink); background: transparent;
}
.student-portal-shell .page { width: min(1200px, calc(100% - 48px)); padding: 30px 0 90px; }
.student-portal-shell footer { border-color: rgba(106, 105, 101, .3); color: var(--student-muted); background: var(--student-paper); }
.student-portal-shell h1, .student-portal-shell h2, .student-portal-shell h3 {
  font-family: var(--font-beausite); font-weight: 400; letter-spacing: -.045em;
}
.student-portal-shell .eyebrow { margin-bottom: 13px; color: var(--student-muted); font-size: 10px; letter-spacing: .17em; font-weight: 600; }
.student-portal-shell .button { border-radius: 0; font-weight: 500; }
.student-portal-shell .button.primary { color: var(--student-paper); background: var(--student-ink); }
.student-portal-shell .button.primary:hover { background: #292929; }
.student-portal-shell .student-text-link { width: fit-content; color: var(--student-ink); text-decoration: none; border-bottom: 1px solid currentColor; }

.student-overview-hero {
  min-height: 590px; display: grid; grid-template-columns: 1.08fr .92fr;
  border-top: 1px solid var(--student-line); border-bottom: 1px solid var(--student-line);
}
.student-overview-copy, .student-overview-summary { min-width: 0; }
.student-overview-copy { padding: 82px 70px 62px 0; display: flex; flex-direction: column; align-items: flex-start; }
.student-overview-copy h1 { max-width: 650px; font-size: clamp(58px, 6.4vw, 86px); line-height: .91; }
.student-overview-copy .lead { max-width: 550px; margin: 34px 0 0; color: var(--student-muted); font-size: 20px; line-height: 1.45; }
.student-hero-actions { margin-top: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.student-hero-actions .button { min-width: 180px; justify-content: space-between; }
.student-overview-summary { padding: 44px; display: flex; flex-direction: column; background: var(--student-panel); }
.student-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--student-line); color: var(--student-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.student-summary-heading time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.student-next-lesson { margin-top: 38px; padding-bottom: 38px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 22px; border-bottom: 1px solid var(--student-line); }
.student-next-index { padding-top: 4px; color: var(--student-muted); font-size: 11px; }
.student-next-lesson > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.student-next-lesson span { color: var(--student-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.student-next-lesson strong { margin-top: 28px; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; font-weight: 400; letter-spacing: -.04em; }
.student-next-lesson p { margin: 10px 0 0; color: var(--student-muted); }
.student-next-lesson > a { color: var(--student-ink); font-size: 24px; text-decoration: none; }
.student-overview-stats { margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.student-overview-stats div { min-width: 0; padding: 25px 16px 0 0; border-right: 1px solid var(--student-line); }
.student-overview-stats div + div { padding-left: 16px; }
.student-overview-stats div:last-child { border: 0; }
.student-overview-stats dt { font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.student-overview-stats dd { max-width: 100px; margin: 9px 0 0; color: var(--student-muted); font-size: 11px; line-height: 1.4; }

.student-portal-shell .payment-warning { margin-top: 30px; padding: 28px 0; grid-template-columns: .72fr 1.28fr; border: 0; border-top: 1px solid #b46c4d; border-bottom: 1px solid #b46c4d; border-radius: 0; background: #f4e6dc; }
.student-portal-shell .payment-warning > div:first-child { padding: 0 28px; }
.student-portal-shell .payment-warning h2 { font-size: 31px; }
.student-portal-shell .payment-card { border-radius: 0; border-color: rgba(106, 105, 101, .35); background: var(--student-paper); }

.student-dashboard-section { padding: 90px 0; border-bottom: 1px solid var(--student-line); }
.student-section-heading { margin-bottom: 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; }
.student-section-heading h2 { font-size: clamp(42px, 5vw, 64px); line-height: .98; }
.student-section-heading > p { max-width: 290px; margin: 0; color: var(--student-muted); }
.student-direction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--student-line); border-left: 1px solid var(--student-line); }
.student-direction-card {
  min-height: 330px; padding: 26px; display: grid; grid-template-columns: 1fr auto; align-content: space-between;
  border-right: 1px solid var(--student-line); border-bottom: 1px solid var(--student-line);
  color: var(--student-ink); background: transparent; text-decoration: none; transition: background-color .25s ease;
}
.student-direction-card:hover { background: var(--student-panel); }
.student-direction-card > div { grid-column: 1 / -1; align-self: end; }
.student-card-index { color: var(--student-muted); font-size: 11px; }
.student-card-arrow { font-size: 22px; }
.student-direction-card h3 { margin: 0 0 13px; font-size: clamp(30px, 3vw, 42px); }
.student-direction-card p { max-width: 440px; margin: 0; color: var(--student-muted); }
.student-direction-card .eyebrow { margin-bottom: 17px; }
.direction-assignments:hover { background: #ebf0f4; }
.direction-materials:hover { background: #efe4dd; }
.direction-calendar:hover { background: #e7eee8; }
.direction-reports:hover { background: #eee8f2; }

.student-schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--student-line); border-left: 1px solid var(--student-line); }
.student-lesson-card { min-height: 300px; padding: 25px; display: flex; flex-direction: column; border-right: 1px solid var(--student-line); border-bottom: 1px solid var(--student-line); background: transparent; }
.student-lesson-number { color: var(--student-muted); font-size: 11px; }
.student-lesson-card > div:nth-child(2) { margin-top: auto; }
.student-lesson-card time { color: var(--student-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.student-lesson-card h3 { margin: 15px 0 8px; font-size: 28px; }
.student-lesson-card p { margin: 0; color: var(--student-muted); }
.student-lesson-card > a, .student-lesson-card > span { margin-top: 28px; padding-top: 15px; border-top: 1px solid var(--student-line); color: var(--student-ink); font-size: 12px; text-decoration: none; }
.student-lesson-card > span { color: var(--student-muted); }
.student-empty-schedule { grid-column: 1 / -1; min-height: 260px; padding: 35px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; background: var(--student-panel); }
.student-empty-schedule span { color: var(--student-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.student-empty-schedule strong { margin: 22px 0; font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: -.04em; }

.student-history-table { border: 0; border-radius: 0; background: transparent; }
.student-history-table table { border-top: 1px solid var(--student-line); }
.student-history-table th, .student-history-table td { padding: 18px 16px; border-color: rgba(106, 105, 101, .28); }
.student-history-table th { color: var(--student-muted); font-size: 10px; font-weight: 500; }
.student-history-table tbody tr { transition: background-color .2s ease; }
.student-history-table tbody tr:hover { background: var(--student-panel); }
.student-portal-shell .status { border-radius: 999px; font-weight: 500; }

.student-portal-shell [data-reveal] { --reveal-shift: 22px; opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity .62s ease, transform .72s cubic-bezier(.2, .68, .24, 1); }
.student-portal-shell [data-reveal].is-visible { --reveal-shift: 0px; opacity: 1; }
.student-direction-card:nth-child(2), .student-lesson-card:nth-child(2) { transition-delay: .05s; }
.student-direction-card:nth-child(3), .student-lesson-card:nth-child(3) { transition-delay: .1s; }
.student-direction-card:nth-child(4) { transition-delay: .15s; }

@media (max-width: 980px) {
  .student-overview-hero { grid-template-columns: 1fr; }
  .student-overview-copy { min-height: 540px; padding-right: 0; }
  .student-overview-summary { min-height: 460px; }
  .student-schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .student-portal-shell .topbar { padding: 9px 14px; }
  .student-portal-shell .account-tools { grid-template-columns: 1fr auto; }
  .student-portal-shell .portal-nav { gap: 13px; }
  .student-portal-shell .portal-nav a { padding: 6px 0; background: transparent; }
  .student-portal-shell .profile > .moscow-clock { display: none; }
  .student-portal-shell .page { width: min(100% - 28px, 1200px); padding-top: 18px; }
  .student-overview-copy { min-height: 510px; padding: 64px 0 48px; }
  .student-overview-copy h1 { font-size: clamp(44px, 12.8vw, 62px); }
  .student-overview-copy .lead { font-size: 18px; }
  .student-overview-summary { min-height: 430px; padding: 28px 20px; }
  .student-next-lesson { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .student-next-lesson strong { font-size: 27px; }
  .student-overview-stats div { padding-right: 9px; }
  .student-overview-stats div + div { padding-left: 9px; }
  .student-overview-stats dt { font-size: 30px; }
  .student-portal-shell .payment-warning { grid-template-columns: 1fr; padding: 25px 0; }
  .student-portal-shell .payment-warning > div:first-child { padding: 0 20px; }
  .student-portal-shell .payment-warning .payment-cards { padding: 0 20px; }
  .student-dashboard-section { padding: 72px 0; }
  .student-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 34px; }
  .student-section-heading h2 { font-size: 43px; }
  .student-direction-grid, .student-schedule-grid { grid-template-columns: 1fr; }
  .student-direction-card { min-height: 285px; }
  .student-lesson-card { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  .student-portal-shell *, .student-portal-shell *::before, .student-portal-shell *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .student-portal-shell [data-reveal] { --reveal-shift: 0px; opacity: 1; }
}
