.mf-themes-page {
  overflow: clip;
  background: var(--mf-bg);
  color: var(--mf-dark);
}

.mf-themes-page h1,
.mf-themes-page h2,
.mf-themes-page h3,
.mf-themes-page p {
  margin-top: 0;
}

/* Ana sayfa hero sözleşmesi korunur; bu sınıf yalnız route kimliğidir. */
.mf-themes-hero .mf-hero__title,
.mf-themes-hero .mf-hero__lead {
  max-width: 860px;
}

.mf-themes-hero .mf-hero__title {
  margin-left: auto;
  margin-right: auto;
}

.mf-themes-hero .mf-hero__title-line > span,
.mf-themes-hero .mf-hero__lead-line > span {
  white-space: normal;
}

/* Ana sayfadaki zigzag yapısının landing için stepflow kullanımı. */
.mf-themes-story .mf-zp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 56px;
  align-items: center;
  text-align: center;
}

.mf-themes-story .mf-zp-intro__left,
.mf-themes-story .mf-zp-intro__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mf-themes-story .mf-zp-intro h2,
.mf-themes-story .mf-zp-intro .mf-lead {
  margin-right: auto;
  margin-left: auto;
}

.mf-themes-story .mf-zp-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 44px 0;
}

.mf-themes-story .mf-zp-block + .mf-zp-block {
  border-top: 0;
}

.mf-themes-story .mf-zp-step-arrow {
  display: grid;
  place-items: center;
  height: 36px;
  color: var(--mf-green);
}

.mf-themes-story .mf-zp-step-arrow svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mf-themes-story .mf-zp-block__visual {
  min-width: 0;
  overflow: hidden;
  border: 2px dashed var(--mf-border-2);
  border-radius: 12px;
  background: var(--mf-white);
}

.mf-themes-story .mf-zp-block__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.mf-themes-story .mf-zp-block__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-themes-story .mf-zp-block__text h3 {
  max-width: 520px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.mf-themes-story .mf-zp-block__text p {
  max-width: 520px;
  color: var(--mf-light-muted);
  line-height: 1.7;
}

/* Referans düzenindeki merkezli giriş metni. */
.mf-themes-management .mf-platform-block-head--center .mf-lead,
.mf-themes-public .mf-platform-block-head--center .mf-lead {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.mf-themes-management .mf-platform-block-head--center h2,
.mf-themes-public .mf-platform-block-head--center h2 {
  margin-right: auto;
  margin-left: auto;
}

/* Kurumsal ürün bölümü: mevcut platform yüzeyleriyle aynı iki kolon ritmi. */
.mf-themes-product__layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.mf-themes-product__copy h2 {
  max-width: 520px;
}

.mf-themes-product__copy .mf-lead {
  max-width: 560px;
  line-height: 1.72;
}

.mf-themes-product__media {
  min-width: 0;
}

.mf-themes-product__window {
  overflow: hidden;
  border: 1px solid var(--mf-border);
  border-radius: 14px;
  background: var(--mf-white);
  box-shadow: var(--mf-shadow);
}

.mf-themes-product__window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mf-border);
  color: var(--mf-light-muted);
  font-family: var(--mf-font-mono);
  font-size: 10px;
}

.mf-themes-product__window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mf-border-2);
}

.mf-themes-product__window-bar b {
  margin-left: 10px;
  font-weight: 500;
}

.mf-themes-product__wireframe {
  min-height: 390px;
  padding: 28px;
  background: var(--mf-surface);
}

.mf-themes-product__wireframe-nav,
.mf-themes-product__wireframe-hero,
.mf-themes-product__wireframe-copy span,
.mf-themes-product__wireframe-cards i {
  display: block;
  border-radius: 5px;
  background: var(--mf-border);
}

.mf-themes-product__wireframe-nav {
  width: 48%;
  height: 10px;
  margin-bottom: 44px;
}

.mf-themes-product__wireframe-hero {
  width: 72%;
  height: 86px;
  margin-bottom: 20px;
  background: var(--mf-green-pale);
}

.mf-themes-product__wireframe-copy {
  display: grid;
  gap: 8px;
  width: 58%;
  margin-bottom: 34px;
}

.mf-themes-product__wireframe-copy span:nth-child(1) { width: 100%; height: 9px; }
.mf-themes-product__wireframe-copy span:nth-child(2) { width: 84%; height: 9px; }
.mf-themes-product__wireframe-copy span:nth-child(3) { width: 64%; height: 9px; }

.mf-themes-product__wireframe-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mf-themes-product__wireframe-cards i {
  height: 78px;
  background: var(--mf-white);
  border: 1px solid var(--mf-border);
}

.mf-themes-product__media-note {
  margin: 12px 0 0;
  color: var(--mf-light-muted);
  font-size: 12px;
}

/* Referans görseldeki sunum düzeni: yatay sekmeler, sabit panel yüksekliği. */
.mf-themes-tabs__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--mf-border);
  border-radius: 999px;
  background: var(--mf-white);
  scrollbar-width: thin;
}

.mf-themes-tabs__tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mf-light-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.mf-themes-tabs__tab:hover,
.mf-themes-tabs__tab:focus-visible,
.mf-themes-tabs__tab.is-active {
  background: var(--mf-surface-2);
  color: var(--mf-dark);
}

.mf-themes-tabs__tab:focus-visible {
  outline: 2px solid var(--mf-green);
  outline-offset: 2px;
}

.mf-themes-tabs__panels {
  display: grid;
  min-height: 420px;
  margin-top: 28px;
}

.mf-themes-tabs__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--mf-border);
  border-radius: 14px;
  background: var(--mf-white);
  box-shadow: var(--mf-shadow);
}

.mf-themes-tabs[data-mf-themes-enhanced="true"] .mf-themes-tabs__panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.mf-themes-tabs[data-mf-themes-enhanced="true"] .mf-themes-tabs__panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mf-themes-tabs__visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mf-border);
  border-radius: 8px;
  background: var(--mf-surface);
  aspect-ratio: 4 / 3;
}

.mf-themes-tabs__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mf-themes-settings-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--mf-white);
  color: var(--mf-dark);
}

.mf-themes-settings-ui__topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--mf-border);
  color: var(--mf-light-muted);
  font-family: var(--mf-font-mono);
  font-size: 9px;
}

.mf-themes-settings-ui__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--mf-green);
  color: var(--mf-white);
  font-size: 8px;
  font-weight: 700;
}

.mf-themes-settings-ui__topbar strong {
  color: var(--mf-dark);
  font-weight: 500;
}

.mf-themes-settings-ui__topbar-context {
  margin-left: auto;
  color: var(--mf-light-muted);
}

.mf-themes-settings-ui__body {
  display: grid;
  grid-template-columns: 29% minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.mf-themes-settings-ui__nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 9px;
  border-right: 1px solid var(--mf-border);
  background: var(--mf-surface);
}

.mf-themes-settings-ui__nav-item {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 5px;
  color: var(--mf-light-muted);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-settings-ui__nav-item.is-active {
  background: var(--mf-badge-green);
  color: var(--mf-green);
  font-weight: 600;
}

.mf-themes-settings-ui__content {
  min-width: 0;
  padding: clamp(16px, 3vw, 30px);
}

.mf-themes-settings-ui__content-kicker {
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--mf-badge-teal);
  font-family: var(--mf-font-mono);
  font-size: 8px;
  letter-spacing: .7px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mf-themes-settings-ui__content-title {
  display: block;
  max-width: 300px;
  font-family: var(--mf-font-head);
  font-size: clamp(14px, 1.8vw, 21px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.mf-themes-settings-ui__content-text {
  max-width: 360px;
  margin: 10px 0 18px;
  color: var(--mf-light-muted);
  font-size: 10px;
  line-height: 1.5;
}

.mf-themes-settings-ui__fields {
  display: grid;
  gap: 7px;
  max-width: 360px;
}

.mf-themes-settings-ui__fields > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--mf-border);
  border-radius: 5px;
  color: var(--mf-light-muted);
  font-size: 9px;
}

.mf-themes-settings-ui__fields b {
  display: block;
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: var(--mf-border-2);
}

.mf-themes-tabs__copy .mf-kicker {
  margin-bottom: 12px;
}

.mf-themes-tabs__copy h3 {
  max-width: 360px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.mf-themes-tabs__copy p {
  max-width: 380px;
  color: var(--mf-light-muted);
  line-height: 1.7;
}

/* Public surface kartları mevcut ekran görüntüsü kompozisyonunu korur. */
.mf-themes-public-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mf-themes-public-card {
  min-width: 0;
  margin: 0;
}

.mf-themes-public-card__image {
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--mf-border);
  border-radius: 10px 10px 0 0;
  background: var(--mf-surface);
}

.mf-themes-public-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mf-themes-public-card figcaption {
  margin: -1px 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--mf-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--mf-surface-2);
  color: var(--mf-light-text);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .mf-themes-product__layout,
  .mf-themes-story .mf-zp-intro,
  .mf-themes-story .mf-zp-block {
    grid-template-columns: 1fr;
  }

  .mf-themes-story .mf-zp-block__visual {
    order: -1;
  }

  .mf-themes-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-themes-tabs__panel {
    grid-template-columns: 1fr;
  }

  .mf-themes-tabs__copy p,
  .mf-themes-tabs__copy h3 {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .mf-themes-story .mf-zp-intro {
    gap: 24px;
    margin-bottom: 24px;
  }

  .mf-themes-story .mf-zp-block {
    gap: 24px;
    padding: 32px 0;
  }

  .mf-themes-product__wireframe {
    min-height: 280px;
    padding: 18px;
  }

  .mf-themes-tabs__panels {
    min-height: 0;
  }

  .mf-themes-tabs__panel {
    padding: 16px;
  }

  .mf-themes-tabs__visual {
    aspect-ratio: 4 / 3;
  }

  .mf-themes-tabs__visual img,
  .mf-themes-settings-ui {
    height: 100%;
    min-height: 0;
  }

  .mf-themes-public-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-themes-tabs__tab,
  .mf-themes-page * {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
.mf-themes-management .mf-themes-tabs {
  margin-top: 48px;
}

.mf-themes-tabs__list {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--mf-border);
  border-radius: 999px;
  background: var(--mf-white);
  scrollbar-width: thin;
}

.mf-themes-tabs {
  text-align: center;
}

.mf-themes-tabs__tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mf-light-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.mf-themes-tabs__tab:hover,
.mf-themes-tabs__tab:focus-visible,
.mf-themes-tabs__tab.is-active {
  background: var(--mf-surface-2);
  color: var(--mf-dark);
}

.mf-themes-tabs__tab:focus-visible {
  outline: 2px solid var(--mf-green);
  outline-offset: 2px;
}

.mf-themes-tabs__panels {
  display: grid;
  margin-top: 32px;
  text-align: left;
}

.mf-themes-tabs__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-width: 0;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mf-themes-tabs[data-mf-themes-enhanced="true"] .mf-themes-tabs__panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.mf-themes-tabs[data-mf-themes-enhanced="true"] .mf-themes-tabs__panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mf-themes-tabs__visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: 560px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid var(--mf-border);
  border-radius: 8px;
  background-color: #f8fbfb;
  background-image: linear-gradient(135deg, #fcfdfd 0%, #f1f6f8 48%, #eef7f1 100%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .13), 0 5px 14px rgba(37, 99, 235, .06);
}

.mf-themes-mockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(255, 255, 255, .88);
  color: var(--mf-dark);
}

.mf-themes-mockup__section-heading {
  margin-top: 4px;
  color: var(--mf-light-text);
  font-family: var(--mf-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.mf-themes-mockup__section-heading:not(:first-child) {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--mf-border);
}

.mf-themes-package-grid,
.mf-themes-layout-grid,
.mf-themes-status-grid,
.mf-themes-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mf-themes-package-card,
.mf-themes-layout-card,
.mf-themes-status-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-r-sm);
  background: var(--mf-surface);
}

.mf-themes-package-card.is-selected,
.mf-themes-layout-card.is-selected {
  border-color: var(--mf-green);
  box-shadow: inset 0 0 0 1px var(--mf-green);
}

.mf-themes-package-card__preview {
  display: flex;
  gap: 3px;
  height: 28px;
  margin-bottom: 8px;
  padding: 4px;
  border-radius: 4px;
  background: var(--mf-white);
}

.mf-themes-package-card__preview i {
  flex: 1;
  border-radius: 2px;
}

.mf-themes-package-card strong,
.mf-themes-layout-card strong,
.mf-themes-status-card strong {
  display: block;
  overflow: hidden;
  color: var(--mf-dark);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-package-card span,
.mf-themes-status-card span {
  display: block;
  margin-top: 3px;
  color: var(--mf-light-muted);
  font-size: 9px;
}

.mf-themes-package-card.is-selected span,
.mf-themes-status-card strong {
  color: var(--mf-green);
  font-weight: 700;
}

.mf-themes-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mf-themes-control-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-themes-control,
.mf-themes-option-row,
.mf-themes-form-field,
.mf-themes-section-row,
.mf-themes-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-r-sm);
  background: var(--mf-surface);
  color: var(--mf-light-muted);
  font-size: 9px;
}

.mf-themes-control span,
.mf-themes-option-row span,
.mf-themes-form-field span,
.mf-themes-section-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-control b,
.mf-themes-option-row b,
.mf-themes-form-field b,
.mf-themes-record-row strong {
  overflow: hidden;
  color: var(--mf-dark);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-control small {
  color: var(--mf-light-muted);
  font-size: 11px;
}

.mf-themes-toggle {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mf-border-2);
}

.mf-themes-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mf-white);
  content: '';
}

.mf-themes-toggle.is-on {
  background: var(--mf-green);
}

.mf-themes-toggle.is-on::after {
  left: 14px;
}

.mf-themes-mockup__selection,
.mf-themes-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 2px;
  color: var(--mf-light-muted);
  font-size: 10px;
}

.mf-themes-mockup__selection strong,
.mf-themes-list-heading strong {
  color: var(--mf-dark);
  font-size: 11px;
}

.mf-themes-mockup__selection em,
.mf-themes-list-heading span,
.mf-themes-record-row em,
.mf-themes-team-card em {
  color: var(--mf-green);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.mf-themes-color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mf-themes-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mf-themes-color-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-r-sm);
  background: var(--mf-surface);
  color: var(--mf-light-muted);
  font-size: 8px;
}

.mf-themes-color-card .mf-themes-color-swatch {
  grid-row: span 2;
  width: 22px;
  height: 22px;
}

.mf-themes-color-card span:not(.mf-themes-color-swatch),
.mf-themes-color-card b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-color-card b {
  color: var(--mf-dark);
  font-size: 8px;
  font-weight: 600;
}

.mf-themes-color-swatch {
  width: 30px;
  height: 30px;
  border: 3px solid var(--mf-white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--mf-border);
}

.mf-themes-option-row b {
  max-width: 58%;
}

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

.mf-themes-layout-card__canvas {
  position: relative;
  display: flex;
  gap: 3px;
  height: 34px;
  margin-bottom: 8px;
  padding: 5px;
  border: 1px solid var(--mf-border-2);
  border-radius: 3px;
  background: var(--mf-white);
}

.mf-themes-layout-card__canvas i {
  display: block;
  flex: 1;
  border-radius: 2px;
  background: var(--mf-blue-pale);
}

.mf-themes-layout-card__canvas i.is-sidebar {
  flex: 0 0 26%;
  order: 2;
  background: var(--mf-surface-2);
}

.mf-themes-layout-card__canvas.is-left i.is-sidebar {
  order: -1;
}

.mf-themes-section-list,
.mf-themes-form-grid,
.mf-themes-record-list {
  display: grid;
  gap: 7px;
}

.mf-themes-section-row small {
  max-width: 38%;
  overflow: hidden;
  margin-left: auto;
  color: var(--mf-green);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mf-themes-form-field {
  display: block;
}

.mf-themes-form-field span,
.mf-themes-form-field b {
  display: block;
  text-align: left;
}

.mf-themes-form-field b {
  margin-top: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--mf-border-2);
  color: var(--mf-light-muted);
  font-size: 9px;
  font-weight: 400;
}

.mf-themes-record-row {
  justify-content: flex-start;
}

.mf-themes-record-row__body {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mf-themes-record-row__body small {
  margin-left: 0;
  color: var(--mf-light-muted);
  font-size: 8px;
}

.mf-themes-record-row__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.mf-themes-record-row__badges small {
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--mf-green-pale);
  color: var(--mf-green);
  font-size: 8px;
  white-space: nowrap;
}

.mf-themes-record-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 3px 2px;
}

.mf-themes-record-fields span {
  padding: 4px 6px;
  border: 1px solid var(--mf-border);
  border-radius: 999px;
  color: var(--mf-light-muted);
  font-size: 8px;
}

.mf-themes-record-row small {
  margin-left: auto;
  color: var(--mf-green);
  font-size: 9px;
}

.mf-themes-record-icon {
  color: var(--mf-blue);
  font-size: 14px;
}

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

.mf-themes-team-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--mf-border);
  border-radius: var(--mf-r-sm);
  background: var(--mf-surface);
}

.mf-themes-team-card img,
.mf-themes-team-card__avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--mf-surface-2);
  color: var(--mf-light-text);
  font-size: 11px;
  font-weight: 700;
  object-fit: cover;
}

.mf-themes-team-card strong,
.mf-themes-team-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-themes-team-card strong {
  color: var(--mf-dark);
  font-size: 9px;
}

.mf-themes-team-card small {
  margin-top: 3px;
  color: var(--mf-light-muted);
  font-size: 8px;
}

.mf-themes-team-card__meta {
  display: block;
  margin-top: 3px;
  color: var(--mf-green);
  font-size: 8px;
}

.mf-themes-team-card em {
  grid-column: 2;
  justify-self: start;
}

.mf-themes-empty {
  padding: 12px;
  border: 1px solid var(--mf-border-2);
  color: var(--mf-light-muted);
  font-size: 10px;
  text-align: center;
}

.mf-themes-tabs__copy .mf-kicker {
  margin-bottom: 12px;
}

.mf-themes-tabs__copy h3 {
  max-width: 360px;
  margin-bottom: 18px;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.mf-themes-tabs__copy p {
  max-width: 380px;
  margin-bottom: 24px;
  color: var(--mf-light-muted);
  line-height: 1.7;
}

.mf-themes-tabs__scope {
  max-width: 380px;
  color: var(--mf-light-muted);
  font-size: 12px;
}

.mf-themes-tabs__scope > span {
  color: var(--mf-light-text);
  font-weight: 600;
}

.mf-themes-tabs__scope ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.mf-themes-tabs__scope li::before {
  margin-right: 6px;
  color: var(--mf-green);
  content: '•';
}

/* Public surface kartları mevcut ekran görüntüsü kompozisyonunu korur. */
.mf-themes-public-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mf-themes-public-card {
  min-width: 0;
  margin: 0;
}

.mf-themes-public-card__image {
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--mf-border);
  border-radius: 10px 10px 0 0;
  background: var(--mf-surface);
}

.mf-themes-public-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mf-themes-public-card figcaption {
  box-sizing: border-box;
  width: 100%;
  margin: -1px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--mf-border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--mf-surface-2);
  color: var(--mf-light-text);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .mf-themes-product__layout,
  .mf-themes-story .mf-zp-intro,
  .mf-themes-story .mf-zp-block {
    grid-template-columns: 1fr;
  }

  .mf-themes-story .mf-zp-block__visual {
    order: -1;
  }

  .mf-themes-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-themes-tabs__panel {
    grid-template-columns: 1fr;
  }

  .mf-themes-tabs__copy p,
  .mf-themes-tabs__copy h3 {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .mf-themes-story .mf-zp-intro {
    gap: 24px;
    margin-bottom: 24px;
  }

  .mf-themes-story .mf-zp-block {
    gap: 24px;
    padding: 32px 0;
  }

  .mf-themes-product__wireframe {
    min-height: 280px;
    padding: 18px;
  }

  .mf-themes-tabs__panels {
    min-height: 0;
  }

  .mf-themes-tabs__panel {
    padding: 16px;
  }

  .mf-themes-mockup {
    height: 100%;
    padding: 16px;
  }

  .mf-themes-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-themes-package-grid,
  .mf-themes-layout-grid,
  .mf-themes-team-grid {
    gap: 6px;
  }

  .mf-themes-package-card,
  .mf-themes-layout-card,
  .mf-themes-status-card,
  .mf-themes-control,
  .mf-themes-option-row,
  .mf-themes-form-field,
  .mf-themes-section-row,
  .mf-themes-record-row {
    padding: 8px;
  }

  .mf-themes-public-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-themes-tabs__tab,
  .mf-themes-page * {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Tema landing: SSS ve CTA ortak yüzey ritmi. */
.mf-themes-page > .mf-platform-section:has(.mf-faq--platform),
.mf-themes-page > .mf-platform-section:has(.mf-platform-cta-panel) {
  background: var(--mf-surface-2);
}

/* SSS akordeonu, tema sayfasının ana içerik genişliğiyle hizalanır. */
.mf-themes-page > .mf-platform-section:has(.mf-faq--platform) .mf-platform-wrap--narrow {
  max-width: var(--mf-max-w);
}

.mf-themes-page > .mf-platform-section:has(.mf-faq--platform) .mf-faq--platform {
  width: 100%;
  max-width: none;
}

/* İki section arasındaki toplam ritmi yarıya indirir. */
.mf-themes-page > .mf-platform-section:has(.mf-faq--platform) {
  padding-bottom: 40px;
}

.mf-themes-page > .mf-platform-section:has(.mf-platform-cta-panel) {
  padding-top: 40px;
}

@media (max-width: 1024px) {
  .mf-themes-page > .mf-platform-section:has(.mf-faq--platform) {
    padding-bottom: 32px;
  }

  .mf-themes-page > .mf-platform-section:has(.mf-platform-cta-panel) {
    padding-top: 32px;
  }
}

@media (max-width: 768px) {
  .mf-themes-page > .mf-platform-section:has(.mf-faq--platform) {
    padding-bottom: 24px;
  }

  .mf-themes-page > .mf-platform-section:has(.mf-platform-cta-panel) {
    padding-top: 24px;
  }
}
