:root {
  --ink: #0b1b32;
  --brand: #12305b;
  --accent: #1d63d1;
  --line: #e5e9f0;
  --muted: #5b6a80;
  --wash: #f7f9fc;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}

.container-x { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; line-height: 1;
  padding: 12px 18px; border-radius: 8px; border: 1px solid transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1751ae; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: #0b2246; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: #c3ccd9; background: var(--wash); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--wash); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* Surfaces */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.divider { height: 1px; background: var(--line); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}

/* Forms */
.label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.input, .select, .textarea {
  width: 100%; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
  transition: border-color .15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: #9aa7b8; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.option {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff;
  cursor: pointer; width: 100%; transition: border-color .15s ease, background-color .15s ease;
}
.option:hover { border-color: #c3ccd9; }
.option[aria-checked="true"] { border-color: var(--accent); background: #f4f8ff; }
.option-mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c3ccd9;
  margin-top: 2px; display: grid; place-items: center;
}
.option[aria-checked="true"] .option-mark { border-color: var(--accent); }
.option[aria-checked="true"] .option-mark::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.option-square .option-mark { border-radius: 5px; }
.option-square[aria-checked="true"] .option-mark::after { border-radius: 2px; }

/* Accordion */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; text-align: left; font-weight: 600; font-size: 15px; cursor: pointer;
}
.acc-panel { display: none; padding-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 70ch; }
.acc-item.open .acc-panel { display: block; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-icon { transition: transform .18s ease; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
table.cmp tbody tr:last-child td { border-bottom: none; }

/* Status pills */
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid; }
.pill-new { color: #1751ae; border-color: #c5d8f7; background: #eff5ff; }
.pill-contacted { color: #7a5300; border-color: #f0dfae; background: #fdf8ec; }
.pill-in-progress { color: #5b2ea6; border-color: #ddd0f5; background: #f6f2ff; }
.pill-filed { color: #0f6d5c; border-color: #b9e2d8; background: #eefaf6; }
.pill-completed { color: #146c43; border-color: #bde0c9; background: #f0faf3; }
.pill-closed { color: #5b6a80; border-color: var(--line); background: var(--wash); }

.fade-in { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

[data-lucide] { stroke-width: 1.75; }
