:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f0eff8;
  --ink: #141620;
  --muted: #666879;
  --line: #ddddeb;
  --accent: #a891ff;
  --accent-dark: #765ee6;
  --accent-soft: #f0ecff;
  --brand-violet: #b9a4ff;
  --brand-ink: #151823;
  --success: #237a4b;
  --warning: #8c5b00;
  --shadow: 0 20px 70px rgba(22, 24, 35, 0.11);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfbff 0%, var(--bg) 48%, #f2f1f8 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(124, 92, 255, .25);
  outline-offset: 2px;
}
.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;
}
.hidden { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  padding: 0 32px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(221, 221, 235, .76);
  box-shadow: 0 8px 24px rgba(20,22,32,.04);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.03em;
  cursor: pointer;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 32px rgba(20, 22, 32, .14), inset 0 0 0 1px rgba(20,22,32,.06);
}
.brand-mark img { width: 29px; height: 29px; object-fit: contain; display: block; }
.topnav { display: flex; gap: 6px; }
.nav-link {
  border: 0;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.nav-link.active { color: var(--ink); background: var(--surface); box-shadow: 0 10px 28px rgba(20,22,32,.06); }
.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.language-control select,
.token-balance,
.avatar-button {
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
}
.language-control select { padding: 0 28px 0 11px; }
.token-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 118px;
  justify-content: center;
  padding: 0 13px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.token-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-violet), var(--accent-dark));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.avatar-button {
  min-width: 40px;
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.login-button {
  min-width: 74px;
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-ink), #2c3043 55%, var(--accent-dark));
  box-shadow: 0 10px 22px rgba(118, 94, 230, .16);
}
.avatar-button.authenticated {
  width: auto;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px 0 10px;
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-ink), var(--accent-dark));
}
.profile-dot {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.profile-dot svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
}
.catalog-hero {
  position: relative;
  max-width: 930px;
  padding: 46px 0 34px;
}
.catalog-hero::after {
  display: none;
}
.catalog-hero .eyebrow { margin-bottom: 18px; }
.catalog-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 86px);
  letter-spacing: -.07em;
}
.catalog-hero p { max-width: 720px; font-size: 19px; }
.platform-search {
  position: relative;
  z-index: 12;
  max-width: 820px;
  margin-top: 34px;
}
.platform-search > label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 850;
}
.platform-search-control {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 9px 8px 18px;
  border: 1px solid rgba(166, 153, 218, .36);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(20,22,32,.10);
}
.platform-search-control > span {
  color: var(--muted);
  font-size: 27px;
  transform: rotate(-20deg);
}
.platform-search-control input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 18px;
}
.platform-search-control button {
  align-self: stretch;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand-ink), #2a2d3d 48%, #6f5de2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(118, 94, 230, .22);
}
.platform-search-results {
  position: absolute;
  top: calc(100% - 28px);
  left: 0;
  right: 0;
  display: grid;
  gap: 7px;
  max-height: 440px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(25,26,22,.16);
}
.platform-search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.platform-search-result:hover { background: var(--surface-2); }
.platform-search-result > span:nth-child(2) { display: grid; gap: 3px; }
.platform-search-result small { color: var(--muted); }
.platform-search-result > strong { padding-right: 5px; }
.custom-search-result {
  margin-top: 3px;
  border: 1px solid rgba(124,92,255,.28);
  background: var(--accent-soft);
}
.search-empty { margin: 5px 7px 2px; font-size: 12px; }
.platform-search-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}
.platform-search-hint button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 22px rgba(20,22,32,.04);
  cursor: pointer;
}
.catalog-stage-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(221, 221, 235, .86);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 45px rgba(20,22,32,.05);
}
.catalog-stage-row > i { height: 1px; background: var(--line); }
.catalog-stage {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-stage span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 800;
}
.catalog-stage.active { color: var(--ink); }
.catalog-stage.active span { color: white; background: linear-gradient(135deg, var(--brand-ink), var(--accent-dark)); }
.catalog-block { padding: 52px 0 12px; scroll-margin-top: 90px; }
.catalog-block-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}
.catalog-block-heading > p { max-width: 480px; margin: 0; text-align: right; }
.catalog-block-heading h2 { margin: 7px 0 0; }
.section-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.audience-card {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid rgba(221, 221, 235, .94);
  border-radius: 24px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.78)),
    radial-gradient(circle at 100% 0%, rgba(185,164,255,.18), transparent 38%);
  box-shadow: 0 12px 42px rgba(20,22,32,.045);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.audience-card:hover { transform: translateY(-4px); border-color: rgba(168,145,255,.7); box-shadow: var(--shadow); }
.audience-card.selected { border: 2px solid var(--accent-dark); padding: 20px; box-shadow: 0 22px 70px rgba(118, 94, 230, .15); }
.audience-card-index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--brand-ink), #26293a 58%, var(--accent-dark));
  font-size: 11px;
  font-weight: 900;
}
.audience-card h3 { margin-bottom: 8px; font-size: 25px; }
.audience-card p { min-height: 68px; margin-bottom: 20px; font-size: 13px; }
.audience-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: auto; }
.micro-platform-logo {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: #454741;
  font-size: 9px;
  font-weight: 900;
}
.audience-more {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.audience-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 12px; font-weight: 800; }
.audience-card-footer span:last-child { font-size: 18px; }
.selection-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
}
.selection-breadcrumb .text-button { margin-left: auto; }
.selection-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 750;
  cursor: pointer;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.platform-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: var(--surface);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.platform-card:hover { transform: translateY(-2px); border-color: #bcbdb5; }
.platform-card.selected { border: 2px solid var(--accent); padding: 15px; background: #fbfaff; }
.platform-card b { margin-top: 14px; font-size: 14px; }
.platform-card small { margin-top: 4px; color: var(--muted); }
.platform-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: white;
  background: #343630;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.platform-logo img, .micro-platform-logo img {
  width: 56%;
  height: 56%;
  display: block;
  object-fit: contain;
}
.platform-logo img + .platform-fallback-mark, .micro-platform-logo img + .platform-fallback-mark { display: none; }
.platform-fallback-mark { line-height: 1; }
.platform-logo.large { width: 70px; height: 70px; border-radius: 18px; font-size: 23px; }
.platform-logo.youtube, .micro-platform-logo.youtube { background: #ed3324; }
.platform-logo.instagram, .micro-platform-logo.instagram { background: linear-gradient(135deg, #7a4ee8, #e14e76, #f1a23d); }
.platform-logo.tiktok, .micro-platform-logo.tiktok { background: #111; box-shadow: inset 3px 0 #22e4d8, inset -3px 0 #ff3d69; }
.platform-logo.telegram, .micro-platform-logo.telegram { background: #279bd7; }
.platform-logo.x, .micro-platform-logo.x { background: #111; }
.platform-logo.pinterest, .micro-platform-logo.pinterest { background: #bd081c; }
.platform-logo.patreon, .micro-platform-logo.patreon { background: #ff674d; }
.platform-logo.substack, .micro-platform-logo.substack { background: #f1692f; }
.platform-logo.medium, .micro-platform-logo.medium { background: #111; }
.platform-logo.snapchat, .micro-platform-logo.snapchat { color: #111; background: #fffc00; }
.platform-logo.twitch, .micro-platform-logo.twitch { background: #9146ff; }
.platform-logo.kick, .micro-platform-logo.kick { color: #111; background: #53fc18; }
.platform-logo.discord, .micro-platform-logo.discord { background: #5865f2; }
.platform-logo.trovo, .micro-platform-logo.trovo { background: #19d46b; }
.platform-logo.linkedin, .micro-platform-logo.linkedin { background: #0a66c2; }
.platform-logo.upwork, .micro-platform-logo.upwork { background: #14a800; }
.platform-logo.fiverr, .micro-platform-logo.fiverr { background: #1dbf73; }
.platform-logo.behance, .micro-platform-logo.behance { background: #1769ff; }
.platform-logo.dribbble, .micro-platform-logo.dribbble { background: #ea4c89; }
.platform-logo.contra, .micro-platform-logo.contra { background: #111; }
.platform-logo.freelancer, .micro-platform-logo.freelancer { background: #29b2fe; }
.platform-logo.website, .micro-platform-logo.website { background: #6658d3; }
.platform-logo.facebook, .micro-platform-logo.facebook { background: #1877f2; }
.platform-logo.google, .micro-platform-logo.google { background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); }
.platform-logo.whatsapp, .micro-platform-logo.whatsapp { background: #25d366; }
.platform-logo.shopify, .micro-platform-logo.shopify { background: #6cab2f; }
.platform-logo.etsy, .micro-platform-logo.etsy { background: #f1641e; }
.platform-logo.amazon, .micro-platform-logo.amazon { background: #131921; }
.platform-logo.ebay, .micro-platform-logo.ebay { background: #e53238; }
.platform-logo.ozon, .micro-platform-logo.ozon { background: #1769ff; }
.platform-logo.wildberries, .micro-platform-logo.wildberries { background: #cb11ab; }
.platform-logo.gumroad, .micro-platform-logo.gumroad { background: #ff90e8; color: #111; }
.platform-logo.webwrap, .micro-platform-logo.webwrap { background: var(--accent); }
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.catalog-template-card {
  min-height: 225px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: var(--surface);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.catalog-template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.catalog-template-card.featured { border-color: rgba(124,92,255,.48); background: #fbfaff; }
.template-card-top { display: flex; justify-content: space-between; align-items: start; }
.template-card-top .platform-logo { width: 34px; height: 34px; }
.template-status {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 800;
}
.catalog-template-card h3 { margin: 24px 0 8px; }
.catalog-template-card p { flex: 1; margin-bottom: 18px; font-size: 13px; }
.template-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.template-card-footer b { color: var(--ink); }

.generic-template-page > .back-link { margin-bottom: 42px; }
.generic-template-hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: center;
  min-height: 360px;
}
.platform-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 800; }
.generic-template-hero h1 { margin-bottom: 18px; font-size: clamp(48px, 6vw, 74px); }
.generic-template-summary {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: 22px;
  color: white;
  background: var(--ink);
}
.summary-logo-wrap { flex: 1; }
.generic-template-summary > span { color: #aaaca4; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.generic-template-summary > strong { margin-top: 8px; font-size: 26px; }
.generic-template-summary > small { margin-top: 8px; color: #aaaca4; line-height: 1.4; }
.generic-template-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; margin-top: 55px; align-items: start; }
.compact-heading { margin-bottom: 14px; }
.generic-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.generic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.generic-item span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--success); background: #eaf7ef; font-size: 12px; font-weight: 900; }
.brief-heading { margin-top: 42px; }
.brief-focus-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.brief-focus-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; }
.generic-start-card { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 45px rgba(25,26,22,.06); }
.generic-start-card h2 { margin-top: 14px; }
.generic-price-row { display: flex; align-items: baseline; gap: 5px; margin: 22px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.generic-price-row strong { margin-left: auto; color: var(--ink); font-size: 27px; }
.generic-start-card > small { display: block; margin-top: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
.generic-brief-page > .back-link { margin-bottom: 42px; }
.generic-brief-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 60px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.generic-brief-header h1 { margin-top: 18px; font-size: clamp(44px, 6vw, 70px); }
.brief-progress-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: 20px;
  color: white;
  background: var(--ink);
}
.brief-progress-card span, .brief-progress-card small { color: #aaaca4; }
.brief-progress-card strong { margin: 8px 0 2px; font-size: 46px; line-height: 1; }
.generic-brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; margin-top: 54px; align-items: start; }
.dynamic-brief-fields { display: grid; gap: 12px; }
.guided-funnel-page .generic-brief-header {
  align-items: end;
}
.guided-funnel-page .brief-progress-card {
  background: linear-gradient(135deg, #141722, #6d52f4);
}
.guided-funnel-note {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(124,92,255,.26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,92,255,.1), rgba(255,255,255,.72));
}
.guided-funnel-note span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.guided-funnel-note b { font-size: 20px; line-height: 1.15; }
.guided-funnel-note p { margin: 0; color: var(--muted); font-size: 13px; }
.guided-funnel-fields {
  display: grid;
  gap: 12px;
}
.guided-step-card {
  display: grid;
  grid-template-columns: 38px minmax(165px, 210px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 42px rgba(31,33,45,.04);
}
.guided-step-card:hover {
  border-color: rgba(124,92,255,.32);
}
.guided-step-copy {
  display: grid;
  gap: 5px;
}
.guided-step-copy b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}
.guided-step-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}
.guided-step-card.identity-brief-row input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}
.guided-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.guided-style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.guided-palette-area {
  display: grid;
  gap: 10px;
}
.guided-palette-area .custom-palette-fields {
  margin-top: 0;
}
.guided-extra-field,
.guided-social-field {
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.guided-funnel-page .generic-brief-header,
.guided-funnel-page .compact-heading,
.guided-funnel-page .generic-brief-summary,
.guided-funnel-page #generic-image-inputs {
  display: none;
}
.guided-funnel-page .generic-brief-layout {
  display: block;
  margin-top: 0;
}
.guided-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}
.guided-wizard-main,
.guided-live-preview {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 24px 70px rgba(25,28,40,.07);
}
.guided-wizard-main {
  min-height: 650px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 28px;
}
.guided-wizard-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.guided-step-counter {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 12px;
  font-weight: 850;
}
.guided-step-counter b {
  color: var(--ink);
}
.guided-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececf5;
}
.guided-progress-track i {
  display: block;
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a1d29, var(--accent));
  transition: width .25s ease;
}
.guided-screen {
  display: none;
  padding: 56px 0 34px;
  animation: guidedStepIn .22s ease both;
}
.guided-screen.active {
  display: block;
}
.guided-screen h2 {
  max-width: 720px;
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -.06em;
}
.guided-screen p {
  max-width: 670px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.guided-big-input {
  display: grid;
  gap: 10px;
  max-width: 720px;
}
.guided-big-input span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.guided-big-input input {
  width: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--bg);
  font-size: 25px;
  font-weight: 850;
  outline: none;
}
.guided-big-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}
.guided-wizard .guided-choice-grid,
.guided-wizard .guided-style-grid,
.guided-wizard .brief-palette-grid {
  max-width: 820px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.guided-wizard .brief-choice,
.guided-wizard .simple-style-choice,
.guided-wizard .brief-palette {
  min-height: 96px;
  border-radius: 18px;
  padding: 16px;
}
.guided-wizard .brief-choice span,
.guided-wizard .simple-style-choice span,
.guided-wizard .brief-palette b {
  font-size: 14px;
  line-height: 1.2;
}
.guided-upload-slot {
  margin: 0 0 18px;
}
.guided-final-field {
  max-width: 820px;
  margin-top: 14px;
}
.guided-final-submit {
  max-width: 420px;
  margin-top: 24px;
  padding: 18px 22px;
  font-size: 16px;
}
.guided-submit-note {
  display: block;
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
  text-align: center;
}
.guided-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.guided-nav .button {
  min-width: 150px;
}
.guided-live-preview {
  position: sticky;
  top: 92px;
  padding: 22px;
}
.guided-youtube-card {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}
.guided-youtube-banner {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(135deg, #161927, #7257f5);
}
.guided-youtube-banner strong {
  max-width: 240px;
  font-size: 34px;
  line-height: .95;
  letter-spacing: -.05em;
}
.guided-youtube-banner span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.guided-youtube-strip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}
.guided-youtube-strip i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-style: normal;
  font-weight: 900;
}
.guided-youtube-strip b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.guided-youtube-strip small {
  color: var(--muted);
  font-size: 12px;
}
.guided-plan-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.guided-plan-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.guided-plan-list span {
  color: var(--muted);
  font-size: 12px;
}
.guided-plan-list b {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}
@keyframes guidedStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.platform-brief-fields { display: grid; gap: 10px; }
.platform-brief-row {
  display: grid;
  grid-template-columns: 38px 210px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.platform-brief-copy, .platform-question-heading { display: grid; gap: 5px; }
.platform-brief-copy b, .platform-question-heading b { font-size: 13px; line-height: 1.35; }
.platform-brief-copy small, .platform-question-heading small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}
.platform-brief-copy small {
  color: var(--accent-dark);
  text-transform: uppercase;
}
.identity-brief-row input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg);
}
.brief-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.brief-choice {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  background: var(--bg);
  cursor: pointer;
}
.brief-choice i {
  width: 8px;
  height: 8px;
  border: 2px solid #c7c8c0;
  border-radius: 50%;
}
.brief-choice span { font-size: 10px; font-weight: 750; line-height: 1.25; }
.brief-choice.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.brief-choice.selected i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px white; }
.brief-palette-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.brief-palette {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
  background: var(--bg);
  cursor: pointer;
}
.brief-palette.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.custom-palette-choice {
  min-height: 61px;
  align-content: center;
}
.palette-swatches { display: grid; grid-template-columns: repeat(4, 1fr); height: 24px; overflow: hidden; border-radius: 7px; }
.palette-swatches i { background: var(--swatch); }
.brief-palette b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.additional-brief-field {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding: 17px;
  border: 1px dashed #bfc0b8;
  border-radius: 15px;
  background: rgba(255,255,255,.48);
}
.additional-brief-field > span { display: grid; gap: 4px; }
.additional-brief-field b { font-size: 13px; }
.additional-brief-field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.additional-brief-field textarea {
  width: 100%;
  min-height: 98px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
}
.simple-brief-fields { display: grid; gap: 10px; }
.simple-brief-field {
  display: grid;
  grid-template-columns: 38px 190px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.simple-brief-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-top: 5px;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  font-size: 10px;
  font-weight: 900;
}
.simple-brief-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 11px; }
.simple-brief-copy b { font-size: 13px; }
.simple-brief-copy small {
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.simple-brief-field > input, .simple-brief-field > textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
}
.style-brief-field { align-items: center; }
.simple-style-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.simple-style-choice {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}
.simple-style-choice.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.simple-style-choice i { width: 26px; height: 18px; border-radius: 6px; background: #d8d9d2; }
.simple-style-choice i.clean { background: linear-gradient(135deg,#fff 0 48%,#dadbd3 48%); }
.simple-style-choice i.bold { background: linear-gradient(135deg,#ff5f57,#7658ff); }
.simple-style-choice i.premium { background: linear-gradient(135deg,#171815,#a58746); }
.simple-style-choice i.friendly { background: linear-gradient(135deg,#ffcb77,#72c6a8); }
.simple-style-choice i.creative { background: linear-gradient(135deg,#ff71ce,#01cdfe); }
.simple-style-choice span { overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 800; }
.advanced-brief {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.45);
}
.advanced-brief summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}
.advanced-brief summary::-webkit-details-marker { display: none; }
.advanced-brief summary > span { display: grid; gap: 2px; }
.advanced-brief summary small { color: var(--muted); font-size: 11px; }
.advanced-brief summary > strong { font-size: 20px; transition: transform .15s ease; }
.advanced-brief[open] summary > strong { transform: rotate(45deg); }
.advanced-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 15px 15px; }
.advanced-brief-grid .field { margin: 0; }
.advanced-brief-grid textarea { min-height: 80px; resize: vertical; }
.dynamic-brief-field {
  display: grid;
  grid-template-columns: 34px 180px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.dynamic-brief-field > span { padding-top: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.dynamic-brief-field > b { padding-top: 11px; font-size: 13px; }
.dynamic-brief-field > b small {
  display: inline-block;
  margin-left: 5px;
  color: var(--accent-dark);
  font-size: 9px;
  text-transform: uppercase;
}
.dynamic-brief-field input, .dynamic-brief-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
}
.image-input-section { margin-top: 48px; }
.image-input-heading { align-items: end; }
.image-input-heading > p { max-width: 430px; font-size: 13px; }
.image-upload-zone {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px dashed #bfc0b8;
  border-radius: 16px;
  text-align: left;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.image-upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.image-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.upload-plus {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  font-size: 24px;
}
.image-upload-zone > span:last-child { display: grid; gap: 4px; }
.image-upload-zone small { color: var(--muted); }
.image-privacy-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.image-reference-list { display: grid; gap: 12px; margin-top: 18px; }
.image-reference-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.image-reference-preview {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
}
.image-reference-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.image-reference-preview > span {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: rgba(23,24,21,.82);
  font-size: 10px;
  font-weight: 900;
}
.image-reference-fields { min-width: 0; display: grid; gap: 12px; }
.image-reference-title { display: flex; justify-content: space-between; gap: 16px; }
.image-reference-title > div { min-width: 0; display: grid; gap: 2px; }
.image-reference-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-reference-title small { color: var(--muted); }
.image-main-instruction { margin: 0; }
.image-main-instruction textarea { min-height: 92px; resize: vertical; }
.image-protection-settings {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245,245,241,.65);
}
.image-protection-settings summary { cursor: pointer; font-size: 11px; font-weight: 800; }
.image-protection-settings summary small { margin-left: 5px; color: var(--muted); font-weight: 600; }
.image-protection-settings > p { margin: 10px 0; font-size: 11px; }
.image-protection-settings .field { margin: 0; }
.image-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.image-field-grid .field { margin: 0; }
.image-field-grid textarea { min-height: 82px; resize: vertical; }
.custom-palette-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.palette-brief-row .custom-palette-fields {
  grid-column: 3 / -1;
}
.custom-palette-fields label,
.social-links-field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.custom-palette-fields label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
}
.custom-palette-fields input { width: 100%; height: 38px; border: 0; background: transparent; cursor: pointer; }
.social-links-field {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.social-links-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}
.social-links-toggle input { accent-color: var(--accent); }
.image-model-instruction {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
}
.image-model-instruction summary { cursor: pointer; font-size: 11px; font-weight: 800; }
.image-model-instruction pre, .blueprint-image-contract pre {
  margin: 10px 0 0;
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.brief-summary-row { display: grid; gap: 5px; padding: 14px 0; border-top: 1px solid var(--line); }
.brief-summary-row span { color: var(--muted); font-size: 11px; }
.brief-summary-row strong { font-size: 13px; overflow-wrap: anywhere; }
.generic-brief-summary .button { margin-top: 10px; }
.generate-final-button {
  min-height: 58px;
  justify-content: center;
  font-size: 17px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(124, 92, 255, .28);
}
.blueprint-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  margin-top: 50px;
  padding: 30px;
  border-radius: 20px;
  color: white;
  background: var(--ink);
}
.blueprint-preview h2 { margin: 12px 0 8px; }
.blueprint-preview p { margin-bottom: 0; color: #aaaca4; }
.blueprint-server-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white !important;
  font-size: 13px;
}
.blueprint-stats { display: flex; gap: 22px; }
.blueprint-stats > div { min-width: 100px; display: grid; gap: 5px; }
.blueprint-stats strong { font-size: 24px; }
.blueprint-stats span { max-width: 120px; color: #aaaca4; font-size: 10px; line-height: 1.3; }
.blueprint-preview .button { color: var(--ink); background: white; }
.blueprint-actions {
  display: grid;
  gap: 10px;
}
.generation-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.generation-results a {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.12);
  text-decoration: none;
}
.generation-results small { color: #aaaca4; }
.projects-page .page-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.projects-page h1 { margin: 12px 0 10px; font-size: clamp(44px, 6vw, 78px); }
.projects-list { display: grid; gap: 18px; }
.project-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 18px 60px rgba(25,26,22,.06);
}
.project-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.project-card h2 { margin: 8px 0 6px; font-size: clamp(24px, 3vw, 38px); }
.project-card p { margin: 0; color: var(--muted); }
.job-status {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.job-status.ready { color: #15643c; background: #dff7e9; }
.job-status.failed { color: #8a251e; background: #ffe1dc; }
.job-status.generating, .job-status.queued { color: var(--accent-dark); background: var(--accent-soft); }
.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-meta-row span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
}
.project-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
}
.project-empty.small { padding: 16px; font-size: 13px; }
.generated-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.generated-result-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: white;
}
.generated-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}
.generated-preview span {
  position: absolute;
  z-index: 0;
  color: var(--muted);
  font-size: 12px;
}
.generated-preview img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.generated-preview img:not([src]) {
  opacity: 0;
}
.generated-preview.preview-failed span {
  max-width: 150px;
  text-align: center;
}
.generated-preview.preview-failed span::before {
  content: "Preview failed. Download still available.";
}
.generated-preview.preview-failed span {
  font-size: 0;
}
.generated-preview.preview-failed span::before {
  font-size: 12px;
}
.generated-result-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.generated-result-card .button {
  width: 100%;
  justify-content: center;
  color: white !important;
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  font-weight: 900;
}
.result-refine-box {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.result-refine-box summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}
.result-refine-box textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
}
.blueprint-image-contract {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.blueprint-image-contract pre { max-height: 300px; color: #d4d5cf; }
.manual-plus-runner {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(112,87,255,.12), transparent 28%),
    var(--surface);
  box-shadow: 0 20px 70px rgba(25,26,22,.07);
}
.manual-runner-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.manual-runner-heading > div { max-width: 760px; }
.manual-runner-heading h2 { margin: 12px 0 9px; font-size: clamp(28px, 4vw, 44px); }
.manual-runner-heading p { margin: 0; }
.manual-mode-badge {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #b9abff;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.manual-runner-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.manual-step-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
}
.manual-step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  font-size: 10px;
  font-weight: 900;
}
.manual-step-card h3 { margin-bottom: 5px; font-size: 18px; }
.manual-step-card p { margin: 0; font-size: 12px; line-height: 1.5; }
.manual-asset-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}
.manual-asset-tab {
  min-width: 126px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: var(--bg);
  cursor: pointer;
}
.manual-asset-tab.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.manual-asset-tab span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--ink);
  font-size: 8px;
  font-weight: 900;
}
.manual-asset-tab b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.manual-prompt-card textarea {
  width: 100%;
  min-height: 230px;
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #45463f;
  background: var(--bg);
  resize: vertical;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.manual-prompt-hint { color: var(--muted); font-size: 10px; line-height: 1.4; }
.manual-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.manual-step-actions .button { min-height: 42px; padding: 0 15px; }
.manual-reference-list { display: grid; gap: 8px; }
.manual-reference-empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--bg);
  font-size: 11px;
  line-height: 1.5;
}
.manual-reference-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 11px;
  background: var(--surface-2);
}
.manual-reference-item span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  font-size: 9px;
  font-weight: 900;
}
.manual-reference-item div { min-width: 0; display: grid; gap: 2px; }
.manual-reference-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.manual-reference-item small { color: var(--muted); font-size: 9px; }
.manual-result-upload {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px dashed #bfc0b8;
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
}
.manual-result-upload:hover { border-color: var(--accent); background: var(--accent-soft); }
.manual-result-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.manual-result-upload > span:first-of-type {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: white;
  background: var(--accent);
  font-size: 22px;
}
.manual-result-upload > span:last-child { display: grid; gap: 4px; }
.manual-result-upload small, .manual-privacy-note { color: var(--muted); font-size: 10px; line-height: 1.4; }
.manual-quality-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 18px;
  color: white;
  background: var(--ink);
}
.manual-quality-heading, .manual-package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.manual-quality-heading h3 { margin-top: 8px; }
.manual-quality-heading > strong { font-size: 32px; }
.manual-result-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.manual-result-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 13px;
  color: #aaaca4;
  text-align: center;
  font-size: 11px;
}
.manual-result-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: #252621;
}
.manual-result-card img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: #33342e; }
.manual-result-card-body { display: grid; gap: 8px; padding: 12px; }
.manual-result-card-body > div:first-child { min-width: 0; display: grid; gap: 3px; }
.manual-result-card-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.manual-result-card-body small { color: #aaaca4; font-size: 9px; }
.manual-result-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.manual-result-status span {
  padding: 5px 7px;
  border-radius: 7px;
  color: #b9f6ce;
  background: rgba(73,183,114,.16);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.manual-result-status span.warning { color: #ffd59a; background: rgba(255,174,59,.15); }
.manual-result-status button { color: #cccdc7; font-size: 9px; }
.manual-package-footer { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.manual-package-footer > div { display: grid; gap: 4px; }
.manual-package-footer small { color: #aaaca4; }
.manual-package-footer .button:disabled { cursor: not-allowed; opacity: .4; }
.hero { max-width: 820px; padding: 42px 0 28px; }
.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}
h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.55; }
.hero > p, .lead { font-size: 19px; max-width: 690px; }
.lead.compact { font-size: 17px; }

.filter-row {
  display: flex;
  gap: 8px;
  padding: 8px 0 36px;
  overflow-x: auto;
}
.filter-chip {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.filter-chip.active { color: white; border-color: var(--ink); background: var(--ink); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 18px 0 24px;
}
.section-heading h2, .section-heading p { margin-bottom: 6px; }
.product-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}
.product-card {
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card[hidden] { display: none; }
.product-visual {
  position: relative;
  height: 245px;
  overflow: hidden;
  background: #d6d6ce;
}
.featured-card .product-visual { height: 260px; }
.youtube-visual {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dcd8ff, #edece6 58%, #c2ebdc);
}
.browser-mockup {
  width: 80%;
  overflow: hidden;
  border: 5px solid #1d1e1a;
  border-radius: 10px;
  background: white;
  box-shadow: 0 16px 35px rgba(20,20,20,.16);
  transform: rotate(-2deg);
}
.browser-bar { height: 18px; display: flex; gap: 4px; align-items: center; padding: 0 7px; background: #f0f0ec; }
.browser-bar i { width: 5px; height: 5px; border-radius: 50%; background: #c0c1bb; }
.channel-banner {
  height: 92px;
  display: grid;
  place-items: center;
  color: white;
  background: #7659f3;
}
.mock-word { font-size: clamp(12px, 2vw, 23px); font-weight: 900; letter-spacing: -.05em; }
.channel-row { height: 55px; display: flex; align-items: center; gap: 9px; padding: 0 14px; }
.mock-avatar, .preview-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #171815;
  font-weight: 800;
}
.mock-avatar { width: 31px; height: 31px; }
.mock-lines b, .mock-lines span { display: block; height: 5px; border-radius: 99px; background: #deded8; }
.mock-lines b { width: 75px; margin-bottom: 5px; background: #95968f; }
.mock-lines span { width: 110px; }
.platform-pill, .asset-count {
  position: absolute;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,.9);
}
.platform-pill { top: 14px; left: 14px; }
.asset-count { right: 14px; bottom: 14px; }
.product-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.card-meta { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dot-separator { margin: 0 4px; }
.product-card-body p { flex: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.price-label { color: var(--muted); }
.thumbnail-visual {
  display: grid;
  place-items: end start;
  padding: 18px;
  color: white;
  background: linear-gradient(130deg, #161713 40%, #f2743e 41%);
}
.thumbnail-visual::before { content: "THE TRUTH ABOUT AI"; font-size: 30px; font-weight: 900; line-height: .9; width: 160px; }
.thumbnail-visual span { position: absolute; right: 12px; bottom: 12px; padding: 3px 5px; background: #111; font-size: 11px; }
.instagram-visual { display: grid; place-items: center; background: linear-gradient(150deg, #f5d786, #e68ab4 55%, #8665e6); }
.story-ring { width: 110px; height: 110px; border: 10px solid white; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.coming-soon { color: var(--muted); font-size: 13px; font-weight: 700; }

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-ink), #2c3043 50%, var(--accent-dark));
  box-shadow: 0 16px 34px rgba(118, 94, 230, .20);
}
.button.primary:hover { background: linear-gradient(135deg, #0f111a, #25293a 50%, #684fe0); box-shadow: 0 18px 42px rgba(118, 94, 230, .26); }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.78); }
.button.ghost { border-color: transparent; color: var(--muted); background: transparent; }
.button.small { min-height: 38px; padding: 0 13px; font-size: 13px; }
.button.full { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.back-link, .text-button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.product-hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 64px;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-copy h1 { font-size: clamp(48px, 6vw, 76px); }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 26px 0; color: var(--success); font-size: 13px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.delivery-preview { position: relative; min-height: 440px; display: grid; place-items: center; }
.delivery-card { width: 90%; border: 8px solid #1b1c18; border-radius: 20px; background: white; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.preview-banner { height: 210px; display: grid; place-items: center; color: white; background: linear-gradient(120deg, #7357ed, #4e35c5); font-size: 36px; font-weight: 900; letter-spacing: -.06em; }
.preview-profile { height: 90px; display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.preview-avatar { width: 50px; height: 50px; }
.preview-profile small { display: block; margin-top: 4px; color: var(--muted); }
.floating-file { position: absolute; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(20,20,20,.1); color: var(--muted); font-size: 12px; }
.floating-file b { color: var(--ink); }
.avatar-file { top: 25px; right: 0; transform: rotate(4deg); }
.watermark-file { bottom: 30px; left: 0; transform: rotate(-3deg); }
.what-you-get { padding: 56px 0; }
.inline-price { white-space: nowrap; padding: 12px 15px; border-radius: 999px; background: var(--surface); }
.asset-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.asset-summary { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.asset-icon, .file-type { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; color: white; background: var(--ink); }
.circle-icon { border-radius: 50%; }
.banner-icon { width: 58px; border-radius: 5px; background: var(--accent); }
.mark-icon { border-radius: 8px; background: #2f8f65; font-weight: 900; }
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.process-strip > div { padding: 22px; border-right: 1px solid var(--line); }
.process-strip > div:last-child { border: 0; }
.process-strip span { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 800; }
.process-strip b, .process-strip small { display: block; }
.process-strip small { margin-top: 5px; color: var(--muted); }

.flow-page { padding-top: 28px; }
.flow-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 55px; }
.flow-progress { display: flex; gap: 7px; }
.flow-progress span { width: 48px; height: 4px; border-radius: 99px; background: var(--line); }
.flow-progress span.active { background: var(--ink); }
.step-label { justify-self: end; color: var(--muted); font-size: 13px; }
.config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 54px; align-items: start; }
.config-main h1, .brief-panel h1, .review-heading h1 { margin-top: 12px; font-size: clamp(40px, 5vw, 62px); }
.config-section { margin-top: 48px; }
.config-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.config-section-title h2 { margin: 0; }
.config-section-title span { color: var(--muted); font-size: 12px; }
.option-list { display: grid; gap: 10px; }
.option-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.option-row.selected { border-color: rgba(124,92,255,.5); background: #fbfaff; }
.option-toggle { width: 22px; height: 22px; accent-color: var(--accent); }
.option-copy strong, .option-copy small { display: block; }
.option-copy small { margin-top: 4px; color: var(--muted); }
.option-price { color: var(--muted); font-size: 13px; font-weight: 700; }
.quantity-control { display: flex; align-items: center; gap: 10px; }
.quantity-control button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.inline-warning { margin-top: 12px; padding: 12px 14px; border-radius: 10px; color: var(--warning); background: #fff3d8; font-size: 13px; }
.order-summary { position: sticky; top: 100px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 40px rgba(31,32,27,.06); }
.summary-preview { position: relative; height: 130px; margin-bottom: 22px; border-radius: 12px; background: #eee9ff; overflow: hidden; }
.mini-banner { height: 72px; background: var(--accent); }
.mini-avatar { position: absolute; left: 18px; top: 52px; width: 42px; height: 42px; display: grid; place-items: center; border: 4px solid white; border-radius: 50%; color: white; background: var(--ink); font-weight: 800; }
.selected-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.summary-chip { padding: 6px 9px; border-radius: 999px; background: var(--surface-2); font-size: 11px; }
.price-breakdown { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.price-breakdown > div { display: flex; justify-content: space-between; }
.price-breakdown b { color: var(--ink); }
.total-row { display: flex; align-items: baseline; gap: 6px; padding: 18px 0; }
.total-row strong { margin-left: auto; font-size: 28px; }
.auto-save { display: block; margin-top: 12px; color: var(--muted); text-align: center; }

.narrow-flow { width: min(850px, calc(100% - 48px)); }
.brief-panel .eyebrow { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.full-field { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 500;
}
.field textarea { resize: vertical; }
.flow-actions, .review-actions, .concept-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 38px; }
.save-status { color: var(--success); font-size: 13px; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0; }
.style-card { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 13px; text-align: left; background: var(--surface); cursor: pointer; }
.style-card.selected { border: 2px solid var(--accent); padding: 12px; background: #faf9ff; }
.style-swatch { grid-row: 1 / 3; width: 58px; height: 58px; border-radius: 10px; }
.style-swatch.friendly { background: linear-gradient(135deg, #6951dc 50%, #f1cb63 50%); }
.style-swatch.clean { background: linear-gradient(135deg, #e9e9e2 50%, #31322d 50%); }
.style-swatch.bold { background: linear-gradient(135deg, #ff6647 50%, #ffd747 50%); }
.style-swatch.premium { background: linear-gradient(135deg, #151713 50%, #9a7a43 50%); }
.style-card small { color: var(--muted); }
.range-group { margin: 0 0 28px; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.range-group input { width: 100%; accent-color: var(--accent); }

.review-heading { margin-bottom: 32px; }
.review-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.review-section { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.review-section:last-child { border: 0; }
.review-section > span { color: var(--muted); font-size: 13px; }
.review-section strong, .review-section small { display: block; }
.review-section small { margin-top: 5px; color: var(--muted); }
.price-review { background: #faf9ff; }
.copy-lock { display: flex; gap: 14px; margin-top: 18px; padding: 18px; border-radius: 14px; color: var(--success); background: #eaf7ef; }
.copy-lock p { margin: 5px 0 0; color: #3b6c50; }
.lock-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--success); }

.center-heading { max-width: 750px; margin: 24px auto 42px; text-align: center; }
.center-heading h1 { margin: 12px auto 16px; font-size: clamp(42px, 5vw, 64px); }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.concept-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.concept-card.selected { border: 2px solid var(--accent); box-shadow: 0 16px 45px rgba(92,62,220,.12); }
.concept-preview { position: relative; height: 240px; display: flex; align-items: end; padding: 22px; color: white; overflow: hidden; }
.concept-preview b { position: relative; z-index: 2; font-size: 30px; line-height: .88; letter-spacing: -.06em; }
.concept-avatar { position: absolute; top: 18px; right: 18px; width: 54px; height: 54px; display: grid; place-items: center; border: 3px solid rgba(255,255,255,.65); border-radius: 50%; font-weight: 900; }
.clarity-concept { background: linear-gradient(135deg, #6950df 60%, #e8bf54 60%); }
.editorial-concept { color: #1a1b17; background: linear-gradient(160deg, #ebe8db 65%, #d95140 65%); }
.momentum-concept { background: linear-gradient(145deg, #182d32 60%, #45af86 60%); }
.concept-body { padding: 20px; }
.concept-body > div:first-child { display: flex; align-items: center; gap: 10px; }
.concept-index { color: var(--muted); font-size: 11px; }
.concept-body h3 { margin: 0; }
.palette { display: flex; gap: 5px; margin: 18px 0; }
.palette i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.palette i:nth-child(2) { background: #e8bf54; }
.palette i:nth-child(3) { background: #191a17; }

.result-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.success-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 24px; font-weight: 900; }
.result-heading h1 { margin: 7px 0 8px; font-size: clamp(38px, 5vw, 58px); }
.result-heading p { margin: 0; }
.quality-strip { display: flex; flex-wrap: wrap; gap: 20px; margin: 34px 0; padding: 16px 20px; border-radius: 13px; color: var(--success); background: #eaf7ef; font-size: 13px; font-weight: 700; }
.result-showcase { display: grid; place-items: center; min-height: 480px; border-radius: 24px; background: linear-gradient(135deg, #ddd8ff, #eeeae0); }
.final-channel { width: 82%; overflow: hidden; border: 8px solid #171815; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.final-banner { height: 250px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #6850db 65%, #e8bf54 65%); }
.final-banner.editorial-final { color: #1a1b17; background: linear-gradient(160deg, #ebe8db 65%, #d95140 65%); }
.final-banner.momentum-final { color: white; background: linear-gradient(145deg, #182d32 60%, #45af86 60%); }
.final-banner span { font-size: clamp(30px, 5vw, 58px); line-height: .85; font-weight: 900; letter-spacing: -.07em; }
.final-channel-meta { display: flex; align-items: center; gap: 12px; min-height: 100px; padding: 15px 24px; }
.final-avatar { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: #171815; font-size: 22px; font-weight: 900; }
.final-channel-meta small { display: block; margin-top: 4px; color: var(--muted); }
.final-channel-meta button { margin-left: auto; border: 0; padding: 10px 16px; border-radius: 999px; color: white; background: #171815; }
.file-list { display: grid; gap: 10px; margin-top: 24px; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.file-row .file-type { margin: 0; }
.file-row strong, .file-row small { display: block; }
.file-row small { margin-top: 4px; color: var(--muted); }
.dna-icon { border-radius: 9px; color: var(--ink); background: #eee9ff; font-weight: 900; }
.next-step-card { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 50px; padding: 30px; border-radius: var(--radius); background: #171815; color: white; }
.next-step-card p { margin-bottom: 0; color: #adafa7; }
.next-step-card .button { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 18px);
  padding: 12px 16px;
  border-radius: 11px;
  color: white;
  background: #1c1d19;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 14, 20, .36);
}
.auth-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 16, 24, .22);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.modal-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-modal h2 {
  margin: 10px 42px 8px 0;
  font-size: 34px;
  letter-spacing: -.05em;
}
.auth-modal h3 {
  margin: 6px 0 0;
  font-size: 20px;
}
.modal-lead {
  margin: 0 0 20px;
  color: var(--muted);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 22px 0;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-2);
}
.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.auth-tab.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20,22,32,.08);
}
.auth-form,
.admin-promo-form,
.inline-promo-form {
  display: grid;
  gap: 14px;
}
.promo-details {
  padding: 13px 14px;
  border: 1px dashed rgba(124,92,255,.36);
  border-radius: 14px;
  background: rgba(240,236,255,.46);
}
.promo-details summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 850;
}
.promo-details .field { margin-top: 13px; }
.security-note {
  color: var(--muted);
  line-height: 1.45;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.account-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--brand-ink), var(--accent-dark));
  font-weight: 900;
  font-size: 22px;
}
.wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--brand-ink), #2c3043 50%, var(--accent-dark));
}
.wallet-card span { color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.wallet-card strong {
  justify-self: end;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 21px;
  letter-spacing: -.03em;
}
.wallet-card strong span {
  color: white;
  font-size: 21px;
}
.inline-promo-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.admin-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(124,92,255,.28);
  border-radius: 20px;
  background: #fbfaff;
}
.admin-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-promo-form {
  grid-template-columns: 1fr 1fr;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.admin-promo-form .button,
.admin-promo-form .created-promo-code {
  grid-column: 1 / -1;
}
.created-promo-code {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--success);
  background: #eaf7ef;
  font-weight: 800;
  line-height: 1.4;
}
.promo-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.promo-row b,
.promo-row small {
  display: block;
}
.promo-row small {
  margin-top: 3px;
  color: var(--muted);
}
.promo-row > span {
  color: var(--accent-dark);
  font-weight: 900;
}
.promo-row .text-button {
  width: fit-content;
  white-space: nowrap;
}
.modal-error {
  padding: 12px 14px;
  border-radius: 12px;
  color: #8a1f22;
  background: #ffeded;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 950px) {
  .topbar { grid-template-columns: auto 1fr; padding: 0 20px; }
  .topnav { display: none; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .generic-template-layout { grid-template-columns: 1fr; }
  .generic-start-card { position: static; }
  .generic-brief-layout { grid-template-columns: 1fr; }
  .guided-wizard { grid-template-columns: 1fr; }
  .guided-live-preview { position: static; }
  .blueprint-preview { grid-template-columns: 1fr; }
  .platform-brief-row { grid-template-columns: 38px 190px minmax(0, 1fr); }
  .brief-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guided-step-card { grid-template-columns: 38px 190px minmax(0, 1fr); }
  .guided-choice-grid, .guided-style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guided-wizard .guided-choice-grid,
  .guided-wizard .guided-style-grid,
  .guided-wizard .brief-palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-runner-grid { grid-template-columns: 1fr 1fr; }
  .manual-prompt-card { grid-column: 1 / -1; }
  .manual-result-list { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-column: 1 / -1; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .config-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-card { display: grid; grid-template-columns: 1fr 1fr; }
  .concept-preview { height: auto; min-height: 260px; }
  .result-heading { grid-template-columns: auto 1fr; }
  .result-heading .button { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .page, .narrow-flow { width: min(100% - 28px, 1180px); padding-top: 32px; }
  .topbar { height: 64px; padding: 0 14px; }
  .brand span:last-child { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark img { width: 29px; height: 29px; }
  .top-actions { gap: 7px; }
  .language-control select { max-width: 70px; }
  .token-balance { min-width: 56px; padding: 0 10px; }
  .token-balance span:last-child { display: none; }
  .login-button { min-width: 64px; padding: 0 10px; }
  .avatar-button.authenticated {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }
  .avatar-button.authenticated > span:last-child { display: none; }
  h1 { font-size: 44px; }
  .catalog-hero h1 { font-size: 48px; }
  .catalog-hero::after { display: none; }
  .platform-search-control { grid-template-columns: auto minmax(0, 1fr); }
  .platform-search-control button { grid-column: 1 / -1; min-height: 48px; }
  .platform-search-results { top: calc(100% - 22px); }
  .catalog-stage-row { grid-template-columns: 1fr; gap: 8px; }
  .catalog-stage-row > i { display: none; }
  .catalog-block-heading { align-items: start; flex-direction: column; }
  .catalog-block-heading > p { text-align: left; }
  .audience-grid, .platform-grid, .template-grid, .generic-items { grid-template-columns: 1fr; }
  .audience-card { min-height: 225px; }
  .selection-breadcrumb { flex-wrap: wrap; }
  .selection-breadcrumb .text-button { width: 100%; margin-left: 0; text-align: left; }
  .generic-template-hero { grid-template-columns: 1fr; gap: 22px; }
  .generic-template-summary { min-height: 220px; }
  .generic-brief-header { grid-template-columns: 1fr; gap: 22px; }
  .brief-progress-card { min-height: 150px; }
  .dynamic-brief-field { grid-template-columns: 28px 1fr; }
  .dynamic-brief-field input, .dynamic-brief-field textarea { grid-column: 1 / -1; }
  .platform-brief-row { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .platform-brief-row > :last-child { grid-column: 1 / -1; }
  .guided-step-card { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .guided-step-card > :last-child { grid-column: 1 / -1; }
  .guided-choice-grid, .guided-style-grid { grid-template-columns: 1fr 1fr; }
  .guided-wizard-main { min-height: auto; padding: 20px; border-radius: 22px; }
  .guided-screen { padding: 34px 0 24px; }
  .guided-screen h2 { font-size: 38px; }
  .guided-screen p { font-size: 15px; }
  .guided-wizard .guided-choice-grid,
  .guided-wizard .guided-style-grid,
  .guided-wizard .brief-palette-grid { grid-template-columns: 1fr; }
  .guided-nav { align-items: stretch; flex-direction: column-reverse; }
  .guided-nav .button { width: 100%; }
  .guided-live-preview { padding: 18px; border-radius: 22px; }
  .brief-choice-grid { grid-template-columns: 1fr 1fr; }
  .brief-palette-grid { grid-template-columns: 1fr 1fr; }
  .simple-brief-field { grid-template-columns: 34px 1fr; }
  .simple-brief-field > input, .simple-brief-field > textarea, .simple-style-grid { grid-column: 1 / -1; }
  .simple-style-grid { grid-template-columns: repeat(3, 1fr); }
  .advanced-brief-grid { grid-template-columns: 1fr; }
  .image-reference-card { grid-template-columns: 1fr; }
  .image-reference-preview { min-height: 240px; }
  .image-field-grid { grid-template-columns: 1fr; }
  .blueprint-stats { flex-wrap: wrap; }
  .manual-runner-heading, .manual-quality-heading, .manual-package-footer { align-items: stretch; flex-direction: column; }
  .manual-mode-badge { align-self: flex-start; }
  .manual-runner-grid, .manual-result-list { grid-template-columns: 1fr; }
  .manual-prompt-card { grid-column: auto; }
  .manual-step-actions { align-items: stretch; flex-direction: column; }
  .manual-step-actions .button, .manual-step-actions .text-button { width: 100%; justify-content: center; }
  .hero { padding-top: 20px; }
  .product-grid, .asset-summary-grid, .form-grid, .style-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .flow-header { margin-bottom: 34px; }
  .flow-progress span { width: 28px; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .process-strip > div:nth-child(2) { border-right: 0; }
  .process-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .delivery-preview { min-height: 330px; }
  .preview-banner { height: 150px; font-size: 28px; }
  .config-layout { gap: 24px; }
  .order-summary { padding: 18px; }
  .review-section { grid-template-columns: 80px 1fr; }
  .review-section .text-button { grid-column: 2; justify-self: start; }
  .concept-card { display: block; }
  .concept-preview { min-height: 230px; }
  .concept-actions, .review-actions { align-items: stretch; flex-direction: column-reverse; }
  .concept-actions .button, .review-actions .button { width: 100%; }
  .result-heading { grid-template-columns: 1fr; }
  .final-channel { width: 94%; }
  .final-banner { height: 190px; }
  .file-row { grid-template-columns: auto 1fr; }
  .file-row .button { grid-column: 1 / -1; }
  .next-step-card { align-items: stretch; flex-direction: column; }
  .auth-modal { padding: 22px; }
  .admin-promo-form { grid-template-columns: 1fr; }
}
