/* ==========================================================================
   We Get Properties 2.0 - admin, buyer portal and sign-in pages
   System fonts (fast, no third-party request). Same brand tokens as site.css.
   ========================================================================== */

:root {
  --brand: #1a5fb4;
  --brand-dark: #123f78;
  --navy: #10202b;
  --ink: #14212b;
  --muted: #55626e;
  --bg: #f3f6fa;
  --panel: #ffffff;
  --line: #dde3ea;
  --cta: #16803c;
  --cta-dark: #11652f;
  --danger: #b42318;
  --amber: #8a5a00;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.98rem; }
p { margin: 0 0 0.8em; }
code { font-family: var(--mono); font-size: 0.88em; background: #eef2f6; padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 3px solid #f5b301; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.fine { font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin: 4px 0 8px; }
.strong { font-weight: 700; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.text-danger { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); }
.mt { margin-top: 12px; }
.inline { display: inline; }
.hidden, [hidden] { display: none !important; }
.columns-2 { columns: 2; }

/* ---------------------------------------------------------------- shell */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: var(--navy); color: #c3d2e0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 10px; color: #fff; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.sidebar-brand img { width: 120px; height: auto; }
.sidebar nav { padding: 6px 10px 16px; flex: 1; }
.nav-heading { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8aa0b4; margin: 16px 8px 6px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 6px; color: #e3ebf2; text-decoration: none; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.07); }
.sidebar nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.nav-badge { background: #f5b301; color: #1d1600; border-radius: 10px; padding: 0 7px; font-size: 0.75rem; font-weight: 700; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar-foot a { color: #c3d2e0; font-size: 0.85rem; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 24px; position: sticky; top: 0; z-index: 20; }
.topbar-title { font-size: 1.2rem; margin: 0; flex: 1; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user form { margin: 0; }
.sidebar-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }
.content { padding: 20px 24px 48px; max-width: 1400px; width: 100%; }
@media (max-width: 960px) {
  .sidebar { position: fixed; left: -250px; z-index: 60; transition: left 0.2s; }
  .sidebar.is-open { left: 0; box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25); }
  .sidebar-toggle { display: block; }
  .content { padding: 16px 16px 40px; }
  .topbar { padding: 8px 16px; }
  .topbar-user a { display: none; }
}

/* ---------------------------------------------------------------- portal shell */
.portal-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.portal-header { background: var(--panel); border-bottom: 1px solid var(--line); }
.portal-header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.portal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.portal-brand img { width: 110px; height: auto; }
.portal-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.portal-nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }
.portal-nav a[aria-current="page"] { background: #e8f1fb; color: var(--brand-dark); }
.portal-signout { margin: 0; }
.portal-main { padding-top: 20px; padding-bottom: 48px; }
.portal-footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 0.85rem; }
.banner { padding: 10px 0; font-weight: 600; }
.banner-info { background: #fff6e0; color: var(--amber); }
@media (max-width: 700px) { .portal-nav { order: 3; width: 100%; } }

/* ---------------------------------------------------------------- auth */
.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: block; text-align: center; margin-bottom: 16px; }
.auth-logo img { width: 150px; height: auto; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 1.35rem; }
.auth-links { text-align: center; margin-top: 14px; font-size: 0.9rem; }
.narrow-card { max-width: 560px; margin: 0 auto; }
.debug { white-space: pre-wrap; font-size: 0.75rem; background: #f6f6f6; padding: 10px; border-radius: 6px; max-height: 50vh; overflow: auto; }

/* ---------------------------------------------------------------- building blocks */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.page-head p { margin: 0; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.greeting { font-size: 1.05rem; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cols-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .cols, .cols-even { grid-template-columns: minmax(0, 1fr); } .side-first > .col-side { order: -1; } }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.notice { background: #fff6e0; color: var(--amber); border-radius: 6px; padding: 10px 12px; font-size: 0.9rem; }
.notice-danger { background: #fdecea; color: var(--danger); }
.notice-ok { background: #e7f6ec; color: #0b5e2a; }
.highlight { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(22, 128, 60, 0.12); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
a.stat:hover { border-color: var(--brand); }
.stat-num { font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.stat-sub { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.stat-alert { border-left: 4px solid #f5b301; }

.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: #f8fafc; white-space: nowrap; }
.table th.num, .table td.num { text-align: right; }
.table tbody tr:hover { background: #f8fbff; }
.table-compact th, .table-compact td { padding: 7px 10px; }
/* Edge-to-edge tables inside padded cards. Not inside .table-wrap: it has no
   padding and scrolls, and a scroll box cannot reach a negative left offset,
   so the first column was cut off. */
.card:not(.table-wrap) > .table { margin: 0 -20px; width: calc(100% + 40px); }
.row-new td:first-child { box-shadow: inset 3px 0 0 #f5b301; }
.nowrap { white-space: nowrap; }
@media (max-width: 700px) { .hide-sm { display: none; } }
.quick-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.quick-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.quick-tabs a:hover { border-color: var(--brand); }
.quick-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-tabs .count { background: #eceff3; color: #344250; border-radius: 999px; padding: 0 7px; font-size: 0.78rem; }
.quick-tabs a[aria-current="page"] .count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.quick-tabs .count-alert { background: #f5b301; color: #1d1600; }
.row-muted { opacity: 0.6; }
.map-table select { min-width: 150px; font-size: 0.85rem; padding: 5px; }
.row-header-guess td { font-weight: 700; background: #fffbea; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv-tight { gap: 3px 12px; font-size: 0.9rem; }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: #e9edf2; color: #344250; white-space: nowrap; vertical-align: middle; }
.badge-green { background: #e1f4e7; color: #0b5e2a; }
.badge-blue { background: #e3eefb; color: #12477f; }
.badge-amber { background: #fff1d1; color: #7a4f00; }
.badge-red { background: #fde3e0; color: #9b1c12; }
.badge-gray { background: #eceff3; color: #4d5a66; }
.badge-purple { background: #efe6fb; color: #5a2a9b; }
.stage-new { background: #fff1d1; color: #7a4f00; }
.stage-contacted { background: #e3eefb; color: #12477f; }
.stage-interested, .stage-under_contract { background: #e1f4e7; color: #0b5e2a; }
.stage-follow_up { background: #efe6fb; color: #5a2a9b; }
.stage-offer_made { background: #dff3f7; color: #0d5563; }
.stage-closed { background: #0b5e2a; color: #fff; }
.stage-not_interested, .stage-dead { background: #eceff3; color: #4d5a66; }
.outcome-none { background: #eceff3; color: #4d5a66; }
.outcome-interested, .outcome-signed_up { background: #e1f4e7; color: #0b5e2a; }
.outcome-callback { background: #efe6fb; color: #5a2a9b; }
.outcome-not_interested, .outcome-wrong_number, .outcome-do_not_call { background: #fde3e0; color: #9b1c12; }
.outcome-no_answer, .outcome-voicemail { background: #fff1d1; color: #7a4f00; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #c4ccd6; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: none; color: var(--brand); }
.btn-ghost:hover { background: #eef4fc; }
.btn-danger-ghost { background: none; color: var(--danger); }
.btn-danger-ghost:hover { background: #fdecea; }
.btn-sm { padding: 5px 10px; font-size: 0.85rem; }
.btn-xs { padding: 3px 7px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.btn-row-sm { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- forms */
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], input[type="datetime-local"], input[type="month"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; font: inherit; padding: 7px 10px; border: 1px solid #b9c3ce; border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(26, 95, 180, 0.18); outline-offset: 0; }
input[readonly] { background: #f3f5f8; }
textarea { resize: vertical; }
textarea.code { font-family: var(--mono); font-size: 0.85rem; }
input[type="file"] { font: inherit; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin: 0 0 12px; }
legend { font-weight: 700; padding-right: 8px; font-size: 0.92rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 14px; }
.span-2 { grid-column: span 2; }
@media (max-width: 520px) { .span-2 { grid-column: auto; } }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; cursor: pointer; }
.check input { margin-top: 3px; flex: none; }
.check.is-disabled { color: var(--muted); cursor: not-allowed; }
.field-error { display: block; color: var(--danger); font-size: 0.82rem; margin-top: 3px; font-weight: 600; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.inline-fields .field { margin-bottom: 0; }
.inline-fields .check { margin: 0 0 8px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 8px; background: #eef2f6; border: 1px solid #b9c3ce; border-right: 0; border-radius: 6px 0 0 6px; color: var(--muted); }
.input-prefix input { border-radius: 0 6px 6px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.filters .field { margin: 0; min-width: 120px; }
.filters .grow { flex: 1 1 240px; }
.filters .check { margin: 0 0 8px; }
.field-actions { display: flex; gap: 6px; }
.inline-filter { margin: 0; }
.inline-filter select { width: auto; }
.area-row { display: grid; grid-template-columns: minmax(170px, 1fr) 1.3fr auto; gap: 10px; align-items: end; }
.area-row .area-remove { margin-bottom: 12px; }
@media (max-width: 600px) { .area-row { grid-template-columns: 1fr; } }
.switch { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 600; }
.switch input { width: 20px; height: 20px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--brand); margin: 6px 0; }
details[open] > summary { margin-bottom: 10px; }
.inline-details { display: inline-block; }
.inline-details form { display: flex; gap: 4px; margin-top: 4px; }
.inline-details input { width: 140px; padding: 3px 6px; }

/* ---------------------------------------------------------------- lead page */
.lead-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.lead-head h2 { font-size: 1.35rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead-contact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) { .lead-head { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 3px solid var(--line); padding: 2px 0 12px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: #c4ccd6; }
.tl-call::before, .tl-note::before { background: var(--brand) !important; }
.tl-sms::before { background: #5a2a9b !important; }
.tl-purchase::before, .tl-offer::before { background: var(--cta) !important; }
.tl-meta { font-size: 0.8rem; color: var(--muted); }
.tl-kind { font-weight: 700; color: var(--ink); margin-right: 6px; }
.tl-body { white-space: normal; overflow-wrap: anywhere; }
.offer-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.link-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- call lists */
.call-item { scroll-margin-top: 80px; }
.call-item.is-done { opacity: 0.7; }
.call-item-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.call-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.call-phones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.call-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.call-property { margin: 6px 0; }
.outcome-form .field { margin-bottom: 6px; }
.outcome-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn-outcome { background: #fff; border: 1px solid #c4ccd6; color: var(--ink); }
.btn-outcome:hover { border-color: var(--brand); background: #eef4fc; }
.callback-at { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.callback-at input { width: auto; padding: 4px 6px; }
.call-notes { background: #f8fafc; border-radius: 6px; padding: 8px 10px; margin-top: 8px; max-height: 160px; overflow-y: auto; white-space: pre-line; overflow-wrap: anywhere; }
.win-box, .edit-box { margin-top: 8px; }
.win-box > summary { list-style: none; display: inline-flex; }
.win-box > summary::-webkit-details-marker { display: none; }
.win-box form { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-top: 8px; }
.script { white-space: normal; font-size: 0.92rem; }
.script-card { position: sticky; top: 70px; }
.progress { width: 100%; height: 8px; display: block; margin: 4px 0; accent-color: var(--cta); }
.list-progress { margin-bottom: 12px; }

/* ---------------------------------------------------------------- calling workspace */
.ws-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; }
.ws-bar-main { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.ws-bar-main .field { margin-bottom: 0; min-width: 220px; }
.ws-bar-main .check { margin: 0 0 8px; }
.ws-role-note { margin: 0 0 8px; color: var(--muted); }
.ws-goals { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 8px 16px; flex: 1 1 420px; }
.goal-head { display: flex; justify-content: space-between; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.goal-head strong { color: var(--ink); }
.goal progress { width: 100%; height: 6px; accent-color: var(--cta); }
.ws-flash { margin-bottom: 12px; font-weight: 600; }
.ws-contact-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ws-contact-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.ws-phone { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ws-pills { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; max-width: 360px; justify-content: flex-end; }
.ws-pills a.badge { text-decoration: none; }
.ws-handoff { background: #eef4fc; border-left: 4px solid var(--brand); border-radius: 6px; padding: 10px 12px; margin: 10px 0; font-size: 0.92rem; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.ws-script { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 12px 0; background: #fbfcfe; }
.ws-script h3, .ws-log h3, .ws-intel h3, .ws-facts h3 { font-size: 0.95rem; margin: 0 0 6px; }
.ws-script .script { font-size: 0.98rem; line-height: 1.55; }
.ws-facts { margin: 8px 0; }
.ws-intel { border: 1px solid #cfe0f5; background: #f6f9fe; border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.form-grid-3 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.span-3 { grid-column: 1 / -1; }
.ws-history { margin: 10px 0; }
.ws-history audio, .list audio { width: 100%; max-width: 320px; height: 32px; margin-top: 4px; }
.ws-log { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.disp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-bottom: 10px; }
.disp { display: flex; align-items: center; gap: 8px; border: 1px solid #c4ccd6; border-radius: 6px; padding: 7px 10px; cursor: pointer; font-size: 0.9rem; background: #fff; }
.disp:hover { border-color: var(--brand); }
.disp:has(input:checked) { border-color: var(--brand); background: #eef4fc; font-weight: 700; }
.disp-win { border-color: #9fd3b0; }
.disp-win:has(input:checked) { border-color: var(--cta); background: #e7f6ec; }
.disp-do_not_call:has(input:checked), .disp-bad_number:has(input:checked) { border-color: var(--danger); background: #fdecea; }
.ws-extra { background: #fafbfc; border: 1px dashed var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { border: 1px solid #c4ccd6; background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 0.82rem; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.ws-dialer { position: sticky; top: 70px; }
.ws-routes { border: 0; padding: 0; margin: 0 0 6px; }
.ws-routes .check { display: flex; margin: 2px 0; }
.ws-consent { margin: 8px 0; font-size: 0.92rem; }
.ws-callbar { margin: 10px 0 6px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.ws-status { font-weight: 600; margin: 4px 0; min-height: 1.4em; }
.ws-timer { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.ws-drop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 6px; }
.ws-drop select { flex: 1 1 100%; min-width: 0; }
.ws-drop .fine { flex-basis: 100%; margin: 0; }
.ws-power { display: inline-flex; gap: 6px; align-items: flex-end; }
.ws-power-board { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
.ws-power-board h3 { margin: 0; font-size: 1rem; }
.ws-power-lines { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ws-power-lines li { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 0.9rem; display: grid; gap: 2px; }
.ws-power-lines li.is-connected { border-color: #0b5e2a; background: #e1f4e7; }
.ws-power-lines li.is-ended { color: var(--muted); }
.ws-vm-list { list-style: none; padding: 0; margin: 0 0 10px; }
.ws-vm-list li { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; gap: 4px; }
.ws-vm-list audio { width: 100%; height: 32px; }
.ws-vm-actions { display: flex; gap: 6px; }
.ws-vm-upload { border-top: 1px solid var(--line); padding-top: 8px; }
.live-monitor { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.monitor-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: #102a43; color: #fff; padding: 10px 14px; border-radius: 8px 8px 0 0; }
.monitor-bar .btn[aria-pressed="true"] { outline: 2px solid #fff; }

/* ---------------------------------------------------------------- property intake */
.text-ok { color: var(--cta); }
.radio-list { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.radio-list legend { font-weight: 600; margin-bottom: 4px; }
.radio-list select { margin-left: 26px; max-width: calc(100% - 26px); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.photo-grid .photo { margin: 0; display: grid; gap: 2px; }
.file-chip { display: flex; align-items: center; justify-content: center; text-align: center; height: 100px; padding: 6px; border: 1px dashed var(--line); border-radius: 6px; font-size: 0.8rem; word-break: break-word; background: #fafbfc; }
.progress-steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 16px; counter-reset: step; }
.progress-steps li { flex: 1; text-align: center; font-size: 0.82rem; color: var(--muted); position: relative; padding-top: 26px; }
.progress-steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: #e3e8ee; color: var(--muted); font-weight: 700; font-size: 0.75rem; z-index: 1; }
.progress-steps li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #e3e8ee; }
.progress-steps li:first-child::after { display: none; }
.progress-steps li.done { color: var(--ink); }
.progress-steps li.done::before, .progress-steps li.done::after { background: var(--cta); color: #fff; }
.progress-steps li.current { font-weight: 700; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 14px; }
.rate-cell { margin: 0; }
.rate-cell label { font-size: 0.82rem; }
.rate-cell input { width: 100%; }
.deal-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.deal-num { background: #f6f8fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 2px; }
.deal-num strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.deal-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.deal-mao { border-color: var(--cta); background: #effaf3; }
.row-alert td { background: #fff4f2; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.agent-pick li, .referral-list li { display: grid; gap: 2px; }
.agent-pick .check { align-items: flex-start; }
.terms-inline { margin: 6px 0; }
.terms-inline summary { cursor: pointer; color: var(--brand); }
.comps td { vertical-align: top; }
.comps .comp-actions { white-space: nowrap; text-align: right; width: 1%; }
.comps .comp-actions .inline-details { display: block; text-align: left; }
.birddog .portal-nav a { white-space: nowrap; }
@media (max-width: 900px) {
  .deal-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-steps li { font-size: 0.72rem; }
}
.agenda { list-style: none; padding: 0; margin: 0; }
.agenda li { border-bottom: 1px solid var(--line); padding: 8px 0; display: grid; gap: 2px; }
.agenda li:last-child { border-bottom: 0; }
.agenda li.is-due strong { color: var(--danger); }
.agenda .btn { justify-self: start; margin-top: 4px; }
.notice-info { background: #e8f1fb; color: var(--brand-dark); }

/* ---------------------------------------------------------------- call center manager */
.day-bars { display: grid; gap: 4px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(80px, 1fr) auto; gap: 10px; align-items: center; font-size: 0.85rem; }
.bar-row progress { width: 100%; height: 10px; accent-color: var(--brand); }
.bar-label { color: var(--muted); }
.bar-val { white-space: nowrap; }
.team-head h2 { margin: 0 0 4px; }
.team-head p { margin: 2px 0; }
.team-row form { margin-top: 10px; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 2px 8px; margin: 8px 0; }
.state-grid .check { margin: 2px 0; }
.sticky-save { position: sticky; bottom: 0; background: rgba(243, 246, 250, 0.95); padding: 10px 0; margin-bottom: 16px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .ws-goals { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .ws-dialer { position: static; }
  .ws .cols > .col-side { order: -1; }
  .bar-row { grid-template-columns: 70px 1fr; }
  .bar-val { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- portal leads */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lead-card { display: flex; flex-direction: column; margin: 0; }
.lead-card header { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.lead-card h2 { font-size: 1.05rem; margin: 0; }
.lead-card h2 a { color: var(--ink); text-decoration: none; }
.lead-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; gap: 8px; }
.lead-card.is-owned { border-color: var(--cta); }
.facts { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.facts li { background: #f3f6fa; border-radius: 4px; padding: 1px 7px; font-size: 0.82rem; }
.price { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.price-lg { font-size: 2rem; margin: 0; }
.buy-box .ticks { margin-bottom: 12px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.5em; margin-bottom: 4px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--cta); font-weight: 800; }

/* ---------------------------------------------------------------- deal room */
.term-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.term-picks .check { align-items: flex-start; background: #f6f9fc; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 0; }
.term-set { border: 0; border-top: 1px solid var(--line); padding: 8px 0 0; margin: 0 0 4px; }
.term-set legend { font-weight: 700; font-size: 0.9rem; padding-right: 8px; }
.check-group { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 14px 0 4px; }
.checklist li { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.checklist-main { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 320px; min-width: 0; }
.checklist-mark { font-weight: 800; color: var(--muted); width: 1.1em; flex: none; }
.checklist li.is-done .checklist-mark { color: var(--cta); }
.checklist-edit { display: flex; gap: 6px; flex: 0 1 380px; }
.checklist-edit select { width: 120px; flex: none; }
.investor-list li { gap: 3px; }
.pick-scroll { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.row-total th { border-top: 2px solid var(--line); }
.month-bars .bar-col { width: 35%; }
.bar { display: block; height: 10px; border-radius: 3px; background: var(--brand); min-width: 2px; }
.bar-0 { width: 0; min-width: 0; } .bar-5 { width: 5%; } .bar-10 { width: 10%; } .bar-15 { width: 15%; } .bar-20 { width: 20%; } .bar-25 { width: 25%; }
.bar-30 { width: 30%; } .bar-35 { width: 35%; } .bar-40 { width: 40%; } .bar-45 { width: 45%; } .bar-50 { width: 50%; } .bar-55 { width: 55%; }
.bar-60 { width: 60%; } .bar-65 { width: 65%; } .bar-70 { width: 70%; } .bar-75 { width: 75%; } .bar-80 { width: 80%; } .bar-85 { width: 85%; }
.bar-90 { width: 90%; } .bar-95 { width: 95%; } .bar-100 { width: 100%; }
.deal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.deal-card { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.deal-card:hover { border-color: var(--brand); }
.deal-card .badge { justify-self: start; }
.deal-card.is-locked { border-style: dashed; }
.deal-card.is-locked form { margin-top: 6px; }
.plan-choice { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 4px; }
.plan-choice .badge { justify-self: start; }
.plan-choice .price { margin: 0; }
.unlock-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; }
.unlock-steps li.is-done strong { color: var(--cta); }
.unlock-steps form { display: grid; gap: 6px; margin-top: 4px; }
@media (max-width: 600px) { .checklist-edit { flex-basis: 100%; } .month-bars .bar-col { display: none; } }

/* ---------------------------------------------------------------- support thread */
.thread { margin-bottom: 16px; }
.msg { margin-bottom: 10px; }
.msg-staff { border-left: 4px solid var(--brand); }
.msg-internal { background: #fffbea; border-left-color: #f5b301; }
.msg-meta { font-size: 0.82rem; color: var(--muted); }
.message-body { white-space: pre-wrap; font-family: var(--font); font-size: 0.92rem; background: #f8fafc; padding: 12px; border-radius: 6px; max-height: 70vh; overflow: auto; }

/* ---------------------------------------------------------------- staff + settings */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 20px; margin: 10px 0; }
.perm-group h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.perm-group .check { margin: 4px 0; font-size: 0.9rem; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-of-type { border-bottom: 0; margin-bottom: 12px; }
.setting-label label { font-weight: 700; }
.setting-label .fine { margin: 2px 0; }
@media (max-width: 760px) { .setting-row { grid-template-columns: 1fr; } }
.snippet summary { color: var(--ink); }

/* ---------------------------------------------------------------- flash + pager */
.flash-stack { margin-bottom: 12px; }
.flash { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; font-weight: 600; }
.flash-success { background: #e7f6ec; color: #0b5e2a; }
.flash-error { background: #fdecea; color: var(--danger); }
.flash-info { background: #e8f1fb; color: var(--brand-dark); }
.flash-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 16px 0; }
.pager-item { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: #fff; font-size: 0.9rem; }
.pager-item.is-current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager-item.is-disabled { color: var(--muted); background: transparent; }
.pager-gap { padding: 5px 4px; color: var(--muted); }

/* ---------------------------------------------------------------- distressed leads */
.score { display: inline-block; min-width: 2.4em; text-align: center; padding: 2px 7px; border-radius: 6px; font-weight: 800; font-variant-numeric: tabular-nums; background: #eceff3; color: #344250; }
.score-hot { background: #fde3e0; color: #9b1c12; }
.score-warm { background: #fff1d1; color: #7a4f00; }
.score-cold { background: #eceff3; color: #4d5a66; }
.fam { display: inline-block; margin: 1px 2px 1px 0; padding: 0 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 800; line-height: 1.6; background: #e9edf2; color: #344250; }
.fam-foreclosure { background: #fde3e0; color: #9b1c12; }
.fam-probate { background: #efe6fb; color: #5a2a9b; }
.fam-tax { background: #fff1d1; color: #7a4f00; }
.fam-fire { background: #ffe4cc; color: #8a3b00; }
.fam-gov { background: #e3eefb; color: #12477f; }
.fam-inbound { background: #e1f4e7; color: #0b5e2a; }
.fam-stack { background: #1d2733; color: #fff; }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.plain-list li:last-child { border-bottom: 0; }
.dl-table td { vertical-align: top; }
.bulk-bar h2 { margin-top: 0; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; margin-bottom: 10px; }
.bulk-grid .term-set .btn { margin: 2px 4px 6px 0; }
.signal { border-bottom: 1px solid var(--line); padding: 8px 0; }
.signal:last-child { border-bottom: 0; }
.signal p { margin: 0 0 4px; }
.map-grid input { width: 100%; min-width: 180px; }
.cand { margin: 4px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; }
.estate h2 { font-size: 1.05rem; margin: 0; }.h-sm { font-size: 0.95rem; margin: 12px 0 6px; }
th.sortable a { color: inherit; text-decoration: none; white-space: nowrap; }
th.sortable a:hover { color: var(--brand); text-decoration: underline; }
th[aria-sort] a { color: var(--brand); }
.filters [hidden] { display: none; }
.dup-box { border: 1px solid #f0c36d; background: #fffaf0; border-radius: var(--radius); padding: 10px 14px; margin: 10px 0 14px; }
.dup-box p { margin: 0 0 6px; }
.dup-row { margin-top: 4px; }
.dup-row p { margin: 0 0 4px; }
.dup-head { margin: 6px 0 2px; font-weight: 700; }
.dup-list { margin: 0 0 6px; padding-left: 18px; font-size: 0.85rem; }
.dup-list li { margin: 2px 0; }
.dup-list .check { margin: 0; align-items: flex-start; }
.dup-list s { color: var(--muted); }
.attr { display: inline-block; margin: 1px 3px 1px 0; padding: 0 7px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.7; background: #eceff3; color: #344250; }
.attr-fire_damage { background: #b42318; color: #fff; }
.attr-condemned { background: #5c1a12; color: #fff; }
.attr-vacant { background: #fff1d1; color: #7a4f00; }.attr-picks { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.attr-picks .check { margin: 2px 0; }
.attr-form { margin: 8px 0; }
/* ---------------------------------------------------------------- property map */
.map-filters { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; padding: 10px 14px; }
.map-filters .field { margin: 0; min-width: 110px; }
.map-filters .check { margin: 0 0 8px; }
.map-count { margin: 0 0 8px auto; color: var(--muted); }
.map-wrap { position: relative; height: calc(100vh - 260px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #e8ecef; }
.pmap { position: absolute; inset: 0; }
.map-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100%; background: #fff; box-shadow: -4px 0 18px rgba(0, 0, 0, 0.18); z-index: 1000; overflow-y: auto; padding: 16px 18px; transform: translateX(100%); transition: transform 0.18s ease-out; }
.map-panel.is-open { transform: translateX(0); }
.map-panel-close { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.map-panel-title { font-size: 1.15rem; margin: 2px 28px 2px 0; }
.panel-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.panel-nums > div { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; display: flex; flex-direction: column; }
.panel-nums strong { font-size: 1.05rem; }
/* Actions on a property (map panel, lead pages): small, stacked, collapsible. */
.map-actions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 12px 0; padding: 8px 0 4px; }
.map-actions-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 6px; }
.map-actions > p { margin: 0 0 8px; }
.action-details { margin: 0 0 8px; }
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
.action-details > summary:not(.btn) { cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--brand); padding: 2px 0; }
.action-details[open] > summary { margin-bottom: 6px; }
.action-form { background: #f6f9fc; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0; }
.action-form .field { margin-bottom: 8px; }
.action-form .fine { margin: 6px 0 0; }
.action-form .check { margin: 0; }
.action-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.action-inline label { margin: 0; }
.action-inline select { width: auto; max-width: 190px; padding: 3px 6px; font-size: 0.85rem; }
.form-grid-2 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
/* A button that opens a small form under it (page headers). */
.action-pop { position: relative; }
.action-pop > .action-form { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: 90vw; z-index: 50; background: #fff; text-align: left; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16); }
.action-pop > .action-form::before { content: ""; position: absolute; top: -7px; right: 18px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.action-pop[open] > summary { box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.25); }
.action-details[open] > summary.btn { margin-bottom: 8px; }
.map-foot { margin-top: 8px; }
.map-foot .inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.map-settings { margin-top: 6px; }
.price-pin { background: none; border: 0; }
.price-pin span { display: inline-block; transform: translate(-50%, -100%); background: #1a5fb4; color: #fff; border: 2px solid #fff; border-radius: 12px; padding: 1px 7px; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); cursor: pointer; }
.price-pin-dl-hot span { background: #b42318; }
.price-pin-dl-warm span { background: #c77700; }
.price-pin-dl-cold span { background: #4d5a66; }
.price-pin-fire span { border-color: #ff8a00; box-shadow: 0 0 0 2px #b42318, 0 1px 4px rgba(0, 0, 0, 0.35); }
.price-pin.is-active span { background: #111; transform: translate(-50%, -100%) scale(1.15); }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }
.legend-lead { background: #1a5fb4; }
.legend-dl, .legend-hot { background: #b42318; }
.legend-warm { background: #c77700; }
.legend-cold { background: #4d5a66; }
.legend-fire { background: #fff; box-shadow: 0 0 0 2px #ff8a00, 0 0 0 4px #b42318; }
@media (max-width: 700px) { .map-wrap { height: 70vh; } .map-panel { width: 100%; } }
/* ---------------------------------------------------------------- templates + letters */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.text-letter { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.5; }
.token-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.token-list .btn { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.email-preview { border: 1px solid #dde3ea; border-radius: 6px; padding: 12px 16px; background: #fff; max-width: 640px; }
.email-preview-body { font: 15px/1.55 Arial, Helvetica, sans-serif; border-top: 1px solid #eef1f5; padding-top: 10px; }
.letter-steps { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.letter-status { font-size: 13px; }
.template-picker select { max-width: 100%; }
.lien-row { border: 1px solid #dde3ea; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; background: #fafbfd; }
.lien-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.lien-row .field label { font-size: 13px; }
.report-text { font-family: Consolas, Menlo, monospace; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
div.report-text { max-height: 480px; overflow: auto; background: #f6f8fa; border: 1px solid #e3e8ee; border-radius: 4px; padding: 10px; }
.title-summary { background: #f3f7fc; border-left: 3px solid #1a5fb4; padding: 6px 10px; }
