/* Dean Street Sourcing — straightforward deal-desk UI */

:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1a2233;
  --muted: #6b7486;
  --line: #e3e6ec;
  --navy: #0f2417;
  --accent: #16a34a;
  --green: #14805e;
  --green-bg: #e7f5ef;
  --red: #b42318;
  --red-bg: #fdecea;
  --amber: #92600a;
  --amber-bg: #fdf3e0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #eef0f4; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* Nav */
.topnav { background: var(--navy); color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { color: #fff; font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand .muted { color: #8fa1c7; font-weight: 400; }
.brand-mark {
  background: #fff; color: var(--navy); font-weight: 800; font-size: 12px;
  border-radius: 6px; padding: 3px 6px; letter-spacing: 0.5px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { color: #c7d0e2; padding: 6px 12px; border-radius: 6px; }
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-cta { border: 1px solid rgba(255,255,255,0.35); color: #fff; margin-left: 8px; }

.flash {
  margin-top: 16px; padding: 10px 14px; border-radius: 8px;
  background: var(--green-bg); color: var(--green); border: 1px solid #bfe3d4;
}

h1 { font-size: 22px; margin: 26px 0 16px; }
h1 .muted { font-size: 15px; font-weight: 400; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 22px 0 8px; }
.muted { color: var(--muted); }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px;
}
.stat-attention { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stat-num { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Panels / layout */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px 16px; margin-top: 18px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.truncate { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.companies-table { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.companies-table th { padding: 10px 12px; background: #fafbfc; }
.companies-table td { padding: 10px 12px; }

/* Badges */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px;
  border-radius: 999px; background: #eef0f4; color: var(--muted);
}
.badge-accent { background: var(--accent); color: #fff; }
.score-high { background: var(--green-bg); color: var(--green); }
.score-mid { background: var(--amber-bg); color: var(--amber); }
.score-low { background: var(--red-bg); color: var(--red); }
.status-active { background: var(--green-bg); color: var(--green); }
.status-review, .status-submitted, .status-in_progress { background: var(--amber-bg); color: var(--amber); }
.status-suppressed, .status-failed { background: var(--red-bg); color: var(--red); }
.status-worked, .status-ingested, .status-completed { background: #e8edf8; color: #3450a1; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; }
.tab:hover { text-decoration: none; color: var(--ink); }
.tab-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Review cards */
.review-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px;
}
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.review-name a { font-size: 17px; font-weight: 650; color: var(--ink); }
.domain { font-size: 13px; margin-left: 8px; }
.review-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.review-actions form { display: inline; }
.review-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-top: 6px; flex-wrap: wrap; }
.review-reason { margin: 10px 0 4px; font-size: 14px; }
.contacts-line { font-size: 13px; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  font-size: 12px; background: #eef2fb; color: #3450a1; padding: 2px 10px; border-radius: 999px;
}

/* Buttons */
.btn {
  border: none; border-radius: 7px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.btn-approve { background: var(--green); color: #fff; }
.btn-approve:hover { background: #0f6b4e; }
.btn-reject { background: #fff; color: var(--red); border: 1px solid #f0c4bf; }
.btn-reject:hover { background: var(--red-bg); }

/* Company show */
.show-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 26px; gap: 12px; }
.show-head h1 { margin: 0 0 6px; display: inline-block; margin-right: 10px; }
.report-dl dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 12px; }
.report-dl dd { margin: 2px 0 0; }

/* Pipeline live table (Websets-style) */
.pipeline-head { display: flex; justify-content: space-between; align-items: baseline; }
.pipeline-live { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  display: inline-block; animation: pulse 1.6s ease-in-out infinite;
}
.live-dot[hidden] { display: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.pipeline-table {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; font-size: 13px;
}
.pipeline-table th {
  padding: 9px 10px; background: #fafbfc; font-size: 12px; white-space: nowrap;
  border-right: 1px solid #f0f1f4;
}
.pipeline-table td { padding: 8px 10px; border-right: 1px solid #f0f1f4; white-space: nowrap; }
.pipeline-table td:last-child, .pipeline-table th:last-child { border-right: none; }
.num-col { width: 30px; text-align: right; }
.name-col { font-weight: 600; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.name-col a { color: var(--ink); }
.desc-col { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.url-col { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.table-note { font-size: 12px; margin-top: 10px; }

.chipv {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px;
  border-radius: 5px; letter-spacing: 0.01em;
}
.chip-match { background: #d9f2e2; color: #14683c; }
.chip-miss { background: #fde3e1; color: #a83a31; }
.chip-unclear { background: #fdf0d4; color: #8a6116; }
.chip-pending { background: #e8ebf0; color: #5a6472; }
.chip-none { background: transparent; color: #b7bcc5; }


/* DataTables theming — match the app, keep the green accent */
.dt-container { font-size: 13px; margin-top: 4px; }
.dt-container .dt-layout-table { overflow-x: auto; }
.dt-container .dt-layout-row { align-items: center; margin: 10px 0; }
.dt-search input, .dt-length select {
  border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px;
  font-size: 13px; background: var(--panel); color: var(--ink);
}
.dt-search input { min-width: 240px; }
.dt-search input:focus, .dt-length select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
.dt-length label, .dt-info { color: var(--muted); font-size: 12.5px; }
.dt-paging .dt-paging-button {
  border: 1px solid var(--line) !important; border-radius: 7px; background: var(--panel) !important;
  color: var(--ink) !important; padding: 5px 11px !important; margin-left: 4px; font-size: 12.5px;
}
.dt-paging .dt-paging-button.current {
  background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important;
}
.dt-paging .dt-paging-button.disabled { color: #c3c7cf !important; background: transparent !important; }
.dt-paging .dt-paging-button:hover:not(.disabled):not(.current) { background: #f2f4f7 !important; }
div.dt-processing { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table.dataTable thead th {
  border-bottom: 1px solid var(--line) !important; background: #fafbfc;
  font-size: 12px; font-weight: 500; color: var(--muted); padding: 9px 10px;
}
table.dataTable tbody td { padding: 8px 10px; border-top: 1px solid #f0f1f4; white-space: nowrap; }
table.dataTable tbody tr:hover td { background: #f8faf9; }
table.dataTable.display tbody tr.odd > *, table.dataTable.display tbody tr.even > * { box-shadow: none !important; }
.tab-count { opacity: 0.75; margin-left: 2px; }

/* ---- Workflow UI: home, run wizard, expansion wizard ---- */

.statbar {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding: 14px 18px; margin: 18px 0 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px;
}
.statbar b { display: block; font-size: 19px; letter-spacing: -.02em; }
.statbar span { color: var(--muted); }

h1 { font-size: 23px; margin: 0 0 4px; letter-spacing: -.01em; }
p.sub { color: var(--muted); margin: 0 0 20px; }

.workflow-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .workflow-cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--panel);
}
.card.pick { border-width: 2px; transition: border-color .12s; }
.card.pick:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.facts { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 14px; font-size: 13px; }
.facts div { display: flex; justify-content: space-between; padding: 3px 0; }
.facts b { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 7px;
  padding: 9px 15px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.wide { width: 100%; text-align: center; }
form.inline-btn { display: inline-block; }

/* Wizard progress: numbered circles matching the contacts step cards. */
.rail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 24px 0 20px; }
.rail-step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rail-step:not(:first-child)::before {
  content: ""; width: 22px; height: 1px; background: var(--line); margin-right: 8px;
}
.rail-num {
  width: 22px; height: 22px; border-radius: 50%; background: #eef0f4; color: var(--muted);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; flex: none;
}
.rail-step.on { color: var(--ink); font-weight: 650; }
.rail-step.on .rail-num { background: var(--navy); color: #fff; }
.rail-step.done { color: var(--green); }
.rail-step.done .rail-num { background: var(--green-bg); color: var(--green); }

.metros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 14px; font-size: 12.5px; margin: 10px 0 4px; }
@media (max-width: 820px) { .metros { grid-template-columns: repeat(2, 1fr); } }
.metros label { display: block; cursor: pointer; }
.metro-scroll { max-height: 260px; overflow-y: auto; padding-right: 6px; }

.est { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 16px 0; }
.est table { width: 100%; font-size: 13px; border-collapse: collapse; }
.est td { padding: 3px 0; }
.est td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.est tr.total td { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }

.gate { border: 2px solid var(--accent); background: var(--green-bg); border-radius: 10px; padding: 16px; margin: 18px 0; }
.gate b { color: var(--green); }
.gate p { margin: 6px 0 12px; font-size: 13px; }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #eef0f4; color: var(--muted); font-weight: 600; }
.tag.free { background: var(--green-bg); color: var(--green); }
.tag.paid { background: var(--amber-bg); color: var(--amber); }

table.results { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
table.results th { text-align: left; padding: 8px 10px; background: #fafbfc; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
table.results td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.results td.num { text-align: right; font-variant-numeric: tabular-nums; }

.pill { font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.pill.pass { background: var(--green-bg); color: var(--green); }
.pill.fail { background: var(--red-bg); color: var(--red); }

.bar { height: 7px; background: #eef0f4; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

textarea, input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: 7px;
  padding: 10px; font: inherit; font-size: 13px; resize: vertical; background: #fff;
}
.draft { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: 13px; white-space: pre-wrap; margin-bottom: 6px; }

/* Stat numbers that link without looking like links */
.statbar a.plain { color: inherit; text-decoration: none; }
.statbar a.plain:hover { color: var(--accent); }

/* Export progress overlay */
#export-overlay {
  position: fixed; inset: 0; background: rgba(15, 36, 23, .35);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
#export-overlay[hidden] { display: none; }
.export-card {
  background: #fff; border-radius: 12px; padding: 22px 26px; min-width: 320px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, .22); text-align: center;
}
.export-card .bar { height: 6px; background: #eef0f4; border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.export-card .bar i {
  display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 4px;
  animation: export-slide 1.1s ease-in-out infinite;
}
@keyframes export-slide {
  0%   { margin-left: -40%; }
  100% { margin-left: 100%; }
}
.export-card p { margin: 6px 0 0; font-size: 12.5px; }

/* Targets list */
.target-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 12.5px; color: var(--ink); background: #fff; text-decoration: none;
}
.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-on span { color: #9DC6AD; }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

/* Target rows: the practice name reads as text, not as a link colour */
.target-name { color: var(--ink); font-weight: 600; text-decoration: none; }
.target-name:hover { text-decoration: underline; text-decoration-color: var(--muted); }
.ext { color: #b6bcc7; font-size: 10px; margin-left: 3px; vertical-align: super; }
a.target-name:hover + .ext { color: var(--accent); }
.row-sub { font-size: 11px; color: var(--muted); text-decoration: none; }
.row-sub:hover { color: var(--accent); text-decoration: none; }
table.results td { vertical-align: middle; }

/* Targets table (DataTables) */
.table-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.target-filters { display: flex; align-items: center; gap: 8px; margin: 0; }

#targets-table { border-collapse: collapse; font-size: 13px; }
#targets-table thead th {
  text-align: left; padding: 9px 10px; background: #fafbfc; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
#targets-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#targets-table tbody tr:hover { background: #fbfcfd; }
#targets-table .email { font-size: 12px; }

/* Category badges — one tint per category, stable by name */
.cat-badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px;
  font-weight: 600; white-space: nowrap; background: #eef0f4; color: #4a5262;
}
.cat-concierge          { background: #E8F0FE; color: #1A56B8; }
.cat-dpc                { background: #E6F4EA; color: #137333; }
.cat-primarycare        { background: #E3F2F7; color: #0B6B7C; }
.cat-executivehealth    { background: #EDE7F6; color: #5A32A3; }
.cat-obgynwomenshealth  { background: #FCE7F3; color: #9D2A6B; }
.cat-functionalmedicine { background: #FEF3E2; color: #8A5A16; }
.cat-integrativemedicine{ background: #F0F4E8; color: #4C6B1F; }
.cat-hrthormone         { background: #FDECEA; color: #A83A31; }
.cat-wellness           { background: #E7F5EF; color: #14805E; }
.cat-longevity          { background: #FFF4DA; color: #8A6116; }

/* DataTables chrome, toned to match the app */
.dt-container { margin-top: 4px; }
.dt-search input {
  border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px;
  font-size: 13px; min-width: 300px; margin-left: 0;
}
.dt-length select, .dt-search input { font: inherit; font-size: 13px; }
.dt-length, .dt-info { color: var(--muted); font-size: 12.5px; }
/* DataTables ships its own paging colours; these override them. */
.dt-paging button.dt-paging-button,
.dt-paging .dt-paging-button {
  padding: 5px 11px; margin-left: 3px; border-radius: 6px; font-size: 12.5px;
  border: 1px solid transparent !important; background: transparent !important;
  color: var(--muted) !important; box-shadow: none !important;
}
.dt-paging button.dt-paging-button:hover:not(.current):not(.disabled) {
  border-color: var(--line) !important; color: var(--ink) !important; background: #fff !important;
}
/* Current page: a light box with a clear outline, so the number stays
   readable (a solid dark chip hid it). */
.dt-paging button.dt-paging-button.current,
.dt-paging button.dt-paging-button.current:hover,
.dt-paging .dt-paging-button.current * {
  background: #fff !important;
  border-color: var(--navy) !important;
  color: var(--navy) !important;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--navy) inset !important;
}
.dt-paging button.dt-paging-button.disabled { opacity: .35; }
#targets-table thead th.dt-orderable-asc:hover, #targets-table thead th.dt-orderable-desc:hover { color: var(--ink); cursor: pointer; }

/* Source (which run found it) */
.src-badge {
  display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11.5px;
  background: #f2f4f7; color: #4a5262; white-space: nowrap;
}

/* ColumnControl dropdowns, toned to the app */
div.dtcc-content { border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 10px 30px rgba(16,24,40,.14); }
div.dtcc-list button, div.dtcc-content button { font: inherit; font-size: 13px; }
div.dtcc-searchList-items { max-height: 260px; }
div.dtcc-searchList-item { padding: 4px 8px; }
th .dtcc-button { color: var(--muted); }
th .dtcc-button:hover { color: var(--ink); }

.table-toolbar { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; min-height: 30px; }
.table-toolbar .muted { font-size: 12.5px; }

/* --- contacts page --- */
.head-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.head-row h1 { margin: 0; }
.runpick { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.runpick select { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line);
                  border-radius: 7px; background: #fff; max-width: 360px; }

.coverage { border: 1px solid var(--line); background: var(--panel); border-radius: 10px;
            padding: 16px 18px; margin: 16px 0 18px; }
.cov-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 10px 0 12px;
           background: #eef0f4; }
.cov-bar i { display: block; height: 100%; }
.cov-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; }
.cov-legend b { font-size: 14px; margin-right: 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }

.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex;
        flex-direction: column; background: #fff; }
.step.dim { background: #fafbfc; }
.step-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.step-top .tag { margin-left: auto; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff;
            font-size: 12px; font-weight: 700; display: inline-flex; align-items: center;
            justify-content: center; flex: none; align-self: center; }
.step.dim .step-num { background: #eef0f4; color: var(--muted); }
.step h3 { margin: 0; font-size: 14px; }
.step > p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); flex: 1; }
.step-stat { font-size: 13px; margin-bottom: 12px; }
.step-stat b { font-size: 17px; }
.btn.done { background: var(--green-bg); color: var(--green); cursor: default; }

.gate.gate-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gate.gate-row p { margin: 4px 0 0; }
.gate.gate-row .grow { flex: 1; min-width: 260px; }
.gate.gate-neutral { border-color: var(--line); background: #fafbfc; }

.hist-wrap { margin-top: 26px; }

.metros label.metro-locked { color: #b7bcc5; cursor: default; }

/* --- sign-in --- */
.session-body { display: flex; align-items: center; justify-content: center;
                min-height: 100vh; background: var(--navy); }
.session-card { background: #fff; border-radius: 12px; padding: 34px 36px 30px;
                width: 360px; max-width: calc(100vw - 40px);
                box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.session-mark { margin-bottom: 14px; }
.session-card h1 { font-size: 19px; margin: 0 0 2px; }
.session-label { display: block; font-size: 12px; color: var(--muted);
                 text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 4px; }
.session-card input[type=text], .session-card input[type=password] {
  width: 100%; border: 1px solid var(--line); border-radius: 7px;
  padding: 10px 12px; font: inherit; font-size: 14px;
}
.session-card input:focus { outline: none; border-color: var(--accent);
                            box-shadow: 0 0 0 3px rgba(22,163,74,.13); }
.session-alert { background: var(--red-bg); color: var(--red); border-radius: 7px;
                 padding: 9px 12px; font-size: 13px; margin-bottom: 6px; }
.nav-signout { background: none; border: none; color: #7d8aa5; font: inherit; font-size: 13px;
               cursor: pointer; padding: 6px 4px 6px 10px; }
.nav-signout:hover { color: #fff; }
