:root {
  --bg: #070707;
  --panel: #121212;
  --panel-soft: #1a1a1a;
  --text: #f7f1e8;
  --muted: #b9aea0;
  --line: #2b2926;
  --field: #0b0b0b;
  --media-bg: #090909;
  --header-bg: rgba(7, 7, 7, .88);
  --overlay: rgba(0, 0, 0, .54);
  --hover-soft: rgba(255, 255, 255, .06);
  --hero-overlay: linear-gradient(90deg, rgba(7,7,7,.98) 0%, rgba(7,7,7,.78) 58%, rgba(7,7,7,.25) 100%);
  --accent: #c8342e;
  --accent-2: #d7aa5b;
  --success: #57b56c;
  --error: #d65b5b;
  --max: 1180px;
}

body.theme-light {
  --bg: #f6f2eb;
  --panel: #fffaf2;
  --panel-soft: #f0e7dc;
  --text: #181512;
  --muted: #6d6257;
  --line: #ded2c4;
  --field: #fffdf8;
  --media-bg: #eee5da;
  --header-bg: rgba(246, 242, 235, .9);
  --overlay: rgba(255, 250, 242, .72);
  --hover-soft: rgba(24, 21, 18, .06);
  --hero-overlay: linear-gradient(90deg, rgba(246,242,235,.98) 0%, rgba(246,242,235,.86) 58%, rgba(246,242,235,.42) 100%);
  --accent: #b3312c;
  --accent-2: #9a6a19;
  --success: #357f49;
  --error: #b74242;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}

.brand-domain {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.brand-copy em {
  color: var(--accent-2);
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  grid-template-columns: 16px auto;
  gap: 4px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  grid-column: 1;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle strong {
  grid-column: 2;
  grid-row: 1 / 4;
  margin-left: 6px;
  font-size: 13px;
}

.admin-menu {
  position: relative;
}

.admin-menu summary {
  cursor: pointer;
  list-style: none;
}

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

.admin-menu summary::after {
  content: "▾";
  margin-left: 6px;
  color: var(--accent-2);
  font-size: 11px;
}

.admin-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  z-index: 40;
  display: grid;
  min-width: 220px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

.admin-menu div a {
  padding: 11px 12px;
  color: var(--muted);
}

.admin-menu div a:hover {
  background: var(--hover-soft);
  color: var(--text);
}

.admin-menu-submenu {
  display: block;
  border-top: 1px solid var(--line);
}

.admin-menu-submenu summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
}

.admin-menu-submenu summary::after {
  margin-left: auto;
}

.admin-menu .admin-menu-submenu > div {
  position: static;
  display: grid;
  min-width: 0;
  margin: 0 0 6px;
  padding: 0 0 0 10px;
  border: 0;
  box-shadow: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.user-avatar {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: #173847;
  color: #d9f5fb;
  font-size: 13px;
  font-weight: 900;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - 74px);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background:
    var(--hero-overlay),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.master-hero {
  position: relative;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 50%;
  display: inline-grid;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(6, 25, 36, .74);
  color: #fff;
  cursor: pointer;
  transform: translateX(-50%);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.hero-scroll-cue span {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  border-color: var(--brand-gold);
  background: var(--brand-gold);
  color: #10212b;
  outline: 0;
  transform: translateX(-50%) translateY(3px);
}

.hero-scroll-cue:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: .98;
}

h1 {
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 500;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
}

h3 {
  font-size: 25px;
  line-height: 1.1;
}

.lead,
.page-head p,
.course-hero p,
.section-title p {
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.hero-media {
  min-height: 360px;
  display: flex;
  align-items: end;
}

.video-frame {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.75)),
    url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=80") center/cover;
  background-position: center;
  background-size: cover;
}

.video-frame-player {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.video-frame-player iframe,
.video-frame-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-frame small,
.course-body span,
.progress-card span,
.post-list span,
.pricing-grid span,
.instructor-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.play {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: rgba(255,255,255,.92);
  color: #101010;
  border-radius: 50%;
}

.goal-finder {
  max-width: 620px;
  margin-top: 34px;
  padding: 22px;
  background: var(--overlay);
  border: 1px solid rgba(255, 255, 255, .16);
}

.goal-finder strong {
  display: block;
  margin-bottom: 14px;
  font-size: 20px;
}

.goal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.goal-options label {
  margin: 0;
}

.goal-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.goal-options span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.goal-options input:checked + span {
  border-color: var(--accent-2);
  background: rgba(215, 170, 91, .16);
}

.band,
.page-head,
.course-hero,
.lesson-list,
.dashboard-grid,
.admin-grid,
.admin-list,
.post-list,
.pricing-grid,
.newsletter-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(38px, 5.2vw, 68px) 18px;
}

.page-head {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(28px, 4vw, 46px);
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

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

.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 18px 18px;
}

.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.access-page-head h1 {
  max-width: 900px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.02;
}

.access-model-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-model-grid article {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.access-model-grid span {
  display: block;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-model-grid h2 {
  margin: 10px 0 14px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.access-model-grid p,
.access-model-grid li {
  color: var(--muted);
  line-height: 1.55;
}

.access-model-grid ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.access-model-grid li + li {
  margin-top: 8px;
}

.book-hero,
.book-chapter {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 76px) 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.book-hero h1 {
  max-width: 760px;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.06;
}

.book-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}

.book-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  max-width: 520px;
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-meta strong {
  color: var(--text);
}

.book-cover {
  justify-self: center;
  max-width: 360px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 936;
  object-fit: cover;
}

.book-purchase {
  max-width: 520px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.book-purchase > p:first-child {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.book-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 180px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #111;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.book-shop-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
}

.book-shop-amazon {
  background: #fff;
}

.book-shop-bod {
  background: #e9f2f5;
}

.book-shop-wordmark {
  color: #111;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.book-shop-amazon .book-shop-wordmark {
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.book-shop-amazon .book-shop-wordmark span {
  font-size: 13px;
  font-weight: 800;
}

.book-shop-bod .book-shop-wordmark {
  color: #087b83;
}

.book-shop-bod .book-shop-wordmark span {
  display: block;
  margin-top: 2px;
  color: #34444a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-shop-arrow {
  color: #555;
  font-size: 19px;
  font-weight: 700;
}

.affiliate-notice {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px !important;
  line-height: 1.45;
}

.book-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  max-width: 640px;
  margin-top: 24px;
}

.book-code-form label {
  margin: 0;
}

.book-code-form .help-text {
  grid-column: 1 / -1;
  margin: 0;
}

.book-grid,
.book-download-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(44px, 6vw, 76px);
  display: grid;
  gap: 16px;
}

.book-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  grid-auto-rows: 1fr;
}

.book-grid article,
.book-download-list article {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.book-grid article {
  display: grid;
  gap: 12px;
}

.book-chapter-card {
  grid-template-rows: auto auto minmax(7.75em, 1fr) auto;
  min-height: 360px;
}

.book-grid span,
.book-download-list span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-grid h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.12;
}

.book-grid p,
.book-download-list p {
  color: var(--muted);
  line-height: 1.55;
}

.book-chapter-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.book-chapter-action {
  align-self: end;
  width: 100%;
  justify-content: center;
}

.book-download-list article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.book-chapter {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-homepage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 18px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(48px, 7vw, 92px);
}

.admin-dashboard a {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.admin-dashboard span {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.admin-dashboard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-summary,
.stat-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 24px;
}

.dashboard-summary article,
.stat-grid article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.dashboard-summary span,
.stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-summary strong,
.stat-grid strong {
  display: block;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.dashboard-summary p,
.stat-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-stat-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px 24px;
}

.admin-accordion {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(48px, 7vw, 92px);
}

.admin-accordion.single > details:not([open]) {
  display: none;
}

.admin-accordion.single .admin-section summary {
  cursor: default;
}

.admin-accordion.single .admin-section summary::after {
  display: none;
}

.admin-section {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.admin-section summary::-webkit-details-marker {
  display: none;
}

.admin-section summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1;
}

.admin-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.admin-section[open] summary::after {
  content: "−";
}

.admin-section summary span {
  display: block;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.admin-section summary small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.admin-section > .form-card,
.admin-section > .admin-list.inner {
  margin: 22px;
}

.admin-list.inner {
  padding: 0;
}

.admin-stat-columns .admin-list.inner {
  padding: 18px;
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px 24px;
}

.analytics-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel-soft, var(--panel));
}

.analytics-card-wide {
  grid-column: 1 / -1;
}

.analytics-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.analytics-card-heading .eyebrow {
  margin: 0 0 4px;
}

.analytics-card h2 {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.analytics-card-note,
.chart-legend {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-key {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.chart-key-download {
  background: var(--accent-2);
}

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

.chart-list-dense {
  gap: 8px;
}

.chart-bar-row,
.chart-dual-row {
  display: grid;
  grid-template-columns: minmax(74px, .9fr) minmax(0, 3.2fr) 44px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chart-bar-row > :first-child,
.chart-dual-row time {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-bar-row strong,
.chart-dual-row > strong {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.chart-track {
  display: block;
  height: 8px;
  overflow: hidden;
  background: var(--hover-soft);
}

.chart-fill {
  display: block;
  width: var(--chart-value, 0%);
  min-width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .4s ease;
}

.chart-fill-open,
.chart-fill-positive {
  background: #1c8d95;
}

.chart-fill-download,
.chart-fill-accent {
  background: var(--accent-2);
}

.chart-fill-muted {
  background: #77828b;
}

.chart-fill-warning {
  background: #c76c28;
}

.chart-dual-tracks {
  display: grid;
  gap: 3px;
}

.statistics-admin > .statistics-dashboard {
  padding: 28px 24px 30px;
}

.statistics-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.statistics-dashboard-head .eyebrow,
.statistics-chart-card .eyebrow {
  margin: 0 0 6px;
}

.statistics-dashboard-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif, Georgia, serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.04;
}

.statistics-dashboard-head > div > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.statistics-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 22px;
  border: 1px solid var(--line);
  width: fit-content;
}

.statistics-periods a {
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.statistics-periods a:last-child {
  border-right: 0;
}

.statistics-periods a:hover,
.statistics-periods a.is-active {
  color: var(--text);
  background: var(--hover-soft);
}

.statistics-periods .statistics-reset {
  color: var(--accent-2);
}

.statistics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.statistics-kpis button {
  min-height: 145px;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft, var(--panel));
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.statistics-kpis button:hover {
  background: var(--hover-soft);
}

.statistics-kpis span,
.statistics-kpis small {
  display: block;
  color: var(--muted);
}

.statistics-kpis span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.statistics-kpis strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--text);
  font-size: clamp(30px, 3vw, 46px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.statistics-kpis small {
  font-size: 12px;
  line-height: 1.45;
}

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

.statistics-chart-card {
  position: relative;
  min-width: 0;
  min-height: 345px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel-soft, var(--panel));
}

.statistics-chart-card-wide {
  grid-column: 1 / -1;
}

.statistics-chart-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.statistics-chart-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.statistics-chart-card canvas {
  display: block;
  width: 100% !important;
  height: 235px !important;
  margin: 20px 0 16px;
}

.statistics-chart-card-wide canvas {
  height: 270px !important;
}

.statistics-chart-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
}

.statistics-chart-toggle button {
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.statistics-chart-toggle button:last-child {
  border-right: 0;
}

.statistics-chart-toggle button.is-active {
  background: var(--hover-soft);
  color: var(--text);
}

.statistics-detail-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: pointer;
  font-weight: 800;
}

.statistics-empty-chart {
  display: grid;
  min-height: 235px;
  margin: 20px 0 16px;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.statistics-geo-note {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.statistics-world-card,
.statistics-content-rankings {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel-soft, var(--panel));
}

.statistics-world-card > header,
.statistics-content-rankings > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.statistics-world-card h3,
.statistics-content-rankings h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.statistics-world-card > header > span,
.statistics-content-rankings > header > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.statistics-world-map {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a2025;
}

.statistics-world-map > svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 290px;
}

.statistics-world-country {
  fill: #163a42;
  stroke: #3c6067;
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
  transition: fill .18s ease, stroke .18s ease, opacity .18s ease;
}

.statistics-world-country.is-active {
  cursor: pointer;
  stroke: #f5f0e8;
  stroke-width: 1.25;
}

.statistics-world-country.is-active:hover,
.statistics-world-country.is-active:focus {
  stroke: #ffffff;
  stroke-width: 2;
  outline: none;
}

.statistics-world-tooltip {
  position: absolute;
  z-index: 2;
  max-width: 230px;
  padding: 7px 10px;
  transform: translate(-50%, calc(-100% - 10px));
  border: 1px solid rgba(245, 240, 232, .5);
  background: #06161a;
  color: #f5f0e8;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.statistics-world-empty {
  position: absolute;
  inset: 0;
  display: grid;
  max-width: 260px;
  margin: auto;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.statistics-world-empty[hidden] {
  display: none;
}

.statistics-city-insights {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.statistics-city-insights > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.statistics-city-insights h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.statistics-city-insights > header > span {
  color: var(--muted);
  font-size: 13px;
}

.statistics-city-insights ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.statistics-city-insights li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 3px 9px;
  padding: 14px;
  background: var(--surface);
}

.statistics-city-insights li > span {
  grid-row: span 2;
  color: var(--accent-2);
  font-weight: 800;
}

.statistics-city-insights strong,
.statistics-city-insights small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-city-insights small {
  color: var(--muted);
}

.statistics-ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.statistics-ranking-tabs button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.statistics-ranking-tabs button.is-active {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #18262a;
}

.statistics-ranking-panel[hidden] {
  display: none;
}

.statistics-ranking-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.statistics-ranking-panel li {
  display: flex;
  min-width: 0;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.statistics-ranking-position {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--hover-soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.statistics-ranking-panel a {
  display: grid;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.statistics-ranking-panel a:hover strong,
.statistics-ranking-panel a:focus-visible strong {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.statistics-ranking-panel strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-ranking-panel small,
.statistics-ranking-empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.statistics-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  overflow: auto;
  padding: 24px;
  place-items: center;
  background: rgba(4, 14, 19, .72);
}

.statistics-modal[hidden] {
  display: none !important;
}

.statistics-dialog {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.statistics-dialog > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.statistics-dialog .eyebrow {
  margin: 0 0 6px;
}

.statistics-dialog h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif, Georgia, serif);
  font-size: 30px;
  font-weight: 500;
}

.statistics-dialog > header button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.statistics-dialog form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
}

.statistics-dialog form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.statistics-dialog form input,
.statistics-dialog form select {
  min-width: 0;
}

.statistics-dialog form footer {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.statistics-detail-dialog [data-statistics-detail-content] {
  padding: 12px 28px 28px;
}

.statistics-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.statistics-detail-list strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.statistics-detail-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

@media (max-width: 760px) {
  .statistics-admin > .statistics-dashboard {
    padding: 22px 14px 24px;
  }

  .statistics-dashboard-head,
  .statistics-chart-card > header,
  .statistics-city-insights > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .statistics-dashboard-head h2 {
    font-size: 32px;
  }

  .statistics-periods {
    width: 100%;
  }

  .statistics-periods a {
    flex: 1 1 auto;
    text-align: center;
  }

  .statistics-kpis,
  .statistics-chart-grid,
  .statistics-dialog form {
    grid-template-columns: 1fr;
  }

  .statistics-kpis button {
    min-height: 118px;
  }

  .statistics-chart-card,
  .statistics-chart-card-wide {
    min-height: 315px;
    grid-column: auto;
    padding: 18px;
  }

  .statistics-chart-card canvas,
  .statistics-chart-card-wide canvas {
    height: 220px !important;
  }

  .statistics-city-insights ol {
    grid-template-columns: 1fr;
  }

  .statistics-modal {
    padding: 12px;
  }

  .statistics-dialog > header,
  .statistics-dialog form,
  .statistics-detail-dialog [data-statistics-detail-content] {
    padding-right: 18px;
    padding-left: 18px;
  }

  .statistics-detail-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .statistics-detail-list span {
    text-align: left;
  }

  .statistics-world-card,
  .statistics-content-rankings {
    padding: 18px;
  }

  .statistics-world-card > header,
  .statistics-content-rankings > header {
    align-items: start;
    flex-direction: column;
  }

  .statistics-world-card > header > span,
  .statistics-content-rankings > header > p {
    max-width: none;
    text-align: left;
  }

  .statistics-world-map,
  .statistics-world-map > svg {
    min-height: 210px;
  }

  .statistics-ranking-panel ol {
    grid-template-columns: 1fr;
  }
}

/* Attachment analytics uses dedicated row components so generic admin list flex rules cannot affect its data layout. */
.attachment-analytics .stat-grid {
  max-width: none;
}

.attachment-analytics-grid {
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  gap: 34px;
  padding: 8px 24px 28px;
}

.attachment-analytics-grid > :nth-child(3) {
  grid-column: 1 / -1;
}

.attachment-analytics .admin-list.inner {
  min-width: 0;
  padding: 0;
}

.attachment-analytics .admin-list.inner h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.attachment-analytics .admin-list.inner article {
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.attachment-analytics .admin-list.inner article:last-of-type {
  border-bottom: 0;
}

.attachment-stat-day {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 3px 14px;
  align-items: baseline;
}

.attachment-stat-day time,
.attachment-access-row time,
.attachment-context,
.attachment-metrics small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.attachment-stat-day time {
  grid-row: span 2;
  color: var(--accent-2);
  font-weight: 800;
}

.attachment-stat-day strong {
  color: var(--text);
  font-size: 15px;
}

.attachment-stat-day span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

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

.attachment-activity-row p,
.attachment-access-row p {
  min-width: 0;
  margin: 0;
}

.attachment-activity-row p:first-child,
.attachment-access-row p {
  display: grid;
  gap: 3px;
}

.attachment-activity-row strong,
.attachment-access-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-activity-row .attachment-context,
.attachment-access-row .attachment-context {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-metrics {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.attachment-metrics span {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.attachment-metrics b {
  color: var(--accent-2);
}

.attachment-activity-row .button {
  width: auto;
  min-height: 34px;
  white-space: nowrap;
}

.attachment-access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr) auto;
  gap: 12px 18px;
  align-items: center;
}

.attachment-access-row strong {
  color: var(--accent-2);
}

.admin-homepage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.admin-homepage-grid .wide {
  grid-column: 1 / -1;
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px;
}

.database-backup-grid .form-card {
  margin: 0;
}

.database-backup-grid .form-card > p:not(.eyebrow):not(.help-text) {
  color: var(--muted);
  line-height: 1.55;
}

.database-restore-card {
  border-color: color-mix(in srgb, #d65b56 55%, var(--line));
}

.database-restore-card .button.ghost {
  border-color: #d65b56;
  color: #d65b56;
}

.course-grid.wide {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 80px;
}

/* Academy catalogue: orient before the learner has to read a full course card. */
.academy-catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  min-height: min(580px, calc(100vh - 106px));
  padding: clamp(50px, 7vw, 92px) max(18px, calc((100vw - var(--max)) / 2 + 18px)) clamp(42px, 6vw, 76px);
  color: #f8fafc;
  background:
    linear-gradient(90deg, rgba(3, 15, 24, .98) 0%, rgba(3, 15, 24, .91) 48%, rgba(5, 39, 60, .76) 100%),
    radial-gradient(circle at 82% 17%, rgba(43, 114, 197, .32), transparent 31%),
    #07131d;
}

.academy-catalog-hero-copy {
  max-width: 720px;
}

.academy-catalog-hero .eyebrow {
  color: #72a9ea;
}

.academy-catalog-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1;
}

.academy-catalog-hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: #c6d8e4;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.academy-catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.academy-catalog-hero .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.academy-catalog-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(190, 216, 235, .23);
  background: rgba(10, 32, 47, .72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
}

.academy-catalog-stats div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 20px 16px;
  border-right: 1px solid rgba(190, 216, 235, .18);
}

.academy-catalog-stats div:last-child {
  border-right: 0;
}

.academy-catalog-stats strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.academy-catalog-stats span {
  color: #b5c9d5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.academy-catalog {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 66px) 18px 88px;
}

.academy-catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.academy-catalog-toolbar .eyebrow {
  margin-bottom: 9px;
}

.academy-catalog-toolbar h2 {
  max-width: 620px;
  font-size: clamp(32px, 3.5vw, 48px);
}

.academy-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(8, 25, 36, .72);
}

.academy-filter button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.academy-filter button span {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  padding: 0 4px;
  color: inherit;
  font-size: 11px;
}

.academy-filter button:hover,
.academy-filter button:focus-visible,
.academy-filter button.is-active {
  color: #fff;
  border-color: rgba(114, 169, 234, .65);
  background: rgba(43, 114, 197, .28);
  outline: 0;
}

.academy-course-grid.course-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  padding: 0;
}

.academy-course-grid .course-card {
  min-height: 100%;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.academy-course-grid .course-card:hover {
  border-color: rgba(114, 169, 234, .72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.academy-course-grid .course-image {
  aspect-ratio: 16 / 8;
  padding: 10px;
}

.academy-course-grid .course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.course-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-card-meta span {
  padding: 4px 7px;
  color: #bcd5e7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  border: 1px solid rgba(114, 169, 234, .35);
}

.academy-course-grid .course-body h3 {
  font-size: clamp(24px, 2vw, 30px);
}

.academy-course-grid .course-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.course-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.course-card-footer > div {
  min-width: 0;
}

.course-card-footer .access-pill {
  margin: 0;
}

.course-card-footer small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.course-card-footer .button {
  flex: 0 0 auto;
}

.academy-filter-empty {
  margin: 0 0 20px;
  padding: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
}

.course-card,
.progress-card,
.post-list article,
.pricing-grid div,
.newsletter-benefits div,
.instructor-card,
.form-card,
.module-block {
  background: var(--panel);
  border: 1px solid var(--line);
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-community-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-community-feed article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.home-community-feed small {
  color: var(--muted);
  font-size: 13px;
}

.home-community-feed h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.16;
}

.home-community-feed h3 a:hover {
  color: var(--accent-2);
}

.home-community-feed p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feed-link {
  color: var(--accent-2);
  font-weight: 900;
}

.role-entry-grid,
.pricing-overview-grid,
.explain-grid,
.free-start-grid,
.community-steps,
.decision-grid {
  display: grid;
  gap: 18px;
}

.role-entry-grid,
.pricing-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mission-values article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.mission-values article:last-child {
  border-right: 0;
}

.mission-values strong {
  color: var(--accent-2);
  font-size: 16px;
}

.mission-values span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.free-start-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}

.free-start-grid,
.explain-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.role-entry-grid a,
.free-start-grid a,
.pricing-overview-grid article,
.free-start-grid article,
.explain-grid article,
.community-steps article,
.decision-grid a {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
}

.role-entry-grid a:hover,
.free-start-grid a:hover,
.decision-grid a:hover,
.pricing-overview-grid article.is-highlighted {
  border-color: var(--accent-2);
}

.role-entry-grid span,
.pricing-overview-grid span,
.explain-grid span,
.decision-grid span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.role-entry-grid strong,
.free-start-grid strong,
.community-steps strong,
.decision-grid strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.role-entry-grid p,
.free-start-grid span,
.pricing-overview-grid p,
.explain-grid p,
.community-steps span,
.decision-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pricing-overview-grid .pricing-intro {
  color: var(--muted);
}

.pricing-overview-grid .pricing-intro b {
  color: var(--accent-2);
}

.pricing-overview-grid strong {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.pricing-overview-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

/* Desktop homepage: later sections gently slide over the preceding one. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .home-stack-stage {
    position: -webkit-sticky;
    position: sticky;
    top: 72px;
    z-index: 1;
    isolation: isolate;
  }

  .home-stack-stage + .home-stack-stage {
    margin-top: -28px;
  }

  .home-stack-stage > .home-layer {
    position: relative;
    z-index: 1;
    background: var(--panel);
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 38px rgba(0, 0, 0, .32);
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .home-stack-stage > .home-layer {
    background: var(--panel);
    border-top: 1px solid var(--line);
  }
}

.community-steps strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0b0b0b;
  background: var(--accent-2);
}

.course-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 12px;
  background-color: var(--media-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.lightbox-trigger {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.course-image img,
.lightbox-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(0, 0, 0, .88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  max-width: min(1100px, 96vw);
  max-height: 88vh;
  margin: 0;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--media-bg);
  border: 1px solid var(--line);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: var(--overlay);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.course-body {
  flex: 1;
  padding: 22px;
}

.course-body h3 {
  margin: 8px 0 12px;
}

.course-body p,
.module-block p,
.progress-card p,
.post-list p,
.pricing-grid p,
.lesson-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.course-body a {
  color: var(--accent-2);
  font-weight: 800;
}

.sponsor-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 4px 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(215, 170, 91, .42);
  background: rgba(215, 170, 91, .12);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 8px 14px 0;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sponsor-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin: 24px 0 0;
  padding: 18px;
  background: rgba(215, 170, 91, .10);
  border: 1px solid rgba(215, 170, 91, .35);
}

.sponsor-banner img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  background: rgba(255, 255, 255, .92);
  padding: 8px;
}

.sponsor-banner span,
.sponsor-banner a,
.sponsor-note {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.sponsor-banner strong {
  display: block;
  margin: 4px 0;
  font-size: 19px;
}

.sponsor-banner p {
  margin: 0;
  font-size: 15px;
}

.sponsor-banner a {
  display: inline-flex;
  margin-top: 10px;
}

/* Central partner presentation stays deliberately compact and separate from pricing. */
.partner-section { max-width: 1280px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 56px); }
.partner-section h2 { margin: 0 0 24px; }
.partner-badge-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.partner-badge { min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: grid; gap: 10px; align-content: space-between; }
.partner-badge > span { color: var(--gold); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.partner-badge a, .partner-badge > div { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.partner-badge img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; padding: 5px; }
.network-governance-notice { margin-top: 20px; max-width: 860px; padding: 16px 18px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--panel) 84%, transparent); }
.network-governance-notice p { margin: 6px 0; }
.network-governance-notice a { color: var(--gold); font-weight: 700; }
.academy-partner-intro { max-width: 1280px; margin: 28px auto 0; padding: 28px clamp(20px, 4vw, 56px); border: 1px solid var(--line); background: var(--panel); }
.academy-partner-intro h2 { margin: 4px 0 8px; }
.academy-partner-intro .partner-badge { max-width: 320px; margin-top: 18px; }
.admin-partner-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 24px; }
.admin-partner-list { border: 1px solid var(--line); padding: 18px; }
.admin-partner-list article, .admin-partner-relation-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-partner-list article:last-child, .admin-partner-relation-list article:last-child { border-bottom: 0; }
.admin-partner-list small, .admin-partner-relation-list small { display: block; margin-top: 3px; color: var(--muted); }
.admin-partner-relations { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-partner-relations .form-card.compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin: 18px 0; }
.admin-danger-zone { margin-top: 18px; }
@media (max-width: 760px) { .admin-partner-layout { grid-template-columns: 1fr; } .admin-partner-relations .form-card.compact { grid-template-columns: 1fr; } .partner-section { padding-block: 36px; } }

.partner-profile-link { color: var(--gold); font-size: .86rem; font-weight: 800; }
.partner-landing-head, .partner-profile-head { max-width: 1060px; }
.partner-type-grid, .partner-inquiry-section, .partner-profile-relations { max-width: 1280px; margin: 0 auto; padding: 48px clamp(20px, 4vw, 56px); }
.partner-type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.partner-type-grid article { padding: 20px; border: 1px solid var(--line); background: var(--panel); }
.partner-type-grid h2 { font-size: 1.1rem; margin: 7px 0; }
.partner-inquiry-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: 38px; align-items: center; }
.partner-inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.partner-inquiry-actions p { margin: 0; color: var(--muted); }
.partner-inquiry-modal { position: fixed; inset: 0; z-index: 116; display: grid; place-items: center; padding: clamp(18px, 4vw, 48px); overflow-y: auto; background: rgba(5, 15, 19, .82); }
.partner-inquiry-modal[hidden] { display: none; }
.partner-inquiry-dialog { width: min(780px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .46); }
.partner-inquiry-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 28px; padding: 28px 32px 24px; border-bottom: 1px solid var(--line); }
.partner-inquiry-dialog > header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 48px); }
.partner-inquiry-dialog > header p:not(.eyebrow) { max-width: 610px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.partner-inquiry-dialog > header button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
.partner-inquiry-dialog .form-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.partner-inquiry-dialog .form-card footer { display: flex; flex-wrap: wrap; gap: 12px; grid-column: 1 / -1; }
.partner-profile-relations { max-width: 900px; }
.partner-profile-relations li { margin: 8px 0; }
.innovation-partner-governance > p { max-width: 1180px; margin: 0 auto 30px; padding: 0 clamp(20px, 4vw, 56px); color: var(--muted); }
.admin-partner-inquiries { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-partner-inquiry { display: grid; grid-template-columns: 1fr minmax(240px, .4fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-partner-inquiry span { display: block; color: var(--muted); margin-top: 4px; }
.admin-partner-inquiry form { display: grid; gap: 8px; align-content: start; }
@media (max-width: 900px) { .partner-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .partner-inquiry-section, .admin-partner-inquiry { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .partner-inquiry-modal { padding: 0; } .partner-inquiry-dialog { min-height: 100vh; max-height: none; border: 0; } .partner-inquiry-dialog > header, .partner-inquiry-dialog .form-card { padding-left: 20px; padding-right: 20px; } }

.sponsor-note {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(215, 170, 91, .35);
  background: rgba(215, 170, 91, .10);
}

.sponsor-note a {
  color: var(--accent-2);
  margin-left: 8px;
  text-decoration: underline;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip div {
  min-height: 150px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip span {
  margin-top: 12px;
  color: var(--muted);
}

.expert-carousel-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 18px;
}

.expert-carousel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.expert-slide {
  position: relative;
  display: none;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  padding: clamp(24px, 5vw, 52px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.expert-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.expert-slide .expert-photo,
.expert-slide > div:not(.expert-photo) {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.expert-slide.is-active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.expert-photo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  background: var(--media-bg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.expert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.expert-photo span {
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(80px, 12vw, 140px);
}

.expert-slide h3 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: .98;
}

.expert-slide span,
.expert-slide strong {
  color: var(--accent-2);
}

.expert-slide p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.expert-directory {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(48px, 7vw, 92px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.expert-directory-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.expert-directory-card:hover {
  border-color: rgba(215, 170, 91, .5);
}

.expert-directory-card h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.expert-directory-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.45;
}

.expert-directory-card strong {
  color: var(--accent-2);
}

.expert-photo.small {
  max-width: 110px;
}

.expert-photo.small span {
  font-size: 56px;
}

.expert-profile {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) 18px;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.expert-profile-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--media-bg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.expert-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.expert-profile-photo span {
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(90px, 14vw, 160px);
}

.expert-profile-copy h2 {
  margin: 14px 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.expert-profile-copy strong {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
}

.expert-profile-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.expert-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.expert-portal-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 18px 72px;
}

.expert-access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.expert-access-panel div {
  display: grid;
  gap: 6px;
}

.expert-access-panel strong {
  font-size: 17px;
}

.expert-access-panel span {
  color: var(--muted);
}

.expert-access-panel code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--accent-2);
}

@media (max-width: 640px) {
  .expert-access-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .expert-access-panel .button {
    width: 100%;
  }
}

.expert-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .24);
  cursor: pointer;
}

.expert-dots button.is-active {
  background: var(--accent-2);
}

.membership-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 18px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.membership-band p,
.newsletter-band p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.membership-band ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.membership-band li {
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--text);
  line-height: 1.45;
}

.membership-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .5fr);
  gap: 28px;
  align-items: end;
  padding: clamp(48px, 7vw, 90px) clamp(18px, 5vw, 72px);
  background: var(--panel-soft);
  border-top: 1px solid var(--line);
}

.newsletter-band form {
  display: flex;
  gap: 10px;
}

.newsletter-band input {
  flex: 1;
}

.newsletter-page {
  display: grid;
  grid-template-columns: minmax(320px, .52fr) minmax(0, 1fr);
  gap: 22px;
  padding-top: 0;
}

.newsletter-benefits {
  display: grid;
  gap: 14px;
}

.newsletter-benefits div {
  padding: 24px;
}

.newsletter-benefits strong,
.newsletter-benefits span {
  display: block;
}

.newsletter-benefits span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.newsletter-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px;
}

.newsletter-admin-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--field);
}

.newsletter-admin-stats strong,
.newsletter-admin-stats span {
  display: block;
}

.newsletter-admin-stats strong {
  font-size: 32px;
  color: var(--accent-2);
}

.newsletter-admin-stats span {
  margin-top: 6px;
  color: var(--muted);
}

.newsletter-subscriber-list > div {
  align-items: flex-start;
  flex-direction: column;
}

.page-head.compact {
  padding-bottom: 18px;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.price {
  color: var(--accent-2);
  font-weight: 900;
}

.instructor-card {
  align-self: end;
  padding: 28px;
}

.instructor-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.instructor-photo {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.lesson-list {
  padding-top: 0;
}

.module-block {
  margin-bottom: 18px;
  padding: 26px;
  overflow: visible;
}

.module-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.module-image {
  min-height: 140px;
  background-color: var(--media-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid var(--line);
}

.module-block h2 {
  font-size: clamp(32px, 3.8vw, 56px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.module-block p {
  display: block;
  max-height: none;
  overflow: visible;
}

.module-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
  color: var(--text);
}

.module-meta strong {
  font-size: 15px;
}

.module-meta span {
  color: var(--muted);
  font-size: 14px;
}

.lesson-expert {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.module-lessons {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.module-lessons-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
}

.module-lessons-toggle::-webkit-details-marker {
  display: none;
}

.module-lessons-summary,
.module-lessons-action,
.lesson-row-main {
  display: flex;
  align-items: center;
}

.module-lessons-summary {
  gap: 12px;
  flex-wrap: wrap;
}

.module-lessons-kicker {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.module-lessons-summary strong {
  font-size: 17px;
}

.module-lessons-summary > span:last-child,
.module-lessons-action,
.lesson-duration,
.lesson-number,
.module-lessons-empty {
  color: var(--muted);
}

.module-lessons-action {
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.module-lessons-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}

.module-lessons[open] .module-lessons-chevron {
  transform: rotate(225deg) translateY(-1px);
}

.module-lessons-body {
  padding-bottom: 10px;
}

.module-lessons-empty {
  margin: 0;
  padding: 8px 0 18px;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  color: var(--text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.lesson-row:hover,
.lesson-row:focus-visible {
  border-color: var(--accent-2);
  background: rgba(215, 170, 91, .1);
  outline: 0;
  transform: translateX(3px);
}

.lesson-row-main {
  min-width: 0;
  gap: 12px;
}

.lesson-row-main > span:last-child {
  min-width: 0;
}

.lesson-row-main strong,
.lesson-number {
  display: block;
}

.lesson-row-main strong {
  overflow-wrap: anywhere;
}

.lesson-number {
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lesson-status {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  color: var(--accent-2);
  font-size: 11px;
}

.lesson-row.is-complete .lesson-status {
  background: var(--accent-2);
  color: #12100d;
}

.lesson-duration {
  flex: 0 0 auto;
  font-size: 13px;
  white-space: nowrap;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  min-height: calc(100vh - 74px);
}

.player {
  background: #000;
}

.player iframe,
.player video,
.video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
}

.player video {
  display: block;
  background: #000;
  object-fit: contain;
}

.video-placeholder {
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.7)),
    url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.video-placeholder span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: white;
  color: black;
}

.lesson-panel {
  padding: clamp(28px, 5vw, 54px);
  background: var(--panel);
  border-left: 1px solid var(--line);
}

.lesson-panel h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.lesson-content {
  margin: 26px 0;
  color: var(--text);
  line-height: 1.7;
}

.auth {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(50px, 8vw, 110px) 18px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
}

.account-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(48px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 18px clamp(48px, 7vw, 92px);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.form-card {
  padding: 26px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
}

.check input {
  width: auto;
  min-height: auto;
}

.dashboard-grid,
.admin-grid,
.post-list,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.progress-card,
.post-list article,
.pricing-grid div {
  padding: 24px;
}

.community-layout,
.community-detail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px clamp(48px, 7vw, 92px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.community-sidebar,
.community-composer,
.community-detail-card,
.comment-list article {
  background: var(--panel);
  border: 1px solid var(--line);
}

.community-sidebar {
  padding: 18px;
  position: sticky;
  top: 96px;
}

.community-sidebar h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.community-sidebar a,
.community-tabs a {
  display: block;
  padding: 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.community-sidebar a.is-active,
.community-tabs a.is-active {
  border-color: rgba(215, 170, 91, .42);
  background: rgba(215, 170, 91, .10);
  color: var(--text);
}

.community-sidebar strong,
.community-sidebar span,
.community-card-footer span,
.comment-list span,
.community-detail-card > span {
  display: block;
}

.community-sidebar span,
.community-card-footer span,
.comment-list span,
.community-detail-card > span {
  color: var(--muted);
  font-size: 13px;
}

.community-main {
  display: grid;
  gap: 14px;
}

.community-filter-drawer,
.community-composer {
  background: var(--panel);
  border: 1px solid var(--line);
}

.community-filter-drawer summary,
.community-composer summary {
  padding: 14px 16px;
  cursor: pointer;
  color: var(--accent-2);
  font-weight: 900;
  list-style: none;
}

.community-filter-drawer summary::-webkit-details-marker,
.community-composer summary::-webkit-details-marker {
  display: none;
}

.community-filter-drawer summary::after,
.community-composer summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.community-filter-drawer[open] summary::after,
.community-composer[open] summary::after {
  content: "–";
}

.community-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-tabs a {
  min-width: 120px;
  text-align: center;
  background: var(--panel);
  border-color: var(--line);
}

.community-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 10px;
  align-items: end;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.community-search label {
  margin: 0;
}

.community-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.community-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(215, 170, 91, .36);
  background: rgba(215, 170, 91, .09);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.community-priority-badge.is-pinned {
  border-color: rgba(31, 130, 156, .48);
  background: rgba(31, 130, 156, .12);
  color: #167d96;
}

.community-priority-badge.is-featured {
  border-color: rgba(215, 153, 54, .58);
  background: rgba(215, 153, 54, .14);
  color: #a65f08;
}

.community-feed-item.is-pinned,
.community-detail-card.is-pinned {
  border-left: 4px solid #167d96;
}

.community-feed-item.is-featured,
.community-detail-card.is-featured {
  box-shadow: inset 0 0 0 1px rgba(215, 153, 54, .32), var(--shadow-card);
}

.community-feed-item.is-pinned.is-featured,
.community-detail-card.is-pinned.is-featured {
  border-left-color: #a65f08;
}

.rich-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: -6px 0 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.rich-editor-source {
  display: none !important;
}

.stable-admin-editor {
  min-height: 520px;
  line-height: 1.7;
  white-space: pre-wrap;
  resize: vertical;
}

.stable-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: -6px 0 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.stable-editor .stable-admin-editor {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.rich-toolbar button,
.rich-upload-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.rich-upload-button input {
  display: none;
}

.rich-toolbar button:hover,
.rich-upload-button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.rich-editor-surface {
  display: block !important;
  align-self: stretch;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 180px;
  padding: 14px;
  color: var(--text);
  line-height: 1.65;
  outline: none;
  column-count: auto !important;
  column-width: auto !important;
  white-space: normal;
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: anywhere;
}

.rich-editor-surface:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor-surface * {
  max-width: 100%;
  column-count: auto !important;
  column-width: auto !important;
  float: none !important;
  position: static !important;
}

.rich-editor-surface > * {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  clear: both !important;
}

.rich-editor-surface p,
.rich-editor-surface div,
.rich-editor-surface blockquote,
.rich-editor-surface ul,
.rich-editor-surface ol,
.rich-editor-surface table,
.rich-editor-surface tbody,
.rich-editor-surface tr,
.rich-editor-surface td,
.rich-editor-surface th,
.rich-editor-surface h2,
.rich-editor-surface h3 {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 14px;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.rich-editor-surface span {
  display: inline;
}

.rich-editor-surface strong,
.rich-editor-surface b,
.rich-editor-surface em,
.rich-editor-surface i,
.rich-editor-surface u,
.rich-editor-surface a {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.rich-editor-surface img,
.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

.rich-content img {
  cursor: zoom-in;
}

.rich-content {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0 0 16px;
}

.rich-content h2,
.rich-content h3 {
  margin: 24px 0 12px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.15;
}

.rich-content h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.rich-content h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.rich-content a {
  color: var(--accent-2);
  text-decoration: underline;
}

.community-composer .form-card {
  border: 0;
  border-top: 1px solid var(--line);
}

.community-feed {
  padding: 0;
  grid-template-columns: 1fr;
  gap: 14px;
}

.community-feed article {
  display: grid;
  gap: 9px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .18s ease, background .18s ease;
}

.community-feed article:hover {
  border-color: rgba(215, 170, 91, .44);
  background: var(--panel-soft);
}

.community-feed h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.18;
}

.community-feed h2 a:hover {
  color: var(--accent-2);
}

.community-feed p {
  margin: 0;
}

.community-load-more {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.community-load-more .button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 270px;
  justify-content: center;
  border-color: #087f91;
  background: #087f91;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 127, 145, .22);
}

.community-load-more .button:hover,
.community-load-more .button:focus-visible {
  border-color: #056a7b;
  background: #056a7b;
  color: #ffffff;
}

.community-load-more .button span {
  font-size: 20px;
  line-height: 1;
}

.community-load-more .button:disabled {
  cursor: wait;
  opacity: .68;
}

.community-preview-image {
  display: block;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--media-bg);
}

.community-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--accent-2);
  font-size: 13px;
}

.community-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.community-card-footer a {
  color: var(--accent-2);
  font-weight: 900;
}

.community-login-note {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}

.community-login-note a {
  color: var(--accent-2);
  font-weight: 900;
}

.community-detail {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.community-detail-card,
.comment-list {
  padding: clamp(22px, 4vw, 38px);
}

.community-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.community-detail-nav [data-community-back]::before {
  content: "←";
  margin-right: 8px;
}

.community-detail-card h1 {
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 52px);
}

.share-panel {
  margin: 0 0 20px;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.share-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.share-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-panel a,
.share-panel button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.share-icon span {
  font-size: 14px;
  line-height: 1;
}

.share-panel a:hover,
.share-panel button:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.link-preview-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.community-reaction-bar,
.community-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.community-reaction-bar {
  margin: 24px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.community-reaction-bar form,
.community-comment-actions form {
  margin: 0;
}

.community-like-button,
.comment-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.community-like-button span,
.comment-like-button span {
  font-size: 19px;
  line-height: 1;
}

.community-like-button strong,
.comment-like-button strong {
  font: inherit;
}

.community-like-button.is-active,
.comment-like-button.is-active {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.link-preview-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  min-height: 0;
  height: 148px;
  max-width: 820px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-preview-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.link-preview-image {
  display: block;
  height: 148px;
  overflow: hidden;
  background: #0b0b0b;
  border-right: 1px solid var(--line);
}

.link-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 148px;
  object-fit: cover;
}

.link-preview-body {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
}

.link-preview-body small {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.link-preview-body strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1.15;
}

.link-preview-body span {
  color: var(--muted);
  line-height: 1.45;
}

.community-post-images {
  display: grid;
  gap: 18px;
  margin: 26px 0;
}

.community-post-images figure {
  margin: 0;
  overflow: hidden;
  background: var(--media-bg);
  border: 1px solid var(--line);
}

.community-post-images img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: var(--media-bg);
}

.community-post-images figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.community-attachments {
  margin: 28px 0;
  display: grid;
  gap: 12px;
}

.community-attachments h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.community-attachments article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.community-attachment-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.community-attachments strong {
  display: block;
  color: var(--text);
}

.community-attachments p {
  margin: 6px 0 0;
  color: var(--muted);
}

.community-attachments span {
  display: block;
  margin-top: 6px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.use-case-detail {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.use-case-detail div {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.use-case-detail strong {
  color: var(--accent-2);
}

.comment-list {
  display: grid;
  gap: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.comment-list h2 {
  font-size: 28px;
}

.comment-list article {
  padding: 16px;
}

.comment-list article p {
  margin: 10px 0 12px;
}

.community-comment-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.community-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.community-comment-actions form {
  margin: 0;
}

.community-comment-read-more {
  white-space: normal;
  text-align: left;
}

.community-comment-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 14, 19, .78);
}

.community-comment-modal[hidden] {
  display: none;
}

.community-comment-modal__dialog {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
}

.community-comment-modal__dialog header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.community-comment-modal__dialog header span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.community-comment-modal__dialog h3 {
  margin: 5px 0 2px;
  font-size: 24px;
}

.community-comment-modal__dialog header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.community-comment-modal__body {
  max-height: calc(min(760px, 100vh - 48px) - 132px);
  padding: 22px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.community-member-comment-teaser {
  border-left: 4px solid var(--accent-2);
  background: var(--panel);
}

.community-comment-pixel-mask {
  display: grid;
  gap: 7px;
  margin: 14px 0 12px;
  padding: 14px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(131, 150, 158, .18) 0 6px, rgba(131, 150, 158, .08) 6px 12px);
  border: 1px solid var(--line);
}

.community-comment-pixel-mask span {
  display: block;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(99, 119, 129, .68) 0 7px, rgba(169, 182, 188, .6) 7px 14px);
  filter: blur(2px);
}

.community-comment-pixel-mask span:nth-child(2) {
  width: 86%;
}

.community-comment-pixel-mask span:nth-child(3) {
  width: 68%;
}

.community-member-comment-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comment-like-button {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.comment-like-button:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.community-ad-slot {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.community-ad-slot > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.community-ad-slot .adsbygoogle {
  width: 100%;
  min-height: 220px;
  overflow: hidden;
}

.community-custom-ad {
  display: block;
  max-width: 100%;
}

.community-custom-ad img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.community-ad-slot--custom {
  justify-items: center;
}

.community-custom-ad[data-ad-format="120x600"] { width: 120px; }
.community-custom-ad[data-ad-format="160x600"] { width: 160px; }
.community-custom-ad[data-ad-format="300x250"] { width: 300px; }
.community-custom-ad[data-ad-format="300x600"] { width: 300px; }
.community-custom-ad[data-ad-format="728x90"] { width: 728px; }
.community-custom-ad[data-ad-format="970x250"] { width: 970px; }
.community-custom-ad[data-ad-format="320x50"] { width: 320px; }

.community-custom-ad[data-ad-format="120x600"] img { height: 600px; object-fit: cover; }
.community-custom-ad[data-ad-format="160x600"] img { height: 600px; object-fit: cover; }
.community-custom-ad[data-ad-format="300x250"] img { height: 250px; object-fit: cover; }
.community-custom-ad[data-ad-format="300x600"] img { height: 600px; object-fit: cover; }
.community-custom-ad[data-ad-format="728x90"] img { height: 90px; object-fit: cover; }
.community-custom-ad[data-ad-format="970x250"] img { height: 250px; object-fit: cover; }
.community-custom-ad[data-ad-format="320x50"] img { height: 50px; object-fit: cover; }

@media (max-width: 760px) {
  .community-custom-ad[data-ad-format] img {
    height: auto;
  }
}

.community-top-post-row a {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-top-post-row span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.ad-settings-status {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.ad-settings-status.is-ready {
  border-color: var(--accent-2);
}

.ad-settings-status > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-settings-status span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.ad-settings-status .is-passed {
  color: var(--accent-2);
}

.ad-settings-status .is-missing {
  color: #d85c54;
}

.ad-settings-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-card h2 {
  margin: 10px 0 22px;
  font-size: 31px;
}

.progress {
  height: 9px;
  background: var(--panel-soft);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--accent-2);
}

.certificate {
  max-width: 900px;
  margin: 70px auto;
  padding: clamp(44px, 8vw, 90px);
  text-align: center;
  border: 1px solid var(--accent-2);
  background: var(--panel);
}

.certificate h1 {
  margin: 12px auto;
}

.certificate h2 {
  margin-top: 24px;
  color: var(--accent-2);
}

.admin-list {
  padding-top: 0;
}

.admin-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.admin-list strong,
.admin-list span {
  min-width: 0;
}

.admin-list span {
  color: var(--muted);
}

.row-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row-actions form {
  margin: 0;
}

.inline-select-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.inline-select-form select {
  min-width: 240px;
}

.inline-select-form input {
  width: auto;
  min-width: 170px;
}

.inline-select-form button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.row-actions a,
.row-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.row-actions button {
  color: #ffb7b7;
}

.help-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.sponsor-admin-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(215, 170, 91, .28);
  background: rgba(215, 170, 91, .08);
}

.video-admin-box {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
}

.sponsor-admin-box h3,
.video-admin-box h3 {
  margin-bottom: 16px;
  font-size: 22px;
}

.media-picker-field {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.media-picker-field > label {
  margin: 0;
}

.media-picker-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px solid var(--line);
  background: var(--field);
  overflow: hidden;
}

.media-picker-preview img,
.media-picker-preview video,
.media-picker-thumb img,
.media-picker-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-picker-selection {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.media-picker-empty,
.media-picker-file {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.media-picker-file strong,
.media-picker-file span {
  display: block;
}

.media-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-picker-actions .button {
  min-height: 40px;
}

.media-picker-actions input[type="file"] {
  display: none;
}

.media-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(0, 0, 0, .82);
  overflow: auto;
}

.community-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  padding: clamp(12px, 3vw, 36px);
  overflow: auto;
  background: rgba(7, 15, 19, .78);
}

.community-editor-modal[hidden] {
  display: none;
}

.community-editor-dialog {
  width: min(1040px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.community-editor-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.community-editor-header .eyebrow {
  margin: 0 0 4px;
}

.community-editor-header h2 {
  margin: 0;
  font-size: 22px;
}

.community-editor-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.community-editor-form {
  display: grid;
  gap: 15px;
  padding: 22px;
}

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

.community-editor-details label:first-child,
.community-editor-details label:nth-child(2),
.community-editor-details label:nth-child(5) {
  grid-column: 1 / -1;
}

.community-editor-seo {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.community-editor-seo summary {
  padding: 14px 0;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.community-editor-seo > div {
  display: grid;
  gap: 14px;
  padding: 0 0 18px;
}

.community-editor-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

@media (max-width: 640px) {
  .community-editor-modal {
    padding: 0;
  }

  .community-editor-dialog {
    min-height: 100vh;
    border: 0;
  }

  .community-editor-header,
  .community-editor-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .community-editor-basics,
  .community-editor-details {
    grid-template-columns: 1fr;
  }

  .community-editor-details label:first-child,
  .community-editor-details label:nth-child(2),
  .community-editor-details label:nth-child(5) {
    grid-column: auto;
  }

  .community-editor-actions .button {
    flex: 1 1 auto;
  }
}

.media-picker-modal[hidden] {
  display: none;
}

.media-picker-dialog {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.media-picker-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.media-picker-dialog header button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}

.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 18px;
}

.media-picker-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.media-picker-item:hover {
  border-color: var(--accent-2);
}

.media-picker-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--media-bg);
  overflow: hidden;
}

.media-picker-item small {
  color: var(--muted);
}

.media-meta-editor {
  margin-top: 12px;
}

.media-meta-editor summary {
  color: var(--accent-2);
  cursor: pointer;
  font-weight: 800;
}

.inline-media-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.inline-media-meta label {
  margin: 0;
}

.inline-media-meta button,
.inline-media-meta label:nth-child(5) {
  grid-column: 1 / -1;
}

code {
  padding: 2px 5px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--accent-2);
  overflow-wrap: anywhere;
}

.flash {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flash.success {
  border-color: var(--success);
}

.flash.error {
  border-color: var(--error);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  width: min(620px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 22px;
  border: 1px solid rgba(151, 176, 179, .48);
  border-radius: 8px;
  background: #10242c;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .34);
  color: #f7f5ef;
}

.cookie-consent[hidden],
.cookie-settings-modal[hidden] { display: none; }

.cookie-consent strong { display: block; font-size: 18px; }
.cookie-consent p { margin: 7px 0; color: #cbd7d7; line-height: 1.5; }
.cookie-consent a { color: #e5b751; font-weight: 800; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-consent-actions form { margin: 0; }
.cookie-settings-modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .7);
}

.cookie-settings-dialog {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(151, 176, 179, .38);
  border-radius: 8px;
  background: #10242c;
  color: #f7f5ef;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .45);
}

.cookie-settings-dialog h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(32px, 5vw, 48px); font-weight: 500; }
.cookie-settings-dialog > p:not(.eyebrow) { color: #cbd7d7; line-height: 1.6; }
.cookie-settings-item { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(151, 176, 179, .28); }
.cookie-settings-item div { display: grid; gap: 4px; }
.cookie-settings-item small { color: #cbd7d7; }
.cookie-settings-item > span { color: #e5b751; font-weight: 800; white-space: nowrap; }
body.theme-light .cookie-consent, body.theme-light .cookie-settings-dialog { border-color: #aac4c7; background: #fff; color: #15353c; }
body.theme-light .cookie-consent p, body.theme-light .cookie-settings-dialog > p:not(.eyebrow), body.theme-light .cookie-settings-item small { color: #537077; }
body.theme-light .cookie-consent a, body.theme-light .cookie-settings-item > span { color: #9a6d04; }

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  padding: clamp(56px, 8vw, 108px) clamp(18px, 7vw, 132px);
  background: #0c363d;
  color: #f8f6f1;
}

.services-hero > div {
  max-width: 800px;
}

.services-hero h1,
.services-overview h2,
.services-process h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.services-hero > div > p:not(.eyebrow) {
  max-width: 680px;
  margin: 28px 0 0;
  color: #d4e1e0;
  font-size: 20px;
  line-height: 1.55;
}

.services-hero aside {
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--accent);
  color: #d4e1e0;
}

.services-hero aside span,
.services-hero aside strong {
  display: block;
}

.services-hero aside span {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.services-hero aside strong {
  color: #f8f6f1;
  font-size: 24px;
  line-height: 1.2;
}

.services-hero aside p {
  margin: 14px 0 0;
  line-height: 1.55;
}

.services-overview,
.services-process {
  padding: clamp(56px, 7vw, 100px) clamp(18px, 7vw, 132px);
}

.services-overview {
  background: var(--ink);
  color: #f8f6f1;
}

.services-overview > p,
.services-process > p {
  max-width: 680px;
  margin: 18px 0 38px;
  font-size: 18px;
  line-height: 1.6;
}

.services-overview > p {
  color: #c7d4d3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(248, 246, 241, 0.25);
  border-left: 1px solid rgba(248, 246, 241, 0.25);
}

.services-grid article {
  min-height: 230px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid rgba(248, 246, 241, 0.25);
  border-bottom: 1px solid rgba(248, 246, 241, 0.25);
}

.services-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.services-grid h3 {
  margin: 14px 0 12px;
  color: #f8f6f1;
  font-size: 25px;
  line-height: 1.15;
}

.services-grid p {
  margin: 0;
  color: #c7d4d3;
  line-height: 1.55;
}

.services-grid a {
  display: inline-block;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 800;
}

.services-process {
  background: #e8f0ee;
  color: #102f36;
}

.services-process > p {
  color: #426066;
}

.services-process ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: services;
}

.services-process li {
  counter-increment: services;
  padding-top: 18px;
  border-top: 3px solid var(--accent);
  font-size: 18px;
  line-height: 1.55;
}

.services-process li::before {
  display: block;
  margin-bottom: 12px;
  color: #9b7018;
  font-weight: 800;
  content: "0" counter(services);
}

body.theme-light .services-overview {
  background: #153e46;
}

@media (max-width: 760px) {
  .services-hero,
  .services-grid,
  .services-process ol {
    grid-template-columns: 1fr;
  }

  .services-hero {
    align-items: start;
  }

  .services-hero h1,
  .services-overview h2,
  .services-process h2 {
    font-size: 44px;
  }
}

.footer-rss-link {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--accent-2);
}

.footer-rss-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-rss-link:hover,
.footer-rss-link:focus-visible {
  color: var(--text);
}

.install-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7,7,7,.95), rgba(7,7,7,.78)),
    url("https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.install-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
}

.install-card {
  width: min(680px, 100%);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

@media (max-width: 900px) {
  .home-stack-stage.is-mobile-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 360ms ease-out, transform 360ms ease-out;
  }

  .home-stack-stage.is-mobile-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy {
    overflow: hidden;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

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

  .role-entry-grid,
  .pricing-overview-grid,
  .free-start-layout,
  .free-start-grid,
  .explain-grid,
  .community-steps,
  .decision-grid,
  .mission-values {
    grid-template-columns: 1fr;
  }

  .role-entry-grid,
  .pricing-overview-grid,
  .decision-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .role-entry-grid > *,
  .pricing-overview-grid > *,
  .decision-grid > * {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 14px 14px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .nav.is-open {
    display: grid;
  }

  .nav > a,
  .nav .admin-menu,
  .nav .user-chip {
    min-height: 44px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-menu div {
    position: static;
    margin-top: 10px;
  }

  .admin-section summary {
    align-items: flex-start;
  }

  .admin-section > .form-card,
  .admin-section > .admin-list.inner {
    margin: 14px;
  }

  .hero,
  .section-title,
  .course-hero,
  .community-layout,
  .community-detail,
  .book-hero,
  .book-chapter,
  .expert-directory,
  .expert-profile,
  .player-layout,
  .auth,
  .account-grid,
  .membership-band,
  .newsletter-band {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .access-model-grid,
  .dashboard-grid,
  .dashboard-summary,
  .stat-grid,
  .analytics-chart-grid,
  .admin-stat-columns,
  .admin-grid,
  .admin-dashboard,
  .post-list,
  .pricing-grid,
  .feature-strip,
  .newsletter-page,
  .newsletter-admin-stats,
  .community-search {
    grid-template-columns: 1fr;
  }

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

  .book-chapter-card {
    min-height: 0;
  }

  .book-download-list article,
  .book-code-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .book-download-list article {
    flex-direction: column;
  }

  .community-attachments article {
    flex-direction: column;
    align-items: stretch;
  }

  .community-sidebar {
    position: static;
    order: 2;
  }

  .community-main {
    order: 1;
  }

  .expert-slide {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .expert-photo {
    max-width: 220px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 260px;
  }

  .player iframe,
  .player video,
  .video-placeholder {
    min-height: 320px;
  }

  .goal-options,
  .admin-homepage-grid,
  .admin-split {
    grid-template-columns: 1fr;
  }

  .newsletter-band form {
    display: grid;
  }

  .sponsor-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-head {
    grid-template-columns: 1fr;
  }

  .lesson-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer {
    flex-direction: column;
  }
}

/* Conversion analytics in the administration */
.conversion-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  padding: 0 24px 24px;
}

.conversion-analytics-grid > :last-child {
  grid-column: 1 / -1;
}

.conversion-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0 24px 24px;
}

.conversion-analytics .admin-stat-card strong {
  color: var(--text);
}

.analytics-list-card,
.digest-test-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.analytics-list-card h3,
.digest-test-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 20px;
}

.analytics-event-row,
.analytics-source-row,
.email-delivery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 16px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.analytics-event-row:first-of-type,
.analytics-source-row:first-of-type,
.email-delivery-row:first-of-type {
  border-top: 0;
}

.analytics-event-row strong,
.analytics-source-row strong,
.email-delivery-row strong {
  display: block;
  color: var(--text);
}

.analytics-event-row span,
.analytics-source-row span,
.email-delivery-row span {
  color: var(--muted);
  font-size: 13px;
}

.analytics-event-row > span:last-child,
.analytics-source-row > span:last-child,
.email-delivery-row > span:last-child {
  white-space: nowrap;
}

.email-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.email-status.accepted {
  color: #075d69;
  background: #dff4f5;
}

.email-status.failed {
  color: #9d2d2d;
  background: #fbe6e6;
}

.conversion-email-settings {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 22px;
  padding: 0 24px 24px;
}

.conversion-email-settings .form-grid {
  margin: 0;
}

.digest-test-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.digest-test-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .conversion-analytics-grid,
  .conversion-email-settings {
    grid-template-columns: 1fr;
    padding-right: 18px;
    padding-left: 18px;
  }

  .conversion-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 640px) {
  .conversion-stat-grid {
    grid-template-columns: 1fr;
  }

  .analytics-event-row,
  .analytics-source-row,
  .email-delivery-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .analytics-event-row > span:last-child,
  .analytics-source-row > span:last-child,
  .email-delivery-row > span:last-child {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .book-purchase-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .book-shop-button {
    width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    width: auto;
    flex: 1;
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .role-entry-grid a,
  .free-start-grid a,
  .pricing-overview-grid article,
  .free-start-grid article,
  .explain-grid article,
  .community-steps article,
  .decision-grid a {
    padding: 16px;
  }

  .mission-values {
    border-bottom: 0;
  }

  .mission-values article {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .role-entry-grid strong,
  .free-start-grid strong,
  .community-steps strong,
  .decision-grid strong {
    font-size: 19px;
  }

  .pricing-overview-grid strong {
    font-size: 32px;
  }

  .brand-domain {
    font-size: 14px;
  }

  .brand-copy small {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy em {
    font-size: 13px;
  }

  .nav {
    display: none;
    width: auto;
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 13px;
  }

  .nav.is-open {
    display: grid;
  }

  .nav > a,
  .admin-menu summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
  }

  .user-chip {
    justify-content: flex-start;
    min-height: 42px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .user-chip > span:last-child {
    display: inline;
  }

  .nav .button.small {
    min-height: 42px;
    padding: 0 12px;
    justify-content: center;
  }

  .admin-menu {
    width: 100%;
  }

  .admin-menu div {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    max-height: 55vh;
    overflow-y: auto;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 42px;
    background:
      var(--hero-overlay),
      url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1000&q=74") center/cover;
  }

  h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: 38px;
    line-height: 1.04;
  }

  h2 {
    font-size: 31px;
    line-height: 1.04;
  }

  h3 {
    font-size: 22px;
  }

  .lead,
  .page-head p,
  .course-hero p,
  .section-title p {
    font-size: 16px;
  }

  .hero-actions,
  .checkout-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .button,
  .button.small,
  .button.ghost {
    width: 100%;
    min-height: 48px;
  }

  .hero-media {
    min-height: 220px;
  }

  .video-frame {
    min-height: 220px;
    padding: 18px;
  }

  .goal-finder {
    padding: 16px;
  }

  .goal-options {
    gap: 8px;
  }

  .goal-options span {
    min-height: 46px;
    font-size: 13px;
  }

  .band,
  .page-head,
  .course-hero,
  .community-layout,
  .community-detail,
  .expert-directory,
  .expert-profile,
  .lesson-list,
  .dashboard-grid,
  .admin-grid,
  .admin-list,
  .post-list,
  .pricing-grid,
  .newsletter-page,
  .expert-carousel-band,
  .membership-band {
    padding: 34px 14px;
  }

  .community-head {
    padding: 26px 14px 18px;
  }

  .community-head h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .community-head p {
    font-size: 15px;
    line-height: 1.5;
  }

  .community-layout {
    padding-top: 0;
    gap: 14px;
  }

  .community-feed {
    padding: 0;
  }

  .community-feed article {
    padding: 16px;
  }

  .community-feed h2 {
    font-size: 22px;
  }

  .community-preview-image {
    height: 180px;
  }

  .community-sidebar {
    padding: 14px;
  }

  .community-sidebar h2 {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 18px;
  }

  .community-sidebar a {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .expert-directory-card {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 14px;
  }

  .expert-photo.small {
    max-width: 80px;
  }

  .expert-directory-card h2 {
    font-size: 20px;
  }

  .expert-profile-photo {
    max-width: 260px;
  }

  .community-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .community-card-footer {
    display: grid;
  }

  .community-detail-card,
  .comment-list {
    padding: 18px;
  }

  .community-detail-card h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .share-panel {
    padding: 12px;
  }

  .share-panel strong {
    margin-bottom: 8px;
  }

  .share-panel div {
    gap: 8px;
  }

  .share-panel a,
  .share-panel button {
    width: 38px;
    min-height: 38px;
  }

  .link-preview-card {
    grid-template-columns: 1fr;
    height: auto;
    max-width: 100%;
  }

  .link-preview-image {
    height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .link-preview-image img {
    max-height: 180px;
  }

  .section-title {
    gap: 16px;
    margin-bottom: 22px;
  }

  .course-grid.wide {
    padding: 0 14px 44px;
  }

  .section-head {
    padding: 28px 14px 14px;
  }

  .access-model-grid {
    padding: 0 14px 34px;
  }

  .access-model-grid article {
    padding: 20px 18px;
  }

  .course-grid {
    gap: 14px;
  }

  .band > .course-grid:not(.wide),
  .home-community-feed {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 2px 0 12px;
    scrollbar-width: none;
  }

  .band > .course-grid:not(.wide)::-webkit-scrollbar,
  .home-community-feed::-webkit-scrollbar {
    display: none;
  }

  .band > .course-grid:not(.wide) > .course-card,
  .home-community-feed > article {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }

  .course-image {
    aspect-ratio: 16 / 10;
    padding: 8px;
  }

  .course-body,
  .progress-card,
  .post-list article,
  .pricing-grid div,
  .newsletter-benefits div,
  .instructor-card,
  .form-card,
  .module-block {
    padding: 18px;
  }

  .course-body p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .course-body .module-block p {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    max-height: none;
    overflow: visible;
  }

  .access-pill,
  .sponsor-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .expert-carousel-band {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .expert-slide {
    padding: 18px;
    gap: 18px;
  }

  .expert-photo {
    width: min(190px, 70vw);
    max-width: 190px;
  }

  .expert-slide h3 {
    font-size: 31px;
  }

  .expert-slide p {
    font-size: 16px;
    -webkit-line-clamp: 6;
  }

  .expert-dots {
    position: static;
    padding: 0 18px 18px;
  }

  .expert-dots button {
    flex: 1;
    height: 5px;
  }

  .feature-strip div {
    min-height: auto;
    padding: 20px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .membership-band li {
    padding-left: 28px;
  }

  .newsletter-band {
    padding: 34px 14px;
  }

  .course-hero {
    gap: 16px;
  }

  .sponsor-banner {
    padding: 14px;
  }

  .sponsor-banner img {
    width: 62px;
    height: 62px;
  }

  .instructor-card {
    align-self: stretch;
  }

  .instructor-card strong {
    font-size: 24px;
  }

  .module-head {
    gap: 14px;
  }

  .module-image {
    min-height: 180px;
  }

  .lesson-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .lesson-row small {
    white-space: normal;
  }

  .module-lessons-toggle {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
  }

  .module-lessons-action {
    width: 100%;
    justify-content: space-between;
    color: var(--accent-2);
  }

  .lesson-duration {
    align-self: center;
    text-align: right;
  }

  .player-layout {
    min-height: auto;
  }

  .player iframe,
  .player video,
  .video-placeholder {
    min-height: 240px;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .lesson-panel {
    padding: 22px 18px 92px;
  }

  .lesson-panel h1 {
    font-size: 32px;
  }

  .lesson-panel form {
    position: sticky;
    bottom: 12px;
    z-index: 12;
    margin: 20px 0 0;
  }

  .lesson-panel form .button {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
  }

  .auth {
    padding: 34px 14px;
    gap: 20px;
  }

  .account-grid {
    padding: 0 14px 40px;
  }

  .legal-page {
    padding: 0 14px 40px;
    font-size: 16px;
  }

  input,
  textarea,
  select {
    min-height: 48px;
    font-size: 16px;
  }

  .check {
    align-items: flex-start;
  }

  .check input {
    margin-top: 3px;
  }

  .admin-dashboard {
    gap: 12px;
    padding: 0 14px 40px;
  }

  .dashboard-summary,
  .stat-grid,
  .admin-stat-columns {
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-dashboard a {
    min-height: 112px;
    padding: 18px;
  }

  .admin-dashboard span {
    font-size: 21px;
  }

  .admin-accordion {
    padding: 0 14px 40px;
  }

  .admin-section summary {
    min-height: 62px;
    padding: 14px 16px;
  }

  .admin-section summary span {
    font-size: 19px;
  }

  .admin-section summary small {
    font-size: 13px;
  }

  .admin-section > .form-card,
  .admin-section > .admin-list.inner,
  .admin-split,
  .newsletter-admin-stats {
    margin: 12px;
  }

  .admin-homepage-grid {
    gap: 12px;
  }

  .admin-list > div {
    align-items: stretch;
  }

  .row-actions,
  .inline-select-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .row-actions a,
  .row-actions button,
  .inline-select-form button {
    width: 100%;
    min-height: 42px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .footer {
    padding: 30px 14px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-consent { right: 16px; bottom: 16px; grid-template-columns: 1fr; gap: 16px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions form { flex: 1 1 180px; }
  .cookie-consent-actions .button { width: 100%; }
}

@media (max-width: 900px) {
  .analytics-chart-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
  }

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

  .attachment-analytics-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 14px 22px;
  }

  .attachment-analytics-grid > :nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .analytics-card {
    padding: 16px;
  }

  .analytics-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .chart-bar-row,
  .chart-dual-row {
    grid-template-columns: minmax(62px, .8fr) minmax(0, 2fr) 38px;
    gap: 8px;
  }

  .attachment-stat-day {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .attachment-stat-day time {
    grid-row: auto;
  }

  .attachment-activity-row,
  .attachment-access-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .attachment-activity-row .button {
    width: 100%;
  }

  .attachment-access-row time {
    font-size: 12px;
  }
}

/* Network pages */
.network-content-band {
  display: grid;
  gap: 28px;
}

.network-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.network-teaser-card,
.network-list-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.network-teaser-card img,
.network-list-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  object-fit: cover;
}

.network-teaser-card h3,
.network-list-card h2 {
  margin: 12px 0 8px;
  font-family: var(--font-sans);
  font-size: 23px;
  line-height: 1.18;
}

.network-teaser-card p,
.network-list-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.initiative-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.network-page-head {
  max-width: 920px;
}

.network-listing,
.network-detail {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
}

.network-listing {
  display: grid;
  gap: 16px;
}

.event-month-group {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 44px;
}

.event-month-heading {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.event-month-list {
  width: 100%;
  margin: 0;
}

.network-list-card {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.network-list-card > img {
  margin: 0;
}

.network-detail {
  max-width: 850px;
}

.network-detail h1 {
  max-width: 18ch;
  margin: 14px 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.network-detail .lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.network-detail-image {
  display: block;
  width: 100%;
  max-height: 480px;
  margin: 28px 0;
  object-fit: cover;
}

.initiative-goal,
.initiative-result {
  margin: 28px 0;
  padding: 24px;
  border-left: 3px solid var(--accent-2);
  background: var(--panel);
}

.initiative-goal p,
.initiative-result p {
  margin-bottom: 0;
}

.network-empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
}

@media (max-width: 760px) {
  .network-teaser-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .network-teaser-card {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: start;
  }

  .network-listing,
  .network-detail {
    width: min(100% - 28px, 850px);
    margin-bottom: 42px;
  }

  .event-month-group {
    width: min(100% - 28px, 850px);
    margin-bottom: 32px;
  }

  .event-month-heading {
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 30px;
  }

  .network-list-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .network-detail h1 {
    font-size: clamp(32px, 10vw, 46px);
  }
}

/* Pflegeinformatik.org Design System 1.0
   Shared geometry and type stay constant; each network area receives one restrained accent. */
:root {
  --brand-ink: #06131d;
  --brand-navy: #092230;
  --brand-gold: #d9a928;
  --brand-sky: #0f91a7;
  --brand-paper: #f5f8fa;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-card: 8px;
  --shadow-card: 0 12px 30px rgba(6, 19, 29, .08);
}

/* The header and footer deliberately remain the stable, dark brand frame. */
.site-header {
  background: rgba(3, 15, 24, .96);
  border-bottom-color: rgba(223, 234, 239, .15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
}

.site-header .brand-domain,
.site-header .nav,
.site-header .nav a,
.site-header .user-chip,
.site-header .nav-toggle {
  color: #f7fafc;
}

.site-header .brand-copy small,
.site-header .nav a:not(.button) {
  color: #c3d0d6;
}

.site-header .nav a:not(.button):hover,
.site-header .nav a:not(.button):focus-visible {
  color: #fff;
}

.site-header .nav .button {
  border-color: var(--brand-gold);
  background: var(--brand-gold);
  color: #10212b;
}

.button,
.course-card,
.progress-card,
.post-list article,
.pricing-grid div,
.newsletter-benefits div,
.instructor-card,
.form-card,
.module-block,
.expert-directory-card,
.network-teaser-card,
.network-list-card,
.access-model-grid article,
.home-community-feed article {
  border-radius: var(--radius-card);
}

.button {
  border-radius: 6px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(6, 19, 29, .18);
}

.button.ghost {
  border-color: currentColor;
}

.area-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(50px, 7vw, 88px) max(18px, calc((100vw - var(--max)) / 2 + 18px));
  color: #f8fafc;
  background:
    radial-gradient(circle at 83% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 32%),
    linear-gradient(120deg, var(--brand-ink), var(--brand-navy));
}

.area-hero h1 {
  max-width: 16ch;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
}

.area-hero p:not(.eyebrow) {
  max-width: 700px;
  color: #d3dee3;
}

.area-hero .eyebrow {
  color: var(--accent);
}

.area-hero .button.ghost {
  border-color: rgba(255, 255, 255, .46);
  color: #fff;
}

.community-head[data-community-hero] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #061c27;
  background-image: url('../../uploads/hero-network-europe.png');
  background-position: center;
  background-size: cover;
  transition: padding .34s ease;
}

.community-head[data-community-hero]::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(2, 18, 27, .72);
  content: '';
}

.community-head[data-community-hero] > * {
  position: relative;
  z-index: 1;
}

.community-head .community-hero-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-head .community-hero-eyebrow-row .eyebrow {
  margin: 0;
}

.community-head .community-hero-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(226, 243, 247, .48);
  border-radius: 50%;
  background: rgba(4, 21, 31, .42);
  color: #edf7fa;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.community-head .community-hero-toggle:hover,
.community-head .community-hero-toggle:focus-visible {
  border-color: #74d6e7;
  background: #16485a;
  color: #fff;
  outline: 0;
}

.community-head[data-community-hero].is-collapsed {
  padding-top: 20px;
  padding-bottom: 16px;
}

.community-head[data-community-hero].is-collapsed h1 {
  max-width: none;
  margin: 4px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
}

.community-head[data-community-hero].is-collapsed > p:not(.eyebrow),
.community-head[data-community-hero].is-collapsed .hero-actions > a {
  display: none;
}

.community-head[data-community-hero].is-collapsed .hero-actions {
  margin: 0;
}

.community-head[data-community-hero].is-collapsed .community-hero-toggle {
  margin: 0;
}

.network-detail-actions { margin-top: 18px; }

/* Initiative actions sit on a light canvas, so they need a solid treatment. */
body.page-initiative .initiative-group-button {
  background: #087f94;
  border-color: #087f94;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(6, 86, 101, .24);
}

body.page-initiative .initiative-group-button:hover,
body.page-initiative .initiative-group-button:focus-visible {
  background: #066a7b;
  border-color: #066a7b;
  color: #ffffff;
}

.initiative-downloads { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.initiative-downloads h2 { margin: 4px 0 16px; }
.initiative-download-admin { margin-top: 20px; }

/* Area tokens: accent and light canvas are intentionally subtle, not a rainbow. */
body.page-home {
  --accent: #d9a928;
  --accent-2: #e7bd50;
}

body.page-community,
body.page-community-about,
body.page-community-post {
  --bg: #f3fafb;
  --panel: #fff;
  --panel-soft: #eaf6f8;
  --text: #10212b;
  --muted: #526671;
  --line: #d2e4e7;
  --field: #fff;
  --media-bg: #e8f3f5;
  --accent: #087f94;
  --accent-2: #087f94;
  --hover-soft: rgba(8, 127, 148, .07);
}

body.page-initiatives,
body.page-initiative {
  --bg: #f9f7f0;
  --panel: #fff;
  --panel-soft: #f7f1df;
  --text: #182630;
  --muted: #5c6870;
  --line: #e5dcc4;
  --field: #fff;
  --media-bg: #f3ecd9;
  --accent: #b98716;
  --accent-2: #a87810;
  --hover-soft: rgba(185, 135, 22, .08);
}

body.page-events,
body.page-event {
  --bg: #fcf7f2;
  --panel: #fff;
  --panel-soft: #fff0e6;
  --text: #1d2930;
  --muted: #5d6870;
  --line: #ecd9ca;
  --field: #fff;
  --media-bg: #fff0e6;
  --accent: #c96332;
  --accent-2: #b95127;
  --hover-soft: rgba(201, 99, 50, .08);
}

body.page-experts,
body.page-expert {
  --bg: #f4fbfa;
  --panel: #fff;
  --panel-soft: #e8f6f3;
  --text: #10232b;
  --muted: #50656a;
  --line: #cfe6e1;
  --field: #fff;
  --media-bg: #e8f6f3;
  --accent: #087f78;
  --accent-2: #087f78;
  --hover-soft: rgba(8, 127, 120, .08);
}

body.page-book,
body.page-book-chapter {
  --bg: #f8f7f0;
  --panel: #fffdf7;
  --panel-soft: #eef3e7;
  --text: #17231c;
  --muted: #59635a;
  --line: #dce2d1;
  --field: #fff;
  --media-bg: #eef3e7;
  --accent: #718b52;
  --accent-2: #ad8522;
  --hover-soft: rgba(113, 139, 82, .08);
}

body.page-corporate {
  --bg: #f5f8fb;
  --panel: #fff;
  --panel-soft: #eaf1f7;
  --text: #12232e;
  --muted: #536675;
  --line: #d5e1ea;
  --field: #fff;
  --media-bg: #eaf1f7;
  --accent: #196a9a;
  --accent-2: #196a9a;
  --hover-soft: rgba(25, 106, 154, .08);
}

body.page-courses,
body.page-course,
body.page-lesson,
body.page-certificate {
  --bg: #07131d;
  --panel: #0d1e2b;
  --panel-soft: #132a3a;
  --text: #f7fafc;
  --muted: #bdccd2;
  --line: rgba(177, 207, 226, .18);
  --field: #0a1722;
  --media-bg: #091824;
  --accent: #2b72c5;
  --accent-2: #72a9ea;
}

/* Keep actions legible on the light community and book views. */
body.page-community-post .community-reaction-bar .button.ghost,
body.page-community-post .community-comment-actions .button.ghost,
body.page-community-post .community-attachment-actions .button.ghost,
body.page-community-post .community-detail-nav [data-community-back] {
  background: #ffffff;
  border-color: #087f94;
  color: #086779;
  box-shadow: 0 1px 2px rgba(6, 43, 56, .12);
}

body.page-community-post .community-reaction-bar .button.ghost:hover,
body.page-community-post .community-comment-actions .button.ghost:hover,
body.page-community-post .community-attachment-actions .button.ghost:hover,
body.page-community-post .community-detail-nav [data-community-back]:hover,
body.page-community-post .community-detail-nav [data-community-back]:focus-visible {
  background: #e5f6f8;
  border-color: #075567;
  color: #064b59;
}

body.page-community-post .community-reaction-bar .button.is-active,
body.page-community-post .community-comment-actions .button.is-active {
  background: #087f94;
  border-color: #087f94;
  color: #ffffff;
}

body.page-book .book-chapter-action,
body.page-book .book-download-list .button,
body.page-book-chapter .comment-list > .button.ghost,
body.page-book-chapter .comment-list > .button {
  background: #385844;
  border-color: #385844;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(23, 35, 28, .16);
}

body.page-book .book-chapter-action:hover,
body.page-book .book-download-list .button:hover,
body.page-book-chapter .comment-list > .button.ghost:hover,
body.page-book-chapter .comment-list > .button:hover {
  background: #284332;
  border-color: #284332;
  color: #ffffff;
}

/* Light sections use the same calm, clinical rhythm and generous white space. */
body.page-community .community-layout,
body.page-community-about .band,
body.page-initiatives .network-listing,
body.page-initiative .network-detail,
body.page-events .network-listing,
body.page-event .network-detail,
body.page-experts .expert-directory,
body.page-expert .expert-profile,
body.page-book .book-grid,
body.page-book .book-download-list,
body.page-book-chapter .book-chapter,
body.page-corporate .access-model-grid,
body.page-corporate .pricing-grid {
  position: relative;
}

body.page-community .community-feed article,
body.page-community .community-sidebar,
body.page-community .community-composer,
body.page-initiatives .network-list-card,
body.page-events .network-list-card,
body.page-experts .expert-directory-card,
body.page-corporate .access-model-grid article,
body.page-corporate .pricing-grid > div,
body.page-book .book-chapter-card {
  box-shadow: var(--shadow-card);
}

body.page-community .community-feed article:hover,
body.page-initiatives .network-list-card:hover,
body.page-events .network-list-card:hover,
body.page-experts .expert-directory-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(6, 19, 29, .13);
}

body.page-community .community-preview-image,
body.page-initiatives .network-list-card > img,
body.page-events .network-list-card > img,
body.page-experts .expert-photo,
body.page-book .book-cover,
body.page-book .book-chapter-card {
  border-radius: 8px;
}

body.page-community .community-preview-image {
  height: 190px;
}

body.page-initiatives .network-list-card,
body.page-events .network-list-card {
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 28px;
}

body.page-initiatives .network-list-card > img,
body.page-events .network-list-card > img {
  aspect-ratio: 16 / 10;
}

body.page-experts .expert-directory-card {
  min-height: 148px;
}

body.page-book .book-hero {
  padding-top: clamp(60px, 8vw, 104px);
}

body.page-book .book-cover {
  background: transparent;
  box-shadow: 0 24px 52px rgba(30, 45, 33, .22);
}

body.page-corporate .access-model-grid article,
body.page-corporate .pricing-grid > div {
  background: var(--panel);
}

body.page-corporate .pricing-grid > div:nth-child(2) {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(25, 106, 154, .14);
}

/* Homepage rhythm: the network feels open and human, Academy remains premium. */
body.page-home .home-surface {
  position: relative;
  z-index: 0;
  background: var(--home-surface-bg, var(--panel));
  box-shadow: 0 0 0 100vmax var(--home-surface-bg, var(--panel));
  clip-path: inset(0 -100vmax);
}

body.page-home .home-surface-light,
body.page-home .home-surface-tint {
  --text: #10212b;
  --muted: #50636d;
  --line: #d6e2e6;
  --field: #fff;
  --media-bg: #eaf3f5;
  --home-surface-bg: #f7fafb;
  --panel: #fff;
  --panel-soft: #eef7f8;
  color: var(--text);
}

body.page-home .home-surface-tint {
  --home-surface-bg: #eaf7f8;
  --panel-soft: #e1f1f3;
  --accent: #087f94;
  --accent-2: #087f94;
}

body.page-home .home-surface-light .role-entry-grid a,
body.page-home .home-surface-light .free-start-grid a,
body.page-home .home-surface-light .free-start-grid article,
body.page-home .home-surface-light .pricing-overview-grid article,
body.page-home .home-surface-light .home-community-feed article,
body.page-home .home-surface-light .network-teaser-card,
body.page-home .home-surface-tint .home-community-feed article,
body.page-home .home-surface-tint .network-teaser-card,
body.page-home .home-surface-light .expert-carousel {
  box-shadow: var(--shadow-card);
}

body.page-home .home-surface-dark {
  --home-surface-bg: var(--brand-ink);
  --panel: #0c202b;
  --panel-soft: #102a37;
  --text: #f7fafc;
  --muted: #bdccd2;
  --line: rgba(211, 230, 236, .18);
  --accent: #d9a928;
  --accent-2: #e7bd50;
}

body.page-home .home-surface-academy {
  --home-surface-bg: #071827;
  --panel: #0d2436;
  --panel-soft: #122d43;
  --text: #f7fafc;
  --muted: #c0d0da;
  --line: rgba(173, 207, 231, .18);
  --accent: #347dcf;
  --accent-2: #8bc0f4;
}

body.page-home .home-surface-dark .button.ghost,
body.page-home .home-surface-academy .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .46);
}

body.page-home .home-surface-light .section-title h2,
body.page-home .home-surface-tint .section-title h2 {
  color: #10212b;
}

.footer {
  background: var(--brand-ink);
  border-top-color: rgba(223, 234, 239, .15);
  color: #b5c3ca;
}

.footer strong,
.footer a:hover {
  color: #fff;
}

.footer a {
  color: #c2d1d8;
}

@media (max-width: 900px) {
  .site-header .nav {
    background: rgba(3, 15, 24, .985);
    border-bottom-color: rgba(223, 234, 239, .15);
  }

  .area-hero {
    padding: 38px 18px 34px;
  }

  .area-hero h1 {
    max-width: 14ch;
    font-size: clamp(34px, 10vw, 48px);
  }

  body.page-community .community-preview-image {
    height: 180px;
  }

  body.page-initiatives .network-list-card,
  body.page-events .network-list-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Startseite: Pflegeinformatik.org network layout */
.site-header .nav > a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.site-header .nav > a.nav-home-link {
  display: inline-grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
}

.nav-home-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-header .nav > a.is-active {
  color: #fff;
}

.site-header .nav > a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  background: var(--brand-gold);
  content: "";
}

.home-shell {
  width: min(1440px, calc(100% - 72px));
  margin: 0 auto;
}

.master-hero h1 span {
  display: block;
}

.master-hero h1 .hero-title-accent {
  color: var(--brand-gold);
}

.home-platform-band,
.home-experts-band {
  padding: 34px 0;
  background: #fff;
  color: #10212b;
}

.hero-signup-note {
  margin: 12px 0 0;
  color: rgba(245, 249, 251, .82);
  font-size: 13px;
  font-weight: 650;
}

.home-join-band {
  padding: 26px 0;
  background: #f3fbfc;
  color: #10212b;
  border-top: 1px solid #d9edf0;
  border-bottom: 1px solid #d9edf0;
}

.home-join-layout {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.home-join-layout > div { max-width: 720px; }
.home-join-layout .eyebrow { margin-bottom: 7px; color: #087f94; }
.home-join-layout h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 850;
  line-height: 1.14;
}
.home-join-layout p:not(.eyebrow) { margin: 8px 0 0; color: #53656e; line-height: 1.5; }
.home-join-layout .button { flex: 0 0 auto; white-space: nowrap; }

.onboarding-page {
  width: min(920px, calc(100% - 36px));
  margin: 48px auto 76px;
}

.onboarding-page .page-head {
  margin: 0 0 22px;
  padding: 0;
}

.onboarding-form {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
}

.onboarding-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.onboarding-step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #008aa0;
  font-weight: 800;
}

.onboarding-step h2 { margin: 2px 0 4px; font-size: 22px; }
.onboarding-step p { margin: 0; color: #60717b; }
.onboarding-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.onboarding-groups .check { margin: 0; padding: 10px 12px; border: 1px solid #d7e7ea; border-radius: 6px; background: #fbfefe; }

.growth-cta-form { display: inline-flex; margin: 0; }
.onboarding-topic-form { display: grid; gap: 24px; }
.onboarding-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.onboarding-topic-card {
  position: relative;
  display: grid;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #cbdde1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.onboarding-topic-card > input { position: absolute; opacity: 0; pointer-events: none; }
.onboarding-topic-card img { width: 100%; height: 112px; object-fit: cover; background: #e8f1f2; }
.onboarding-topic-card-copy { display: grid; align-content: start; gap: 7px; padding: 16px 18px 18px; color: #17333d; }
.onboarding-topic-card-copy strong { font-size: 18px; line-height: 1.2; }
.onboarding-topic-card-copy small { color: #60717b; font-size: 14px; line-height: 1.4; }
.onboarding-topic-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 3px rgba(16, 33, 43, .2);
}
.onboarding-topic-card:has(input:checked) { border: 2px solid #008aa0; background: #f0fafb; }
.onboarding-topic-card:has(input:checked) .onboarding-topic-check { color: #fff; background: #008aa0; }
.onboarding-topic-card:focus-within { outline: 3px solid rgba(0, 138, 160, .3); outline-offset: 2px; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.onboarding-actions p { margin: 0; color: #46606a; font-weight: 700; }
.onboarding-actions .button:disabled { cursor: not-allowed; opacity: .5; }
.onboarding-notification-form { display: grid; gap: 12px; padding: clamp(22px, 4vw, 38px); }
.onboarding-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid #d7e7ea; border-radius: 6px; cursor: pointer; }
.onboarding-choice:has(input:checked) { border-color: #008aa0; background: #f0fafb; }
.onboarding-choice input { width: 20px; min-width: 20px; height: 20px; margin: 2px 0 0; }
.onboarding-choice span { display: grid; min-width: 0; gap: 4px; }
.onboarding-choice strong, .onboarding-choice small { overflow-wrap: anywhere; }
.onboarding-choice small { color: #60717b; }
.onboarding-notification-form .button { justify-self: start; margin-top: 10px; }
.onboarding-welcome { display: grid; gap: 28px; }
.onboarding-welcome .form-card { padding: 24px; }
.onboarding-welcome .form-card h2, .onboarding-welcome-head h2 { margin: 0; }
.onboarding-topic-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.onboarding-topic-summary a { padding: 8px 11px; border: 1px solid #c9e2e6; border-radius: 4px; color: #125b6a; background: #f1fbfc; font-weight: 700; }
.onboarding-topic-summary a span { color: #008aa0; }
.onboarding-welcome-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.onboarding-welcome-head .eyebrow { margin: 0 0 6px; }
.onboarding-recommendations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.onboarding-recommendations article { display: flex; min-height: 190px; flex-direction: column; padding: 20px; border: 1px solid #d6e3e5; border-radius: 6px; background: #fff; }
.onboarding-recommendations .eyebrow { margin: 0 0 8px; }
.onboarding-recommendations h3 { margin: 0; color: #18323c; font-size: 20px; line-height: 1.2; }
.onboarding-recommendations p:not(.eyebrow) { margin: 10px 0 16px; color: #61717a; line-height: 1.45; }
.onboarding-recommendations a { margin-top: auto; color: #007d92; font-weight: 800; }

.home-platform-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.home-platform-card {
  position: relative;
  display: flex;
  min-height: 252px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e4ebef;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 6px 16px rgba(6, 25, 38, .045);
  color: #10212b;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--platform-accent);
  box-shadow: 0 16px 32px rgba(6, 25, 38, .12);
}

.home-platform-card.community { --platform-accent: #008bb5; --platform-soft: #e7f7fb; }
.home-platform-card.initiatives { --platform-accent: #7554dc; --platform-soft: #f0edff; }
.home-platform-card.events { --platform-accent: #ea7b2d; --platform-soft: #fff2e5; }
.home-platform-card.academy { --platform-accent: #266fca; --platform-soft: #eaf2ff; }
.home-platform-card.experts { --platform-accent: #008a9c; --platform-soft: #e6f8fa; }
.home-platform-card.book { --platform-accent: #528a54; --platform-soft: #ecf6eb; }

.home-platform-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--platform-soft);
  color: var(--platform-accent);
}

.home-platform-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-platform-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
}

.home-platform-card p {
  margin: 0;
  color: #53636d;
  font-size: 14px;
  line-height: 1.52;
}

.home-card-arrow {
  margin-top: auto;
  color: var(--platform-accent);
  font-size: 24px;
  line-height: 1;
}

.home-community-live {
  padding: 28px 0 18px;
  background: #effafb;
  color: #10212b;
}

.home-live-layout {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 2.7fr);
  gap: 28px;
  padding: 20px;
  border: 1px solid #dceef0;
  border-radius: var(--radius-card);
  background: linear-gradient(130deg, rgba(255,255,255,.72), rgba(235,249,250,.9));
}

.home-live-intro h2,
.home-experts-intro h2,
.home-showcase-card h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
}

.home-live-intro .button,
.home-experts-intro .button {
  margin-top: 28px;
  border-color: #0087a1;
  color: #08798d;
}

.home-live-intro .button:hover,
.home-experts-intro .button:hover {
  background: #087f94;
  color: #fff;
}

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

.home-live-card {
  display: flex;
  min-width: 0;
  min-height: 244px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e0eaed;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 15px rgba(6, 25, 38, .045);
}

.home-live-card > header,
.home-live-card > footer,
.home-post-author {
  display: flex;
  align-items: center;
}

.home-live-card > header {
  justify-content: space-between;
  gap: 8px;
}

.home-post-type {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  background: #eaf0ff;
  color: #3556b7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-post-type.question { background: #e7f7fb; color: #087f94; }
.home-post-type.blog_post { background: #fff2dc; color: #a6680f; }
.home-post-type.use_case { background: #e9f6ed; color: #278047; }
.home-post-type.study { background: #f0ecff; color: #6746bc; }

.home-live-card time {
  color: #7a8991;
  font-size: 11px;
  white-space: nowrap;
}

.home-post-author {
  gap: 7px;
  margin-top: 12px;
  color: #52646d;
  font-size: 12px;
}

.home-post-avatar {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #d9e9eb;
  color: #087f94;
  font-size: 10px;
  font-weight: 900;
}

.home-post-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-live-card h3 {
  margin: 14px 0 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
}

.home-live-card h3 a:hover { color: #087f94; }

.home-live-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #576872;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-live-card > footer {
  gap: 13px;
  margin-top: auto;
  padding-top: 13px;
  color: #62747d;
  font-size: 12px;
}

.home-post-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-post-metrics svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-empty-state { color: #52646d; }

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #087f94;
  font-size: 14px;
  font-weight: 850;
}

.home-section-link:hover { text-decoration: underline; }

.home-community-live .home-section-link {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-top: 16px;
}

.home-network-stats {
  padding: 18px 0;
  background: #061b2a;
  color: #fff;
}

.home-network-stats .home-shell {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-network-stats .home-shell > div {
  display: grid;
  grid-template-columns: 36px auto;
  column-gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-right: 1px solid rgba(207, 232, 242, .18);
}

.home-network-stats .home-shell > div:last-child { border-right: 0; }

.home-stat-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  color: #1bc5dc;
}

.home-stat-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.home-network-stats strong { font-size: 23px; line-height: 1; }
.home-network-stats small { color: #d1e1e8; font-size: 11px; }
.home-network-stats.is-labels-only .home-shell > div {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 54px;
}
.home-network-stats.is-labels-only .home-stat-icon { grid-row: 1; }
.home-network-stats.is-labels-only small { font-size: 13px; font-weight: 750; }

.home-live-layout > *,
.home-experts-layout > *,
.home-live-card,
.home-expert-card,
.home-expert-card > span:last-child { min-width: 0; }

.home-live-card h3,
.home-live-card p,
.home-expert-card strong,
.home-expert-card small { overflow-wrap: break-word; }

.home-live-intro { max-width: 260px; }
.home-experts-intro { max-width: 250px; }

.home-live-intro h2,
.home-experts-intro h2 {
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.15;
}

.home-experts-band { padding: 40px 0; }

.home-experts-layout {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 3.2fr);
  gap: 32px;
  align-items: start;
}

.home-expert-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-expert-card {
  display: flex;
  min-width: 0;
  min-height: 146px;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfebee;
  border-radius: 6px;
  background: #fff;
  color: #122532;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-expert-card:hover {
  transform: translateY(-2px);
  border-color: #0a8a9f;
  box-shadow: 0 12px 24px rgba(6, 25, 38, .1);
}

.home-expert-photo {
  display: grid;
  width: 62px;
  height: 78px;
  flex: 0 0 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #e4f2f4;
  color: #087f94;
  font-weight: 900;
}

.home-expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.home-expert-card > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.home-expert-card strong { font-size: 12px; line-height: 1.25; }
.home-expert-card small { margin-top: 5px; color: #62747d; font-size: 10px; line-height: 1.35; }
.home-expert-card em { margin-top: auto; color: #087f94; font-size: 10px; font-style: normal; font-weight: 800; }

.home-expert-join { align-items: center; justify-content: center; text-align: center; }
.home-expert-join > span:last-child { align-items: center; }
.home-expert-join-icon { color: #087f94; font-size: 34px; line-height: 1; }

.home-dual-band {
  padding: 10px 0 28px;
  background: #f3f9fb;
  color: #10212b;
}

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

.home-showcase-card {
  position: relative;
  min-height: 390px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d7e7eb;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #eef8fb, #fff);
}

.home-showcase-card h2 { max-width: 29ch; font-size: 21px; }
.home-showcase-academy { background: linear-gradient(135deg, #eaf6fb, #f8fcff); }
.home-showcase-initiatives { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr); gap: 20px; background: linear-gradient(135deg, #f0fbf8, #fcfffd); }

.home-showcase-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.home-showcase-tags span { padding: 4px 13px; border: 1px solid #bcd4e1; border-radius: 999px; color: #295c79; font-size: 11px; }

.home-course-feature {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(25, 83, 112, .08);
}

.home-course-feature img { width: 132px; height: 92px; border-radius: 4px; object-fit: cover; }
.home-course-feature > span { display: flex; min-width: 0; flex-direction: column; }
.home-course-feature b { font-size: 15px; line-height: 1.3; }
.home-course-feature small { display: -webkit-box; margin-top: 5px; overflow: hidden; color: #5a6e78; font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-course-feature em { margin-top: auto; color: #087f94; font-size: 11px; font-style: normal; font-weight: 850; }

.home-initiative-list { display: grid; gap: 12px; margin-top: 18px; }
.home-initiative-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; color: #193f3d; }
.home-initiative-list a > span { grid-row: 1 / 3; color: #158b73; font-size: 20px; }
.home-initiative-list b { font-size: 13px; line-height: 1.25; }
.home-initiative-list small { margin-top: 2px; overflow: hidden; color: #5c7774; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.home-initiative-list a:hover b { color: #087f78; }
.home-initiative-image { width: 100%; height: 205px; align-self: center; border-radius: 6px; object-fit: cover; }
.home-showcase-initiatives .home-section-link { position: absolute; right: 24px; bottom: 22px; }

.home-ecare-band {
  padding: 18px 0;
  background: #061b2a;
  color: #fff;
}

.home-ecare-layout { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.home-ecare-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #2dc5db; border-radius: 50%; color: #2dc5db; font-size: 24px; }
.home-ecare-layout div { display: grid; gap: 3px; }
.home-ecare-layout strong { font-size: 14px; }
.home-ecare-layout small { color: #c7d8df; font-size: 12px; }
.home-ecare-layout .button { min-height: 42px; background: #008da4; border-color: #008da4; }

.legacy-home-sections { display: none; }

/* Visible homepage sections stack slightly on desktop. The mobile view keeps a quiet reveal. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  body.page-home .home-stack-visible {
    position: -webkit-sticky;
    position: sticky;
    top: 72px;
    z-index: 2;
    isolation: isolate;
  }

  body.page-home .home-stack-visible + .home-stack-visible {
    margin-top: -24px;
  }

  body.page-home .home-stack-visible > section {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(7, 30, 44, .12);
    box-shadow: 0 -18px 38px rgba(4, 18, 29, .14);
  }
}

@media (max-width: 1100px) {
  .home-shell { width: min(100% - 36px, 940px); }
  .home-platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-live-layout,
  .home-experts-layout { grid-template-columns: 1fr; }
  .home-live-intro .button,
  .home-experts-intro .button { margin-top: 18px; }
  .home-expert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-header .nav > a.is-active::after { right: auto; bottom: 2px; width: 40px; }
  .home-platform-band,
  .home-experts-band { padding: 22px 0; }
  .home-platform-grid,
  .home-live-cards,
  .home-expert-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-platform-grid::-webkit-scrollbar,
  .home-live-cards::-webkit-scrollbar,
  .home-expert-grid::-webkit-scrollbar { display: none; }
  .home-platform-card { min-width: min(72vw, 260px); min-height: 236px; scroll-snap-align: start; }
  .home-join-layout { display: grid; gap: 16px; }
  .home-join-layout .button { width: 100%; }
  .onboarding-page { width: min(100% - 28px, 920px); margin: 28px auto 52px; }
  .onboarding-groups { grid-template-columns: 1fr; }
  .onboarding-topic-grid, .onboarding-recommendations { grid-template-columns: 1fr; }
  .onboarding-actions, .onboarding-welcome-head { align-items: stretch; flex-direction: column; }
  .onboarding-actions .button, .onboarding-welcome-head .button { width: 100%; }
  .home-live-card { min-width: min(78vw, 310px); scroll-snap-align: start; }
  .home-expert-card { min-width: min(66vw, 238px); scroll-snap-align: start; }
  .home-live-layout { padding: 18px; }
  .home-community-live .home-section-link { justify-content: flex-start; }
  .home-network-stats .home-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-network-stats .home-shell > div { min-height: 58px; padding: 9px 6px; border-bottom: 1px solid rgba(207, 232, 242, .18); }
  .home-network-stats .home-shell > div:nth-child(2n) { border-right: 0; }
  .home-network-stats .home-shell > div:last-child { grid-column: span 2; border-bottom: 0; }
  .home-dual-grid { grid-template-columns: 1fr; }
  .home-showcase-card { min-height: 0; }
  .home-showcase-initiatives { grid-template-columns: 1fr; }
  .home-initiative-image { display: none; }
  .home-showcase-initiatives .home-section-link { position: static; margin-top: 22px; }
  .home-ecare-layout { grid-template-columns: 42px minmax(0, 1fr); }
  .home-ecare-layout .button { grid-column: 1 / -1; width: 100%; }
}

/* Navigation: the administration contains enough entries to need its own
   viewport. Keep it within the browser height instead of letting it fall
   behind the page content. */
.site-header {
  z-index: 100;
}

.site-header .admin-menu > div {
  right: 0;
  z-index: 110;
  width: 274px;
  min-width: 274px;
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  background: #071824;
  border-color: rgba(192, 218, 230, .28);
  box-shadow: 0 22px 46px rgba(1, 10, 17, .46);
  scrollbar-color: rgba(217, 169, 40, .8) #0b2432;
  scrollbar-width: thin;
}

.site-header .admin-menu > div::-webkit-scrollbar {
  width: 9px;
}

.site-header .admin-menu > div::-webkit-scrollbar-track {
  background: #0b2432;
}

.site-header .admin-menu > div::-webkit-scrollbar-thumb {
  border: 2px solid #0b2432;
  border-radius: 99px;
  background: #d9a928;
}

.site-header .admin-menu > div > a {
  color: #edf4f6;
  font-weight: 650;
}

.site-header .admin-menu > div > a:hover,
.site-header .admin-menu > div > a:focus-visible {
  background: rgba(217, 169, 40, .15);
  color: #fff;
  outline: 0;
}

.site-header .admin-menu-submenu {
  border-top-color: rgba(192, 218, 230, .22);
}

.site-header .admin-menu-submenu summary {
  color: #f7fafc;
}

.site-header .admin-menu .admin-menu-submenu > div {
  max-height: none;
  padding: 0 0 0 10px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-header .nav-toggle {
  opacity: 1;
  background: #0c2635;
  border-color: rgba(206, 228, 236, .48);
  color: #fff;
  box-shadow: none;
}

.site-header .nav-toggle:hover,
.site-header .nav-toggle:focus-visible,
.site-header .nav-toggle[aria-expanded="true"] {
  background: #12384b;
  border-color: #d9a928;
  color: #fff;
  outline: 0;
}

.site-header .nav-toggle span {
  opacity: 1;
  background: currentColor;
}

@media (max-width: 900px) {
  .site-header .nav.is-open {
    max-height: calc(100dvh - 69px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(217, 169, 40, .8) #071824;
    scrollbar-width: thin;
  }

  .site-header .admin-menu > div {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: none;
    margin: 6px 0 8px;
    padding: 2px 0 4px 12px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-left: 2px solid rgba(217, 169, 40, .75);
    border-radius: 0;
    box-shadow: none;
  }

  .site-header .admin-menu > div > a {
    min-height: 41px;
    padding: 10px 8px;
    color: #edf4f6;
  }

  .site-header .admin-menu-submenu {
    margin-top: 4px;
  }

  .site-header .admin-menu-submenu summary {
    min-height: 42px;
    padding: 10px 8px;
  }
}

/* Mitmachen: the public entry point is intentionally light and uncomplicated.
   Community is free; professional learning remains a distinct next step. */
body.page-corporate main {
  background: #f5fafb;
}

body.page-corporate .join-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  max-width: none;
  margin: 0;
  padding: clamp(62px, 8vw, 108px) max(24px, calc((100vw - var(--max)) / 2 + 18px));
  color: #f7fbfd;
  background:
    radial-gradient(circle at 72% 24%, rgba(7, 151, 170, .2), transparent 32%),
    linear-gradient(120deg, #061a28 0%, #082938 58%, #064b59 100%);
}

body.page-corporate .join-hero-copy {
  min-width: 0;
  max-width: 660px;
}

body.page-corporate .join-hero .eyebrow,
body.page-corporate .join-steps-band .eyebrow {
  color: #d9a928;
}

body.page-corporate .join-hero h1 {
  max-width: 100%;
  margin: 10px 0 20px;
  color: #fff;
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1.02;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.page-corporate .join-hero-intro {
  max-width: 610px;
  margin: 0;
  color: #d9e7ec;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
}

body.page-corporate .join-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

body.page-corporate .join-hero .button {
  background: #d9a928;
  border-color: #d9a928;
  color: #10212b;
}

body.page-corporate .join-hero .button.ghost {
  background: transparent;
  border-color: rgba(232, 246, 250, .55);
  color: #fff;
}

body.page-corporate .join-hero-note {
  margin: 16px 0 0;
  color: #a9c2cc;
  font-size: 14px;
}

body.page-corporate .join-hero-media {
  position: relative;
  min-width: 0;
  min-height: 365px;
  overflow: hidden;
  border: 1px solid rgba(207, 232, 242, .24);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(1, 10, 17, .36);
}

@media (max-width: 1200px) and (min-width: 901px) {
  body.page-corporate .join-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .88fr);
    gap: 38px;
  }

  body.page-corporate .join-hero h1 {
    font-size: clamp(42px, 4.5vw, 56px);
  }
}

body.page-corporate .join-hero-media::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, transparent 40%, rgba(3, 17, 27, .82));
  pointer-events: none;
}

body.page-corporate .join-hero-media > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 365px;
  object-fit: cover;
}

body.page-corporate .join-hero-media-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 365px;
  place-content: center;
  gap: 12px;
  color: #eaf7fa;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #0b4b57, #0a2134);
}

body.page-corporate .join-hero-media-label {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 2px;
  min-width: 138px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(5, 23, 34, .86);
  border: 1px solid rgba(217, 169, 40, .7);
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

body.page-corporate .join-hero-media-label span {
  color: #e6bd49;
  font-size: 22px;
  font-weight: 900;
}

body.page-corporate .join-hero-media-label strong {
  font-size: 16px;
}

body.page-corporate .join-hero-media-label small {
  color: #bdd1d8;
  font-size: 12px;
}

body.page-corporate .join-steps-band {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.55fr) auto;
  gap: 30px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 62px) 18px;
}

body.page-corporate .join-steps-intro h2,
body.page-corporate .academy-programmes-section h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

body.page-corporate .join-steps-intro p:not(.eyebrow),
body.page-corporate .academy-programmes-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

body.page-corporate .join-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

body.page-corporate .join-steps article {
  min-width: 0;
  padding: 4px 20px 8px;
  border-right: 1px solid var(--line);
}

body.page-corporate .join-step-number {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

body.page-corporate .join-steps h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
}

body.page-corporate .join-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

body.page-corporate .join-steps-cta {
  white-space: nowrap;
}

body.page-corporate .access-decision-band {
  padding-top: clamp(42px, 6vw, 74px);
  padding-bottom: clamp(34px, 5vw, 58px);
  background: #eaf6f8;
}

body.page-corporate .access-decision-band .section-title h2 {
  color: var(--text);
}

body.page-corporate .access-decision-band .section-title p {
  color: var(--muted);
}

body.page-corporate .decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-corporate .join-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 30px auto 0;
}

body.page-corporate .join-path-grid article {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(11, 46, 60, .07);
}

body.page-corporate .join-path-grid article:nth-child(1) { border-top: 4px solid #008b9d; }
body.page-corporate .join-path-grid article:nth-child(2) { border-top: 4px solid #196a9a; }
body.page-corporate .join-path-grid article:nth-child(3) { border-top: 4px solid #d9a928; }

body.page-corporate .join-path-grid span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

body.page-corporate .join-path-grid h2 {
  margin: 12px 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.12;
}

body.page-corporate .join-path-grid p {
  flex: 1;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

body.page-corporate .network-governance-band {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(42px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

body.page-corporate .network-governance-copy {
  max-width: 820px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  border-left: 3px solid #d9a928;
}

body.page-corporate .decision-grid a {
  min-height: 194px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(11, 46, 60, .07);
}

body.page-corporate .decision-grid a:first-child {
  border-color: #008b9d;
  box-shadow: 0 14px 30px rgba(0, 139, 157, .13);
}

body.page-corporate .decision-grid a:nth-child(2) {
  border-color: #d9a928;
}

body.page-corporate .access-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: clamp(34px, 5vw, 60px);
  background: #f5fafb;
}

body.page-corporate .access-model-grid article {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-radius: 8px;
}

body.page-corporate .access-model-grid article:nth-child(1) {
  border-top: 4px solid #008b9d;
}

body.page-corporate .access-model-grid article:nth-child(2) {
  border-top: 4px solid #d9a928;
}

body.page-corporate .access-model-grid article:nth-child(3) {
  border-top: 4px solid #196a9a;
}

body.page-corporate .access-model-grid article h2 {
  color: var(--text);
  font-size: clamp(31px, 3vw, 40px);
}

body.page-corporate .access-model-grid article ul {
  flex: 1;
  padding-left: 18px;
}

body.page-corporate .access-model-grid article li::marker {
  color: var(--accent);
}

body.page-corporate .access-model-grid article .button {
  margin-top: 24px;
}

body.page-corporate .academy-programmes-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .75fr);
  gap: clamp(26px, 5vw, 70px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 18px;
}

body.page-corporate .academy-programmes-section > div > .button {
  margin-top: 22px;
}

body.page-corporate .academy-programmes-section aside {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  color: #f6fbfd;
  background: linear-gradient(135deg, #071b29, #0d3b50);
  border-radius: 8px;
}

body.page-corporate .academy-programmes-section aside span {
  color: #e6bd49;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

body.page-corporate .academy-programmes-section aside strong {
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.1;
}

body.page-corporate .academy-programmes-section aside p {
  color: #c4d7de;
}

body.page-corporate .professional-pricing {
  max-width: var(--max);
  margin: 0 auto clamp(56px, 8vw, 92px);
  padding: 0 18px;
  grid-template-columns: minmax(0, 520px);
}

body.page-corporate .professional-pricing > div {
  border-top: 4px solid #d9a928;
  border-radius: 8px;
}

@media (max-width: 900px) {
  body.page-corporate .join-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 46px 22px 34px;
  }

  body.page-corporate .join-hero h1 {
    max-width: 10ch;
    font-size: clamp(40px, 12vw, 56px);
  }

  body.page-corporate .join-hero-intro {
    font-size: 18px;
  }

  body.page-corporate .join-hero-actions,
  body.page-corporate .join-hero-actions .button {
    width: 100%;
  }

  body.page-corporate .join-hero-media,
  body.page-corporate .join-hero-media > img,
  body.page-corporate .join-hero-media-fallback {
    min-height: 280px;
  }

  body.page-corporate .join-steps-band,
  body.page-corporate .academy-programmes-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 18px;
  }

  body.page-corporate .join-steps {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  body.page-corporate .join-steps article {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.page-corporate .join-step-number {
    margin-bottom: 8px;
  }

  body.page-corporate .join-steps-cta {
    width: 100%;
  }

  body.page-corporate .decision-grid,
  body.page-corporate .join-path-grid,
  body.page-corporate .access-model-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body.page-corporate .decision-grid a {
    min-height: 0;
  }

  body.page-corporate .join-path-grid article {
    min-height: 0;
    padding: 24px 20px;
  }

  body.page-corporate .access-model-grid {
    padding: 30px 14px 38px;
  }

  body.page-corporate .access-model-grid article {
    min-height: 0;
    padding: 24px 20px;
  }

  body.page-corporate .academy-programmes-section aside {
    min-height: 0;
  }

  body.page-corporate .professional-pricing {
    grid-template-columns: 1fr;
    margin-bottom: 54px;
    padding: 0 14px;
  }
}

/* Events: Vorschlaege aus der Community und Moderation. */
.event-submission-callout {
  width: min(100% - 40px, 1120px);
  margin: -18px auto 32px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(6, 19, 29, 0.08);
}

.event-submission-callout h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.1;
}

.event-submission-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.event-submission-details,
.event-submission-login {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
}

.event-submission-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.event-submission-details summary::-webkit-details-marker { display: none; }
.event-submission-details summary span { color: var(--accent); font-size: 22px; }
.event-submission-details[open] summary { border-bottom: 1px solid var(--line); }

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

.event-submission-form label,
.event-submission-actions label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.event-submission-form label small { color: var(--muted); font-size: 12px; }
.event-form-wide { grid-column: 1 / -1; }
.event-submission-form textarea,
.event-submission-actions textarea { min-height: 106px; resize: vertical; }
.event-submission-form .button { justify-self: start; }
.event-submission-form .help-text { grid-column: 1 / -1; margin: 0; }

.event-submission-login {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.event-submission-login strong { font-size: 18px; }
.event-submission-login .button { justify-self: start; }

.event-submissions-admin {
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.event-submissions-admin .section-title.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.event-submissions-admin .section-title h2 { margin: 0; }
.event-submissions-admin .section-title p:last-child { max-width: 520px; margin: 0; color: var(--muted); }
.event-submission-list { display: grid; gap: 14px; margin-top: 20px; }

.event-submission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.46fr);
  gap: 24px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.event-submission-content h3 { margin: 8px 0 6px; font-size: 20px; }
.event-submission-content > p:not(.event-submission-meta):not(.event-submission-note) { margin: 10px 0; color: var(--muted); line-height: 1.55; }
.event-submission-meta { margin: 0; color: var(--muted); font-size: 13px; }

.event-submission-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-submission-status.pending { background: #fff0cb; color: #865c00; }
.event-submission-status.approved { background: #daf3e5; color: #17663c; }
.event-submission-status.rejected { background: #f9dfdf; color: #9d3030; }
.event-submission-note { margin: 14px 0 0; padding: 10px 12px; background: var(--panel-soft); font-size: 14px; }
.event-submission-actions form { display: grid; gap: 11px; }
.event-submission-actions .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.mcp-admin-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mcp-admin-layout .form-card { margin: 0; }
.mcp-endpoint { display: grid; gap: 7px; margin: 14px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); }
.mcp-endpoint span { color: var(--muted); font-size: 13px; font-weight: 800; }
.mcp-endpoint code, .mcp-secret-notice code { overflow-wrap: anywhere; color: var(--accent); font-size: 13px; }
.mcp-endpoint-revision { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); background: color-mix(in srgb, var(--accent-2) 8%, var(--panel-soft)); }
.mcp-endpoint-revision small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mcp-permission-grid, .mcp-scope-fieldset { display: grid; gap: 10px; }
.mcp-scope-fieldset { margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.mcp-scope-fieldset legend { padding: 0 5px; color: var(--muted); font-size: 13px; font-weight: 800; }
.mcp-secret-notice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr) auto; align-items: center; gap: 22px; margin-top: 22px; padding: 22px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 8px; background: var(--panel-soft); }
.mcp-secret-notice h2 { margin: 0 0 6px; font-size: 23px; }
.mcp-secret-notice p { margin: 0; color: var(--muted); line-height: 1.5; }
.mcp-secret-notice code { display: block; padding: 12px; border-radius: 5px; background: var(--panel); border: 1px dashed var(--line); }
.mcp-token-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.mcp-token-list, .mcp-request-list { display: grid; gap: 10px; margin-top: 16px; }
.mcp-token-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr) auto; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.mcp-token-row strong, .mcp-token-row span, .mcp-token-row small, .mcp-request-list span, .mcp-request-list strong, .mcp-request-list small { display: block; }
.mcp-token-row span, .mcp-token-row small, .mcp-request-list span, .mcp-request-list small { margin-top: 4px; color: var(--muted); font-size: 13px; }
.mcp-token-row.is-revoked { opacity: .62; }
.mcp-token-meta { text-align: right; }
.mcp-request-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcp-request-list article { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); }

@media (max-width: 760px) {
  .event-submission-callout {
    width: calc(100% - 28px);
    margin: -10px auto 24px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .event-submission-form { grid-template-columns: 1fr; padding: 16px; }
  .event-form-wide { grid-column: auto; }
  .event-submission-form .button,
  .event-submission-login .button,
  .event-submission-actions .button { width: 100%; justify-content: center; }
  .event-submissions-admin { margin-top: 18px; padding: 18px; }
  .event-submissions-admin .section-title.compact { display: grid; gap: 10px; }
  .event-submission-row { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .mcp-admin-layout, .mcp-secret-notice, .mcp-token-row { grid-template-columns: 1fr; }
  .mcp-secret-notice { gap: 14px; }
  .mcp-secret-notice .button { width: 100%; justify-content: center; }
  .mcp-token-meta { text-align: left; }
  .mcp-token-row .button { width: 100%; justify-content: center; }
  .mcp-request-list { grid-template-columns: 1fr; }
}

.admin-user-modal { position: fixed; inset: 0; z-index: 111; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); overflow: auto; background: rgba(7, 15, 19, .78); }
.admin-user-modal[hidden] { display: none; }
.admin-user-dialog { width: min(760px, 100%); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
.admin-user-dialog > header, .admin-user-toolbar, .admin-user-toolbar-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-user-dialog > header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-user-dialog .eyebrow, .admin-user-dialog h2, .admin-user-toolbar h2, .admin-user-toolbar p { margin: 0; }
.admin-user-dialog .eyebrow, .admin-user-toolbar p { margin-top: 4px; color: var(--muted); }
.admin-user-dialog > header button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.admin-user-dialog form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.admin-user-dialog .wide, .admin-user-dialog footer { grid-column: 1 / -1; }
.admin-user-dialog footer, .admin-user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-user-dialog footer { padding-top: 4px; }
.admin-user-toolbar { align-items: end; margin-bottom: 18px; }
.admin-user-toolbar-actions { align-items: center; }
.admin-user-sort label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.admin-user-sort select { min-width: 230px; }

.admin-book-toolbar, .admin-book-toolbar-actions, .admin-book-panel > header, .admin-book-page-summary, .admin-book-stats { display: flex; align-items: center; gap: 14px; }
.admin-book-toolbar { justify-content: space-between; margin: 4px 0 20px; }
.admin-book-toolbar h2, .admin-book-toolbar p, .admin-book-panel h2, .admin-book-panel p { margin: 0; }
.admin-book-toolbar > div:first-child > p:last-child, .admin-book-panel > header p { margin-top: 5px; color: var(--muted); }
.admin-book-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-book-stats { flex-wrap: wrap; margin-bottom: 16px; }
.admin-book-stats span { min-width: 132px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted); font-size: 13px; }
.admin-book-stats strong { margin-right: 6px; color: var(--text); font-size: 21px; }
.admin-book-panel { margin-top: 16px; border: 1px solid var(--line); background: var(--panel); }
.admin-book-panel > header { justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.admin-book-page-summary { justify-content: space-between; padding: 17px 18px; }
.admin-book-page-summary span { color: var(--muted); font-size: 14px; }
.admin-book-table-wrap { overflow-x: auto; }
.admin-book-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-book-table th, .admin-book-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
.admin-book-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.admin-book-table td:first-child { min-width: 240px; }
.admin-book-table strong, .admin-book-table small { display: block; }
.admin-book-table small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.admin-book-status { display: inline-flex; padding: 4px 7px; border: 1px solid currentColor; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-book-status.is-published { color: #167d69; background: #e8f6f3; }
.admin-book-status.is-draft { color: #9b6817; background: #fff7e9; }
.admin-book-modal { position: fixed; inset: 0; z-index: 111; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); overflow: auto; background: rgba(7, 15, 19, .78); }
.admin-book-modal[hidden] { display: none; }
.admin-book-dialog { width: min(920px, 100%); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
.admin-book-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-book-dialog > header .eyebrow, .admin-book-dialog > header h2 { margin: 0; }
.admin-book-dialog > header .eyebrow { margin-bottom: 4px; }
.admin-book-dialog > header > a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); color: var(--text); font-size: 28px; line-height: 1; text-decoration: none; }
.admin-book-dialog > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.admin-book-dialog .wide, .admin-book-dialog footer { grid-column: 1 / -1; }
.admin-book-dialog footer { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.admin-curriculum-toolbar, .admin-curriculum-toolbar-actions, .admin-curriculum-course > header, .admin-curriculum-module > header, .admin-curriculum-actions, .admin-curriculum-stats { display: flex; align-items: center; gap: 12px; }
.admin-curriculum-toolbar { justify-content: space-between; margin: 4px 0 20px; }
.admin-curriculum-toolbar h2, .admin-curriculum-toolbar p, .admin-curriculum-course h2, .admin-curriculum-course h3, .admin-curriculum-course p, .admin-curriculum-module p { margin: 0; }
.admin-curriculum-toolbar p, .admin-curriculum-course > header p, .admin-curriculum-module > header p { margin-top: 5px; color: var(--muted); }
.admin-curriculum-toolbar-actions, .admin-curriculum-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-curriculum-select label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-curriculum-select select { min-width: 220px; }
.admin-curriculum-stats { flex-wrap: wrap; margin-bottom: 16px; }
.admin-curriculum-stats span { min-width: 136px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted); font-size: 13px; }
.admin-curriculum-stats strong { margin-right: 6px; color: var(--text); font-size: 20px; }
.admin-curriculum-course { border: 1px solid var(--line); background: var(--panel); }
.admin-curriculum-course > header { justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.admin-curriculum-course > header .eyebrow { display: block; margin-bottom: 4px; }
.admin-curriculum-course > header h2 { font-size: 26px; }
.admin-curriculum-actions form { margin: 0; }
.admin-curriculum-actions a, .admin-curriculum-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--accent-2); font: inherit; font-size: 13px; font-weight: 800; line-height: 32px; text-decoration: none; cursor: pointer; }
.admin-curriculum-actions button { color: var(--text); }
.admin-curriculum-actions .danger { color: #d65b56; }
.admin-curriculum-actions a:hover, .admin-curriculum-actions a:focus-visible, .admin-curriculum-actions button:hover, .admin-curriculum-actions button:focus-visible { border-color: var(--accent-2); background: var(--hover-soft); outline: 0; }
.admin-curriculum-modules { padding: 16px; }
.admin-curriculum-module { border: 1px solid var(--line); background: var(--panel-soft); }
.admin-curriculum-module + .admin-curriculum-module { margin-top: 14px; }
.admin-curriculum-module > header { align-items: flex-start; justify-content: space-between; padding: 15px 16px; }
.admin-curriculum-module > header span { color: var(--accent-2); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.admin-curriculum-module h3 { margin-top: 4px; font-size: 19px; }
.admin-curriculum-lessons { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.admin-curriculum-lessons li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.admin-curriculum-lessons li:last-child { border-bottom: 0; }
.admin-curriculum-lessons strong, .admin-curriculum-lessons small { display: block; }
.admin-curriculum-lessons small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.admin-curriculum-empty { margin: 0; padding: 24px; color: var(--muted); text-align: center; }
.admin-curriculum-modal { position: fixed; inset: 0; z-index: 111; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); overflow: auto; background: rgba(7, 15, 19, .78); }
.admin-curriculum-dialog { width: min(960px, 100%); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
.admin-curriculum-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.admin-curriculum-dialog > header .eyebrow, .admin-curriculum-dialog > header h2 { margin: 0; }
.admin-curriculum-dialog > header .eyebrow { margin-bottom: 4px; }
.admin-curriculum-dialog > header > a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); color: var(--text); font-size: 28px; line-height: 1; text-decoration: none; }
.admin-curriculum-dialog > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.admin-curriculum-dialog .wide, .admin-curriculum-dialog footer { grid-column: 1 / -1; }
.admin-curriculum-dialog footer { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ad-banner-manager { margin: 20px 0; border: 1px solid var(--line); background: var(--panel-soft); }
.ad-banner-manager-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ad-banner-manager-header h3, .ad-banner-manager-header p { margin: 0; }
.ad-banner-manager-header p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.ad-banner-manager-header .button { display: grid; width: 38px; min-width: 38px; height: 38px; place-items: center; padding: 0; font-size: 24px; line-height: 1; }
.ad-banner-list { display: grid; gap: 14px; padding: 16px; }
.ad-banner-card { border: 1px solid var(--line); background: var(--panel); }
.ad-banner-card[hidden] { display: none; }
.ad-banner-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.ad-banner-card > header button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); background: transparent; color: #d65b56; font-size: 21px; line-height: 1; cursor: pointer; }
.ad-banner-card > .admin-homepage-grid { padding: 14px; }
.ad-banner-card .media-picker-preview { width: min(220px, 100%); height: 128px; min-height: 128px; border-color: var(--line); background: #10181c; cursor: zoom-in; }
.ad-banner-card .media-picker-preview img { width: 100%; height: 100%; object-fit: contain; }
.ad-banner-card .media-picker-actions, .ad-banner-card .media-picker-selection, .ad-banner-card .media-picker-field > .help-text { margin-top: 8px; }
.ad-banner-statistics { display: flex; flex-wrap: wrap; gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.ad-banner-statistics span { display: grid; flex: 1 1 140px; gap: 3px; min-height: 62px; padding: 11px 14px; background: var(--panel-soft); color: var(--muted); font-size: 12px; }
.ad-banner-statistics strong { color: var(--text); font-size: 16px; }
.ad-banner-statistics .is-exhausted strong { color: #d65b56; }
.admin-user-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.admin-user-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.admin-user-table th, .admin-user-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-user-table th { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-user-table tbody tr:last-child td { border-bottom: 0; }
.admin-user-table td strong, .admin-user-table td small { display: block; }
.admin-user-table td small { margin-top: 3px; color: var(--muted); }
.admin-user-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-user-status.is-active, .admin-user-status.is-approved { border-color: rgba(40, 166, 136, .5); color: #28a688; }
.admin-user-status.is-pending, .admin-user-status.is-readonly { border-color: rgba(215, 168, 69, .5); color: #d7a845; }
.admin-user-status.is-blocked { border-color: rgba(214, 91, 86, .5); color: #d65b56; }
.admin-user-actions { min-width: 210px; }
.admin-user-actions form { margin: 0; }
.admin-user-actions a, .admin-user-actions button { border: 0; padding: 0; background: transparent; color: var(--accent-2); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; }
.admin-user-actions button { color: var(--text); }
.community-admin-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 22px; border: 1px solid var(--line); background: var(--line); }
.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; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.community-admin-overview > div { display: grid; gap: 3px; min-height: 92px; padding: 17px 20px; background: var(--panel); }
.community-admin-overview strong { color: var(--accent-2); font-size: 28px; line-height: 1; }
.community-admin-overview span { color: var(--muted); font-size: 13px; font-weight: 750; }
.community-admin-panel { margin: 22px; padding: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-card); }
.community-admin-panel-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.community-admin-panel-header .eyebrow, .community-admin-panel-header h2, .community-admin-panel-header p { margin: 0; }
.community-admin-panel-header h2 { margin-top: 4px; font-size: 26px; }
.community-admin-panel-header p:not(.eyebrow) { max-width: 620px; margin-top: 6px; color: var(--muted); }
.community-admin-search { width: min(300px, 100%); }
.community-admin-search input { min-height: 42px; }
.community-admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.community-admin-table { width: 100%; min-width: 820px; border-collapse: collapse; text-align: left; }
.community-admin-table th, .community-admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.community-admin-table th { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.community-admin-table tbody tr:last-child td { border-bottom: 0; }
.community-admin-table td strong, .community-admin-table td small { display: block; }
.community-admin-table td small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.community-admin-badge, .community-admin-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; white-space: nowrap; }
.community-admin-status { margin-top: 5px; color: var(--muted); }
.community-admin-status.is-active, .community-admin-status.is-published { border-color: rgba(40, 166, 136, .5); color: #28a688; }
.community-admin-status.is-inactive, .community-admin-status.is-hidden { border-color: rgba(214, 91, 86, .5); color: #d65b56; }
.community-admin-status.is-scheduled { border-color: rgba(215, 168, 69, .55); color: #d7a845; }
.community-admin-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 250px; }
.community-admin-actions form { margin: 0; }
.community-admin-actions a, .community-admin-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); background: transparent; color: var(--accent-2); font: inherit; font-size: 13px; font-weight: 800; line-height: 32px; text-decoration: none; cursor: pointer; }
.community-admin-actions button { color: var(--text); }
.community-admin-actions .is-danger { color: #d65b56; }
.community-admin-actions a:hover, .community-admin-actions a:focus-visible, .community-admin-actions button:hover, .community-admin-actions button:focus-visible { border-color: var(--accent-2); background: var(--hover-soft); outline: 0; }
.community-admin-empty { padding: 24px !important; color: var(--muted); text-align: center; }

.editorial-board { margin: 22px; padding: 24px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-card); }
.editorial-board-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.editorial-board-header .eyebrow, .editorial-board-header h2, .editorial-board-header p { margin: 0; }
.editorial-board-header h2 { margin-top: 5px; font-size: 28px; }
.editorial-board-header p:not(.eyebrow) { max-width: 630px; margin-top: 7px; color: var(--muted); }
.editorial-board-controls { display: flex; align-items: center; gap: 8px; }
.editorial-board-controls form { margin: 0; }
.editorial-board-controls input[type="month"] { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--text); font: inherit; font-weight: 750; }
.editorial-board-controls .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; }
.editorial-board-legend { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 24px 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.editorial-board-legend span { display: inline-flex; align-items: center; gap: 7px; }
.editorial-board-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
.editorial-board-legend i.is-published { background: #28a688; }
.editorial-board-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.editorial-board-weekdays, .editorial-board-grid { min-width: 970px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.editorial-board-weekdays { border-bottom: 1px solid var(--line); background: var(--hover-soft); }
.editorial-board-weekdays span { padding: 10px 12px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.editorial-board-grid { grid-auto-rows: minmax(148px, auto); }
.editorial-board-day { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background .16s ease, box-shadow .16s ease; }
.editorial-board-day:nth-child(7n) { border-right: 0; }
.editorial-board-day:nth-last-child(-n + 7) { border-bottom: 0; }
.editorial-board-day.is-outside { background: color-mix(in srgb, var(--surface) 70%, var(--panel)); }
.editorial-board-day.is-outside > header { opacity: .48; }
.editorial-board-day.is-today > header time { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--accent-2); color: #fff; }
.editorial-board-day.is-drop-target { background: color-mix(in srgb, var(--accent-2) 15%, var(--surface)); box-shadow: inset 0 0 0 2px var(--accent-2); }
.editorial-board-day > header { display: flex; align-items: center; justify-content: space-between; min-height: 27px; }
.editorial-board-day > header time { color: var(--text); font-size: 14px; font-weight: 850; }
.editorial-board-day > header span { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.editorial-board-day-posts { display: grid; align-content: start; gap: 6px; }
.editorial-board-post { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px; min-width: 0; padding: 7px; border-left: 3px solid var(--accent-2); background: var(--hover-soft); color: var(--text); text-decoration: none; cursor: grab; }
.editorial-board-post.is-published { border-left-color: #28a688; }
.editorial-board-post.is-dragging { opacity: .42; cursor: grabbing; }
.editorial-board-post:hover, .editorial-board-post:focus-visible { background: color-mix(in srgb, var(--accent-2) 14%, var(--surface)); outline: 0; }
.editorial-board-post time { padding-top: 1px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.editorial-board-post strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 12px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.editorial-board [data-editorial-reschedule-form] { display: none; }
.community-group-modal { position: fixed; inset: 0; z-index: 112; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); overflow: auto; background: rgba(7, 15, 19, .78); }
.community-group-modal[hidden] { display: none; }
.community-group-dialog { width: min(680px, 100%); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
.community-group-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.community-group-dialog .eyebrow, .community-group-dialog h2 { margin: 0; }
.community-group-dialog .eyebrow { margin-bottom: 4px; }
.community-group-dialog > header button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; }
.community-group-dialog form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.community-group-dialog .wide, .community-group-dialog footer { grid-column: 1 / -1; }
.community-group-dialog footer { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.verification-confirmation-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: #e4f6f2; color: #08766d; font-size: 24px; font-weight: 800; }
.user-menu { position: relative; }
.user-menu summary { cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu > div { position: absolute; right: 0; top: calc(100% + 12px); z-index: 120; display: grid; min-width: 245px; padding: 8px; border: 1px solid rgba(172, 215, 226, .38); border-radius: 6px; background: #092230; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.user-menu > div a, .user-menu > div > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 11px; border-radius: 4px; color: #edf7fa; font-size: 15px; font-weight: 750; text-decoration: none; }
.user-menu > div > span { margin-top: 2px; border-top: 1px solid rgba(214, 239, 245, .22); color: #c8dce2; font-weight: 700; }
.user-menu > div a:hover, .user-menu > div a:focus-visible { background: #16485a; color: #ffffff; outline: 0; }
.user-menu > div small { color: #74d6e7; font-size: 14px; font-weight: 900; }
.user-menu > div .user-menu-logout { margin-top: 5px; border-top: 1px solid rgba(214, 239, 245, .22); border-radius: 0 0 4px 4px; color: #f0b0aa; }
.user-menu > div .user-menu-logout:hover, .user-menu > div .user-menu-logout:focus-visible { background: rgba(202, 74, 66, .22); color: #fff; }
.community-author-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.community-author-avatar, .followed-member-avatar { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-strong); color: var(--accent-2); font-size: 12px; font-weight: 800; }
.community-author-avatar img, .followed-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-author-row form { margin-left: auto; }
.community-follow-button { min-height: 32px; padding: 6px 10px; border: 1px solid var(--accent-2); border-radius: 5px; background: transparent; color: var(--accent-2); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.community-follow-button:hover, .community-follow-button:focus-visible, .community-follow-button.is-following { background: var(--accent-2); color: #fff; outline: 0; }
.community-follow-button.is-following:hover { border-color: #a44747; background: #a44747; }
.community-follow-tabs { display: flex; gap: 8px; margin-top: 14px; }
.community-follow-tabs-prominent { margin: 0 0 16px; }
.community-follow-tabs a { padding: 8px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.community-follow-tabs a.is-active { border-color: rgba(11, 147, 168, .65); background: rgba(11, 147, 168, .12); color: var(--text); }
.community-follow-stats { display: flex; align-items: stretch; gap: 1px; width: min(760px, calc(100% - 40px)); margin: 0 auto 24px; border: 1px solid var(--line); background: var(--line); }
.community-follow-stats > div, .community-follow-stats > a { display: grid; flex: 1; place-content: center; min-height: 86px; padding: 14px 18px; background: var(--panel); text-align: center; text-decoration: none; }
.community-follow-stats strong { color: var(--accent-2); font-size: 24px; }
.community-follow-stats span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.community-follow-stats > a { color: var(--text); font-size: 14px; font-weight: 800; }
.community-follow-stats > a:hover { background: var(--hover-soft); }
.followed-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; width: min(1100px, calc(100% - 40px)); margin: 0 auto 48px; }
.followed-member-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.followed-member-avatar { width: 52px; height: 52px; font-size: 18px; }
.followed-member-card h2, .followed-member-card p { margin: 0; }
.followed-member-card h2 { font-size: 18px; }
.followed-member-card p { margin-top: 4px; color: var(--muted); }
.followed-member-card small { grid-column: 2; color: var(--muted); }
.followed-member-card form { grid-column: 1 / -1; }

/* Innovation Lab reuses courses, groups, events and initiatives as one project surface. */
.innovation-lab-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(28px, 6vw, 88px); align-items: center; min-height: 540px; padding: clamp(42px, 7vw, 92px) max(24px, calc((100% - 1320px) / 2)); background: #08242d; color: #edf7f8; }
.innovation-lab-hero .eyebrow { color: #4ed4db; }
.innovation-lab-hero h1 { max-width: 920px; margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 78px); line-height: 1.02; }
.innovation-lab-hero p:not(.eyebrow) { max-width: 800px; margin: 24px 0 0; color: #c6dce1; font-size: 19px; line-height: 1.55; }
.innovation-lab-hero .hero-actions { margin-top: 28px; }
.innovation-lab-hero-visual { position: relative; min-height: 400px; display: grid; align-content: end; overflow: hidden; border: 1px solid rgba(126, 229, 230, .35); background: #0d3540; box-shadow: 18px 18px 0 rgba(0, 0, 0, .18); }
.innovation-lab-hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.innovation-lab-hero-diagram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 32px; background: linear-gradient(135deg, #123e48 0%, #092831 55%, #0d5358 100%); }
.innovation-lab-hero-diagram span { display: grid; place-items: center; width: 110px; height: 110px; padding: 10px; border: 1px solid #65d9d9; border-radius: 50%; color: #eef9f9; font-size: 13px; font-weight: 850; text-align: center; }
.innovation-lab-hero-diagram i { width: 34px; height: 1px; background: #65d9d9; }
.innovation-lab-metrics { display: grid; gap: 1px; margin: 0; border: 1px solid rgba(185, 230, 234, .28); background: rgba(185, 230, 234, .28); }
.innovation-lab-hero-visual .innovation-lab-metrics, .innovation-lab-hero-visual .innovation-lab-kpi-fallback { position: relative; z-index: 1; margin: 0 18px 18px; backdrop-filter: blur(8px); }
.innovation-lab-hero-visual .innovation-lab-metrics { grid-template-columns: repeat(3, 1fr); background: rgba(185, 230, 234, .32); }
.innovation-lab-hero-visual .innovation-lab-metrics > div { padding: 14px; background: rgba(8, 36, 45, .84); }
.innovation-lab-hero-visual .innovation-lab-metrics dt { font-size: 26px; }
.innovation-lab-metrics > div { padding: 18px 20px; background: #103743; }
.innovation-lab-metrics dt { color: #6ce4e6; font-size: 32px; font-weight: 850; }
.innovation-lab-metrics dd { margin: 3px 0 0; color: #d2e6e9; font-size: 14px; font-weight: 750; }
.innovation-lab-kpi-fallback { align-self: end; margin: 0; padding: 20px; border-left: 3px solid #6ce4e6; color: #d2e6e9; line-height: 1.5; }
.innovation-lab-intro, .innovation-lab-listing, .innovation-lab-inquiry, .innovation-lab-detail-grid, .innovation-lab-links, .innovation-lab-evaluation, .innovation-lab-admin-score { width: min(1320px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.innovation-lab-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .75fr); gap: clamp(28px, 7vw, 120px); padding: 72px 0 32px; }
.innovation-lab-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 52px); }
.innovation-lab-intro p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.innovation-lab-score-teaser { display: grid; align-content: center; gap: 10px; padding: 24px; border-left: 4px solid var(--accent-2); background: var(--panel-soft); }
.innovation-lab-score-teaser strong { font-size: 18px; }
.innovation-lab-score-teaser span { color: var(--muted); line-height: 1.5; }
.innovation-lab-listing { padding: 36px 0 72px; }
.innovation-lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.innovation-lab-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); box-shadow: var(--shadow-card); }
.innovation-lab-card > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.innovation-lab-card-visual { display: grid; align-content: space-between; min-height: 190px; padding: 22px; background: #123944; color: #eefafa; }
.innovation-lab-card-visual span { color: #5bdadd; font-size: 12px; font-weight: 850; letter-spacing: .06em; }
.innovation-lab-card-visual strong { max-width: 80%; font-size: 22px; line-height: 1.14; }
.innovation-lab-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.innovation-lab-card h2 { margin: 12px 0 6px; font-size: 25px; line-height: 1.15; }
.innovation-lab-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.innovation-lab-card .innovation-lab-partner { color: var(--text); font-size: 14px; font-weight: 800; }
.innovation-lab-tags { color: var(--accent-2) !important; font-size: 13px; font-weight: 800; }
.innovation-lab-card-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 13px; font-weight: 750; }
.innovation-lab-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.innovation-lab-inquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: clamp(28px, 7vw, 110px); padding: 72px 0; border-top: 1px solid var(--line); }
.innovation-lab-inquiry h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 54px); }
.innovation-lab-inquiry > div > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.55; }
.innovation-lab-inquiry ol { display: grid; gap: 11px; padding-left: 22px; color: var(--text); font-weight: 750; }
.innovation-lab-hero { display: block; min-height: 0; padding: 0; background: #08242d; }
.innovation-lab-hero-inner { width: min(1320px, calc(100% - 64px)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: clamp(36px, 6vw, 96px); align-items: center; min-height: 580px; margin: 0 auto; padding: 76px 0; }
.innovation-lab-hero-copy { padding: 0; }
.innovation-lab-hero h1 { max-width: 760px; font-size: clamp(44px, 5vw, 76px); }
.innovation-lab-hero-copy > p:not(.eyebrow) { max-width: 720px; }
.innovation-lab-hero-note { max-width: 700px; margin-top: 20px !important; font-size: 15px !important; font-weight: 700; }
.innovation-lab-hero-visual { min-height: 420px; margin: 0; aspect-ratio: 5 / 4; box-shadow: 14px 14px 0 rgba(0, 0, 0, .18); }
.innovation-lab-hero-visual > img { object-position: 62% center; }
.innovation-lab-kpi-fallback { display: grid; gap: 8px; max-width: 82%; background: rgba(5, 26, 34, .86); }
.innovation-lab-kpi-fallback strong { color: #effafa; font-size: 18px; }
.innovation-lab-kpi-fallback span { color: #d2e6e9; }
.innovation-lab-explainer { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 84px 0 72px; }
.innovation-lab-explainer .section-title, .innovation-lab-listing .section-title { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: clamp(28px, 7vw, 104px); align-items: end; margin: 0 0 42px; }
.innovation-lab-explainer .section-title h2, .innovation-lab-listing .section-title h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.04; }
.innovation-lab-explainer .section-title > p, .innovation-lab-listing .section-title > p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.innovation-lab-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.innovation-lab-steps li { display: grid; gap: 18px; min-height: 250px; padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.innovation-lab-steps li + li { padding-left: 24px; }
.innovation-lab-steps li:last-child { border-right: 0; }
.innovation-lab-steps li > span { color: var(--accent-2); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.innovation-lab-steps h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.innovation-lab-steps p { margin: 10px 0 0; color: var(--muted); line-height: 1.52; }
.innovation-lab-intro, .innovation-lab-listing, .innovation-lab-inquiry-cta { width: min(1320px, calc(100% - 64px)); }
.innovation-lab-intro { padding-top: 72px; }
.innovation-lab-listing { padding-top: 64px; }
.innovation-lab-empty { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.innovation-lab-empty p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.innovation-lab-inquiry-cta { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 0 auto; padding: 72px 0 88px; border-top: 1px solid var(--line); }
.innovation-lab-inquiry-cta > div { max-width: 900px; }
.innovation-lab-inquiry-cta h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; }
.innovation-lab-inquiry-cta p:not(.eyebrow) { max-width: 800px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.innovation-lab-inquiry-cta > .button { flex: 0 0 auto; }
.innovation-lab-inquiry-modal { position: fixed; inset: 0; z-index: 116; display: grid; place-items: center; padding: clamp(18px, 4vw, 48px); overflow-y: auto; background: rgba(5, 15, 19, .82); }
.innovation-lab-inquiry-modal[hidden] { display: none; }
.innovation-lab-inquiry-dialog { width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .46); }
.innovation-lab-inquiry-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 28px; padding: 28px 32px 24px; border-bottom: 1px solid var(--line); }
.innovation-lab-inquiry-dialog > header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 48px); }
.innovation-lab-inquiry-dialog > header p:not(.eyebrow) { max-width: 720px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.innovation-lab-inquiry-dialog > header button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
.innovation-lab-inquiry-dialog-body { display: grid; grid-template-columns: minmax(230px, .45fr) minmax(0, 1fr); }
.innovation-lab-inquiry-dialog-body aside { padding: 28px 30px; border-right: 1px solid var(--line); background: var(--panel-soft); }
.innovation-lab-inquiry-dialog-body aside strong { font-size: 18px; }
.innovation-lab-inquiry-dialog-body aside ol { display: grid; gap: 14px; padding-left: 20px; color: var(--muted); line-height: 1.48; }
.innovation-lab-inquiry-dialog-body aside p { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.48; }
.innovation-lab-inquiry-dialog-body form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 28px 30px 30px; }
.innovation-lab-inquiry-dialog-body label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.innovation-lab-inquiry-dialog-body label.wide, .innovation-lab-inquiry-dialog-body footer { grid-column: 1 / -1; }
.innovation-lab-inquiry-dialog-body footer { display: flex; flex-wrap: wrap; gap: 10px; }
.innovation-lab-detail-head { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 30px; }
.innovation-lab-detail-head .initiative-status { margin: 20px 0 0; }
.innovation-lab-detail-head h1 { max-width: 1040px; margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.innovation-lab-detail-head .lead { max-width: 820px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.innovation-lab-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 30px 0; border: 1px solid var(--line); background: var(--line); }
.innovation-lab-detail-meta > div { padding: 16px 18px; background: var(--panel); }
.innovation-lab-detail-meta dt { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.innovation-lab-detail-meta dd { margin: 5px 0 0; font-weight: 800; }
.innovation-lab-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr); gap: clamp(28px, 7vw, 110px); padding: 28px 0 48px; }
.innovation-lab-content > section + section { margin-top: 42px; }
.innovation-lab-content h2, .innovation-lab-participation h2, .innovation-lab-evaluation h2 { margin-top: 0; font-family: Georgia, serif; font-size: 34px; }
.innovation-lab-participation { align-self: start; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--accent-2); background: var(--panel); }
.innovation-lab-participation > strong { display: block; margin-top: 22px; color: var(--accent-2); }
.innovation-lab-practice-partners { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.innovation-lab-practice-partners > strong { margin: 0; color: var(--text); }
.innovation-lab-practice-partners ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.innovation-lab-practice-partners li { font-weight: 750; }
.innovation-lab-practice-partners small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; }
.innovation-lab-application { margin-top: 20px; }
.innovation-lab-application summary, .innovation-lab-evaluation summary { color: var(--accent-2); font-weight: 850; cursor: pointer; }
.innovation-lab-application form, .innovation-lab-evaluation form { display: grid; gap: 14px; margin-top: 16px; }
.innovation-lab-application fieldset { display: grid; gap: 6px; border: 1px solid var(--line); }
.innovation-lab-links { padding: 30px 0 48px; border-top: 1px solid var(--line); }
.innovation-lab-links > div { display: flex; flex-wrap: wrap; gap: 10px; }
.innovation-lab-links a { padding: 11px 13px; border: 1px solid var(--line); background: var(--panel); color: var(--accent-2); font-weight: 800; text-decoration: none; }
.innovation-lab-links a:hover { border-color: var(--accent-2); background: var(--hover-soft); }
.innovation-lab-evaluation, .innovation-lab-admin-score { margin-bottom: 54px; padding: 28px; border: 1px solid var(--line); background: var(--panel-soft); }
.innovation-lab-public-score { width: min(1320px, calc(100% - 48px)); margin: 0 auto 36px; padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--accent-2); background: var(--panel); }
.innovation-lab-public-score h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; }
.innovation-lab-public-score > p { color: var(--muted); }
.innovation-lab-public-score > small { display: block; color: var(--muted); line-height: 1.45; }
.innovation-lab-result-list article { margin-top: 18px; padding: 20px; border-left: 3px solid var(--accent-2); background: var(--panel-soft); }
.innovation-lab-result-list article > span, .innovation-lab-result-admin-list article > div > span { color: var(--accent-2); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.innovation-lab-result-list h3 { margin: 8px 0; font-size: 21px; }
.innovation-score-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 22px 0; background: var(--line); }
.innovation-score-summary > div { display: grid; gap: 8px; min-height: 104px; padding: 16px; background: var(--panel-soft); }
.innovation-score-summary span { color: var(--muted); font-size: 13px; font-weight: 750; }
.innovation-score-summary strong { color: var(--accent-2); font-size: 20px; }
.innovation-score-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.innovation-lab-admin-score { border-left: 4px solid var(--accent-2); }
.admin-inline-review { display: flex; align-items: center; gap: 7px; min-width: 350px; margin: 0; }
.admin-inline-review input, .admin-inline-review select { min-width: 0; margin: 0; }
.innovation-lab-admin-review, .innovation-lab-inquiry-admin { margin-top: 24px; }
.innovation-lab-admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0; padding: 6px; border: 1px solid var(--line); background: var(--panel-soft); }
.innovation-lab-admin-tabs a { padding: 10px 14px; color: var(--muted); font-size: 14px; font-weight: 850; text-decoration: none; }
.innovation-lab-admin-tabs a:hover, .innovation-lab-admin-tabs a.is-active { background: var(--panel); color: var(--accent-2); box-shadow: inset 0 -2px 0 var(--accent-2); }
.innovation-lab-admin-workspaces, .innovation-lab-admin-results, .innovation-lab-admin-notes, .innovation-lab-client-overview { margin-top: 24px; }
.innovation-lab-workspace-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 24px 0; background: var(--line); }
.innovation-lab-workspace-summary span { min-height: 74px; padding: 14px; background: var(--panel-soft); color: var(--muted); font-size: 13px; font-weight: 750; }
.innovation-lab-workspace-summary span.is-ready { border-top: 3px solid var(--accent-2); background: var(--panel); color: var(--text); }
.innovation-lab-partner-manager { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 26px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.innovation-lab-partner-manager h3 { margin: 5px 0; font-family: Georgia, serif; font-size: 29px; }
.innovation-lab-partner-create, .innovation-lab-result-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.innovation-lab-partner-create > button, .innovation-lab-result-form > button { justify-self: start; align-self: end; }
.innovation-lab-partner-links, .innovation-lab-result-admin-list { display: grid; gap: 1px; margin-top: 20px; border: 1px solid var(--line); background: var(--line); }
.innovation-lab-partner-links article, .innovation-lab-result-admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; background: var(--panel); }
.innovation-lab-partner-links strong, .innovation-lab-partner-links small { display: block; }
.innovation-lab-partner-links small, .innovation-lab-result-admin-list p { margin: 4px 0 0; color: var(--muted); }
.innovation-lab-result-form .wide { grid-column: 1 / -1; }
.innovation-lab-admin-notes { max-width: 900px; }
.innovation-lab-client-head { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 28px; }
.innovation-lab-client-head h1 { max-width: 900px; margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.innovation-lab-client-head .lead { max-width: 760px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.innovation-lab-client-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 22px; width: min(1120px, calc(100% - 48px)); margin: 0 auto 22px; }
.innovation-lab-client-panel, .innovation-lab-client-results { padding: 26px; border: 1px solid var(--line); background: var(--panel); }
.innovation-lab-client-panel h2, .innovation-lab-client-results h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 31px; }
.innovation-lab-client-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.innovation-lab-client-panel > small { display: block; color: var(--muted); line-height: 1.45; }
.innovation-lab-client-milestones ol { display: grid; gap: 1px; margin: 22px 0 0; padding: 0; list-style: none; background: var(--line); }
.innovation-lab-client-milestones li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 15px; padding: 16px; background: var(--panel-soft); }
.innovation-lab-client-milestones li > span { color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.innovation-lab-client-milestones li.is-completed > span { color: var(--accent-2); }
.innovation-lab-client-milestones li strong, .innovation-lab-client-milestones li small { display: block; }
.innovation-lab-client-milestones li p { margin: 6px 0; color: var(--muted); line-height: 1.45; }
.innovation-lab-client-milestones li small { color: var(--muted); font-size: 12px; }
.innovation-lab-client-results { width: min(1120px, calc(100% - 48px)); margin: 0 auto 64px; }
.innovation-lab-client-question { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.innovation-lab-client-question summary { cursor: pointer; color: var(--accent-2); font-weight: 800; }
.innovation-lab-client-question form { display: grid; gap: 10px; margin-top: 12px; }
.innovation-lab-client-question label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.innovation-lab-client-question textarea { min-height: 82px; }
.innovation-lab-client-question-answer { margin-top: 12px; padding: 12px; border-left: 3px solid var(--accent-2); background: var(--panel-soft); }
.innovation-lab-client-question-answer strong { color: var(--accent-2); font-size: 12px; text-transform: uppercase; }
.innovation-lab-client-question-answer p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.innovation-lab-client-question-answer .answer { color: var(--text); }
.innovation-lab-client-admin { margin-top: 24px; }
.innovation-lab-client-admin-actions { margin: 20px 0; }
.innovation-lab-client-admin-grid { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.innovation-lab-client-admin-grid h3, .innovation-lab-client-milestone-admin h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 26px; }
.innovation-lab-client-admin-grid form { display: grid; align-content: start; gap: 13px; padding: 20px; background: var(--panel-soft); }
.innovation-lab-client-grant-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--line); }
.innovation-lab-client-grant-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; background: var(--panel); }
.innovation-lab-client-grant-list strong, .innovation-lab-client-grant-list small { display: block; }
.innovation-lab-client-grant-list small { margin-top: 3px; color: var(--muted); }
.innovation-lab-client-grant-list form { display: block; padding: 0; background: transparent; }
.innovation-lab-client-milestone-admin { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.innovation-lab-client-questions-admin, .innovation-lab-audit-admin { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.innovation-lab-client-questions-admin h3, .innovation-lab-audit-admin h3 { margin: 0; font-family: Georgia, serif; font-size: 26px; }
.innovation-lab-question-admin-list { display: grid; gap: 12px; margin-top: 18px; }
.innovation-lab-question-admin-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 20px; padding: 18px; border: 1px solid var(--line); background: var(--panel-soft); }
.innovation-lab-question-admin-list article span, .innovation-lab-question-admin-list article strong { display: block; }
.innovation-lab-question-admin-list article span { color: var(--accent-2); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.innovation-lab-question-admin-list article strong { margin-top: 8px; }
.innovation-lab-question-admin-list article p { margin: 9px 0 0; line-height: 1.45; }
.innovation-lab-question-admin-list article .answer { color: var(--muted); }
.innovation-lab-question-admin-list form { display: grid; align-content: start; gap: 10px; }
.innovation-lab-question-admin-list label { display: grid; gap: 6px; font-size: 13px; font-weight: 750; }
.innovation-lab-audit-admin ol { display: grid; gap: 1px; margin: 18px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--line); }
.innovation-lab-audit-admin li { padding: 12px 14px; background: var(--panel); }
.innovation-lab-audit-admin strong, .innovation-lab-audit-admin small { display: block; }
.innovation-lab-audit-admin small { margin-top: 3px; color: var(--muted); }
.innovation-lab-result-admin-actions { display: grid; align-content: start; gap: 8px; }
.innovation-lab-result-admin-actions form { display: flex; align-items: center; gap: 8px; }
.innovation-lab-milestone-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.innovation-lab-milestone-form .wide { grid-column: 1 / -1; }
.innovation-lab-milestone-form > button { justify-self: start; }
.innovation-lab-milestone-admin-list { display: grid; gap: 1px; margin-top: 20px; border: 1px solid var(--line); background: var(--line); }
.innovation-lab-milestone-admin-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; background: var(--panel); }
.innovation-lab-milestone-admin-list span, .innovation-lab-milestone-admin-list strong, .innovation-lab-milestone-admin-list small { display: block; }
.innovation-lab-milestone-admin-list span, .innovation-lab-milestone-admin-list small { color: var(--muted); font-size: 12px; }
.innovation-lab-chat-callout { width: min(1320px, calc(100% - 48px)); display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 auto 24px; padding: 24px 28px; border: 1px solid var(--line); border-left: 4px solid var(--accent-2); background: var(--panel); }
.innovation-lab-chat-callout h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; }
.innovation-lab-chat-callout p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.chat-inbox-layout { display: grid; grid-template-columns: minmax(250px, .55fr) minmax(0, 1.2fr); gap: 20px; width: min(1120px, calc(100% - 48px)); margin: 0 auto 64px; }
.chat-start-panel, .chat-inbox-list, .chat-thread { border: 1px solid var(--line); background: var(--panel); }
.chat-start-panel { align-self: start; padding: 22px; }
.chat-start-panel h2 { margin-top: 0; font-family: Georgia, serif; }
.chat-start-panel p { color: var(--muted); line-height: 1.45; }
.chat-start-panel form { display: grid; gap: 12px; }
.chat-contact-results { display: grid; gap: 6px; max-height: 250px; overflow-y: auto; }
.chat-contact-result { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel-soft); color: var(--text); font: inherit; font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; }
.chat-contact-result:hover, .chat-contact-result:focus-visible { border-color: var(--accent-2); background: var(--hover-soft); outline: none; }
.chat-contact-result-avatar { width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--panel); color: var(--accent-2); font-size: 13px; }
.chat-contact-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-inbox-list { min-height: 240px; }
.chat-conversation-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.chat-conversation-row:hover, .chat-conversation-row.is-unread { background: var(--hover-soft); }
.chat-conversation-row:last-child { border-bottom: 0; }
.chat-conversation-row span:nth-child(2) { min-width: 0; }
.chat-conversation-row strong, .chat-conversation-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-conversation-row small { margin-top: 3px; color: var(--muted); }
.chat-conversation-row b { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; border-radius: 50%; background: var(--accent-2); color: #fff; font-size: 12px; }
.chat-conversation-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--panel-soft); color: var(--accent-2); font-weight: 850; }
.chat-conversation-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-thread { width: min(900px, calc(100% - 48px)); margin: 34px auto 64px; }
.chat-thread-header { display: grid; gap: 14px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.chat-thread-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); }
.chat-thread-header p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); }
.chat-message-list { display: grid; gap: 12px; min-height: 260px; max-height: 60vh; overflow-y: auto; padding: 24px 28px; background: var(--panel-soft); }
.chat-message { max-width: min(78%, 620px); padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.chat-message.is-own { justify-self: end; border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 9%, var(--panel)); }
.chat-message > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.chat-message strong { color: var(--text); }
.chat-message p { margin: 8px 0 0; line-height: 1.48; white-space: normal; overflow-wrap: anywhere; }
.chat-message-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--line); }
.chat-message-form textarea { min-height: 48px; margin: 0; }
.community-direct-message-unavailable { opacity: .55; cursor: not-allowed; }
.chat-compose-modal { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); overflow: auto; background: rgba(7, 15, 19, .78); }
.chat-compose-modal[hidden] { display: none; }
.chat-compose-dialog { width: min(580px, 100%); border: 1px solid var(--line); background: var(--panel); box-shadow: 0 18px 54px rgba(0, 0, 0, .35); }
.chat-compose-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.chat-compose-dialog h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; }
.chat-compose-dialog > header button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.chat-compose-dialog form { display: grid; gap: 16px; padding: 24px; }
.chat-compose-dialog form > p { margin: 0; color: var(--muted); line-height: 1.45; }
.site-header .nav > a.nav-message-indicator { width: 25px; height: 25px; display: inline-grid; place-items: center; padding: 0; }
.nav-message-indicator svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.nav-message-indicator b { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #031018; border-radius: 50%; background: var(--accent-2); color: #fff; font-size: 10px; line-height: 1; }
.admin-broadcast-panel { padding: 24px; }
.admin-broadcast-intro { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-broadcast-intro h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; }
.admin-broadcast-intro p:not(.eyebrow) { max-width: 700px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.admin-broadcast-intro > span { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.admin-broadcast-form { display: grid; gap: 16px; max-width: 760px; }
.academy-activity-admin { padding: 22px; }
.academy-activity-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.academy-activity-filter label { display: grid; min-width: min(100%, 260px); gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.academy-activity-filter select { min-width: 0; }
.academy-activity-table td small { display: block; margin-top: 4px; color: var(--muted); }
.admin-radar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.admin-radar-toolbar .community-follow-tabs { margin: 0; }
.admin-radar-editor, .admin-radar-source-editor { margin: 22px; }
.admin-radar-editor > form { margin: 0; }
.admin-radar-source-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 18px; }
.admin-radar-source-form .wide { grid-column: 1 / -1; }
.admin-radar-table-wrap { margin: 22px; }
.admin-radar-table td:nth-child(2) > strong { color: var(--accent-2); font-size: 20px; }
.admin-radar-table tr.is-editorial-next td { background: rgba(215, 168, 69, .08); }
.admin-radar-table tr.is-editorial-next td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); }
.radar-editorial-next-badge { display: inline-flex; margin: 0 0 7px; padding: 4px 7px; border: 1px solid rgba(215, 168, 69, .65); border-radius: 3px; color: #d7a845; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.admin-radar-editorial-choice { display: flex; grid-column: 1 / -1; align-items: start; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); background: rgba(7, 132, 154, .08); cursor: pointer; }
.admin-radar-editorial-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-2); }
.admin-radar-editorial-choice span { display: grid; gap: 3px; }
.admin-radar-editorial-choice small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.community-admin-actions button.is-active { border-color: rgba(215, 168, 69, .75); color: #d7a845; }
.community-admin-status.is-new, .community-admin-status.is-review { border-color: rgba(215, 168, 69, .55); color: #d7a845; }
.community-admin-status.is-interesting, .community-admin-status.is-planned, .community-admin-status.is-draft-created { border-color: rgba(11, 147, 168, .55); color: var(--accent-2); }
.community-admin-status.is-published { border-color: rgba(40, 166, 136, .5); color: #28a688; }
.community-admin-status.is-discarded { border-color: rgba(214, 91, 86, .5); color: #d65b56; }

/* Topic hubs deliberately reuse existing content objects rather than duplicating them. */
.topics-hero, .topic-hero { background: #072832; color: #f8f5ef; }
.topics-hero {
  padding: 88px 0 72px;
  background-image: linear-gradient(90deg, rgba(3, 27, 35, .96) 0%, rgba(3, 31, 40, .9) 43%, rgba(3, 31, 40, .45) 68%, rgba(3, 31, 40, .28) 100%), url('../images/topics-hubs-hero.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.topics-hero-inner, .topics-index, .topic-hero-inner, .topic-sections, .followed-topics { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topics-hero-inner { max-width: 760px; margin-left: max(24px, calc((100% - 1180px) / 2)); }
.topics-hero h1, .topic-hero h1 { max-width: 820px; margin: 10px 0 20px; font-family: Georgia, serif; font-size: clamp(46px, 6.2vw, 78px); line-height: .98; }
.topics-hero p:not(.eyebrow), .topic-hero-inner > p:not(.eyebrow) { max-width: 720px; margin: 0; color: #c3d3d5; font-size: 19px; line-height: 1.55; }
.topics-index { padding: 70px 0 90px; }
.topics-index .section-title, .topic-section .section-title { align-items: end; display: flex; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.topics-index .section-title h2, .topic-section .section-title h2 { margin: 6px 0 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.topics-index .section-title > p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.55; }
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-card, .topic-content-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.topic-card { display: grid; grid-template-rows: 190px 1fr; min-height: 390px; }
.topic-card > img { width: 100%; height: 100%; object-fit: cover; }
.topic-card > div { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.topic-card.has-image { position: relative; display: flex; min-height: 430px; isolation: isolate; background: #061b22; }
.topic-card.has-image > img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.topic-card.has-image::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 13, 17, .46) 0%, rgba(2, 13, 17, .8) 52%, rgba(2, 13, 17, .96) 100%); content: ''; pointer-events: none; }
.topic-card.has-image > div { width: 100%; justify-content: flex-end; color: #f8f5ef; }
.topic-card.has-image h2, .topic-card.has-image p:not(.eyebrow):not(.topic-tags) { color: #f8f5ef; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.topic-card.has-image .topic-tags { color: #f0be45; }
.topic-card h2, .topic-content-card h3 { margin: 5px 0 10px; font-size: 24px; line-height: 1.12; }
.topic-card p:not(.eyebrow):not(.topic-tags), .topic-content-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }
.topic-card .button { margin-top: auto; }
.topic-tags { margin: 0 0 18px; color: var(--accent-2); font-size: 12px; font-weight: 800; line-height: 1.4; text-transform: uppercase; }
.topic-hero { min-height: 455px; display: flex; align-items: end; padding: 74px 0; background-position: center; background-size: cover; }
.topic-hero-inner { max-width: 790px; margin-left: max(24px, calc((100% - 1180px) / 2)); }
.topic-preview-notice { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 24px; border-bottom: 1px solid rgba(215, 168, 69, .55); background: #e3af38; color: #10242b; font-size: 14px; }
.topic-preview-notice strong { font-weight: 900; }
.topic-preview-notice a { color: inherit; font-weight: 900; text-decoration: underline; }
.topic-follow-area { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.topic-follow-area form { margin: 0; }
.topic-follow-area span { color: #c3d3d5; font-size: 14px; }
.topic-sections { padding: 68px 0 90px; }
.topic-section + .topic-section { margin-top: 68px; }
.topic-featured-section { margin-bottom: 68px; padding: 28px; border: 1px solid rgba(215, 168, 69, .42); background: linear-gradient(135deg, rgba(215, 168, 69, .12), rgba(8, 40, 50, .1)); }
.topic-featured-section .section-title > p { max-width: 360px; margin: 0; color: var(--muted); line-height: 1.5; }
.topic-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topic-content-card { display: grid; grid-template-rows: 168px 1fr; }
.topic-content-card > img { width: 100%; height: 100%; object-fit: cover; }
.topic-content-card > div { padding: 20px; }
.topic-content-card.has-image { position: relative; display: flex; min-height: 410px; isolation: isolate; background: #061b22; }
.topic-content-card.has-image > img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.topic-content-card.has-image::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 13, 17, .42) 0%, rgba(2, 13, 17, .78) 50%, rgba(2, 13, 17, .97) 100%); content: ''; pointer-events: none; }
.topic-content-card.has-image > div { display: flex; width: 100%; flex-direction: column; justify-content: flex-end; color: #f8f5ef; }
.topic-content-card.has-image h3, .topic-content-card.has-image p, .topic-content-card.has-image span, .topic-content-card.has-image a { color: #f8f5ef; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.topic-content-card.has-image span { color: #f0be45; }
.topic-content-card.is-event { min-height: 332px; background: #0b2028; }
.topic-content-card.is-event > div { display: flex; min-height: 100%; flex-direction: column; align-items: flex-start; }
.topic-content-card.is-event.has-image { min-height: 410px; }
.topic-event-date { display: inline-flex; margin: 0 0 10px; padding: 6px 8px; border: 1px solid rgba(240, 190, 69, .58); background: rgba(4, 18, 23, .72); color: #f0be45 !important; font-size: 12px !important; font-weight: 900 !important; letter-spacing: .02em; text-shadow: none !important; }
.topic-content-card.is-event h3 { font-size: 26px; }
.topic-content-card.is-event p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.topic-content-card.is-event .topic-event-location { margin-bottom: 8px; color: #9ccbd3; font-size: 14px; font-weight: 700; -webkit-line-clamp: 1; }
.topic-content-card.is-event a { margin-top: auto; }
.topic-content-card.is-topic-item-hidden { display: none; }
.topic-load-more { display: flex; justify-content: center; margin-top: 24px; }
.topic-content-card span { color: var(--accent-2); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.topic-content-card a { color: var(--accent-2); font-weight: 800; }
.topic-empty { max-width: 760px; padding: 54px 0; }
.topic-empty h2 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: 42px; }
.topic-empty p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.topic-hub-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.topic-hub-links > span { color: var(--muted); font-size: 13px; font-weight: 800; }
.topic-hub-links a { padding: 6px 9px; border: 1px solid rgba(11, 147, 168, .5); border-radius: 4px; color: var(--accent-2); font-size: 13px; font-weight: 800; }
.topic-hub-links a:hover { border-color: var(--accent-2); background: rgba(11, 147, 168, .1); }
.course-hero + .topic-hub-links { width: min(1180px, calc(100% - 48px)); margin: 24px auto; }
.followed-topics { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.followed-topics h2 { margin: 4px 0 0; font-size: 24px; }
.followed-topics > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.followed-topics a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent-2); font-size: 13px; font-weight: 800; }
.followed-topics-list { display: grid !important; grid-template-columns: repeat(2, minmax(220px, 1fr)); width: min(680px, 100%); gap: 10px; }
.followed-topics-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.followed-topics-list a { padding: 0; border: 0; }
.followed-topics-list form { margin: 0; }
.followed-topics-list label { display: grid; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.followed-topics-list select { min-width: 145px; padding: 7px 26px 7px 8px; font-size: 12px; }
.admin-topics-panel, .topic-admin-panel { padding: 22px; }
.admin-topics-toolbar, .admin-topic-relation { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.admin-topics-toolbar { margin-bottom: 20px; }
.admin-topics-toolbar h2 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 34px; }
.admin-topic-list { display: grid; gap: 1px; border: 1px solid var(--line); }
.admin-topic-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--panel); }
.admin-topic-list h3, .admin-topic-list p { margin: 0; }
.admin-topic-list p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.admin-topic-editor, .topic-admin-form, .topic-relation-manager { margin-top: 24px; }
.topic-admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.topic-admin-form .wide, .topic-admin-form footer { grid-column: 1 / -1; }
.topic-admin-form footer { display: flex; justify-content: flex-end; gap: 10px; }
.topic-relation-manager { padding-top: 24px; border-top: 1px solid var(--line); }
.topic-relation-manager > header h3 { margin: 4px 0; }
.topic-relation-manager > header p { margin: 0; color: var(--muted); }
.topic-relation-manager > form { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(260px, 1.55fr) 120px 160px auto; gap: 12px; align-items: end; margin: 20px 0; padding: 16px; border: 1px solid var(--line); }
.topic-relation-manager > form select { min-width: 0; }
.topic-hub-assignment { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.topic-hub-assignment select { min-height: 112px; }
.topic-relation-list { display: grid; gap: 8px; }
.topic-relation-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); }
.topic-relation-list span, .topic-relation-list strong { display: block; }
.topic-relation-list span { color: var(--muted); font-size: 12px; }
.topic-relation-actions, .topic-relation-actions > form { display: flex; align-items: end; gap: 8px; }
.topic-relation-actions label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; }
.topic-relation-actions input[type="number"] { width: 80px; }
.topic-analytics-panel { display: grid; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid var(--line); background: rgba(11, 147, 168, .05); }
.topic-curation-panel { display: grid; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid rgba(215, 168, 69, .42); background: rgba(215, 168, 69, .06); }
.topic-curation-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.topic-curation-panel h3 { margin: 4px 0 0; }
.topic-curation-panel > header > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-curation-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--line); }
.topic-curation-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--panel); }
.topic-curation-position { display: grid; place-items: center; align-self: start; width: 32px; height: 32px; border: 1px solid var(--accent-2); color: var(--accent-2); font-size: 14px; font-weight: 850; }
.topic-curation-list small, .topic-curation-list strong { display: block; }
.topic-curation-list small { color: var(--muted); font-size: 12px; }
.topic-curation-list strong { margin-top: 4px; }
.topic-curation-list p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.topic-curation-list footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.topic-relation-curation-note { display: block; max-width: 580px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.topic-analytics-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.topic-analytics-panel h3 { margin: 4px 0 0; }
.topic-analytics-panel > header > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-analytics-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-analytics-metrics article { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--line); background: var(--panel); }
.topic-analytics-metrics span, .topic-analytics-metrics small { color: var(--muted); font-size: 12px; }
.topic-analytics-metrics strong { font-size: 28px; }
.topic-analytics-top-content { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.topic-analytics-top-content li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.topic-analytics-top-content li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-suggestions-panel { display: grid; gap: 16px; margin-top: 24px; padding: 20px; border: 1px solid rgba(215, 168, 69, .42); background: rgba(215, 168, 69, .06); }
.topic-suggestions-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.topic-suggestions-panel h3 { margin: 4px 0 0; }
.topic-suggestions-panel > header > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-suggestion-list { display: grid; gap: 8px; }
.topic-suggestion-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); background: var(--panel); }
.topic-suggestion-list article > div { display: grid; gap: 4px; min-width: 0; }
.topic-suggestion-list span { color: var(--muted); font-size: 12px; }
.topic-suggestion-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .innovation-lab-hero, .innovation-lab-intro, .innovation-lab-inquiry, .innovation-lab-detail-grid { grid-template-columns: 1fr; }
  .innovation-lab-hero-inner, .innovation-lab-explainer .section-title, .innovation-lab-listing .section-title, .innovation-lab-inquiry-cta, .innovation-lab-inquiry-dialog-body { grid-template-columns: 1fr; }
  .innovation-lab-inquiry-cta { align-items: start; flex-direction: column; }
  .innovation-lab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .innovation-lab-steps li:nth-child(2) { border-right: 0; }
  .innovation-lab-steps li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .innovation-lab-inquiry-dialog-body aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .innovation-lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .innovation-score-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .innovation-lab-hero-visual { min-height: 320px; }
  .innovation-lab-workspace-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .innovation-lab-partner-manager { grid-template-columns: 1fr; }
  .innovation-lab-client-grid, .innovation-lab-client-admin-grid { grid-template-columns: 1fr; }
  .innovation-lab-question-admin-list article { grid-template-columns: 1fr; }
  .innovation-lab-milestone-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-grid, .topic-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-index .section-title, .topic-section .section-title, .followed-topics { align-items: flex-start; flex-direction: column; }
  .followed-topics > div:last-child { justify-content: flex-start; }
  .followed-topics-list { grid-template-columns: 1fr; }
  .topic-relation-manager > form { grid-template-columns: 1fr 1fr; }
  .topic-analytics-panel > header { align-items: flex-start; flex-direction: column; }
  .topic-curation-panel > header { align-items: flex-start; flex-direction: column; }
  .topic-suggestions-panel > header { align-items: flex-start; flex-direction: column; }
  .topic-suggestion-list article { align-items: flex-start; flex-direction: column; }
  .topic-relation-list article { align-items: flex-start; flex-direction: column; }
  .topic-relation-actions, .topic-relation-actions > form { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .editorial-board { margin: 12px; padding: 14px; }
  .editorial-board-header { align-items: stretch; flex-direction: column; }
  .editorial-board-controls { justify-content: space-between; }
  .editorial-board-controls input[type="month"] { width: 146px; }
  .innovation-lab-hero-visual { min-height: 270px; }
  .innovation-lab-hero-diagram { gap: 8px; padding: 18px; }
  .innovation-lab-hero-diagram span { width: 76px; height: 76px; font-size: 11px; }
  .innovation-lab-hero-diagram i { width: 18px; }
  .innovation-lab-hero-visual .innovation-lab-metrics { grid-template-columns: 1fr; }
  .innovation-lab-workspace-summary, .innovation-lab-partner-create, .innovation-lab-result-form { grid-template-columns: 1fr; }
  .innovation-lab-admin-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .innovation-lab-admin-tabs a { white-space: nowrap; }
  .innovation-lab-partner-links article, .innovation-lab-result-admin-list article { align-items: flex-start; flex-direction: column; }
  .admin-user-modal { padding: 0; }
  .admin-user-dialog { min-height: 100vh; border: 0; }
  .admin-user-dialog > header, .admin-user-dialog form { padding-left: 14px; padding-right: 14px; }
  .admin-user-dialog form { grid-template-columns: 1fr; }
  .admin-user-dialog .wide, .admin-user-dialog footer { grid-column: auto; }
  .admin-user-toolbar, .admin-user-toolbar-actions { align-items: stretch; flex-direction: column; }
  .admin-user-sort select { width: 100%; min-width: 0; }
  .admin-book-modal { padding: 0; }
  .admin-book-dialog { min-height: 100vh; border: 0; }
  .admin-book-dialog > header, .admin-book-dialog > form { padding-left: 14px; padding-right: 14px; }
  .admin-book-dialog > form { grid-template-columns: 1fr; }
  .admin-book-dialog .wide, .admin-book-dialog footer { grid-column: auto; }
  .admin-book-toolbar, .admin-book-toolbar-actions, .admin-book-panel > header, .admin-book-page-summary { align-items: stretch; flex-direction: column; }
  .admin-book-toolbar-actions .button, .admin-book-panel > header .button { width: 100%; }
  .admin-curriculum-modal { padding: 0; }
  .admin-curriculum-dialog { min-height: 100vh; border: 0; }
  .admin-curriculum-dialog > header, .admin-curriculum-dialog > form { padding-left: 14px; padding-right: 14px; }
  .admin-curriculum-dialog > form { grid-template-columns: 1fr; }
  .admin-curriculum-dialog .wide, .admin-curriculum-dialog footer { grid-column: auto; }
  .admin-curriculum-toolbar, .admin-curriculum-toolbar-actions, .admin-curriculum-course > header, .admin-curriculum-module > header, .admin-curriculum-lessons li { align-items: stretch; flex-direction: column; }
  .admin-curriculum-toolbar-actions .button, .admin-curriculum-select select { width: 100%; }
  .admin-curriculum-select { width: 100%; }
  .admin-curriculum-actions { justify-content: flex-start; }
  .admin-curriculum-actions a, .admin-curriculum-actions button { flex: 1; text-align: center; }
  .ad-banner-manager-header { align-items: flex-start; }
  .user-menu { width: 100%; }
  .user-menu > div { position: static; width: 100%; margin-top: 8px; }
  .community-author-row form { width: 100%; margin-left: 38px; }
  .community-admin-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px; }
  .community-admin-panel { margin: 12px; padding: 14px; }
  .community-admin-panel-header { align-items: stretch; flex-direction: column; }
  .community-admin-panel-header .button, .community-admin-search { width: 100%; }
  .community-group-modal { padding: 0; }
  .community-group-dialog { min-height: 100vh; border: 0; }
  .community-group-dialog > header, .community-group-dialog form { padding-left: 14px; padding-right: 14px; }
  .community-group-dialog form { grid-template-columns: 1fr; }
  .community-group-dialog .wide, .community-group-dialog footer { grid-column: auto; }
  .community-follow-button { width: 100%; }
  .community-follow-tabs, .community-follow-stats { flex-direction: column; }
  .community-follow-stats { width: calc(100% - 28px); }
  .innovation-lab-hero { min-height: 0; padding: 52px 20px; }
  .innovation-lab-hero { padding: 0; }
  .innovation-lab-hero-inner, .innovation-lab-explainer, .innovation-lab-intro, .innovation-lab-listing, .innovation-lab-inquiry-cta { width: calc(100% - 40px); }
  .innovation-lab-hero-inner { min-height: 0; gap: 32px; padding: 52px 0; }
  .innovation-lab-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .innovation-lab-hero-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .innovation-lab-kpi-fallback { max-width: calc(100% - 28px); margin: 0 14px 14px !important; padding: 16px; }
  .innovation-lab-explainer { padding: 58px 0; }
  .innovation-lab-explainer .section-title, .innovation-lab-listing .section-title { gap: 18px; margin-bottom: 28px; }
  .innovation-lab-steps { grid-template-columns: 1fr; }
  .innovation-lab-steps li, .innovation-lab-steps li + li { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .innovation-lab-steps li:last-child { border-bottom: 0; }
  .innovation-lab-empty { align-items: start; flex-direction: column; }
  .innovation-lab-inquiry-cta { padding: 56px 0 64px; }
  .innovation-lab-inquiry-modal { padding: 0; }
  .innovation-lab-inquiry-dialog { min-height: 100vh; max-height: none; border: 0; }
  .innovation-lab-inquiry-dialog > header, .innovation-lab-inquiry-dialog-body aside, .innovation-lab-inquiry-dialog-body form { padding-left: 20px; padding-right: 20px; }
  .innovation-lab-inquiry-dialog-body form { grid-template-columns: 1fr; }
  .innovation-lab-inquiry-dialog-body label.wide, .innovation-lab-inquiry-dialog-body footer { grid-column: auto; }
  .innovation-lab-intro, .innovation-lab-listing, .innovation-lab-inquiry, .innovation-lab-detail-grid, .innovation-lab-links, .innovation-lab-evaluation, .innovation-lab-admin-score, .innovation-lab-public-score, .innovation-lab-detail-head, .innovation-lab-client-head, .innovation-lab-client-grid, .innovation-lab-client-results { width: calc(100% - 28px); }
  .innovation-lab-grid, .innovation-lab-detail-meta, .innovation-score-fields { grid-template-columns: 1fr; }
  .innovation-lab-milestone-form { grid-template-columns: 1fr; }
  .innovation-lab-client-milestones li { grid-template-columns: 1fr; }
  .innovation-lab-client-panel, .innovation-lab-client-results { padding: 18px; }
  .innovation-lab-client-grant-list li, .innovation-lab-milestone-admin-list article { align-items: flex-start; flex-direction: column; }
  .innovation-score-summary { grid-template-columns: 1fr; }
  .innovation-lab-card-meta { flex-direction: column; }
  .innovation-lab-evaluation, .innovation-lab-admin-score { padding: 18px; }
  .innovation-lab-chat-callout, .chat-inbox-layout, .chat-thread { width: calc(100% - 28px); }
  .innovation-lab-chat-callout, .chat-inbox-layout { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .chat-thread-header, .chat-message-list, .chat-message-form { padding-left: 16px; padding-right: 16px; }
  .chat-message-form { grid-template-columns: 1fr; }
  .chat-message { max-width: 92%; }
  .chat-compose-modal { padding: 0; }
  .chat-compose-dialog { min-height: 100vh; border: 0; }
  .chat-compose-dialog > header, .chat-compose-dialog form { padding-left: 16px; padding-right: 16px; }
  .admin-broadcast-panel { padding: 14px; }
  .admin-broadcast-intro { align-items: stretch; flex-direction: column; }
  .admin-inline-review { align-items: stretch; flex-direction: column; min-width: 220px; }
  .admin-radar-toolbar { align-items: stretch; flex-direction: column; margin: 0 12px; padding: 14px 0 0; }
  .admin-radar-toolbar .button { width: 100%; }
  .admin-radar-editor, .admin-radar-source-editor, .admin-radar-table-wrap { margin: 12px; }
  .admin-radar-source-form { grid-template-columns: 1fr; }
  .admin-radar-source-form .wide { grid-column: auto; }
  .academy-activity-admin { padding: 14px; }
  .academy-activity-filter { align-items: stretch; flex-direction: column; }
  .academy-activity-filter label, .academy-activity-filter .button { width: 100%; }
  .topics-hero, .topic-hero { padding: 54px 0; }
  .topics-hero { background-position: 58% center; }
  .topics-hero-inner, .topic-hero-inner, .topics-index, .topic-sections, .followed-topics { width: calc(100% - 32px); margin-left: auto; }
  .topics-hero h1, .topic-hero h1 { font-size: clamp(42px, 14vw, 58px); }
  .topics-index { padding: 52px 0 64px; }
  .topics-index .section-title, .topic-section .section-title { margin-bottom: 22px; }
  .topics-grid, .topic-content-grid { grid-template-columns: 1fr; }
  .topic-featured-grid, .topic-analytics-metrics { grid-template-columns: 1fr; }
  .topic-featured-section { padding: 20px; }
  .topic-card { grid-template-rows: 185px 1fr; min-height: 0; }
  .topic-section + .topic-section { margin-top: 52px; }
  .topic-content-card { grid-template-rows: 180px 1fr; }
  .topic-follow-area { align-items: flex-start; flex-direction: column; }
  .topic-preview-notice { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
  .followed-topics { padding: 18px 0; }
  .admin-topics-toolbar, .admin-topic-list article, .admin-topic-relations article { align-items: stretch; flex-direction: column; }
  .topic-admin-form { grid-template-columns: 1fr; }
  .topic-admin-form .wide, .topic-admin-form footer { grid-column: auto; }
  .topic-admin-form footer { justify-content: stretch; flex-direction: column; }
  .topic-admin-form footer .button { width: 100%; }
  .topic-relation-manager > form { grid-template-columns: 1fr; }
}

/* Startseite 2.0: redaktionell kuratiertes Portal */
.homepage-v2 { background: #07151d; color: #f8f5ef; }
.homepage-v2 .home-shell { width: min(1280px, calc(100% - 64px)); }
.home-v2-trending { overflow: hidden; border-bottom: 1px solid rgba(218, 231, 235, .16); background: #0a202a; }
.home-v2-trending .home-shell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; min-height: 56px; }
.home-v2-trending-label { flex: 0 0 auto; color: #e6b53d; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.home-v2-trending nav { min-width: 0; padding: 8px 0; }
.home-v2-trending-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.home-v2-trending-track { display: flex; width: max-content; animation: home-v2-trending-scroll 56s linear infinite; }
.home-v2-trending-track.is-static { animation: none; }
.home-v2-trending-set { display: flex; flex: 0 0 auto; gap: 8px; padding-right: 8px; }
.home-v2-trending a { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 32px; padding: 4px 11px; border: 1px solid rgba(218,231,235,.25); border-radius: 6px; color: #dbe7eb; font-size: 14px; font-weight: 700; }
.home-v2-trending a:hover { border-color: #e6b53d; color: #fff; }
.home-v2-trending:hover .home-v2-trending-track, .home-v2-trending:focus-within .home-v2-trending-track { animation-play-state: paused; }
@keyframes home-v2-trending-scroll { to { transform: translateX(-50%); } }
.home-v2-lead { padding: 42px 0 34px; background: #092530; }
.home-v2-lead-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .75fr); gap: 22px; }
.home-v2-top-story { position: relative; display: flex; min-height: 472px; align-items: end; overflow: hidden; border: 1px solid rgba(162, 208, 217, .3); border-radius: 8px; background: #102f3a center / cover no-repeat; }
.home-v2-top-story::before, .home-v2-content-card.has-image::before, .home-v2-topic-card.has-image::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 13, 18, .1), rgba(1, 13, 18, .88)); content: ""; }
.home-v2-story-content { position: relative; z-index: 1; width: min(720px, 100%); padding: 40px; }
.home-v2-story-content .eyebrow, .home-v2-section .eyebrow { margin: 0 0 8px; color: #e6b53d; font-size: 14px; font-weight: 850; text-transform: uppercase; }
.home-v2-story-content h1 { max-width: 16ch; margin: 0; color: #fff; font-family: var(--font-serif); font-size: 58px; font-weight: 500; line-height: 1.01; }
.home-v2-story-content p:not(.eyebrow) { max-width: 62ch; margin: 18px 0 24px; color: #e0ebed; font-size: 18px; line-height: 1.5; }
.home-v2-current { display: grid; align-content: start; gap: 0; border: 1px solid rgba(162, 208, 217, .28); border-radius: 8px; background: #0c1e26; }
.home-v2-section-head { margin-bottom: 22px; }
.home-v2-current .home-v2-section-head { padding: 26px 26px 12px; margin: 0; }
.home-v2-section-head h2 { margin: 0; color: #fff; font-family: var(--font-serif); font-size: 36px; font-weight: 500; line-height: 1.08; }
.home-v2-section-head.split { display: flex; gap: 22px; align-items: end; justify-content: space-between; }
.home-v2-section-head.split > a, .home-v2-all-link { color: #e6b53d; font-weight: 800; white-space: nowrap; }
.home-v2-current > a { display: grid; gap: 7px; padding: 18px 26px; border-top: 1px solid rgba(218, 231, 235, .14); }
.home-v2-current > a:hover { background: rgba(93, 210, 217, .08); }
.home-v2-current span, .home-v2-content-card span, .home-v2-topic-card > span { color: #e6b53d; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.home-v2-current strong { color: #fff; font-size: 17px; line-height: 1.28; }
.home-v2-current small { color: #aebfc5; }
.home-v2-growth { padding: 42px 0; background: #e5b63d; color: #10212b; }
.home-v2-growth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .6fr); gap: 42px; align-items: center; }
.home-v2-growth .eyebrow { margin: 0 0 8px; color: #705006; font-size: 13px; font-weight: 850; text-transform: uppercase; }
.home-v2-growth h2 { max-width: 21ch; margin: 0; color: #10212b; font-family: var(--font-serif); font-size: 42px; font-weight: 500; line-height: 1.08; }
.home-v2-growth > .home-shell > div > p:not(.eyebrow) { max-width: 62ch; margin: 16px 0 0; color: #26363d; font-size: 17px; line-height: 1.5; }
.home-v2-growth-actions { display: grid; justify-items: start; gap: 16px; }
.home-v2-growth-actions .button { background: #10212b; color: #fff; }
.home-v2-growth-actions p { display: grid; gap: 7px; margin: 0; color: #26363d; font-size: 14px; font-weight: 700; }
.home-v2-section { padding: 68px 0; }
.home-v2-topics { background: #07151d; }
.home-v2-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-v2-topic-card { position: relative; display: grid; min-height: 192px; align-content: end; gap: 8px; padding: 20px; overflow: hidden; border: 1px solid rgba(218,231,235,.18); border-radius: 8px; background: #0d2731 center / cover no-repeat; }
.home-v2-topic-card > * { position: relative; z-index: 1; }
.home-v2-topic-card strong { color: #fff; font-size: 23px; line-height: 1.1; }
.home-v2-topic-card small { color: #d5e2e4; line-height: 1.4; }
.home-v2-community { background: #0c2028; }
.home-v2-content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-v2-content-card { position: relative; display: flex; min-height: 330px; align-items: end; overflow: hidden; border: 1px solid rgba(218,231,235,.18); border-radius: 8px; background: #102028 center / cover no-repeat; }
.home-v2-content-card > div { position: relative; z-index: 1; padding: 24px; }
.home-v2-content-card h3 { margin: 8px 0 12px; color: #fff; font-size: 25px; line-height: 1.08; }
.home-v2-content-card p { margin: 0 0 18px; color: #d4e0e3; line-height: 1.48; }
.home-v2-content-card a { color: #e6b53d; font-weight: 850; }
.home-v2-network { background: #f1f7f7; color: #10212b; }
.home-v2-network .home-v2-section-head h2 { color: #10212b; }
.home-v2-network-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-v2-network-grid > div { padding: 26px; border-left: 4px solid #16a1b3; background: #fff; }
.home-v2-network-grid h3 { margin: 0 0 12px; color: #10212b; font-size: 20px; }
.home-v2-network-grid a:not(.home-v2-all-link) { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid #dce8ea; }
.home-v2-network-grid a span { color: #087f94; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.home-v2-network-grid a strong { color: #10212b; }
.home-v2-network-grid a small { color: #566972; line-height: 1.35; }
.home-v2-network-grid .home-v2-all-link { display: inline-block; margin-top: 15px; }
.home-v2-learning { background: #07151d; }
.home-v2-content-grid.compact .home-v2-content-card { min-height: 270px; }
.home-v2-about { background: #e5b63d; color: #10212b; }
.home-v2-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 54px; align-items: start; }
.home-v2-about .eyebrow { color: #10212b; }
.home-v2-about h2 { margin: 0; color: #10212b; font-family: var(--font-serif); font-size: 48px; font-weight: 500; line-height: 1.05; }
.home-v2-about p:not(.eyebrow) { max-width: 60ch; margin: 18px 0 24px; color: #26363d; font-size: 18px; line-height: 1.55; }
.home-v2-about .button { background: #10212b; color: #fff; }
.home-v2-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(16,33,43,.26); border-left: 1px solid rgba(16,33,43,.26); }
.home-v2-capabilities article { display: grid; gap: 5px; min-height: 114px; padding: 18px; border-right: 1px solid rgba(16,33,43,.26); border-bottom: 1px solid rgba(16,33,43,.26); }
.home-v2-capabilities strong { font-size: 18px; }
.home-v2-capabilities span { color: #374850; line-height: 1.4; }
.site-header .theme-toggle { display: inline-grid; flex: 0 0 40px; width: 40px !important; min-width: 40px; height: 40px !important; min-height: 40px; padding: 0; place-items: center; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50% !important; appearance: none; background: transparent; color: inherit; line-height: 1; cursor: pointer; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.theme-toggle-moon { display: none; }
.theme-light .theme-toggle-sun { display: none; }
.theme-light .theme-toggle-moon { display: block; }
.home-v2-preview-notice { padding: 10px 0; background: #b3312c; color: #fff; font-weight: 800; }
.growth-funnel-head { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin: 0 0 20px; }
.growth-funnel-head h2 { margin: 4px 0; font-family: var(--font-serif); font-size: 34px; font-weight: 500; }
.growth-funnel-head p { margin: 0; color: var(--muted); }
.growth-funnel-head nav { display: flex; gap: 8px; }
.growth-funnel-head nav a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 5px; font-weight: 800; }
.growth-funnel-head nav a.is-active { border-color: var(--accent); background: var(--accent); color: #10212b; }
.growth-funnel-kpis { margin-bottom: 18px; }
.growth-funnel-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 18px; }
.growth-funnel-list, .growth-funnel-sources { padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.growth-funnel-list h2, .growth-funnel-sources h2 { margin: 0 0 15px; font-size: 20px; }
.growth-funnel-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.growth-funnel-list article:first-of-type, .growth-funnel-sources article:first-of-type { border-top: 0; }
.growth-funnel-list article > div { display: grid; gap: 7px; }
.growth-funnel-list article > div > strong { font-size: 15px; }
.growth-funnel-list article span { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(112, 136, 145, .2); }
.growth-funnel-list article span b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: #179aad; }
.growth-funnel-list aside { display: grid; justify-items: end; gap: 2px; }
.growth-funnel-list aside small, .growth-funnel-sources span { color: var(--muted); }
.growth-funnel-sources article { display: flex; gap: 12px; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--border); }
.admin-homepage-curation { margin-top: 20px; }
.admin-homepage-slot-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.admin-homepage-slot-form .wide { grid-column: span 2; }
.admin-homepage-slot-list { display: grid; gap: 8px; margin-top: 20px; }
.admin-homepage-slot-list article { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid rgba(126,150,158,.26); }
.admin-homepage-slot-list article div { display: grid; gap: 3px; }
.admin-homepage-slot-list article span, .admin-homepage-slot-list article small { color: #66777f; }
@media (max-width: 900px) {
  .homepage-v2 .home-shell { width: calc(100% - 32px); }
  .home-v2-lead { padding-top: 24px; }
  .home-v2-lead-grid, .home-v2-growth-grid, .home-v2-about-grid, .home-v2-network-grid { grid-template-columns: 1fr; }
  .growth-funnel-head, .growth-funnel-layout { grid-template-columns: 1fr; display: grid; align-items: start; }
  .home-v2-top-story { min-height: 410px; }
  .home-v2-story-content { padding: 26px; }
  .home-v2-story-content h1 { font-size: 44px; }
  .home-v2-topic-grid, .home-v2-content-grid { grid-template-columns: 1fr; }
  .home-v2-section { padding: 46px 0; }
  .home-v2-section-head h2, .home-v2-about h2 { font-size: 36px; }
  .home-v2-section-head.split { align-items: start; flex-direction: column; }
  .home-v2-about-grid { gap: 30px; }
  .admin-homepage-slot-form { grid-template-columns: 1fr; }
  .admin-homepage-slot-form .wide { grid-column: auto; }
}

body.theme-light .homepage-v2 { background: #f4f7f6; color: #132630; }
body.theme-light .home-v2-trending { border-bottom-color: #c7d8da; background: #e7f0ef; }
body.theme-light .home-v2-trending > .home-shell > span, body.theme-light .home-v2-trending a:hover, body.theme-light .home-v2-section-head.split > a, body.theme-light .home-v2-all-link { color: #8a5b0e; }
body.theme-light .home-v2-trending a { border-color: #a8bec2; color: #1d4149; }
body.theme-light .home-v2-lead { background: #dff0ef; }
body.theme-light .home-v2-top-story { border-color: #83aeb4; background-color: #254d56; }
body.theme-light .home-v2-current { border-color: #bed3d5; background: #fff; }
body.theme-light .home-v2-current .home-v2-section-head { background: #f4f8f7; }
body.theme-light .home-v2-current .home-v2-section-head h2 { color: #132630; }
body.theme-light .home-v2-current > a { border-top-color: #dbe7e7; }
body.theme-light .home-v2-current > a:hover { background: #eef7f5; }
body.theme-light .home-v2-current strong { color: #18343d; }
body.theme-light .home-v2-current small { color: #5e7378; }
body.theme-light .home-v2-topics, body.theme-light .home-v2-learning { background: #f7faf9; }
body.theme-light .home-v2-section-head h2 { color: #132630; }
body.theme-light .home-v2-topic-card { border-color: #c2d5d5; background-color: #2e5960; }
body.theme-light .home-v2-community { background: #e7f0ef; }
body.theme-light .home-v2-content-card { border-color: #b7cccf; background-color: #31555c; }
body.theme-light .site-header { background: rgba(247, 250, 249, .94); border-bottom-color: #c8d8d9; }
body.theme-light .site-header .brand-domain, body.theme-light .site-header .nav, body.theme-light .site-header .nav a, body.theme-light .site-header .user-chip, body.theme-light .site-header .nav-toggle { color: #18343d; }
body.theme-light .site-header .brand-copy small, body.theme-light .site-header .nav a:not(.button) { color: #536c72; }
body.theme-light .site-header .nav a.is-active { color: #10212b; }
body.theme-light .site-header .admin-menu > div, body.theme-light .site-header .user-menu > div { background: #fff; border-color: #c8d8d9; }
body.theme-light .media-picker-actions .button.ghost { border-color: #71868a; background: #fffdf8; color: #18343d; }
body.theme-light .media-picker-actions .button.ghost:hover, body.theme-light .media-picker-actions .button.ghost:focus-visible { border-color: #315b63; background: #edf5f3; color: #10212b; }
body.theme-light .footer { background: #10212b; }

/* Job board */
.jobs-hero, .job-detail-head, .employer-profile-head { position: relative; isolation: isolate; padding: 78px max(24px, calc((100% - 1240px) / 2)); color: #f8f5ed; }
.jobs-hero, .job-detail-head { background-color: #0a2932; background-image: linear-gradient(90deg, rgba(5, 22, 28, .96) 0%, rgba(7, 32, 39, .9) 38%, rgba(7, 32, 39, .42) 69%, rgba(7, 32, 39, .2) 100%), url('../images/jobs-hero-careers.png'); background-position: center; background-size: cover; }
.employer-profile-head { background: #0a2932; }
.jobs-hero > div, .job-detail-head-content, .employer-profile-head { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.jobs-hero h1, .job-detail-head h1, .employer-profile-head h1 { max-width: 15ch; margin: 0; overflow-wrap: anywhere; color: inherit; font-family: var(--font-serif); font-size: 72px; font-weight: 500; line-height: 1.04; }
.jobs-hero > div > p:not(.eyebrow), .job-detail-head .lead, .employer-profile-head p { max-width: 680px; color: #cfddde; font-size: 19px; line-height: 1.55; }
.jobs-search { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(180px, 1fr) minmax(150px, .8fr) auto; gap: 12px; align-items: end; max-width: 1100px; margin-top: 34px; padding: 16px; border: 1px solid rgba(222, 237, 236, .26); border-radius: 8px; background: rgba(3, 17, 22, .67); backdrop-filter: blur(5px); }
.jobs-search label { display: grid; gap: 6px; color: #e2ebea; font-size: 13px; font-weight: 800; }
.jobs-search input, .jobs-search select { min-height: 46px; border: 1px solid rgba(222, 237, 236, .42); background: #fff; color: #142c32; }
.jobs-search .button { min-height: 46px; white-space: nowrap; }
.jobs-hero .hero-actions, .job-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.job-detail-actions form { margin: 0; }
.jobs-layout, .job-detail-layout { display: grid; grid-template-columns: minmax(210px, .25fr) minmax(0, 1fr); gap: 42px; width: min(1240px, calc(100% - 48px)); margin: 58px auto; }
.jobs-filters { align-self: start; padding: 20px; border: 1px solid rgba(149, 175, 177, .28); border-radius: 8px; background: #10262e; }
.jobs-filters h2 { margin: 0 0 12px; color: #fff; font-size: 18px; }
.jobs-filters select { width: 100%; min-height: 44px; }
.jobs-filters p { margin: 16px 0 0; }
.jobs-filters a, .job-card > a, .job-detail-side > a, .back-link { color: #dfb445; font-weight: 800; }
.back-link { display: inline-block; margin-bottom: 26px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 24px; }
.section-title h2 { margin: 0; color: #f8f5ed; font-family: var(--font-serif); font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.03; }
.section-title > p { max-width: 360px; margin: 0; color: #b9c9cb; line-height: 1.5; }
.job-card-grid, .employer-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job-card { display: flex; min-height: 270px; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px; border: 1px solid rgba(151, 176, 179, .28); border-radius: 8px; background: #10242c; }
.job-card.is-featured { border-color: rgba(222, 177, 62, .68); background: #132b32; }
.job-card span, .job-card small { color: #e2b33d; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.job-card h3 { margin: 10px 0 8px; overflow-wrap: anywhere; color: #fff; font-size: 22px; line-height: 1.16; }
.job-card h3 a { color: inherit; }
.job-card p { margin: 10px 0; color: #c0ccce; line-height: 1.47; }
.job-card .job-card-employer { color: #f3f6f3; font-weight: 800; }
.job-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.job-card-actions form { margin: 0; }
.job-card-delete { padding: 0; border: 0; background: transparent; color: #df766d; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.job-card-delete:hover, .job-card-delete:focus-visible { color: #ff9b91; text-decoration: underline; }
.network-empty { padding: 22px; border: 1px dashed rgba(170, 193, 195, .36); color: #bdcccd; }
.jobs-featured { width: min(1240px, calc(100% - 48px)); margin: 0 auto 72px; padding-top: 14px; }
.employer-card { display: flex; min-height: 118px; align-items: center; gap: 16px; padding: 20px; border: 1px solid rgba(151, 176, 179, .28); border-radius: 8px; background: #0d2027; }
.employer-card img, .employer-card b { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: #ecf3ef; color: #17333a; object-fit: contain; }
.employer-card div { display: grid; gap: 5px; }
.employer-card strong { color: #fff; }
.employer-card span { color: #b7c6c8; font-size: 14px; }
.job-detail-layout, .employer-detail { grid-template-columns: minmax(0, 1fr) minmax(250px, .34fr); align-items: start; }
.job-detail-content { color: #d5dfdf; font-size: 18px; line-height: 1.65; }
.job-detail-content > p:first-child { color: #f4f8f5; font-size: 22px; line-height: 1.48; }
.job-detail-content h2 { margin: 42px 0 12px; color: #f7f5ef; font-family: var(--font-serif); font-size: 36px; font-weight: 500; }
.job-detail-side, .employer-detail aside { padding: 24px; border-left: 3px solid #dfb445; background: #10242c; }
.job-detail-side h2, .employer-detail aside h2 { margin-top: 0; overflow-wrap: anywhere; color: #fff; }
.job-detail-side img { width: 100%; max-height: 130px; margin: 0 0 16px; object-fit: contain; object-position: left; }
.job-detail-side p, .employer-detail aside p { color: #c6d2d3; line-height: 1.45; }
.job-topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.job-topic-links a { padding: 5px 8px; border: 1px solid rgba(226, 179, 61, .58); color: #f2cd71; font-size: 13px; }
.employer-profile-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 34px; align-items: center; }
.employer-profile-head > img { width: 150px; height: 150px; padding: 14px; border-radius: 8px; background: #f4f8f5; object-fit: contain; }
.employer-detail { color: #cbd7d7; line-height: 1.62; }
.career-page, .career-profile-form { width: min(850px, calc(100% - 48px)); margin: 64px auto; }
.career-page h1, .career-profile-form h1 { margin: 0; color: #f7f5ef; font-family: var(--font-serif); font-size: clamp(40px, 5vw, 62px); font-weight: 500; }
.career-page > p { color: #c6d2d3; font-size: 18px; line-height: 1.55; }
.career-form, .career-profile-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; padding: 28px; border: 1px solid rgba(151, 176, 179, .28); border-radius: 8px; background: #10242c; }
.career-form label, .career-profile-form label { display: grid; gap: 7px; color: #e8f0ee; font-weight: 800; }
.career-form input, .career-form select, .career-form textarea, .career-profile-form input, .career-profile-form select, .career-profile-form textarea { width: 100%; }
.career-form .wide, .career-profile-form .wide { grid-column: 1 / -1; }
.career-form .checkbox, .career-profile-form .check { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; }
.career-form .checkbox input[type="checkbox"], .career-profile-form .check input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; margin: 2px 0 0; }
.career-form .checkbox span, .career-profile-form .check span { min-width: 0; overflow-wrap: anywhere; }
.job-employer-page { width: min(1240px, calc(100% - 48px)); margin: 68px auto; }
.job-employer-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 70px; align-items: end; padding-bottom: 52px; border-bottom: 1px solid rgba(151, 176, 179, .28); }
.job-employer-intro h1 { max-width: 15ch; margin: 0; color: #f7f5ef; font-family: var(--font-serif); font-size: clamp(46px, 5.3vw, 76px); font-weight: 500; line-height: 1.02; }
.job-employer-intro p { max-width: 650px; color: #c6d3d4; font-size: 19px; line-height: 1.55; }
.job-employer-intro aside { display: grid; gap: 10px; padding: 24px; border-left: 3px solid #dfb445; background: #10242c; }
.job-employer-intro aside strong { color: #fff; font-size: 20px; }
.job-employer-intro aside span { color: #c3d1d2; line-height: 1.5; }
.job-employer-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 42px 0; }
.job-employer-process article { padding: 0 10px 0 0; border-top: 1px solid rgba(151, 176, 179, .38); }
.job-employer-process span { display: block; margin-top: 12px; color: #dfb445; font-weight: 850; }
.job-employer-process h2 { margin: 12px 0 8px; color: #f7f5ef; font-size: 23px; }
.job-employer-process p { margin: 0; color: #b9c9cb; line-height: 1.5; }
.job-employer-form-wrap { display: grid; grid-template-columns: minmax(250px, .55fr) minmax(0, 1fr); gap: 48px; padding: 34px; border: 1px solid rgba(151, 176, 179, .3); border-radius: 8px; background: #10242c; }
.job-employer-form-wrap h2 { margin: 0; color: #f7f5ef; font-family: var(--font-serif); font-size: 38px; font-weight: 500; line-height: 1.08; }
.job-employer-form-wrap > div > p:not(.eyebrow) { color: #c1d0d1; line-height: 1.5; }
.job-employer-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-employer-form label { display: grid; gap: 7px; color: #e8f0ee; font-weight: 800; }
.job-employer-form .wide { grid-column: 1 / -1; }
.job-employer-form input, .job-employer-form select, .job-employer-form textarea { width: 100%; }
.job-inquiry-admin { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(126,150,158,.26); }
.job-inquiry-admin div { display: grid; gap: 5px; }
.job-inquiry-admin span, .job-inquiry-admin p { color: #66777f; }
.job-inquiry-admin p { margin: 4px 0 0; line-height: 1.42; }
.job-inquiry-admin form { display: grid; gap: 8px; }
.jobs-admin-toolbar, .jobs-admin-toolbar-actions, .jobs-admin-stats { display: flex; align-items: center; gap: 14px; }
.jobs-admin-toolbar { justify-content: space-between; margin: 6px 0 18px; }
.jobs-admin-toolbar h2, .jobs-admin-toolbar p { margin: 0; }
.jobs-admin-toolbar > div:first-child > p:last-child { max-width: 720px; margin-top: 6px; color: var(--muted); }
.jobs-admin-toolbar-actions, .jobs-admin-stats { flex-wrap: wrap; justify-content: flex-end; }
.jobs-admin-stats { margin-bottom: 18px; justify-content: flex-start; }
.jobs-admin-stats span { min-width: 142px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--muted); font-size: 13px; }
.jobs-admin-stats strong { margin-right: 6px; color: var(--text); font-size: 21px; }
.jobs-admin-grid { display: none; }
.jobs-admin-grid.is-modal-open { position: fixed; inset: 0; z-index: 111; display: grid; grid-template-columns: minmax(0, 920px); place-content: center; padding: clamp(12px, 3vw, 36px); overflow: auto; background: rgba(7, 15, 19, .78); }
.jobs-admin-grid.is-modal-open > form { display: none; max-height: calc(100vh - 72px); overflow: auto; padding: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 28px 90px rgba(0, 0, 0, .48); }
.jobs-admin-grid.is-modal-open.job-modal-job > form:nth-of-type(2), .jobs-admin-grid.is-modal-open.job-modal-employer > form:nth-of-type(1) { display: grid; }
.jobs-admin-modal-close { position: fixed; z-index: 1; top: clamp(22px, 5vw, 52px); right: clamp(22px, 5vw, 52px); display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 28px; line-height: 1; text-decoration: none; }
.admin-list.inner .row-actions form { margin: 0; }
.admin-list.inner .row-actions button { padding: 0; border: 0; background: transparent; color: var(--accent-2); font: inherit; cursor: pointer; }
.admin-list.inner .row-actions button.danger { color: #d65b56; }
body.theme-light .jobs-hero, body.theme-light .job-detail-head { background-color: #d9ece9; background-image: linear-gradient(90deg, rgba(240, 248, 246, .95) 0%, rgba(231, 243, 241, .9) 42%, rgba(223, 239, 238, .53) 68%, rgba(223, 239, 238, .22) 100%), url('../images/jobs-hero-careers.png'); color: #15353c; }
body.theme-light .employer-profile-head { background: #d9ece9; color: #15353c; }
body.theme-light .jobs-hero > div > p:not(.eyebrow), body.theme-light .job-detail-head .lead, body.theme-light .employer-profile-head p { color: #49666c; }
body.theme-light .jobs-search { border-color: #a9c8c9; background: rgba(255, 255, 255, .7); }
body.theme-light .jobs-search label { color: #1d4148; }
body.theme-light .jobs-filters, body.theme-light .job-card, body.theme-light .job-detail-side, body.theme-light .employer-detail aside, body.theme-light .career-form { border-color: #bdd1d0; background: #fff; }
body.theme-light .jobs-filters h2, body.theme-light .job-card h3, body.theme-light .job-card .job-card-employer, body.theme-light .job-detail-side h2, body.theme-light .employer-detail aside h2, body.theme-light .career-page h1, body.theme-light .career-profile-form h1, body.theme-light .career-form label, body.theme-light .career-profile-form label { color: #15353c; }
body.theme-light .job-card p, body.theme-light .job-detail-side p, body.theme-light .employer-detail aside p, body.theme-light .career-page > p { color: #537077; }
body.theme-light .job-card-delete { color: #b83c35; }
body.theme-light .section-title h2, body.theme-light .job-detail-content h2 { color: #15353c; }
body.theme-light .section-title > p, body.theme-light .job-detail-content { color: #58747a; }
body.theme-light .job-detail-content > p:first-child { color: #24454c; }
body.theme-light .employer-card { border-color: #bdd1d0; background: #fff; }
body.theme-light .employer-card strong { color: #173a42; }
body.theme-light .employer-card span { color: #60797d; }
body.theme-light .job-employer-intro h1, body.theme-light .job-employer-form-wrap h2, body.theme-light .job-employer-process h2 { color: #15353c; }
body.theme-light .job-employer-intro p, body.theme-light .job-employer-process p, body.theme-light .job-employer-form-wrap > div > p:not(.eyebrow) { color: #537077; }
body.theme-light .job-employer-intro aside, body.theme-light .job-employer-form-wrap { border-color: #bdd1d0; background: #fff; }
body.theme-light .job-employer-intro aside strong { color: #15353c; }
body.theme-light .job-employer-intro aside span { color: #537077; }
body.theme-light .job-employer-form label { color: #15353c; }
.topic-digest-dashboard { margin: 26px 0 34px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.topic-digest-dashboard > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.topic-digest-dashboard h3, .topic-digest-dashboard h4 { margin: 0; color: var(--text); }
.topic-digest-dashboard > header > div:first-child > p:last-child { max-width: 760px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.topic-digest-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.topic-digest-actions form { display: flex; gap: 8px; margin: 0; }
.topic-digest-actions select { width: auto; min-height: 36px; padding: 6px 28px 6px 9px; }
.topic-digest-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.topic-digest-kpis article { min-height: 106px; padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.topic-digest-kpis span, .topic-digest-runs small, .topic-digest-subscribers header small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.topic-digest-kpis strong { display: block; margin-top: 10px; color: var(--text); font-size: 29px; line-height: 1; }
.topic-digest-preview { margin: 0 0 22px; padding: 18px; border: 1px solid rgba(19, 154, 173, .45); background: rgba(19, 154, 173, .06); }
.topic-digest-preview > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.topic-digest-preview > header > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.topic-digest-preview > div { display: grid; gap: 10px; }
.topic-digest-preview article { padding: 13px; border: 1px solid var(--line); background: var(--panel); }
.topic-digest-preview article > strong, .topic-digest-preview article > a { display: block; }
.topic-digest-preview article > a { margin-top: 3px; color: var(--accent-2); font-size: 13px; overflow-wrap: anywhere; }
.topic-digest-preview ul { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.topic-digest-preview li span { color: var(--muted); }
.topic-digest-preview li a { color: var(--text); }
.topic-digest-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 18px; }
.topic-digest-grid > section { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.topic-digest-subscribers, .topic-digest-runs { display: grid; margin-top: 14px; border-top: 1px solid var(--line); }
.topic-digest-subscribers > article, .topic-digest-runs > article { padding: 14px 0; border-bottom: 1px solid var(--line); }
.topic-digest-subscribers header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.topic-digest-subscribers header strong, .topic-digest-subscribers header a { display: block; }
.topic-digest-subscribers header a { margin-top: 3px; color: var(--accent-2); font-size: 13px; overflow-wrap: anywhere; }
.topic-digest-topic-groups { display: grid; gap: 8px; margin-top: 12px; }
.topic-digest-topic-groups > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.topic-digest-topic-groups > div > span { min-width: 142px; color: var(--muted); font-size: 12px; font-weight: 700; }
.topic-digest-topic-groups a { padding: 4px 7px; border: 1px solid var(--line); color: var(--text); font-size: 12px; line-height: 1.35; text-decoration: none; }
.topic-digest-topic-groups a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.topic-digest-runs > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; }
.topic-digest-runs > article > small { grid-column: 1 / -1; }
.network-invitation-analytics { margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.network-invitation-analytics > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.network-invitation-analytics > header h2 { margin: 0; }
.network-invitation-analytics > header > p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.45; text-align: right; }
@media (max-width: 700px) { .jobs-hero, .job-detail-head, .employer-profile-head { padding-top: 48px; padding-bottom: 48px; } .jobs-hero h1, .job-detail-head h1, .employer-profile-head h1 { max-width: 100%; font-size: 46px; } .jobs-hero > div > p:not(.eyebrow), .job-detail-head .lead, .employer-profile-head p { font-size: 17px; } .jobs-search { grid-template-columns: 1fr; padding: 14px; } .jobs-search .button { width: 100%; } }
@media (max-width: 900px) { .jobs-search, .jobs-layout, .job-detail-layout, .employer-detail, .job-employer-intro, .job-employer-form-wrap, .topic-digest-grid { grid-template-columns: 1fr; } .topic-digest-dashboard > header, .topic-digest-preview > header, .network-invitation-analytics > header { align-items: start; flex-direction: column; } .topic-digest-actions { justify-content: flex-start; } .topic-digest-preview > header > p, .network-invitation-analytics > header > p { text-align: left; } .topic-digest-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jobs-search { align-items: stretch; } .job-card-grid, .employer-card-grid, .job-employer-process { grid-template-columns: 1fr; } .section-title { align-items: start; flex-direction: column; } .employer-profile-head { grid-template-columns: 1fr; } .employer-profile-head > img { width: 110px; height: 110px; } .career-form, .career-profile-form form, .job-employer-form { grid-template-columns: 1fr; } .job-employer-intro { gap: 28px; padding-bottom: 34px; } .job-employer-form-wrap { gap: 24px; padding: 24px; } .job-inquiry-admin { grid-template-columns: 1fr; } .jobs-admin-toolbar, .jobs-admin-toolbar-actions { align-items: stretch; flex-direction: column; } .jobs-admin-toolbar-actions .button { text-align: center; } .jobs-admin-grid.is-modal-open { padding: 0; } .jobs-admin-grid.is-modal-open > form { min-height: 100vh; max-height: none; border: 0; } .jobs-admin-modal-close { top: 10px; right: 10px; } }
@media (max-width: 520px) { .topic-digest-dashboard { padding: 16px; } .topic-digest-kpis { grid-template-columns: 1fr; } .topic-digest-actions, .topic-digest-actions form, .topic-digest-actions .button { width: 100%; } .topic-digest-subscribers header { display: grid; gap: 6px; } .topic-digest-topic-groups > div > span { min-width: 100%; } }

/* Community-Composer: zuerst schreiben, Einordnung und Spezialfelder bei Bedarf. */
.community-composer-form { display: grid; gap: 18px; padding: 24px; }
.community-composer-intro .eyebrow { margin: 0 0 6px; }
.community-composer-intro h2 { margin: 0; font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1.08; }
.community-composer-basics { display: grid; grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr); gap: 14px; }
.community-composer-basics label, .community-composer-body-label { margin: 0; }
.community-composer-body-label { color: var(--muted); font-size: 14px; font-weight: 700; }
.community-composer-form .rich-editor { margin-top: -10px; }
.community-composer-form .use-case-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 18px; border: 1px solid rgba(20, 155, 172, .5); border-radius: 6px; background: var(--hover-soft); }
.community-composer-form .use-case-fields[hidden] { display: none; }
.community-composer-form .use-case-fields legend { padding: 0 6px; color: var(--accent-2); font-size: 14px; font-weight: 800; }
.community-composer-form .use-case-fields label { margin: 0; }
.community-composer-form .use-case-fields label:nth-of-type(1), .community-composer-form .use-case-fields label:nth-of-type(2), .community-composer-form .use-case-fields label:nth-of-type(5) { grid-column: 1 / -1; }
.community-composer-options { border: 1px solid var(--line); border-radius: 6px; }
.community-composer-options > summary { padding: 13px 15px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 800; }
.community-composer-options > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 4px 15px 15px; border-top: 1px solid var(--line); }
.community-composer-options label { margin: 0; }
.community-composer-options .community-composer-attachments { grid-column: 1 / -1; }
.community-composer-options input[type="file"] { padding: 9px; }
.community-composer-form > .community-editor-seo { margin: 0; }
.community-composer-form > .button { justify-self: start; }
@media (max-width: 640px) { .community-composer-form { padding: 18px; } .community-composer-basics, .community-composer-form .use-case-fields, .community-composer-options > div { grid-template-columns: 1fr; } .community-composer-form .use-case-fields label:nth-of-type(1), .community-composer-form .use-case-fields label:nth-of-type(2), .community-composer-form .use-case-fields label:nth-of-type(5), .community-composer-options .community-composer-attachments { grid-column: auto; } }

/* Konto: klare, handlungsorientierte Einstellungen statt einer Formularsammlung. */
.account-page-head { width: min(1280px, calc(100% - 48px)); max-width: 1280px; margin: 0 auto; padding: clamp(50px, 7vw, 86px) 0 28px; background: transparent; }
.account-page-head h1 { max-width: 720px; margin: 6px 0 12px; font-family: var(--font-serif); font-size: clamp(42px, 5vw, 66px); font-weight: 500; line-height: 1; }
.account-page-head > p:last-child { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.account-network-summary { width: min(1280px, calc(100% - 48px)); margin: 0 auto 22px; border-radius: 8px; overflow: hidden; }
.account-network-summary > div, .account-network-summary > a { min-height: 96px; align-content: center; }
.account-network-summary strong { font-size: 28px; }
.account-followed-topics { width: min(1280px, calc(100% - 48px)); margin: 0 auto 24px; padding: 24px 0; }
.account-followed-topics h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 500; }
.account-grid { width: min(1280px, calc(100% - 48px)); max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; padding: 0 0 82px; }
.account-grid > .form-card, .account-grid > .account-membership-card { min-width: 0; margin: 0; padding: 28px; }
.account-profile-card { grid-column: span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.account-password-card { grid-column: span 4; }
.account-lab-card, .account-grid > .network-invitation-card { grid-column: span 6; }
.account-grid > .account-membership-card { grid-column: span 4; }
.account-grid .eyebrow { margin: 0 0 5px; }
.account-grid h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1.08; }
.account-card-intro { grid-column: 1 / -1; max-width: 62ch; margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.account-profile-card > .eyebrow, .account-profile-card > h2 { grid-column: 1 / -1; }
.account-profile-card > .media-picker-field, .account-profile-card > label[for], .account-profile-card > .button { grid-column: 1 / -1; }
.account-profile-card > label { min-width: 0; }
.account-profile-card > label:nth-of-type(4) { grid-column: 1 / -1; }
.account-profile-card > .button { width: max-content; margin-top: 4px; }
.account-grid .media-picker-field { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--hover-soft); }
.account-grid .media-picker-preview { width: 76px; height: 76px; margin: 10px 0; }
.account-grid .media-picker-preview img { width: 100%; height: 100%; object-fit: cover; }
.account-grid .media-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-grid .media-picker-actions .button { width: auto; margin: 0; }
.account-grid .check { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--hover-soft); }
.account-grid .check input { min-height: auto; }
.account-grid .help-text { margin: 0 0 16px; line-height: 1.45; }
.account-grid .form-card > p:not(.eyebrow):not(.account-card-intro):not(.help-text) { color: var(--muted); line-height: 1.5; }
.account-grid .network-invitation-card h2 { max-width: 16ch; }
.account-grid .account-membership-card { display: flex; flex-direction: column; align-items: flex-start; }
.account-grid .account-membership-card .checkout-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .home-v2-trending-viewport { overflow-x: auto; mask-image: none; scrollbar-width: thin; } .home-v2-trending-track { animation: none; } .home-v2-trending-set[aria-hidden="true"] { display: none; } }
@media (max-width: 900px) { .account-page-head, .account-network-summary, .account-followed-topics, .account-grid { width: calc(100% - 32px); } .account-profile-card { grid-column: span 12; } .account-password-card, .account-lab-card, .account-grid > .network-invitation-card, .account-grid > .account-membership-card { grid-column: span 6; } }
@media (max-width: 640px) { .home-v2-trending .home-shell { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 9px 0; } .home-v2-trending nav { padding: 6px 0 0; } .home-v2-trending-viewport { mask-image: none; } .account-page-head { padding: 42px 0 22px; } .account-page-head h1 { font-size: 42px; } .account-network-summary > div, .account-network-summary > a { min-height: 76px; } .account-followed-topics { gap: 16px; } .account-grid { grid-template-columns: 1fr; padding-bottom: 48px; } .account-profile-card, .account-password-card, .account-lab-card, .account-grid > .network-invitation-card, .account-grid > .account-membership-card { grid-column: auto; } .account-profile-card { grid-template-columns: 1fr; } .account-profile-card > label:nth-of-type(4) { grid-column: auto; } .account-grid > .form-card, .account-grid > .account-membership-card { padding: 20px; } .account-grid h2 { font-size: 26px; } }

.community-draft-recovery { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; border: 1px solid rgba(20, 155, 172, .55); border-radius: 6px; background: rgba(20, 155, 172, .09); }
.community-draft-recovery p { margin: 0; color: var(--text); font-weight: 700; }
.community-draft-recovery > div, .community-composer-actions, .community-composer-actions > div { display: flex; align-items: center; gap: 8px; }
.community-composer-actions { justify-content: space-between; margin-top: 2px; }
.community-composer-actions > span { color: var(--muted); font-size: 13px; }
.community-preview-modal { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgba(3, 13, 18, .78); }
.community-preview-modal[hidden] { display: none; }
.community-preview-dialog { width: min(760px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, .42); }
.community-preview-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.community-preview-dialog > header .eyebrow { margin: 0 0 5px; }
.community-preview-dialog h2 { margin: 0; font-family: var(--font-serif); font-size: 30px; font-weight: 500; }
.community-preview-dialog > header button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font-size: 29px; cursor: pointer; }
.community-preview-dialog article { padding: 30px 24px; }
.community-preview-dialog article > p { margin: 0 0 12px; color: var(--accent-2); font-size: 13px; font-weight: 800; }
.community-preview-dialog article > h3 { margin: 0 0 20px; font-family: var(--font-serif); font-size: clamp(32px, 5vw, 50px); font-weight: 500; line-height: 1.05; }
.community-preview-dialog footer { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .community-draft-recovery, .community-composer-actions { align-items: stretch; flex-direction: column; } .community-draft-recovery > div, .community-composer-actions > div { width: 100%; } .community-draft-recovery .button, .community-composer-actions .button { flex: 1; } .community-preview-modal { padding: 0; } .community-preview-dialog { min-height: 100vh; border-radius: 0; } .community-preview-dialog > header, .community-preview-dialog article, .community-preview-dialog footer { padding-left: 18px; padding-right: 18px; } }
