:root {
  --paper: #f2f0e9;
  --paper-deep: #e7e3d8;
  --ink: #151515;
  --muted: #6f6d66;
  --line: #d7d3c9;
  --white: #fffefa;
  --signal: #ff5c35;
  --acid: #d9ff43;
  --shadow: 0 24px 70px rgba(34, 31, 23, 0.14);
  --radius: 16px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 360px; scroll-behavior: smooth; }

body { margin: 0; min-height: 100vh; background: var(--paper); }

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

button, [role="tab"] { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid rgba(255, 92, 53, .34);
  outline-offset: 3px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.app-shell { min-height: 100vh; }

.topbar {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #343434;
  position: relative;
  z-index: 10;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  width: max-content;
}

.product-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.product-mark > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.product-mark strong { font-size: 12px; letter-spacing: .13em; }
.product-mark small { margin-top: 5px; color: #9d9d96; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.project-state { display: flex; align-items: center; gap: 8px; color: #aaa9a3; font-size: 11px; }
.project-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(217, 255, 67, .08); }
.project-state.saving i { background: var(--signal); }

.topbar-actions { justify-self: end; display: flex; gap: 8px; }

.button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .18s ease, background .18s ease, color .18s ease, opacity .18s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .4; }
.button-quiet { color: #c1c0bb; background: transparent; }
.button-quiet:hover { color: white; }
.button-dark { color: var(--ink); background: var(--white); }
.button-outline { background: transparent; border: 1px solid var(--line); }
.button-signal { color: white; background: var(--signal); min-width: 146px; }
.button-acid { color: var(--ink); background: var(--acid); }

.workspace {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 260px minmax(390px, 1fr) minmax(390px, 520px);
}

.step-sidebar {
  min-height: calc(100vh - 76px);
  padding: 40px 28px 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.eyebrow {
  display: block;
  color: var(--signal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.step-intro h1 {
  margin: 16px 0 14px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -.09em;
}

.step-intro p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.step-list { list-style: none; padding: 0; margin: 42px 0 28px; }
.step-list li { position: relative; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 41px; bottom: -9px; width: 1px; background: var(--line); }

.step-button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.step-index {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.step-button strong { display: block; font-size: 11px; }
.step-button small { display: block; margin-top: 2px; color: #98958d; font-size: 9px; }
.step-check { color: transparent; font-size: 12px; }
.step-button.active .step-index { color: white; border-color: var(--ink); background: var(--ink); }
.step-button.active strong { color: var(--signal); }
.step-button.complete .step-index { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.step-button.complete .step-check { color: var(--ink); }

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  color: #deddd7;
  background: var(--ink);
  border-radius: 12px;
}
.sidebar-note span { color: var(--acid); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.sidebar-note p { margin: 8px 0 0; color: #9d9c97; font-size: 9px; line-height: 1.6; }

.editor-panel {
  min-width: 0;
  padding: 54px clamp(28px, 4.5vw, 74px) 36px;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.editor-head h2 { margin: 10px 0 8px; font-family: "Noto Sans KR", sans-serif; font-size: clamp(25px, 2.6vw, 37px); letter-spacing: -.065em; }
.editor-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.step-count { min-width: 55px; color: #b3b0a7; font-size: 10px; text-align: right; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .span-two { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 10px; font-weight: 700; }
.field > span small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf6;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); background: white; box-shadow: 0 0 0 3px rgba(21, 21, 21, .05); }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.75; }
.field textarea.manuscript { min-height: 315px; }
.field-help { color: #8c8981; font-size: 9px; line-height: 1.55; }
.copy-warning { color: #c7442b; }
.character-count { align-self: flex-end; margin-top: -3px; color: #9c9991; font-size: 9px; }

.color-field { display: grid; grid-template-columns: 46px 1fr; gap: 8px; }
.color-field input[type="color"] { height: 44px; padding: 4px; cursor: pointer; }

.logo-drop {
  min-height: 118px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px dashed #aaa69b;
  border-radius: 13px;
  background: #fbfaf6;
}
.logo-preview { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--ink); color: var(--acid); font-size: 12px; font-weight: 800; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: white; }
.logo-drop strong { display: block; font-size: 11px; }
.logo-drop p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.file-button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; font-size: 9px; font-weight: 700; }

.layout-catalog { gap: 10px; }
.layout-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.layout-button { position: relative; min-height: 146px; padding: 10px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fbfaf6; cursor: pointer; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.layout-button:hover { border-color: #969188; transform: translateY(-1px); }
.layout-button.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.layout-button.active::after { content: "✓"; position: absolute; top: 7px; right: 8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--acid); font-size: 8px; font-weight: 900; }
.layout-mini { position: relative; height: 64px; overflow: hidden; border: 1px solid rgba(21,21,21,.18); background: #f4f0e7; }
.layout-mini i { position: absolute; display: block; background: var(--ink); }
.layout-mini-impact { border: 4px solid var(--ink); }
.layout-mini-impact i:nth-child(1) { width: 48%; height: 7px; left: 8px; top: 14px; }
.layout-mini-impact i:nth-child(2) { width: 66%; height: 7px; left: 8px; top: 27px; }
.layout-mini-impact i:nth-child(3) { width: 13px; height: 100%; right: 0; top: 0; background: var(--acid); }
.layout-mini-split i:nth-child(1) { inset: 12px 8px 20px; background: var(--ink); }
.layout-mini-split i:nth-child(2) { width: 55%; height: 5px; left: 13px; top: 20px; background: var(--acid); }
.layout-mini-split i:nth-child(3) { width: 70%; height: 4px; left: 8px; bottom: 9px; }
.layout-mini-editorial i:nth-child(1) { width: 33%; height: 5px; left: 9px; top: 12px; background: var(--signal); }
.layout-mini-editorial i:nth-child(2) { width: 65%; height: 7px; left: 9px; top: 27px; }
.layout-mini-editorial i:nth-child(3) { width: 46%; height: 4px; left: 9px; top: 43px; opacity: .45; }
.layout-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.layout-copy strong { font-size: 9px; }
.layout-copy small { min-height: 30px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.layout-copy em { align-self: flex-start; padding: 3px 6px; border-radius: 999px; color: var(--ink); background: var(--acid); font-size: 7px; font-style: normal; font-weight: 800; }

.palette-presets { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(2, minmax(142px, 1fr)); gap: 8px; }
.palette-catalog { gap: 10px; }
.palette-group { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfaf6; }
.palette-group-copy { width: 132px; flex: 0 0 132px; padding-top: 5px; }
.palette-group strong { display: block; font-size: 10px; }
.palette-group small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.palette-button { position: relative; width: 100%; min-height: 44px; padding: 5px 9px 5px 5px; display: flex; align-items: center; gap: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.palette-button:hover { border-color: #969188; transform: translateY(-1px); }
.palette-button.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.palette-button.active::after { content: "✓"; position: absolute; top: 3px; right: 5px; font-size: 7px; font-weight: 900; }
.palette-swatches { width: 54px; height: 32px; flex: 0 0 54px; display: flex; padding: 3px; border: 1px solid rgba(21,21,21,.1); border-radius: 8px; background: white; }
.palette-button i { flex: 1; height: 100%; }
.palette-button i:first-child { border-radius: 999px 0 0 999px; }
.palette-button i:last-child { border-radius: 0 999px 999px 0; }
.palette-name { min-width: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 8px; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.palette-badge { padding: 2px 5px; border-radius: 999px; color: #151515 !important; background: var(--acid); font-size: 6px !important; font-weight: 850; letter-spacing: .02em; }

.section-rule { grid-column: 1 / -1; height: 1px; margin: 4px 0; background: var(--line); }

.generate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: var(--ink);
  color: white;
}
.generate-card strong { display: block; font-size: 11px; }
.generate-card p { margin: 4px 0 0; color: #aaa9a4; font-size: 9px; }
.ai-status { margin-top: 10px; padding: 12px 14px; border-radius: 10px; font-size: 9px; line-height: 1.55; }
.ai-status-error { border: 1px solid #efb7ad; color: #a63221; background: #fff2ef; }
.ai-status-success { border: 1px solid #c9df9d; color: #355514; background: #f4f9e8; }

.slide-workspace { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; }
.source-review-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #ead49c; border-radius: 10px; color: #68521d; background: #fff9e8; font-size: 9px; line-height: 1.5; }
.source-review-note strong { flex: 0 0 auto; }
.slide-nav { display: flex; flex-direction: column; gap: 6px; }
.slide-nav-button {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.slide-nav-button:hover { background: #f6f4ed; }
.slide-nav-button.active { border-color: var(--ink); background: var(--ink); color: white; }
.slide-nav-button > span { width: 25px; height: 33px; display: grid; place-items: center; color: var(--ink); background: var(--acid); font-size: 8px; font-weight: 800; }
.slide-nav-button strong { display: block; max-width: 75px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; }
.slide-nav-button small { display: block; margin-top: 3px; color: #929088; font-size: 7px; text-transform: uppercase; }
.slide-nav-button.active small { color: #999; }
.slide-form { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
.slide-form-head { display: flex; justify-content: space-between; margin-bottom: 9px; }
.slide-form-head strong { font-size: 12px; }
.role-chip { padding: 5px 8px; border-radius: 999px; background: var(--acid); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.role-design-hint { margin: 0 0 20px; padding: 10px 12px; border-left: 3px solid var(--signal); color: var(--muted); background: white; font-size: 9px; line-height: 1.55; }

.export-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.summary-item { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; }
.summary-item strong { display: block; font-size: 22px; letter-spacing: -.05em; }
.summary-item span { color: var(--muted); font-size: 9px; }
.export-stack { display: flex; flex-direction: column; gap: 12px; }
.export-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; }
.export-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.export-card-head h3 { margin: 0 0 5px; font-size: 12px; }
.export-card-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.export-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.export-card .button { min-height: 36px; padding: 0 13px; font-size: 9px; }
.distribution-copy { max-height: 190px; margin-top: 16px; padding: 14px; overflow: auto; white-space: pre-wrap; border: 1px solid var(--line); border-radius: 9px; background: white; color: #56544f; font-size: 10px; line-height: 1.65; }
.export-progress { margin-top: 13px; height: 4px; overflow: hidden; border-radius: 99px; background: #e3e0d7; }
.export-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--signal); transition: width .2s ease; }

.editor-footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 42px; }

.preview-panel {
  min-width: 0;
  min-height: calc(100vh - 76px);
  padding: 34px clamp(24px, 3vw, 46px) 28px;
  color: white;
  background: #232321;
  position: relative;
}
.preview-panel::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.preview-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; }
.preview-head strong { display: block; margin-top: 7px; font-size: 11px; }
.preview-head > span { color: #969691; font-size: 9px; font-weight: 700; letter-spacing: .12em; }

.card-stage { position: relative; width: min(100%, 392px); margin: 28px auto 20px; perspective: 1000px; }
.card-stage::before { content: ""; position: absolute; inset: 15px -12px -15px 12px; border: 1px solid #555550; }

.publish-card {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 8.5% 8.5% 7%;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  color: var(--card-ink, #151515);
  background: var(--card-background, #f2f0e9);
  box-shadow: var(--shadow);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.publish-card::before { content: ""; position: absolute; width: 52%; aspect-ratio: 1; right: -21%; top: 18%; border: max(2px, .55vw) solid var(--card-primary); border-radius: 50%; z-index: -1; }
.publish-card::after { content: ""; position: absolute; width: 29%; height: 1.2%; left: 8.5%; bottom: 18%; background: var(--card-accent); z-index: -1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: clamp(7px, .8vw, 10px); font-weight: 800; letter-spacing: .08em; }
.card-brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-logo { width: clamp(24px, 3.4vw, 38px); height: clamp(24px, 3.4vw, 38px); flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: var(--card-background); background: var(--card-ink); font-size: clamp(6px, .75vw, 9px); letter-spacing: 0; }
.card-logo img { width: 100%; height: 100%; object-fit: contain; background: white; }
.card-brand span:last-child { max-width: 180px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-number { color: var(--card-primary); }
.card-content {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 9% 0 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.card-eyebrow { display: inline-flex; align-self: flex-start; max-width: 100%; margin-bottom: 8%; padding: 4px 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--card-background); background: var(--card-primary); font-size: clamp(6px, .7vw, 9px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-title {
  max-width: 90%;
  margin: 0;
  overflow: hidden;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(24px, 10.8cqw, 48px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -.07em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-body {
  max-width: 88%;
  margin: 7% 0 0;
  overflow: hidden;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  font-size: clamp(9px, 3.65cqw, 16px);
  font-weight: 500;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.card-density-compact .card-title { font-size: clamp(21px, 9.3cqw, 41px); }
.card-density-compact .card-body { font-size: clamp(9px, 3.25cqw, 14px); }
.card-density-dense .card-title { font-size: clamp(18px, 7.9cqw, 35px); line-height: 1.18; }
.card-density-dense .card-body { margin-top: 5%; font-size: clamp(8px, 2.9cqw, 12px); line-height: 1.48; -webkit-line-clamp: 7; }
.card-role-cover .card-body { padding-top: 6%; border-top: max(2px, .55cqw) solid var(--card-accent); font-weight: 700; }
.card-role-context .card-body { padding-left: 6%; border-left: max(3px, .8cqw) solid var(--card-primary); }
.card-role-point .card-body { max-width: 100%; padding: 6% 7%; color: var(--card-accent-ink); background: var(--card-accent); font-weight: 750; }
.card-role-summary .card-body { max-width: 100%; padding-top: 7%; border-top: max(2px, .55cqw) solid var(--card-primary); }
.card-content-quote { justify-content: center; }
.card-quote { position: relative; max-width: 96%; margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; font-size: clamp(20px, 8.8cqw, 39px); font-weight: 900; line-height: 1.16; letter-spacing: -.06em; word-break: keep-all; overflow-wrap: anywhere; }
.card-quote::before { content: "“"; display: block; height: .58em; margin-left: -.05em; color: var(--card-accent); font-family: Georgia, serif; font-size: 2.25em; line-height: .72; }
.card-quote-label { max-width: 82%; margin: 8% 0 0; padding-top: 5%; border-top: 1px solid currentColor; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(7px, 2.5cqw, 11px); font-weight: 750; opacity: .72; }
.card-density-compact .card-quote { font-size: clamp(18px, 7.6cqw, 34px); }
.card-density-dense .card-quote { font-size: clamp(15px, 6.5cqw, 29px); line-height: 1.22; }
.card-content-list { justify-content: center; }
.card-role-list .card-eyebrow { margin-bottom: 5%; }
.card-role-list .card-title { max-width: 100%; -webkit-line-clamp: 2; font-size: clamp(17px, 7.5cqw, 33px); line-height: 1.12; }
.card-list { margin: 7% 0 0; padding: 0; display: grid; gap: clamp(5px, 1.8cqw, 9px); list-style: none; overflow: hidden; }
.card-list li { min-height: clamp(38px, 11cqw, 52px); display: grid; grid-template-columns: clamp(28px, 8cqw, 38px) 1fr; align-items: center; gap: 5%; border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.card-list li:first-child { border-top: max(3px, .85cqw) solid var(--card-accent); }
.card-list li span { color: var(--card-primary); font-size: clamp(8px, 2.8cqw, 12px); font-weight: 900; }
.card-list li strong { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(8px, 3cqw, 13px); line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.card-action { max-width: 100%; margin: 9% 0 0; padding: 6% 7%; display: flex; align-items: center; gap: 8%; color: var(--card-accent-ink); background: var(--card-accent); font-size: clamp(9px, 3.4cqw, 15px); font-weight: 850; line-height: 1.35; }
.card-action span { flex: 0 0 auto; font-size: 1.8em; line-height: 1; }
.card-role-cover .card-title { font-size: clamp(27px, 12.1cqw, 54px); }
.card-role-cover.card-density-compact .card-title { font-size: clamp(23px, 10.2cqw, 45px); }
.card-role-cover.card-density-dense .card-title { font-size: clamp(20px, 8.8cqw, 39px); }
.card-role-cta { color: var(--card-cta-ink); background: var(--card-primary); }
.card-role-cta::before { border-color: var(--card-accent); }
.card-role-cta .card-eyebrow { color: var(--card-primary); background: var(--card-accent); }
.card-role-cta .card-number { color: var(--card-accent); }
.card-role-cta .card-logo { color: var(--card-primary); background: var(--card-cta-ink); }

/* Layout 01: maximum stopping power through oversized type and index. */
.card-layout-impact { border: max(4px, 1.15cqw) solid var(--card-primary); padding-left: 10%; }
.card-layout-impact::before { content: attr(data-index); width: auto; height: auto; right: -3%; top: 12%; border: 0; border-radius: 0; color: color-mix(in srgb, var(--card-primary) 13%, transparent); font-size: 47cqw; font-weight: 950; line-height: .8; letter-spacing: -.12em; }
.card-layout-impact::after { width: 3.2%; height: 100%; left: 0; top: 0; bottom: auto; background: var(--card-accent); }
.card-layout-impact .card-number { padding: 4px 7px; color: var(--card-primary-ink); background: var(--card-primary); }
.card-layout-impact .card-content { justify-content: flex-start; padding-top: 17%; }
.card-layout-impact .card-eyebrow { margin-bottom: 6%; color: var(--card-accent-ink); background: var(--card-accent); }
.card-layout-impact .card-title { max-width: 100%; font-size: clamp(28px, 12.5cqw, 56px); line-height: 1.01; letter-spacing: -.075em; }
.card-layout-impact .card-body { max-width: 78%; margin-top: 8%; font-weight: 650; }
.card-layout-impact .card-quote { max-width: 92%; font-size: clamp(23px, 10.4cqw, 46px); line-height: 1.08; }
.card-layout-impact .card-list { width: 88%; }
.card-layout-impact .card-content-list .card-title { font-size: clamp(17px, 7.5cqw, 33px); }
.card-layout-impact.card-density-compact .card-title { font-size: clamp(23px, 10.3cqw, 46px); }
.card-layout-impact.card-density-dense .card-title { font-size: clamp(20px, 8.7cqw, 39px); line-height: 1.08; }
.card-layout-impact.card-role-cover,
.card-layout-impact.card-role-cta { border-color: var(--card-accent); color: var(--card-primary-ink); background: var(--card-primary); }
.card-layout-impact.card-role-cover::before,
.card-layout-impact.card-role-cta::before { color: color-mix(in srgb, var(--card-accent) 22%, transparent); }
.card-layout-impact.card-role-cover .card-number,
.card-layout-impact.card-role-cta .card-number { color: var(--card-accent-ink); background: var(--card-accent); }
.card-layout-impact.card-role-cover .card-logo,
.card-layout-impact.card-role-cta .card-logo { color: var(--card-primary); background: var(--card-primary-ink); }
.card-layout-impact.card-role-cover .card-handle,
.card-layout-impact.card-role-cta .card-handle { color: var(--card-accent); }

/* Layout 02: one hard color panel separates the hook from supporting copy. */
.card-layout-split { padding-right: 10.5%; }
.card-layout-split::before { width: 0; height: 0; border: 0; }
.card-layout-split::after { width: 3.4%; height: 100%; left: auto; right: 0; top: 0; bottom: auto; background: var(--card-accent); }
.card-layout-split .card-content { justify-content: center; padding-top: 7%; }
.card-layout-split .card-eyebrow { z-index: 1; margin: 0 0 -1px; color: var(--card-accent-ink); background: var(--card-accent); }
.card-layout-split .card-title { max-width: 100%; padding: 8% 7%; color: var(--card-primary-ink); background: var(--card-primary); font-size: clamp(23px, 10cqw, 45px); line-height: 1.08; }
.card-layout-split .card-body { max-width: 100%; margin-top: 8%; padding-top: 7%; border-top: max(2px, .65cqw) solid var(--card-accent); }
.card-layout-split .card-quote { max-width: 100%; padding: 8% 7%; color: var(--card-primary-ink); background: var(--card-primary); }
.card-layout-split .card-quote-label { margin-top: 6%; }
.card-layout-split .card-list { margin-top: 6%; }
.card-layout-split .card-content-list .card-title { font-size: clamp(16px, 6.9cqw, 31px); }
.card-layout-split.card-density-compact .card-title { font-size: clamp(20px, 8.7cqw, 39px); }
.card-layout-split.card-density-dense .card-title { font-size: clamp(17px, 7.4cqw, 33px); }
.card-layout-split.card-role-quote .card-quote::before { color: var(--card-accent); }
.card-layout-split.card-role-list .card-list { padding-top: 2%; border-top: max(2px, .65cqw) solid var(--card-accent); }
.card-layout-split.card-role-cta .card-title { color: var(--card-accent-ink); background: var(--card-accent); }

/* Layout 03 intentionally keeps the original restrained editorial composition. */
.card-layout-editorial { border: 0; }
.card-bottom { min-width: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: clamp(6px, .68vw, 9px); font-weight: 700; }
.card-bottom span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-bottom span:first-child { max-width: 68%; }
.card-handle { max-width: 30%; color: var(--card-primary); text-align: right; }
.card-role-cta .card-handle { color: var(--card-accent); }

.preview-controls { position: relative; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 13px; max-width: 390px; margin: 0 auto; }
.preview-controls > button { width: 42px; height: 42px; border: 1px solid #4e4e4a; border-radius: 50%; color: white; background: transparent; cursor: pointer; }
.preview-controls > button:hover { background: #333330; }
.preview-dots { display: flex; justify-content: center; gap: 6px; }
.preview-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #5f5f5b; cursor: pointer; transition: width .2s ease, background .2s ease; }
.preview-dot.active { width: 23px; border-radius: 999px; background: var(--acid); }
.contrast-note { position: relative; max-width: 390px; min-height: 30px; margin: 18px auto 0; padding-top: 12px; border-top: 1px solid #3e3e3b; color: #8f8f89; font-size: 8px; line-height: 1.5; }
.contrast-note.warning { color: #ffb09d; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 210px minmax(380px, 1fr) 390px; }
  .step-sidebar { padding-left: 22px; padding-right: 22px; }
  .step-intro h1 { font-size: 32px; }
  .preview-panel { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr 1fr; }
  .topbar-center { display: none; }
  .workspace { grid-template-columns: 190px minmax(0, 1fr); }
  .preview-panel { grid-column: 2; min-height: auto; padding-top: 42px; padding-bottom: 42px; }
  .step-sidebar { grid-row: 1 / span 2; }
  .card-stage { width: min(100%, 430px); }
}

@media (max-width: 700px) {
  .topbar { height: 66px; padding: 0 15px; }
  .product-mark small, .button-quiet { display: none; }
  .workspace { display: block; }
  .step-sidebar { min-height: 0; padding: 26px 18px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-intro, .sidebar-note { display: none; }
  .step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0; }
  .step-list li::after { display: none; }
  .step-button { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
  .step-index { flex: 0 0 auto; }
  .step-button small, .step-check { display: none; }
  .editor-panel { padding: 36px 18px 28px; }
  .editor-head { margin-bottom: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-two, .section-rule { grid-column: auto; }
  .logo-drop { grid-template-columns: 54px 1fr; }
  .logo-preview { width: 54px; height: 54px; }
  .logo-drop .file-button { grid-column: 1 / -1; }
  .layout-presets { grid-template-columns: 1fr; }
  .layout-button { min-height: 112px; display: grid; grid-template-columns: 108px 1fr; align-items: center; }
  .layout-mini { height: 78px; }
  .palette-group { align-items: stretch; flex-direction: column; }
  .palette-group-copy { width: auto; flex-basis: auto; }
  .palette-presets { grid-template-columns: 1fr; }
  .generate-card { align-items: flex-start; flex-direction: column; }
  .slide-workspace { display: block; }
  .source-review-note { align-items: flex-start; flex-direction: column; }
  .slide-nav { margin-bottom: 15px; flex-direction: row; overflow-x: auto; }
  .slide-nav-button { min-width: 110px; }
  .export-summary { grid-template-columns: 1fr; }
  .export-card-head { flex-direction: column; }
  .export-actions { justify-content: flex-start; }
  .preview-panel { min-height: auto; padding: 34px 18px 42px; }
  .editor-footer { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
