/* Gymnasium #3 schedule portal — dark first, light theme optional */
:root {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-soft: #111a2e;
  --surface: rgba(19, 29, 49, .88);
  --surface-solid: #141f35;
  --surface-raised: #1b2944;
  --line: rgba(157, 177, 216, .17);
  --line-strong: rgba(157, 177, 216, .3);
  --ink: #edf2ff;
  --ink-soft: #c3cde2;
  --muted: #8f9db8;
  --accent: #8b7cff;
  --accent-2: #43c6e8;
  --accent-dark: #7060eb;
  --green: #56d6a0;
  --red: #ff7385;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --radius: 20px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f4fb;
  --bg-soft: #e9eef9;
  --surface: rgba(255, 255, 255, .9);
  --surface-solid: #ffffff;
  --surface-raised: #f6f8ff;
  --line: rgba(62, 79, 121, .13);
  --line-strong: rgba(62, 79, 121, .25);
  --ink: #18223a;
  --ink-soft: #34415f;
  --muted: #697795;
  --accent: #6655dc;
  --accent-2: #078eaf;
  --accent-dark: #5142c1;
  --green: #138b62;
  --red: #d94c64;
  --shadow: 0 20px 55px rgba(51, 65, 107, .12);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh; margin: 0; color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 12% 3%, rgba(107, 87, 255, .18), transparent 34rem),
    radial-gradient(ellipse at 91% 18%, rgba(30, 190, 216, .12), transparent 30rem),
    linear-gradient(145deg, var(--bg), var(--bg-soft));
  background-attachment: fixed;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.topbar {
  min-height: 78px; padding: 14px clamp(18px, 4vw, 60px); display: flex; align-items: center;
  gap: 25px; justify-content: space-between; border-bottom: 1px solid var(--line);
  background: rgba(9, 15, 30, .45); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.68); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: white; font-size: 16px; background: linear-gradient(135deg, #8e78ff, #36bfdc); box-shadow: 0 8px 22px rgba(106, 96, 235, .32); }
.nav { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); flex-wrap: wrap; }
.nav a, .nav-admin-link { text-decoration: none; font-size: 12px; color: var(--muted); font-weight: 650; transition: color .18s ease; }
.nav a:hover, .nav-admin-link:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.nav-admin-link { padding: 7px 0; }
.logout-form { margin: 0; }
.nav-button { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); padding: 8px 12px; border-radius: 10px; font-weight: 650; font-size: 12px; cursor: pointer; }
.theme-toggle { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 14px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); font-size: 19px; cursor: pointer; box-shadow: 0 7px 24px rgba(0,0,0,.1); transition: transform .18s ease, border-color .18s ease; }
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--accent); }
.container { width: min(1120px, calc(100% - 44px)); margin: 42px auto 70px; min-height: calc(100vh - 200px); }
.footer { width: min(1120px, calc(100% - 44px)); margin: 0 auto; padding: 20px 0 28px; color: var(--muted); font-size: 11px; text-align: center; border-top: 1px solid var(--line); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 0 0 25px; }
.page-heading h1 { margin: 5px 0 7px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.045em; line-height: 1.08; }
.page-heading p { margin: 0; }
.eyebrow { color: var(--accent-2); font-size: 10px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.muted { color: var(--muted) !important; }
.small { font-size: 12px; }
.panel { padding: clamp(19px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 18px; backdrop-filter: blur(16px); }
.panel h2 { margin: 0 0 17px; font-size: 19px; letter-spacing: -.025em; }
.panel p { line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 11px 17px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: var(--surface-raised); font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .16s ease, border-color .16s ease, filter .16s ease; }
.button:hover { transform: translateY(-1px); border-color: var(--accent); }
.button.primary { border: 0; color: #fff; background: linear-gradient(120deg, #7767f4, #419ddf); box-shadow: 0 8px 22px rgba(102, 91, 229, .23); }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { color: var(--ink-soft); background: var(--surface-raised); }
.button.danger { color: #fff; border: 0; background: linear-gradient(120deg, #d84f72, #ef795f); }
.full-width { width: 100%; margin-top: 15px; }
.messages { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; }
.message { padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); color: var(--ink-soft); font-size: 13px; }
.message.success { border-color: rgba(86,214,160,.28); color: var(--green); }
.message.error { border-color: rgba(255,115,133,.3); color: var(--red); }
.message.warning { border-color: rgba(245,190,90,.3); color: #e8be6d; }
.empty-state { text-align: center; padding: 45px 22px; }
.empty-state strong { font-size: 16px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 15px; color: var(--accent-2); background: rgba(67,198,232,.1); font-size: 20px; }
/* Landing screen */
.home-page { overflow-x: hidden; }
.home-page .container { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 90px); margin: 0 auto; display: flex; align-items: center; }
.home-toolbar { position: absolute; z-index: 2; top: 24px; right: clamp(22px, 5vw, 70px); }
.landing { width: 100%; padding: 58px 0 82px; }
.landing-title { text-align: center; margin: 0 auto 58px; }
.landing-title h1 { margin: 0; font-size: clamp(43px, 7.5vw, 78px); font-weight: 900; letter-spacing: -.07em; line-height: .98; background: linear-gradient(100deg, #f3f0ff 12%, #a89aff 53%, #6dd8ec 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .landing-title h1 { background-image: linear-gradient(100deg, #293158 12%, #6556ce 53%, #087f9f 95%); }
.landing-subtitle { margin-top: 13px; color: var(--muted); font-size: clamp(13px, 2vw, 17px); font-weight: 650; letter-spacing: .24em; text-transform: uppercase; }
.landing-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto; }
.portal-card { position: relative; isolation: isolate; overflow: hidden; min-height: 225px; padding: 29px 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.16); border-radius: 25px; color: #fff; text-decoration: none; box-shadow: 0 22px 48px rgba(0,0,0,.2); transition: transform .2s ease, box-shadow .2s ease; }
.portal-card::before { content: ""; position: absolute; z-index: -1; width: 230px; height: 230px; right: -74px; top: -100px; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(2px); }
.portal-card::after { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: 25px; bottom: -104px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 22px rgba(255,255,255,.04), 0 0 0 44px rgba(255,255,255,.025); }
.portal-card:hover { transform: translateY(-7px); box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.portal-students { background: linear-gradient(135deg, #6558e8, #8871f8 68%, #9b79f1); }
.portal-teachers { background: linear-gradient(135deg, #087eaa, #18a9bd 65%, #48c7c5); }
.portal-info { background: linear-gradient(135deg, #bc7134, #d68b3c 60%, #e4a54e); }
.portal-number { font-size: 12px; font-weight: 850; letter-spacing: .16em; opacity: .8; }
.portal-label { max-width: 230px; font-size: clamp(23px, 2.7vw, 31px); font-weight: 850; letter-spacing: -.045em; line-height: 1.08; }
.portal-arrow { position: absolute; right: 27px; bottom: 25px; font-size: 27px; opacity: .9; }
.creator-mark { position: fixed; right: 25px; bottom: 19px; color: var(--muted); font-size: 26px; letter-spacing: .04em; }
.creator-mark strong { color: var(--ink-soft); font-weight: 900; }
/* Lists */
.entity-panel { padding: 14px clamp(17px, 2.5vw, 26px) 20px; }
.entity-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 7px 0 17px; border-bottom: 1px solid var(--line); }
.search-field { min-width: min(100%, 370px); display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-raised); color: var(--muted); }
.search-field span { font-size: 20px; }
.search-field input { width: 100%; height: 42px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-field input::placeholder { color: var(--muted); }
.entity-count { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.entity-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 13px; padding-top: 15px; }
.entity-row { min-width: 0; min-height: 62px; display: flex; align-items: center; gap: 13px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); text-decoration: none; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.entity-row:hover { transform: translateY(-2px); border-color: rgba(139,124,255,.55); background: rgba(139,124,255,.08); }
.entity-initial { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: white; font-size: 12px; font-weight: 850; }
.class-initial { background: linear-gradient(135deg, #7567ed, #9b79e7); }
.teacher-initial { background: linear-gradient(135deg, #168eaf, #4bb9b7); font-size: 17px; }
.entity-name { min-width: 0; flex: 1; font-size: 13px; font-weight: 750; color: var(--ink-soft); overflow-wrap: anywhere; }
.entity-arrow { color: var(--accent-2); font-size: 19px; }
.no-results { padding: 27px 10px; color: var(--muted); text-align: center; font-size: 13px; }
/* Important info */
.info-link-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.info-link-card { min-width: 0; min-height: 112px; display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.info-link-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.info-link-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, #7969ef, #37afd2); font-size: 21px; }
.info-link-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.info-link-copy strong { font-size: 15px; }
.info-link-copy small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.info-link-open { color: var(--accent-2); font-size: 11px; font-weight: 800; white-space: nowrap; }
/* Admin forms and lists */
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.form-stack label { display: flex; flex-direction: column; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.form-stack input, .form-stack select, .form-stack textarea, .panel select, .panel input[type="date"], .panel input[type="file"], .inline-form input, .inline-form select { width: 100%; max-width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; color: var(--ink); background: var(--surface-raised); }
.form-stack textarea { resize: vertical; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus, .panel select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,124,255,.13); }
.form-stack input[type="checkbox"], .checkbox-field input { width: 17px; min-height: 17px; accent-color: var(--accent); }
.form-actions, .managed-link-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.admin-info-layout { display: grid; grid-template-columns: minmax(270px,.8fr) minmax(0,1.2fr); gap: 18px; align-items: start; }
.admin-info-layout .form-panel { position: sticky; top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin-bottom: 0; }
.managed-link-list { display: flex; flex-direction: column; margin-top: 14px; }
.managed-link-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.managed-link-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.managed-link-copy strong { font-size: 14px; }
.managed-link-copy a { max-width: 100%; overflow-wrap: anywhere; color: var(--accent-2); font-size: 11px; text-decoration: none; }
.managed-link-copy small { color: var(--muted); font-size: 11px; }
.status-chip { width: fit-content; margin-top: 3px; padding: 4px 8px; border-radius: 7px; font-size: 10px; font-weight: 750; }
.status-chip.is-active { color: var(--green); background: rgba(86,214,160,.1); }
.status-chip.is-disabled { color: var(--muted); background: var(--surface-raised); }
.checkbox-field { display: flex !important; flex-direction: row !important; align-items: center; gap: 11px !important; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.checkbox-field input { flex: 0 0 17px; }
.checkbox-field span { display: flex; flex-direction: column; gap: 3px; }
.checkbox-field strong { font-size: 12px; }
.checkbox-field small { color: var(--muted); font-size: 10px; font-weight: 400; }
/* Login and setup */
.auth-wrap { width: min(450px, 100%); margin: 5vh auto; }
.auth-panel { padding: 30px; }
.auth-panel h1 { margin: 8px 0 10px; font-size: 29px; letter-spacing: -.04em; }
.auth-panel .button { width: 100%; }
.notice { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface-raised); font-size: 12px; line-height: 1.55; }
.warning-notice { color: #dfbb72; border-color: rgba(223,187,114,.2); }
.field-error { color: var(--red); font-size: 11px; }
.command-box { white-space: pre-wrap; overflow-wrap: anywhere; padding: 13px; border-radius: 10px; color: var(--ink-soft); background: #080d18; font-size: 12px; }
/* NIKA management */
.inline-form { display: flex; gap: 13px; align-items: end; flex-wrap: wrap; }
.inline-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.field-label { display: block; margin: 12px 0 6px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.status.success { color: var(--green); font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
/* Week schedule */
.week-nav { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 18px; }
.day-panel { margin: 0 0 16px; }
.day-panel h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.lesson-list { display: grid; gap: 8px; }
.lesson-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.lesson-number { flex: 0 0 84px; width: 84px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #7567ed, #438ed5); text-align: center; }
.lesson-number strong { font-size: 16px; line-height: 1.1; font-weight: 900; }
.lesson-number span { font-size: 9px; line-height: 1.2; font-weight: 750; white-space: nowrap; }
.lesson-content { min-width: 0; flex: 1; }
.lesson-item { padding: 2px 0 9px; }
.lesson-item:last-child { padding-bottom: 0; }
.lesson-item strong { font-size: 13px; }
.lesson-item .muted { font-size: 11px; }
/* Previous project components kept usable if visited by a direct URL */
.stats-grid, .two-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.admin-account-list { display: flex; flex-direction: column; margin-top: 18px; }
.admin-account-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.admin-account-main { display: flex; flex-direction: column; gap: 7px; }
.permission-summary { display: flex; gap: 7px; flex-wrap: wrap; }
.permission-summary span { padding: 4px 8px; border-radius: 7px; color: var(--muted); background: var(--surface-raised); font-size: 10px; }
.pill { display: inline-block; padding: 5px 9px; border-radius: 30px; font-size: 10px; font-weight: 800; }
.pill.success { color: var(--green); background: rgba(86,214,160,.12); }
.pill.warning { color: #e3bd67; background: rgba(227,189,103,.12); }
.muted-pill { color: var(--muted); background: var(--surface-raised); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.filter-tabs a { padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 11px; background: var(--surface-raised); }
.filter-tabs a.selected { color: white; background: var(--accent-dark); }
.publish-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.proposal-list { display: flex; flex-direction: column; gap: 14px; }
.proposal-card { margin: 0; }
.proposal-top { display: flex; justify-content: space-between; gap: 16px; }
.replacement-flow { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.replacement-flow>div { display: flex; flex-direction: column; gap: 3px; }
.replacement-flow small { color: var(--muted); font-size: 10px; }
.arrow { color: var(--accent); font-size: 21px; }
.action-row { display: flex; gap: 10px; margin-top: 15px; }
.action-row form { margin: 0; }
.success-text { color: var(--green); font-size: 12px; font-weight: 700; }
.feature-list { padding-left: 20px; color: var(--muted); font-size: 12px; }
.feature-list li { margin: 9px 0; }
@media (max-width: 950px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .public-nav { order: 3; width: 100%; }
  .landing-actions { gap: 12px; }
  .portal-card { min-height: 200px; padding: 23px; }
}
@media (max-width: 700px) {
  .topbar { padding: 13px 17px; gap: 12px; }
  .topbar-actions { margin-left: auto; }
  .topbar-actions .nav-admin-link { display: none; }
  .container { width: min(100% - 28px, 600px); margin: 27px auto 45px; }
  .home-page .container { width: calc(100% - 32px); min-height: 100vh; }
  .landing { padding: 80px 0 85px; }
  .landing-title { margin-bottom: 35px; }
  .landing-actions { grid-template-columns: 1fr; max-width: 460px; }
  .portal-card { min-height: 132px; padding: 18px 20px; border-radius: 19px; }
  .portal-label { font-size: 23px; }
  .portal-arrow { right: 20px; bottom: 18px; }
  .entity-list, .info-link-list, .admin-info-layout, .stats-grid, .two-columns { grid-template-columns: 1fr; }
  .admin-info-layout .form-panel { position: static; }
  .managed-link-row { align-items: flex-start; flex-direction: column; }
  .managed-link-actions { width: 100%; }
  .managed-link-actions .button { flex: 1; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 30px; }
  .panel { padding: 18px; border-radius: 16px; }
  .week-nav { flex-wrap: wrap; }
  .week-nav .button { flex: 1; }
  .publish-bar, .toolbar, .proposal-top { align-items: flex-start; flex-direction: column; }
  .action-row { flex-direction: column; }
  .action-row .button { width: 100%; }
  .admin-account-row { align-items: flex-start; flex-direction: column; }
  .admin-account-row .button { width: 100%; }
}


/* Single-day timetable navigation and clearly visible cancellations */
.schedule-back-row { margin: 0 0 18px; }
.schedule-heading { margin-bottom: 18px; }
.day-navigation { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; margin: 0 0 18px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.day-navigation > a:first-child { justify-self: start; }
.day-navigation > a:last-child { justify-self: end; }
.day-navigation-current { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.day-navigation-current strong { color: var(--ink); font-size: 16px; font-weight: 850; white-space: nowrap; }
.day-navigation-current em, .today-chip { padding: 5px 9px; border-radius: 999px; color: #c5ffe9; background: rgba(55, 205, 146, .16); border: 1px solid rgba(55,205,146,.22); font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.day-panel-current { border-color: rgba(139,124,255,.26); }
.day-panel h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.lesson-row-cancelled { border-color: rgba(255, 94, 117, .45); background: linear-gradient(110deg, rgba(255, 81, 112, .11), rgba(255,255,255,.018)); }
.lesson-item-cancelled { margin: 2px 0 7px; padding: 8px 10px; border-left: 3px solid var(--red); border-radius: 0 9px 9px 0; background: rgba(255, 94, 117, .09); }
.cancelled-badge { display: inline-flex; align-items: center; gap: 5px; margin: 0 8px 6px 0; padding: 5px 8px; border-radius: 7px; color: #fff; background: linear-gradient(120deg, #d83f62, #f06475); font-size: 10px; font-weight: 900; letter-spacing: .045em; }
.lesson-item-cancelled > strong { color: #ffbdc8; text-decoration: line-through; text-decoration-thickness: 1px; }
:root[data-theme="light"] .lesson-item-cancelled > strong { color: #a12d48; }
.lesson-class { color: var(--accent-2); font-weight: 800; }
.day-empty-note { margin: 5px 0 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center; font-size: 13px; }
@media (max-width: 700px) {
  .creator-mark { right: 15px; bottom: 12px; font-size: 25px; }
  .day-navigation { grid-template-columns: 1fr 1fr; }
  .day-navigation-current { grid-column: 1 / -1; grid-row: 1; padding: 4px 0 8px; }
  .day-navigation > a:first-child { grid-row: 2; }
  .day-navigation > a:last-child { grid-row: 2; }
  .day-navigation .button { width: 100%; padding: 10px 8px; white-space: normal; }
}


/* Animated welcome screen shown when the public home page is opened */
body.intro-lock { overflow: hidden; }
.intro-splash {
  position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center;
  overflow: hidden; padding: 28px; color: #f7f5ff; text-align: center;
  background: radial-gradient(ellipse at 50% 35%, #24275b 0%, #11172f 44%, #080d1b 100%);
  opacity: 1; visibility: visible; transition: opacity .58s ease, visibility .58s ease;
}
.intro-splash.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-splash::before, .intro-splash::after {
  content: ""; position: absolute; width: min(80vw, 760px); aspect-ratio: 1; border: 1px solid rgba(157,143,255,.13);
  border-radius: 50%; animation: intro-orbit 15s linear infinite;
}
.intro-splash::after { width: min(62vw, 560px); border-color: rgba(93,213,234,.13); animation-duration: 22s; animation-direction: reverse; }
.intro-splash-glow { position: absolute; width: 35vw; min-width: 230px; max-width: 480px; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .25; pointer-events: none; }
.intro-splash-glow-one { top: -18%; left: -8%; background: #6958f5; animation: intro-glow 4.5s ease-in-out infinite alternate; }
.intro-splash-glow-two { right: -8%; bottom: -20%; background: #00a9c8; animation: intro-glow 5s ease-in-out infinite alternate-reverse; }
.intro-splash-content { position: relative; z-index: 1; width: min(680px, 100%); animation: intro-content-in .85s cubic-bezier(.2,.8,.2,1) both; }
.intro-splash-emblem { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 25px; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; background: linear-gradient(145deg, rgba(132,113,255,.42), rgba(43,168,204,.25)); box-shadow: 0 0 55px rgba(118,101,255,.36), inset 0 1px rgba(255,255,255,.2); transform: rotate(-8deg); }
.intro-splash-emblem span { color: white; font-size: 40px; line-height: 1; font-weight: 950; }
.intro-splash-emblem i { position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border: 3px solid #11172f; border-radius: 50%; background: #64e3c0; box-shadow: 0 0 15px rgba(100,227,192,.65); }
.intro-splash-kicker { margin: 0 0 22px; color: #aeb7d7; font-size: 11px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.intro-splash-content h2 { margin: 0 0 9px; color: #d2d4ed; font-size: clamp(16px, 2.5vw, 22px); font-weight: 650; letter-spacing: .12em; }
.intro-splash-content h1 { margin: 0; color: #fff; font-size: clamp(42px, 8vw, 78px); line-height: .98; font-weight: 950; letter-spacing: -.065em; text-shadow: 0 8px 45px rgba(0,0,0,.24); }
.intro-splash-content h1 span { color: transparent; background: linear-gradient(100deg, #b5a8ff, #7de0ed); -webkit-background-clip: text; background-clip: text; }
.intro-splash-credit { margin-top: 23px; color: #aeb7d7; font-size: 23px; letter-spacing: .035em; }
.intro-splash-credit strong { color: #fff; font-size: 29px; font-weight: 950; }
.intro-splash-progress { width: min(230px, 70%); height: 3px; margin: 35px auto 0; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.13); }
.intro-splash-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8979ff, #63dce8); transform: scaleX(0); transform-origin: left; animation: intro-progress 2.7s linear forwards; }
.intro-splash-skip { margin-top: 22px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #c5cbe2; background: rgba(255,255,255,.06); font: inherit; font-size: 11px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.intro-splash-skip:hover { color: #fff; background: rgba(255,255,255,.13); }
@keyframes intro-content-in { from { opacity: 0; transform: translateY(25px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes intro-progress { to { transform: scaleX(1); } }
@keyframes intro-orbit { to { transform: rotate(360deg); } }
@keyframes intro-glow { from { transform: translate3d(-14px, -9px, 0) scale(.92); } to { transform: translate3d(18px, 12px, 0) scale(1.12); } }
@media (max-width: 600px) {
  .intro-splash { padding: 20px; }
  .intro-splash-emblem { width: 58px; height: 58px; margin-bottom: 21px; border-radius: 19px; }
  .intro-splash-emblem span { font-size: 34px; }
  .intro-splash-kicker { max-width: 280px; margin-inline: auto; line-height: 1.6; font-size: 9px; }
  .intro-splash-credit { font-size: 20px; }
  .intro-splash-credit strong { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-splash::before, .intro-splash::after, .intro-splash-glow-one, .intro-splash-glow-two,
  .intro-splash-content, .intro-splash-progress span { animation: none !important; }
  .intro-splash { transition-duration: .15s; }
}

/* NIKA permanent/daily publication workflow and Telegram administration */
.schedule-upload-form { display: grid; gap: 12px; margin-top: 18px; }
.schedule-upload-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.schedule-version-card { display: grid; gap: 5px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); }
.comparison-result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.change-list { display: grid; gap: 9px; margin: 14px 0 18px; }
.change-card { padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid #d6a34a; border-radius: 12px; background: var(--surface-raised); }
.change-card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.change-card-heading span { color: var(--muted); font-size: 11px; }
.change-card-subject { margin-top: 7px; color: var(--ink); font-weight: 750; }
.change-card-detail { margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.status-chip.warning { color: #e6bd69; background: rgba(227,189,103,.12); }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin: 15px 0; }
.stat-card { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); }
.stat-card strong { font-size: 25px; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 11px; }
@media (max-width: 620px) {
  .change-card-heading { display: grid; gap: 4px; }
  .action-row { align-items: stretch; }
  .action-row .button { width: 100%; }
}

/* New lesson entry and public Telegram CTA */
.home-telegram-cta, .telegram-public-cta { display: flex; justify-content: center; margin-top: 18px; }
.page-heading-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.add-lesson-panel { max-width: 760px; }
.add-lesson-panel .form-stack { gap: 16px; }
.add-lesson-panel label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 520px) { .lesson-number { flex-basis: 74px; width: 74px; } .lesson-number span { font-size: 8px; } }
