/* ============================================================
   PRINT SPEC GENERATOR — STYLES
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0d12;
  --bg2:         #13131c;
  --surface:     #1a1a28;
  --surface2:    #22223a;
  --border:      rgba(108, 99, 255, 0.18);
  --border-soft: rgba(255,255,255,0.07);
  --accent:      #6C63FF;
  --accent2:     #A78BFA;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --text:        #f0efff;
  --text-muted:  #8b8aad;
  --text-dim:    #5a5a7a;
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ---- Header ---- */
.app-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.header-inner { display: flex; align-items: center; gap: 16px; }

.logo-mark {
  width: 48px; height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}

.app-title {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-subtitle {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ---- Top Grid (Upload + Project Info) ---- */
.top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 680px) { .top-grid { grid-template-columns: 1fr; } }

/* ---- Step Cards ---- */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}

.step-card:not(.hidden) {
  animation: slideIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.top-grid .step-card { margin-bottom: 0; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-card.hidden { display: none; }

.step-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px;
}

.step-num {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 0.68rem; font-weight: 800;
  width: 24px; height: 24px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0; flex-shrink: 0;
}

.step-desc { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }

/* ---- Dropzone ---- */
.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.05);
}

.dropzone-icon { margin-bottom: 12px; }

.dropzone-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }

.dropzone-sub { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 16px; }

.btn-upload {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  padding: 8px 20px; border-radius: 7px;
  cursor: pointer; border: none;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-upload:hover { opacity: 0.88; transform: translateY(-1px); }

.file-badge {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 0.8rem; font-weight: 500;
  color: var(--accent2); animation: slideIn 0.22s ease both;
}

.btn-clear {
  margin-left: auto; background: none; border: none;
  color: var(--text-dim); cursor: pointer; font-size: 1rem;
  line-height: 1; padding: 0 2px; transition: color var(--transition);
}
.btn-clear:hover { color: #ff6b6b; }

/* ---- Project Info ---- */
.info-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-field { display: flex; flex-direction: column; gap: 6px; }
.info-full { grid-column: 1 / -1; }

.info-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}

.info-opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-dim); }

.info-input {
  background: var(--bg2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.82rem; padding: 9px 12px;
  outline: none; transition: border-color var(--transition);
}
.info-input:focus { border-color: var(--accent); }
.info-input::placeholder { color: var(--text-dim); }

.color-row { display: flex; align-items: center; gap: 10px; }

.color-swatch {
  width: 38px; height: 34px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  cursor: pointer; padding: 2px; background: var(--bg2);
}

.color-hex-label {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  font-family: monospace; letter-spacing: 0.05em;
}

.logo-upload-strip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 9px 12px; cursor: pointer; font-size: 0.8rem;
  color: var(--text-dim); transition: border-color var(--transition), color var(--transition);
}
.logo-upload-strip:hover { border-color: var(--accent); color: var(--text-muted); }

/* ---- Mapping Toggle Accordion ---- */
.mapping-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: 'Inter', sans-serif; color: var(--text-muted);
}

.mapping-toggle-left {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 500; color: var(--text-muted);
}

.mapping-toggle-right {
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  letter-spacing: 0.04em; transition: opacity var(--transition);
}
.mapping-toggle:hover .mapping-toggle-right { opacity: 0.75; }

.mapping-body {
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  max-height: 0; opacity: 0;
}
.mapping-body:not(.hidden) { max-height: 900px; opacity: 1; }

/* ---- Mapping Grid ---- */
.mapping-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 20px;
}
@media (max-width: 600px) { .mapping-grid { grid-template-columns: 1fr; } }

.mapping-row {
  background: var(--bg2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 12px 14px;
}

.mapping-field-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 7px;
}

.mapping-select {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border-soft); border-radius: 6px;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.8rem; padding: 7px 9px; outline: none;
  cursor: pointer; transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}
.mapping-select:focus { border-color: var(--accent); }
.mapping-select option { background: var(--surface2); }

.dim-split { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 8px; }

.dim-sub-label {
  font-size: 0.65rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}

.detected-cols-hint {
  grid-column: 1 / -1; font-size: 0.72rem; color: var(--text-dim);
  line-height: 1.7; padding: 9px 12px;
  background: var(--bg2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); word-break: break-word; margin-top: 2px;
}
.detected-cols-hint strong { color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 3px; }

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600;
  padding: 11px 24px; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(108,99,255,0.4); }

/* ---- Line Item Select ---- */
.select-row { display: flex; gap: 12px; align-items: center; }
.custom-select-wrapper { position: relative; flex: 1; }

.custom-select {
  width: 100%; background: var(--bg2);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 0.88rem; padding: 12px 42px 12px 14px;
  outline: none; cursor: pointer;
  transition: border-color var(--transition);
  -webkit-appearance: none; appearance: none;
}
.custom-select:focus { border-color: var(--accent); }
.custom-select option { background: var(--surface2); }

.select-arrow {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%); color: var(--accent);
  pointer-events: none; font-size: 0.85rem;
}

/* ---- Preview Shell ---- */
.preview-shell { margin-top: 4px; }

.preview-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}

.preview-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
}

.toolbar-actions { display: flex; gap: 10px; align-items: center; }

.btn-artwork-upload {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1px solid var(--border-soft);
  color: var(--text-muted); border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500;
  padding: 8px 14px; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-artwork-upload:hover { border-color: var(--accent); color: var(--text); }

.btn-download {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600;
  padding: 9px 18px; cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.35);
}
.btn-download:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(108,99,255,0.45); }

/* ============================================================
   SLIDE PREVIEW — matches the spec sheet reference layout
   ============================================================ */
.slide-preview {
  background: #fff;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 16px 56px rgba(0,0,0,0.45);
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
}

/* The inner frame handles all padding/layout */
.slide-frame {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 5% 5.5% 4%;
  box-sizing: border-box;
}

/* Header top row: meta text + logo */
.slide-hdr-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4%;
}

.slide-meta-line {
  font-size: clamp(0.42rem, 0.9vw, 0.62rem);
  color: #666;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em;
  flex: 1;
}

.meta-part { color: #555; }

.meta-sep {
  font-weight: 700;
  margin: 0 0.15em;
}

.slide-logo {
  font-size: clamp(0.8rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-left: 2%;
  line-height: 1;
  flex-shrink: 0;
}

.slide-logo img {
  max-height: 3.5vw;
  max-width: 8vw;
  object-fit: contain;
  display: block;
}

/* Bold title */
.slide-title {
  font-size: clamp(0.85rem, 2.1vw, 1.45rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 0.5%;
  margin-bottom: 1.5%;
  text-transform: uppercase;
}

/* Rule below title */
.slide-rule {
  height: 1px;
  background: #ccc;
  margin-bottom: 2%;
  border: none;
}

/* Body: two columns */
.slide-body {
  display: flex;
  gap: 3%;
  flex: 1;
  min-height: 0;
}

/* Left: specs */
.slide-col-left {
  width: 40%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.slide-disclaimer {
  font-size: clamp(0.38rem, 0.75vw, 0.55rem);
  font-style: italic;
  color: #888;
  line-height: 1.5;
  margin-bottom: 3%;
}

.slide-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: flex;
  align-items: baseline;
  padding: 2px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  animation: specFadeIn 0.25s ease both;
}
.spec-row:last-child { border-bottom: none; }

@keyframes specFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

.spec-key {
  font-weight: 700; color: #1a1a1a;
  font-size: clamp(0.38rem, 0.85vw, 0.6rem);
  white-space: nowrap;
}
.spec-sep {
  font-weight: 700; color: #1a1a1a;
  font-size: clamp(0.38rem, 0.85vw, 0.6rem);
  margin-right: 0.3em;
}
.spec-val {
  font-weight: 400; color: #333;
  font-size: clamp(0.38rem, 0.85vw, 0.6rem);
  flex: 1; word-break: break-word;
}

/* Right: artwork */
.slide-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.artwork-frame {
  flex: 1;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  min-height: 0;
}

.artwork-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.artwork-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; color: #bbb;
  font-size: clamp(0.35rem, 0.7vw, 0.52rem);
  text-align: center; padding: 12% 10%;
}

/* ── Measurement lines flanking the artwork ── */

/* Grid: [h-ann | artwork] and [spacer | w-ann] */
.art-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

/* Height annotation — left column, spans both grid rows */
.dim-ann-h {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;        /* needed for .dim-ann-h-inner absolute positioning */
  width: clamp(26px, 4.5vw, 40px);  /* explicit width so grid column doesn't collapse */
  padding-right: 4px;
  min-width: 0;
}

/* Inner wrapper: JS sets top + height to match rendered image */
.dim-ann-h-inner {
  position: absolute;
  left: 0;
  top: 0;        /* overridden by JS */
  height: 100%;  /* overridden by JS */
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 2px;
}

.dim-ann-text-h {
  font-weight: 700;
  font-size: clamp(0.3rem, 0.65vw, 0.48rem);
  white-space: nowrap;
}

/* Vertical ruler line */
.dim-ruler-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Matches artwork row height only */
  height: 100%;
}

/* Horizontal ruler line */
.dim-ruler-h {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

/* Shared shaft styles */
.dim-shaft-v {
  width: 1px;
  flex: 1;
  background: currentColor;
}

.dim-shaft-h {
  height: 1px;
  flex: 1;
  background: currentColor;
}

/* Tick marks */
.dim-tick { background: currentColor; flex-shrink: 0; }
.dim-tick-h { width: clamp(4px, 0.8vw, 7px); height: 1px; }  /* horizontal tick on vertical ruler */
.dim-tick-v { height: clamp(4px, 0.8vw, 7px); width: 1px; }  /* vertical tick on horizontal ruler */

/* Width annotation — right column, row 2 */
.dim-ann-w {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* left-aligned so inner wrapper can use marginLeft */
  padding-top: 4px;
  overflow: visible;
}

/* Inner wrapper: JS sets marginLeft + width to match rendered image */
.dim-ann-w-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  /* width and marginLeft set by JS */
}

.dim-ann-text {
  font-weight: 700;
  font-size: clamp(0.3rem, 0.65vw, 0.48rem);
  margin-top: 2px;
  white-space: nowrap;
}


/* Slide empty state */
.slide-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #aaa; font-size: 0.78rem; text-align: center; gap: 8px;
}

/* ============================================================
   BATCH EXPORT STYLES
   ============================================================ */

.batch-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 16px;
}
.batch-dropzone:hover, .batch-dropzone.dragover {
  border-color: var(--accent); background: rgba(108,99,255,0.05);
}

.batch-btn-group {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}

.btn-upload-alt {
  background: var(--surface2);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.btn-upload-alt:hover { opacity: 0.85; }

/* File list */
.batch-file-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 18px;
  max-height: 360px; overflow-y: auto;
  padding-right: 4px;
}

.batch-file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 8px 12px;
  animation: slideIn 0.2s ease both;
}

/* Status left border */
.batch-file-item[data-status="matched"]   { border-left: 3px solid #4ade80; }
.batch-file-item[data-status="unmatched"] { border-left: 3px solid #f59e0b; }
.batch-file-item[data-status="eps-error"] { border-left: 3px solid #f87171; }
.batch-file-item[data-status="error"]     { border-left: 3px solid #f87171; }
.batch-file-item[data-status="converting"]{ border-left: 3px solid var(--accent); }

/* Thumbnail */
.batch-thumb {
  width: 36px; height: 36px; border-radius: 4px;
  background: var(--surface2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.batch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.batch-thumb-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* File info */
.batch-file-info { flex: 1; min-width: 0; }
.batch-file-name {
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.batch-file-match {
  font-size: 0.68rem; color: var(--text-dim); display: block; margin-top: 1px;
}
.batch-file-match.ok   { color: #4ade80; }
.batch-file-match.warn { color: #f59e0b; }
.batch-file-match.err  { color: #f87171; }

/* Badges */
.batch-badges { display: flex; gap: 5px; flex-shrink: 0; }
.badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 6px;
}
.badge-pdf    { background: rgba(239,68,68,0.15);  color: #f87171; }
.badge-svg    { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-img    { background: rgba(74,222,128,0.15);  color: #4ade80; }
.badge-ai     { background: rgba(249,115,22,0.15);  color: #fb923c; }
.badge-eps    { background: rgba(239,68,68,0.15);   color: #f87171; }
.badge-ok     { background: rgba(74,222,128,0.15);  color: #4ade80; }
.badge-warn   { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.badge-error  { background: rgba(239,68,68,0.15);   color: #f87171; }

/* Actions bar */
.batch-actions {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--border-soft);
}
.batch-summary {
  font-size: 0.78rem; color: var(--text-muted);
}

/* Diagnostics panel */
.batch-diagnostics {
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.diag-card {
  background: var(--bg2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.diag-card.diag-missing { border-left: 3px solid #f59e0b; }
.diag-card.diag-dupes   { border-left: 3px solid #f87171; }

.diag-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 6px;
}
.diag-missing .diag-title { color: #f59e0b; }
.diag-dupes   .diag-title { color: #f87171; }

.diag-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.diag-list li {
  font-size: 0.73rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.diag-list li::before { content: '·'; color: var(--text-dim); }

/* ---- Utility ---- */

.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }


