/* Garage module — light theme matching HouseHub global.css */

/* Aliases pour les inline styles JS qui utilisent var(--muted) / var(--fg) */
:root {
  --muted: #64748b;
  --fg: #0f172a;
}

/* ─── SOUS-NAVIGATION ──────────────────────────────────────────────────────── */
.garage-subnav {
  display: flex;
  gap: 4px;
  padding: 10px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
}
.garage-subnav .nav-link {
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .15s;
}
.garage-subnav .nav-link:hover { background: #f1f5f9; color: var(--text-main); }
.garage-subnav .nav-link.active { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }

/* ─── CONTAINER & PAGES ────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.page { display: none; }
.page.active { display: block; }

/* ─── CARD ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--text-main); }

/* ─── STATS GRID ────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--border-light);
  box-shadow: var(--shadow);
}
.stat-pill .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.stat-pill .value { font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--text-main); }
.stat-pill.blue  { border-left-color: var(--primary); }
.stat-pill.blue  .value { color: var(--primary); }
.stat-pill.green { border-left-color: var(--success); }
.stat-pill.green .value { color: var(--success); }
.stat-pill.amber { border-left-color: var(--warning); }
.stat-pill.amber .value { color: var(--warning); }
.stat-pill.red   { border-left-color: var(--danger); }
.stat-pill.red   .value { color: var(--danger); }

/* ─── VEHICLES GRID ─────────────────────────────────────────────────────────── */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.vehicle-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  box-shadow: var(--shadow);
}
.vehicle-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.vehicle-card-img {
  width: 100%; height: 180px; overflow: hidden; background: #f1f5f9;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.vehicle-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { font-size: 3.5rem; color: #cbd5e1; }
.vehicle-card-body { padding: 1rem; }
.vehicle-card-title { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: .25rem; }
.vehicle-card-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.vehicle-card-stats { display: flex; gap: .75rem; flex-wrap: wrap; }
.vc-stat { font-size: .82rem; color: var(--text-muted); }
.vehicle-card-footer {
  padding: .6rem 1rem;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--text-muted);
  background: #fafafa;
}

/* ─── FUEL BADGE ────────────────────────────────────────────────────────────── */
.fuel-badge {
  position: absolute; top: .5rem; right: .5rem;
  font-size: .7rem; font-weight: 700;
  padding: .18rem .5rem; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .03em;
}
.fuel-Essence    { background: rgba(59,130,246,.15); color: #2563eb; }
.fuel-Diesel     { background: rgba(139,92,246,.15);  color: #7c3aed; }
.fuel-Hybride    { background: rgba(16,185,129,.15);  color: #059669; }
.fuel-Electrique { background: rgba(6,182,212,.15);   color: #0891b2; }
.fuel-GPL        { background: rgba(245,158,11,.15);  color: #d97706; }

/* ─── PLATE ──────────────────────────────────────────────────────────────────── */
.plate {
  display: inline-block; background: #1d4ed8; color: #fff;
  font-family: 'Courier New', monospace; font-weight: 700;
  font-size: .78rem; padding: .18rem .55rem;
  border-radius: 5px; letter-spacing: .1em;
}

/* ─── TABLE ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border-light); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table-wrap table th {
  background: #f8fafc; color: var(--text-muted);
  font-weight: 600; text-align: left;
  padding: .65rem .9rem; border-bottom: 1px solid var(--border-light); white-space: nowrap;
}
.table-wrap table td {
  padding: .65rem .9rem; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; color: var(--text-main);
}
.table-wrap table tr:last-child td { border-bottom: none; }
.table-wrap table tr:hover td { background: #fafbff; }

/* ─── BADGES ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 999px;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: #f1f5f9; color: var(--text-muted); }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: 8px;
  font-size: .875rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  white-space: nowrap; text-decoration: none; line-height: 1.4;
}
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--bg-panel); color: var(--text-main); border-color: var(--border-light); }
.btn-secondary:hover { background: #f1f5f9; }
.btn-danger   { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover   { background: #fef2f2; }
.btn-sm   { padding: .3rem .65rem; font-size: .8rem; }
.btn-icon { padding: .3rem; min-width: 30px; justify-content: center; }

/* ─── FORMS ──────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-control {
  background: #fff; border: 1px solid var(--border-light); color: var(--text-main);
  border-radius: 8px; padding: .5rem .75rem; font-size: .875rem;
  width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-control::placeholder { color: #cbd5e1; }
select.form-control option { background: #fff; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }

/* ─── MODALS ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  width: 100%; max-width: 640px;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(-8px); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; line-height: 1; padding: .2rem; border-radius: 6px; }
.modal-close:hover { background: #f1f5f9; color: var(--text-main); }
.modal-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: .5rem; flex-shrink: 0; }

/* ─── VEHICLE DETAIL HEADER ─────────────────────────────────────────────────── */
.vehicle-detail-header {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--bg-panel); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.vehicle-detail-img {
  width: 180px; height: 130px; border-radius: 8px; flex-shrink: 0;
  background: #f1f5f9; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.vehicle-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-meta h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin-bottom: .25rem; }
.vehicle-meta .sub { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }
.meta-grid { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.meta-item .k { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.meta-item .v { font-size: .95rem; font-weight: 600; color: var(--text-main); }

/* ─── TABS ───────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.tab-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  padding: .6rem 1rem; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── PARTS ──────────────────────────────────────────────────────────────────── */
.part-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-light); }

/* ─── EMPTY STATE ────────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; padding: 3rem 1rem; color: var(--text-muted); text-align: center;
}
.empty-state .icon { font-size: 2.5rem; opacity: .4; }
.empty-state p { font-size: .9rem; }

/* ─── TOASTS ─────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: .5rem; pointer-events: none;
}
.toast {
  background: var(--bg-panel); border: 1px solid var(--border-light);
  border-radius: 10px; padding: .75rem 1rem;
  font-size: .875rem; min-width: 220px; max-width: 360px; color: var(--text-main);
  box-shadow: var(--shadow-lg); animation: toastIn .2s ease; pointer-events: auto;
  border-left: 4px solid var(--border-light);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ─── SCROLL LIST (pièces connues) ──────────────────────────────────────────── */
.scroll-list {
  max-height: 160px; overflow-y: auto;
  border: 1px solid var(--border-light); border-radius: 8px;
  background: #fff; margin-bottom: 1rem;
}
.scroll-list-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .45rem .75rem; cursor: pointer;
  border-bottom: 1px solid var(--border-light); transition: background .12s;
  user-select: none;
}
.scroll-list-item:last-child { border-bottom: none; }
.scroll-list-item:hover { background: #f8fafc; }
.scroll-list-item input[type="radio"] { flex-shrink: 0; }
.item-name  { flex: 1; font-size: .875rem; font-weight: 500; color: var(--text-main); }
.item-ref   { font-size: .72rem; font-family: monospace; color: var(--text-muted); }
.item-brand { font-size: .75rem; color: var(--text-muted); }
.item-price { font-size: .875rem; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ─── DASHBOARD LAYOUT ─────────────────────────────────────────────────────── */
.garage-dash-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: 1.5rem;
  align-items: start;
}
.garage-dash-main { min-width: 0; }
.garage-dash-aside { padding: 1rem 1.25rem; }
.garage-card-header { flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.garage-tab-actions {
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ─── TABS (scroll mobile) ─────────────────────────────────────────────────── */
.garage-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 0.15rem;
  padding-bottom: 2px;
}
.garage-tabs .tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
}

/* ─── VEHICLE HEADER ACTIONS ───────────────────────────────────────────────── */
.vehicle-detail-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-self: flex-start;
}
.garage-docs-recap {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.garage-docs-recap strong { color: var(--text-main); }
.btn-link-sm {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link-sm:hover { color: var(--primary-dark); }

.garage-maint-doc-badge { font-size: 0.65rem; vertical-align: middle; margin-left: 0.15rem; }

/* ─── DOCUMENTS ───────────────────────────────────────────────────────────── */
.garage-docs-card .card-header { padding: 1rem 1.25rem; }
.garage-doc-upload-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.garage-doc-upload-btn { align-self: flex-end; flex-shrink: 0; }
.garage-doc-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.75rem;
}
.garage-doc-empty { padding: 1.25rem !important; }
.garage-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}
.garage-doc-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}
.garage-doc-item:last-child { border-bottom: none; }
.garage-doc-link {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  word-break: break-word;
}
.garage-doc-link:hover { text-decoration: underline; }
.garage-doc-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.garage-doc-item .btn-icon { flex-shrink: 0; margin-left: auto; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 1rem; }
  .vehicle-detail-header { flex-direction: column; }
  .vehicle-detail-img { width: 100%; height: 200px; }
  .vehicle-detail-actions {
    width: 100%;
    flex-direction: column;
    align-self: stretch;
  }
  .vehicle-detail-actions .btn { width: 100%; justify-content: center; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { max-height: 95vh; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .meta-grid { gap: 0.75rem; }
  .garage-subnav { padding: 8px 12px; overflow-x: auto; flex-wrap: nowrap; }
  .garage-subnav .nav-link { white-space: nowrap; }
  .garage-dash-layout { grid-template-columns: 1fr; }
  .garage-dash-aside { order: -1; }
  .garage-doc-upload-bar { flex-direction: column; align-items: stretch; }
  .garage-doc-upload-btn { width: 100%; align-self: stretch; }
  .garage-doc-item { flex-direction: column; align-items: stretch; }
  .garage-doc-item .btn-icon { margin-left: 0; align-self: flex-end; }
  .garage-doc-meta { white-space: normal; }
  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  .toast { max-width: none; min-width: 0; width: 100%; }
}

@media (max-width: 640px) {
  .table-wrap {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 6px;
  }
  .table-wrap table { min-width: 640px; }
  #inline-part-form .form-row,
  #inline-part-form .form-row-3 { grid-template-columns: 1fr !important; }
}

/* ══ DARK MODE — Garage module ══════════════════════════════════ */
[data-theme="dark"] { --muted: #8b949e; --fg: #e6edf3; }
[data-theme="dark"] .garage-subnav                { background: var(--bg-panel); border-color: var(--border-light); }
[data-theme="dark"] .garage-subnav .nav-link      { color: var(--text-muted); }
[data-theme="dark"] .garage-subnav .nav-link:hover { background: rgba(255,255,255,.06); color: var(--text-main); }
[data-theme="dark"] .garage-subnav .nav-link.active { background: rgba(59,130,246,.15); color: var(--primary); border-color: rgba(59,130,246,.3); }
[data-theme="dark"] .card,
[data-theme="dark"] .vehicle-detail-header        { background: var(--bg-panel); border-color: var(--border-light); }
[data-theme="dark"] .stat-pill                    { background: var(--bg-panel); border-color: var(--border-light); }
[data-theme="dark"] .stat-pill .label             { color: var(--text-muted); }
[data-theme="dark"] .vehicle-card                 { background: var(--bg-panel); border-color: var(--border-light); }
[data-theme="dark"] .vehicle-card:hover           { border-color: var(--primary); }
[data-theme="dark"] .vehicle-card-img             { background: #1c2128; }
[data-theme="dark"] .vehicle-card-footer          { background: #1c2128; border-color: var(--border-light); }
[data-theme="dark"] .vehicle-card-title           { color: var(--text-main); }
[data-theme="dark"] .vehicle-card-sub             { color: var(--text-muted); }
[data-theme="dark"] .vehicle-detail-img           { background: #1c2128; }
[data-theme="dark"] .vehicle-meta h2              { color: var(--text-main); }
[data-theme="dark"] .meta-item .v                 { color: var(--text-main); }
[data-theme="dark"] .card-title, [data-theme="dark"] .modal-title { color: var(--text-main); }
[data-theme="dark"] .table-wrap                   { border-color: var(--border-light); }
[data-theme="dark"] .table-wrap table th          { background: #1c2128; color: var(--text-muted); border-color: var(--border-light); }
[data-theme="dark"] .table-wrap table td          { border-color: rgba(48,54,61,.4); color: var(--text-main); }
[data-theme="dark"] .table-wrap table tr:hover td { background: rgba(255,255,255,.03); }
[data-theme="dark"] .tabs                         { border-color: var(--border-light); }
[data-theme="dark"] .tab-btn                      { color: var(--text-muted); }
[data-theme="dark"] .tab-btn:hover                { color: var(--text-main); }
[data-theme="dark"] .form-label                   { color: var(--text-muted); }
[data-theme="dark"] .form-control                 { background: #1c2128; border-color: var(--border-light); color: var(--text-main); }
[data-theme="dark"] .form-control::placeholder    { color: #484f58; }
[data-theme="dark"] select.form-control option    { background: #1c2128; }
[data-theme="dark"] .modal                        { background: var(--bg-panel); border-color: var(--border-light); }
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer                 { border-color: var(--border-light); }
[data-theme="dark"] .modal-close:hover            { background: rgba(255,255,255,.06); }
[data-theme="dark"] .btn-secondary                { background: #1c2128; border-color: var(--border-light); color: var(--text-main); }
[data-theme="dark"] .btn-secondary:hover          { background: rgba(255,255,255,.06); }
[data-theme="dark"] .btn-danger                   { background: #1c2128; border-color: rgba(239,68,68,.4); }
[data-theme="dark"] .btn-danger:hover             { background: rgba(239,68,68,.08); }
[data-theme="dark"] .badge-gray                   { background: rgba(139,148,158,.15); color: var(--text-muted); }
[data-theme="dark"] .toast                        { background: var(--bg-panel); border-color: var(--border-light); color: var(--text-main); }
[data-theme="dark"] .part-thumb                   { border-color: var(--border-light); }
[data-theme="dark"] .scroll-list                  { background: #1c2128; border-color: var(--border-light); }
[data-theme="dark"] .scroll-list-item             { border-color: rgba(48,54,61,.5); }
[data-theme="dark"] .scroll-list-item:hover       { background: rgba(255,255,255,.04); }
[data-theme="dark"] .item-name                    { color: var(--text-main); }
[data-theme="dark"] #inline-part-form             { background: #1c2128 !important; border-color: var(--border-light) !important; }
[data-theme="dark"] .garage-docs-recap             { background: rgba(255,255,255,.04); border-color: var(--border-light); color: var(--text-muted); }
[data-theme="dark"] .garage-docs-recap strong      { color: var(--text-main); }
[data-theme="dark"] .btn-link-sm                   { color: var(--primary); }
[data-theme="dark"] .garage-doc-list               { border-color: var(--border-light); }
[data-theme="dark"] .garage-doc-item               { background: #1c2128; border-color: rgba(48,54,61,.5); }
[data-theme="dark"] .garage-doc-link               { color: #93c5fd; }
[data-theme="dark"] .garage-doc-meta               { color: var(--text-muted); }
