@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani/rajdhani-v15-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("../fonts/rajdhani/rajdhani-v15-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans/OpenSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --display-font-scale: 1;
  --display-button-scale: 1;
  --display-heading-line-height: 0.96;
  --display-heading-letter-spacing: -0.03em;
  --body-line-height: 1.65;
  --bg: #f6f1ea;
  --bg-soft: #fbf8f4;
  --surface: rgba(255, 251, 247, 0.82);
  --surface-strong: #fffaf5;
  --surface-dark: #17362f;
  --text: #1d2421;
  --muted: #617069;
  --line: rgba(29, 36, 33, 0.1);
  --primary: #b51f31;
  --primary-dark: #8a1926;
  --accent: #d8b067;
  --forest: #17453a;
  --shadow: 0 24px 70px rgba(54, 41, 31, 0.13);
  --shadow-soft: 0 14px 36px rgba(54, 41, 31, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 176, 103, 0.28), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(181, 31, 49, 0.12), transparent 20%),
    linear-gradient(180deg, #f8f1e8 0%, #f2ede6 36%, #fbf7f3 100%);
  transition: background 180ms ease, color 180ms ease;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
li,
label,
input,
textarea,
select {
  line-height: var(--body-line-height);
}

h1,
h2,
h3,
h4,
.brand-name,
.stat-value,
.card-kicker,
.hero-fact strong,
.kpi-value,
.button,
.nav-cta,
.eyebrow,
.tag,
.mini-tag,
.table-label,
.info-label,
.team-initials {
  font-family: var(--font-display);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: var(--display-heading-line-height);
  letter-spacing: var(--display-heading-letter-spacing);
}

p,
ul,
ol {
  margin: 0;
}

.page-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  top: 80px;
  right: -100px;
  background: rgba(181, 31, 49, 0.15);
}

.page-shell::after {
  bottom: 80px;
  left: -120px;
  background: rgba(23, 69, 58, 0.12);
}

.site-header,
.main-nav,
.section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  padding-top: 12px;
  position: relative;
  z-index: 60;
}

.site-flash {
  width: var(--container);
  margin: 12px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(23, 69, 58, 0.12);
  background: rgba(23, 69, 58, 0.08);
  color: var(--forest);
  box-shadow: var(--shadow-soft);
}

.site-flash.is-success {
  background: rgba(23, 69, 58, 0.1);
  color: var(--forest);
}

.site-flash.is-error {
  background: rgba(181, 31, 49, 0.09);
  border-color: rgba(181, 31, 49, 0.18);
  color: #8f1f1f;
}

.glass,
.topbar,
.main-nav,
.hero-copy,
.hero-panel,
.card,
.media-card,
.side-panel,
.contact-panel,
.team-card,
.price-card,
.form-shell,
.legal-shell,
.cta-band,
.info-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 10px 20px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 247, 0.55);
  color: var(--muted);
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(64, 49, 35, 0.06);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
  z-index: 65;
}

.topbar-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 247, 0.8);
  box-shadow: 0 10px 40px rgba(64, 49, 35, 0.08);
  position: sticky;
  top: 12px;
  z-index: 40;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.main-nav.is-scrolled {
  background: rgba(255, 251, 247, 0.94);
  border-color: rgba(29, 36, 33, 0.14);
  box-shadow: 0 18px 42px rgba(46, 35, 24, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-wrap {
  position: relative;
  width: 68px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 68px;
  height: auto;
  transition: opacity 180ms ease;
}

.brand-logo-dark {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: calc(1.7rem * var(--display-font-scale));
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-2px);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 180ms ease, opacity 180ms ease;
}

.theme-icon-darkmode {
  display: none;
  opacity: 0;
  transform: scale(0.72);
}

html[data-theme="dark"] .theme-icon-lightmode {
  display: none;
  opacity: 0;
  transform: scale(0.72);
}

html[data-theme="dark"] .theme-icon-darkmode {
  display: inline-flex;
  transform: scale(1);
  opacity: 1;
}

.theme-toggle-text {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  position: relative;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-line::before {
  top: -6px;
}

.nav-toggle-line::after {
  top: 6px;
}

body.nav-open .nav-toggle-line {
  background: transparent;
}

body.nav-open .nav-toggle-line::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle-line::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  font-weight: 700;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.button,
.nav-cta,
.form-shell button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 0;
  font-size: calc(1rem * var(--display-font-scale) * var(--display-button-scale));
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary,
.nav-cta,
.form-shell button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 16px 35px rgba(181, 31, 49, 0.24);
}

.button-secondary,
.link-button {
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border: 1px solid rgba(29, 36, 33, 0.08);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  border: 1px solid rgba(29, 36, 33, 0.12);
  box-shadow: none;
}

.button:hover,
.nav-cta:hover,
.form-shell button:hover,
.link-button:hover,
.button:focus-visible,
.nav-cta:focus-visible,
.form-shell button:focus-visible,
.link-button:focus-visible {
  transform: translateY(-2px);
}

.typography-preview {
  font-family: var(--font-body);
  line-height: var(--body-line-height);
}

.typography-preview .hero-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.typography-preview .hero-fact {
  width: 100%;
}

.section {
  padding: 30px 0;
}

.hero,
.home-hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
}

.home-hero {
  min-height: calc(100vh - 180px);
}


.hero-copy,
.hero-panel,
.side-panel,
.contact-panel,
.form-shell,
.legal-shell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 250, 246, 0.7);
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.hero-banner {
  overflow: hidden;
}

.hero-panel,
.hero-banner,
.media-card-media,
.team-photo-wrap,
.media-frame,
.inline-media {
  isolation: isolate;
  contain: paint;
}

.hero-banner {
  border-radius: inherit;
}

.hero-copy {
  padding: 38px;
}

.hero-copy h1,
.legal-shell h1 {
  font-size: clamp(
    calc(2.7rem * var(--display-font-scale)),
    calc(6vw * var(--display-font-scale)),
    calc(3rem * var(--display-font-scale))
  );
}

.hero-copy p {
  color: var(--muted);
}

.eyebrow,
.tag,
.mini-tag,
.card-kicker,
.info-label,
.table-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 69, 58, 0.08);
  color: var(--forest);
  font-size: calc(0.78rem * var(--display-font-scale));
}

.hero-actions,
.section-actions,
.quick-links,
.button-row,
.footer-links,
.hero-facts,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions,
.hero-facts,
.quick-links {
  margin-top: 26px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-fact,
.info-card,
.price-card,
.team-card,
.card,
.media-card,
.side-panel,
.contact-meta article,
.form-help,
.list-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 36, 33, 0.08);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.hero-fact strong,
.kpi-value,
.stat-value {
  display: block;
  font-size: calc(1.5rem * var(--display-font-scale));
  font-weight: 700;
}

.hero-fact span,
.card p,
.media-card p,
.info-card p,
.team-card p,
.side-panel p,
.price-card p,
.form-help,
.prose p,
.prose li,
.contact-panel p,
.contact-meta p,
.list-card p,
.list-card li,
.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 660px;
}

.visual-stack,
.hero-image-main,
.hero-image-secondary,
.visual-note {
  position: absolute;
}

.hero-image-main,
.hero-image-secondary,
.media-frame,
.hero-banner img,
.media-card img,
.inline-media img {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-image-main,
.hero-image-secondary,
.hero-banner,
.media-card-media,
.team-photo-wrap,
.media-frame,
.inline-media {
  background: var(--cms-image-fill, transparent);
}

.hero-image-main {
  inset: 26px 76px 128px 0;
  transform: rotate(-4deg);
}

.hero-image-secondary {
  right: 0;
  bottom: 60px;
  width: 46%;
  height: 42%;
  transform: rotate(7deg);
}

.hero-image-main img,
.hero-image-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame img,
.hero-banner img,
.media-card img,
.inline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img[data-cms-transform-active="1"],
[data-cms-transform-active="1"] img {
  object-fit: var(--cms-object-fit, cover);
  object-position: var(--cms-object-x, 50%) var(--cms-object-y, 50%);
  transform: scale(var(--cms-object-scale, 1));
  transform-origin: var(--cms-object-x, 50%) var(--cms-object-y, 50%);
  contain: paint;
  border: 0;
  box-shadow: none;
}

img[data-cms-transform-active="1"] {
  display: block;
  overflow: clip;
  clip-path: inset(0 round var(--cms-image-radius, var(--radius-xl)));
}

.team-photo[data-cms-transform-active="1"] {
  --cms-image-radius: calc(var(--radius-lg) - 4px);
}

.media-card > .media-card-image {
  display: block;
  flex: 0 0 var(--media-card-image-height, clamp(220px, 24vw, 300px));
  width: 100%;
  height: var(--media-card-image-height, clamp(220px, 24vw, 300px));
}

.media-card-image-contain {
  object-fit: contain !important;
  object-position: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
}

.media-card-media {
  flex: 0 0 var(--media-card-image-height, clamp(220px, 24vw, 300px));
  height: var(--media-card-image-height, clamp(220px, 24vw, 300px));
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.media-card-media-fixed {
  min-height: 0;
}

.media-card-media-fixed img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
}

.hero-banner-image-contain {
  object-fit: contain !important;
  object-position: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px;
}

.media-card > .button,
.media-card > .button-row {
  margin-top: auto;
}

.visual-note {
  left: 24px;
  bottom: 22px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(23, 69, 58, 0.92);
  color: #fff;
  box-shadow: 0 18px 45px rgba(23, 69, 58, 0.28);
}

.visual-note strong {
  display: block;
  font-size: 1.2rem;
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2,
.side-panel h2,
.contact-panel h2,
.form-shell h2,
.legal-shell h2,
.cta-band h2 {
  font-size: clamp(
    calc(2.4rem * var(--display-font-scale)),
    calc(4.3vw * var(--display-font-scale)),
    calc(4.3rem * var(--display-font-scale))
  );
  margin-bottom: 12px;
}

.grid,
.card-grid,
.media-grid,
.team-grid,
.course-grid,
.contact-grid,
.pricing-grid,
.two-column,
.three-column,
.check-grid,
.detail-grid,
.kpi-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid,
.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column,
.course-grid,
.team-grid,
.pricing-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-grid,
.detail-grid,
.kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.media-card,
.team-card,
.price-card,
.info-card,
.list-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card:hover,
.media-card:hover,
.team-card:hover,
.price-card:hover,
.info-card:hover,
.list-card:hover {
  transform: translateY(-4px);
}

.card,
.media-card,
.team-card,
.price-card,
.info-card,
.list-card,
.contact-meta article,
.inline-media {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card h3,
.media-card h3,
.team-card h3,
.price-card h3,
.info-card h3,
.side-panel h3,
.list-card h3,
.contact-meta strong {
  font-size: calc(2rem * var(--display-font-scale));
}

.card-kicker,
.mini-tag,
.info-label,
.table-label {
  font-size: calc(0.78rem * var(--display-font-scale));
  color: var(--forest);
}

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 69, 58, 0.1);
  color: var(--forest);
  font-size: calc(0.78rem * var(--display-font-scale));
}

.tag-row,
.inline-tags,
.check-list,
.plain-list,
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.plain-list,
.feature-list,
.prose ul,
.prose ol {
  display: grid;
  gap: 0;
  padding-left: 20px;
}

.feature-list {
  margin: 0;
}

.feature-list li,
.prose li {
  color: var(--muted);
}

.cms-text-block {
  white-space: pre-line;
}

h1,
h2,
h3,
p,
.footer-title,
.brand-name,
.brand-subtitle,
.kpi-value,
.kpi-label,
.contact-meta strong,
.form-help {
  white-space: pre-line;
}

.hero-banner,
.inline-media,
.media-frame {
  min-height: 280px;
}

.media-card.wide {
  grid-column: span 2;
}

.side-panel {
  padding: 30px;
}

.dark-panel,
.cta-band,
.site-footer {
  background: linear-gradient(145deg, rgba(23, 54, 47, 0.98), rgba(27, 73, 62, 0.94));
  color: #fff;
}

.dark-panel,
.cta-band {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-panel p,
.dark-panel li,
.cta-band p,
.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  min-height: 100%;
}

.team-photo-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  aspect-ratio: 4 / 4.3;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-role {
  font-size: 0.95rem;
  color: var(--muted);
}

.team-card ul {
  margin: 0;
}

.price-card {
  min-height: 100%;
}

.price-hint {
  font-size: 1.05rem;
  color: var(--text);
}

.price-highlight {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(216, 176, 103, 0.14);
  border: 1px solid rgba(216, 176, 103, 0.28);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 22, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  margin: 32px auto;
  border-radius: 28px;
  border: 1px solid rgba(29, 36, 33, 0.08);
  background: rgba(255, 250, 246, 0.98);
  box-shadow: 0 32px 90px rgba(20, 25, 23, 0.28);
}

.modal-dialog-wide {
  width: min(1180px, calc(100vw - 32px));
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.modal-header {
  border-bottom: 1px solid rgba(29, 36, 33, 0.08);
}

.modal-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(29, 36, 33, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.modal-body {
  padding: 0;
}

.modal-body iframe {
  display: block;
  width: 100%;
  height: min(78vh, 980px);
  border: 0;
  background: #fff;
  border-radius: 0 0 22px 22px;
}

.kpi-grid {
  margin-top: 20px;
}

.kpi-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(29, 36, 33, 0.08);
}

.kpi-label {
  color: var(--muted);
}

.contact-layout,
.form-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: start;
}

.contact-panel,
.form-shell,
.legal-shell,
.cta-band {
  padding: 34px;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-meta article {
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-meta strong,
.contact-meta a {
  font-size: 1.1rem;
}

.contact-panel.dark-panel {
  background:
    linear-gradient(145deg, rgba(20, 59, 50, 0.98), rgba(34, 84, 72, 0.95)),
    radial-gradient(circle at top right, rgba(216, 176, 103, 0.14), transparent 34%);
}

.dark-panel .eyebrow,
.cta-band .eyebrow,
.site-footer .mini-tag,
.visual-note .mini-tag {
  #background: rgba(255, 255, 255, 0.08);
  color: #e5c992;
  #border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-panel.dark-panel h2,
.contact-panel.dark-panel strong,
.contact-panel.dark-panel a {
  color: #fff;
}

.contact-panel.dark-panel p {
  color: rgba(255, 255, 255, 0.84);
}

.contact-panel.dark-panel .contact-meta article {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.contact-panel.dark-panel .info-label {
  display: block;
  color: #d8b067;
  opacity: 0.92;
}

.contact-panel.dark-panel .button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.contact-panel.dark-panel .button-ghost:hover,
.contact-panel.dark-panel .button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(29, 36, 33, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field-checkbox {
  gap: 0;
}

.field-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.field-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(181, 31, 49, 0.45);
  box-shadow: 0 0 0 3px rgba(181, 31, 49, 0.08);
}

.field-error {
  color: #9b2230;
  font-size: 0.9rem;
  line-height: 1.45;
}

.field-options-select-wrap {
  position: relative;
}

.field-options-edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  z-index: 4;
}

body.cms-edit-mode .field-options-edit[data-cms-edit="1"] {
  outline: none;
  box-shadow: none;
}

body.cms-edit-mode .field-options-edit[data-cms-edit="1"]:hover {
  outline: none;
  box-shadow: none;
}

.field-options-edit .cms-edit-trigger {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(34%, -34%);
}

.cms-editor-list {
  display: grid;
  gap: 12px;
}

.cms-editor-list[hidden] {
  display: none;
}

.cms-editor-list-rows {
  display: grid;
  gap: 10px;
}

.cms-editor-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cms-editor-list-row .cms-editor-input {
  margin: 0;
}

.cms-editor-list-remove,
.cms-editor-list-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cms-editor-list-remove {
  width: 52px;
  min-width: 52px;
  padding: 0;
}

.cms-editor-list-add {
  justify-self: flex-start;
}

.form-help {
  margin-top: 14px;
  font-size: 0.92rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 65px rgba(23, 69, 58, 0.22);
}

.legal-shell {
  max-width: 900px;
  margin: 0 auto;
}

.legal-shell h1 {
  margin-bottom: 10px;
}

.legal-shell h2 {
  font-size: clamp(
    calc(2rem * var(--display-font-scale)),
    calc(4vw * var(--display-font-scale)),
    calc(3rem * var(--display-font-scale))
  );
  margin-top: 28px;
}

.legal-shell h3 {
  font-size: calc(1.75rem * var(--display-font-scale));
  margin-top: 20px;
}

.legal-shell p,
.legal-shell ul,
.legal-shell ol {
  margin-top: 12px;
}

.note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(29, 36, 33, 0.08);
  background: rgba(216, 176, 103, 0.14);
}

.quote-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29, 36, 33, 0.08);
  background: rgba(255, 255, 255, 0.74);
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(23, 69, 58, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
  gap: 20px;
  align-items: start;
}

.footer-link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  justify-self: end;
  width: min(100%, 520px);
}

.footer-links {
  flex-direction: column;
  gap: 8px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] body {
  color: #edf1ee;
  background:
    radial-gradient(circle at top left, rgba(216, 176, 103, 0.1), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(181, 31, 49, 0.1), transparent 20%),
    linear-gradient(180deg, #101514 0%, #141a18 36%, #0e1312 100%);
}

html[data-theme="dark"] .page-shell::before {
  background: rgba(181, 31, 49, 0.1);
}

html[data-theme="dark"] .page-shell::after {
  background: rgba(23, 69, 58, 0.1);
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .main-nav,
html[data-theme="dark"] .hero-copy,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .side-panel,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .form-shell,
html[data-theme="dark"] .legal-shell,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .media-card,
html[data-theme="dark"] .list-card,
html[data-theme="dark"] .hero-fact,
html[data-theme="dark"] .contact-meta article,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .form-help,
html[data-theme="dark"] .note,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .modal-dialog,
html[data-theme="dark"] .price-highlight {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(24, 31, 29, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .main-nav.is-scrolled {
  background: rgba(18, 24, 22, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .brand-logo-light {
  opacity: 0;
}

html[data-theme="dark"] .brand-logo-dark {
  opacity: 1;
}

html[data-theme="dark"] .site-flash {
  background: rgba(24, 31, 29, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f7f2eb;
}

html[data-theme="dark"] .site-flash.is-success {
  color: #d2e8dd;
}

html[data-theme="dark"] .site-flash.is-error {
  background: rgba(104, 28, 37, 0.42);
  border-color: rgba(181, 31, 49, 0.34);
  color: #ffd9dd;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .brand-subtitle,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .hero-copy p,
html[data-theme="dark"] .hero-fact span,
html[data-theme="dark"] .kpi-label,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .media-card p,
html[data-theme="dark"] .info-card p,
html[data-theme="dark"] .team-card p,
html[data-theme="dark"] .side-panel p,
html[data-theme="dark"] .price-card p,
html[data-theme="dark"] .form-help,
html[data-theme="dark"] .contact-panel p,
html[data-theme="dark"] .contact-meta p,
html[data-theme="dark"] .list-card p,
html[data-theme="dark"] .list-card li,
html[data-theme="dark"] .legal-shell p,
html[data-theme="dark"] .legal-shell li,
html[data-theme="dark"] .team-role,
html[data-theme="dark"] .price-hint {
  color: #b8c3bd;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .modal-close,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  color: #f4f7f5;
}

html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .link-button,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cms-auth-icon-button,
html[data-theme="dark"] .cms-auth-menu-button,
html[data-theme="dark"] .cms-auth-dropdown,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .modal-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f7f5;
}

html[data-theme="dark"] .button-ghost {
  color: #f4f7f5;
}

html[data-theme="dark"] .admin-delete-button {
  background: rgba(181, 31, 49, 0.2);
  border-color: rgba(255, 125, 140, 0.34);
  color: #ffe8ea;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .tag {
  background: rgba(216, 176, 103, 0.12);
  color: #f3d396;
}

html[data-theme="dark"] .card-kicker,
html[data-theme="dark"] .mini-tag,
html[data-theme="dark"] .info-label,
html[data-theme="dark"] .table-label {
  color: #f3d396;
}

html[data-theme="dark"] .hero-image-main,
html[data-theme="dark"] .hero-image-secondary,
html[data-theme="dark"] .media-frame,
html[data-theme="dark"] .hero-banner img,
html[data-theme="dark"] .media-card img,
html[data-theme="dark"] .inline-media img,
html[data-theme="dark"] .team-photo-wrap {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .media-card-image-contain,
html[data-theme="dark"] .hero-banner-image-contain,
html[data-theme="dark"] .modal-body iframe,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .cms-editor-image-preview {
  border-color: rgba(216, 176, 103, 0.18);
  background:
    linear-gradient(45deg, rgba(216, 176, 103, 0.06) 25%, transparent 25%, transparent 75%, rgba(216, 176, 103, 0.06) 75%),
    linear-gradient(45deg, rgba(216, 176, 103, 0.06) 25%, transparent 25%, transparent 75%, rgba(216, 176, 103, 0.06) 75%),
    var(--cms-image-fill, rgba(15, 20, 19, 0.9));
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .field.has-error input,
html[data-theme="dark"] .field.has-error select,
html[data-theme="dark"] .field.has-error textarea {
  border-color: rgba(255, 124, 137, 0.58);
  box-shadow: 0 0 0 3px rgba(181, 31, 49, 0.16);
}

html[data-theme="dark"] .field-error {
  color: #ffb9c0;
}

html[data-theme="dark"] .cms-editor-dialog {
  background: rgba(18, 24, 22, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .cms-editor-header,
html[data-theme="dark"] .cms-editor-actions {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cms-editor-label,
html[data-theme="dark"] .cms-editor-header strong,
html[data-theme="dark"] .cms-editor-zoom-value {
  color: #f4f7f5;
}

html[data-theme="dark"] .cms-editor-input,
html[data-theme="dark"] .cms-editor-textarea,
html[data-theme="dark"] .cms-editor-mode select,
html[data-theme="dark"] .cms-editor-image-range-row input[type="range"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f4f7f5;
}

html[data-theme="dark"] .cms-editor-input::placeholder,
html[data-theme="dark"] .cms-editor-textarea::placeholder {
  color: rgba(244, 247, 245, 0.42);
}

html[data-theme="dark"] .cms-editor-close {
  color: #f4f7f5;
}

html[data-theme="dark"] .cms-editor-close:hover,
html[data-theme="dark"] .cms-editor-close:focus-visible {
  color: #ffffff;
}

html[data-theme="dark"] .cms-editor-help,
html[data-theme="dark"] .cms-editor-image-preview-hint,
html[data-theme="dark"] .cms-editor-status {
  color: #b8c3bd;
}

html[data-theme="dark"] .cms-editor-status {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .cms-editor-status.is-error {
  background: rgba(181, 31, 49, 0.16);
  color: #ffd3d8;
}

html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .dark-panel,
html[data-theme="dark"] .cta-band,
html[data-theme="dark"] .contact-panel.dark-panel {
  background: linear-gradient(145deg, rgba(12, 18, 17, 0.98), rgba(18, 34, 29, 0.94));
}

html[data-theme="dark"] .footer-credit {
  color: rgba(255, 255, 255, 0.68);
}

.spacer-sm {
  height: 8px;
}

.spacer-md {
  height: 18px;
}

.spacer-lg {
  height: 28px;
}

.hide-desktop {
  display: none;
}

@media (max-width: 1100px) {
  .hero,
  .home-hero,
  .card-grid,
  .media-grid,
  .two-column,
  .three-column,
  .course-grid,
  .team-grid,
  .pricing-grid,
  .contact-layout,
  .form-layout,
  .footer-grid,
  .kpi-grid,
  .check-grid,
  .detail-grid,
  .contact-meta {
    grid-template-columns: 1fr;
  }

  .footer-link-columns {
    justify-self: stretch;
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .media-card.wide {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .cta-band,
  .footer-bottom,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .site-header {
    padding-top: 12px;
  }

  .topbar {
    border-radius: 24px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 28px;
    padding: 16px 18px;
  }

  .brand {
    width: calc(100% - 116px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-cta {
    display: none;
    width: 100%;
  }

  body.nav-open .nav-cta {
    display: inline-flex;
  }

  .section {
    padding: 30px 0;
  }

  .hero-copy,
  .side-panel,
  .contact-panel,
  .form-shell,
  .legal-shell,
  .cta-band {
    padding: 24px;
  }

  .hero-copy h1,
  .legal-shell h1 {
    font-size: clamp(
      calc(2.6rem * var(--display-font-scale)),
      calc(11vw * var(--display-font-scale)),
      calc(4rem * var(--display-font-scale))
    );
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-image-main {
    inset: 0 36px 96px 0;
  }

  .hero-image-secondary {
    width: 56%;
    height: 40%;
  }

  .visual-note {
    left: 12px;
    right: 12px;
    bottom: 10px;
  }

  .form-grid,
  .contact-meta {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .hide-desktop {
    display: block;
  }
}

.cms-auth-icon-button,
.cms-auth-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  border: 1px solid rgba(24, 33, 26, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cms-auth-icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1rem;
}

.cms-auth-menu {
  position: relative;
}

.cms-auth-menu summary {
  list-style: none;
}

.cms-auth-menu summary::-webkit-details-marker {
  display: none;
}

.cms-auth-menu-button {
  gap: 8px;
  min-width: 0;
  height: 42px;
}

.cms-auth-menu-button span {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-auth-menu[open] .cms-auth-menu-button i:last-child {
  transform: rotate(180deg);
}

.cms-auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(24, 33, 26, 0.12);
  background: rgba(255, 251, 246, 0.98);
  box-shadow: 0 24px 45px rgba(28, 21, 14, 0.16);
  display: grid;
  gap: 4px;
  z-index: 120;
}

.cms-auth-dropdown a,
.cms-auth-menu-user {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.cms-auth-dropdown a:hover,
.cms-auth-dropdown a:focus-visible {
  background: rgba(23, 69, 58, 0.08);
}

.cms-auth-menu-user {
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(24, 33, 26, 0.08);
  margin-bottom: 4px;
  padding-bottom: 12px;
}

.admin-shell,
.log-shell {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
}

.admin-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.admin-form,
.stack-form {
  display: grid;
  gap: 12px;
}

.admin-users {
  display: grid;
  gap: 14px;
}

.admin-user-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.admin-user-top,
.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-actions {
  justify-content: flex-start;
}

.deploy-actions {
  display: grid;
  gap: 12px;
}

.deploy-log-card {
  margin-top: 22px;
}

.deploy-log-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 33, 26, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.deploy-log-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.deploy-log-status[data-state="loading"] {
  color: #9a6b19;
  background: rgba(216, 176, 103, 0.14);
  border-color: rgba(216, 176, 103, 0.28);
}

.deploy-log-status[data-state="loading"]::before {
  animation: deployPulse 1s ease-in-out infinite;
}

.deploy-log-status[data-state="success"] {
  color: var(--forest);
  background: rgba(23, 69, 58, 0.1);
  border-color: rgba(23, 69, 58, 0.18);
}

.deploy-log-status[data-state="error"] {
  color: #8f1f1f;
  background: rgba(181, 31, 49, 0.1);
  border-color: rgba(181, 31, 49, 0.18);
}

.deploy-output {
  margin: 0;
  padding: 18px;
  min-height: 220px;
  max-height: 560px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(24, 33, 26, 0.08);
  background: rgba(249, 245, 237, 0.88);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.deploy-output:empty::before {
  content: attr(data-empty-message);
  color: var(--muted);
  opacity: 0.78;
}

.deploy-output[data-state="loading"] {
  border-color: rgba(216, 176, 103, 0.42);
  background: rgba(255, 248, 235, 0.96);
  box-shadow: inset 0 0 0 1px rgba(216, 176, 103, 0.14);
}

.deploy-output[data-state="success"] {
  border-color: rgba(23, 69, 58, 0.22);
  background: rgba(244, 250, 247, 0.96);
  box-shadow: inset 0 0 0 1px rgba(23, 69, 58, 0.08);
}

.deploy-output[data-state="error"] {
  border-color: rgba(181, 31, 49, 0.24);
  background: rgba(253, 246, 247, 0.98);
  box-shadow: inset 0 0 0 1px rgba(181, 31, 49, 0.08);
}

@keyframes deployPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

.admin-delete-button {
  margin-left: auto;
  background: rgba(181, 31, 49, 0.1);
  border: 1px solid rgba(181, 31, 49, 0.24);
  color: var(--primary-dark);
  box-shadow: none;
}

.admin-delete-button:hover,
.admin-delete-button:focus-visible {
  background: rgba(181, 31, 49, 0.16);
  border-color: rgba(181, 31, 49, 0.34);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 69, 58, 0.1);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
}

.log-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.log-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.log-filter,
.log-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-filter span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-filter-actions {
  justify-content: flex-end;
}

.log-search {
  max-width: 360px;
  width: 100%;
}

.log-pagination-toolbar,
.log-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.log-pagination-toolbar {
  margin-bottom: 16px;
}

.log-pagination-summary,
.log-pagination-info,
.log-page-size span {
  color: var(--muted);
  font-size: 0.95rem;
}

.log-page-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.log-page-size .cms-editor-input {
  width: 96px;
  min-width: 96px;
}

.log-table-wrap {
  overflow: auto;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.log-table th,
.log-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(24, 33, 26, 0.08);
}

.log-table th {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.log-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.log-sort-button::after {
  content: '↕';
  font-size: 0.9em;
  opacity: 0.42;
  transition: opacity 140ms ease, transform 140ms ease;
}

.log-sort-button:hover::after,
.log-sort-button:focus-visible::after {
  opacity: 0.82;
}

[data-log-sort-head][data-sort-direction="asc"] .log-sort-button::after {
  content: '↑';
  opacity: 1;
}

[data-log-sort-head][data-sort-direction="desc"] .log-sort-button::after {
  content: '↓';
  opacity: 1;
}

.log-empty {
  color: var(--muted);
}

.log-time-cell {
  min-width: 108px;
  text-align: center;
}

.log-date,
.log-time {
  display: block;
  width: 100%;
}

.log-date {
  white-space: nowrap;
  text-align: center;
}

.log-time {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.log-pagination {
  margin-top: 18px;
}

.log-pagination[hidden] {
  display: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
}

html[data-theme="dark"] .admin-shell,
html[data-theme="dark"] .log-shell,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-user-row {
  background: rgba(24, 31, 29, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .admin-user-row .small,
html[data-theme="dark"] .log-empty {
  color: #b8c3bd;
}

html[data-theme="dark"] .deploy-output {
  background: rgba(12, 17, 16, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
  color: #edf1ee;
}

html[data-theme="dark"] .deploy-log-status {
  background: rgba(24, 31, 29, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
  color: #b8c3bd;
}

html[data-theme="dark"] .deploy-log-status[data-state="loading"] {
  color: #e0bc73;
  background: rgba(216, 176, 103, 0.16);
  border-color: rgba(216, 176, 103, 0.28);
}

html[data-theme="dark"] .deploy-log-status[data-state="success"] {
  color: #bfe2d5;
  background: rgba(23, 69, 58, 0.28);
  border-color: rgba(103, 171, 149, 0.24);
}

html[data-theme="dark"] .deploy-log-status[data-state="error"] {
  color: #f0c2c7;
  background: rgba(181, 31, 49, 0.22);
  border-color: rgba(181, 31, 49, 0.3);
}

html[data-theme="dark"] .deploy-output[data-state="loading"] {
  border-color: rgba(216, 176, 103, 0.34);
  background: rgba(38, 31, 17, 0.78);
  box-shadow: inset 0 0 0 1px rgba(216, 176, 103, 0.12);
}

html[data-theme="dark"] .deploy-output[data-state="success"] {
  border-color: rgba(103, 171, 149, 0.2);
  background: rgba(14, 30, 25, 0.92);
  box-shadow: inset 0 0 0 1px rgba(103, 171, 149, 0.1);
}

html[data-theme="dark"] .deploy-output[data-state="error"] {
  border-color: rgba(181, 31, 49, 0.28);
  background: rgba(41, 18, 22, 0.88);
  box-shadow: inset 0 0 0 1px rgba(181, 31, 49, 0.12);
}

html[data-theme="dark"] .log-pagination-summary,
html[data-theme="dark"] .log-pagination-info,
html[data-theme="dark"] .log-page-size span,
html[data-theme="dark"] .log-filter span {
  color: #b8c3bd;
}

html[data-theme="dark"] .cms-collection-card-remove {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .cms-collection-card-drag {
  background: rgba(216, 176, 103, 0.95);
  color: #1a201d;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .cms-collection-card.is-dragging {
  background: rgba(216, 176, 103, 0.09);
  border-color: rgba(216, 176, 103, 0.58);
}

html[data-theme="dark"] .admin-badge {
  background: rgba(216, 176, 103, 0.14);
  color: #f3d396;
}

html[data-theme="dark"] .log-table th,
html[data-theme="dark"] .log-table td,
html[data-theme="dark"] .cms-auth-menu-user {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .log-table th {
  color: #f3d396;
}

html[data-theme="dark"] .cms-auth-dropdown {
  background: rgba(20, 24, 23, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cms-login-modal-form .button-row {
  margin-top: 22px;
}

.cms-login-dialog {
  max-width: 520px;
  overflow: hidden;
}

.cms-login-submit {
  min-width: 140px;
}

.cms-login-dialog .modal-header {
  padding: 22px 22px 18px;
}

.cms-login-dialog .modal-header h2 {
  margin: 0;
  font-size: clamp(
    calc(2.1rem * var(--display-font-scale)),
    calc(5vw * var(--display-font-scale)),
    calc(2.8rem * var(--display-font-scale))
  );
  line-height: 0.95;
}

.cms-login-dialog .modal-body {
  padding: 24px 22px 26px;
}

.cms-login-dialog .modal-close {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}

.cms-login-modal-form {
  display: grid;
  gap: 12px;
}

.cms-login-field {
  display: grid;
  gap: 6px;
}

.cms-login-modal-form .cms-editor-label {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.cms-login-modal-form .cms-editor-input {
  min-height: 54px;
  border-radius: 18px;
  padding: 14px 18px;
}

.cms-login-feedback {
  border-radius: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(171, 49, 49, 0.16);
  background: rgba(171, 49, 49, 0.08);
}

.cms-login-feedback.is-error {
  color: #a02f2f;
}

body.cms-edit-mode [data-cms-edit="1"] {
  outline: 2px dashed rgba(201, 83, 43, 0.65);
  outline-offset: 6px;
  cursor: pointer;
  transition: outline-color 160ms ease, box-shadow 160ms ease;
}

body.cms-edit-mode [data-cms-edit="1"]:hover {
  outline-color: rgba(201, 83, 43, 0.95);
  box-shadow: 0 0 0 8px rgba(201, 83, 43, 0.08);
}

body.cms-edit-mode [data-cms-edit="1"][data-cms-target="text"]:empty,
body.cms-edit-mode [data-cms-edit="1"][data-cms-target="list"]:empty,
body.cms-edit-mode [data-cms-edit="1"][data-cms-target="list"][data-cms-empty="1"] {
  min-width: 72px;
  min-height: 1.35em;
}

body.cms-edit-mode [data-cms-edit="1"][data-cms-target="text"]:empty::before,
body.cms-edit-mode [data-cms-edit="1"][data-cms-target="list"]:empty::before,
body.cms-edit-mode [data-cms-edit="1"][data-cms-target="list"][data-cms-empty="1"]::before {
  content: "Zum Bearbeiten klicken";
  opacity: 0.42;
  font-style: italic;
}

body.cms-edit-mode .cms-edit-trigger-host {
  position: relative;
  overflow: visible;
}

body.cms-edit-mode a.cms-edit-trigger-host {
  display: inline-flex;
  align-items: center;
}

body.cms-edit-mode .cms-edit-trigger-host .cms-edit-trigger {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transform: translate(34%, -34%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(181, 31, 49, 0.26);
  font-size: 0.68rem;
  line-height: 1;
  z-index: 3;
  cursor: pointer;
}

body.cms-edit-mode .cms-edit-trigger-host .cms-edit-trigger i {
  pointer-events: none;
}

body.cms-edit-mode .field-options-select-wrap .cms-edit-trigger-host .cms-edit-trigger {
  top: -20px;
}

.cms-collection-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cms-collection-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cms-collection-card {
  position: relative;
}

.cms-collection-container.is-reorder-saving {
  opacity: 0.78;
  pointer-events: none;
}

.cms-collection-card[draggable="true"] {
  will-change: transform;
}

.cms-collection-card.is-dragging {
  opacity: 0.18;
  transform: none;
  background: rgba(201, 83, 43, 0.08);
  border: 2px dashed rgba(201, 83, 43, 0.55);
  box-shadow: none;
  pointer-events: none;
}

.cms-collection-card.is-drop-target {
  box-shadow: 0 0 0 3px rgba(201, 83, 43, 0.24), var(--shadow-soft);
}

.cms-collection-card-drag {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 69, 58, 0.92);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 69, 58, 0.22);
  z-index: 4;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cms-collection-card-drag:hover,
.cms-collection-card-drag:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(23, 69, 58, 0.28);
}

.cms-collection-card-drag:active {
  cursor: grabbing;
}

@media (hover: none), (pointer: coarse), (max-width: 860px) {
  .cms-collection-card-drag {
    display: none;
  }
}

.cms-collection-card-remove {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(181, 31, 49, 0.22);
  z-index: 4;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cms-collection-card-remove:hover,
.cms-collection-card-remove:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(181, 31, 49, 0.28);
}

.cms-editor-panel[hidden] {
  display: none;
}

.cms-editor-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.cms-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 19, 0.45);
}

.cms-editor-dialog {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  margin: 8vh auto 0;
  max-height: calc(100vh - 12vh);
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.98);
  border: 1px solid rgba(24, 33, 26, 0.14);
  box-shadow: 0 32px 80px rgba(24, 18, 12, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cms-editor-header,
.cms-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(24, 33, 26, 0.08);
}

.cms-editor-actions {
  border-bottom: 0;
  border-top: 1px solid rgba(24, 33, 26, 0.08);
  justify-content: flex-end;
}

.cms-editor-body {
  padding: 20px;
  overflow-y: auto;
}

.cms-editor-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
}

.cms-editor-input,
.cms-editor-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(24, 33, 26, 0.14);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  padding: 14px 16px;
}

.cms-editor-textarea {
  min-height: 170px;
  resize: vertical;
}

.cms-editor-close {
  border: 0;
  background: transparent;
  color: var(--color-text-soft);
  font-size: 1.6rem;
  cursor: pointer;
}

.cms-editor-help {
  margin-top: 14px;
  color: var(--color-text-soft);
  font-size: 0.94rem;
}

.cms-editor-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(24, 33, 26, 0.06);
  color: var(--color-text);
}

.cms-editor-status.is-error {
  background: rgba(171, 49, 49, 0.09);
  color: #8f1f1f;
}

.cms-editor-image {
  margin-top: 14px;
}

.cms-editor-image-tools[hidden] {
  display: none;
}

.cms-editor-image-tools {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.cms-editor-image-preview {
  position: relative;
  overflow: hidden;
  width: min(100%, 560px);
  aspect-ratio: var(--cms-preview-aspect, 16 / 9);
  min-height: 0;
  margin-inline: auto;
  border-radius: 22px;
  border: 1px solid rgba(24, 33, 26, 0.12);
  background:
    linear-gradient(45deg, rgba(24, 33, 26, 0.04) 25%, transparent 25%, transparent 75%, rgba(24, 33, 26, 0.04) 75%),
    linear-gradient(45deg, rgba(24, 33, 26, 0.04) 25%, transparent 25%, transparent 75%, rgba(24, 33, 26, 0.04) 75%),
    var(--cms-image-fill, #f6f0e8);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.cms-editor-image-preview.is-dragging {
  cursor: grabbing;
}

.cms-editor-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.cms-editor-image-preview-hint {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.cms-editor-image-range-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cms-editor-image-range-row input[type="range"] {
  flex: 1 1 auto;
}

.cms-editor-image-zoom-value {
  min-width: 56px;
  text-align: right;
  font-weight: 700;
  color: var(--color-text);
}

.cms-editor-image-button-row {
  display: flex;
  justify-content: flex-end;
}

.cms-editor-mode {
  margin-top: 14px;
}

.cms-editor-font-size {
  margin-top: 14px;
}

@media (max-width: 860px) {
  .cms-auth-icon-button,
  .cms-auth-menu-button {
    min-width: 40px;
    min-height: 40px;
    height: 40px;
  }

  .cms-auth-icon-button {
    width: 40px;
  }

  .cms-auth-menu-button {
    padding: 0 12px;
  }

  .cms-auth-menu-button span {
    max-width: 70px;
  }

  .cms-auth-dropdown {
    left: 0;
    right: auto;
    min-width: min(220px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}
