/* Theme 5 — «Барвинок» (Periwinkle)
   Soft blue-violet · lavender · lilac canvas
   Plus Jakarta Sans + Literata */
html { scroll-behavior: smooth; }

html body.theme-skin-5,
body.theme-skin-5 {
  --ink: #1e1b4b;
  --ink2: #312e81;
  --muted: #6b6b9a;
  --line: #c7c9ef;
  --card: #fbfbff;
  /* primary periwinkle family (reuse --teal* names for layout compatibility) */
  --teal: #6366f1;
  --teal2: #818cf8;
  --teal-deep: #4f46e5;
  --navy: #312e81;
  --navy2: #6366f1;
  --coral: #e11d48;
  --gold: #a78bfa;
  --gold2: #ddd6fe;
  --sky: #eef2ff;
  --shadow: 0 20px 50px rgba(49, 46, 129, .14);
  --shadow-sm: 0 8px 22px rgba(49, 46, 129, .08);
  --radius: 20px;
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Literata", 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(129, 140, 248, .18), transparent 55%),
    radial-gradient(720px 400px at -10% 20%, rgba(99, 102, 241, .10), transparent 50%),
    url('/themes/5/img/bg.png') no-repeat center top,
    linear-gradient(165deg, #eef2ff 0%, #fbfbff 48%, #f5f3ff 100%) !important;
  background-size: auto, auto, 100% auto, auto !important;
}

/* Soft lilac dust flecks (signature effect) */
body.theme-skin-5 .t5-app {
  position: relative;
  isolation: isolate;
}
body.theme-skin-5 .t5-app::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .45;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(167, 139, 250, .55), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 32%, rgba(221, 214, 254, .5), transparent 60%),
    radial-gradient(1.8px 1.8px at 42% 68%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 72%, rgba(167, 139, 250, .45), transparent 60%),
    radial-gradient(1px 1px at 28% 88%, rgba(129, 140, 248, .4), transparent 60%),
    radial-gradient(1.4px 1.4px at 55% 12%, rgba(221, 214, 254, .4), transparent 60%);
  animation: t5-lilac-drift 18s ease-in-out infinite alternate;
}
@keyframes t5-lilac-drift {
  0% { transform: translate3d(0, 0, 0); opacity: .35; }
  50% { opacity: .55; }
  100% { transform: translate3d(-12px, 18px, 0); opacity: .4; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-skin-5 .t5-app::after { animation: none; }
}

body.theme-skin-5 *,
body.theme-skin-5 *::before,
body.theme-skin-5 *::after { box-sizing: border-box; }

body.theme-skin-5 a {
  color: var(--teal);
  text-decoration: none;
  transition: .15s ease;
}
body.theme-skin-5 a:hover { color: var(--navy); }

body.theme-skin-5 img,
body.theme-skin-5 video {
  max-width: 100%;
  height: auto;
}

/* iframes: height:auto collapses YouTube — keep 16:9 for embeds */
body.theme-skin-5 iframe {
  max-width: 100%;
}
body.theme-skin-5 iframe[src*="youtube"],
body.theme-skin-5 iframe[src*="youtu.be"],
body.theme-skin-5 iframe[src*="youtube-nocookie"],
body.theme-skin-5 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-5 .t5-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.theme-skin-5 .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-5 .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-5 #header.t5-masthead,
body.theme-skin-5 .t5-masthead,
body.theme-skin-5 #header.t5-topbar,
body.theme-skin-5 .t5-topbar,
body.theme-skin-5 #header.t5-header,
body.theme-skin-5 .t5-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 #6366f1 !important;
  box-shadow: 0 10px 28px rgba(80, 40, 0, .08) !important;
  background-image: none !important;
}

body.theme-skin-5 .t5-masthead__inner,
body.theme-skin-5 .t5-topbar__inner,
body.theme-skin-5 .t5-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-5 .t5-masthead__copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.theme-skin-5 .t5-masthead__meta,
body.theme-skin-5 .t5-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-5 .t5-topbar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, #a5b4fc, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
  flex: 0 0 auto;
}
body.theme-skin-5 .t5-topbar__sep { opacity: .5; }

body.theme-skin-5 .t5-masthead__actions,
body.theme-skin-5 .t5-topbar__actions,
body.theme-skin-5 .t5-header__actions { flex: 0 0 auto; }

body.theme-skin-5 .t5-header__title-link { color: inherit !important; text-decoration: none !important; }

body.theme-skin-5 .t5-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: #4f46e5 !important;
  letter-spacing: -0.02em;
  background: none !important;
  border: 0 !important;
  text-shadow: none !important;
  max-width: none;
}
body.theme-skin-5 .t5-header__title::before,
body.theme-skin-5 .t5-header__title::after { content: none !important; display: none !important; }

body.theme-skin-5 .t5-header__slogan,
body.theme-skin-5 #slogan {
  margin: 0 !important;
  padding: 0 !important;
  color: #5c4030 !important;
  font: 600 .98rem/1.45 var(--font) !important;
  background: none !important;
  display: block !important;
  max-width: 42rem;
}

/* ===== Left identity: large polaroid avatar above vertical menu ===== */
body.theme-skin-5 .t5-identity {
  padding: 1.15rem 1rem 1rem !important;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(240, 160, 96, .28), transparent 60%),
    linear-gradient(180deg, #fbfbff 0%, #e0e7ff 100%) !important;
  border: 1px solid #c7c9ef !important;
  overflow: visible !important;
}

body.theme-skin-5 .t5-portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 250px;
  margin: .35rem auto 1rem;
}

body.theme-skin-5 .t5-portrait-orbit {
  position: absolute;
  inset: -14px -16px -22px -16px;
  border-radius: 48% 52% 46% 54% / 52% 44% 56% 48%;
  background:
    radial-gradient(circle at 30% 30%, rgba(240, 160, 96, .4), transparent 55%),
    linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(255, 248, 239, .08));
  border: 2px dashed rgba(99, 102, 241, .35);
  animation: t5-orbit-breathe 8s ease-in-out infinite;
  z-index: 0;
}
@keyframes t5-orbit-breathe {
  0%, 100% { transform: rotate(-2deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.03); }
}

body.theme-skin-5 .t5-portrait-ribbon {
  position: absolute;
  top: 16px;
  left: -8px;
  z-index: 4;
  transform: rotate(-12deg);
  background: linear-gradient(180deg, #818cf8, #6366f1);
  color: #fff;
  font: 800 .65rem/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .38rem .7rem .38rem .95rem;
  box-shadow: 0 8px 16px rgba(99, 102, 241, .35);
  border-radius: 4px;
}
body.theme-skin-5 .t5-portrait-ribbon::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: inherit;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

body.theme-skin-5 a.t5-portrait,
body.theme-skin-5 .t5-portrait {
  position: relative;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  max-width: 200px !important;
  height: 228px !important;
  margin: 0 auto !important;
  float: none !important;
  text-decoration: none !important;
  transform: rotate(-2.5deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
body.theme-skin-5 a.t5-portrait:hover {
  transform: rotate(0deg) translateY(-3px) scale(1.02);
}

body.theme-skin-5 .t5-portrait__frame {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px 12px 32px;
  background: linear-gradient(180deg, #fbfbff 0%, #eef2ff 100%);
  border: 1px solid #c7c9ef;
  border-radius: 6px 6px 16px 16px;
  box-shadow:
    0 18px 40px rgba(80, 40, 0, .16),
    0 2px 0 rgba(255, 255, 255, .9) inset;
  position: relative;
}
body.theme-skin-5 .t5-portrait__frame::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 12px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    #c7d2fe 0 5px,
    transparent 5px 9px
  );
  opacity: .7;
}

body.theme-skin-5 .t5-portrait__photo,
body.theme-skin-5 .t5-header__logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 160px;
  border-radius: 4px !important;
  background-color: #e0e7ff !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border: 2px solid #e0e7ff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  float: none !important;
  margin: 0 !important;
}

body.theme-skin-5 .t5-header__logo {
  width: 78px !important;
  height: 78px !important;
  min-height: 0;
  border-radius: 16px !important;
}

body.theme-skin-5 .t5-portrait-stamp {
  position: absolute;
  right: -6px;
  bottom: 4px;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px double #4f46e5;
  color: #4f46e5;
  font: 800 .65rem/52px var(--serif);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255, 254, 249, .92);
  transform: rotate(12deg);
  box-shadow: 0 6px 14px rgba(80, 40, 0, .12);
  opacity: .92;
}

body.theme-skin-5 .t5-identity__name {
  margin: .15rem 0 0;
  padding: 0 .35rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e1b4b;
  letter-spacing: -0.01em;
}

body.theme-skin-5 .t5-header__user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}
body.theme-skin-5 .t5-header__hello {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
body.theme-skin-5 .t5-header__tools {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.theme-skin-5 .t5-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: #eef2ff;
  border: 1px solid #c7c9ef;
  color: var(--teal-deep) !important;
  box-shadow: 0 4px 10px rgba(80, 40, 0, .06);
  font-size: 1rem;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-icon:hover {
  background: #e0e7ff;
  color: #4f46e5 !important;
  transform: translateY(-1px);
  border-color: #c7d2fe;
}
body.theme-skin-5 .t5-icon.is-alert {
  background: var(--coral);
  border-color: #a5b4fc;
  color: #fff !important;
}

body.theme-skin-5 .t5-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-5 .t5-btn--ghost {
  background: linear-gradient(180deg, #fbfbff, #e0e7ff);
  border-color: #c7c9ef;
  color: var(--navy) !important;
  box-shadow: 0 6px 14px rgba(80, 40, 0, .08);
}
body.theme-skin-5 .t5-btn--ghost:hover {
  background: #e0e7ff;
  color: #8a5a00 !important;
  border-color: var(--gold);
}
body.theme-skin-5 .t5-btn--primary {
  background: linear-gradient(180deg, #f6c84c, #a78bfa);
  color: #3730a3 !important;
  box-shadow: 0 10px 22px rgba(240, 180, 41, .35);
}
body.theme-skin-5 .t5-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #3730a3 !important;
}
body.theme-skin-5 .t5-btn--sm {
  padding: .42rem .8rem;
  font-size: .82rem;
}
body.theme-skin-5 .t5-btn--manage,
body.theme-skin-5 .t5-btn.dropdown-toggle {
  background: linear-gradient(180deg, #ddd6fe, #c4b5fd) !important;
  color: #3730a3 !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(240, 180, 41, .32) !important;
}
body.theme-skin-5 .t5-btn--manage:hover,
body.theme-skin-5 .t5-btn.dropdown-toggle:hover {
  filter: brightness(1.05);
  color: #3730a3 !important;
}
body.theme-skin-5 .t5-btn--danger {
  background: linear-gradient(180deg, #818cf8, #6366f1) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(232, 93, 76, .28) !important;
}
body.theme-skin-5 .t5-btn--danger:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

/* Page heading + admin toolbar */
body.theme-skin-5 .t5-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(99, 102, 241, .12), rgba(18, 58, 82, .08)),
    #eef2ff;
  border: 1px solid #c7c9ef;
}
body.theme-skin-5 .t5-page__head--compact {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}
body.theme-skin-5 .t5-toolbar__hint {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  background: #fff;
  border: 1px dashed #c7d2fe;
  border-radius: 999px;
  padding: .4rem .85rem;
}

/* Admin dropdown block */
body.theme-skin-5 .t5-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
}
body.theme-skin-5 .t5-admin .dropdown-menu {
  min-width: 220px;
}
body.theme-skin-5 .t5-admin .dropdown-menu > li > a i {
  width: 1.1rem;
  margin-right: .35rem;
  color: var(--teal);
}
body.theme-skin-5 .t5-admin .dropdown-menu > li.divider {
  height: 1px;
  margin: .35rem 0;
  overflow: hidden;
  background: #eef2ff;
  list-style: none;
}
body.theme-skin-5 .t5-admin__danger,
body.theme-skin-5 .t5-admin .delete {
  color: #b53a22 !important;
}
body.theme-skin-5 .t5-admin__danger:hover,
body.theme-skin-5 .t5-admin .delete:hover {
  background: #eef2ff !important;
  color: #4338ca !important;
}
body.theme-skin-5 .t5-status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 800;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--teal-deep);
  border: 1px solid #c7d2fe;
  white-space: nowrap;
}
body.theme-skin-5 .t5-status--hidden {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}
body.theme-skin-5 .t5-status--link {
  background: #f5f3ff;
  color: #8a5a00;
  border-color: #ddd6fe;
}
body.theme-skin-5 .t5-status--visible {
  background: #eef2ff;
  color: var(--teal-deep);
  border-color: #c7d2fe;
}

body.theme-skin-5 #header .logo,
body.theme-skin-5 #header .entrance,
body.theme-skin-5 #header .head-img,
body.theme-skin-5 #header .head-content,
body.theme-skin-5 #header .outs {
  display: none !important;
}

/* ===== Ticket-strip horizontal menu (unusual, not t1 pill bar) ===== */
body.theme-skin-5 .t5-nav,
body.theme-skin-5 .teacher-menu {
  margin: .35rem 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  width: 100% !important;
  position: relative;
  z-index: 3;
}

body.theme-skin-5 .t5-nav__inner,
body.theme-skin-5 .teacher-menu .container,
body.theme-skin-5 .t5-ticket__inner {
  position: relative !important;
  background:
    linear-gradient(90deg, #6366f1 0%, #818cf8 45%, #a5b4fc 100%) !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow:
    0 14px 34px rgba(99, 102, 241, .32),
    inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  padding: .45rem .85rem !important;
  width: min(100% - 2rem, var(--max)) !important;
  max-width: var(--max) !important;
}

/* Perforated ticket notches */
body.theme-skin-5 .t5-ticket__notch {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: #eef2ff;
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, .25);
  z-index: 2;
  pointer-events: none;
}
body.theme-skin-5 .t5-ticket__notch--l { left: -11px; }
body.theme-skin-5 .t5-ticket__notch--r { right: -11px; }
body.theme-skin-5 .t5-ticket__inner::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 50%;
  border-top: 2px dashed rgba(255, 255, 255, .35);
  pointer-events: none;
  z-index: 0;
}
body.theme-skin-5 .t5-ticket__inner > * { position: relative; z-index: 1; }

/* Toggle hidden on desktop; shown in mobile MQ */
body.theme-skin-5 .t5-nav__toggle {
  display: none;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: .75rem;
  padding: .45rem .65rem;
  color: #fff;
  font: 800 .95rem/1.2 var(--font);
  text-align: left;
}
body.theme-skin-5 .t5-nav__toggle-label { flex: 1 1 auto; }

body.theme-skin-5 .t5-nav__list,
body.theme-skin-5 .teacher-menu .container > ul {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: none;
  font-size: inherit;
}

body.theme-skin-5 .t5-nav__list > li,
body.theme-skin-5 .teacher-menu .container > ul > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

body.theme-skin-5 .t5-nav__list > li > a,
body.theme-skin-5 .teacher-menu .container > ul > li > a {
  display: block;
  padding: .7rem 1.05rem;
  border-radius: 12px;
  color: #fff;
  font: 800 .9rem/1.25 var(--font);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}

body.theme-skin-5 .t5-nav__list > li > a:hover,
body.theme-skin-5 .teacher-menu .container > ul > li:hover > a {
  background: rgba(255, 255, 255, .22);
  color: #fff;
  text-decoration: none;
}

/* Caret for parents */
body.theme-skin-5 .t5-nav__caret,
body.theme-skin-5 .t5-nav .menu-arrow {
  display: none;
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  padding: 0;
}
body.theme-skin-5 .t5-nav__caret::before,
body.theme-skin-5 .t5-nav .menu-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .15s ease;
}
body.theme-skin-5 .t5-nav li.is-open > .t5-nav__caret::before,
body.theme-skin-5 .t5-nav li.is-open > .menu-arrow::before {
  transform: translate(-50%, -30%) rotate(225deg);
}

body.theme-skin-5 .teacher-menu ul ul,
body.theme-skin-5 .t5-nav__list ul {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 50;
  min-width: 220px;
  width: auto;
  margin: 0;
  padding: .4rem;
  background: #fff;
  border: 2px solid #c7d2fe;
  border-radius: 14px;
  box-shadow: var(--shadow);
  list-style: none;
}

/* Desktop: hover opens submenu; also .is-open for keyboard/JS */
@media (min-width: 992px) {
  body.theme-skin-5 .teacher-menu li:hover > ul,
  body.theme-skin-5 .t5-nav__list li:hover > ul,
  body.theme-skin-5 .t5-nav__list li.is-open > ul {
    display: block;
  }
}

body.theme-skin-5 .teacher-menu ul ul a,
body.theme-skin-5 .t5-nav__list ul a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 10px;
  color: var(--ink2);
  font: 700 .88rem/1.3 var(--font);
  background: transparent;
  white-space: normal;
}

body.theme-skin-5 .teacher-menu ul ul a:hover,
body.theme-skin-5 .t5-nav__list ul a:hover {
  background: #eef2ff;
  color: #4f46e5;
}

/* ===== 3-column shell: left identity+menu | main | right widgets ===== */
body.theme-skin-5 .t5-stage,
body.theme-skin-5 .t5-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-5 .t5-stage__main-col,
body.theme-skin-5 .t5-main {
  min-width: 0;
}

body.theme-skin-5 .t5-side--left,
body.theme-skin-5 .t5-side--right,
body.theme-skin-5 .t5-rail {
  display: grid;
  gap: .9rem;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Paper fold accent on main card */
body.theme-skin-5 .t5-paper {
  position: relative;
  overflow: hidden;
}
body.theme-skin-5 .t5-paper__fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 42px 42px 0;
  border-color: transparent #a5b4fc transparent transparent;
  filter: drop-shadow(-2px 2px 2px rgba(80, 40, 0, .12));
  z-index: 2;
  pointer-events: none;
}
body.theme-skin-5 .t5-paper__fold::after {
  content: "";
  position: absolute;
  top: 0;
  right: -42px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 42px 42px;
  border-color: transparent transparent #e0e7ff transparent;
}

body.theme-skin-5 .t5-card {
  background: var(--card) !important;
  border: 1px solid #c7c9ef !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 1.05rem !important;
}

body.theme-skin-5 .t5-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%, #fbfbff 100%) !important;
}

body.theme-skin-5 .t5-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, #5b5bd6, #a5b4fc) !important;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 0 -3px 0 rgba(240, 180, 41, .85);
}

/* Vertical menu */
body.theme-skin-5 .t5-vmenu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.theme-skin-5 .t5-vmenu li {
  list-style: none !important;
  margin: 0 0 .2rem !important;
  padding: 0 !important;
  position: relative;
}
body.theme-skin-5 .t5-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: #eef2ff !important;
  border: 1px solid #c7c9ef !important;
  border-left: 4px solid #a5b4fc !important;
}
body.theme-skin-5 .t5-vmenu > ul > li > a:hover,
body.theme-skin-5 .t5-vmenu li.active > a {
  background: linear-gradient(90deg, #e0e7ff, #eef2ff) !important;
  color: var(--teal-deep) !important;
  border-color: #c7d2fe !important;
  border-left-color: var(--coral) !important;
}
body.theme-skin-5 .t5-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 #c7d2fe !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
}
body.theme-skin-5 .t5-vmenu li:hover > ul { display: block !important; }
body.theme-skin-5 .t5-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-5 .t5-vmenu ul ul a:hover {
  background: #f5f3ff !important;
  color: var(--teal) !important;
}

body.theme-skin-5 .t5-polls {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

/* Search */
body.theme-skin-5 .t5-search {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: .45rem !important;
  margin: 0 !important;
  width: 100% !important;
}
body.theme-skin-5 .t5-search input[type="text"] {
  width: 100% !important;
  max-width: none !important;
  border: 2px solid #c7d2fe !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-5 .t5-search input[type="text"]:focus {
  outline: none !important;
  border-color: #a5b4fc !important;
  box-shadow: 0 0 0 3px rgba(240, 160, 96, .22) !important;
  background: #fff !important;
}
body.theme-skin-5 .t5-search button {
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #818cf8, #6366f1) !important;
  color: #fff !important;
  font: 800 .9rem/1.2 var(--font) !important;
  padding: .75rem 1rem !important;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .32);
  height: auto !important;
  width: auto !important;
}

/* Content */
body.theme-skin-5 .t5-page { width: 100%; }
body.theme-skin-5 .breadcrumb {
  background: linear-gradient(90deg, #eef2ff, #eef2ff) !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-5 .breadcrumb > li { display: inline; }
body.theme-skin-5 .breadcrumb > li + li:before {
  content: "›";
  color: #7aa0b0;
  padding: 0 .45rem;
}
body.theme-skin-5 .breadcrumb a { color: var(--teal); font-weight: 700; }
body.theme-skin-5 .breadcrumb .active { color: var(--muted); }

body.theme-skin-5 .t5-article__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
  padding-bottom: .9rem;
  border-bottom: 3px solid #e0e7ff;
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-article__meta i { color: var(--teal); margin-right: .25rem; }

body.theme-skin-5 .t5-article__body.prose,
body.theme-skin-5 .prose {
  color: #243846 !important;
  font-size: 1.05rem !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere;
}
body.theme-skin-5 .prose p {
  margin: 0 0 .95rem !important;
  padding: 0 !important;
  color: inherit !important;
  font: inherit !important;
}
body.theme-skin-5 .prose h2,
body.theme-skin-5 .prose h3,
body.theme-skin-5 .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-5 .prose h2 { font-size: 1.4rem !important; }
body.theme-skin-5 .prose h3 { font-size: 1.2rem !important; }
body.theme-skin-5 .prose img {
  border-radius: 14px;
  margin: .55rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
body.theme-skin-5 .prose a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-5 .prose ul,
body.theme-skin-5 .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
body.theme-skin-5 .prose li { margin-bottom: .35rem; }
body.theme-skin-5 .prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: .85rem 0 1.1rem;
  background: #fff;
}
body.theme-skin-5 .prose td,
body.theme-skin-5 .prose th {
  border: 1px solid var(--line);
  padding: .55rem .7rem;
}

body.theme-skin-5 .t5-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0;
}
body.theme-skin-5 .t5-gallery img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #c7d2fe;
  box-shadow: var(--shadow-sm);
}

/* Photo galleries list + album */
body.theme-skin-5 .t5-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.05rem;
}
body.theme-skin-5 .t5-album-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c7c9ef;
  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-5 .t5-album-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c7d2fe;
  color: inherit !important;
}
body.theme-skin-5 .t5-album-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(145deg, #eef2ff, #eef2ff);
  overflow: hidden;
}
body.theme-skin-5 .t5-album-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.theme-skin-5 .t5-album-card__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--teal-deep);
  opacity: .55;
}
body.theme-skin-5 .t5-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(28, 18, 8, .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}
body.theme-skin-5 .t5-album-card__body {
  padding: .95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
body.theme-skin-5 .t5-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-5 .t5-album-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
body.theme-skin-5 .t5-album-card__meta i {
  color: var(--teal);
  margin-right: .2rem;
}
body.theme-skin-5 .t5-album-card__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
  margin-top: .25rem;
}
body.theme-skin-5 .t5-album-card__thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e7ff;
}

body.theme-skin-5 .t5-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, #eef2ff, #eef2ff);
  border: 1px solid #c5e6df;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
body.theme-skin-5 .t5-album-meta i {
  color: var(--teal);
  margin-right: .25rem;
}
body.theme-skin-5 .t5-album-desc {
  margin-bottom: 1.25rem !important;
}
body.theme-skin-5 .t5-page__kicker a {
  color: inherit !important;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-page__kicker a:hover {
  color: var(--navy) !important;
  text-decoration: underline !important;
}

body.theme-skin-5 .t5-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
body.theme-skin-5 .t5-photo-grid__item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #c7c9ef;
  box-shadow: var(--shadow-sm);
  background: #eef2ff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
body.theme-skin-5 .t5-photo-grid__item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: #a5b4fc;
}
body.theme-skin-5 .t5-photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  body.theme-skin-5 .t5-albums {
    grid-template-columns: 1fr;
  }
  body.theme-skin-5 .t5-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Feedback forms (treatment / guestbook / reviews) ===== */
body.theme-skin-5 .t5-intro {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef2ff, #fff);
  border: 1px solid #c7c9ef;
}
body.theme-skin-5 .t5-empty--compact {
  margin-bottom: 1.25rem;
  padding: 1.6rem 1rem;
}

body.theme-skin-5 .t5-form-card {
  margin-top: 1.35rem;
  border-radius: 20px;
  border: 1px solid #c7c9ef;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
body.theme-skin-5 .t5-form-card__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(115deg, #1e1b4b 0%, #5b5bd6 60%, #a5b4fc 100%);
  color: #fff;
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-form-card__lead {
  margin: 0 !important;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88) !important;
}
body.theme-skin-5 .t5-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-5 .t5-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .95rem 1rem;
}
body.theme-skin-5 .t5-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
body.theme-skin-5 .t5-field--full { grid-column: 1 / -1; }
body.theme-skin-5 .t5-label {
  font-size: .88rem;
  font-weight: 800;
  color: var(--ink2);
  margin: 0;
}
body.theme-skin-5 .t5-req { color: #6366f1; }
body.theme-skin-5 .t5-input,
body.theme-skin-5 .t5-form .form-control,
body.theme-skin-5 .t5-form input[type="text"],
body.theme-skin-5 .t5-form input[type="email"],
body.theme-skin-5 .t5-form textarea {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: .8rem .95rem !important;
  border: 2px solid #c7c9ef !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-5 .t5-textarea,
body.theme-skin-5 .t5-form textarea {
  min-height: 140px !important;
  resize: vertical;
}
body.theme-skin-5 .t5-input:focus,
body.theme-skin-5 .t5-form .form-control:focus,
body.theme-skin-5 .t5-form input:focus,
body.theme-skin-5 .t5-form textarea:focus {
  outline: none !important;
  border-color: #a5b4fc !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(240, 160, 96, .18) !important;
}
body.theme-skin-5 .t5-captcha {
  padding: .65rem .75rem;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px dashed #c7d2fe;
  overflow-x: auto;
}
body.theme-skin-5 .t5-captcha iframe,
body.theme-skin-5 .t5-captcha > div {
  max-width: 100%;
}
body.theme-skin-5 .t5-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-5 .t5-check input {
  width: 1.1rem !important;
  height: 1.1rem !important;
  margin: .15rem 0 0 !important;
  flex: 0 0 auto;
  accent-color: #5b5bd6;
}
body.theme-skin-5 .t5-check a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-5 .t5-form__actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
body.theme-skin-5 .t5-form__submit {
  min-width: 200px;
  padding: .85rem 1.35rem !important;
}

/* Message list cards */
body.theme-skin-5 .t5-msg-list {
  display: grid;
  gap: .9rem;
  margin: 0 0 1.25rem;
}
body.theme-skin-5 .t5-msg {
  border: 1px solid #c7c9ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fcfb);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem;
}
body.theme-skin-5 .t5-msg--review {
  border-left: 4px solid #c4b5fd;
}
body.theme-skin-5 .t5-msg--reply {
  margin-top: .7rem;
  background: #eef2ff;
  border-color: #c7d2fe;
  border-left: 4px solid #a5b4fc;
  box-shadow: none;
}
body.theme-skin-5 .t5-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem .85rem;
  margin-bottom: .65rem;
}
body.theme-skin-5 .t5-msg__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #5b5bd6, #4f46e5);
  flex: 0 0 auto;
}
body.theme-skin-5 .t5-msg__avatar--gold {
  background: linear-gradient(145deg, #c4b5fd, #c8870e);
  color: #3730a3;
}
body.theme-skin-5 .t5-msg__avatar--teal {
  background: linear-gradient(145deg, #a5b4fc, #6366f1);
}
body.theme-skin-5 .t5-msg__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .65rem;
  flex: 1 1 auto;
  min-width: 0;
}
body.theme-skin-5 .t5-msg__name {
  font-size: .98rem;
  color: var(--navy);
}
body.theme-skin-5 .t5-msg__date {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
body.theme-skin-5 .t5-msg__badge {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: var(--teal-deep);
}
body.theme-skin-5 .t5-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin-left: auto;
}
body.theme-skin-5 .t5-msg__link {
  font-size: .82rem;
  font-weight: 800;
  color: var(--teal) !important;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-msg__link:hover { color: var(--navy) !important; }
body.theme-skin-5 .t5-msg__link--danger { color: #b53a22 !important; }
body.theme-skin-5 .t5-msg__body {
  color: #2b3d4b !important;
  font-size: .98rem !important;
  line-height: 1.6 !important;
}
body.theme-skin-5 .t5-msg__replies {
  margin-top: .35rem;
  padding-left: .35rem;
}

/* Kill legacy well / horizontal form leftovers on feedback pages */
body.theme-skin-5 .well,
body.theme-skin-5 #e0e7ffk-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-5 .t5-msg--faq {
  border-left: 4px solid #5b5bd6;
}

/* ===== Delete confirmation modals ===== */
body.theme-skin-5 .t5-delete-modal.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2200;
  overflow: auto;
  background: rgba(28, 18, 8, .55);
  padding: 1rem;
}
body.theme-skin-5 .t5-delete-modal.in,
body.theme-skin-5 .t5-delete-modal.show {
  display: block !important;
}
body.theme-skin-5 .t5-delete-dialog.modal-dialog {
  width: min(92vw, 420px) !important;
  margin: 14vh auto !important;
}
body.theme-skin-5 .t5-delete.modal-content {
  border: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(28, 18, 8, .38) !important;
  background: #fff !important;
}
body.theme-skin-5 .t5-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%, #6366f1 100%);
  color: #fff;
}
body.theme-skin-5 .t5-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-5 .t5-delete__title,
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-delete__close:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-delete__footer .t5-btn {
  min-width: 132px;
}
body.theme-skin-5 .t5-delete__footer .t5-btn--ghost {
  background: #fff !important;
  border: 1px solid #c7c9ef !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}
body.theme-skin-5 .t5-delete__footer .t5-btn--ghost:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

@media (max-width: 720px) {
  body.theme-skin-5 .t5-form__grid {
    grid-template-columns: 1fr;
  }
  body.theme-skin-5 .t5-msg__actions {
    width: 100%;
    margin-left: 0;
  }
  body.theme-skin-5 .t5-form__submit {
    width: 100%;
  }
}
body.theme-skin-5 .t5-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

body.theme-skin-5 .t5-empty {
  text-align: center;
  padding: 2.8rem 1.2rem;
  color: var(--muted);
  background: linear-gradient(180deg, #eef2ff, #eef2ff);
  border: 2px dashed #c7d2fe;
  border-radius: 16px;
}
body.theme-skin-5 .t5-empty h2 {
  margin: 0 0 .45rem;
  color: var(--ink);
  font-family: var(--serif);
}
body.theme-skin-5 .t5-empty p {
  margin: 0 auto;
  max-width: 36rem;
}

/* Feed */
body.theme-skin-5 .t5-feed { margin-top: 1.6rem; }
body.theme-skin-5 .t5-feed__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 .9rem;
  color: var(--navy);
  padding-bottom: .5rem;
  border-bottom: 3px solid #a5b4fc;
  display: inline-block;
}
body.theme-skin-5 .t5-feed__list { display: grid; gap: 1rem; }
body.theme-skin-5 .t5-feed-item {
  border: 1px solid #c7c9ef;
  border-left: 5px solid #a5b4fc;
  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-5 .t5-feed-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-left-color: var(--coral);
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-feed-item__title a { color: var(--ink); font-weight: 700; }
body.theme-skin-5 .t5-feed-item__title a:hover { color: var(--teal); }
body.theme-skin-5 .t5-feed-item__body {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
body.theme-skin-5 .t5-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-5 .t5-feed-item__text {
  color: #312e81;
  font-size: .96rem;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}
body.theme-skin-5 .t5-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-5 .t5-feed-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px dashed #c7c9ef;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
body.theme-skin-5 .t5-feed-item__meta i {
  color: var(--teal);
  margin-right: .25rem;
}

body.theme-skin-5 .t5-pager {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}
body.theme-skin-5 .t5-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.theme-skin-5 .t5-pager .pagination > li > a,
body.theme-skin-5 .t5-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 #c7c9ef;
  background: #fff;
  color: var(--navy) !important;
  font-weight: 700;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-pager .pagination > .active > span,
body.theme-skin-5 .t5-pager .pagination > .active > a {
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-color: transparent;
  color: #fff !important;
}
body.theme-skin-5 .t5-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, #e0e7ff, #eef2ff);
  border: 1px solid #c7d2fe;
}

/* Bootstrap remnants */
body.theme-skin-5 .panel {
  border: 1px solid #c7c9ef !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-sm) !important;
  background: #fff !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}
body.theme-skin-5 .panel-heading {
  background: linear-gradient(90deg, #5b5bd6, #a5b4fc) !important;
  border-bottom: 0 !important;
  padding: .9rem 1rem !important;
  color: #fff !important;
}
body.theme-skin-5 .panel-heading h3,
body.theme-skin-5 .panel-heading a {
  color: #fff !important;
}
body.theme-skin-5 .panel-body {
  color: #2b3d4b !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
body.theme-skin-5 .panel-footer {
  background: #eef2ff !important;
  border-top: 1px solid #c7c9ef !important;
}
body.theme-skin-5 .panel h3,
body.theme-skin-5 .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-5 .t5-calendar {
  padding: 0 !important;
  overflow: hidden;
}
body.theme-skin-5 .t5-calendar .calendar,
body.theme-skin-5 .calendar {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  font-family: var(--font) !important;
}
body.theme-skin-5 .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, #5b5bd6, #a5b4fc 55%, #e67400) !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
body.theme-skin-5 .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-5 .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-5 .calendar .month:hover {
  background: rgba(255, 255, 255, .3) !important;
  color: #fff !important;
}
body.theme-skin-5 .calendar-prev,
body.theme-skin-5 .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-5 .calendar-prev { right: 3.1rem !important; }
body.theme-skin-5 .calendar-next { right: .85rem !important; }
body.theme-skin-5 .calendar-prev::before { content: "‹"; font-weight: 900; }
body.theme-skin-5 .calendar-next::before { content: "›"; font-weight: 900; }
body.theme-skin-5 .calendar-prev:hover,
body.theme-skin-5 .calendar-next:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-5 .calendar .out,
body.theme-skin-5 .calendar .in {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 1rem 1rem !important;
  float: none !important;
  box-sizing: border-box !important;
}
body.theme-skin-5 .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-5 .calendar .days .cell {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  display: block !important;
}
body.theme-skin-5 .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-5 .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-5 .calendar .list:after,
body.theme-skin-5 .calendar .clear {
  display: none !important;
}
body.theme-skin-5 .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-5 .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: #eef2ff !important;
  color: var(--ink2) !important;
  font: 700 .78rem/1 var(--font) !important;
  box-sizing: border-box !important;
}
body.theme-skin-5 .calendar .cell.today > .numb {
  background: #f5f3ff !important;
  box-shadow: inset 0 0 0 2px #c4b5fd !important;
  color: #8a5a00 !important;
}
body.theme-skin-5 .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, #818cf8, #6366f1) !important;
  color: #fff !important;
  font: 800 .78rem/1 var(--font) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(99, 102, 241, .28);
  transition: transform .12s ease, filter .12s ease;
}
body.theme-skin-5 .calendar .event:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
  color: #fff !important;
}

body.theme-skin-5 .t5-links ul,
body.theme-skin-5 .t5-links .useful-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.theme-skin-5 .t5-links a {
  display: block;
  padding: .5rem .65rem;
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink2) !important;
  border: 1px solid transparent;
}
body.theme-skin-5 .t5-links a:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: var(--teal) !important;
}

/* Footer */
body.theme-skin-5 .t5-footer {
  margin-top: auto !important;
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(240, 160, 96, .18), transparent 60%),
    linear-gradient(120deg, #1c1208, #1e1b4b 48%, #1e1b4b) !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-5 .t5-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
body.theme-skin-5 .t5-footer__brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}
body.theme-skin-5 .t5-footer__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1c1208;
  background: linear-gradient(145deg, #c4b5fd, #a5b4fc);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
  flex: 0 0 auto;
}
body.theme-skin-5 .t5-footer__copy {
  margin: 0;
  min-width: 0;
}
body.theme-skin-5 .t5-footer__line {
  margin: 0 0 .2rem !important;
  font-size: .95rem;
  font-weight: 600;
  color: #c7d2fe !important;
  line-height: 1.4;
}
body.theme-skin-5 .t5-footer a:not(.t5-footer__btn) {
  color: #c7d2fe !important;
  font-weight: 800;
  text-decoration: none;
}
body.theme-skin-5 .t5-footer a:not(.t5-footer__btn):hover {
  color: #c4b5fd !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-5 .t5-footer__tag {
  margin: 0 !important;
  font-size: .8rem;
  font-weight: 600;
  color: #94a3b8 !important;
  letter-spacing: .02em;
}
body.theme-skin-5 .t5-footer__counters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  opacity: .92;
}

/* Cookie / personal-data banner */
body.theme-skin-5 .personal-data-processing-agreement-widget,
body.theme-skin-5 .t5-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-5 .t5-cookie .wrapper,
body.theme-skin-5 .t5-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, #1e1b4b 0%, #5b5bd6 70%, #a5b4fc 100%) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(28, 18, 8, .35) !important;
  height: auto !important;
  justify-content: flex-start !important;
}
body.theme-skin-5 .t5-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-5 .t5-cookie .acceptance-text,
body.theme-skin-5 .t5-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-5 .t5-cookie .acceptance-text a,
body.theme-skin-5 .t5-cookie__text a {
  color: #f6e27a !important;
  font-weight: 800 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-5 .t5-cookie .acceptance-text a:hover {
  color: #fff !important;
}
body.theme-skin-5 .t5-cookie .acceptance-button,
body.theme-skin-5 .t5-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: #1c1208 !important;
  background: linear-gradient(180deg, #ddd6fe, #c4b5fd) !important;
  box-shadow: 0 10px 22px rgba(240, 180, 41, .35) !important;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
body.theme-skin-5 .t5-cookie .acceptance-button:hover,
body.theme-skin-5 .t5-cookie__btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===== Auth popups (login / reset) ===== */
body.theme-skin-5 .mfp-bg {
  background: rgba(28, 18, 8, .62) !important;
  opacity: 1 !important;
}
body.theme-skin-5 .mfp-content {
  max-width: 440px;
  margin: 0 auto;
}
body.theme-skin-5 .white-popup.t5-auth,
body.theme-skin-5 #login.t5-auth,
body.theme-skin-5 #repass.t5-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(28, 18, 8, .35) !important;
  border: 1px solid rgba(255, 255, 255, .2);
}
body.theme-skin-5 .t5-auth__hero {
  padding: 1.45rem 1.4rem 1.15rem;
  background: linear-gradient(125deg, #1e1b4b 0%, #5b5bd6 58%, #a5b4fc 100%);
  color: #fff;
  text-align: center;
}
body.theme-skin-5 .t5-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-5 .t5-auth__title,
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-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-5 .t5-auth__tabs {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin: 0 0 1rem !important;
}
body.theme-skin-5 .t5-auth__tab {
  margin: 0 !important;
  cursor: pointer;
  display: block !important;
}
body.theme-skin-5 .t5-auth__tab > input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
body.theme-skin-5 .t5-auth__tab svg,
body.theme-skin-5 .t5-auth .btn-radio svg {
  display: none !important;
}
body.theme-skin-5 .t5-auth__tab-ui {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem .5rem;
  border-radius: 12px;
  border: 2px solid #c7c9ef;
  background: #eef2ff;
  color: var(--navy) !important;
  font-weight: 800;
  font-size: .88rem;
  transition: .15s ease;
}
body.theme-skin-5 .t5-auth__tab > input:checked + .t5-auth__tab-ui,
body.theme-skin-5 .t5-auth__tab:has(input:checked) .t5-auth__tab-ui {
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: var(--teal-deep) !important;
  box-shadow: 0 6px 14px rgba(99, 102, 241, .15);
}
body.theme-skin-5 .t5-auth__field {
  position: relative;
  margin: 0 0 .85rem;
}
body.theme-skin-5 .t5-auth__field--pass { margin-bottom: 1rem; }
body.theme-skin-5 .t5-auth input.t5-auth__input,
body.theme-skin-5 .t5-auth input[type="text"],
body.theme-skin-5 .t5-auth input[type="email"],
body.theme-skin-5 .t5-auth input[type="password"],
body.theme-skin-5 .t5-auth input.email,
body.theme-skin-5 .t5-auth input.pass,
body.theme-skin-5 .t5-auth input.repass,
body.theme-skin-5 .t5-auth input.changeinput {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: .85rem 1rem !important;
  border: 2px solid #c7c9ef !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-5 .t5-auth__field--pass input {
  padding-right: 3rem !important;
}
body.theme-skin-5 .t5-auth input:focus {
  outline: none !important;
  border-color: #a5b4fc !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(240, 160, 96, .18) !important;
}
body.theme-skin-5 .t5-auth__eye,
body.theme-skin-5 .t5-auth .toggle-password,
body.theme-skin-5 .t5-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-5 .t5-auth__eye:hover { color: var(--teal) !important; background: #eef2ff !important; }
body.theme-skin-5 .t5-auth__error:empty { display: none; }
body.theme-skin-5 .t5-auth__error:not(:empty),
body.theme-skin-5 .t5-auth .logerr:not(:empty),
body.theme-skin-5 .t5-auth .passerr:not(:empty) {
  display: block;
  margin-top: .4rem;
  color: #b53a22 !important;
  font-size: .85rem;
  font-weight: 700;
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-auth__remember input {
  width: 1.05rem !important;
  height: 1.05rem !important;
  margin: 0 !important;
  accent-color: #5b5bd6;
}
body.theme-skin-5 .t5-auth__link,
body.theme-skin-5 .t5-auth__back {
  color: var(--teal) !important;
  font-weight: 800 !important;
  font-size: .9rem !important;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-auth__link:hover,
body.theme-skin-5 .t5-auth__back:hover {
  color: var(--navy) !important;
  text-decoration: underline !important;
}
body.theme-skin-5 .t5-auth__back {
  display: block;
  text-align: center;
  margin-top: .85rem;
}
body.theme-skin-5 .t5-auth__submit,
body.theme-skin-5 .t5-auth .btn-submit,
body.theme-skin-5 .t5-auth input[type="submit"],
body.theme-skin-5 .t5-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, #818cf8, #6366f1) !important;
  color: #fff !important;
  font: 800 1rem/1.2 var(--font) !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(99, 102, 241, .32) !important;
  float: none !important;
  height: auto !important;
  transition: transform .15s ease, filter .15s ease;
}
body.theme-skin-5 .t5-auth__submit:hover,
body.theme-skin-5 .t5-auth .btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff !important;
}
body.theme-skin-5 .t5-auth__flash:empty { display: none; }
body.theme-skin-5 .t5-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-5 .t5-auth__flash--ok:not(:empty) {
  background: #eef2ff;
  color: var(--teal-deep);
  border: 1px solid #c7d2fe;
}
body.theme-skin-5 .t5-auth__flash--err:not(:empty) {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
/* hide legacy radio styles leftovers */
body.theme-skin-5 .t5-auth .btn-radio span:not(.t5-auth__tab-ui) {
  /* handled by tab-ui */
}

/* Flash / design-change modal */
body.theme-skin-5 .t5-flash-modal.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  overflow: auto;
  background: rgba(28, 18, 8, .55);
  padding: 1rem;
}
body.theme-skin-5 .t5-flash-modal.in,
body.theme-skin-5 .t5-flash-modal.show {
  display: block !important;
}
body.theme-skin-5 .t5-flash-dialog.modal-dialog {
  width: min(92vw, 440px) !important;
  margin: 12vh auto !important;
}
body.theme-skin-5 .t5-flash.modal-content {
  border: 0 !important;
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(28, 18, 8, .35) !important;
  background: #fff !important;
}
body.theme-skin-5 .t5-flash__hero {
  position: relative;
  padding: 1.5rem 1.35rem 1.15rem;
  text-align: center;
  background: linear-gradient(125deg, #1e1b4b 0%, #5b5bd6 55%, #a5b4fc 100%);
  color: #fff;
}
body.theme-skin-5 .t5-flash-modal--error .t5-flash__hero {
  background: linear-gradient(125deg, #7a1f18 0%, #b53a22 55%, #6366f1 100%);
}
body.theme-skin-5 .t5-flash-modal--info .t5-flash__hero {
  background: linear-gradient(125deg, #4f46e5 0%, #1f6f8a 60%, #2a8fb0 100%);
}
body.theme-skin-5 .t5-flash-modal--design .t5-flash__hero {
  background:
    radial-gradient(420px 160px at 90% 0%, rgba(240, 180, 41, .35), transparent 55%),
    linear-gradient(125deg, #1e1b4b 0%, #5b5bd6 50%, #a5b4fc 100%);
}
body.theme-skin-5 .t5-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-5 .t5-flash__title,
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-flash__close:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-5 .t5-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-5 .t5-flash__hint {
  margin: .85rem 0 0 !important;
  padding: .7rem .85rem !important;
  border-radius: 12px !important;
  background: #eef2ff !important;
  border: 1px solid #c7c9ef !important;
  color: var(--muted) !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
  text-align: left !important;
}
body.theme-skin-5 .t5-flash__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body.theme-skin-5 .t5-flash__list li {
  padding: .45rem .65rem !important;
  margin: 0 0 .35rem !important;
  border-radius: 10px !important;
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #4338ca !important;
}
body.theme-skin-5 .t5-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-5 .t5-flash__ok {
  min-width: 160px;
}

/* Minimal components (no Bootstrap CSS) */
body.theme-skin-5 .dropdown { position: relative; display: inline-block; }
body.theme-skin-5 .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 #e0e7ff;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(28, 18, 8, .12);
}
body.theme-skin-5 .dropdown.open > .dropdown-menu,
body.theme-skin-5 .dropdown-menu.show { display: block; }
body.theme-skin-5 .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-5 .dropdown-menu > li > a:hover {
  background: #eef2ff;
  color: #5b5bd6;
}
body.theme-skin-5 .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-5 .modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow: auto;
  background: rgba(28, 18, 8, .45);
}
body.theme-skin-5 .modal.in,
body.theme-skin-5 .modal.show { display: block; }
body.theme-skin-5 .modal-dialog {
  width: min(92vw, 520px);
  margin: 8vh auto;
}
body.theme-skin-5 .modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
  overflow: hidden;
}
body.theme-skin-5 .modal-header,
body.theme-skin-5 .modal-body,
body.theme-skin-5 .modal-footer { padding: 1rem 1.15rem; }
body.theme-skin-5 .modal-header { border-bottom: 1px solid #e2e8f0; }
body.theme-skin-5 .modal-footer { border-top: 1px solid #e2e8f0; text-align: right; }

/* BVI — in masthead (not floating) */
body.theme-skin-5 .t5-bvi,
body.theme-skin-5 .t5-bvi--header {
  position: static;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: inline-grid;
  place-items: center;
  padding: 6px;
  border: 2px solid #a5b4fc;
  flex: 0 0 auto;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
body.theme-skin-5 .t5-bvi--header:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: #6366f1;
}
/* Gap after logout / login group — BVI sits furthest right */
body.theme-skin-5 .t5-bvi--trail {
  margin-left: 1.15rem;
}
body.theme-skin-5 .t5-bvi img,
body.theme-skin-5 .t5-bvi--header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
body.theme-skin-5 .t5-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

body.theme-skin-5 .t5-top {
  position: fixed !important;
  right: 1rem !important;
  bottom: 1rem !important;
  z-index: 10050 !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid !important;
  place-items: center;
  background: linear-gradient(180deg, #a5b4fc, #6366f1);
  color: #fff !important;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(99, 102, 241, .45);
  text-decoration: none !important;
  border: 2px solid #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s ease, transform .15s ease, filter .15s ease, visibility .2s ease;
}
body.theme-skin-5 .t5-top.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.theme-skin-5 .t5-top:hover {
  filter: brightness(1.08);
  color: #fff !important;
  transform: translateY(-2px);
}
body.theme-skin-5 .t5-top:focus-visible {
  outline: 3px solid rgba(167, 139, 250, .55);
  outline-offset: 2px;
}
/* Keep support float above bottom controls, below back-to-top */
body.theme-skin-5 .support-float {
  bottom: 5.75rem !important;
  z-index: 10040 !important;
}
@media (max-width: 640px) {
  body.theme-skin-5 .t5-top {
    right: .85rem !important;
    bottom: .85rem !important;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  body.theme-skin-5 .support-float {
    bottom: 5.35rem !important;
  }
}

body.theme-skin-5 .t5-alert {
  max-width: var(--max);
  margin: .85rem auto;
  padding: .85rem 1.05rem;
  border-radius: 12px;
  background: #eef2ff;
  color: #4338ca;
  border: 2px solid #c7d2fe;
  font-weight: 700;
}
body.theme-skin-5 .t5-alert--danger {
  background: #eef2ff;
  border-color: #a5b4fc;
}

/* Forms (feedback pages etc.) */
body.theme-skin-5 .form-control,
body.theme-skin-5 input[type="text"],
body.theme-skin-5 input[type="email"],
body.theme-skin-5 input[type="password"],
body.theme-skin-5 textarea,
body.theme-skin-5 select {
  border: 2px solid #c7d2fe !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-5 .btn,
body.theme-skin-5 button[type="submit"],
body.theme-skin-5 input[type="submit"] {
  border-radius: 12px !important;
  font-weight: 800 !important;
}
body.theme-skin-5 .btn-primary,
body.theme-skin-5 button[type="submit"],
body.theme-skin-5 input[type="submit"] {
  background: linear-gradient(180deg, #818cf8, #6366f1) !important;
  border: 0 !important;
  color: #fff !important;
  padding: .65rem 1.2rem !important;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .28);
}

/* Responsive — 3 columns collapse */
@media (max-width: 1100px) {
  body.theme-skin-5 .t5-stage,
  body.theme-skin-5 .t5-shell {
    grid-template-columns: 230px minmax(0, 1fr) 220px !important;
    gap: .9rem !important;
  }
  body.theme-skin-5 .t5-portrait-wrap { max-width: 190px; height: 220px; }
  body.theme-skin-5 a.t5-portrait,
  body.theme-skin-5 .t5-portrait {
    max-width: 172px !important;
    height: 198px !important;
  }
}

@media (max-width: 991px) {
  body.theme-skin-5 .t5-stage,
  body.theme-skin-5 .t5-shell {
    width: min(100% - 1rem, var(--max)) !important;
    grid-template-columns: 1fr !important;
  }
  body.theme-skin-5 .t5-rail,
  body.theme-skin-5 .t5-side--left,
  body.theme-skin-5 .t5-side--right {
    position: static;
  }
  body.theme-skin-5 .t5-main { order: 1; }
  body.theme-skin-5 .t5-side--left { order: 2; }
  body.theme-skin-5 .t5-side--right { order: 3; }
  body.theme-skin-5 .t5-portrait-wrap { margin-left: auto; margin-right: auto; }
  body.theme-skin-5 .t5-masthead__inner,
  body.theme-skin-5 .t5-topbar__inner,
  body.theme-skin-5 .t5-header__bar {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: .85rem 0;
  }
  body.theme-skin-5 .t5-header__user { align-items: flex-start; }
  body.theme-skin-5 .t5-ticket__inner::before { display: none; }
  body.theme-skin-5 .t5-feed-item__body { flex-direction: column; }
  body.theme-skin-5 .t5-feed-item__img { width: 100%; height: 170px; }
  body.theme-skin-5 .t5-card--main { min-height: 0 !important; }
  body.theme-skin-5 .t5-app::before { display: none; }

  /* —— Mobile horizontal nav: collapsed by default —— */
  body.theme-skin-5 .t5-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  body.theme-skin-5 .t5-nav__burger {
    width: 36px;
    height: 28px;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
  }
  body.theme-skin-5 .t5-nav__burger span,
  body.theme-skin-5 .t5-nav__burger span::before,
  body.theme-skin-5 .t5-nav__burger span::after {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    content: "";
    transition: transform .18s ease, opacity .15s ease;
  }
  body.theme-skin-5 .t5-nav__burger span { position: relative; top: 12px; }
  body.theme-skin-5 .t5-nav__burger span::before { position: absolute; top: -9px; left: 0; right: 0; }
  body.theme-skin-5 .t5-nav__burger span::after { position: absolute; top: 9px; left: 0; right: 0; }
  body.theme-skin-5 .t5-nav__burger.on span { background: transparent; }
  body.theme-skin-5 .t5-nav__burger.on span::before { top: 0; transform: rotate(45deg); }
  body.theme-skin-5 .t5-nav__burger.on span::after { top: 0; transform: rotate(-45deg); }

  body.theme-skin-5 .t5-nav__list,
  body.theme-skin-5 .teacher-menu .container > ul {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    padding: .35rem 0 .55rem;
  }
  body.theme-skin-5 .t5-nav.is-open .t5-nav__list {
    display: flex;
  }
  body.theme-skin-5 .t5-nav__list > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .22);
  }
  body.theme-skin-5 .t5-nav__list > li > a {
    flex: 1 1 auto;
    white-space: normal;
    padding: .75rem .85rem;
  }
  body.theme-skin-5 .t5-nav__caret,
  body.theme-skin-5 .t5-nav .menu-arrow {
    display: inline-block;
    margin-right: .35rem;
  }
  /* Submenus: static accordion, no hover */
  body.theme-skin-5 .t5-nav__list ul,
  body.theme-skin-5 .teacher-menu ul ul {
    position: static;
    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-5 .t5-nav__list li.is-open > ul {
    display: block;
  }
  body.theme-skin-5 .t5-nav__list ul a {
    color: #fff;
    padding: .5rem .65rem;
  }
  body.theme-skin-5 .t5-nav__list ul a:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
  }

  /* Side «Разделы» accordion head */
  body.theme-skin-5 .t5-acc-head {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  body.theme-skin-5 .t5-acc-head::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
    opacity: .85;
  }
  body.theme-skin-5 .t5-acc-head.is-open::after {
    transform: rotate(225deg);
    margin-top: 4px;
  }
}

@media (max-width: 640px) {
  body.theme-skin-5 .t5-stage,
  body.theme-skin-5 .t5-shell {
    width: calc(100% - .75rem) !important;
    margin-left: auto;
    margin-right: auto;
  }
  body.theme-skin-5 .t5-portrait-wrap { max-width: 180px; height: 210px; }
  body.theme-skin-5 a.t5-portrait,
  body.theme-skin-5 .t5-portrait {
    max-width: 164px !important;
    height: 188px !important;
  }
  body.theme-skin-5 .t5-portrait__frame { padding: 10px 10px 28px; }
  body.theme-skin-5 .t5-portrait-stamp { width: 48px; height: 48px; font-size: .62rem; line-height: 48px; }
  body.theme-skin-5 .t5-header__title { font-size: 1.35rem !important; }
  body.theme-skin-5 .t5-card--main { padding: 1rem !important; }
  body.theme-skin-5 .t5-article__head { flex-direction: column; }
  body.theme-skin-5 .t5-bvi--header { width: 40px; height: 40px; }
  body.theme-skin-5 .t5-cookie__inner {
    flex-direction: column;
    align-items: stretch !important;
  }
  body.theme-skin-5 .t5-cookie__btn { width: 100%; }
  body.theme-skin-5 .t5-footer__inner { align-items: flex-start; }
  body.theme-skin-5 .t5-btn { width: 100%; justify-content: center; }
  body.theme-skin-5 .t5-masthead__actions .t5-btn,
  body.theme-skin-5 .t5-topbar__actions .t5-btn,
  body.theme-skin-5 .t5-header__actions .t5-btn { width: auto; }
  body.theme-skin-5 .t5-page__head { padding: .85rem; }
  body.theme-skin-5 .t5-form-card__head { flex-direction: column; align-items: flex-start; }
  body.theme-skin-5 .t5-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-skin-5 .t5-albums { grid-template-columns: 1fr; }
}

/* Theme 5 signature — portrait lilac + periwinkle ticket */
body.theme-skin-5 .t5-app { position: relative; }

body.theme-skin-5 .t5-nav__list > li > a,
body.theme-skin-5 .teacher-menu .container > ul > li > a {
  color: #fff;
  font-weight: 800;
}
body.theme-skin-5 .t5-nav__list > li > a:hover,
body.theme-skin-5 .teacher-menu .container > ul > li:hover > a {
  background: rgba(255,255,255,.2);
  color: #fff;
}
body.theme-skin-5 .t5-card__head {
  background: linear-gradient(90deg, #6366f1, #818cf8) !important;
  color: #fff !important;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .2);
}
body.theme-skin-5 .t5-card {
  background: #fbfbff !important;
  border-color: #c7c9ef !important;
}
body.theme-skin-5 .t5-identity {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(240, 160, 96, .28), transparent 60%),
    linear-gradient(180deg, #fbfbff 0%, #e0e7ff 100%) !important;
}
body.theme-skin-5 .t5-card--main {
  border-top: 5px solid #6366f1 !important;
  background:
    linear-gradient(180deg, #fbfbff 0%, #f5f3ff 100%) !important;
}
body.theme-skin-5 .t5-vmenu > ul > li > a {
  background: #eef2ff !important;
  border-color: #c7c9ef !important;
  border-left: 4px solid #6366f1 !important;
}
body.theme-skin-5 .t5-vmenu > ul > li > a:hover {
  background: linear-gradient(90deg, #e0e7ff, #eef2ff) !important;
  border-left-color: #4f46e5 !important;
  color: #4f46e5 !important;
}
body.theme-skin-5 .t5-search button,
body.theme-skin-5 .t5-btn--primary,
body.theme-skin-5 .t5-form__submit {
  background: linear-gradient(180deg, #818cf8, #6366f1) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(99, 102, 241, .32) !important;
}
body.theme-skin-5 .t5-btn--manage,
body.theme-skin-5 .t5-btn.dropdown-toggle {
  background: linear-gradient(180deg, #ddd6fe, #c4b5fd) !important;
  color: #3730a3 !important;
}
body.theme-skin-5 .t5-footer {
  background: linear-gradient(120deg, #1e1b4b, #3730a3 50%, #4338ca) !important;
  border-top: 4px solid #6366f1 !important;
}
body.theme-skin-5 .t5-footer__mark {
  background: linear-gradient(145deg, #a5b4fc, #6366f1) !important;
  color: #fff !important;
}
body.theme-skin-5 .t5-footer a:not(.t5-footer__btn) { color: #a5b4fc !important; }
body.theme-skin-5 .t5-footer a:not(.t5-footer__btn):hover { color: #ddd6fe !important; }

/* Decorative pen (desktop charm) */
@media (min-width: 1100px) {
  body.theme-skin-5 .t5-app::before {
    content: "";
    pointer-events: none;
    position: fixed;
    right: 12px;
    top: 200px;
    width: 56px;
    height: 380px;
    background: url('/themes/5/img/pen.png') no-repeat center top / contain;
    opacity: .42;
    z-index: 2;
  }
}
/* ===== Site description modal (#set-header) ===== */
body.theme-skin-5 .t5-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-5 .t5-desc-modal.in,
body.theme-skin-5 .t5-desc-modal.show {
  display: block !important;
}
body.theme-skin-5 .t5-desc-dialog.modal-dialog {
  width: min(94vw, 520px) !important;
  margin: 10vh auto !important;
}
body.theme-skin-5 .t5-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-5 .t5-desc__hero.modal-header {
  position: relative;
  padding: 1.45rem 1.35rem 1.15rem !important;
  text-align: center;
  border: 0 !important;
  background: linear-gradient(125deg, #1e1b4b 0%, #4f46e5 50%, #6366f1 100%) !important;
  color: #fff !important;
}
body.theme-skin-5 .t5-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-5 .t5-desc__title,
body.theme-skin-5 .t5-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-5 .t5-desc__lead {
  margin: 0 !important;
  font: 600 .9rem/1.4 var(--font) !important;
  color: rgba(255, 255, 255, .88) !important;
}
body.theme-skin-5 .t5-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-5 .t5-desc__close:hover {
  background: rgba(255, 255, 255, .28) !important;
}
body.theme-skin-5 .t5-desc__body.modal-body {
  padding: 1.25rem 1.4rem .5rem !important;
}
body.theme-skin-5 .t5-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-5 .t5-desc__textarea,
body.theme-skin-5 #set-header textarea#header-modal {
  width: 100% !important;
  min-height: 140px !important;
  padding: .9rem 1rem !important;
  border: 2px solid #c7c9ef !important;
  border-radius: 14px !important;
  background: #eef2ff !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-5 .t5-desc__textarea:focus,
body.theme-skin-5 #set-header textarea#header-modal:focus {
  outline: none !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99,102,241,.18) !important;
}
body.theme-skin-5 .t5-desc__hint {
  margin: .75rem 0 0 !important;
  padding: .65rem .85rem;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid #c7c9ef;
  color: var(--ink2);
  font: 600 .86rem/1.45 var(--font) !important;
}
body.theme-skin-5 .t5-desc__hint i {
  color: #6366f1;
  margin-right: .3rem;
}
body.theme-skin-5 .t5-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-5 .t5-desc__submit {
  min-width: 140px;
}
body.theme-skin-5 .header-edit {
  cursor: pointer;
  margin-left: .35rem;
  opacity: .85;
  transition: .15s ease;
}
body.theme-skin-5 .header-edit:hover {
  opacity: 1;
  color: #6366f1;
}
/* ===== Periwinkle extras: gold frame, oil shimmer, premium footer ===== */
body.theme-skin-5 .t5-portrait-wrap {
  position: relative;
}
body.theme-skin-5 .t5-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50% / 46%;
  background:
    conic-gradient(from 20deg, #4f46e5, #a78bfa, #ddd6fe, #818cf8, #4f46e5, #a78bfa, #4f46e5);
  opacity: .92;
  z-index: 0;
  animation: t5-frame-spin 14s linear infinite;
  filter: blur(.2px);
}
body.theme-skin-5 .t5-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50% / 46%;
  background: #fbfbff;
  z-index: 0;
}
@keyframes t5-frame-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-skin-5 .t5-portrait-wrap::before { animation: none; }
}
body.theme-skin-5 .t5-portrait,
body.theme-skin-5 a.t5-portrait {
  position: relative;
  z-index: 1;
}
body.theme-skin-5 .t5-card__head {
  background: linear-gradient(90deg, #4f46e5, #6366f1 45%, #a78bfa) !important;
  position: relative;
  overflow: hidden;
}
body.theme-skin-5 .t5-card__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: t5-oil-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes t5-oil-sheen {
  0%, 40% { transform: translateX(-120%); }
  70% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-skin-5 .t5-card__head::after { animation: none; display: none; }
}

/* Nav ticket — periwinkle gradient */
body.theme-skin-5 .t5-nav__inner,
body.theme-skin-5 .teacher-menu .container,
body.theme-skin-5 .t5-ticket__inner {
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 40%, #a78bfa 100%) !important;
}

/* —— Footer «Барвинок» (periwinkle) —— */
body.theme-skin-5 .t5-footer {
  position: relative;
  margin-top: auto !important;
  color: #e0e7ff !important;
  border-top: 4px solid var(--gold) !important;
  background:
    radial-gradient(700px 260px at 10% 0%, rgba(167, 139, 250, .22), transparent 55%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 42%, #4f46e5 100%) !important;
  overflow: hidden;
}
body.theme-skin-5 .t5-footer__glow {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .35), transparent 68%);
  pointer-events: none;
}
body.theme-skin-5 .t5-footer__wrap {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1rem 1.15rem !important;
  max-width: var(--max);
  margin: 0 auto;
}
body.theme-skin-5 .t5-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(221, 214, 254, .28);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
  margin-bottom: 1.5rem;
}
body.theme-skin-5 .t5-footer__eyebrow {
  margin: 0 0 .35rem !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ddd6fe !important;
}
body.theme-skin-5 .t5-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-5 .t5-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-5 .t5-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-5 .t5-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;
  letter-spacing: .01em;
  text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  text-align: center;
  white-space: nowrap;
}
body.theme-skin-5 .t5-footer__btn-ico {
  flex: 0 0 auto;
  font-size: .95em;
  line-height: 1;
  color: inherit;
}
body.theme-skin-5 .t5-footer__btn-label {
  color: inherit;
  line-height: 1.25;
}
/* Higher specificity than `.t5-footer a` so gold CTA stays dark-on-gold */
body.theme-skin-5 .t5-footer a.t5-footer__btn--primary {
  color: #1e1b4b !important;
  background: linear-gradient(180deg, #ddd6fe, #a78bfa) !important;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(167, 139, 250, .35);
}
body.theme-skin-5 .t5-footer a.t5-footer__btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  color: #1e1b4b !important;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-footer a.t5-footer__btn--ghost {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.28);
}
body.theme-skin-5 .t5-footer a.t5-footer__btn--ghost:hover {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-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-5 .t5-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}
body.theme-skin-5 .t5-footer__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #1e1b4b;
  background: linear-gradient(145deg, #ddd6fe, #a78bfa 55%, #6366f1);
  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-5 .t5-footer__brand-name {
  margin: 0 0 .25rem !important;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff !important;
}
body.theme-skin-5 .t5-footer__brand-sub {
  margin: 0 0 .45rem !important;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.82) !important;
}
body.theme-skin-5 .t5-footer__theme-tag {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: #ddd6fe !important;
}
body.theme-skin-5 .t5-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 0 0 rgba(129, 140, 248, .5);
  animation: t5-footer-pulse 1.6s ease-in-out infinite;
}
@keyframes t5-footer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, .45); }
  50% { box-shadow: 0 0 0 6px rgba(129, 140, 248, 0); }
}
body.theme-skin-5 .t5-footer__nav-title {
  margin: 0 0 .55rem !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ddd6fe !important;
}
body.theme-skin-5 .t5-footer__nav ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
body.theme-skin-5 .t5-footer__nav li { margin: 0 0 .4rem !important; }
body.theme-skin-5 .t5-footer a:not(.t5-footer__btn) {
  color: #c4b5fd !important;
  font-weight: 700;
  text-decoration: none;
}
body.theme-skin-5 .t5-footer a:not(.t5-footer__btn):hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.theme-skin-5 .t5-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-5 .t5-footer__counters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
body.theme-skin-5 .t5-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}
body.theme-skin-5 .t5-footer__bottom p {
  margin: 0 !important;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7) !important;
}
body.theme-skin-5 .t5-footer__bottom-theme {
  color: #ddd6fe !important;
  font-weight: 700 !important;
}
@media (max-width: 900px) {
  body.theme-skin-5 .t5-footer__grid { grid-template-columns: 1fr; }
  body.theme-skin-5 .t5-footer__cta { flex-direction: column; align-items: stretch; }
  body.theme-skin-5 .t5-footer__cta-actions { width: 100%; min-width: 0; }
  body.theme-skin-5 .t5-footer__btn {
    white-space: normal;
    padding: .95rem 1.1rem;
  }
}
@media (max-width: 420px) {
  body.theme-skin-5 .t5-footer__btn {
    font-size: .9rem;
    letter-spacing: 0;
  }
}

/* BVI trail spacing (after logout) */
body.theme-skin-5 .t5-bvi--trail {
  margin-left: 1.15rem;
}

/* ===== Category / index article previews (Periwinkle cards) ===== */
body.theme-skin-5 .t5-feed__list--cards {
  display: grid;
  gap: 1.1rem;
}
body.theme-skin-5 .t5-preview {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #c7c9ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 10px 28px rgba(49, 46, 129, .08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
body.theme-skin-5 .t5-preview::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #6366f1, #a78bfa);
  z-index: 2;
}
body.theme-skin-5 .t5-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(49, 46, 129, .14);
  border-color: #a5b4fc;
}
body.theme-skin-5 .t5-preview--text {
  grid-template-columns: 72px minmax(0, 1fr);
}
body.theme-skin-5 .t5-preview__media {
  position: relative;
  display: block;
  min-height: 140px;
  background: #e0e7ff;
  overflow: hidden;
}
body.theme-skin-5 .t5-preview__media img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
body.theme-skin-5 .t5-preview:hover .t5-preview__media img {
  transform: scale(1.05);
}
body.theme-skin-5 .t5-preview__media-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}
body.theme-skin-5 .t5-preview:hover .t5-preview__media-shine {
  animation: t5-preview-shine .7s ease forwards;
}
@keyframes t5-preview-shine {
  to { transform: translateX(120%); }
}
body.theme-skin-5 .t5-preview__badge {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(221, 214, 254, .55), transparent 55%),
    linear-gradient(160deg, #e0e7ff, #c7d2fe);
  color: #4f46e5;
  font-size: 1.45rem;
  border-right: 1px solid #c7c9ef;
}
body.theme-skin-5 .t5-preview__body {
  padding: 1rem 1.15rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .45rem;
}
body.theme-skin-5 .t5-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}
body.theme-skin-5 .t5-preview__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1 1 auto;
  min-width: 0;
}
body.theme-skin-5 .t5-preview__title a {
  color: var(--ink) !important;
  text-decoration: none !important;
}
body.theme-skin-5 .t5-preview__title a:hover {
  color: #6366f1 !important;
}
body.theme-skin-5 .t5-preview__excerpt {
  margin: 0 !important;
  color: #5c4030;
  font-size: .95rem;
  line-height: 1.55;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-skin-5 .t5-preview__foot {
  margin-top: auto;
  padding-top: .65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .9rem;
  border-top: 1px dashed #c7c9ef;
}
body.theme-skin-5 .t5-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
body.theme-skin-5 .t5-preview__meta i {
  color: #6366f1;
  margin-right: .28rem;
}
body.theme-skin-5 .t5-preview__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  color: #4f46e5 !important;
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  text-decoration: none !important;
  transition: transform .12s ease, filter .12s ease;
}
body.theme-skin-5 .t5-preview__more:hover {
  filter: brightness(1.03);
  transform: translateX(2px);
  color: #3730a3 !important;
}
body.theme-skin-5 .t5-page__lead {
  margin: .45rem 0 0 !important;
  max-width: 40rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  font-size: .95rem;
}
@media (max-width: 720px) {
  body.theme-skin-5 .t5-preview,
  body.theme-skin-5 .t5-preview--text {
    grid-template-columns: 1fr;
  }
  body.theme-skin-5 .t5-preview__media {
    min-height: 180px;
  }
  body.theme-skin-5 .t5-preview__media img {
    min-height: 180px;
    max-height: 220px;
  }
  body.theme-skin-5 .t5-preview__badge {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid #c7c9ef;
  }
  body.theme-skin-5 .t5-preview::before {
    width: 100%;
    height: 4px;
    bottom: auto;
  }
}
