:root {
  --bg0: #1a2332;
  --bg1: #243044;
  --ink: #f4efe6;
  --muted: #b7c0cc;
  --accent: #e8a87c;
  --accent2: #7eb8a8;
  --line: rgba(244, 239, 230, 0.14);
  --panel: rgba(20, 28, 40, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg0);
  line-height: 1.5;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(232, 168, 124, 0.28), transparent 60%),
    radial-gradient(700px 480px at 90% 0%, rgba(126, 184, 168, 0.22), transparent 55%),
    linear-gradient(160deg, #152033 0%, #1d2a3d 45%, #243447 100%);
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 5.5rem;
}

.hero { margin-bottom: 1.25rem; }
.hero-compact h1 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}
.hero-compact .sub {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  max-width: 42rem;
}
.brand {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sub {
  margin: 0.9rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.uploader {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  padding: 1.1rem 1.2rem;
  border: 1px dashed rgba(244, 239, 230, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.uploader:hover {
  border-color: rgba(232, 168, 124, 0.7);
  transform: translateY(-1px);
}
.uploader input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.uploader-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.uploader-hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.thumb.is-best {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px rgba(126, 184, 168, 0.45);
}
.thumb.is-preferred {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 168, 124, 0.5);
}
.thumb.is-preferred.is-best {
  box-shadow:
    0 0 0 2px rgba(232, 168, 124, 0.55),
    0 0 0 5px rgba(126, 184, 168, 0.25);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  background: color-mix(in srgb, canvasText 8%, canvas);
  white-space: pre-wrap;
}
.thumb-index {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  min-width: 1.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.thumb-pref {
  position: absolute;
  left: 0.4rem;
  bottom: 1.55rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  pointer-events: none;
}
.thumb.is-preferred .thumb-pref {
  background: rgba(232, 168, 124, 0.92);
  color: #1a1420;
}
.thumb-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.thumb-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.count {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.hint strong { color: var(--accent); font-weight: 600; }

.opts {
  margin: 1.15rem 0 0;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.opts legend {
  padding: 0 0.35rem;
  color: var(--accent2);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.radio-row {
  display: grid;
  gap: 0.65rem;
}
.radio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
}
.radio:has(input:checked) {
  border-color: rgba(232, 168, 124, 0.55);
  background: rgba(232, 168, 124, 0.1);
}
.radio input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
}
.radio strong {
  display: block;
  font-size: 0.95rem;
}
.radio small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.field-label {
  color: var(--muted);
  font-size: 0.82rem;
}
.field input[type="text"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.field input[type="text"]::placeholder {
  color: rgba(183, 192, 204, 0.65);
}
.style-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 1.1rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #d4896a);
  border-color: transparent;
  color: #1a1420;
}
.btn.primary:hover { filter: brightness(1.05); }

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1 1 12rem;
}
.status.error { color: #ffb4a8; }

.progress {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 0.35s ease;
}
.progress-fill.is-error {
  background: linear-gradient(90deg, #c45c4a, #ffb4a8);
}
.progress-label {
  margin: 0.65rem 0 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.progress-steps li {
  position: relative;
  padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.03);
}
.progress-steps li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.75rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.25);
}
.progress-steps li.is-active {
  color: var(--ink);
  border-color: rgba(232, 168, 124, 0.45);
  background: rgba(232, 168, 124, 0.1);
}
.progress-steps li.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 124, 0.25);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
.progress-steps li.is-done {
  color: var(--accent2);
}
.progress-steps li.is-done::before {
  background: var(--accent2);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

@media (max-width: 720px) {
  .progress-steps { grid-template-columns: 1fr 1fr; }
}

.analysis { margin-top: 1rem; }
.analysis h2,
.result h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.analysis-details {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.analysis-details summary {
  cursor: pointer;
  color: var(--accent2);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}
.analysis-details summary::-webkit-details-marker { display: none; }
.analysis-details summary::after {
  content: " ▾";
  opacity: 0.7;
}
.analysis-details[open] summary::after { content: " ▴"; }
.analysis-details .analysis-grid {
  margin-top: 0.85rem;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.25rem;
  margin: 0;
}
.analysis-grid dt {
  margin: 0 0 0.2rem;
  color: var(--accent2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.analysis-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.analysis-grid .span-2 {
  grid-column: 1 / -1;
}

.keywords-block {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.keywords-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
}
.keywords-help {
  margin: 0.4rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.keywords-editor {
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}
.kw-cat {
  display: grid;
  gap: 0.45rem;
}
.kw-cat-label {
  color: var(--accent2);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.kw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  border: 1px solid rgba(232, 168, 124, 0.35);
  background: rgba(232, 168, 124, 0.12);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.65rem;
  font-size: 0.85rem;
}
.kw-chip.is-edited {
  border-color: var(--accent2);
  background: rgba(126, 184, 168, 0.16);
}
.kw-chip button.kw-edit {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  pointer-events: auto;
}
.kw-chip button.kw-x {
  appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  font-size: 0.85rem;
  pointer-events: auto;
}
.kw-add {
  appearance: none;
  border: 1px dashed rgba(244, 239, 230, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.kw-add:hover {
  border-color: var(--accent);
  background: rgba(232, 168, 124, 0.16);
}
.kw-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.kw-inline-input {
  min-width: 10rem;
  max-width: 16rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 124, 0.55);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
}
.kw-inline-ok {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #d4896a);
  color: #1a1420;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.keywords-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.result { margin-top: 0; }
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.result-head h2 { margin: 0; }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 0.9rem 1rem;
  font: inherit;
  line-height: 1.55;
}
.meta {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.next {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.next li { margin: 0.25rem 0; }

.brand-link {
  color: inherit;
  text-decoration: none;
}
.brand-link:hover { text-decoration: underline; }

.top-nav {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.top-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.top-nav a:hover { color: var(--ink); }

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 1rem;
}
.field.inline { margin: 0; min-width: 220px; }
.status-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}
.status-dl dt {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-dl dd { margin: 0.2rem 0 0; font-weight: 500; }
.hint-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.examples-panel { margin-top: 1rem; }
.examples-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.example-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}
.example-media {
  aspect-ratio: 4 / 3;
  background: #0f1622;
}
.example-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.example-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 168, 124, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(126, 184, 168, 0.2), transparent 45%),
    linear-gradient(145deg, #1a2433, #243447);
  font-size: 0.9rem;
}
.example-body { padding: 0.9rem 1rem 1.05rem; }
.example-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}
.example-body p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .analysis-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .settings-actions { align-items: stretch; }
}

/* —— Home renewal: workspace + outcome —— */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.workspace {
  min-width: 0;
}

.outcome {
  position: sticky;
  top: 1rem;
  min-width: 0;
  align-self: start;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.outcome-panel {
  animation: outcome-in 0.28s ease;
}
.outcome-panel.is-hero {
  border-color: rgba(232, 168, 124, 0.45);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(232, 168, 124, 0.18);
}

@keyframes outcome-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.outcome-kicker {
  margin: 0 0 0.35rem;
  color: var(--accent2);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.outcome-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
}
.outcome-steps {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.outcome-steps li { margin: 0.3rem 0; }

.outcome-skeleton {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.outcome-skeleton span {
  display: block;
  height: 0.85rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.outcome-skeleton span:nth-child(2) { width: 88%; }
.outcome-skeleton span:nth-child(3) { width: 72%; }

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.outcome-error .outcome-title { color: #ffb4a8; }
.outcome-error-msg {
  margin: 0.65rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.style-accordion {
  margin-top: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.style-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
}
.style-accordion summary::-webkit-details-marker { display: none; }
.style-summary-label {
  color: var(--muted);
  font-size: 0.78rem;
}
#styleSummaryText {
  color: var(--accent2);
  font-size: 0.92rem;
  font-weight: 600;
}
.style-accordion summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.85rem;
}
.style-accordion[open] summary::after { content: "▴"; }
.style-accordion-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--line);
}
.style-card {
  appearance: none;
  display: grid;
  gap: 0.45rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.style-card:hover {
  border-color: rgba(232, 168, 124, 0.4);
  transform: translateY(-1px);
}
.style-card.is-selected {
  border-color: rgba(232, 168, 124, 0.75);
  box-shadow: 0 0 0 1px rgba(232, 168, 124, 0.25);
}
.style-card-media {
  aspect-ratio: 4 / 3;
  background: #0f1622;
}
.style-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.style-card-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 168, 124, 0.22), transparent 55%),
    linear-gradient(145deg, #1a2433, #243447);
}
.style-card-body {
  padding: 0.45rem 0.55rem 0.6rem;
}
.style-card-body strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
}
.style-card-body small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.mobile-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 22, 34, 0.92);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.mobile-sticky .btn {
  flex: 1;
  min-height: 44px;
  justify-content: center;
}

@media (max-width: 959px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .outcome {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 960px) {
  .mobile-sticky { display: none !important; }
}

@media (max-width: 720px) {
  .style-cards { grid-template-columns: 1fr 1fr; }
  .progress-steps { grid-template-columns: 1fr 1fr; }
}
