/* Complete site templates; merchant settings retain their neutral interface. */
body[data-theme="default"] {
  --bg: #f6f8fc;
  --surface: #fff;
  --ink: #162a46;
  --muted: #62718a;
  --accent: #245fe5;
  --tint: #eaf0ff;
  --line: #dde5f1;
  --button-ink: #fff;
  --radius: 18px;
  color-scheme: light;
}
body[data-theme="technology"] {
  --bg: #0b1214;
  --surface: #121f22;
  --ink: #edf7f5;
  --muted: #a3b8b5;
  --accent: #8ce6c5;
  --tint: #1b3430;
  --line: #2b4143;
  --button-ink: #0b211a;
  --radius: 8px;
  --danger: #ffb4ab;
  color-scheme: dark;
}
body[data-theme="business"] {
  --bg: #f6f2e9;
  --surface: #fffcf6;
  --ink: #302c28;
  --muted: #75695c;
  --accent: #a74325;
  --tint: #f2e3d3;
  --line: #ded4c5;
  --button-ink: #fff;
  --radius: 2px;
  color-scheme: light;
}
.theme-preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 10px 18px;
  color: var(--ink);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.theme-preview-banner a {
  text-decoration: underline;
  font-weight: 650;
}
.theme-showcase {
  min-width: 0;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.showcase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.showcase-symbol {
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.showcase-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.showcase-row:hover {
  color: var(--accent);
  text-decoration: none;
}
.showcase-row > span:last-child {
  margin-left: auto;
  font-size: 20px;
}
.showcase-row strong,
.showcase-row small {
  display: block;
}
.showcase-row strong {
  font-size: 19px;
  margin-bottom: 3px;
}
.showcase-row small {
  color: var(--muted);
  font-size: 12px;
}
.showcase-row .ui-icon {
  width: 25px;
  height: 25px;
  color: var(--accent);
}
.showcase-number {
  font-size: 11px;
  color: var(--muted);
}
.showcase-note {
  padding-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

/* Cloud: spacious blue-and-white business portal. */
body[data-theme="default"] > header {
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
}
body[data-theme="default"] .hero {
  gap: 64px;
  padding: 70px 0 68px;
}
body[data-theme="default"] .hero h1 {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.3;
  letter-spacing: -2px;
}
body[data-theme="default"] .hero-kicker {
  border-radius: 6px;
  letter-spacing: 1px;
}
body[data-theme="default"] .theme-showcase {
  box-shadow: 0 22px 65px #23427212;
  border-top: 5px solid var(--accent);
  transform: rotate(1deg);
}
body[data-theme="default"] .model-card {
  border-radius: 16px;
  box-shadow: 0 4px 14px #23427205;
}
body[data-theme="default"] .model-card::before {
  opacity: 0.35;
}
body[data-theme="default"] .getting-started {
  background: var(--surface);
  border-radius: 20px;
  padding: 34px;
}
body[data-theme="default"] .auth-intro {
  background: #eaf0ff;
  color: #162a46;
  border-radius: 22px;
}

/* Terminal: outlined components, a code-led hero and horizontal catalog nav. */
body[data-theme="technology"] > header {
  background: #0b1214ef;
  border-bottom: 1px solid var(--line);
}
body[data-theme="technology"]
  :is(
    button,
    .button,
    input,
    select,
    .model-card,
    .market-search,
    .filter-pill,
    .card
  ) {
  border-radius: 6px;
}
body[data-theme="technology"] .hero {
  padding: 60px 28px;
  margin: 20px -28px 38px;
  gap: 42px;
  background-image:
    linear-gradient(#8ce6c507 1px, transparent 1px),
    linear-gradient(90deg, #8ce6c507 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--line);
}
body[data-theme="technology"] .hero h1 {
  font-size: clamp(36px, 4vw, 55px);
  letter-spacing: -2px;
}
body[data-theme="technology"] .hero-kicker {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}
body[data-theme="technology"]
  :is(.eyebrow, .console-caption, .model-title, .hero-footnote) {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
body[data-theme="technology"] .hero-console {
  border: 1px solid #52776a;
  background: #0e1b1d;
  box-shadow: 12px 12px 0 #172b28;
  border-radius: 8px;
}
body[data-theme="technology"] .code-panel {
  background: #0b1517;
}
body[data-theme="technology"] .code-toolbar {
  background: #16282b;
}
body[data-theme="technology"] .code {
  color: #d8eee7;
}
body[data-theme="technology"] .market-heading {
  text-align: left;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
body[data-theme="technology"] .market-heading::before {
  display: none;
}
body[data-theme="technology"] .market-search {
  max-width: none;
}
body[data-theme="technology"] .catalog-filters {
  justify-content: flex-start;
}
body[data-theme="technology"] .market-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
body[data-theme="technology"] .market-sidebar {
  position: static;
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
body[data-theme="technology"] .sidebar-heading {
  padding: 0;
}
body[data-theme="technology"] .provider-list {
  flex-direction: row;
  flex-wrap: wrap;
}
body[data-theme="technology"] .provider-button {
  width: auto;
  background: var(--surface);
  min-height: 42px;
  padding: 7px 10px;
}
body[data-theme="technology"] .sidebar-note {
  display: none;
}
body[data-theme="technology"] .market-results .model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body[data-theme="technology"] .model-card::before {
  display: none;
}
body[data-theme="technology"] .model-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
body[data-theme="technology"] .model-title {
  font-size: 16px;
}
body[data-theme="technology"] .vendor-logo {
  background: #f5f9f7;
}
body[data-theme="technology"] .auth-intro {
  background: #162c28;
  border: 1px solid #36574d;
  border-radius: 6px;
}
body[data-theme="technology"] .hero-symbol {
  color: var(--accent);
}
body[data-theme="technology"] .getting-started {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Editorial: warm paper, serif headings, asymmetric hero and two-column articles. */
body[data-theme="business"] > header {
  background: #f6f2e9f2;
  border-bottom: 1px solid #a99a85;
}
body[data-theme="business"]
  :is(button, .button, input, select, .card, .market-search, .filter-pill) {
  border-radius: 2px;
}
body[data-theme="business"]
  :is(h1, .section-heading h2, .getting-started h2, .auth-intro h2) {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-weight: 600;
}
body[data-theme="business"] .hero {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  border-bottom: 1px solid #a99a85;
  padding: 62px 0 50px;
}
body[data-theme="business"] .hero h1 {
  font-size: clamp(40px, 4.9vw, 66px);
  line-height: 1.4;
  letter-spacing: -1.5px;
}
body[data-theme="business"] .hero-kicker {
  background: none;
  border-radius: 0;
  padding-left: 0;
  letter-spacing: 2px;
}
body[data-theme="business"] .theme-showcase {
  background: #efe5d6;
  border: none;
  border-radius: 48% 48% 2px 2px;
  padding: 38px 30px 26px;
}
body[data-theme="business"] .showcase-heading {
  flex-direction: column-reverse;
  gap: 18px;
}
body[data-theme="business"] .showcase-symbol {
  font-size: 86px;
}
body[data-theme="business"] .showcase-row {
  gap: 12px;
  padding: 19px 0;
}
body[data-theme="business"] .showcase-row .ui-icon {
  display: none;
}
body[data-theme="business"] .showcase-row strong {
  font-family: "Songti SC", Georgia, serif;
  font-size: 22px;
}
body[data-theme="business"] .market-heading {
  text-align: left;
  padding-left: 0;
  border-bottom: 1px solid #a99a85;
  margin-bottom: 24px;
}
body[data-theme="business"] .market-heading::before {
  display: none;
}
body[data-theme="business"] .market-search {
  max-width: none;
  box-shadow: none;
  border-color: #cbbda8;
}
body[data-theme="business"] .catalog-filters {
  justify-content: flex-start;
}
body[data-theme="business"] .market-results .model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
body[data-theme="business"] .model-card {
  background: transparent;
  border: none;
  border-top: 2px solid #aa9274;
  border-radius: 0;
  padding: 22px 0 0;
  box-shadow: none;
}
body[data-theme="business"] .model-card::before {
  display: none;
}
body[data-theme="business"] .model-card:hover {
  border-color: var(--accent);
  box-shadow: none;
}
body[data-theme="business"] .vendor-logo {
  border-radius: 50%;
}
body[data-theme="business"] .model-title {
  font-size: 20px;
}
body[data-theme="business"] .provider-button {
  border-radius: 0;
}
body[data-theme="business"] .getting-started {
  border-top: 1px solid #a99a85;
}
body[data-theme="business"] .auth-layout {
  grid-template-columns: 1fr 1fr;
}
body[data-theme="business"] .auth-intro {
  order: 2;
  background: #efe5d6;
  border-radius: 0;
}
body[data-theme="business"] .auth-intro h2 {
  font-size: 40px;
}

/* Merchant template gallery; previews are CSS/HTML, never remote images. */
.template-picker {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
.template-picker legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.template-option {
  min-width: 0;
  position: relative;
  padding: 4px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.template-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint);
}
.template-option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.template-option > input {
  position: absolute;
  width: 17px;
  height: 17px;
  top: 17px;
  right: 14px;
  margin: 0;
  z-index: 1;
  accent-color: var(--accent);
}
.template-thumbnail {
  display: block;
  padding: 16px 13px;
  background: #f0f5ff;
  color: #1d3459;
  border-radius: 9px;
  aspect-ratio: 1.5;
  overflow: hidden;
}
.thumb-header {
  display: flex;
  justify-content: space-between;
  padding-right: 20px;
  gap: 10px;
  font-size: 7px;
  border-bottom: 1px solid #c6d6ef;
  padding-bottom: 9px;
}
.thumb-header b {
  white-space: nowrap;
}
.thumb-header > span {
  font-size: 5px;
}
.thumb-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 0 15px;
}
.thumb-hero small {
  font-size: 6px;
  letter-spacing: 0.5px;
  display: block;
}
.thumb-hero strong {
  font-size: clamp(10px, 1.2vw, 17px);
  line-height: 1.6;
  display: block;
  margin: 4px 0 8px;
}
.thumb-button {
  display: block;
  width: 39px;
  height: 9px;
  background: #245fe5;
  border-radius: 2px;
}
.thumb-art {
  display: grid;
  place-items: center;
  min-height: 65px;
  font-size: 40px;
  border-radius: 9px;
  background: #fff;
  color: #245fe5;
}
.thumb-cards {
  display: flex;
  gap: 7px;
}
.thumb-cards i {
  flex: 1;
  height: 26px;
  padding: 5px;
  border: 1px solid #c6d6ef;
  background: #fff;
  border-radius: 4px;
  font-style: normal;
  font-size: 6px;
}
.template-details {
  padding: 12px 10px;
  display: grid;
  gap: 5px;
}
.template-details strong {
  font-size: 15px;
}
.template-details > span {
  font-size: 11px;
  color: var(--muted);
}
[data-template="technology"] .template-thumbnail {
  background: #0b1719;
  color: #d8f2e7;
}
[data-template="technology"] .thumb-header {
  border-color: #36574d;
}
[data-template="technology"] :is(.thumb-art, .thumb-cards i) {
  background: #192f2b;
  color: #8ce6c5;
  border-color: #36574d;
  border-radius: 2px;
}
[data-template="technology"] .thumb-button {
  background: #8ce6c5;
}
[data-template="technology"] .thumb-art {
  font-family: monospace;
  font-size: 0;
}
[data-template="technology"] .thumb-art::after {
  content: "{ API }";
  font-size: 14px;
}
[data-template="business"] .template-thumbnail {
  background: #f6f2e9;
  color: #493827;
}
[data-template="business"] .thumb-header {
  border-color: #cbbca8;
}
[data-template="business"] .thumb-hero strong {
  font-family: "Songti SC", Georgia, serif;
}
[data-template="business"] .thumb-art {
  border-radius: 50% 50% 0 0;
  color: #a74325;
  background: #e9dac5;
}
[data-template="business"] .thumb-button {
  background: #a74325;
}
[data-template="business"] .thumb-cards i {
  border: none;
  border-top: 1px solid #aa9274;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 1000px) {
  body[data-theme="technology"] .market-results .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-theme="business"] .hero {
    gap: 30px;
  }
  .template-thumbnail {
    aspect-ratio: auto;
    min-height: 180px;
  }
}
@media (max-width: 760px) {
  body[data-theme] .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 34px 0;
    margin: 0 0 24px;
  }
  body[data-theme] .hero h1 {
    font-size: clamp(30px, 7vw, 42px);
    letter-spacing: -1px;
  }
  body[data-theme="default"] .theme-showcase {
    transform: none;
  }
  .theme-showcase {
    padding: 24px;
  }
  body[data-theme="business"] .theme-showcase {
    border-radius: 80px 80px 2px 2px;
    padding: 25px;
  }
  body[data-theme="technology"] .hero-console {
    box-shadow: 6px 6px 0 #172b28;
  }
  body[data-theme="technology"] .market-sidebar {
    display: block;
  }
  body[data-theme="technology"] .provider-list {
    margin-top: 12px;
  }
  body[data-theme="business"] .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-theme="business"] .auth-intro {
    order: 0;
  }
  body[data-theme="default"] .getting-started {
    padding: 24px;
  }
  .template-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .template-thumbnail {
    min-height: 0;
    aspect-ratio: 1.7;
  }
  .thumb-hero strong {
    font-size: 18px;
  }
  .thumb-hero {
    padding: 20px 0;
  }
  .thumb-header {
    font-size: 9px;
  }
  .thumb-header > span {
    font-size: 7px;
  }
  .thumb-hero small {
    font-size: 8px;
  }
}
@media (max-width: 540px) {
  body[data-theme="technology"] .market-results .model-grid,
  body[data-theme="business"] .market-results .model-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-theme="business"] .model-title {
    font-size: 18px;
  }
}
