/* ── Web fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --surface:   #ffffff;
  --ink:       #0a0a0a;
  --ink-2:     #555555;
  --ink-3:     #aaaaaa;
  --ink-4:     #d0d0d0;
  --ink-6:     #f2f2f2;
  --rule:      #e8e8e8;
  --card-bg:   #f5f5f5;
  --radius-card: 14px;
  --radius-img:  12px;

  --font-sans:  "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
}

html { font-size: 14px; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────────────────── */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  height: 56px;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  justify-self: start;
}

.header-center { text-align: center; }

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-back {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.12s;
}
.header-back:hover { color: var(--ink); }

/* ── Card nav (Style / Fit / Collection) ────────────────────────────────── */
.card-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
}
.card-nav.hidden { display: none; }
.card-nav-item {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  transition: color 0.12s, background 0.12s;
}
.card-nav-item:hover { color: var(--ink); background: var(--pill-bg, rgba(0,0,0,0.05)); }
.card-nav-item--active {
  color: var(--ink);
  background: var(--pill-bg, rgba(0,0,0,0.07));
}
.card-nav-save-btn {
  border: 1px solid rgba(0,0,0,0.18);
  background: none;
  cursor: pointer;
  margin-left: 6px;
}
.card-nav-save-btn:disabled { opacity: 0.5; cursor: default; }

/* ── Fit leave banner ───────────────────────────────────────────────────── */
.fit-leave-banner {
  position: sticky;
  top: 56px;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 48px;
  font-size: 13px;
  color: var(--ink-2, #555);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.fit-leave-banner.hidden { display: none; }
.fit-leave-banner.visible { transform: translateY(0); opacity: 1; }
.fit-leave-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: none;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.fit-leave-btn:hover { background: var(--pill-bg, rgba(0,0,0,0.05)); color: var(--ink); }
.fit-leave-btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.fit-leave-btn--primary:hover { opacity: 0.85; }

/* ── Session auto-save notification ─────────────────────────────────────── */
.session-notify-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.session-notify-banner.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.session-notify-dismiss {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  opacity: 0.7;
  line-height: 1;
}
.session-notify-dismiss:hover { opacity: 1; }

.version-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-family: var(--font-sans);
}

select {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
select:focus { border-color: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 9px 20px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.12s;
}
.btn-primary:hover    { opacity: 0.75; }
.btn-primary:disabled { opacity: 0.25; cursor: default; }

.btn-ghost {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  background: none;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-inline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: none;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 99px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.btn-inline:hover { color: var(--ink); border-color: var(--ink-2); }

/* ── Layout ──────────────────────────────────────────────────────────── */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: flex;
  flex-direction: column;
}

.panel { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ── Hero / display heading ──────────────────────────────────────────── */
.display-block {
  padding: 72px 0 0;
  text-align: center;
}

.display-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  display: block;
}

.display-heading {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6.5vw, 68px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.section-body {
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Form elements ───────────────────────────────────────────────────── */
.hint {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input[type="text"] {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color 0.12s;
}
input[type="text"]:focus { border-color: var(--ink); background: #fff; }
input[type="text"]::placeholder { color: var(--ink-3); }

.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-line {
  font-size: 12px;
  color: var(--ink-2);
  min-height: 18px;
  text-align: center;
}

/* ── Dropzone ────────────────────────────────────────────────────────── */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--rule);
  border-radius: var(--radius-card);
  padding: 56px 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  background: var(--card-bg);
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--ink);
  background: #eeeeee;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dz-label {
  font-size: 14px;
  color: var(--ink-3);
  pointer-events: none;
  display: block;
  line-height: 1.8;
}
.dz-label small { font-size: 12px; }
.dz-count {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Progress ────────────────────────────────────────────────────────── */
.progress-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 0;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--rule);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

#progress-text {
  font-size: 14px;
  color: var(--ink-2);
  transition: opacity 0.3s ease;
}

/* ── Collection summary ──────────────────────────────────────────────── */
.summary-section {
  padding: 48px 0 36px;
  text-align: center;
}

.summary-header {
  margin-bottom: 36px;
}

.summary-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: block;
}

.summary-piece-count {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ── Aesthetic vocabulary block ───────────────────────────────────────── */
.vocab-block {
  margin: 0 auto 32px;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: left;
}

.vocab-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.vocab-summary {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 14px;
}

.vocab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.vocab-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(39, 29, 21, 0.07);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.label-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.label-row {
  display: grid;
  grid-template-columns: 148px 1fr 36px 44px;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.label-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bar-track {
  height: 10px;
  background: var(--rule);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.label-count { text-align: right; font-size: 14px; color: var(--ink); }
.label-pct   { text-align: right; font-size: 12px; color: var(--ink-3); }

/* ── Creative direction ──────────────────────────────────────────────── */
.direction-section {
  padding: 40px 0 0;
}

.direction-header {
  margin-bottom: 24px;
}

.direction-intro {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 6px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.direction-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direction-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.direction-goal {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.direction-rationale {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 2px 0 4px;
}

.direction-suggestions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.direction-suggestions li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.direction-suggestions li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

/* ── Overview grid ───────────────────────────────────────────────────── */
.overview-section {
  padding: 40px 0 0;
}

.overview-header {
  margin-bottom: 16px;
}

.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.ov-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.2s ease;
}

.ov-thumb:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ov-thumb.dimmed {
  opacity: 0.18;
  transform: none;
  box-shadow: none;
}

.ov-thumb img,
.ov-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ov-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ov-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  display: block;
}

.ov-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 8px 8px;
  background: linear-gradient(to top, rgba(10,10,10,0.68) 0%, transparent 100%);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.15s ease;
  text-align: left;
}

.ov-thumb:hover .ov-name { opacity: 1; }

/* ── Filter bar ──────────────────────────────────────────────────────── */
#filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-count {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.65;
}

/* ── Pieces section header ───────────────────────────────────────────── */
.pieces-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 40px 0 20px;
  border-top: 1px solid var(--rule);
}

.pieces-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ── Piece cards — grid ──────────────────────────────────────────────── */
#piece-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}

.piece-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.piece-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* Image area */
.piece-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-img) var(--radius-img) 0 0;
  background: #e8e8e8;
}

.piece-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-radius: var(--radius-img) var(--radius-img) 0 0;
}

/* Card body */
.piece-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 6px;
}

.piece-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

/* Label: dot + text */
.piece-label-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  width: fit-content;
  padding: 4px 10px 4px 8px;
  border-radius: 99px;
}
.piece-label-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  flex-shrink: 0;
}

.piece-details {
  display: none;
}

.piece-card.expanded .piece-details {
  display: block;
}

/* ── Brand match strip ───────────────────────────────────────────────── */
.match-strip-wrap {
  margin: 10px 0 6px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 10px;
}

.match-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.match-strip {
  display: flex;
  gap: 8px;
}

.match-thumb {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  aspect-ratio: 1 / 1.2;
}

.match-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.match-score {
  position: absolute;
  bottom: 5px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(10,10,10,0.55);
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.piece-reason {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 6px;
}

.piece-actions {
  padding: 10px 0 4px;
}

/* ── Label pill colours ──────────────────────────────────────────────── */
.label-core-identity   { color: #1a6b3c; background: #eaf5ef; }
.label-core-identity::before   { background: #1a6b3c; }

.label-trend-pull      { color: #1d5ca8; background: #eaf1fb; }
.label-trend-pull::before      { background: #1d5ca8; }

.label-neutral         { color: #777777; background: #f0f0f0; }
.label-neutral::before         { background: #bbbbbb; }

.label-boundary        { color: #c45f00; background: #fff3e6; }
.label-boundary::before        { background: #c45f00; }

.label-exploratory     { color: #7c2ea8; background: #f5edfb; }
.label-exploratory::before     { background: #7c2ea8; }

/* ── Legend button ───────────────────────────────────────────────────── */
.btn-legend {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--ink-2);
  border: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.btn-legend:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Legend overlay ──────────────────────────────────────────────────── */
.legend-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legend-panel {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  overflow: hidden;
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--rule);
}

.legend-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legend-close {
  font-size: 14px;
  background: none;
  border: none;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.1s;
}
.legend-close:hover { color: var(--ink); }

.legend-items {
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
}

.legend-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 24px;
}
.legend-item + .legend-item {
  border-top: 1px solid var(--rule);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.legend-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.legend-item p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ── Status bar ──────────────────────────────────────────────────────── */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  z-index: 999;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #aaa;
}
.status-dot.running { background: #f0c040; animation: pulse 1.2s ease-in-out infinite; }
.status-dot.ok      { background: #4caf7d; }
.status-dot.error   { background: #e05252; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Feedback dropdown ───────────────────────────────────────────────── */
.feedback-wrap { position: relative; }

.feedback-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 200;
  min-width: 180px;
  overflow: hidden;
}
.feedback-menu.open { display: block; }

.feedback-menu-header {
  padding: 10px 14px 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}

.feedback-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.1s;
}
.feedback-option:hover { background: var(--card-bg); color: var(--ink); }

/* ── Style identity card ─────────────────────────────────────────────── */
.style-card-block {
  padding: 48px 0 40px;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
}

.dna-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dna-mood-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.dna-mood-img {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
}

.dna-mood-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dna-swatches {
  display: flex;
  gap: 8px;
  width: 100%;
}

.dna-swatch {
  flex: 1;
  height: 40px;
  border-radius: 8px;
}

.dna-pills {
  justify-content: center;
}

.dna-summary {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  max-width: 480px;
}

.dna-coherence {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.dna-coherence-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.dna-coherence-track {
  flex: 1;
}

.dna-coherence-fill {
  background: var(--ink);
}

.dna-coherence-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
}

.dna-actions {
  display: flex;
  justify-content: center;
}
