:root {
  color-scheme: light;
  --ink: #20392f;
  --ink-soft: #52665a;
  --green: #577b5d;
  --green-deep: #315642;
  --green-pale: #e5efe2;
  --paper: #f7f8f2;
  --white: #fffefa;
  --line: #dfe6db;
  --muted: #7e8d80;
  --pink: #d9a7a0;
  --serif: "Amiri", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf3e9;
  --ink-soft: #c4d0c4;
  --green: #b6d3a9;
  --green-deep: #a7c99f;
  --green-pale: #314635;
  --paper: #17231c;
  --white: #223128;
  --line: #3a4b3e;
  --muted: #a2b0a3;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
  :root[data-theme="dark"] .stats-strip { border-bottom-color: var(--line); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(49, 86, 66, .1); background: rgba(247, 248, 242, .94); backdrop-filter: blur(16px); }
  :root[data-theme="dark"] .course-card { background: rgba(34, 49, 40, .92); }
.header-inner { min-height: 76px; max-width: 1240px; padding: 0 36px; margin: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 50% 43% 50% 43%; background: radial-gradient(ellipse at 35% 32%, #b7ceb0 0 24%, #739879 53%, #d0b9a3 100%); color: #fffdf3; font: 700 25px var(--serif); transform: rotate(-8deg); }
  .course-price small { font-weight: 600; }
.brand-copy { display: grid; gap: 1px; }
  .course-details-button { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); margin-top: 13px; color: var(--green-deep); background: transparent; font-size: 10px; font-weight: 600; text-align: right; cursor: pointer; }
  .course-details-button:hover { color: var(--green); }
.brand-copy strong { font: 700 20px var(--serif); line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 31px; margin-inline: auto; color: var(--ink-soft); font-size: 13px; }
  .about-band { overflow: hidden; background: var(--green-pale); }
.main-nav a, .footer-links a { transition: color .18s ease; }
  :root[data-theme="dark"] .about-art-number { color: #c3d8b8; }
.main-nav a:hover, .footer-links a:hover { color: var(--green); }
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); background: var(--white); }
  :root[data-theme="dark"] .join-band { background: #102419; }
.theme-choice { min-height: 31px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 0; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.theme-choice > span:first-child { font-size: 14px; }
  :root[data-theme="dark"] .site-footer { background: #121d16; }
.theme-choice small { color: inherit; font-size: 8px; font-weight: 600; }
.theme-choice.is-active { color: var(--green-deep); background: var(--green-pale); }
.header-actions { display: flex; align-items: center; gap: 9px; }
  .course-dialog { width: min(100% - 30px, 560px); }
  .course-dialog-kicker { display: block; color: var(--green); font-size: 10px; font-weight: 700; }
  .course-dialog-category { display: inline-flex; margin-top: 17px; color: var(--muted); font-size: 11px; }
  .course-dialog h2 { margin: 6px 0 5px; }
  .course-dialog-description { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
  .course-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 19px; }
  .course-detail-facts > div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); background: var(--white); }
  .course-detail-facts span { color: var(--muted); font-size: 9px; font-weight: 600; }
  .course-detail-facts strong { color: var(--green-deep); font: 700 17px var(--serif); }
  .course-content-block { padding: 16px 0 18px; }
  .course-content-block h3 { margin: 0 0 9px; font: 700 17px var(--serif); }
  .course-content-block h3 span { margin-inline-start: 4px; color: var(--muted); font: 500 11px var(--sans); }
  .course-content-block ul { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
  .course-content-block li { position: relative; padding-inline-start: 19px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
  .course-content-block li::before { position: absolute; inset-inline-start: 0; top: .55em; width: 7px; height: 7px; content: ""; border-radius: 50%; background: #91b38a; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { color: white; background: var(--green-deep); }
  :root[data-theme="dark"] .form-field input,
  :root[data-theme="dark"] .form-field select,
  :root[data-theme="dark"] .form-field textarea { border-color: var(--line); background: #1e2d23; }
.button-dark:hover { background: #243f30; }
:root[data-theme="dark"] .button-dark,
  :root[data-theme="dark"] .security-note { background: #302b21; }
:root[data-theme="dark"] .filter-chip.is-active { color: white; background: #496e54; }
:root[data-theme="dark"] .button-dark:hover { background: #567b61; }
    .theme-switch { justify-self: start; margin-top: 8px; }
.button-quiet { color: var(--ink-soft); background: transparent; }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { background: #ecf0e7; }
    .course-dialog { padding-top: 30px; }
    .course-detail-facts > div { padding: 9px; }
.user-greeting { max-width: 110px; overflow: hidden; color: var(--green-deep); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; font-size: 18px; }
:root[data-theme="dark"] .site-header { border-bottom-color: rgba(214, 230, 213, .11); background: rgba(23, 35, 28, .95); }

.hero { position: relative; min-height: 565px; overflow: hidden; background: #eff3e9; }
:root[data-theme="dark"] .hero { background: #1b2a20; }
:root[data-theme="dark"] .hero::before { opacity: .16; }
:root[data-theme="dark"] .paint-word { color: #b8d3a9; }
:root[data-theme="dark"] .art-script { color: #d2e1c7; text-shadow: 2px 2px 0 rgba(31, 48, 35, .75), -3px 3px 11px rgba(0, 0, 0, .28); }
:root[data-theme="dark"] .art-caption,
:root[data-theme="dark"] .art-stamp { color: #d4e1d0; }
.hero::before { position: absolute; inset: 0; content: ""; opacity: .34; background-image: radial-gradient(#7c987d 0.55px, transparent .55px); background-size: 17px 17px; mask-image: linear-gradient(90deg, transparent 0%, black 65%); }
.hero-wash { position: absolute; pointer-events: none; filter: blur(1px); }
.wash-one { width: 570px; height: 400px; right: -100px; top: -165px; opacity: .62; background: radial-gradient(ellipse at 48% 55%, rgba(171, 200, 161, .6), transparent 67%); transform: rotate(-17deg); }
.wash-two { width: 400px; height: 290px; bottom: -156px; left: -45px; opacity: .5; background: radial-gradient(ellipse at center, rgba(214, 178, 157, .43), transparent 69%); transform: rotate(17deg); }
.hero-inner { position: relative; z-index: 1; max-width: 1170px; min-height: 520px; padding: 63px 45px 45px; margin: auto; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 50px; }
.hero-copy { max-width: 580px; }
.eyebrow, .section-kicker { color: var(--green); font-size: 12px; font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #97b78c; box-shadow: 0 0 0 4px rgba(151, 183, 140, .18); }
.hero h1 { max-width: 560px; margin: 19px 0 13px; font: 700 clamp(39px, 5vw, 57px)/1.4 var(--serif); letter-spacing: 0; }
.paint-word { position: relative; display: inline-block; white-space: nowrap; color: #40694c; }
.paint-word::after { position: absolute; z-index: -1; right: -5%; bottom: 5px; left: -5%; height: 14px; content: ""; opacity: .72; background: radial-gradient(ellipse, rgba(173, 204, 161, .8) 0 43%, rgba(173, 204, 161, .24) 73%, transparent 75%); transform: rotate(-2deg); }
.hero-description { max-width: 460px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 25px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--green-deep); font-size: 13px; font-weight: 600; }
.text-link:hover { color: #70926e; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 43px; color: var(--muted); font-size: 12px; }
.note-mark { color: #b78d7e; font-size: 20px; }
.hero-art { position: relative; width: min(100%, 460px); height: 355px; justify-self: center; display: grid; place-items: center; }
.hero-art::before, .hero-art::after { position: absolute; content: ""; border-radius: 49% 51% 60% 40%; filter: blur(1px); }
.hero-art::before { inset: 48px 53px 42px 50px; opacity: .83; background: radial-gradient(ellipse at 50% 48%, rgba(194, 214, 177, .83) 0 23%, rgba(174, 201, 160, .52) 45%, rgba(174, 201, 160, .06) 73%, transparent 76%); transform: rotate(-11deg); }
.hero-art::after { inset: 115px 13px 66px 104px; opacity: .7; background: radial-gradient(ellipse, rgba(225, 190, 172, .67), transparent 68%); transform: rotate(18deg); }
.art-ring { position: absolute; z-index: 1; border: 1px solid rgba(74, 108, 73, .28); border-radius: 49% 51% 45% 55%; }
.ring-one { inset: 34px 47px 36px 48px; transform: rotate(-12deg); }
.ring-two { inset: 57px 31px 47px 67px; border-color: rgba(137, 106, 84, .28); transform: rotate(14deg); }
.art-script { position: relative; z-index: 2; padding: 0 0 20px; color: #3e664a; font: 700 124px/1 var(--serif); text-shadow: 2px 2px 0 rgba(255, 251, 232, .52), -3px 3px 11px rgba(94, 123, 77, .22); transform: rotate(-5deg); }
.art-caption { position: absolute; z-index: 3; right: 22%; bottom: 46px; color: var(--ink-soft); font: 400 20px var(--serif); }
.art-stamp { position: absolute; z-index: 3; top: 48px; left: 21px; width: 63px; height: 63px; display: grid; place-items: center; border: 1px solid rgba(93, 121, 81, .45); border-radius: 50%; color: var(--green-deep); font: 400 13px/1.35 var(--serif); text-align: center; transform: rotate(-9deg); }
.art-leaf { position: absolute; z-index: 3; width: 20px; height: 38px; border: 1px solid rgba(68, 113, 76, .54); border-radius: 100% 0 100% 0; }
.leaf-one { right: 44px; top: 93px; transform: rotate(31deg); }
.leaf-two { left: 52px; bottom: 83px; border-color: rgba(173, 117, 100, .55); transform: rotate(-47deg); }
.hero-bottom { position: absolute; right: 50%; bottom: 18px; width: min(calc(100% - 90px), 1080px); display: flex; align-items: center; gap: 13px; color: #7e8b7b; font-size: 10px; transform: translateX(50%); }
.hero-line { flex: 1; height: 1px; background: rgba(66, 98, 72, .17); }

.stats-strip { background: var(--white); border-bottom: 1px solid #e9ede5; }
.stats-inner { max-width: 1100px; min-height: 112px; padding: 17px 35px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; text-align: center; }
.stats-inner p { display: grid; gap: 4px; margin: 0; border-left: 1px solid var(--line); }
.stats-inner p:nth-last-child(2) { border-left: 0; }
.stats-inner strong { color: var(--green-deep); font: 700 25px var(--serif); }
.stats-inner p span, .stats-note { color: var(--muted); font-size: 11px; }
.stats-note { align-self: center; margin: 0; }
.section { max-width: 1170px; padding: 94px 45px; margin: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.section-heading h2, .about-copy h2, .join-band h2 { margin: 7px 0 0; font: 700 35px/1.4 var(--serif); }
.section-heading > p { max-width: 350px; margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.course-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 2px; color: var(--ink-soft); background: transparent; font-size: 11px; cursor: pointer; }
.filter-chip:hover { border-color: var(--line); }
.filter-chip.is-active { color: white; background: var(--green-deep); }
.search-box { width: 218px; height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.search-box > span:first-child { font-size: 22px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.course-card { min-height: 287px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); background: rgba(255, 254, 250, .74); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.course-card:hover { border-color: #a8bda3; box-shadow: 0 12px 27px rgba(42, 68, 46, .07); transform: translateY(-3px); }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-category { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; }
.course-category::before { width: 6px; height: 6px; content: ""; border-radius: 50%; background: #9db895; }
.course-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #e1e8dd; border-radius: 50%; color: #6a8c6b; font: 700 18px var(--serif); }
.course-card h3 { margin: 19px 0 7px; font: 700 23px/1.35 var(--serif); }
.course-card > p { min-height: 43px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.course-meta { display: flex; gap: 17px; margin: 15px 0 18px; color: var(--muted); font-size: 10px; }
.course-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 13px; border-top: 1px solid #e8ece4; margin-top: auto; }
.course-price { color: var(--green-deep); font: 700 17px var(--serif); }
.course-price small { display: block; margin-top: 1px; color: var(--muted); font: 400 9px var(--sans); }
.course-book { min-height: 36px; padding: 0 11px; font-size: 11px; }
.empty-state, .library-empty { padding: 35px 15px; color: var(--muted); text-align: center; font-size: 13px; }

.about-band { overflow: hidden; background: #e9eee4; }
.about-inner { max-width: 1170px; min-height: 380px; padding: 64px 45px; margin: auto; display: grid; grid-template-columns: .65fr 1fr .83fr; align-items: center; gap: 50px; }
.about-art { position: relative; min-height: 220px; display: grid; place-items: center; }
.about-art-circle { position: absolute; width: 184px; height: 184px; border: 1px solid rgba(68, 108, 76, .35); border-radius: 48% 52% 59% 41%; background: radial-gradient(ellipse at 40% 40%, rgba(200, 217, 185, .8), rgba(221, 196, 174, .31) 60%, transparent 72%); transform: rotate(-17deg); }
.about-art-number { position: relative; color: #486d4e; font: 700 63px/.85 var(--serif); text-align: center; transform: rotate(-7deg); }
.about-art-caption { position: absolute; right: 0; bottom: 17px; color: var(--muted); font: 18px var(--serif); }
.about-copy h2 { max-width: 420px; margin-bottom: 10px; font-size: 31px; }
.about-copy p { margin: 0 0 20px; color: var(--ink-soft); font-size: 12px; line-height: 2.1; }
.about-values { display: grid; gap: 18px; }
.about-values > div { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; column-gap: 8px; }
.about-values > div > span { color: #8b9a89; font: 13px var(--serif); }
.about-values strong { font: 700 18px var(--serif); }
.about-values p { grid-column: 2; margin: 1px 0 0; color: var(--muted); font-size: 10px; }
.library-section { padding-top: 84px; padding-bottom: 83px; }
.library-heading { margin-bottom: 27px; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.library-card { display: flex; min-height: 166px; flex-direction: column; padding: 18px; border-right: 2px solid #9ab394; background: var(--white); }
.library-card-type { color: var(--green); font-size: 10px; }
.library-card h3 { margin: 10px 0 5px; font: 700 20px/1.4 var(--serif); }
.library-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; white-space: pre-wrap; }
.library-card-footer { display: flex; flex-wrap: wrap; gap: 11px; margin-top: auto; padding-top: 14px; }
.library-card-footer a { color: var(--green-deep); font-size: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.library-attachment { max-width: 100%; max-height: 200px; margin-top: 12px; object-fit: contain; object-position: right; }
.library-video { width: 100%; max-height: 240px; margin-top: 12px; background: #20392f; }
.library-empty { min-height: 100px; padding-top: 36px; border-top: 1px solid var(--line); }

.join-band { position: relative; overflow: hidden; min-height: 233px; padding: 46px max(45px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 35px; color: white; background: #365a42; }
.join-band::after { position: absolute; width: 390px; height: 280px; left: 10%; bottom: -200px; content: ""; border-radius: 50%; background: radial-gradient(ellipse, rgba(176, 199, 151, .24), transparent 70%); }
.join-band .section-kicker { color: #c6d8b8; }
.join-band h2 { margin: 6px 0 0; font-size: 32px; }
.join-band p { margin: 4px 0 0; color: rgba(255,255,255,.74); font-size: 12px; }
.join-band .button { position: relative; z-index: 1; flex: 0 0 auto; }
.site-footer { padding: 35px max(36px, calc((100vw - 1100px) / 2)) 14px; background: #f2f4ed; }
.footer-main { display: flex; align-items: center; gap: 31px; padding-bottom: 27px; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 21px; }
.footer-brand .brand-copy strong { font-size: 17px; }
.footer-main > p { max-width: 260px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-inline-start: auto; color: var(--ink-soft); font-size: 10px; }
.footer-links button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.footer-links button:hover { color: var(--green); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; border-top: 1px solid #dfe5db; color: #8a9789; font-size: 9px; }
.prototype-note { margin: 8px 0 0; color: #9aa498; font-size: 9px; text-align: center; }

.site-dialog { position: fixed; width: min(100% - 30px, 460px); max-width: none; max-height: min(90dvh, 820px); padding: 30px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); box-shadow: 0 25px 90px rgba(31, 48, 34, .24); overflow: auto; }
.site-dialog::backdrop { background: rgba(28, 44, 34, .56); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; left: 15px; width: 33px; height: 33px; border: 1px solid var(--line); color: var(--ink-soft); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.dialog-brand { color: var(--green); font: 700 19px var(--serif); }
.site-dialog h2 { margin: 7px 0 19px; font: 700 27px var(--serif); }
.auth-tabs, .dashboard-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 19px; }
.auth-tab, .dashboard-tab { position: relative; padding: 10px 13px; border: 0; color: var(--muted); background: transparent; font-size: 12px; cursor: pointer; }
.auth-tab.is-active, .dashboard-tab.is-active { color: var(--green-deep); font-weight: 600; }
.auth-tab.is-active::after, .dashboard-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: #749572; }
.form-field { min-width: 0; display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #dce3d8; border-radius: 0; outline: none; color: var(--ink); background: #fffefa; font-size: 12px; }
.form-field textarea { min-height: 85px; resize: vertical; line-height: 1.8; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #809d7b; box-shadow: 0 0 0 2px rgba(128, 157, 123, .14); }
.site-dialog form:not(.admin-form) { display: grid; gap: 13px; }
.form-message { min-height: 16px; margin: 0; color: #9c5148; font-size: 11px; }
.form-submit { width: 100%; }
.dialog-footnote { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.dialog-footnote code { direction: ltr; unicode-bidi: isolate; color: var(--green-deep); }
.admin-dialog { width: min(100% - 30px, 440px); }
.dashboard-dialog { width: min(100% - 28px, 900px); padding: 26px 30px 30px; }
.dashboard-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.dashboard-top h2 { margin-bottom: 14px; }
.dashboard-local { margin-top: 8px; padding: 6px 9px; color: var(--green-deep); background: var(--green-pale); font-size: 10px; }
.dashboard-tabs { gap: 8px; margin-bottom: 20px; }
.dashboard-tab { padding-inline: 16px; }
.dashboard-pane-heading, .admin-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 5px 0 14px; }
.dashboard-pane-heading h3, .admin-list-heading h3 { margin: 0; font: 700 20px var(--serif); }
.dashboard-pane-heading span, .admin-list-heading span { color: var(--muted); font-size: 10px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.full-field { grid-column: 1 / -1; }
.admin-course-form { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-list-heading { margin-top: 19px; }
.admin-course-list, .admin-post-list { display: grid; gap: 8px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); }
.admin-row-copy { min-width: 0; display: grid; gap: 3px; }
.admin-row-copy strong { overflow: hidden; font: 700 15px var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.admin-row-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.delete-button { flex: 0 0 auto; min-height: 31px; padding: 0 9px; border: 1px solid #eadad5; color: #9a5549; background: #fffafa; font-size: 10px; cursor: pointer; }
.upload-field input { padding: 8px; }
.upload-field input::file-selector-button { margin-inline-end: 10px; padding: 6px 10px; border: 0; color: var(--green-deep); background: var(--green-pale); font: inherit; cursor: pointer; }
.upload-field small { color: var(--muted); font-size: 10px; }
.settings-form { max-width: 680px; }
.security-note { max-width: 680px; padding: 12px 14px; border-right: 2px solid #cda58e; margin-top: 24px; background: #f3eee4; }
.security-note strong { font: 700 15px var(--serif); }
.security-note p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.toast { position: fixed; z-index: 40; right: 50%; bottom: 22px; max-width: calc(100% - 30px); padding: 12px 18px; color: white; background: var(--green-deep); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (min-width: 1450px) { .hero { min-height: 585px; } }
@media (max-width: 940px) {
  .header-inner { gap: 21px; padding-inline: 24px; }
  .main-nav { gap: 18px; }
  .header-cta { display: none; }
  .hero-inner { gap: 15px; padding-inline: 32px; }
  .hero h1 { font-size: 47px; }
  .hero-art { transform: scale(.9); }
  .section { padding-inline: 32px; }
  .about-inner { grid-template-columns: .6fr 1fr; gap: 32px; padding-inline: 32px; }
  .about-values { grid-column: 2; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about-values > div { grid-template-columns: 1fr; }
  .about-values p { grid-column: 1; }
  .join-band { padding-inline: 32px; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 67px; padding-inline: 16px; gap: 11px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: 22px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 9px; }
  .menu-toggle { display: grid; place-items: center; margin-inline-start: auto; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 16px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px 7px; border-bottom: 1px solid #e7ebe3; font-size: 12px; }
  .main-nav a:last-child { border: 0; }
  .header-actions { gap: 0; }
  .header-actions .button { min-height: 37px; padding-inline: 9px; font-size: 10px; }
  .user-greeting { display: none; }
  .hero { min-height: unset; }
  .hero-inner { min-height: unset; padding: 47px 22px 55px; grid-template-columns: 1fr; gap: 5px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { max-width: 430px; margin-top: 14px; font-size: clamp(38px, 10vw, 49px); line-height: 1.38; }
  .hero-description { max-width: 470px; font-size: 13px; }
  .hero-actions { gap: 15px; margin-top: 21px; }
  .hero-actions .button { min-height: 41px; padding-inline: 13px; }
  .hero-note { margin-top: 25px; }
  .hero-art { position: absolute; width: 235px; height: 205px; top: auto; right: -53px; bottom: -47px; opacity: .42; transform: scale(.8); transform-origin: bottom right; }
  .art-script { font-size: 91px; }
  .art-caption, .art-stamp { display: none; }
  .hero-bottom { bottom: 12px; width: calc(100% - 44px); font-size: 8px; }
  .stats-inner { min-height: unset; grid-template-columns: repeat(2, 1fr); row-gap: 18px; padding: 20px 14px; }
  .stats-inner p { min-height: 46px; justify-content: center; }
  .stats-inner p:nth-child(2) { border-left: 0; }
  .stats-inner p:nth-last-child(2) { border-left: 1px solid var(--line); }
  .stats-inner strong { font-size: 22px; }
  .stats-note { grid-column: 1 / -1; }
  .section { padding: 62px 19px; }
  .section-heading { display: block; margin-bottom: 21px; }
  .section-heading h2, .about-copy h2 { font-size: 30px; }
  .section-heading > p { margin-top: 8px; font-size: 11px; }
  .course-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 12px; }
  .search-box { width: 100%; }
  .filter-list { gap: 4px; }
  .filter-chip { min-height: 32px; padding-inline: 9px; font-size: 10px; }
  .course-grid { grid-template-columns: 1fr; gap: 11px; }
  .course-card { min-height: 250px; padding: 18px; }
  .course-card h3 { margin-top: 12px; }
  .about-inner { padding: 48px 20px; grid-template-columns: 1fr; gap: 20px; }
  .about-art { min-height: 150px; }
  .about-art-circle { width: 140px; height: 140px; }
  .about-art-number { font-size: 52px; }
  .about-art-caption { right: calc(50% - 100px); bottom: 0; }
  .about-values { grid-column: 1; grid-template-columns: 1fr; gap: 14px; }
  .about-values > div { grid-template-columns: 28px 1fr; }
  .about-values p { grid-column: 2; }
  .library-section { padding-block: 60px; }
  .library-grid { grid-template-columns: 1fr; }
  .library-card { min-height: 145px; }
  .join-band { min-height: unset; padding: 35px 21px; align-items: flex-start; flex-direction: column; gap: 20px; }
  .join-band h2 { font-size: 28px; }
  .join-band .button { min-height: 42px; }
  .site-footer { padding: 28px 19px 14px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 13px; }
  .footer-main > p { max-width: 300px; }
  .footer-links { gap: 14px; margin-inline-start: 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .site-dialog { padding: 26px 20px 23px; }
  .dashboard-dialog { padding: 23px 17px; }
  .dashboard-top h2 { font-size: 22px; }
  .dashboard-local { font-size: 9px; }
  .dashboard-tabs { gap: 0; }
  .dashboard-tab { padding-inline: 10px; font-size: 10px; }
  .dashboard-pane-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .admin-form { grid-template-columns: 1fr; gap: 10px; }
  .admin-form > * { grid-column: 1; }
  .admin-row { padding-inline: 8px; }
  .admin-row-copy strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

:root[data-theme="dark"] .stats-strip { border-bottom-color: var(--line); }
:root[data-theme="dark"] .course-card { background: rgba(34, 49, 40, .92); }
:root[data-theme="dark"] .course-card-bottom { border-top-color: var(--line); }
:root[data-theme="dark"] .about-band { background: var(--green-pale); }
:root[data-theme="dark"] .join-band { background: #102419; }
:root[data-theme="dark"] .site-footer { background: #121d16; }
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .form-field textarea { border-color: var(--line); background: #1e2d23; }
:root[data-theme="dark"] .security-note { background: #302b21; }
:root[data-theme="dark"] .delete-button { border-color: #67433b; color: #efb0a7; background: #342422; }
.course-dialog { width: min(100% - 30px, 560px); }
.course-dialog h2 { margin: 6px 0 5px; }
.theme-switch { margin-top: 0; }

@media (max-width: 680px) {
  .theme-switch { justify-self: start; margin-top: 8px; }
  .course-dialog { padding-top: 30px; }
  .course-detail-facts > div { padding: 9px; }
}