:root {
  --bg: #0f1117;
  --bg-card: #161b27;
  --bg-hover: #1c2333;
  --bg-input: #1a2035;
  --border: #2a3348;
  --border-light: #1e2a40;
  --text: #e8edf5;
  --text-muted: #6b7a99;
  --text-dim: #3d4f6e;
  --accent: #c9a84c;
  --accent-dim: #2a2415;
  --accent-hover: #dbbf6a;
  --blue: #4a9eff;
  --blue-dim: #0d2040;
  --purple: #9b7fe8;
  --purple-dim: #1e1535;
  --green: #4caf82;
  --green-dim: #0d2619;
  --red: #e85c5c;
  --red-dim: #2a0f0f;
  --amber: #f0a429;
  --amber-dim: #291e0a;
  --sidebar-w: 220px;
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

body.light {
  --bg: #f4f5f7;
  --bg-card: #ffffff;
  --bg-hover: #f0f2f5;
  --bg-input: #f8f9fb;
  --border: #e2e6ed;
  --border-light: #eaecf0;
  --text: #111827;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --accent: #b8922a;
  --accent-dim: #fef3c7;
  --accent-hover: #9a7820;
  --blue: #2563eb;
  --blue-dim: #dbeafe;
  --purple: #7c3aed;
  --purple-dim: #ede9fe;
  --green: #16a34a;
  --green-dim: #dcfce7;
  --red: #dc2626;
  --red-dim: #fee2e2;
  --amber: #d97706;
  --amber-dim: #fef3c7;
}

/* light mode badge overrides */
body.light .phase-1 { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
body.light .phase-2 { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
body.light .phase-3 { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
body.light .status-active { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
body.light .status-contract { background: #fef3c7; color: #b45309; border-color: #fde68a; }
body.light .status-closed { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
body.light .status-cancelled { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
body.light .stat-card { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
body.light .card { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
body.light .topbar { background: rgba(244,245,247,0.9); }
body.light .kanban-card { background: #f8f9fb; }
body.light .btn-gold { color: #fff; }

/* theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  margin: 8px 10px 4px;
}
.theme-toggle:hover { color: var(--text); background: var(--bg-hover); }
.theme-toggle i { font-size: 14px; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── LAYOUT ── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.sidebar-logo .logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-logo .logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.nav-item i { font-size: 15px; width: 18px; text-align: center; }
.nav-item:hover { color: var(--text); background: var(--bg-hover); }
.nav-item.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(201,168,76,0.15);
  font-weight: 500;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(15,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 40;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.topbar-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.page-body { padding: 28px; }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.stat-card.s-gold::before { background: var(--accent); }
.stat-card.s-blue::before { background: var(--blue); }
.stat-card.s-green::before { background: var(--green); }
.stat-card.s-purple::before { background: var(--purple); }
.stat-card.s-teal::before { background: var(--green); }
.stat-card.s-amber::before { background: var(--amber); }

/* compact stat value for 6-col layout */
.stats-grid .stat-value { font-size: 24px; }
.stats-grid .stat-label { font-size: 10px; }

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1;
}

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title { font-size: 14px; font-weight: 500; color: var(--text); }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background 0.12s;
  cursor: pointer;
}

tbody tr:hover td { background: var(--bg-hover); }

.addr-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addr-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-dim);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addr-icon i { font-size: 13px; color: var(--accent); }
.addr-text { font-weight: 500; color: var(--text); }
.addr-text:hover { color: var(--accent); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}

.phase-1 { background: var(--blue-dim); color: var(--blue); border-color: rgba(74,158,255,0.2); }
.phase-2 { background: var(--purple-dim); color: var(--purple); border-color: rgba(155,127,232,0.2); }
.phase-3 { background: var(--green-dim); color: var(--green); border-color: rgba(76,175,130,0.2); }
.phase-unknown { background: var(--bg-hover); color: var(--text-muted); }

.status-active { background: var(--green-dim); color: var(--green); border-color: rgba(76,175,130,0.2); }
.status-contract { background: var(--amber-dim); color: var(--amber); border-color: rgba(240,164,41,0.2); }
.status-closed { background: var(--bg-hover); color: var(--text-muted); border-color: var(--border); }
.status-cancelled { background: var(--red-dim); color: var(--red); border-color: rgba(232,92,92,0.2); }

.badge-green { background: var(--green-dim); color: var(--green); border-color: rgba(76,175,130,0.2); }
.badge-blue { background: var(--blue-dim); color: var(--blue); border-color: rgba(74,158,255,0.2); }
.badge-amber { background: var(--amber-dim); color: var(--amber); border-color: rgba(240,164,41,0.2); }
.badge-red { background: var(--red-dim); color: var(--red); border-color: rgba(232,92,92,0.2); }
.badge-gray { background: var(--bg-hover); color: var(--text-muted); border-color: var(--border); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border-color: rgba(155,127,232,0.2); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { background: var(--bg-hover); border-color: var(--border); }
.btn i { font-size: 14px; }

.btn-gold {
  background: var(--accent);
  color: #0f1117;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-gold:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(232,92,92,0.3);
}

.btn-danger:hover { background: rgba(232,92,92,0.2); }

.btn-icon {
  padding: 7px 9px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── SEARCH ── */
.search-wrap { position: relative; }
.search-wrap i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

/* ── PROGRESS ── */
.progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-fill.green { background: var(--green); }

/* ── PROPERTY DETAIL ── */
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.detail-address {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.info-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.info-chip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.info-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-chip-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ── TASK LIST ── */
.task-group { margin-bottom: 4px; }

.task-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.12s;
  user-select: none;
}

.task-group-header:hover { background: var(--bg-hover); }

.task-group-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.task-group-header-left i { font-size: 14px; color: var(--text-muted); transition: transform 0.2s; }
.task-group-header-left i.open { transform: rotate(90deg); }

.task-count-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 10px;
}

.task-group-body { padding: 4px 16px 12px 36px; display: none; }
.task-group-body.open { display: block; }

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.1s;
}

.task-item:hover { background: var(--bg-hover); padding-left: 8px; }

.task-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: var(--bg-input);
}

.task-check.checked {
  background: var(--accent);
  border-color: var(--accent);
}

.task-check.checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;
  border: 1.5px solid #0f1117;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-top: -2px;
}

.task-label {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.15s;
}

.task-item.done .task-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ── SIDE PANEL ── */
.side-panel { display: flex; flex-direction: column; gap: 16px; }

.panel-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-section-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-section-body { padding: 14px 16px; }

.field-row { margin-bottom: 12px; }
.field-row:last-child { margin-bottom: 0; }

.field-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-select, .field-input-sm {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.field-input-sm {
  background-image: none;
  padding-right: 10px;
}

.field-select:focus, .field-input-sm:focus { border-color: var(--accent); }

/* ── KANBAN ── */
.kanban-wrap {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: flex-start;
}

.kanban-col {
  flex: 0 0 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.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-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.kanban-col.k-1 { border-top: 2px solid var(--blue); }
.kanban-col.k-2 { border-top: 2px solid var(--purple); }
.kanban-col.k-3 { border-top: 2px solid var(--green); }
.kanban-col.k-done { border-top: 2px solid var(--accent); }

.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.kanban-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: grab;
  transition: border-color 0.15s, transform 0.15s;
}

.kanban-card:hover {
  border-color: var(--border);
  transform: translateY(-1px);
}

.kanban-card:active { cursor: grabbing; }

.kanban-card-addr {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kanban-card-task {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.3;
}

.kanban-empty {
  text-align: center;
  padding: 24px 12px;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.drag-over { background: rgba(201,168,76,0.04); }

/* ── INTAKE FORM ── */
.intake-form { max-width: 760px; }

.form-section { margin-bottom: 28px; }

.form-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

label.flabel {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

input.finput, select.finput, textarea.finput {
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}

input.finput:focus, select.finput:focus, textarea.finput:focus {
  border-color: var(--accent);
}

input.finput::placeholder, textarea.finput::placeholder { color: var(--text-muted); }

select.finput {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

textarea.finput { resize: vertical; min-height: 80px; }

/* ── CHECKLIST PAGE ── */
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.checklist-item:last-child { border-bottom: none; }

.print-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  animation: slideIn 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.loading { border-left: 3px solid var(--accent); }

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

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

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 440px;
  max-width: 95vw;
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title { font-size: 15px; font-weight: 600; }
.modal-body { padding: 20px; font-size: 14px; color: var(--text-muted); }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* ── PROGRESS HEADER (DETAIL) ── */
.prog-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.prog-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; }
.prog-pct { font-weight: 600; font-family: var(--font-mono); color: var(--accent); }

/* ── EMPTY STATE ── */
.empty-state { padding: 48px 20px; text-align: center; }
.empty-icon { font-size: 36px; color: var(--text-dim); margin-bottom: 16px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--text-muted); }

/* ── DAY CELL ── */
.day-cell { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.day-cell.overdue { color: var(--red); font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side-panel { order: -1; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .info-row-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: 1; }
}

/* ── PRINT ── */
@media print {
  .sidebar, .topbar, .btn { display: none !important; }
  .main-content { margin-left: 0; }
  .card { break-inside: avoid; }
  .page-body { padding: 0; }
}
