:root {
  --bg: #060b12;
  --bg-alt: #0b141f;
  --surface: #101b28;
  --surface-2: #16243350;
  --border: #223247;
  --text: #eaf2fb;
  --text-dim: #9fb3c8;
  --accent: #35e0c0;
  --accent-2: #4f8bff;
  --danger: #ff6b6b;
  --success: #4ade80;
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(6, 11, 18, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: block;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 0 16px -2px rgba(53, 224, 192, 0.45);
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131a;
  box-shadow: 0 8px 24px -8px rgba(53, 224, 192, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0c2b33 0%, var(--bg) 65%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* The canvas paints an opaque background so trails can fade against it, which
   would otherwise hide the hero glow — so the glow is layered back on top,
   between the canvas and the text. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% -5%, rgba(16, 74, 86, 0.45) 0%, transparent 68%),
    radial-gradient(ellipse 52% 38% at 50% 50%, rgba(6, 11, 18, 0.6) 0%, transparent 74%);
}

/* Keeps the headline readable over the brightest streaks. */
.hero h1, .hero p, .hero .eyebrow {
  text-shadow: 0 2px 18px rgba(6, 11, 18, 0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  background: rgba(53, 224, 192, 0.06);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #ffffff, #9fdff0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 34px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Feature grid ---------- */
.features {
  padding: 80px 0;
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 12px;
}
.features .sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card .icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Live build view ---------- */
.bv-wrap { display: block; }

.bv3d-shell {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 50% 25%, #12222f 0%, #080f18 70%);
  overflow: hidden;
}
.bv3d-canvas {
  display: block;
  width: 100%;
  height: 340px;
  touch-action: none;
}
@media (max-width: 620px) { .bv3d-canvas { height: 270px; } }

.bv3d-reset {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 11, 18, 0.72);
  color: var(--text-dim);
  cursor: pointer;
}
.bv3d-reset:hover { border-color: var(--accent); color: var(--text); }

.bv3d-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.72rem;
  color: var(--text-dim);
  pointer-events: none;
  opacity: 0.75;
}

.bv-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.bv-case { flex: 1 1 380px; min-width: 300px; height: auto; display: block; }
.bv-monitor { width: 150px; flex: 0 0 auto; height: auto; }
@media (max-width: 620px) { .bv-monitor { width: 118px; } }

.bv-tag {
  font-size: 10.5px;
  font-family: "Segoe UI", system-ui, sans-serif;
  fill: #7f97b3;
}

.bv-caption {
  font-size: 0.79rem;
  color: var(--text-dim);
  margin: 12px 0 0;
  line-height: 1.45;
}

.cl-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cl-row { display: block; }
.cl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.cl-label { font-size: 0.87rem; color: var(--text); }
.cl-value { font-size: 0.8rem; color: var(--text-dim); }
.cl-note { font-weight: 700; margin-left: 6px; }
.cl-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cl-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.2s ease;
}
.cl-over {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0 5px, rgba(255,107,107,0.35) 5px 10px);
}

/* ---------- Landing: two-tool showcase ---------- */
.tools { padding: 20px 0 80px; }
.tools h2 { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.tools .sub { text-align: center; color: var(--text-dim); margin-bottom: 48px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}

.tool-badge {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--accent);
  background: rgba(53, 224, 192, 0.1);
  border: 1px solid rgba(53, 224, 192, 0.3);
}
.tool-badge.alt {
  color: var(--accent-2);
  background: rgba(79, 139, 255, 0.1);
  border-color: rgba(79, 139, 255, 0.3);
}

.tool-card h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.25; }
.tool-card > p {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tool-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
}
/* Indent from the marker with padding rather than flex: a flex container would
   turn inline <strong> runs inside the text into separate flex items and add
   gaps around them mid-sentence. */
.tool-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.tool-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.tool-card .btn { margin-top: auto; align-self: flex-start; }

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Auth ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0c2b33 0%, var(--bg) 65%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.auth-card h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  text-align: center;
}
.auth-card .sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.95rem;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 192, 0.15);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 5px;
}

.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
}
.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
  color: #a7f3c9;
}
.hidden { display: none !important; }

/* ---------- App shell ---------- */
.app-shell { min-height: 100vh; }
.app-main {
  padding: 40px 0 80px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.page-header h1 { margin: 0; font-size: 1.7rem; }
.page-header p { margin: 4px 0 0; color: var(--text-dim); }

/* ---------- Dashboard cards ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.panel h2 { margin: 0 0 6px; font-size: 1.15rem; }
.panel .sub { color: var(--text-dim); font-size: 0.88rem; margin: 0 0 20px; }

.category-list {
  display: grid;
  gap: 10px;
}
.category-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-btn:hover { border-color: var(--accent); transform: translateX(2px); }
.category-btn .emoji { font-size: 1.2rem; }

.history-list { display: grid; gap: 10px; }
.history-item {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.history-item .meta { display: flex; flex-direction: column; gap: 3px; }
.history-item .cat { font-weight: 600; font-size: 0.92rem; }
.history-item .date { font-size: 0.78rem; color: var(--text-dim); }
.history-item .diag { font-size: 0.82rem; color: var(--text-dim); max-width: 320px; }
.empty-state {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 30px 10px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* ---------- Wizard ---------- */
.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 680px;
  margin: 0 auto;
}
.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 26px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}
.wizard-question {
  font-size: 1.2rem;
  margin: 0 0 20px;
}
.wizard-options { display: grid; gap: 10px; }
.wizard-option {
  text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wizard-option:hover { border-color: var(--accent); background: #14283180; }

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.result-header .emoji { font-size: 2rem; }
.result-diagnosis { color: var(--text-dim); margin: 0 0 24px; line-height: 1.5; }
.fix-list { display: grid; gap: 12px; margin-bottom: 26px; }
.fix-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.fix-item .num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131a;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fix-item p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #06131a;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Session detail modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 12, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-date { color: var(--text-dim); font-size: 0.82rem; margin: 0 0 22px; }

.modal-close {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.modal-close:hover { border-color: var(--accent); color: var(--text); }

.modal-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.recap-list { display: grid; gap: 8px; margin-bottom: 26px; }
.recap-item {
  border-left: 2px solid var(--border);
  padding: 2px 0 2px 14px;
}
.recap-item .q { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 3px; }
.recap-item .a { font-size: 0.92rem; color: var(--text); font-weight: 600; }

.history-item .meta { cursor: pointer; flex: 1; min-width: 0; }
.history-item .meta:hover .cat { color: var(--accent); }

/* ---------- Status badge + progress controls ---------- */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  width: fit-content;
}
.status-open {
  color: var(--text-dim);
  border-color: var(--border);
  background: rgba(159, 179, 200, 0.08);
}
.status-resolved {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
}
.status-didnt_work {
  color: #ffb45c;
  border-color: rgba(255, 180, 92, 0.4);
  background: rgba(255, 180, 92, 0.1);
}

.history-item .cat-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.progress-box {
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 22px;
}

.status-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.status-btn {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.status-btn:hover { border-color: var(--accent); color: var(--text); }
.status-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(53, 224, 192, 0.12);
}

.notes-input {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.5;
}
.notes-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 192, 0.15);
}

.progress-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.save-state { font-size: 0.83rem; color: var(--text-dim); }
.save-state.ok { color: var(--success); }
.save-state.err { color: #ffb3b3; }

.modal-notes {
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 22px;
  color: var(--text);
}

/* ---------- Build planner ---------- */
.currency-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-alt);
}
.currency-toggle button {
  padding: 9px 16px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.currency-toggle button:hover { color: var(--text); }
.currency-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06131a;
}

.converted-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 10px 0 0;
  line-height: 1.45;
}
.price-approx { opacity: 0.75; }


.builder-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) { .builder-grid { grid-template-columns: 1fr; } }

.slot-list { display: grid; gap: 10px; }

.slot {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color 0.15s ease;
  text-align: left;
  width: 100%;
  color: var(--text);
}
.slot:hover { border-color: var(--accent); }
.slot.filled { border-color: #2b4256; }
.slot.conflict { border-color: var(--danger); }

.slot .emoji { font-size: 1.25rem; flex-shrink: 0; }
.slot .slot-body { flex: 1; min-width: 0; }
.slot .slot-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.slot .slot-value { display: block; font-size: 0.94rem; font-weight: 600; }
.slot .slot-value.empty { color: var(--text-dim); font-weight: 400; }
.slot .slot-price { font-size: 0.9rem; color: var(--text-dim); flex-shrink: 0; }
.slot .slot-clear {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
}
.slot .slot-clear:hover { color: var(--danger); }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row .label { color: var(--text-dim); }
.summary-row .value { font-weight: 600; }
.summary-total { font-size: 1.5rem; font-weight: 700; }

.verdict {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.verdict-ok {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
  color: #a7f3c9;
}
.verdict-warn {
  background: rgba(255, 180, 92, 0.1);
  border-color: rgba(255, 180, 92, 0.35);
  color: #ffce9c;
}
.verdict-bad {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffb3b3;
}

.issue-list { display: grid; gap: 9px; margin: 0 0 18px; }
.issue {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  line-height: 1.5;
  padding: 11px 13px;
  border-radius: 9px;
  border-left: 3px solid var(--border);
  background: var(--bg-alt);
}
.issue.error { border-left-color: var(--danger); }
.issue.warning { border-left-color: #ffb45c; }
.issue.note { border-left-color: var(--accent-2); }
.issue .ico { flex-shrink: 0; }

/* Part picker */
.picker-search {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.picker-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 192, 0.15);
}

.picker-list { display: grid; gap: 8px; }
.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  width: 100%;
}
.picker-item:hover { border-color: var(--accent); }
.picker-item.incompatible { opacity: 0.55; }
.picker-item .pi-body { min-width: 0; }
.picker-item .pi-name { display: block; font-weight: 600; font-size: 0.92rem; }
.picker-item .pi-spec { display: block; font-size: 0.79rem; color: var(--text-dim); margin-top: 2px; }
.picker-item .pi-price { font-weight: 600; font-size: 0.92rem; flex-shrink: 0; }
.picker-item .pi-flag {
  display: block;
  font-size: 0.76rem;
  color: #ffb45c;
  margin-top: 3px;
}

.build-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 13px 15px;
}
.build-item .bi-meta { min-width: 0; cursor: pointer; flex: 1; }
.build-item .bi-name { display: block; font-weight: 600; font-size: 0.92rem; }
.build-item .bi-meta:hover .bi-name { color: var(--accent); }
.build-item .bi-sub { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .navbar { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 1rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
  #user-email { display: none; }
  .container { padding: 0 16px; }
  .wizard-card, .panel, .modal { padding: 22px 18px; }
  .history-item { flex-direction: column; align-items: stretch; }
  .history-item .diag { max-width: none; }
  .hero { min-height: 80vh; }
}
