/* Theme 8 — «Консерватория» (Conservatoire)
   Ivory · deep sapphire · classical gold — children’s music school
   Outfit + Cormorant Garamond / Fraunces */
html { scroll-behavior: smooth; }

html body.theme-skin-8,
body.theme-skin-8 {
  --ink: #1a2744;
  --ink2: #1a2744;
  --muted: #6a7388;
  --line: #e4dcc8;
  --card: #fffef9;
  --teal: #2a4a7f;
  --teal2: #c9a84c;
  --teal-deep: #1a2f5a;
  --navy: #1a2744;
  --navy2: #5a7ab0;
  --coral: #d94a2b;
  --gold: #c9a227;
  --sky: #f7f3ea;
  --shadow: 0 20px 50px rgba(26, 39, 68, .12);
  --shadow-sm: 0 8px 22px rgba(26, 39, 68, .07);
  --radius: 20px;
  --font: "Outfit", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1220px;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  font: 500 16px/1.65 var(--font) !important;
  color: var(--ink) !important;
  background:
    radial-gradient(900px 460px at 100% -10%, rgba(201, 168, 76, .22), transparent 55%),
    radial-gradient(720px 400px at -10% 20%, rgba(42, 74, 127, .12), transparent 50%),
    url('/themes/8/img/bg.png') no-repeat center top,
    linear-gradient(165deg, #faf6ee 0%, #fffef9 48%, #f7f3ea 100%) !important;
  background-size: auto, auto, 100% auto, auto !important;
}

body.theme-skin-8 *,
body.theme-skin-8 *::before,
body.theme-skin-8 *::after { box-sizing: border-box; }

body.theme-skin-8 a {
  color: var(--teal);
  text-decoration: none;
  transition: .15s ease;
}
body.theme-skin-8 a:hover { color: var(--navy); }

body.theme-skin-8 img,
body.theme-skin-8 video {
  max-width: 100%;
  height: auto;
}

/* iframes: height:auto collapses YouTube — keep 16:9 for embeds */
body.theme-skin-8 iframe {
  max-width: 100%;
}
body.theme-skin-8 iframe[src*="youtube"],
body.theme-skin-8 iframe[src*="youtu.be"],
body.theme-skin-8 iframe[src*="youtube-nocookie"],
body.theme-skin-8 iframe[src*="vimeo.com"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: 0;
  border-radius: 12px;
  margin: .75rem 0 1rem;
}

body.theme-skin-8 .t8-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.theme-skin-8 .container {
  width: min(100% - 2rem, var(--max)) !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

body.theme-skin-8 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Masthead: title + tools (avatar is in left column) ===== */
body.theme-skin-8 #header.t8-masthead,
body.theme-skin-8 .t8-masthead,
body.theme-skin-8 #header.t8-topbar,
body.theme-skin-8 .t8-topbar,
body.theme-skin-8 #header.t8-header,
body.theme-skin-8 .t8-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 254, 249, .97) 0%, rgba(255, 248, 239, .94) 100%) !important;
  backdrop-filter: blur(12px);
  border-bottom: 3px solid #2a4a7f !important;
  box-shadow: 0 10px 28px rgba(26, 39, 68, .08) !important;
  background-image: none !important;
}

body.theme-skin-8 .t8-masthead__inner,
body.theme-skin-8 .t8-topbar__inner,
body.theme-skin-8 .t8-header__bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 0;
  padding: 1rem 0 1.1rem;
}

body.theme-skin-8 .t8-masthead__copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.theme-skin-8 .t8-masthead__meta,
body.theme-skin-8 .t8-topbar__hint {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  min-width: 0;
  margin: 0 0 .4rem !important;
  font: 700 .75rem/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
body.theme-skin-8 .t8-topbar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a84c, #2a4a7f);
  box-shadow: 0 0 0 3px rgba(42, 74, 127, .18);
  flex: 0 0 auto;
}
body.theme-skin-8 .t8-topbar__sep { opacity: .5; }

body.theme-skin-8 .t8-masthead__actions,
body.theme-skin-8 .t8-topbar__actions,
body.theme-skin-8 .t8-header__actions { flex: 0 0 auto; }

body.theme-skin-8 .t8-header__title-link { color: inherit !important; text-decoration: none !important; }

body.theme-skin-8 .t8-header__title {
  margin: 0 0 .35rem !important;
  padding: 0 !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #1a2f5a !important;
  letter-spacing: -0.02em;
  background: none !important;
  border: 0 !important;
  text-shadow: none !important;
  max-width: none;
}
body.theme-skin-8 .t8-header__title::before,
body.theme-skin-8 .t8-header__title::after { content: none !important; display: none !important; }

body.theme-skin-8 .t8-header__slogan,
body.theme-skin-8 #slogan {
  margin: 0 !important;
  padding: 0 !important;
  color: #3d4f6f !important;
  font: 600 .98rem/1.45 var(--font) !important;
  background: none !important;
  display: block !important;
  max-width: 42rem;
}

/* ===== Left identity: circular medal + deep sapphire panel ===== */
body.theme-skin-8 .t8-identity {
  padding: 1.35rem 1rem 1.2rem !important;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 168, 76, .35), transparent 42%),
    linear-gradient(165deg, #1a2f5a 0%, #1a2744 55%, #152238 100%) !important;
  border: 1px solid #2a4a7f !important;
  overflow: visible !important;
  box-shadow: 0 18px 40px rgba(26, 39, 68, .28) !important;
  border-radius: 28px !important;
}

body.theme-skin-8 .t8-medal {
  position: relative;
  width: 196px;
  height: 196px;
  margin: .25rem auto 1.1rem;
}

body.theme-skin-8 .t8-medal__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
body.theme-skin-8 .t8-medal__ring--outer {
  inset: -10px;
  border: 2px dashed rgba(201, 162, 39, .55);
  animation: t8-spin-slow 28s linear infinite;
}
body.theme-skin-8 .t8-medal__ring--inner {
  inset: 4px;
  border: 3px solid rgba(201, 168, 76, .55);
  box-shadow: 0 0 0 6px rgba(42, 74, 127, .25);
}
@keyframes t8-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Corner badge on logo medal — golden note chip */
body.theme-skin-8 .t8-medal__leaf {
  position: absolute;
  right: 2px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a227, #c9a84c 55%, #2a4a7f);
  transform: none;
  box-shadow: 0 6px 14px rgba(26, 39, 68, .28);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.theme-skin-8 .t8-medal__leaf::after {
  content: "♪";
  position: static;
  inset: auto;
  height: auto;
  width: auto;
  background: none;
  border-radius: 0;
  transform: none;
  color: #fffef9;
  font-size: .95rem;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(26, 39, 68, .35);
}

body.theme-skin-8 a.t8-medal__photo,
body.theme-skin-8 .t8-medal__photo {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: block !important;
  border-radius: 50% !important;
  background-color: #f5f0e4 !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 4px solid rgba(255, 255, 255, .88) !important;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(201, 168, 76, .4);
  float: none !important;
  margin: 0 !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.theme-skin-8 a.t8-medal__photo:hover {
  transform: scale(1.04);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, .4),
    0 0 0 4px rgba(201, 162, 39, .35);
}

body.theme-skin-8 .t8-header__logo {
  width: 78px !important;
  height: 78px !important;
  min-height: 0;
  border-radius: 50% !important;
  display: block !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 3px solid #e0d4b0 !important;
}

body.theme-skin-8 .t8-identity__name {
  margin: .15rem 0 .4rem;
  padding: 0 .35rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #faf6ee;
  letter-spacing: -0.01em;
}
body.theme-skin-8 .t8-identity__badge {
  margin: 0 auto;
  display: inline-flex;
  padding: .28rem .7rem;
  border-radius: 999px;
  font: 700 .68rem/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a2744;
  background: linear-gradient(180deg, #c9a227, #c0894a);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
}

body.theme-skin-8 .t8-header__user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}
body.theme-skin-8 .t8-header__hello {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
body.theme-skin-8 .t8-header__tools {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.theme-skin-8 .t8-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: #f7f3ea;
  border: 1px solid #e4dcc8;
  color: var(--teal-deep) !important;
  box-shadow: 0 4px 10px rgba(26, 39, 68, .06);
  font-size: 1rem;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-icon:hover {
  background: #f5f0e4;
  color: #1a2f5a !important;
  transform: translateY(-1px);
  border-color: #e0d4b0;
}
body.theme-skin-8 .t8-icon.is-alert {
  background: var(--coral);
  border-color: #ff8a7a;
  color: #fff !important;
}

body.theme-skin-8 .t8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .65rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.15;
  text-decoration: none !important;
  transition: .15s ease;
}
body.theme-skin-8 .t8-btn--ghost {
  background: linear-gradient(180deg, #fffef9, #f5f0e4);
  border-color: #e4dcc8;
  color: var(--navy) !important;
  box-shadow: 0 6px 14px rgba(26, 39, 68, .08);
}
body.theme-skin-8 .t8-btn--ghost:hover {
  background: #f5f0e4;
  color: #1a2f5a !important;
  border-color: var(--gold);
}
body.theme-skin-8 .t8-btn--primary {
  background: linear-gradient(180deg, #e0d4b0, #c9a227);
  color: #1a2f5a !important;
  box-shadow: 0 10px 22px rgba(201, 162, 39, .35);
}
body.theme-skin-8 .t8-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #1a2f5a !important;
}
body.theme-skin-8 .t8-btn--sm {
  padding: .42rem .8rem;
  font-size: .82rem;
}
body.theme-skin-8 .t8-btn--manage,
body.theme-skin-8 .t8-btn.dropdown-toggle {
  background: linear-gradient(180deg, #f5f0e4, #c9a227) !important;
  color: #1a2f5a !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(201, 162, 39, .32) !important;
}
body.theme-skin-8 .t8-btn--manage:hover,
body.theme-skin-8 .t8-btn.dropdown-toggle:hover {
  filter: brightness(1.05);
  color: #1a2f5a !important;
}
body.theme-skin-8 .t8-btn--danger {
  background: linear-gradient(180deg, #f07858, #d94a2b) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(232, 93, 76, .28) !important;
}
body.theme-skin-8 .t8-btn--danger:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

/* Page heading + admin toolbar */
body.theme-skin-8 .t8-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .9rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(42, 74, 127, .12), rgba(18, 58, 82, .08)),
    #faf6ee;
  border: 1px solid #e4dcc8;
}
body.theme-skin-8 .t8-page__head--compact {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
}
body.theme-skin-8 .t8-page__kicker {
  margin: 0 0 .25rem !important;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep) !important;
}
body.theme-skin-8 .t8-page__title {
  margin: 0 !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  line-height: 1.25 !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
body.theme-skin-8 .t8-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}
body.theme-skin-8 .t8-toolbar__hint {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  background: #fff;
  border: 1px dashed #b7d8d2;
  border-radius: 999px;
  padding: .4rem .85rem;
}

/* Admin dropdown block */
body.theme-skin-8 .t8-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
}
body.theme-skin-8 .t8-admin .dropdown-menu {
  min-width: 220px;
}
body.theme-skin-8 .t8-admin .dropdown-menu > li > a i {
  width: 1.1rem;
  margin-right: .35rem;
  color: var(--teal);
}
body.theme-skin-8 .t8-admin .dropdown-menu > li.divider {
  height: 1px;
  margin: .35rem 0;
  overflow: hidden;
  background: #e2eef3;
  list-style: none;
}
body.theme-skin-8 .t8-admin__danger,
body.theme-skin-8 .t8-admin .delete {
  color: #b53a22 !important;
}
body.theme-skin-8 .t8-admin__danger:hover,
body.theme-skin-8 .t8-admin .delete:hover {
  background: #fff1ec !important;
  color: #9a321c !important;
}
body.theme-skin-8 .t8-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 800;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: #f7f3ea;
  color: var(--teal-deep);
  border: 1px solid #e0d4b0;
  white-space: nowrap;
}
body.theme-skin-8 .t8-status--hidden {
  background: #fff1ec;
  color: #9a321c;
  border-color: #ffd0c4;
}
body.theme-skin-8 .t8-status--link {
  background: #f7f3ea;
  color: #1a2f5a;
  border-color: #e0d4b0;
}
body.theme-skin-8 .t8-status--visible {
  background: #f7f3ea;
  color: var(--teal-deep);
  border-color: #e0d4b0;
}

body.theme-skin-8 #header .logo,
body.theme-skin-8 #header .entrance,
body.theme-skin-8 #header .head-img,
body.theme-skin-8 #header .head-content,
body.theme-skin-8 #header .outs {
  display: none !important;
}

/* ===== Floating glass pill nav (distinct from t12 ticket strip) ===== */
body.theme-skin-8 .t8-nav,
body.theme-skin-8 .teacher-menu {
  margin: .65rem 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  width: 100% !important;
  position: relative;
  z-index: 3;
}

body.theme-skin-8 .t8-nav__inner,
body.theme-skin-8 .teacher-menu .container,
body.theme-skin-8 .t8-pills__inner,
body.theme-skin-8 .t8-ticket__inner {
  position: relative !important;
  background: rgba(251, 253, 250, .78) !important;
  backdrop-filter: blur(12px);
  border: 1px solid #e4dcc8 !important;
  border-radius: 999px !important;
  box-shadow:
    0 14px 34px rgba(26, 39, 68, .1),
    inset 0 1px 0 rgba(255, 255, 255, .75) !important;
  padding: .35rem .45rem !important;
  width: min(100% - 2rem, var(--max)) !important;
  max-width: var(--max) !important;
}

body.theme-skin-8 .t8-ticket__notch { display: none !important; }
body.theme-skin-8 .t8-ticket__inner::before { display: none !important; }

body.theme-skin-8 .t8-nav__toggle { display: none !important; }

body.theme-skin-8 .t8-nav__list,
body.theme-skin-8 .teacher-menu .container > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  max-width: none !important;
  font-size: inherit !important;
}

body.theme-skin-8 .t8-nav__list > li,
body.theme-skin-8 .teacher-menu .container > ul > li {
  position: relative !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.theme-skin-8 .t8-nav__list > li > a,
body.theme-skin-8 .teacher-menu .container > ul > li > a {
  display: block !important;
  padding: .7rem 1.05rem !important;
  border-radius: 12px !important;
  color: #e8f7f5 !important;
  font: 800 .9rem/1.25 var(--font) !important;
  text-decoration: none !important;
  background: transparent !important;
  white-space: nowrap;
}

body.theme-skin-8 .t8-nav__list > li > a:hover,
body.theme-skin-8 .teacher-menu .container > ul > li:hover > a {
  background: linear-gradient(180deg, #2a4a7f, #1a2f5a) !important;
  color: #fff !important;
  text-decoration: none !important;
}

body.theme-skin-8 .teacher-menu ul ul,
body.theme-skin-8 .t8-nav__list ul {
  display: none !important;
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 4px) !important;
  z-index: 50 !important;
  min-width: 220px !important;
  width: auto !important;
  margin: 0 !important;
  padding: .4rem !important;
  background: #fff !important;
  border: 2px solid #e0d4b0 !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow) !important;
  list-style: none !important;
}

body.theme-skin-8 .teacher-menu li:hover > ul,
body.theme-skin-8 .t8-nav__list li:hover > ul {
  display: block !important;
}

body.theme-skin-8 .teacher-menu ul ul a,
body.theme-skin-8 .t8-nav__list ul a {
  display: block !important;
  padding: .55rem .75rem !important;
  border-radius: 10px !important;
  color: var(--ink2) !important;
  font: 700 .88rem/1.3 var(--font) !important;
  background: transparent !important;
}

body.theme-skin-8 .teacher-menu ul ul a:hover,
body.theme-skin-8 .t8-nav__list ul a:hover {
  background: #e8faf7 !important;
  color: var(--teal) !important;
}

/* ===== 3-column shell: left identity+menu | main | right widgets ===== */
body.theme-skin-8 .t8-stage,
body.theme-skin-8 .t8-shell {
  width: min(100% - 2rem, var(--max));
  margin: 1.25rem auto 2.25rem;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) 250px !important;
  gap: 1.1rem !important;
  align-items: start !important;
  flex: 1 0 auto;
  position: relative;
}

body.theme-skin-8 .t8-stage__main-col,
body.theme-skin-8 .t8-main {
  min-width: 0;
}

body.theme-skin-8 .t8-side--left,
body.theme-skin-8 .t8-side--right,
body.theme-skin-8 .t8-rail {
  display: grid;
  gap: .9rem;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Leaf corner accent on main card (not t12 paper fold) */
body.theme-skin-8 .t8-paper,
body.theme-skin-8 .t8-leaf-card {
  position: relative;
  overflow: hidden;
}
body.theme-skin-8 .t8-paper__fold { display: none; }
body.theme-skin-8 .t8-leaf-card__mark {
  position: absolute;
  top: -6px;
  right: 14px;
  width: 36px;
  height: 48px;
  background: linear-gradient(160deg, #c9a84c, #2a4a7f);
  border-radius: 0 0 55% 55% / 0 0 70% 70%;
  transform: rotate(12deg);
  box-shadow: 0 8px 16px rgba(26, 39, 68, .18);
  z-index: 2;
  pointer-events: none;
  opacity: .9;
}
body.theme-skin-8 .t8-leaf-card__mark::before {
  content: "";
  position: absolute;
  left: 48%;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: rgba(255, 255, 255, .4);
  border-radius: 2px;
}
body.theme-skin-8 .t8-card--main {
  border-left: 5px solid #2a4a7f !important;
}

body.theme-skin-8 .t8-card {
  background: var(--card) !important;
  border: 1px solid #e4dcc8 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 1.05rem !important;
}

body.theme-skin-8 .t8-card--main {
  padding: 1.45rem 1.55rem 1.7rem !important;
  min-height: 520px !important;
  border-top: 5px solid var(--teal2) !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfefe 100%) !important;
}

body.theme-skin-8 .t8-card__head {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff !important;
  margin: -1.05rem -1.05rem .9rem;
  padding: .95rem 1.05rem;
  background: linear-gradient(90deg, #2a4a7f, #c9a84c) !important;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 0 -3px 0 rgba(201, 162, 39, .85);
}

/* Vertical menu */
body.theme-skin-8 .t8-vmenu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.theme-skin-8 .t8-vmenu li {
  list-style: none !important;
  margin: 0 0 .2rem !important;
  padding: 0 !important;
  position: relative;
}
body.theme-skin-8 .t8-vmenu > ul > li > a {
  display: block !important;
  padding: .72rem .85rem !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  font: 700 .93rem/1.35 var(--font) !important;
  background: #faf6ee !important;
  border: 1px solid #e4dcc8 !important;
  border-left: 4px solid #c9a84c !important;
}
body.theme-skin-8 .t8-vmenu > ul > li > a:hover,
body.theme-skin-8 .t8-vmenu li.active > a {
  background: linear-gradient(90deg, #f5f0e4, #f7f3ea) !important;
  color: var(--teal-deep) !important;
  border-color: #e0d4b0 !important;
  border-left-color: var(--coral) !important;
}
body.theme-skin-8 .t8-vmenu ul ul {
  display: none !important;
  position: static !important;
  margin: .15rem 0 .35rem .35rem !important;
  padding: .15rem 0 .15rem .55rem !important;
  border-left: 3px solid #e0d4b0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
}
body.theme-skin-8 .t8-vmenu li:hover > ul { display: block !important; }
body.theme-skin-8 .t8-vmenu ul ul a {
  display: block !important;
  padding: .42rem .6rem !important;
  border-radius: 10px !important;
  color: var(--muted) !important;
  font: 600 .86rem/1.3 var(--font) !important;
}
body.theme-skin-8 .t8-vmenu ul ul a:hover {
  background: #f0fdfa !important;
  color: var(--teal) !important;
}

body.theme-skin-8 .t8-polls {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

/* Search */
body.theme-skin-8 .t8-search {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: .45rem !important;
  margin: 0 !important;
  width: 100% !important;
}
body.theme-skin-8 .t8-search input[type="text"] {
  width: 100% !important;
  max-width: none !important;
  border: 2px solid #e0d4b0 !important;
  border-radius: 12px !important;
  padding: .75rem .9rem !important;
  background: #f4fbfd !important;
  font: 600 .92rem/1.3 var(--font) !important;
  color: var(--ink) !important;
  height: auto !important;
}
body.theme-skin-8 .t8-search input[type="text"]:focus {
  outline: none !important;
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .22) !important;
  background: #fff !important;
}
body.theme-skin-8 .t8-search button {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #5a7ab0, #2a4a7f) !important;
  color: #fff !important;
  font: 800 .9rem/1.2 var(--font) !important;
  padding: .75rem 1rem !important;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(42, 74, 127, .32);
  height: auto !important;
  width: auto !important;
}

/* Content */
body.theme-skin-8 .t8-page { width: 100%; }
body.theme-skin-8 .breadcrumb {
  background: linear-gradient(90deg, #f7f3ea, #f0f7fb) !important;
  border: 1px solid #c5e6df !important;
  border-radius: 12px !important;
  padding: .65rem .95rem !important;
  margin: 0 0 1.15rem !important;
  font-size: .86rem !important;
  font-weight: 600;
  list-style: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
}
body.theme-skin-8 .breadcrumb > li { display: inline; }
body.theme-skin-8 .breadcrumb > li + li:before {
  content: "›";
  color: #7aa0b0;
  padding: 0 .45rem;
}
body.theme-skin-8 .breadcrumb a { color: var(--teal); font-weight: 700; }
body.theme-skin-8 .breadcrumb .active { color: var(--muted); }

body.theme-skin-8 .t8-article__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  padding-bottom: .9rem;
  border-bottom: 3px solid #f5f0e4;
}
body.theme-skin-8 .t8-article__title {
  margin: 0 !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.45rem, 2.6vw, 2rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em;
  color: var(--navy) !important;
  font-weight: 700 !important;
  text-align: left !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
body.theme-skin-8 .t8-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .95rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 1.05rem;
}
body.theme-skin-8 .t8-article__meta i { color: var(--teal); margin-right: .25rem; }

body.theme-skin-8 .t8-article__body.prose,
body.theme-skin-8 .prose {
  color: #243846 !important;
  font-size: 1.05rem !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere;
}
body.theme-skin-8 .prose p {
  margin: 0 0 .95rem !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
}
body.theme-skin-8 .prose h2,
body.theme-skin-8 .prose h3,
body.theme-skin-8 .prose h4 {
  font-family: var(--serif) !important;
  color: var(--navy) !important;
  margin: 1.4rem 0 .55rem !important;
  line-height: 1.25 !important;
  text-align: left !important;
  background: none !important;
}
body.theme-skin-8 .prose h2 { font-size: 1.4rem !important; }
body.theme-skin-8 .prose h3 { font-size: 1.2rem !important; }
body.theme-skin-8 .prose img {
  border-radius: 14px;
  margin: .55rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
body.theme-skin-8 .prose a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-8 .prose ul,
body.theme-skin-8 .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
body.theme-skin-8 .prose li { margin-bottom: .35rem; }
body.theme-skin-8 .prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: .85rem 0 1.1rem;
  background: #fff;
}
body.theme-skin-8 .prose td,
body.theme-skin-8 .prose th {
  border: 1px solid var(--line);
  padding: .55rem .7rem;
}

body.theme-skin-8 .t8-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
body.theme-skin-8 .t8-gallery img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #e0d4b0;
  box-shadow: var(--shadow-sm);
}

/* Photo galleries list + album */
body.theme-skin-8 .t8-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.05rem;
}
body.theme-skin-8 .t8-album-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4dcc8;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  min-height: 100%;
}
body.theme-skin-8 .t8-album-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #e0d4b0;
  color: inherit !important;
}
body.theme-skin-8 .t8-album-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(145deg, #f7f3ea, #e8f1f6);
  overflow: hidden;
}
body.theme-skin-8 .t8-album-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-skin-8 .t8-album-card__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--teal-deep);
  opacity: .55;
}
body.theme-skin-8 .t8-album-card__count {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: rgba(26, 39, 68, .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
body.theme-skin-8 .t8-album-card__body {
  padding: .95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
body.theme-skin-8 .t8-album-card__title {
  margin: 0 !important;
  font-family: var(--serif) !important;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
body.theme-skin-8 .t8-album-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
body.theme-skin-8 .t8-album-card__meta i {
  color: var(--teal);
  margin-right: .2rem;
}
body.theme-skin-8 .t8-album-card__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
  margin-top: .25rem;
}
body.theme-skin-8 .t8-album-card__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d7e7ee;
}

body.theme-skin-8 .t8-album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  align-items: center;
  margin: 0 0 1.1rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  background: linear-gradient(90deg, #f7f3ea, #f0f7fb);
  border: 1px solid #c5e6df;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
body.theme-skin-8 .t8-album-meta i {
  color: var(--teal);
  margin-right: .25rem;
}
body.theme-skin-8 .t8-album-desc {
  margin-bottom: 1.25rem !important;
}
body.theme-skin-8 .t8-page__kicker a {
  color: inherit !important;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-page__kicker a:hover {
  color: var(--navy) !important;
  text-decoration: underline !important;
}

body.theme-skin-8 .t8-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
body.theme-skin-8 .t8-photo-grid__item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #e4dcc8;
  box-shadow: var(--shadow-sm);
  background: #f7f3ea;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.theme-skin-8 .t8-photo-grid__item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: #c9a84c;
}
body.theme-skin-8 .t8-photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  body.theme-skin-8 .t8-albums {
    grid-template-columns: 1fr;
  }
  body.theme-skin-8 .t8-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Feedback forms (treatment / guestbook / reviews) ===== */
body.theme-skin-8 .t8-intro {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf6ee, #fff);
  border: 1px solid #e4dcc8;
}
body.theme-skin-8 .t8-empty--compact {
  margin-bottom: 1.25rem;
  padding: 1.6rem 1rem;
}

body.theme-skin-8 .t8-form-card {
  margin-top: 1.35rem;
  border-radius: 20px;
  border: 1px solid #e4dcc8;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
body.theme-skin-8 .t8-form-card__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(115deg, #1a2744 0%, #2a4a7f 60%, #c9a84c 100%);
  color: #fff;
}
body.theme-skin-8 .t8-form-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  flex: 0 0 auto;
}
body.theme-skin-8 .t8-form-card__title {
  margin: 0 0 .2rem !important;
  font: 700 1.15rem/1.25 var(--serif) !important;
  color: #fff !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
body.theme-skin-8 .t8-form-card__lead {
  margin: 0 !important;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88) !important;
}
body.theme-skin-8 .t8-form {
  padding: 1.2rem 1.25rem 1.35rem;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.theme-skin-8 .t8-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .95rem 1rem;
}
body.theme-skin-8 .t8-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
body.theme-skin-8 .t8-field--full { grid-column: 1 / -1; }
body.theme-skin-8 .t8-label {
  font-size: .88rem;
  font-weight: 800;
  color: var(--ink2);
  margin: 0;
}
body.theme-skin-8 .t8-req { color: #d94a2b; }
body.theme-skin-8 .t8-input,
body.theme-skin-8 .t8-form .form-control,
body.theme-skin-8 .t8-form input[type="text"],
body.theme-skin-8 .t8-form input[type="email"],
body.theme-skin-8 .t8-form textarea {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: .8rem .95rem !important;
  border: 2px solid #e4dcc8 !important;
  border-radius: 12px !important;
  background: #f7fbfc !important;
  font: 600 .95rem/1.4 var(--font) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}
body.theme-skin-8 .t8-textarea,
body.theme-skin-8 .t8-form textarea {
  min-height: 140px !important;
  resize: vertical;
}
body.theme-skin-8 .t8-input:focus,
body.theme-skin-8 .t8-form .form-control:focus,
body.theme-skin-8 .t8-form input:focus,
body.theme-skin-8 .t8-form textarea:focus {
  outline: none !important;
  border-color: #c9a84c !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .18) !important;
}
body.theme-skin-8 .t8-captcha {
  padding: .65rem .75rem;
  border-radius: 12px;
  background: #faf6ee;
  border: 1px dashed #e0d4b0;
  overflow-x: auto;
}
body.theme-skin-8 .t8-captcha iframe,
body.theme-skin-8 .t8-captcha > div {
  max-width: 100%;
}
body.theme-skin-8 .t8-check {
  display: flex !important;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 !important;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink2);
  cursor: pointer;
  line-height: 1.45;
}
body.theme-skin-8 .t8-check input {
  width: 1.1rem !important;
  height: 1.1rem !important;
  margin: .15rem 0 0 !important;
  flex: 0 0 auto;
  accent-color: #2a4a7f;
}
body.theme-skin-8 .t8-check a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-8 .t8-form__actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
body.theme-skin-8 .t8-form__submit {
  min-width: 200px;
  padding: .85rem 1.35rem !important;
}

/* Message list cards */
body.theme-skin-8 .t8-msg-list {
  display: grid;
  gap: .9rem;
  margin: 0 0 1.25rem;
}
body.theme-skin-8 .t8-msg {
  border: 1px solid #e4dcc8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fcfb);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}
body.theme-skin-8 .t8-msg--review {
  border-left: 4px solid #c9a227;
}
body.theme-skin-8 .t8-msg--reply {
  margin-top: .7rem;
  background: #faf6ee;
  border-color: #e0d4b0;
  border-left: 4px solid #c9a84c;
  box-shadow: none;
}
body.theme-skin-8 .t8-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .85rem;
  margin-bottom: .65rem;
}
body.theme-skin-8 .t8-msg__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #2a4a7f, #1a2f5a);
  flex: 0 0 auto;
}
body.theme-skin-8 .t8-msg__avatar--gold {
  background: linear-gradient(145deg, #c9a227, #c8870e);
  color: #1a2f5a;
}
body.theme-skin-8 .t8-msg__avatar--teal {
  background: linear-gradient(145deg, #c9a84c, #2a4a7f);
}
body.theme-skin-8 .t8-msg__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .65rem;
  flex: 1 1 auto;
  min-width: 0;
}
body.theme-skin-8 .t8-msg__name {
  font-size: .98rem;
  color: var(--navy);
}
body.theme-skin-8 .t8-msg__date {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
body.theme-skin-8 .t8-msg__badge {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #f5f0e4;
  color: var(--teal-deep);
}
body.theme-skin-8 .t8-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin-left: auto;
}
body.theme-skin-8 .t8-msg__link {
  font-size: .82rem;
  font-weight: 800;
  color: var(--teal) !important;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-msg__link:hover { color: var(--navy) !important; }
body.theme-skin-8 .t8-msg__link--danger { color: #b53a22 !important; }
body.theme-skin-8 .t8-msg__body {
  color: #2b3d4b !important;
  font-size: .98rem !important;
  line-height: 1.6 !important;
}
body.theme-skin-8 .t8-msg__replies {
  margin-top: .35rem;
  padding-left: .35rem;
}

/* Kill legacy well / horizontal form leftovers on feedback pages */
body.theme-skin-8 .well,
body.theme-skin-8 #feedback-form.well {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.theme-skin-8 .t8-msg--faq {
  border-left: 4px solid #2a4a7f;
}

/* ===== Delete confirmation modals ===== */
body.theme-skin-8 .t8-delete-modal.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  overflow: auto;
  background: rgba(26, 39, 68, .55);
  padding: 1rem;
}
body.theme-skin-8 .t8-delete-modal.in,
body.theme-skin-8 .t8-delete-modal.show {
  display: block !important;
}
body.theme-skin-8 .t8-delete-dialog.modal-dialog {
  width: min(92vw, 420px) !important;
  margin: 14vh auto !important;
}
body.theme-skin-8 .t8-delete.modal-content {
  border: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(26, 39, 68, .38) !important;
  background: #fff !important;
}
body.theme-skin-8 .t8-delete__hero {
  position: relative;
  padding: 1.45rem 1.3rem 1.15rem;
  text-align: center;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(255, 200, 180, .25), transparent 55%),
    linear-gradient(125deg, #7a1f18 0%, #b53a22 55%, #d94a2b 100%);
  color: #fff;
}
body.theme-skin-8 .t8-delete__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto .75rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}
body.theme-skin-8 .t8-delete__title,
body.theme-skin-8 .t8-delete .modal-title {
  margin: 0 !important;
  padding: 0 2rem !important;
  color: #fff !important;
  font: 700 1.3rem/1.25 var(--serif) !important;
  background: none !important;
  border: 0 !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-delete__close.close {
  position: absolute !important;
  top: .65rem !important;
  right: .75rem !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  cursor: pointer;
  display: grid !important;
  place-items: center !important;
  float: none !important;
  text-shadow: none !important;
}
body.theme-skin-8 .t8-delete__close:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-8 .t8-delete__body.modal-body {
  padding: 1.2rem 1.4rem .35rem !important;
  color: var(--ink2) !important;
  font: 600 1rem/1.55 var(--font) !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-delete__footer.modal-footer {
  border: 0 !important;
  padding: .85rem 1.25rem 1.35rem !important;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: .55rem;
  background: transparent !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-delete__footer .t8-btn {
  min-width: 132px;
}
body.theme-skin-8 .t8-delete__footer .t8-btn--ghost {
  background: #fff !important;
  border: 1px solid #e4dcc8 !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}
body.theme-skin-8 .t8-delete__footer .t8-btn--ghost:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

@media (max-width: 720px) {
  body.theme-skin-8 .t8-form__grid {
    grid-template-columns: 1fr;
  }
  body.theme-skin-8 .t8-msg__actions {
    width: 100%;
    margin-left: 0;
  }
  body.theme-skin-8 .t8-form__submit {
    width: 100%;
  }
}
body.theme-skin-8 .t8-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

body.theme-skin-8 .t8-empty {
  text-align: center;
  padding: 2.8rem 1.2rem;
  color: var(--muted);
  background: linear-gradient(180deg, #faf6ee, #eef6f8);
  border: 2px dashed #e0d4b0;
  border-radius: 16px;
}
body.theme-skin-8 .t8-empty h2 {
  margin: 0 0 .45rem;
  color: var(--ink);
  font-family: var(--serif);
}
body.theme-skin-8 .t8-empty p {
  margin: 0 auto;
  max-width: 36rem;
}

/* Feed */
body.theme-skin-8 .t8-feed { margin-top: 1.6rem; }
body.theme-skin-8 .t8-feed__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 .9rem;
  color: var(--navy);
  padding-bottom: .5rem;
  border-bottom: 3px solid #c9a84c;
  display: inline-block;
}
body.theme-skin-8 .t8-feed__list { display: grid; gap: 1rem; }
body.theme-skin-8 .t8-feed-item {
  border: 1px solid #e4dcc8;
  border-left: 5px solid #c9a84c;
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1rem;
  background: linear-gradient(180deg, #ffffff, #f5fbfb);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: visible;
}
body.theme-skin-8 .t8-feed-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-left-color: var(--coral);
}
body.theme-skin-8 .t8-feed-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem .9rem;
  margin-bottom: .65rem;
}
body.theme-skin-8 .t8-feed-item__title {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--serif);
  line-height: 1.3;
  flex: 1 1 200px;
  min-width: 0;
}
body.theme-skin-8 .t8-feed-item__title a { color: var(--ink); font-weight: 700; }
body.theme-skin-8 .t8-feed-item__title a:hover { color: var(--teal); }
body.theme-skin-8 .t8-feed-item__body {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
body.theme-skin-8 .t8-feed-item__img {
  width: 124px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
body.theme-skin-8 .t8-feed-item__text {
  color: #3d5160;
  font-size: .96rem;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}
body.theme-skin-8 .t8-feed-item__text iframe {
  max-width: 100%;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: 12px;
}
body.theme-skin-8 .t8-feed-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px dashed #e4dcc8;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
body.theme-skin-8 .t8-feed-item__meta i {
  color: var(--teal);
  margin-right: .25rem;
}

body.theme-skin-8 .t8-pager {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
body.theme-skin-8 .t8-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.theme-skin-8 .t8-pager .pagination > li > a,
body.theme-skin-8 .t8-pager .pagination > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .7rem;
  border-radius: 10px;
  border: 1px solid #e4dcc8;
  background: #fff;
  color: var(--navy) !important;
  font-weight: 700;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-pager .pagination > .active > span,
body.theme-skin-8 .t8-pager .pagination > .active > a {
  background: linear-gradient(180deg, #5a7ab0, #2a4a7f);
  border-color: transparent;
  color: #fff !important;
}
body.theme-skin-8 .t8-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto .85rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--teal-deep);
  background: linear-gradient(145deg, #f5f0e4, #e8f3f8);
  border: 1px solid #e0d4b0;
}

/* Bootstrap remnants */
body.theme-skin-8 .panel {
  border: 1px solid #e4dcc8 !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  background: #fff !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}
body.theme-skin-8 .panel-heading {
  background: linear-gradient(90deg, #2a4a7f, #c9a84c) !important;
  border-bottom: 0 !important;
  padding: .9rem 1rem !important;
  color: #fff !important;
}
body.theme-skin-8 .panel-heading h3,
body.theme-skin-8 .panel-heading a {
  color: #fff !important;
}
body.theme-skin-8 .panel-body {
  color: #2b3d4b !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
body.theme-skin-8 .panel-footer {
  background: #faf6ee !important;
  border-top: 1px solid #e4dcc8 !important;
}
body.theme-skin-8 .panel h3,
body.theme-skin-8 .featurette-heading {
  font-family: var(--serif) !important;
  color: var(--navy) !important;
  margin: 0 0 .5rem !important;
}

/* Calendar + links (self-contained, no legacy style.css) */
body.theme-skin-8 .t8-calendar {
  padding: 0 !important;
  overflow: hidden;
}
body.theme-skin-8 .t8-calendar .calendar,
body.theme-skin-8 .calendar {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  font-family: var(--font) !important;
}
body.theme-skin-8 .calendar .block-header {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .45rem .65rem !important;
  margin: 0 0 .85rem !important;
  padding: .9rem 1rem 2.35rem !important;
  background: linear-gradient(100deg, #2a4a7f, #c9a84c 55%, #e67400) !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
body.theme-skin-8 .calendar .block-header p {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font: 800 .95rem/1.2 var(--font) !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: 1 1 auto;
  background: none !important;
}
body.theme-skin-8 .calendar .month {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  padding: .28rem .65rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  font: 800 .82rem/1.2 var(--font) !important;
  text-decoration: none !important;
  opacity: 1 !important;
  white-space: nowrap;
}
body.theme-skin-8 .calendar .month:hover {
  background: rgba(255, 255, 255, .3) !important;
  color: #fff !important;
}
body.theme-skin-8 .calendar-prev,
body.theme-skin-8 .calendar-next {
  position: absolute !important;
  bottom: .7rem !important;
  width: 34px !important;
  height: 28px !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .14) !important;
  background-image: none !important;
  opacity: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
}
body.theme-skin-8 .calendar-prev { right: 3.1rem !important; }
body.theme-skin-8 .calendar-next { right: .85rem !important; }
body.theme-skin-8 .calendar-prev::before { content: "‹"; font-weight: 900; }
body.theme-skin-8 .calendar-next::before { content: "›"; font-weight: 900; }
body.theme-skin-8 .calendar-prev:hover,
body.theme-skin-8 .calendar-next:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-8 .calendar .out,
body.theme-skin-8 .calendar .in {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 1rem 1rem !important;
  float: none !important;
  box-sizing: border-box !important;
}
body.theme-skin-8 .calendar .days {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: .28rem !important;
  margin: 0 0 .45rem !important;
  text-align: center !important;
  float: none !important;
}
body.theme-skin-8 .calendar .days .cell {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  display: block !important;
}
body.theme-skin-8 .calendar .days .cell p {
  margin: 0 !important;
  padding: .2rem 0 !important;
  color: var(--teal-deep) !important;
  font: 800 .72rem/1.2 var(--font) !important;
  text-transform: uppercase;
  letter-spacing: .02em;
}
body.theme-skin-8 .calendar .list {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: .28rem !important;
  margin: 0 !important;
  float: none !important;
  text-align: center !important;
}
body.theme-skin-8 .calendar .list:after,
body.theme-skin-8 .calendar .clear {
  display: none !important;
}
body.theme-skin-8 .calendar .list .cell {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  vertical-align: top !important;
  aspect-ratio: 1 / 1;
  min-width: 0 !important;
}
body.theme-skin-8 .calendar .numb {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  background: #f7f3ea !important;
  color: var(--ink2) !important;
  font: 700 .78rem/1 var(--font) !important;
  box-sizing: border-box !important;
}
body.theme-skin-8 .calendar .cell.today > .numb {
  background: #f7f3ea !important;
  box-shadow: inset 0 0 0 2px #c9a227 !important;
  color: #1a2f5a !important;
}
body.theme-skin-8 .calendar .event {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(160deg, #5a7ab0, #2a4a7f) !important;
  color: #fff !important;
  font: 800 .78rem/1 var(--font) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(42, 74, 127, .28);
  transition: transform .12s ease, filter .12s ease;
}
body.theme-skin-8 .calendar .event:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
  color: #fff !important;
}

body.theme-skin-8 .t8-links ul,
body.theme-skin-8 .t8-links .useful-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.theme-skin-8 .t8-links a {
  display: block;
  padding: .5rem .65rem;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink2) !important;
  border: 1px solid transparent;
}
body.theme-skin-8 .t8-links a:hover {
  background: #e8faf7;
  border-color: #e0d4b0;
  color: var(--teal) !important;
}

/* Footer */
body.theme-skin-8 .t8-footer {
  margin-top: auto !important;
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(201, 168, 76, .18), transparent 60%),
    linear-gradient(120deg, #1a2744, #1a2744 48%, #1a2744) !important;
  color: #b7c9d4 !important;
  padding: 1.75rem 0 !important;
  border-top: 4px solid var(--gold) !important;
  width: 100% !important;
  float: none !important;
}
body.theme-skin-8 .t8-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
body.theme-skin-8 .t8-footer__brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}
body.theme-skin-8 .t8-footer__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1a2744;
  background: linear-gradient(145deg, #c9a227, #c9a84c);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  flex: 0 0 auto;
}
body.theme-skin-8 .t8-footer__copy {
  margin: 0;
  min-width: 0;
}
body.theme-skin-8 .t8-footer__line {
  margin: 0 0 .2rem !important;
  font-size: .95rem;
  font-weight: 600;
  color: #d5e4ec !important;
  line-height: 1.4;
}
body.theme-skin-8 .t8-footer a {
  color: #e0d4b0 !important;
  font-weight: 800;
  text-decoration: none;
}
body.theme-skin-8 .t8-footer a:hover {
  color: #c9a227 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-8 .t8-footer__tag {
  margin: 0 !important;
  font-size: .8rem;
  font-weight: 600;
  color: #8aa3b2 !important;
  letter-spacing: .02em;
}
body.theme-skin-8 .t8-footer__counters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  opacity: .92;
}

/* Cookie / personal-data banner */
body.theme-skin-8 .personal-data-processing-agreement-widget,
body.theme-skin-8 .t8-cookie {
  display: none;
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000 !important;
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none;
}
body.theme-skin-8 .t8-cookie .wrapper,
body.theme-skin-8 .t8-cookie__inner {
  pointer-events: auto;
  width: min(100% - 1.5rem, 1040px) !important;
  max-width: 1040px !important;
  margin: 0 auto 1.1rem !important;
  padding: 1rem 1.15rem !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1rem;
  background: linear-gradient(120deg, #1a2744 0%, #2a4a7f 70%, #c9a84c 100%) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(26, 39, 68, .35) !important;
  height: auto !important;
  justify-content: flex-start !important;
}
body.theme-skin-8 .t8-cookie__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 1.15rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .22);
}
body.theme-skin-8 .t8-cookie .acceptance-text,
body.theme-skin-8 .t8-cookie__text {
  flex: 1 1 220px;
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
  color: #f2fbfa !important;
  font: 600 .92rem/1.45 var(--font) !important;
}
body.theme-skin-8 .t8-cookie .acceptance-text a,
body.theme-skin-8 .t8-cookie__text a {
  color: #f6e27a !important;
  font-weight: 800 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-8 .t8-cookie .acceptance-text a:hover {
  color: #fff !important;
}
body.theme-skin-8 .t8-cookie .acceptance-button,
body.theme-skin-8 .t8-cookie__btn {
  flex: 0 0 auto;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: .75rem 1.35rem !important;
  font: 800 .9rem/1.1 var(--font) !important;
  color: #1a2744 !important;
  background: linear-gradient(180deg, #f5f0e4, #c9a227) !important;
  box-shadow: 0 10px 22px rgba(201, 162, 39, .35) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
body.theme-skin-8 .t8-cookie .acceptance-button:hover,
body.theme-skin-8 .t8-cookie__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===== Auth popups (login / reset) ===== */
body.theme-skin-8 .mfp-bg {
  background: rgba(26, 39, 68, .62) !important;
  opacity: 1 !important;
}
body.theme-skin-8 .mfp-content {
  max-width: 440px;
  margin: 0 auto;
}
body.theme-skin-8 .white-popup.t8-auth,
body.theme-skin-8 #login.t8-auth,
body.theme-skin-8 #repass.t8-auth {
  position: relative !important;
  max-width: 420px !important;
  width: min(100% - 1.5rem, 420px) !important;
  margin: 4vh auto !important;
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: 0 28px 70px rgba(26, 39, 68, .35) !important;
  border: 1px solid rgba(255, 255, 255, .2);
}
body.theme-skin-8 .t8-auth__hero {
  padding: 1.45rem 1.4rem 1.15rem;
  background: linear-gradient(125deg, #1a2744 0%, #2a4a7f 58%, #c9a84c 100%);
  color: #fff;
  text-align: center;
}
body.theme-skin-8 .t8-auth__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto .75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .15);
}
body.theme-skin-8 .t8-auth__title,
body.theme-skin-8 .t8-auth h2 {
  margin: 0 0 .35rem !important;
  padding: 0 !important;
  font-family: var(--serif) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  background: none !important;
  border: 0 !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-auth__lead {
  margin: 0 !important;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88) !important;
  line-height: 1.4;
}
body.theme-skin-8 .t8-auth__form {
  display: block !important;
  padding: 1.25rem 1.35rem 1.4rem !important;
  margin: 0 !important;
  width: 100% !important;
  text-align: left !important;
}
body.theme-skin-8 .t8-auth__tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin: 0 0 1rem !important;
}
body.theme-skin-8 .t8-auth__tab {
  margin: 0 !important;
  cursor: pointer;
  display: block !important;
}
body.theme-skin-8 .t8-auth__tab > input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
body.theme-skin-8 .t8-auth__tab svg,
body.theme-skin-8 .t8-auth .btn-radio svg {
  display: none !important;
}
body.theme-skin-8 .t8-auth__tab-ui {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .5rem;
  border-radius: 12px;
  border: 2px solid #e4dcc8;
  background: #faf6ee;
  color: var(--navy) !important;
  font-weight: 800;
  font-size: .88rem;
  transition: .15s ease;
}
body.theme-skin-8 .t8-auth__tab > input:checked + .t8-auth__tab-ui,
body.theme-skin-8 .t8-auth__tab:has(input:checked) .t8-auth__tab-ui {
  border-color: #c9a84c;
  background: linear-gradient(180deg, #f7f3ea, #f5f0e4);
  color: var(--teal-deep) !important;
  box-shadow: 0 6px 14px rgba(42, 74, 127, .15);
}
body.theme-skin-8 .t8-auth__field {
  position: relative;
  margin: 0 0 .85rem;
}
body.theme-skin-8 .t8-auth__field--pass { margin-bottom: 1rem; }
body.theme-skin-8 .t8-auth input.t8-auth__input,
body.theme-skin-8 .t8-auth input[type="text"],
body.theme-skin-8 .t8-auth input[type="email"],
body.theme-skin-8 .t8-auth input[type="password"],
body.theme-skin-8 .t8-auth input.email,
body.theme-skin-8 .t8-auth input.pass,
body.theme-skin-8 .t8-auth input.repass,
body.theme-skin-8 .t8-auth input.changeinput {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: .85rem 1rem !important;
  border: 2px solid #e4dcc8 !important;
  border-radius: 14px !important;
  background: #f7fbfc !important;
  font: 600 .98rem/1.35 var(--font) !important;
  color: var(--ink) !important;
  box-sizing: border-box !important;
  float: none !important;
}
body.theme-skin-8 .t8-auth__field--pass input {
  padding-right: 3rem !important;
}
body.theme-skin-8 .t8-auth input:focus {
  outline: none !important;
  border-color: #c9a84c !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .18) !important;
}
body.theme-skin-8 .t8-auth__eye,
body.theme-skin-8 .t8-auth .toggle-password,
body.theme-skin-8 .t8-auth .field-icon {
  position: absolute !important;
  right: .55rem !important;
  top: .55rem !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--muted) !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  float: none !important;
  z-index: 2;
  font-size: 1.05rem;
  padding: 0 !important;
}
body.theme-skin-8 .t8-auth__eye:hover { color: var(--teal) !important; background: #e8faf7 !important; }
body.theme-skin-8 .t8-auth__error:empty { display: none; }
body.theme-skin-8 .t8-auth__error:not(:empty),
body.theme-skin-8 .t8-auth .logerr:not(:empty),
body.theme-skin-8 .t8-auth .passerr:not(:empty) {
  display: block;
  margin-top: .4rem;
  color: #b53a22 !important;
  font-size: .85rem;
  font-weight: 700;
}
body.theme-skin-8 .t8-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .9rem;
  margin: 0 0 1.05rem;
}
body.theme-skin-8 .t8-auth__remember {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  margin: 0 !important;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink2) !important;
  cursor: pointer;
  float: none !important;
  width: auto !important;
}
body.theme-skin-8 .t8-auth__remember input {
  width: 1.05rem !important;
  height: 1.05rem !important;
  margin: 0 !important;
  accent-color: #2a4a7f;
}
body.theme-skin-8 .t8-auth__link,
body.theme-skin-8 .t8-auth__back {
  color: var(--teal) !important;
  font-weight: 800 !important;
  font-size: .9rem !important;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-auth__link:hover,
body.theme-skin-8 .t8-auth__back:hover {
  color: var(--navy) !important;
  text-decoration: underline !important;
}
body.theme-skin-8 .t8-auth__back {
  display: block;
  text-align: center;
  margin-top: .85rem;
}
body.theme-skin-8 .t8-auth__submit,
body.theme-skin-8 .t8-auth .btn-submit,
body.theme-skin-8 .t8-auth input[type="submit"],
body.theme-skin-8 .t8-auth button[type="submit"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: .95rem 1.1rem !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #5a7ab0, #2a4a7f) !important;
  color: #fff !important;
  font: 800 1rem/1.2 var(--font) !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(42, 74, 127, .32) !important;
  float: none !important;
  height: auto !important;
  transition: transform .15s ease, filter .15s ease;
}
body.theme-skin-8 .t8-auth__submit:hover,
body.theme-skin-8 .t8-auth .btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff !important;
}
body.theme-skin-8 .t8-auth__flash:empty { display: none; }
body.theme-skin-8 .t8-auth__flash:not(:empty) {
  margin: 0 1.35rem 1.1rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
}
body.theme-skin-8 .t8-auth__flash--ok:not(:empty) {
  background: #f7f3ea;
  color: var(--teal-deep);
  border: 1px solid #e0d4b0;
}
body.theme-skin-8 .t8-auth__flash--err:not(:empty) {
  background: #fff1ec;
  color: #9a321c;
  border: 1px solid #ffd0c4;
}
/* hide legacy radio styles leftovers */
body.theme-skin-8 .t8-auth .btn-radio span:not(.t8-auth__tab-ui) {
  /* handled by tab-ui */
}

/* Flash / design-change modal */
body.theme-skin-8 .t8-flash-modal.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  overflow: auto;
  background: rgba(26, 39, 68, .55);
  padding: 1rem;
}
body.theme-skin-8 .t8-flash-modal.in,
body.theme-skin-8 .t8-flash-modal.show {
  display: block !important;
}
body.theme-skin-8 .t8-flash-dialog.modal-dialog {
  width: min(92vw, 440px) !important;
  margin: 12vh auto !important;
}
body.theme-skin-8 .t8-flash.modal-content {
  border: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(26, 39, 68, .35) !important;
  background: #fff !important;
}
body.theme-skin-8 .t8-flash__hero {
  position: relative;
  padding: 1.5rem 1.35rem 1.15rem;
  text-align: center;
  background: linear-gradient(125deg, #1a2744 0%, #2a4a7f 55%, #c9a84c 100%);
  color: #fff;
}
body.theme-skin-8 .t8-flash-modal--error .t8-flash__hero {
  background: linear-gradient(125deg, #7a1f18 0%, #b53a22 55%, #d94a2b 100%);
}
body.theme-skin-8 .t8-flash-modal--info .t8-flash__hero {
  background: linear-gradient(125deg, #1a2f5a 0%, #1f6f8a 60%, #2a8fb0 100%);
}
body.theme-skin-8 .t8-flash-modal--design .t8-flash__hero {
  background:
    radial-gradient(420px 160px at 90% 0%, rgba(201, 162, 39, .35), transparent 55%),
    linear-gradient(125deg, #1a2744 0%, #2a4a7f 50%, #c9a84c 100%);
}
body.theme-skin-8 .t8-flash__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto .75rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .15);
}
body.theme-skin-8 .t8-flash__title,
body.theme-skin-8 .t8-flash .modal-title {
  margin: 0 !important;
  padding: 0 2rem !important;
  color: #fff !important;
  font: 700 1.35rem/1.25 var(--serif) !important;
  background: none !important;
  border: 0 !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-flash__close.close {
  position: absolute !important;
  top: .65rem !important;
  right: .75rem !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  cursor: pointer;
  display: grid !important;
  place-items: center !important;
  float: none !important;
  text-shadow: none !important;
}
body.theme-skin-8 .t8-flash__close:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-8 .t8-flash__body.modal-body {
  padding: 1.25rem 1.4rem .35rem !important;
  color: var(--ink2) !important;
  font: 600 1.02rem/1.55 var(--font) !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-flash__hint {
  margin: .85rem 0 0 !important;
  padding: .7rem .85rem !important;
  border-radius: 12px !important;
  background: #faf6ee !important;
  border: 1px solid #e4dcc8 !important;
  color: var(--muted) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  text-align: left !important;
}
body.theme-skin-8 .t8-flash__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body.theme-skin-8 .t8-flash__list li {
  padding: .45rem .65rem !important;
  margin: 0 0 .35rem !important;
  border-radius: 10px !important;
  background: #fff1ec !important;
  border: 1px solid #ffd0c4 !important;
  color: #9a321c !important;
}
body.theme-skin-8 .t8-flash__footer.modal-footer {
  border: 0 !important;
  padding: .5rem 1.4rem 1.35rem !important;
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  background: transparent !important;
}
body.theme-skin-8 .t8-flash__ok {
  min-width: 160px;
}

/* Minimal components (no Bootstrap CSS) */
body.theme-skin-8 .dropdown { position: relative; display: inline-block; }
body.theme-skin-8 .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  min-width: 180px;
  margin: .25rem 0 0;
  padding: .35rem;
  list-style: none;
  background: #fff;
  border: 1px solid #d7e3ea;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(26, 39, 68, .12);
}
body.theme-skin-8 .dropdown.open > .dropdown-menu,
body.theme-skin-8 .dropdown-menu.show { display: block; }
body.theme-skin-8 .dropdown-menu > li > a {
  display: block;
  padding: .5rem .75rem;
  border-radius: 8px;
  color: #0b1f2a;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
body.theme-skin-8 .dropdown-menu > li > a:hover {
  background: #f7f3ea;
  color: #2a4a7f;
}
body.theme-skin-8 .caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}
body.theme-skin-8 .modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow: auto;
  background: rgba(26, 39, 68, .45);
}
body.theme-skin-8 .modal.in,
body.theme-skin-8 .modal.show { display: block; }
body.theme-skin-8 .modal-dialog {
  width: min(92vw, 520px);
  margin: 8vh auto;
}
body.theme-skin-8 .modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
  overflow: hidden;
}
body.theme-skin-8 .modal-header,
body.theme-skin-8 .modal-body,
body.theme-skin-8 .modal-footer { padding: 1rem 1.15rem; }
body.theme-skin-8 .modal-header { border-bottom: 1px solid #e2e8f0; }
body.theme-skin-8 .modal-footer { border-top: 1px solid #e2e8f0; text-align: right; }

/* BVI — header pill (right side of masthead) */
body.theme-skin-8 .t8-bvi,
body.theme-skin-8 .t8-bvi--header {
  position: static !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  min-height: 44px;
  margin-left: 1rem;
  padding: .4rem .75rem .4rem .4rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(42, 74, 127, .35) !important;
  background: linear-gradient(145deg, #fffef9 0%, #f5f0e4 100%) !important;
  box-shadow:
    0 8px 20px rgba(42, 74, 127, .16),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  color: #243b62 !important;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
}
body.theme-skin-8 .t8-bvi--header:hover {
  transform: translateY(-2px);
  border-color: #2a4a7f !important;
  box-shadow: 0 12px 28px rgba(42, 74, 127, .22) !important;
  color: #1a2744 !important;
  text-decoration: none !important;
  filter: brightness(1.02);
}
body.theme-skin-8 .t8-bvi--header.is-active {
  background: linear-gradient(145deg, #2a4a7f, #1a2f5a) !important;
  border-color: rgba(255, 255, 255, .25) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(26, 47, 90, .28) !important;
}
body.theme-skin-8 .t8-bvi--header.is-active:hover {
  color: #fff !important;
  filter: brightness(1.05);
}
body.theme-skin-8 .t8-bvi__ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #2a4a7f, #2d4a78);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(42, 74, 127, .3);
}
body.theme-skin-8 .t8-bvi--header.is-active .t8-bvi__ico {
  background: rgba(255, 255, 255, .2);
  box-shadow: none;
}
body.theme-skin-8 .t8-bvi__text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  padding-right: .2rem;
  min-width: 0;
  line-height: 1.15;
}
body.theme-skin-8 .t8-bvi__label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}
body.theme-skin-8 .t8-bvi__hint {
  font-size: .68rem;
  font-weight: 600;
  opacity: .72;
  white-space: nowrap;
}
body.theme-skin-8 .t8-bvi img { display: none !important; }
body.theme-skin-8 .t8-masthead__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}


body.theme-skin-8 .t8-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #c9a84c, #2a4a7f);
  color: #fff !important;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 12px 28px rgba(42, 74, 127, .4);
  text-decoration: none !important;
  border: 2px solid #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .2s ease, transform .15s ease, filter .15s ease, visibility .2s ease;
}
body.theme-skin-8 .t8-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
body.theme-skin-8 .t8-top:hover { filter: brightness(1.08); color: #fff !important; transform: translateY(-2px); }

body.theme-skin-8 .t8-alert {
  max-width: var(--max);
  margin: .85rem auto;
  padding: .85rem 1.05rem;
  border-radius: 12px;
  background: #fff1ec;
  color: #9a321c;
  border: 2px solid #ffd0c4;
  font-weight: 700;
}
body.theme-skin-8 .t8-alert--danger {
  background: #fff1ec;
  border-color: #f5a890;
}

/* Forms (feedback pages etc.) */
body.theme-skin-8 .form-control,
body.theme-skin-8 input[type="text"],
body.theme-skin-8 input[type="email"],
body.theme-skin-8 input[type="password"],
body.theme-skin-8 textarea,
body.theme-skin-8 select {
  border: 2px solid #e0d4b0 !important;
  border-radius: 12px !important;
  padding: .65rem .85rem !important;
  font: 600 .95rem/1.4 var(--font) !important;
  color: var(--ink) !important;
  background: #fff !important;
  max-width: 100%;
}
body.theme-skin-8 .btn,
body.theme-skin-8 button[type="submit"],
body.theme-skin-8 input[type="submit"] {
  border-radius: 12px !important;
  font-weight: 800 !important;
}
body.theme-skin-8 .btn-primary,
body.theme-skin-8 button[type="submit"],
body.theme-skin-8 input[type="submit"] {
  background: linear-gradient(180deg, #5a7ab0, #2a4a7f) !important;
  border: 0 !important;
  color: #fff !important;
  padding: .65rem 1.2rem !important;
  box-shadow: 0 8px 18px rgba(42, 74, 127, .28);
}

/* Responsive — 3 columns collapse */
@media (max-width: 1100px) {
  body.theme-skin-8 .t8-stage,
  body.theme-skin-8 .t8-shell {
    grid-template-columns: 230px minmax(0, 1fr) 220px !important;
    gap: .9rem !important;
  }
  body.theme-skin-8 .t8-medal { width: 172px; height: 172px; }
}

@media (max-width: 991px) {
  body.theme-skin-8 .t8-stage,
  body.theme-skin-8 .t8-shell {
    width: min(100% - 1rem, var(--max)) !important;
    grid-template-columns: 1fr !important;
  }
  body.theme-skin-8 .t8-rail,
  body.theme-skin-8 .t8-side--left,
  body.theme-skin-8 .t8-side--right {
    position: static;
  }
  body.theme-skin-8 .t8-main { order: 1; }
  body.theme-skin-8 .t8-side--left { order: 2; }
  body.theme-skin-8 .t8-side--right { order: 3; }
  body.theme-skin-8 .t8-portrait-wrap { margin-left: auto; margin-right: auto; }
  body.theme-skin-8 .t8-masthead__inner,
  body.theme-skin-8 .t8-topbar__inner,
  body.theme-skin-8 .t8-header__bar {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: .85rem 0;
  }
  body.theme-skin-8 .t8-header__user { align-items: flex-start; }
  body.theme-skin-8 .t8-nav__list { flex-direction: column !important; }
  body.theme-skin-8 .t8-nav__list > li > a { white-space: normal; }
  body.theme-skin-8 .t8-pills__inner,
  body.theme-skin-8 .t8-nav__inner { border-radius: 20px !important; }
  body.theme-skin-8 .t8-feed-item__body { flex-direction: column; }
  body.theme-skin-8 .t8-feed-item__img { width: 100%; height: 170px; }
  body.theme-skin-8 .t8-nav__toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-weight: 800;
    padding: .45rem .65rem;
  }
  body.theme-skin-8 .t8-nav__burger {
    width: 36px;
    height: 28px;
    position: relative;
    display: inline-block;
  }
  body.theme-skin-8 .t8-nav__burger span,
  body.theme-skin-8 .t8-nav__burger span::before,
  body.theme-skin-8 .t8-nav__burger span::after {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    content: "";
  }
  body.theme-skin-8 .t8-nav__burger span { position: relative; top: 12px; }
  body.theme-skin-8 .t8-nav__burger span::before { position: absolute; top: -9px; left: 0; right: 0; }
  body.theme-skin-8 .t8-nav__burger span::after { position: absolute; top: 9px; left: 0; right: 0; }
  body.theme-skin-8 .t8-card--main { min-height: 0 !important; }
  body.theme-skin-8 .t8-app::before { display: none; }
  body.theme-skin-8 {
    background-image:
      radial-gradient(700px 360px at 100% 0%, rgba(201, 168, 76, .2), transparent 55%),
      linear-gradient(165deg, #faf6ee 0%, #fffef9 100%) !important;
  }
}

@media (max-width: 640px) {
  body.theme-skin-8 .t8-stage,
  body.theme-skin-8 .t8-shell {
    width: calc(100% - .75rem) !important;
    margin-left: auto;
    margin-right: auto;
  }
  body.theme-skin-8 .t8-medal { width: 156px; height: 156px; }
  body.theme-skin-8 .t8-header__title { font-size: 1.35rem !important; }
  body.theme-skin-8 .t8-card--main { padding: 1rem !important; }
  body.theme-skin-8 .t8-article__head { flex-direction: column; }
  /* bvi in header */
  body.theme-skin-8 .t8-cookie__inner {
    flex-direction: column;
    align-items: stretch !important;
  }
  body.theme-skin-8 .t8-cookie__btn { width: 100%; }
  body.theme-skin-8 .t8-footer__inner { align-items: flex-start; }
  body.theme-skin-8 .t8-btn { width: 100%; justify-content: center; }
  body.theme-skin-8 .t8-masthead__actions .t8-btn,
  body.theme-skin-8 .t8-topbar__actions .t8-btn,
  body.theme-skin-8 .t8-header__actions .t8-btn { width: auto; }
  body.theme-skin-8 .t8-page__head { padding: .85rem; }
  body.theme-skin-8 .t8-form-card__head { flex-direction: column; align-items: flex-start; }
  body.theme-skin-8 .t8-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-skin-8 .t8-albums { grid-template-columns: 1fr; }
}

/* Theme 8 — «Консерватория» (Conservatoire)
   Ivory · deep sapphire · classical gold
   Outfit + Fraunces */
body.theme-skin-8 .t8-app { position: relative; }

body.theme-skin-8 .t8-nav__list > li > a,
body.theme-skin-8 .teacher-menu .container > ul > li > a {
  color: #1a2f5a !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}
body.theme-skin-8 .t8-nav__list > li > a:hover,
body.theme-skin-8 .teacher-menu .container > ul > li:hover > a {
  background: linear-gradient(180deg, #2a4a7f, #1a2f5a) !important;
  color: #fff !important;
}
body.theme-skin-8 .t8-card__head {
  background: linear-gradient(90deg, #1a2f5a, #2a4a7f) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 rgba(201, 162, 39, .55);
}
body.theme-skin-8 .t8-card {
  background: #fffef9 !important;
  border-color: #e4dcc8 !important;
}
body.theme-skin-8 .t8-identity {
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 168, 76, .35), transparent 42%),
    linear-gradient(165deg, #1a2f5a 0%, #1a2744 55%, #152238 100%) !important;
  border-color: #2a4a7f !important;
}
body.theme-skin-8 .t8-card--main {
  border-top: 0 !important;
  border-left: 5px solid #2a4a7f !important;
  background:
    linear-gradient(180deg, #fffef9 0%, #faf6ee 100%) !important;
}
body.theme-skin-8 .t8-vmenu > ul > li > a {
  background: #f7f3ea !important;
  border-color: #e4dcc8 !important;
  border-left: 4px solid #2a4a7f !important;
  border-radius: 999px !important;
}
body.theme-skin-8 .t8-vmenu > ul > li > a:hover {
  background: linear-gradient(90deg, #f5f0e4, #f7f3ea) !important;
  border-left-color: #c9a227 !important;
  color: #1a2f5a !important;
}
body.theme-skin-8 .t8-search button,
body.theme-skin-8 .t8-btn--primary,
body.theme-skin-8 .t8-form__submit {
  background: linear-gradient(180deg, #5a7ab0, #2a4a7f) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(42, 74, 127, .32) !important;
}
body.theme-skin-8 .t8-btn--manage,
body.theme-skin-8 .t8-btn.dropdown-toggle {
  background: linear-gradient(180deg, #f7f3ea, #c9a227) !important;
  color: #1a2f5a !important;
}
body.theme-skin-8 .t8-footer {
  background: linear-gradient(120deg, #1a2744, #1a2f5a 50%, #2a4a7f) !important;
  border-top: 4px solid #c9a227 !important;
}
body.theme-skin-8 .t8-footer__mark {
  background: linear-gradient(145deg, #c9a84c, #2a4a7f) !important;
  color: #fff !important;
  border-radius: 50% !important;
}
body.theme-skin-8 .t8-footer a { color: #e0d4b0 !important; }
body.theme-skin-8 .t8-footer a:hover { color: #c9a227 !important; }

/* Decorative soft orbs instead of pen for uniqueness */
@media (min-width: 1100px) {
  body.theme-skin-8 .t8-app::before {
    content: "";
    pointer-events: none;
    position: fixed;
    right: -40px;
    top: 180px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, .22), transparent 68%);
    z-index: 0;
  }
  body.theme-skin-8 .t8-app::after {
    content: "";
    pointer-events: none;
    position: fixed;
    left: -60px;
    bottom: 80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 39, .14), transparent 70%);
    z-index: 0;
  }
}
/* ===== Site description modal (#set-header) ===== */
body.theme-skin-8 .t8-desc-modal.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2300;
  overflow: auto;
  background: rgba(7, 32, 51, .55);
  padding: 1rem;
}
body.theme-skin-8 .t8-desc-modal.in,
body.theme-skin-8 .t8-desc-modal.show {
  display: block !important;
}
body.theme-skin-8 .t8-desc-dialog.modal-dialog {
  width: min(94vw, 520px) !important;
  margin: 10vh auto !important;
}
body.theme-skin-8 .t8-desc.modal-content {
  border: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(7, 32, 51, .38) !important;
  background: #fff !important;
}
body.theme-skin-8 .t8-desc__hero.modal-header {
  position: relative;
  padding: 1.45rem 1.35rem 1.15rem !important;
  text-align: center;
  border: 0 !important;
  background: linear-gradient(125deg, #1a2744 0%, #1a2f5a 50%, #2a4a7f 100%) !important;
  color: #fff !important;
}
body.theme-skin-8 .t8-desc__mark {
  width: 54px;
  height: 54px;
  margin: 0 auto .7rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .15);
}
body.theme-skin-8 .t8-desc__title,
body.theme-skin-8 .t8-desc .modal-title {
  margin: 0 0 .35rem !important;
  padding: 0 2rem !important;
  color: #fff !important;
  font: 700 1.35rem/1.25 var(--serif) !important;
  background: none !important;
  border: 0 !important;
  text-align: center !important;
}
body.theme-skin-8 .t8-desc__lead {
  margin: 0 !important;
  font: 600 .9rem/1.4 var(--font) !important;
  color: rgba(255, 255, 255, .88) !important;
}
body.theme-skin-8 .t8-desc__close.close {
  position: absolute !important;
  top: .65rem !important;
  right: .75rem !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  cursor: pointer;
  display: grid !important;
  place-items: center !important;
  float: none !important;
  text-shadow: none !important;
}
body.theme-skin-8 .t8-desc__close:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-8 .t8-desc__body.modal-body {
  padding: 1.25rem 1.4rem .5rem !important;
}
body.theme-skin-8 .t8-desc__label {
  display: block;
  margin: 0 0 .45rem;
  font: 800 .78rem/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
body.theme-skin-8 .t8-desc__textarea,
body.theme-skin-8 #set-header textarea#header-modal {
  width: 100% !important;
  min-height: 140px !important;
  padding: .9rem 1rem !important;
  border: 2px solid #e4dcc8 !important;
  border-radius: 14px !important;
  background: #faf6ee !important;
  color: var(--ink) !important;
  font: 600 1rem/1.5 var(--font) !important;
  resize: vertical;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.theme-skin-8 .t8-desc__textarea:focus,
body.theme-skin-8 #set-header textarea#header-modal:focus {
  outline: none !important;
  border-color: #2a4a7f !important;
  box-shadow: 0 0 0 4px rgba(183,110,121,.18) !important;
}
body.theme-skin-8 .t8-desc__hint {
  margin: .75rem 0 0 !important;
  padding: .65rem .85rem;
  border-radius: 12px;
  background: #f7f3ea;
  border: 1px solid #e4dcc8;
  color: var(--ink2);
  font: 600 .86rem/1.45 var(--font) !important;
}
body.theme-skin-8 .t8-desc__hint i {
  color: #2a4a7f;
  margin-right: .3rem;
}
body.theme-skin-8 .t8-desc__footer.modal-footer {
  border: 0 !important;
  padding: .85rem 1.25rem 1.35rem !important;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end !important;
  gap: .55rem;
  background: transparent !important;
}
body.theme-skin-8 .t8-desc__submit {
  min-width: 140px;
}
body.theme-skin-8 .header-edit {
  cursor: pointer;
  margin-left: .35rem;
  opacity: .85;
  transition: .15s ease;
}
body.theme-skin-8 .header-edit:hover {
  opacity: 1;
  color: #2a4a7f;
}
/* ===== Theme 8 — rich sapphire-gold footer + mobile polish (v5) ===== */
body.theme-skin-8 .t8-footer {
  position: relative;
  margin-top: auto !important;
  color: #f7f3ea !important;
  border-top: 4px solid #c9a227 !important;
  background:
    radial-gradient(700px 260px at 12% 0%, rgba(201, 168, 76, .28), transparent 55%),
    radial-gradient(500px 220px at 100% 100%, rgba(201, 162, 39, .18), transparent 60%),
    linear-gradient(135deg, #1a2744 0%, #1a2f5a 48%, #2a4a7f 100%) !important;
  overflow: hidden;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
body.theme-skin-8 .t8-footer__glow {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, .35), transparent 68%);
  pointer-events: none;
}
body.theme-skin-8 .t8-footer__leaf {
  position: absolute;
  left: -40px;
  top: 40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 70%);
  pointer-events: none;
}
body.theme-skin-8 .t8-footer__wrap {
  position: relative;
  z-index: 1;
  padding: 1.7rem 1rem 1.2rem !important;
  max-width: var(--max);
  margin: 0 auto;
}
body.theme-skin-8 .t8-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(232, 196, 203, .28);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  margin-bottom: 1.5rem;
}
body.theme-skin-8 .t8-footer__eyebrow {
  margin: 0 0 .35rem !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9a227 !important;
}
body.theme-skin-8 .t8-footer__cta-title {
  margin: 0 0 .4rem !important;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
}
body.theme-skin-8 .t8-footer__cta-desc {
  margin: 0 !important;
  max-width: 36rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255,255,255,.86) !important;
}
body.theme-skin-8 .t8-footer__cta-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 0 1 auto;
  min-width: min(100%, 17.5rem);
  max-width: 100%;
}
body.theme-skin-8 .t8-footer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  box-sizing: border-box;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.25;
  text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  text-align: center;
  white-space: nowrap;
}
body.theme-skin-8 .t8-footer__btn-ico { flex: 0 0 auto; line-height: 1; }
body.theme-skin-8 .t8-footer__btn-label { color: inherit; line-height: 1.25; }
body.theme-skin-8 .t8-footer a.t8-footer__btn--primary {
  color: #1a2744 !important;
  background: linear-gradient(180deg, #f5f0e4, #e0d4b0 45%, #c9a227) !important;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(201, 168, 76, .35);
}
body.theme-skin-8 .t8-footer a.t8-footer__btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  color: #1a2744 !important;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-footer a.t8-footer__btn--ghost {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.28);
}
body.theme-skin-8 .t8-footer a.t8-footer__btn--ghost:hover {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  text-decoration: none !important;
}
body.theme-skin-8 .t8-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.35rem 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
body.theme-skin-8 .t8-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}
body.theme-skin-8 .t8-footer__mark {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #1a2744 !important;
  background: linear-gradient(145deg, #f5f0e4, #c9a84c 50%, #c9a227) !important;
  border: 2px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
body.theme-skin-8 .t8-footer__brand-name {
  margin: 0 0 .25rem !important;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff !important;
}
body.theme-skin-8 .t8-footer__brand-sub {
  margin: 0 0 .45rem !important;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.82) !important;
}
body.theme-skin-8 .t8-footer__theme-tag {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: #c9a227 !important;
}
body.theme-skin-8 .t8-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a84c;
  box-shadow: 0 0 0 0 rgba(201, 168, 76, .5);
  animation: t8-footer-pulse 1.6s ease-in-out infinite;
}
@keyframes t8-footer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, .45); }
  50% { box-shadow: 0 0 0 6px rgba(201, 168, 76, 0); }
}
body.theme-skin-8 .t8-footer__nav-title {
  margin: 0 0 .55rem !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c9a227 !important;
}
body.theme-skin-8 .t8-footer__nav ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
body.theme-skin-8 .t8-footer__nav li { margin: 0 0 .4rem !important; }
body.theme-skin-8 .t8-footer a:not(.t8-footer__btn) {
  color: #e0d4b0 !important;
  font-weight: 700;
  text-decoration: none;
}
body.theme-skin-8 .t8-footer a:not(.t8-footer__btn):hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-8 .t8-footer__meta-text {
  margin: 0 0 .75rem !important;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255,255,255,.8) !important;
}
body.theme-skin-8 .t8-footer__counters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  opacity: .95;
}
body.theme-skin-8 .t8-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}
body.theme-skin-8 .t8-footer__bottom p {
  margin: 0 !important;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7) !important;
}
body.theme-skin-8 .t8-footer__bottom-theme {
  color: #c9a227 !important;
  font-weight: 700 !important;
}

/* Back to top — stronger stacking vs support float */
body.theme-skin-8 .t8-top {
  position: fixed !important;
  right: 1rem !important;
  bottom: 1rem !important;
  z-index: 10050 !important;
  width: 52px;
  height: 52px;
  border: 2px solid #fff;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
body.theme-skin-8 .support-float {
  bottom: 5.75rem !important;
  z-index: 10040 !important;
}

/* Mobile nav: collapsed by default */
@media (max-width: 991px) {
  body.theme-skin-8 .t8-nav__list,
  body.theme-skin-8 .teacher-menu .container > ul {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    padding: .35rem 0 .55rem;
  }
  body.theme-skin-8 .t8-nav.is-open .t8-nav__list {
    display: flex !important;
  }
  body.theme-skin-8 .t8-nav__list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  body.theme-skin-8 .t8-nav__list > li > a {
    flex: 1 1 auto;
    white-space: normal !important;
    padding: .75rem .85rem;
    color: #fff !important;
  }
  body.theme-skin-8 .t8-nav__list > li > a:hover {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
  }
  body.theme-skin-8 .t8-nav__burger.on span { background: transparent; }
  body.theme-skin-8 .t8-nav__burger.on span::before { top: 0; transform: rotate(45deg); }
  body.theme-skin-8 .t8-nav__burger.on span::after { top: 0; transform: rotate(-45deg); }
  body.theme-skin-8 .t8-nav__list ul,
  body.theme-skin-8 .teacher-menu ul ul {
    position: static !important;
    display: none;
    min-width: 0;
    width: 100%;
    margin: 0 0 .35rem;
    padding: .15rem .35rem .35rem .85rem;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
  }
  body.theme-skin-8 .t8-nav__list li.is-open > ul { display: block !important; }
  body.theme-skin-8 .t8-nav__list ul a { color: #fff !important; padding: .5rem .65rem; }
  body.theme-skin-8 .t8-acc-head {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  body.theme-skin-8 .t8-acc-head::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .85;
  }
  body.theme-skin-8 .t8-acc-head.is-open::after {
    transform: rotate(225deg);
    margin-top: 4px;
  }
  body.theme-skin-8 .t8-identity { text-align: center; }
  body.theme-skin-8 .t8-medal { margin-left: auto; margin-right: auto; }
  body.theme-skin-8 .t8-search { flex-wrap: wrap; }
  body.theme-skin-8 .t8-search input { min-width: 0; flex: 1 1 100%; }
  body.theme-skin-8 .t8-search button { width: 100%; }
}

@media (max-width: 900px) {
  body.theme-skin-8 .t8-footer__grid { grid-template-columns: 1fr; }
  body.theme-skin-8 .t8-footer__cta { flex-direction: column; align-items: stretch; }
  body.theme-skin-8 .t8-footer__cta-actions { width: 100%; min-width: 0; }
  body.theme-skin-8 .t8-footer__btn { white-space: normal; }
}

@media (max-width: 640px) {
  body.theme-skin-8 .t8-top {
    right: .85rem !important;
    bottom: .85rem !important;
    width: 48px;
    height: 48px;
  }
  body.theme-skin-8 .support-float { bottom: 5.35rem !important; }
  body.theme-skin-8 .t8-footer__wrap { padding: 1.25rem .75rem 1rem !important; }
  body.theme-skin-8 .t8-footer__cta { padding: 1rem; }
  body.theme-skin-8 .t8-footer__bottom { flex-direction: column; align-items: flex-start; }
  /* bvi in header */
}


/* ===== Conservatoire wow: floating notes + staff glow + treble clef ===== */
body.theme-skin-8 .t8-app {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

/* Falling musical notes (♪ ♫ ♩) */
body.theme-skin-8 .t8-notes {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: .7;
}
body.theme-skin-8 .t8-notes span {
  position: absolute;
  top: -8%;
  font-size: 1.35rem;
  line-height: 1;
  color: #2a4a7f;
  text-shadow:
    0 0 10px rgba(201, 168, 76, .45),
    0 2px 6px rgba(26, 39, 68, .12);
  animation: t8-note-fall linear infinite;
  opacity: .78;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Music", serif;
}
body.theme-skin-8 .t8-notes span:nth-child(1)  { left: 6%;  animation-duration: 15s; animation-delay: 0s;    color: #1a2f5a; font-size: 1.5rem; }
body.theme-skin-8 .t8-notes span:nth-child(2)  { left: 14%; animation-duration: 19s; animation-delay: -3s;   color: #c9a227; font-size: 1.15rem; opacity: .65; }
body.theme-skin-8 .t8-notes span:nth-child(3)  { left: 24%; animation-duration: 17s; animation-delay: -7s;   color: #2a4a7f; }
body.theme-skin-8 .t8-notes span:nth-child(4)  { left: 36%; animation-duration: 21s; animation-delay: -2s;   color: #5a7ab0; font-size: 1.6rem; }
body.theme-skin-8 .t8-notes span:nth-child(5)  { left: 48%; animation-duration: 16s; animation-delay: -9s;   color: #c9a84c; opacity: .6; }
body.theme-skin-8 .t8-notes span:nth-child(6)  { left: 58%; animation-duration: 20s; animation-delay: -5s;   color: #1a2744; font-size: 1.25rem; }
body.theme-skin-8 .t8-notes span:nth-child(7)  { left: 68%; animation-duration: 18s; animation-delay: -11s;  color: #2a4a7f; }
body.theme-skin-8 .t8-notes span:nth-child(8)  { left: 78%; animation-duration: 22s; animation-delay: -4s;   color: #c9a227; font-size: 1.4rem; opacity: .7; }
body.theme-skin-8 .t8-notes span:nth-child(9)  { left: 10%; animation-duration: 23s; animation-delay: -14s;  color: #355a88; font-size: 1.1rem; }
body.theme-skin-8 .t8-notes span:nth-child(10) { left: 72%; animation-duration: 14s; animation-delay: -8s;   color: #2a4a7f; }
body.theme-skin-8 .t8-notes span:nth-child(11) { left: 42%; animation-duration: 17.5s; animation-delay: -12s; color: #c9a84c; font-size: 1.3rem; }
body.theme-skin-8 .t8-notes span:nth-child(12) { left: 90%; animation-duration: 19.5s; animation-delay: -6s;  color: #1a2f5a; opacity: .65; }

@keyframes t8-note-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(-8deg) scale(.9);
    opacity: 0;
  }
  10% { opacity: .85; }
  45% {
    transform: translate3d(22px, 48vh, 0) rotate(12deg) scale(1.08);
    opacity: .75;
  }
  100% {
    transform: translate3d(-14px, 108vh, 0) rotate(-18deg) scale(.95);
    opacity: 0;
  }
}

/* Soft staff-line glow on sides (desktop) */
@media (min-width: 1100px) {
  body.theme-skin-8 .t8-app::before,
  body.theme-skin-8 .t8-app::after {
    content: "" !important;
    pointer-events: none;
    position: fixed;
    top: 12%;
    width: 72px;
    height: 220px;
    z-index: 2;
    opacity: .55;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 14px,
      rgba(42, 74, 127, .18) 14px,
      rgba(42, 74, 127, .18) 16px
    );
    border-left: 2px solid rgba(201, 162, 39, .28);
    filter: blur(.15px);
    animation: t8-staff-sway 8s ease-in-out infinite alternate;
  }
  body.theme-skin-8 .t8-app::before { left: 8px; }
  body.theme-skin-8 .t8-app::after {
    right: 8px;
    left: auto;
    border-left: 0;
    border-right: 2px solid rgba(201, 162, 39, .28);
    animation-direction: alternate-reverse;
    animation-duration: 9.5s;
  }
}
@keyframes t8-staff-sway {
  0% { transform: translate3d(0, 0, 0); opacity: .45; }
  100% { transform: translate3d(0, 12px, 0); opacity: .65; }
}

/* Soft gold shimmer on main paper card */
body.theme-skin-8 .t8-card--main,
body.theme-skin-8 .t8-leaf-card {
  position: relative;
  overflow: hidden;
}
body.theme-skin-8 .t8-card--main::before,
body.theme-skin-8 .t8-leaf-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), rgba(201, 168, 76, .12), transparent);
  transform: skewX(-18deg);
  animation: t8-shimmer 7s ease-in-out infinite;
  z-index: 0;
}
@keyframes t8-shimmer {
  0%, 100% { left: -60%; opacity: 0; }
  40% { opacity: .55; }
  70% { left: 120%; opacity: 0; }
}
body.theme-skin-8 .t8-card--main > *,
body.theme-skin-8 .t8-leaf-card > * { position: relative; z-index: 1; }

/* Identity medal — gold pulse */
body.theme-skin-8 .t8-medal__ring--outer {
  box-shadow: 0 0 0 0 rgba(201, 168, 76, .45) !important;
  animation: t8-bloom 2.4s ease-in-out infinite !important;
}
@keyframes t8-bloom {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, .4); }
  50% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

/* Nav: deep sapphire bar + gold sheen */
body.theme-skin-8 .t8-nav__inner,
body.theme-skin-8 .teacher-menu .container,
body.theme-skin-8 .t8-pills__inner,
body.theme-skin-8 .t8-ticket__inner {
  background: linear-gradient(90deg, #152a4a 0%, #1a2f5a 28%, #2a4a7f 62%, #355a88 100%) !important;
  border: 1px solid rgba(201, 168, 76, .35) !important;
  box-shadow:
    0 14px 34px rgba(26, 47, 90, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(201, 162, 39, .15) !important;
  backdrop-filter: none;
  overflow: visible !important;
  border-radius: 16px !important;
}
body.theme-skin-8 .t8-nav__list > li > a,
body.theme-skin-8 .teacher-menu .container > ul > li > a {
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 2px rgba(10, 20, 40, .28);
  border-radius: 999px !important;
}
body.theme-skin-8 .t8-nav__list > li > a:hover,
body.theme-skin-8 .teacher-menu .container > ul > li:hover > a {
  background: rgba(201, 168, 76, .22) !important;
  color: #fffef9 !important;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, .4);
}
body.theme-skin-8 .t8-nav__list ul,
body.theme-skin-8 .teacher-menu ul ul {
  background: #fffef9 !important;
  border: 1px solid #e0d4b0 !important;
  box-shadow: 0 14px 32px rgba(26, 39, 68, .14) !important;
}
body.theme-skin-8 .t8-nav__list ul a,
body.theme-skin-8 .teacher-menu ul ul a {
  color: #243b62 !important;
}
body.theme-skin-8 .t8-nav__list ul a:hover,
body.theme-skin-8 .teacher-menu ul ul a:hover {
  background: #f5f0e4 !important;
  color: #1a2f5a !important;
}
@media (max-width: 991px) {
  body.theme-skin-8 .t8-nav__toggle { color: #fff !important; }
  body.theme-skin-8 .t8-nav__list > li > a {
    color: #fff !important;
    border-top-color: rgba(255,255,255,.2);
  }
  body.theme-skin-8 .t8-nav__list > li {
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  body.theme-skin-8 .t8-nav__burger span,
  body.theme-skin-8 .t8-nav__burger span::before,
  body.theme-skin-8 .t8-nav__burger span::after {
    background: #fff !important;
  }
}

/* Decorative treble clef (left, away from support-float) */
body.theme-skin-8 .t8-clef {
  pointer-events: none;
  position: fixed;
  left: 14px;
  bottom: 28px;
  z-index: 2;
  width: 72px;
  height: 110px;
  opacity: .88;
  animation: t8-clef-sway 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 16px rgba(26, 39, 68, .18));
}
body.theme-skin-8 .t8-clef__glyph {
  display: block;
  font-size: 5.2rem;
  line-height: 1;
  color: #1a2f5a;
  background: linear-gradient(165deg, #c9a227 0%, #2a4a7f 42%, #1a2744 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Music", Georgia, serif;
  text-align: center;
}
body.theme-skin-8 .t8-clef__ring {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, .35);
  box-shadow: 0 0 0 6px rgba(42, 74, 127, .06);
  animation: t8-clef-pulse 3.2s ease-in-out infinite;
}
@keyframes t8-clef-sway {
  0% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  100% { transform: translate3d(4px, -6px, 0) rotate(4deg); }
}
@keyframes t8-clef-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}
@media (max-width: 991px) {
  body.theme-skin-8 .t8-clef {
    left: 8px;
    bottom: 22px;
    transform: scale(.78);
    opacity: .75;
  }
  body.theme-skin-8 .t8-clef__glyph { font-size: 4.2rem; }
}
@media (max-width: 640px) {
  body.theme-skin-8 .t8-clef { display: none !important; }
}

/* Masthead staff accent line under title zone */
body.theme-skin-8 #header.t8-masthead,
body.theme-skin-8 .t8-masthead {
  border-bottom: 3px solid #2a4a7f !important;
  box-shadow:
    0 10px 28px rgba(26, 39, 68, .08),
    0 3px 0 0 rgba(201, 162, 39, .55) !important;
}

/* Leaf-card corner mark → small note chip */
body.theme-skin-8 .t8-leaf-card__mark {
  background: linear-gradient(160deg, #c9a84c, #2a4a7f) !important;
}
body.theme-skin-8 .t8-leaf-card__mark::before {
  content: "♪" !important;
  font-size: .95rem !important;
  color: #fffef9 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Footer mark note glow */
body.theme-skin-8 .t8-footer__mark {
  background: linear-gradient(145deg, #c9a227, #c9a84c) !important;
  color: #1a2744 !important;
}
body.theme-skin-8 .t8-footer {
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(201, 168, 76, .14), transparent 55%),
    linear-gradient(165deg, #152238 0%, #1a2744 48%, #152a4a 100%) !important;
}

/* BVI header polish mobile */
@media (max-width: 640px) {
  body.theme-skin-8 .t8-bvi--header {
    margin-left: .35rem !important;
    padding: .35rem .55rem .35rem .35rem !important;
    min-height: 40px;
  }
  body.theme-skin-8 .t8-bvi__ico {
    width: 32px;
    height: 32px;
    font-size: .9rem;
  }
  body.theme-skin-8 .t8-bvi__hint { display: none; }
  body.theme-skin-8 .t8-bvi__label { font-size: .75rem; }
}
@media (max-width: 420px) {
  body.theme-skin-8 .t8-bvi__text { display: none; }
  body.theme-skin-8 .t8-bvi--header {
    padding: .3rem !important;
    border-radius: 50% !important;
  }
}

/* Nav stacking: wrap 2 rows + dropdowns above content */
body.theme-skin-8 .t8-nav,
body.theme-skin-8 .teacher-menu {
  position: relative !important;
  z-index: 500 !important;
  overflow: visible !important;
}
body.theme-skin-8 .t8-shell,
body.theme-skin-8 .t8-stage {
  z-index: 1 !important;
  overflow: visible !important;
}
body.theme-skin-8 .t8-main,
body.theme-skin-8 .t8-card--main,
body.theme-skin-8 .t8-leaf-card {
  position: relative;
  z-index: 1;
}
body.theme-skin-8 .t8-shell,
body.theme-skin-8 .t8-masthead,
body.theme-skin-8 #header,
body.theme-skin-8 .t8-nav,
body.theme-skin-8 .t8-footer {
  position: relative;
  z-index: 3;
}
body.theme-skin-8 .t8-top {
  z-index: 10050 !important;
}

@media (min-width: 992px) {
  body.theme-skin-8 .t8-nav__list,
  body.theme-skin-8 .teacher-menu .container > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .2rem .25rem !important;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  body.theme-skin-8 .t8-nav__list > li,
  body.theme-skin-8 .teacher-menu .container > ul > li {
    flex: 0 1 auto !important;
    position: relative !important;
  }
  body.theme-skin-8 .t8-nav__list > li > a,
  body.theme-skin-8 .teacher-menu .container > ul > li > a {
    white-space: nowrap !important;
    padding: .55rem .8rem !important;
    font-size: .84rem !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
    border-radius: 999px !important;
  }
  body.theme-skin-8 .t8-nav__list > li > a:hover,
  body.theme-skin-8 .teacher-menu .container > ul > li:hover > a {
    background: rgba(201, 168, 76, .24) !important;
    color: #fff !important;
  }
  body.theme-skin-8 .teacher-menu ul ul,
  body.theme-skin-8 .t8-nav__list ul {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 4px) !important;
    z-index: 600 !important;
    min-width: 240px !important;
    width: max-content !important;
    max-width: min(320px, 90vw) !important;
    margin: 0 !important;
    padding: .45rem !important;
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18) !important;
    overflow: visible !important;
  }
  body.theme-skin-8 .teacher-menu li:hover > ul,
  body.theme-skin-8 .t8-nav__list li:hover > ul,
  body.theme-skin-8 .t8-nav__list li.is-open > ul {
    display: block !important;
  }
  body.theme-skin-8 .teacher-menu ul ul a,
  body.theme-skin-8 .t8-nav__list ul a {
    color: #1a2744 !important;
    text-shadow: none !important;
    white-space: normal !important;
    border-radius: 10px !important;
  }
  body.theme-skin-8 .teacher-menu ul ul a:hover,
  body.theme-skin-8 .t8-nav__list ul a:hover {
    background: #f5f0e4 !important;
    color: #1a2f5a !important;
  }
  body.theme-skin-8 .t8-nav__caret,
  body.theme-skin-8 .menu-arrow {
    display: none !important;
  }
  body.theme-skin-8 .t8-app {
    isolation: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-skin-8 .t8-notes,
  body.theme-skin-8 .t8-notes span,
  body.theme-skin-8 .t8-app::before,
  body.theme-skin-8 .t8-app::after,
  body.theme-skin-8 .t8-card--main::before,
  body.theme-skin-8 .t8-leaf-card::before,
  body.theme-skin-8 .t8-medal__ring--outer,
  body.theme-skin-8 .t8-clef,
  body.theme-skin-8 .t8-clef__ring {
    animation: none !important;
  }
  body.theme-skin-8 .t8-notes { display: none; }
}
