/* PÓLIZA360 — Estilos base */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=DM+Sans:wght@300;400;500&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface2: #f0ede6;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.13);
  --text: #1a1814;
  --muted: #7a776e;
  --spice: #64492b;
  --dust: #cbad96;
  --wafer: #ded1bf;
  --raffia: #e8d5b0;
  --rum: #faf7e6;
  --r15: #e63946;
  --r30: #f4845f;
  --r45: #f4a261;
  --r60: #e9c46a;
  --r90: #2a9d8f;
  --ok: #2a9d8f;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

/* ── AUTH ── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--spice);
}

.auth-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--spice);
  margin-bottom: 0.25rem;
}

.auth-logo span { color: var(--dust); }

.auth-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.auth-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'DM Mono', monospace;
}

.auth-group input {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s;
  width: 100%;
}

.auth-group input:focus {
  outline: none;
  border-color: var(--spice);
}

.auth-btn {
  width: 100%;
  background: var(--spice);
  color: var(--rum);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.15s;
}

.auth-btn:hover { opacity: 0.88; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  background: #fde8ea;
  color: var(--r15);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 1rem;
  display: none;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--spice);
  color: var(--rum);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 52px;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--raffia);
  white-space: nowrap;
}

.brand span { color: var(--rum); }

.topbar-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--dust);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-btn:hover { background: rgba(255,255,255,0.1); color: var(--rum); }
.nav-btn.active { background: rgba(255,255,255,0.15); color: var(--rum); font-weight: 500; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-new {
  background: var(--raffia);
  color: var(--spice);
  border: none;
  border-radius: 7px;
  padding: 7px 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-new:hover { opacity: 0.88; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--dust);
}

.user-avatar {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--raffia);
  color: var(--spice);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 11px;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--dust);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover { border-color: rgba(255,255,255,0.3); color: var(--rum); }

/* ── LAYOUT ── */
.app-body {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 52px);
}

.page { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.page.active { display: flex; }

/* ── DASHBOARD ── */
.dash-wrap {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card.accent { background: var(--spice); border-color: var(--spice); }
.metric-card.accent .metric-label { color: var(--dust); }
.metric-card.accent .metric-val { color: var(--rum); }

.metric-label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.metric-val {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
}

.metric-sub { font-size: 11.5px; color: var(--muted); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 4px;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--muted);
}

.pill:hover { border-color: var(--spice); color: var(--spice); }
.pill.active { background: var(--spice); border-color: var(--spice); color: var(--rum); }

.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
  background: var(--surface2);
  border-radius: 8px;
  padding: 3px;
}

.toggle-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.toggle-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── TIMELINE ── */
.timeline-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.timeline-months {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  padding: 0 1.5rem;
}

.month-col {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
}

.month-col:last-child { border-right: none; }
.month-col.current { color: var(--spice); font-weight: 500; }

.timeline-body {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-client {
  width: 140px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-track {
  flex: 1;
  height: 28px;
  background: var(--surface2);
  border-radius: 6px;
  position: relative;
}

.tl-bar {
  position: absolute;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.15s;
  min-width: 80px;
}

.tl-bar:hover { opacity: 0.85; }
.tl-bar.d15 { background: var(--r15); color: #fff; }
.tl-bar.d30 { background: var(--r30); color: #fff; }
.tl-bar.d45 { background: var(--r45); color: #fff; }
.tl-bar.d60 { background: var(--r60); color: #1a1814; }
.tl-bar.d90 { background: var(--r90); color: #fff; }

/* ── KANBAN ── */
.kanban-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.kanban-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-col-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

.kanban-badge {
  border-radius: 20px;
  padding: 2px 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}

.col-15 .kanban-col-title { color: var(--r15); }
.col-15 .kanban-badge { background: #fde8ea; color: var(--r15); }
.col-30 .kanban-col-title { color: var(--r30); }
.col-30 .kanban-badge { background: #fef0eb; color: var(--r30); }
.col-45 .kanban-col-title { color: var(--r45); }
.col-45 .kanban-badge { background: #fef5eb; color: var(--r45); }
.col-60 .kanban-col-title { color: #b8860b; }
.col-60 .kanban-badge { background: #fef9e7; color: #b8860b; }
.col-90 .kanban-col-title { color: var(--ok); }
.col-90 .kanban-badge { background: #e0f5f3; color: var(--ok); }

.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.kanban-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.kanban-card:hover { border-color: var(--border2); background: var(--surface2); }
.col-15 .kanban-card { border-left-color: var(--r15); }
.col-30 .kanban-card { border-left-color: var(--r30); }
.col-45 .kanban-card { border-left-color: var(--r45); }
.col-60 .kanban-card { border-left-color: var(--r60); }
.col-90 .kanban-card { border-left-color: var(--r90); }

.kc-poliza {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

.kc-cliente { font-weight: 500; font-size: 12.5px; color: var(--text); margin-bottom: 2px; }
.kc-tipo { font-size: 11.5px; color: var(--muted); }
.kc-fecha { font-family: 'DM Mono', monospace; font-size: 10.5px; color: var(--spice); margin-top: 6px; font-weight: 500; }

/* ── TABLA ── */
.page-toolbar {
  padding: 1.25rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  width: 240px;
  transition: border-color 0.15s;
}

.search-box:focus { outline: none; border-color: var(--spice); }
.search-box::placeholder { color: var(--muted); }

.select-filter {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.table-wrap { flex: 1; overflow: auto; padding: 0 2rem 2rem; }

table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; }

thead th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
  position: sticky;
  top: 0;
}

tbody tr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s; }
tbody tr:hover { background: var(--surface2); }
tbody td { padding: 11px 12px; font-size: 13px; color: var(--text); vertical-align: middle; }

.td-mono { font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--muted); }
.td-bold { font-weight: 500; }

.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-15 { background: var(--r15); }
.dot-30 { background: var(--r30); }
.dot-45 { background: var(--r45); }
.dot-60 { background: var(--r60); }
.dot-90 { background: var(--r90); }
.dot-ok { background: var(--ok); }
.dot-vencida { background: #999; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.modal-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.modal-close {
  margin-left: auto;
  background: var(--surface2);
  border: none;
  border-radius: 6px;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.modal-close:hover { background: var(--border2); }

.modal-body { padding: 1.25rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }

.modal-section-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 2rem; }
.modal-field { display: flex; flex-direction: column; gap: 2px; }
.modal-field-label { font-size: 11px; color: var(--muted); }
.modal-field-val { font-size: 13.5px; color: var(--text); font-weight: 500; }

/* ── FORM PANEL ── */
.form-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  align-items: flex-start;
  justify-content: flex-end;
}

.form-overlay.open { display: flex; }

.form-panel {
  background: var(--surface);
  width: 520px;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.form-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.form-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; }

.form-body { padding: 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }

.form-section { display: flex; flex-direction: column; gap: 10px; }

.form-section-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--spice); }

.form-group textarea { resize: vertical; min-height: 70px; }

.form-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--surface);
  position: sticky;
  bottom: 0;
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 8px 20px;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.btn-cancel:hover { border-color: var(--spice); color: var(--spice); }

.btn-save {
  background: var(--spice);
  color: var(--rum);
  border: none;
  border-radius: 7px;
  padding: 8px 24px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-save:hover { opacity: 0.88; }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.check-row input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--spice); }

/* ── PARAMS ── */
.params-wrap {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-content: start;
}

.param-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.param-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
}

.param-card-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; }

.btn-param-add {
  background: var(--spice);
  color: var(--rum);
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.param-list { padding: 10px; display: flex; flex-direction: column; gap: 6px; }

.param-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--bg);
  font-size: 13px;
}

.param-item-name { flex: 1; }
.param-item-val { font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--spice); font-weight: 500; }

.btn-del {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
}

.btn-del:hover { background: #fde8ea; color: var(--r15); }

/* ── CLIENTES ── */
.clients-grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  overflow-y: auto;
  align-content: start;
}

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
}

.client-card:hover { border-color: var(--spice); box-shadow: 0 4px 12px rgba(100,73,43,0.1); }

.client-avatar {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--raffia);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--spice);
  margin-bottom: 12px;
}

.client-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.client-id { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.client-meta { font-size: 12px; color: var(--muted); line-height: 1.6; }

.client-polizas {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.tipo-chip {
  background: var(--raffia);
  color: var(--spice);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  text-align: center;
  color: var(--muted);
}

.empty-icon { font-size: 2.5rem; opacity: 0.4; }
.empty-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; }
.empty-sub { font-size: 12.5px; max-width: 300px; line-height: 1.6; }

/* ── UPLOAD PDF ── */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
}

.upload-zone:hover { border-color: var(--spice); background: var(--raffia); }
.upload-zone.dragover { border-color: var(--spice); background: var(--raffia); }

.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-text { font-size: 13px; color: var(--muted); }
.upload-text strong { color: var(--spice); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--wafer); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar { padding: 0 1rem; }
  .topbar-nav { display: none; }
  .dash-wrap { padding: 1rem; }
  .kanban-wrap { grid-template-columns: repeat(2, 1fr); }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .form-panel { width: 100vw; }
}
