/* === 784 Admin — clean Linear/Vercel-style admin === */

:root {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-sidebar: #0a0a0a;
  --bg-sidebar-hover: #1a1a1a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
  --text-on-dark: #fafafa;
  --text-on-dark-muted: #a1a1aa;
  --accent: #0a0a0a;
  --accent-text: #fafafa;
  --primary: #18181b;
  --primary-hover: #27272a;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warn-bg: #fef3c7;
  --warn-text: #854d0e;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --info-bg: #dbeafe;
  --info-text: #1e40af;
  --booked-bg: #eef2ff;
  --booked-border: #6366f1;
  --booked-text: #3730a3;
  --blocked-bg: #fef2f2;
  --blocked-border: #ef4444;
  --blocked-text: #991b1b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html, body, #app {
  margin: 0; padding: 0;
  height: 100%;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }

/* === Layout shell === */
.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  background: var(--bg-sidebar);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 4px;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid #262626;
  margin-bottom: 12px;
}
.sidebar-brand-mark {
  width: 28px; height: 28px;
  background: var(--text-on-dark);
  color: var(--bg-sidebar);
  border-radius: 6px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.5px;
}
.sidebar-brand-name {
  font-weight: 600;
  font-size: 14px;
}
.sidebar-brand-sub {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  margin-top: 1px;
}
.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-on-dark-muted);
  padding: 12px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark-muted);
  cursor: pointer;
  font-size: 13px;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: var(--bg-sidebar-hover); color: var(--text-on-dark); }
.nav-item.active { background: var(--bg-sidebar-hover); color: var(--text-on-dark); }
.nav-item.disabled { opacity: 0.4; cursor: not-allowed; }
.nav-icon {
  width: 16px; height: 16px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-pill {
  margin-left: auto;
  background: #262626;
  color: var(--text-on-dark-muted);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid #262626;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 28px; height: 28px;
  background: #404040;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.user-name { font-size: 13px; }
.user-role { font-size: 11px; color: var(--text-on-dark-muted); }

/* === Main area === */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  flex-shrink: 0;
  gap: 16px;
}
.topbar-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.topbar-sub { font-size: 13px; color: var(--text-muted); }
.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* === Buttons === */
.btn-primary {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--bg); }
.btn-icon {
  background: transparent;
  border: 1px solid var(--border-strong);
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--text);
}
.btn-icon:hover { background: var(--bg); }
.btn-link-danger {
  background: transparent; border: none; color: var(--danger);
  cursor: pointer; font-size: 13px; padding: 4px 8px; border-radius: 4px;
}
.btn-link-danger:hover { background: #fef2f2; }

/* === View toggle (segmented) === */
.view-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.view-toggle button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
}
.view-toggle button.active {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* === Card grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.vehicle-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.vehicle-card-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.vehicle-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vehicle-card-status {
  position: absolute; top: 10px; right: 10px;
}
.no-photo {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--text-subtle);
  font-size: 12px;
}
.vehicle-card-body {
  padding: 14px 16px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.vehicle-card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}
.vehicle-card-price { font-weight: 600; white-space: nowrap; }
.vehicle-card-meta {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.vehicle-card-meta .dot { color: var(--text-subtle); }
.vehicle-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.add-card {
  border: 2px dashed var(--border-strong);
  background: transparent;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 240px;
  font-family: inherit;
  text-align: center;
  gap: 8px;
}
.add-card:hover { background: var(--bg-elev); border-color: var(--text-muted); color: var(--text); }
.add-card-icon { font-size: 32px; line-height: 1; font-weight: 300; }

/* === Badges === */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-muted { background: #f4f4f5; color: var(--text-muted); }

/* === Table === */
.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--bg);
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--text); }
.data-table th.num, .data-table td.num { text-align: right; }
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: var(--bg); }
.cell-strong { font-weight: 500; }
.thumb-cell { padding: 6px 12px; width: 56px; }
.row-thumb {
  width: 44px; height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

/* === Split view === */
.split-view {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 130px);
}
.split-list {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.split-row {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
  border-left: none; border-right: none; border-top: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.split-row:hover { background: var(--bg); }
.split-row.active { background: #f4f4f5; }
.split-thumb {
  width: 56px; height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.split-row-text { flex: 1; min-width: 0; }
.split-row-title { font-size: 13px; font-weight: 500; }
.split-detail {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
}
.split-detail-photo {
  aspect-ratio: 16/8;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.split-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-detail-body { padding: 24px; }
.split-detail-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 20px;
}
.split-detail-title { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.3px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.spec-value { font-size: 14px; font-weight: 500; }
.split-description { padding-top: 20px; max-width: 720px; }
.split-description p { margin: 6px 0 0; line-height: 1.6; color: var(--text); }

/* === Vehicle detail page === */
.detail-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 0; font-size: 13px;
  margin-bottom: 8px;
}
.back-link:hover { color: var(--text); }
.detail-title { margin: 0; font-size: 22px; letter-spacing: -0.3px; }
.detail-sub { color: var(--text-muted); margin-top: 2px; }

.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  border: none; background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--text); }
.tab-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  color: var(--text-muted);
}

/* === Editor === */
.editor {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 920px;
}
.editor-section { margin-bottom: 28px; }
.editor-section:last-of-type { margin-bottom: 0; }
.editor-section-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.form-row {
  display: flex; gap: 12px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.form-field { flex: 1; min-width: 0; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-elev);
  color: var(--text);
}
.form-input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-input.has-error { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: 11px; margin-top: 3px; }
textarea.form-input { font-family: inherit; resize: vertical; }

.input-with-suffix { display: flex; align-items: stretch; }
.input-with-suffix .form-input { border-radius: 0; }
.input-with-suffix .form-input:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-with-suffix .form-input:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-prefix, .input-suffix {
  display: grid; place-items: center;
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  color: var(--text-muted);
}
.input-prefix { border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-suffix { border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-with-suffix .form-input { border-radius: 0; }

.segmented {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.seg-btn {
  border: none; background: transparent;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
}
.seg-btn.active {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.editor-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.editor-actions-right { display: flex; gap: 8px; }

/* === Photo manager === */
.photo-manager { display: flex; flex-direction: column; gap: 10px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.photo-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.photo-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-tile.is-cover { border: 2px solid var(--primary); }
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-tile:hover .photo-overlay { opacity: 1; }
.photo-action {
  background: white; color: var(--text);
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.photo-action.danger { background: var(--danger); color: white; }
.cover-pin {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.photo-cover-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.photo-tile.add-tile {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: transparent;
  border: 2px dashed var(--border-strong);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
}
.photo-tile.add-tile:hover { background: var(--bg-elev); border-color: var(--text-muted); color: var(--text); }
.photo-tile.add-tile .add-icon { font-size: 28px; font-weight: 300; line-height: 1; }
.photo-help { color: var(--text-muted); font-size: 12px; }

/* === Calendar === */
.calendar-wrap { display: flex; flex-direction: column; gap: 16px; }
.calendar-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-range-label { font-size: 13px; font-weight: 500; margin-left: 8px; }
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
}
.swatch-booked { background: var(--booked-bg); border-color: var(--booked-border); }
.swatch-blocked { background: var(--blocked-bg); border-color: var(--blocked-border); }
.swatch-today { background: var(--text); border-color: var(--text); }

.calendar-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}
.months-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  user-select: none;
}
.month-grid {}
.month-header {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dow-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.dow {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.day-cell {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: transparent;
  color: var(--text);
}
.day-cell.empty { cursor: default; visibility: hidden; }
.day-cell:hover:not(.empty):not(.past):not(.booked) {
  background: var(--bg);
}
.day-cell.past { color: var(--text-subtle); cursor: not-allowed; }
.day-cell.today {
  background: var(--text);
  color: white;
  font-weight: 600;
}
.day-cell.booked {
  background: var(--booked-bg);
  color: var(--booked-text);
  cursor: pointer;
}
.day-cell.booked.range-start {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.day-cell.booked.range-end {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.day-cell.booked.highlight-booking {
  background: var(--booked-border);
  color: white;
  font-weight: 600;
}
.day-cell.blocked {
  background: var(--blocked-bg);
  color: var(--blocked-text);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(239,68,68,0.15) 4px,
    rgba(239,68,68,0.15) 8px
  );
}
.day-cell.blocked.range-start {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.day-cell.blocked.range-end {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.day-cell.selecting {
  background: var(--accent);
  color: white;
}

/* === Calendar sidebar === */
.cal-sidebar {
  display: flex; flex-direction: column;
  gap: 12px;
  position: sticky; top: 0;
}
.sidebar-section {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.sidebar-section h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.booking-list, .block-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.booking-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: default;
  transition: background 0.1s, border-color 0.1s;
}
.booking-item.hover { background: var(--booked-bg); border-color: var(--booked-border); }
.booking-ref {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.booking-customer { font-size: 13px; font-weight: 500; margin: 2px 0; }
.booking-dates { font-size: 12px; color: var(--text-muted); }
.booking-days { color: var(--text-subtle); }
.block-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--blocked-border);
  background: var(--blocked-bg);
  gap: 8px;
}
.block-reason { font-size: 13px; font-weight: 500; color: var(--blocked-text); }
.block-dates { font-size: 12px; color: var(--blocked-text); opacity: 0.85; }
.sidebar-help {
  background: var(--info-bg);
  color: var(--info-text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
}

/* === Modal === */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: grid; place-items: center;
  z-index: 100;
}
.modal {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 440px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 4px; font-size: 16px; }
.modal-sub { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 16px;
}

/* === Empty / placeholder states === */
.placeholder-card {
  background: var(--bg-elev);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
}
.placeholder-card h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
