/* ===========================================================================
   Commander Deck Building Checklist — page-scoped styles (clst- prefix)
   All selectors prefixed .clst- to avoid leaking into other pages.
   Reuses shared Deckcipher design tokens from content.css.
   =========================================================================== */

/* ---- Color / status tokens ------------------------------------------------- */
:root {
  --clst-ok:   #6fcfa0;
  --clst-warn: #e8b04a;
  --clst-bad:  #e87a70;
  --clst-note: #74a7e0;
  --clst-ok-bg:   rgba(111, 207, 160, 0.08);
  --clst-warn-bg: rgba(232, 176, 74,  0.08);
  --clst-bad-bg:  rgba(232, 122, 112, 0.08);
}

/* ---- Hero ------------------------------------------------------------------ */
.clst-hero { display: grid; gap: 14px; }
.clst-lead { color: var(--text-2); font-size: 1.02rem; line-height: 1.55; max-width: 62ch; margin: 0; }
.clst-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---- Buttons --------------------------------------------------------------- */
.clst-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px;
  appearance: none; font-family: var(--font-sans);
  font-weight: 600; font-size: 0.96rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 44px;
}
.clst-btn-primary {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #2a2208;
  box-shadow: 0 14px 30px rgba(201,168,76,0.22);
}
.clst-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(201,168,76,0.3); }
.clst-btn-secondary {
  background: rgba(255,255,255,0.04); border-color: var(--border-strong); color: var(--text-1);
}
.clst-btn-secondary:hover { background: rgba(255,255,255,0.08); }
.clst-btn-ghost {
  background: transparent; border: none; color: var(--accent-soft); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; padding: 4px 8px; text-decoration: underline;
  text-underline-offset: 3px; min-height: 44px;
}
.clst-btn-ghost:hover { color: var(--accent); }

/* ---- Import panel ---------------------------------------------------------- */
.clst-import-panel { display: grid; gap: 16px; }
.clst-panel-title  { margin: 0; font-size: 1.2rem; color: var(--text-1); }

/* Header: title + what-we-check chips */
.clst-import-head  { display: grid; gap: 10px; }
.clst-what-we-check { display: flex; flex-wrap: wrap; gap: 5px; }
.clst-check-chip {
  font-size: 0.74rem; font-weight: 500; padding: 3px 9px; border-radius: 999px;
  background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.14);
  color: var(--text-2);
}

/* ---- Method tabs ----------------------------------------------------------- */
.clst-method-tabs {
  display: flex; border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface-3);
}
.clst-method-tab {
  flex: 1; padding: 10px 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-2);
  background: transparent; border: none; border-right: 1px solid var(--border);
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}
.clst-method-tab:last-child { border-right: none; }
.clst-method-tab:hover:not(.is-active) {
  background: rgba(255,255,255,0.05); color: var(--text-1);
}
.clst-method-tab.is-active {
  background: rgba(201,168,76,0.1); color: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---- Tab panels ------------------------------------------------------------ */
@keyframes clst-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}
.clst-tab-panel { animation: clst-fade-in 140ms ease both; }

/* Textarea */
.clst-textarea {
  display: block; width: 100%; min-height: 160px; resize: vertical;
  font-family: var(--font-sans); line-height: 1.5;
}

/* File drop zone */
.clst-file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 20px; border-radius: var(--r-sm);
  border: 2px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.015);
  text-align: center; cursor: pointer; position: relative;
  transition: border-color 200ms ease, background 200ms ease;
}
.clst-file-drop:hover { border-color: rgba(201,168,76,0.38); background: rgba(201,168,76,0.04); }
.clst-file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0;
  width: 100%; height: 100%; cursor: pointer;
}
.clst-file-drop-icon { font-size: 2rem; line-height: 1; pointer-events: none; }
.clst-file-drop-text {
  display: flex; flex-direction: column; gap: 3px; pointer-events: none;
}
.clst-file-drop-text strong { font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.clst-file-drop-text small  { font-size: 0.76rem; color: var(--text-3); }
.clst-file-chosen {
  font-size: 0.76rem; font-weight: 600; pointer-events: none;
  background: var(--accent-dim); color: var(--accent-soft);
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.2);
}

/* Moxfield panel */
.clst-moxfield-panel { display: grid; gap: 10px; }
.clst-moxfield-hint  { margin: 0; font-size: 0.76rem; color: var(--text-3); }

/* Submit footer */
.clst-form-footer {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.clst-submit-full {
  width: 100%; max-width: 100%; padding: 14px 24px;
  font-size: 1.02rem; flex: none;
}

/* Status line */
.clst-status { margin: 0; color: var(--text-2); font-size: 0.9rem; min-height: 1.2em; }
.clst-status.is-error   { color: var(--clst-bad); }
.clst-status.is-success { color: var(--clst-ok); }

/* ---- Loading state: hide form so only the storm skeleton shows ------------- */
.clst-import--loading #clst-form  { display: none !important; }
.clst-import--loading .clst-status { display: none; }
/* Hide all page sections below the import card while the storm loading is active */
#clst-import.clst-import--loading ~ * { display: none !important; }

/* ---- Import collapsed bar -------------------------------------------------- */
.clst-import-collapsed {
  display: flex; justify-content: center; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border);
}

.clst-dash-header [data-action="edit-deck"] {
  min-height: 36px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Center status line once the form is hidden (results mode) */
#clst-form.clst-hidden ~ .clst-status { text-align: center; }

/* ---- Legacy chip class (still used in score panel) ------------------------- */
.clst-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.clst-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid rgba(201,168,76,0.18);
  color: var(--accent-soft); font-size: 0.82rem; font-weight: 600;
}

/* ---- Results wrapper: even spacing between section cards ------------------- */
#clst-results { display: grid; gap: 20px; }

/* ---- Section helpers ------------------------------------------------------- */
.clst-section       { display: grid; gap: 16px; scroll-margin-top: 80px; }
.clst-section-head  { display: grid; gap: 4px; }
.clst-section-title { margin: 0; font-size: 1.25rem; color: var(--text-1); }
.clst-section-sub   { margin: 0; color: var(--text-2); font-size: 0.92rem; }

/* ---- Limited-mode warning -------------------------------------------------- */
.clst-limited {
  padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(232,176,74,0.08); border: 1px solid rgba(232,176,74,0.25);
  color: var(--clst-warn); font-size: 0.9rem;
}

/* ---- Deck summary header --------------------------------------------------- */
.clst-dash-header { margin-bottom: 4px; }
.clst-dash-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.clst-dash-summary-left {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0;
}
.clst-dash-summary-name {
  font-size: 0.9rem; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px;
}
.clst-dash-dot { color: var(--text-3); font-size: 0.82rem; user-select: none; }
.clst-dash-meta { font-size: 0.82rem; color: var(--text-2); white-space: nowrap; }

/* ---- Top dashboard (3-column on desktop) ---------------------------------- */
.clst-dashboard-top {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 16px;
  align-items: start;
}

/* Left: Commander card */
.clst-commander-panel {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px 16px; background: var(--surface-2); border-radius: var(--r);
  border: 1px solid var(--border); text-align: center;
}
.clst-commander-imgs {
  display: flex; gap: 8px; justify-content: center;
}
.clst-commander-panel--partner .clst-commander-img-wrap { width: 105px; }
.clst-commander-img-wrap {
  position: relative; width: 140px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}
.clst-commander-img {
  display: block; width: 100%; aspect-ratio: 63/88;
  object-fit: cover; background: var(--surface-3);
}
.clst-commander-badge {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(10,10,12,0.82); color: var(--accent-soft);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  backdrop-filter: blur(4px); border: 1px solid rgba(201,168,76,0.3);
}
.clst-commander-info {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%;
}
.clst-commander-name {
  font-size: 0.92rem; font-weight: 700; color: var(--text-1);
  word-break: break-word; line-height: 1.35;
}
.clst-commander-pips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.clst-commander-tcg  { font-size: 0.78rem; }

/* Center: Score + verdict */
.clst-score-panel {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px; background: var(--surface-2); border-radius: var(--r);
  border: 1px solid var(--border); text-align: center;
}
.clst-score-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3);
}
.clst-score-ring-wrap { position: relative; }
.clst-score-ring-svg  { display: block; }
.clst-score-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
}
.clst-score-badge.is-healthy        { background: var(--clst-ok-bg);   color: var(--clst-ok);   border: 1px solid rgba(111,207,160,0.3); }
.clst-score-badge.is-needs-review   { background: var(--clst-warn-bg); color: var(--clst-warn); border: 1px solid rgba(232,176,74,0.3); }
.clst-score-badge.is-missing-basics { background: var(--clst-bad-bg);  color: var(--clst-bad);  border: 1px solid rgba(232,122,112,0.3); }
/* Category chips row */
.clst-score-cats {
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.clst-score-cat {
  font-size: 0.66rem; font-weight: 600; padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.clst-score-cat.is-ok   { background: var(--clst-ok-bg);   color: var(--clst-ok);   border: 1px solid rgba(111,207,160,0.18); }
.clst-score-cat.is-warn { background: var(--clst-warn-bg); color: var(--clst-warn); border: 1px solid rgba(232,176,74,0.18); }
.clst-score-cat.is-bad  { background: var(--clst-bad-bg);  color: var(--clst-bad);  border: 1px solid rgba(232,122,112,0.18); }

/* Lucide category icons (replacing the old emoji). currentColor makes each icon
   inherit its chip/label colour, so status colouring comes for free. */
.clst-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.16em;
}
.clst-cat-icon .dc-icon { display: block; }
.clst-score-breakdown { font-size: 0.72rem; color: var(--text-3); font-weight: 600; }
.clst-score-verdict { color: var(--text-2); font-size: 0.88rem; margin: 0; max-width: 28ch; }
.clst-audit-cta { margin-top: 2px; }

/* Right: Fix-first panel */
.clst-fix-panel {
  padding: 14px; background: var(--surface-2); border-radius: var(--r);
  border: 1px solid var(--border);
}
.clst-fix-panel-header {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px;
}
.clst-fix-all-good { color: var(--clst-ok); font-size: 0.88rem; margin: 0; }
.clst-top-fixes { display: flex; flex-direction: column; gap: 8px; }
.clst-top-fix-card {
  display: grid; gap: 3px; padding: 10px 12px;
  background: var(--surface-3); border-radius: var(--r-sm);
  border: 1px solid var(--border); border-left: 3px solid;
}
.clst-top-fix-card.is-critical { border-left-color: var(--clst-bad); }
.clst-top-fix-card.is-moderate { border-left-color: var(--clst-warn); }
.clst-top-fix-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.clst-top-fix-label  { font-size: 0.78rem; font-weight: 700; color: var(--text-1); }
.clst-top-fix-sev-badge {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.clst-top-fix-sev-badge.is-critical { background: var(--clst-bad-bg);  color: var(--clst-bad); }
.clst-top-fix-sev-badge.is-moderate { background: var(--clst-warn-bg); color: var(--clst-warn); }
.clst-top-fix-count  { font-size: 0.72rem; color: var(--text-3); }
.clst-top-fix-action { font-size: 0.74rem; color: var(--accent-soft); font-weight: 600; }

/* Color identity pips (reused from content.css pattern) */
.clst-pip {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: #15131c;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.clst-pip.is-W { background: #f5e7c4; }
.clst-pip.is-U { background: #74a7e0; }
.clst-pip.is-B { background: #9a86c4; color: #efeaf7; }
.clst-pip.is-R { background: #e08a76; }
.clst-pip.is-G { background: #79c08f; }
.clst-pip.is-C { background: #b9b4c8; }

/* ---- Category tiles grid -------------------------------------------------- */
.clst-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.clst-tile {
  display: grid; gap: 0;
  background: var(--surface-2); border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.clst-tile:hover { border-color: var(--border-strong); }
.clst-tile.is-ok   { border-top: 2px solid var(--clst-ok); }
.clst-tile.is-warn { border-top: 2px solid var(--clst-warn); }
.clst-tile.is-bad  { border-top: 2px solid var(--clst-bad); }

.clst-tile-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 12px 6px;
}
.clst-tile-left { display: flex; align-items: center; gap: 7px; }
.clst-tile-icon { display: inline-flex; align-items: center; line-height: 1; color: var(--text-1); }
.clst-tile-label { font-size: 0.82rem; font-weight: 700; color: var(--text-1); }
.clst-tile-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 7px; border-radius: 999px;
}
.clst-tile-badge.is-ok   { background: var(--clst-ok-bg);   color: var(--clst-ok); }
.clst-tile-badge.is-warn { background: var(--clst-warn-bg); color: var(--clst-warn); }
.clst-tile-badge.is-bad  { background: var(--clst-bad-bg);  color: var(--clst-bad); }

.clst-tile-count {
  padding: 0 12px 4px;
  font-size: 1.35rem; font-weight: 800; color: var(--text-1); line-height: 1;
}
.clst-tile-range { padding: 0 12px 8px; font-size: 0.72rem; color: var(--text-3); }

.clst-tile-bar-wrap { padding: 0 12px 10px; }
.clst-tile-bar-track {
  height: 5px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden;
}
.clst-tile-bar-fill  { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.clst-tile-bar-fill.is-ok   { background: var(--clst-ok); }
.clst-tile-bar-fill.is-warn { background: var(--clst-warn); }
.clst-tile-bar-fill.is-bad  { background: var(--clst-bad); }

.clst-tile details { border-top: 1px solid var(--border); }
.clst-tile details summary {
  padding: 8px 12px; font-size: 0.78rem; color: var(--text-3); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.clst-tile details summary::-webkit-details-marker { display: none; }
.clst-tile details summary::after { content: "▸"; font-size: 0.65rem; }
.clst-tile details[open] summary::after { content: "▾"; }
.clst-tile-detail-body { padding: 8px 12px 12px; display: grid; gap: 8px; }
.clst-tile-detail-title { font-size: 0.72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.clst-tile-detail-cards { display: flex; flex-direction: column; gap: 3px; }
.clst-tile-detail-card  { font-size: 0.78rem; color: var(--text-2); display: flex; gap: 6px; align-items: baseline; }
.clst-tile-detail-qty   { font-size: 0.7rem; color: var(--text-3); min-width: 1.4em; }
.clst-tile-detail-name  { color: var(--text-2); }
.clst-tile-explanation  { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; margin: 0; }
.clst-tile-recs         { display: flex; flex-direction: column; gap: 4px; }
.clst-tile-rec-row      { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clst-tile-rec-name     { font-size: 0.78rem; color: var(--accent-soft); }

/* ---- "What to fix first" priority cards ------------------------------------ */
.clst-priorities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.clst-priority-card {
  display: grid; gap: 6px; padding: 14px;
  background: var(--surface-2); border-radius: var(--r);
  border: 1px solid var(--border); border-left: 3px solid;
}
.clst-priority-card.is-critical { border-left-color: var(--clst-bad); }
.clst-priority-card.is-moderate { border-left-color: var(--clst-warn); }
.clst-priority-head  { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clst-priority-label { font-size: 0.88rem; font-weight: 700; color: var(--text-1); display: flex; gap: 6px; align-items: center; }
.clst-priority-sev {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 999px;
}
.clst-priority-sev.is-critical { background: var(--clst-bad-bg); color: var(--clst-bad); }
.clst-priority-sev.is-moderate { background: var(--clst-warn-bg); color: var(--clst-warn); }
.clst-priority-count  { font-size: 0.78rem; color: var(--text-3); }
.clst-priority-action { font-size: 0.82rem; color: var(--accent-soft); font-weight: 600; }
.clst-priority-recs   { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.clst-priority-rec    {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; padding: 3px 8px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.clst-priority-rec:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---- Charts section -------------------------------------------------------- */
.clst-charts-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}
.clst-chart-ring-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.clst-chart-ring-label { font-size: 0.78rem; color: var(--text-3); text-align: center; }
.clst-bar-chart { display: grid; gap: 8px; }
.clst-bar-row   { display: grid; grid-template-columns: 110px 32px 1fr; gap: 8px; align-items: center; }
.clst-bar-label { font-size: 0.78rem; color: var(--text-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clst-bar-count { font-size: 0.78rem; font-weight: 700; color: var(--text-1); text-align: center; }
.clst-bar-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; position: relative; }
.clst-bar-range-zone { position: absolute; top: 0; height: 100%; background: rgba(255,255,255,0.04); border-radius: 999px; }
.clst-bar-fill  { height: 100%; border-radius: 999px; transition: width 0.45s ease; }
.clst-bar-fill.is-ok   { background: var(--clst-ok); }
.clst-bar-fill.is-warn { background: var(--clst-warn); }
.clst-bar-fill.is-bad  { background: var(--clst-bad); }

/* ---- Recommendations section ----------------------------------------------- */
.clst-rec-section { display: grid; gap: 16px; }
.clst-recs-bucket { display: grid; gap: 10px; }
.clst-recs-bucket-head {
  font-size: 0.78rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---- Related tools --------------------------------------------------------- */
.clst-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* ---- Final audit CTA ------------------------------------------------------- */
.clst-final-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.clst-final-cta-text { display: grid; gap: 4px; }
.clst-final-cta-heading { margin: 0; font-size: 1.1rem; color: var(--text-1); }
.clst-final-cta-sub     { margin: 0; font-size: 0.88rem; color: var(--text-2); }

/* ---- SEO content ----------------------------------------------------------- */
.clst-seo-section { display: grid; gap: 0; }
.clst-seo-section details { border-bottom: 1px solid var(--border); }
.clst-seo-section details:first-of-type { border-top: 1px solid var(--border); }
.clst-seo-section details summary {
  padding: 14px 0; font-weight: 600; color: var(--text-1); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.96rem;
}
.clst-seo-section details summary::-webkit-details-marker { display: none; }
.clst-seo-section details summary::after { content: "+"; font-size: 1.1rem; color: var(--text-3); }
.clst-seo-section details[open] summary::after { content: "−"; }
.clst-seo-section details p, .clst-seo-section details li {
  color: var(--text-2); font-size: 0.93rem; line-height: 1.65; margin: 0 0 10px;
}
.clst-seo-section details > *:not(summary) { padding-bottom: 14px; }

/* ---- Helpers --------------------------------------------------------------- */
.clst-hidden { display: none !important; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .clst-dashboard-top {
    grid-template-columns: 240px 1fr 200px;
  }
}

@media (max-width: 900px) {
  .clst-dashboard-top {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .clst-commander-panel { grid-column: 1; grid-row: 1; }
  .clst-score-panel     { grid-column: 2; grid-row: 1; }
  .clst-top-fixes       { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; }
  .clst-top-fix-card    { flex: 1 1 160px; }
  .clst-tiles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .clst-import-grid { grid-template-columns: 1fr; }
  .clst-tiles-grid  { grid-template-columns: repeat(2, 1fr); }
  .clst-dashboard-top {
    grid-template-columns: 1fr;
  }
  .clst-commander-panel { grid-column: 1; grid-row: 1; }
  .clst-score-panel     { grid-column: 1; grid-row: 2; }
  .clst-fix-panel       { grid-column: 1; grid-row: 3; }
  .clst-charts-row { grid-template-columns: 1fr; }
  .clst-chart-ring-col  { flex-direction: row; justify-content: center; }
  .clst-bar-row { grid-template-columns: 80px 28px 1fr; }
  .clst-dash-summary-name { max-width: 220px; }
}

@media (max-width: 440px) {
  .clst-tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .clst-priorities-grid { grid-template-columns: 1fr; }
  /* Tabs: tighter on very small screens */
  .clst-method-tab { padding: 9px 6px; font-size: 0.76rem; }
  .clst-file-drop  { padding: 24px 16px; }
  .clst-submit-full { font-size: 0.96rem; padding: 13px 20px; }
  .clst-dash-summary-name { max-width: 180px; }
  .clst-what-we-check { gap: 4px; justify-content: center; }
  .clst-check-chip { font-size: 0.7rem; padding: 2px 8px; }
}

/* ---- Final CTA feature chips ----------------------------------------------- */
.full-audit-feat-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.full-audit-feat {
  font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  color: var(--accent-soft);
}
