/* CareBOS — app styles, mirroring the Acorvia design language.

   Same bones as Acorvia (dark rail, white cards on a warm ground, Inter,
   tinted status pills), keyed to CareBOS's own brand: navy is the ink and the
   rail and does the primary work; CareBOS green marks the screen you're on,
   money, and "done". Gold, sky and coral are status colours only — pending,
   in-progress, alert — never decoration.

   One committed light theme, like Acorvia: the rail is always dark (it wears
   the dark-background logo), the page is always light. */

/* Inter, self-hosted — no font is fetched from anyone else's server. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  /* The CareBOS palette in Acorvia's roles. The blue is Acorvia's midnight —
     Kirk prefers it to the old CareBOS navy, and the logo is following. */
  --navy: #17324D;         /* the brand — rail, primary buttons, ink headings */
  --navy-2: #24466A;       /* one step up, for depth on the dark rail */
  --green: #22af2c;        /* the accent — active screen, money in, done (non-text uses) */
  --green-dk: #156e1c;     /* green for TEXT — ≥4.5:1 on white AND on green-100 (WCAG AA) */
  --green-100: #e8f5ec;    /* green tint */
  --gold-ink: #8A6115;     /* pending */
  --gold-100: #FCF2E0;
  --sky-ink: #2E6B8F;      /* in progress */
  --sky-100: #E7F1F8;
  --coral-ink: #A83B28;    /* alert */
  --coral-100: #FCEBE8;

  /* The names the app's markup already speaks */
  --bg: #F7F9F5;           /* warm white — the page */
  --panel: #ffffff;
  --ink: #17324D;
  --muted: #4D5D63;
  --line: #E4E8E2;
  --brand: var(--navy);
  --brand-ink: #ffffff;
  --accent: var(--green);
  --danger: var(--coral-ink);
  --ok: var(--green-dk);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,32,58,.06), 0 4px 14px rgba(20,32,58,.06);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.011em; line-height: 1.2; }
a { color: var(--navy); }
button { font: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; font-size: 13.5px; width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--ink);
}
/* Number fields carry no stepper. The arrows are a pixel-hunt at this size,
   and their real cost is the wheel: scrolling the page with the pointer over
   one silently edited the value. See the wheel guard in app.js. */
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Every select wears the house style — native OS chrome never shows. */
select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235b6b86' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-100); }
.hidden { display: none !important; }

/* Login — the card floats on the brand's dark ground, like Acorvia. */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--navy); }
.login-card {
  background: var(--panel); padding: 32px; border-radius: 14px; box-shadow: var(--shadow);
  width: 100%; max-width: 380px;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--navy); color: var(--brand-ink); border: 1px solid var(--navy);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; line-height: 1.45;
  text-decoration: none;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--bg); }
.btn.danger { background: transparent; color: var(--danger); border-color: #EBC3BB; }
.btn.danger:hover { background: var(--coral-100); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }

/* App shell */
/* Menu and page scroll independently: the shell is viewport-height and each
   column manages its own overflow, so a long list never scrolls the menu away
   (and a long menu never scrolls the page). */
.shell { display: grid; grid-template-columns: 228px 1fr; height: 100vh; overflow: hidden; }
/* The rail is the brand's dark ground — light lettering, the active screen in
   CareBOS green. */
.sidebar { background: var(--navy); color: #C7D0D9; padding: 16px 12px; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar .brand { font-weight: 700; font-size: 18px; padding: 6px 10px 16px; color: #fff; }
.brand-logo { width: 148px; max-width: 100%; height: auto; display: block; }
.login-logo { width: 190px; max-width: 72%; height: auto; display: block; margin: 0 auto 10px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sidebar .search { background: var(--navy-2); border: 1px solid rgba(247,249,245,.14); color: #F7F9F5; font-size: 13px; }
.sidebar .search::placeholder { color: #8FA0B0; }
.sidebar .search:focus { border-color: var(--green); box-shadow: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: #C7D0D9; text-decoration: none; margin-bottom: 1px; font-size: 13.5px; }
.nav a:hover { background: rgba(247,249,245,.08); color: #fff; }
/* The screen you are on: a green edge on a lifted row — the accent's one job
   on the rail. */
.nav a.active { background: var(--navy-2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
.sidebar .spacer { flex: 1; }
.settings-group { border-top: 1px solid rgba(247,249,245,.14); padding-top: 8px; margin-bottom: 8px; }
.nav-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; padding: 8px 12px; border-radius: 8px; color: #8FA0B0; font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.nav-toggle:hover { color: #fff; }
.nav-toggle.active { color: #fff; }
.nav.submenu { margin-top: 2px; }
.nav.submenu a { padding-left: 24px; font-size: 13px; }
.userbox { border-top: 1px solid rgba(247,249,245,.14); padding-top: 12px; font-size: 13px; color: #A5B2C0; }
.userbox .who { color: #fff; font-weight: 600; }
.userbox a { color: #A5B2C0; }
/* The bug icon by the logo sits on the dark rail — the page's muted grey
   would vanish there. */
.sidebar .brand button { color: #A5B2C0 !important; }
.userbox .btn.secondary { color: #fff; border-color: rgba(247,249,245,.25); }
.userbox .btn.secondary:hover { background: rgba(247,249,245,.08); }
.main { padding: 24px 28px; overflow-y: auto; overflow-x: auto; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.topbar h2 { margin: 0; font-size: 20px; flex: 1; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.toolbar .search { flex: 1; max-width: 340px; }

/* Table */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
td { vertical-align: middle; }
th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
/* Shrink-wrap a column to its content (numbers, dates, badges, actions) so
   sparse tables on wide screens don't smear columns apart — the leftover
   width goes to the unmarked text columns instead. Mark the th AND its tds. */
th.sh, td.sh { width: 1%; white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--ink); }
th.sorted { color: var(--ink); }
.sort-ind { margin-left: 5px; font-size: 10px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--bg); }
.select-all-banner { padding: 9px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; text-align: center; }
.select-all-banner a { color: var(--navy); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }

/* Status pills: a tint with its dark-ink partner, so colour is never pale
   text on white. */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.badge.ok, .badge.active, .badge.verified { background: var(--green-100); border-color: transparent; color: var(--ok); }
.badge.inactive, .badge.terminated, .badge.discharged, .badge.rejected { background: var(--coral-100); border-color: transparent; color: var(--danger); }
.badge.voided { color: var(--muted); text-decoration: line-through; }
/* Work-waiting count on a rail menu item: a green pill on the dark ground,
   whatever other badge classes the markup carries. */
.badge.nav-badge { background: var(--green); border-color: transparent; color: #fff; text-decoration: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.grid2 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.grid2 input, .grid2 select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: inherit; background: var(--card, #fff); }
.filters { display: flex; gap: 6px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 600; font-size: 13px; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.bulkrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.bulkrow .spacer { flex: 1; }
.bulkrow .sel-count { color: var(--muted); font-size: 13px; }
.pager { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--muted); }
.pager .spacer { flex: 1; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }

/* Tabs — underline in green, lettering in ink. */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { background: none; border: none; padding: 9px 15px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--green); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; padding: 0 20px 20px; align-items: center; }
.form-actions .spacer { flex: 1; }

/* Toast + banner */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: var(--shadow); font-size: 13.5px; max-width: 340px; animation: slidein .18s ease; z-index: 100; }
.toast.err { background: var(--danger); }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }
.banner { background: var(--coral-100); color: var(--danger); border: 1px solid #EBC3BB; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13.5px; }

/* Calendar: a white card, with the grid itself sitting on the page's ground so
   the gaps between day boxes read as gridlines. */
.cal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.cal-grid { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}

/* Read-only record view: label and value sit next to each other in narrow
   pairs, two or three across, instead of the wide two-column edit grid where a
   value can end up half a screen from its label. */
.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; padding: 8px 20px 16px; }
.view-row { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.view-row > .k { flex: 0 0 145px; color: var(--muted); font-size: 13px; }
.view-row > .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.view-row.full { grid-column: 1 / -1; }

/* Record screens with a side rail (enrollment: the program on the left, its
   preferred attendants on the right). The rail is a quarter of the width. */
.rec-split { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; align-items: start; }
.rec-split > * { min-width: 0; }

@media (max-width: 1100px) {
  /* Too narrow for a quarter-width rail to hold a name — stack it under. */
  .rec-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .sidebar { overflow-y: visible; }
  .form-grid { grid-template-columns: 1fr; }
  /* Wide tables (e.g. Agencies, whose right-most cell holds "Log in") would be
     clipped by the card's overflow:hidden on a phone — let them scroll across. */
  .card { overflow-x: auto; }
}

/* Inline button spinner (e.g. payroll Process while the batch builds) */
.btnspin { display:inline-block; width:12px; height:12px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; margin-right:6px; vertical-align:-2px; animation: btnspin .8s linear infinite; }
@keyframes btnspin { to { transform: rotate(360deg); } }

/* --- Dashboard -------------------------------------------------------------
   A grid of widget cards: big number, plain-words name, timeframe chips.
   A card's left edge carries its state — green all clear, gold needs a look,
   coral needs attention now. Wide cards span two columns. */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dash-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 14px; cursor: pointer; position: relative; min-height: 130px; display: flex; flex-direction: column; gap: 4px; }
.dash-card.wide { grid-column: span 2; }
.dash-card:hover { border-color: var(--navy-2); }
.dash-head { display: flex; align-items: center; gap: 10px; }
.dash-head h3 { margin: 0; flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-ico { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.dash-ico svg { width: 15px; height: 15px; }
.t-green { background: var(--green-100); color: var(--green-dk); }
.t-coral { background: var(--coral-100); color: var(--coral-ink); }
.t-gold { background: var(--gold-100); color: var(--gold-ink); }
.t-sky { background: var(--sky-100); color: var(--sky-ink); }
.dash-num { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
/* Wide cards put the big number top-right, next to the title row. */
.dash-card.wide .dash-num { position: absolute; top: 12px; right: 18px; font-size: 40px; }
.dash-card.wide .dash-head { padding-right: 90px; }
.dash-sub { font-size: 12px; color: var(--muted); }
.dash-pill { align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.dash-pill.ok { background: var(--green-100); color: var(--green-dk); }
.dash-pill.warn { background: var(--gold-100); color: var(--gold-ink); }
.dash-pill.urgent { background: var(--coral-100); color: var(--coral-ink); }
/* Nothing measured yet — not a clean bill of health. */
.dash-pill.muted { background: var(--bg); color: var(--muted); }
.dash-pill.sky { background: var(--sky-100); color: var(--sky-ink); }
.dash-donut { display: flex; justify-content: center; padding: 2px 0; }
.dash-donut text { fill: var(--ink); font-family: var(--font); }
.dash-ranges { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.dash-ranges button { font: inherit; font-size: 11.5px; padding: 4px 11px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.dash-ranges button.active { border-color: var(--sky-ink); color: var(--sky-ink); font-weight: 700; }
.dash-alerts { background: var(--coral-100); border: 1px solid #EBC3BB; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.dash-alerts a { color: var(--coral-ink); font-weight: 600; }
/* Customize mode: cards get a grab handle and controls, ranges hide. */
.dash-grid.editing .dash-card { cursor: grab; }
.dash-grid.editing .dash-card.dragging { opacity: .4; }
.dash-tools { position: absolute; top: 8px; right: 10px; display: flex; gap: 4px; }
.dash-tools button { font: inherit; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.dash-tools button:hover { color: var(--ink); border-color: var(--navy-2); }

/* Form section dividers — a long form (Agency settings) in readable chunks. */
.form-section { grid-column: 1 / -1; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.form-section small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* --- Consumer profile (the mockup header + overview) ----------------------- */
.cp-back { display:inline-flex; align-items:center; gap:6px; color:var(--muted); text-decoration:none; font-size:13px; margin-bottom:10px; }
.cp-back:hover { color: var(--ink); }
.cp-head { display:flex; align-items:flex-start; gap:16px; padding:4px 2px 14px; margin-bottom:6px; }
.cp-avatar { width:56px; height:56px; border-radius:50%; background:var(--green-100); color:var(--green-dk);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; flex:0 0 auto; }
.cp-title { flex:1; min-width:0; }
.cp-name { font-size:22px; font-weight:700; color:var(--ink); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cp-meta { display:flex; gap:16px; flex-wrap:wrap; color:var(--muted); font-size:13px; margin-top:8px; }
.cp-meta .ico { opacity:.75; margin-right:4px; vertical-align:-2px; }
.cp-actions { display:flex; gap:8px; flex-wrap:wrap; }
.cp-care { display:grid; grid-template-columns:repeat(auto-fit, minmax(175px, 1fr)); margin-bottom:14px; padding:0; }
.cp-stat { padding:14px 16px; border-left:1px solid var(--line); }
.cp-stat:first-child { border-left:none; }
.cp-stat label { font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); display:block; margin-bottom:5px; }
.cp-stat .v { font-size:15px; font-weight:600; color:var(--ink); }
.cp-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(360px, 1fr)); gap:14px; align-items:start; }
.cp-card h3 { margin:0 0 12px; font-size:15px; display:flex; align-items:center; gap:8px; }
.cp-card h3 .ico { color:var(--green-dk); }
.cp-edit-ico { margin-left:auto; background:none; border:none; padding:2px 4px; color:var(--muted); cursor:pointer; border-radius:6px; display:inline-flex; }
.cp-edit-ico:hover { color:var(--navy); background:var(--bg); }
.cp-status-pill { cursor:pointer; }
.cp-status-menu { position:absolute; top:calc(100% + 6px); left:0; background:var(--panel); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:6px; min-width:170px; z-index:60; display:flex; flex-direction:column; gap:2px; }
.cp-status-menu button { display:flex; align-items:center; gap:9px; padding:7px 10px; border:none; background:none; border-radius:8px; font:inherit; font-size:13.5px; font-weight:400; color:var(--ink); cursor:pointer; text-align:left; }
.cp-status-menu button:hover { background:var(--bg); }
.cp-status-menu button.current { background:var(--green-100); font-weight:600; }
.cp-status-menu .dot { width:10px; height:10px; border-radius:50%; flex:0 0 auto; }
.cp-kv { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }
.cp-kv .full { grid-column:1 / -1; }
.cp-kv label { font-size:11.5px; color:var(--muted); display:block; margin-bottom:2px; }
.cp-kv .v { font-size:13.5px; color:var(--ink); }
.cp-kv .v.none { color:var(--muted); }
.cp-attn-row { display:flex; align-items:center; gap:12px; padding:11px 2px; border-top:1px solid var(--line); cursor:pointer; }
.cp-attn-row:first-of-type { border-top:none; }
.cp-attn-row:hover { background:var(--bg); }
.cp-attn-row .t { flex:1; min-width:0; }
.cp-attn-row .t b { display:block; font-size:13.5px; }
.cp-attn-row .t span { font-size:12.5px; color:var(--muted); }

/* --- List page chrome (stat cards + richer rows) --------------------------- */
.list-sub { color: var(--muted); font-size: 13.5px; margin: -8px 0 14px; }
.ls-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px; margin-bottom:16px; }
.ls-card { display:flex; align-items:center; gap:14px; padding:16px 18px; }
.ls-card label { font-size:12.5px; color:var(--muted); display:block; }
.ls-card .n { font-size:24px; font-weight:700; color:var(--ink); line-height:1.2; }
.ls-card span:last-child > span, .ls-card > div > span { font-size:12px; color:var(--muted); }
.lc-name { display:flex; align-items:center; gap:10px; }
.lc-avatar { width:32px; height:32px; border-radius:50%; background:var(--green-100); color:var(--green-dk);
  display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 auto; }
.lc-name small { display:block; color:var(--muted); font-size:11.5px; font-weight:400; }
