@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --dal-brand: #0f3d2b;
  --dal-brand-dark: #0a291d;
  --dal-brand-soft: #e7ecea;
  
  --bg: #f5f4f0;
  --card-bg: #ffffff;
  
  --text: #292d2b;
  --text-soft: #4a504c;
  --muted: #787d7a;
  
  --border: #e5e3dc;
  --border-strong: #d0cec5;
  
  --green: #1e5e3c;
  --green-bg: #e5f0ea;
  --amber: #a55a28;
  --amber-bg: #faefe8;
  --red: #8c2a2a;
  --red-bg: #f5e4e4;
  
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 61, 43, 0.04), 0 2px 4px rgba(15, 61, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 61, 43, 0.06), 0 2px 4px rgba(15, 61, 43, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: calc(env(safe-area-inset-top) + 1rem) 1.25rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(245, 244, 240, 0.85);
}

.top-bar__logo {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--dal-brand);
  letter-spacing: -0.01em;
}

.top-bar__logout {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.top-bar__logout:hover {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border-strong);
}

.top-bar__nav-link {
  margin-left: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dal-brand);
  background: var(--dal-brand-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.top-bar__nav-link:hover {
  background: #d8e0dd;
}

/* Layout */
.dashboard-main {
  max-width: 768px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.card__head .card__title { margin: 0; }

.card__meta {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.card__title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.muted + .muted { margin-top: 0.4rem; }

/* Status stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.stat__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat__value {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dal-brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--red   { background: var(--red); }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip--green { background: var(--green-bg); color: var(--green); }
.chip--amber { background: var(--amber-bg); color: var(--amber); }
.chip--red   { background: var(--red-bg);   color: var(--red);   }

/* Exec summary */
.exec-intro {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.exec-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exec-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.4;
}

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

.exec-item__text { min-width: 0; }

.exec-item__link {
  flex: 0 0 auto;
  color: var(--dal-brand);
  background: var(--dal-brand-soft);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.exec-item__link:hover { background: #d8e0dd; }

.exec-more { margin-top: 0.5rem; }
.exec-more summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dal-brand);
  padding: 0.5rem 0;
}

.exec-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 0 0 1rem;
  max-height: 320px;
  overflow: auto;
  color: var(--text-soft);
}

.exec-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:not(.btn--primary):not(.btn--copy) {
  background: var(--card-bg);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn:not(.btn--primary):not(.btn--copy):hover {
  background: var(--bg);
}

.btn--sm { font-size: 0.78rem; padding: 0.2rem 0.6rem; line-height: 1.4; white-space: nowrap; flex-shrink: 0; }
.btn--primary {
  background: var(--dal-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover { background: var(--dal-brand-dark); }
.btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 480px) {
  .exec-form .btn--primary,
  .exec-form .btn { width: 100%; text-align: center; }
}

.btn--copy {
  background: transparent;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.btn--copy:hover { 
  color: var(--dal-brand); 
  background: var(--dal-brand-soft);
}

.spinner { color: var(--muted); font-size: 0.9rem; }
.sweep-msg { color: var(--green); font-size: 0.9rem; font-weight: 500; }

/* Pending sweep intent badges — shown near stalled bill rows */
.intent-queued {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: var(--amber-bg);
  color: var(--amber);
  margin-right: 0.35rem;
}
.intent-queued--expiring {
  background: var(--red-bg);
  color: var(--red);
}
/* Section-level notice when a requeue-all intent is pending */
.intent-queued-notice {
  font-size: 0.85rem;
  color: var(--amber);
  margin: 0 0 0.5rem;
}
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
.htmx-request.htmx-indicator { display: inline; }

/* Actions */
.action-list, .phone-list, .delinquency-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-item { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 0.75rem; }
.action-item:last-child { border-bottom: none; }
.action-check { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; flex: 1; min-width: 0; }
.action-check input { margin-top: 0.25rem; accent-color: var(--dal-brand); width: 1.1rem; height: 1.1rem; }
.action-item--done .action-text { text-decoration: line-through; color: var(--muted); }
.action-text { font-size: 0.95rem; line-height: 1.4; color: var(--text); }
.action-hint { margin-bottom: 1rem; }

/* Money / payables tables */
.money-total { font-size: 0.95rem; margin: 0 0 0.75rem; color: var(--text); }
.money-total strong { font-variant-numeric: tabular-nums; color: var(--dal-brand); }
.money-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.money-table th, .money-table td {
  text-align: left;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.money-table tr:last-child td { border-bottom: none; }
.money-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.money-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }

@media (max-width: 600px) {
  .payables-table thead { display: none; }
  .payables-table,
  .payables-table tbody { display: block; width: 100%; }
  .payables-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.9rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
  .payables-table tr:last-child { border-bottom: none; }
  .payables-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .payables-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .payables-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--text-soft); }
  .payables-table td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .payables-table td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .payables-table td:nth-child(3)::before,
  .payables-table td:nth-child(4)::before {
    content: attr(data-label) " ";
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .payables-table .payables-table__action {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
  }
}

/* Delinquency */
.delinquency-group { margin-bottom: 1rem; }
.delinquency-group:last-child { margin-bottom: 0; }
.delinquency-list { margin-top: 0.5rem; }
.delinquency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.delinquency-item:last-child { border-bottom: none; }

/* Phone */
.phone-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.phone-item:last-child { border-bottom: none; }
.phone-type { 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border-radius: 50%;
  color: var(--dal-brand);
  flex-shrink: 0;
}
.phone-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.phone-from { font-weight: 600; font-size: 0.95rem; color: var(--dal-brand); }
.phone-text { font-size: 0.9rem; color: var(--text-soft); overflow-wrap: anywhere; line-height: 1.4; }
.phone-time { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }

/* Invoices */
.invoice-count { margin: 0 0 0.75rem; font-weight: 500; }
.invoice-list { list-style: none; margin: 0; padding: 0; }
.invoice-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.invoice-item:last-child { border-bottom: none; }
.invoice-main { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.invoice-bucket { font-size: 0.7rem; }
.invoice-vendor { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.invoice-prop { color: var(--muted); font-size: 0.85rem; }
.invoice-meta { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.invoice-amount { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.95rem; color: var(--dal-brand); }
.invoice-time { font-size: 0.8rem; color: var(--muted); }
.invoice-link {
  color: var(--dal-brand);
  background: var(--dal-brand-soft);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.invoice-link:hover { background: #d8e0dd; }

/* Log */
.log-details summary { cursor: pointer; font-size: 0.9rem; color: var(--dal-brand); font-weight: 600; padding: 0.5rem 0; }
.log-body {
  margin-top: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  background: #1a1c1b;
  color: #e5e3dc;
  border-radius: 8px;
  padding: 1rem;
  max-height: 280px;
  overflow: auto;
  line-height: 1.5;
}
.log-line { white-space: pre-wrap; word-break: break-word; padding: 0.1rem 0; }
.log-line--error { color: #e57373; }
.log-line--cost { color: #e5b567; }

/* Relative time */
.rel-time { font-variant-numeric: tabular-nums; }

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.25rem;
}

.login-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.login-logo { 
  margin: 0 0 0.5rem; 
  color: var(--dal-brand); 
  letter-spacing: -0.02em; 
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 500;
}
.login-sub { margin: 0 0 2rem; color: var(--muted); font-size: 1rem; }
.login-error {
  background: var(--red-bg);
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  border: 1px solid rgba(140, 42, 42, 0.2);
}

.login-submit { width: 100%; padding: 0.75rem; font-size: 1rem; }

/* Wide cards / two-column on larger screens */
@media (min-width: 768px) {
  .dashboard-main { max-width: 900px; padding: 2rem 1.5rem 4rem; }
  .grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.25rem; }
  .card--wide { grid-column: 1 / -1; }
  .top-bar { padding: 1.25rem 2rem; }
}

/* Exec summary section labels */
.exec-blocks { margin: 0 0 0.75rem; }
.exec-intro { font-size: 0.95rem; margin: 0 0 0.75rem; line-height: 1.5; }
.exec-intro:last-child { margin-bottom: 0; }
.exec-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
}

.banner--warn {
  background: var(--amber-bg);
  border: 1px solid rgba(165, 90, 40, 0.2);
  color: var(--amber);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

/* Icons */
.icon-svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Overview: an editorial operations ledger, with quiet mineral color and firm hierarchy. */
.overview-page {
  --dal-brand: #173e42;
  --dal-brand-dark: #102e31;
  --dal-brand-soft: #dce9e7;
  --bg: #edf1ef;
  --card-bg: #fbfaf6;
  --text: #202f32;
  --text-soft: #4d6263;
  --muted: #617678;
  --border: #d7e0dd;
  --border-strong: #b9cbc6;
  --green: #23735e;
  --green-bg: #e0eee8;
  --amber: #98602e;
  --amber-bg: #f6eadb;
  --red: #a3443b;
  --red-bg: #f7e7e2;
  --shadow-sm: 0 1px 2px rgba(20, 55, 57, 0.035);
  --shadow-md: 0 12px 32px rgba(20, 55, 57, 0.08);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
.top-bar {
  padding: 0 28px;
  background: rgba(237, 241, 239, .96);
  border-bottom-color: var(--border-strong);
}
.top-bar__inner {
  width: min(100%, 1320px);
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.top-bar__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 21px;
  letter-spacing: -.045em;
}
.top-bar__logo-light { font-weight: 400; color: var(--text-soft); }
.top-bar__mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px 9px 9px 2px;
  background: var(--dal-brand);
  color: #f8f5ec;
  font: 500 20px/1 "Fraunces", serif;
}
.top-bar__nav { display: flex; align-items: center; gap: 5px; margin-left: 30px; align-self: stretch; }
.top-bar__nav-link {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0 16px;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  transition: color .18s ease;
}
.top-bar__nav-link:hover { background: transparent; color: var(--dal-brand); }
.top-bar__nav-link--active { color: var(--dal-brand); font-weight: 700; }
.top-bar__nav-link--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--dal-brand);
  border-radius: 3px 3px 0 0;
}
.top-bar__logout {
  margin-left: auto;
  border: 0;
  padding: 8px 0 8px 12px;
  border-radius: 0;
  color: var(--muted);
  font-size: 12px;
}
.top-bar__logout:hover { background: transparent; border: 0; color: var(--dal-brand); }
.dashboard-main {
  display: block;
  width: min(100%, 1320px);
  max-width: none;
  padding: 44px 28px 90px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.page-intro__eyebrow, .section-kicker, .actions-sidebar__label {
  margin: 0 0 11px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.page-intro__eyebrow span { padding: 0 7px; color: var(--border-strong); }
.page-intro h1 {
  margin: 0;
  font: 500 clamp(32px, 3.6vw, 48px)/1.13 "Fraunces", serif;
  letter-spacing: -.035em;
  color: var(--dal-brand-dark);
}
.page-intro__sub { margin: 12px 0 0; color: var(--text-soft); font-size: 14px; }
.page-intro__aside {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.page-intro__aside-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card {
  min-width: 0;
  padding: 25px 27px;
  background: var(--card-bg);
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.card--wide, .card--status, .card--actions { grid-column: 1 / -1; }
.card__title { color: var(--dal-brand-dark); font-size: 13px; letter-spacing: -.01em; text-transform: none; }
.card__head { align-items: center; }
.muted { color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.card--status { padding: 27px 30px 29px; border-top: 3px solid var(--dal-brand); }
.status-heading, .actions-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-heading { margin-bottom: 23px; }
.status-heading .card__title, .actions-top .card__title {
  margin: 0;
  font: 500 26px/1.2 "Fraunces", serif;
  letter-spacing: -.025em;
}
.status-heading__note { margin: 0; color: var(--muted); font-size: 12px; }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 89px;
  padding: 17px 19px 13px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  gap: 7px;
}
.stat:not(:nth-child(3n + 1)) { padding-left: 24px; }
.stat:not(:nth-child(3n + 1))::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: var(--border);
}
.stat__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  overflow: visible;
  white-space: normal;
}
.stat__value {
  color: var(--text);
  font: 600 clamp(15px, 1.6vw, 19px)/1.3 "DM Sans", sans-serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.stat__detail {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 11px;
}
.stat--lead .stat__value { color: var(--dal-brand); font: 500 23px/1.15 "Fraunces", serif; }
.dot { width: 7px; height: 7px; }
.dot--neutral { background: #839996; }
.notice { margin-top: 19px; }
.card--actions { padding: 28px 30px 30px; }
.actions-top { align-items: end; margin-bottom: 20px; }
.actions-count {
  display: inline-block;
  vertical-align: middle;
  margin-left: 9px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-soft);
  background: var(--bg);
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: .02em;
}
.actions-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, .8fr); border-top: 1px solid var(--border); }
.actions-content { padding: 20px 28px 0 0; min-width: 0; }
.actions-sidebar { padding: 21px 0 0 25px; border-left: 1px solid var(--border); }
.actions-sidebar__label { margin-bottom: 12px; color: var(--muted); }
.action-hint { margin: 0 0 12px; color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.action-hint strong { color: var(--text); font-weight: 700; }
.actions-empty { display: flex; align-items: flex-start; gap: 15px; padding: 10px 0 14px; }
.actions-empty__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 16px;
}
.actions-empty strong { color: var(--text); font-size: 14px; }
.actions-empty p { margin: 5px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.actions-more { margin-top: 15px; border-top: 1px solid var(--border); }
.actions-more summary {
  padding: 12px 0;
  cursor: pointer;
  color: var(--dal-brand);
  font-size: 12px;
  font-weight: 700;
}
.actions-more__buttons { display: flex; flex-wrap: wrap; gap: 8px; padding: 1px 0 8px; }
.actions-more__buttons .btn { padding: 8px 10px; font-size: 11px; text-align: left; }
.action-item { align-items: center; }
.action-check input { flex: none; }
.sweep-msg:not(:empty) { display: block; padding: 10px 0; }
.btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn--primary { background: var(--dal-brand); color: #f9faf6; box-shadow: none; }
.btn:not(.btn--primary):not(.btn--copy) { background: #f7f8f4; border-color: var(--border-strong); color: var(--dal-brand); }
.btn:not(.btn--primary):not(.btn--copy):hover { background: var(--dal-brand-soft); }
.top-bar a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.chip { border-radius: 5px; }
.money-table th, .money-table td { padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 767px) {
  .top-bar { padding: 0 18px; }
  .top-bar__inner { min-height: 63px; gap: 10px; flex-wrap: wrap; }
  .top-bar__logo { font-size: 18px; }
  .top-bar__mark { width: 29px; height: 29px; font-size: 17px; }
  .top-bar__nav { margin-left: auto; gap: 1px; }
  .top-bar__nav-link { padding: 0 9px; font-size: 12px; }
  .top-bar__nav-link--active::after { left: 9px; right: 9px; }
  .top-bar__logout { font-size: 11px; padding-left: 6px; }
  .dashboard-main { padding: 30px 17px 70px; }
  .page-intro { margin-bottom: 25px; }
  .page-intro h1 { font-size: 36px; }
  .page-intro__aside { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .card { padding: 21px; }
  .card--wide, .card--status, .card--actions { grid-column: 1; }
  .card--status, .card--actions { padding: 23px 21px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 84px; padding-right: 10px; }
  .stat:not(:nth-child(3n + 1)) { padding-left: 0; }
  .stat:not(:nth-child(3n + 1))::before { display: none; }
  .stat:nth-child(even) { padding-left: 17px; }
  .stat:nth-child(even)::before { display: block; top: 18px; bottom: 18px; }
  .stat__value { font-size: 15px; }
  .stat--lead .stat__value { font-size: 21px; }
  .actions-layout { display: block; }
  .actions-content { padding: 15px 0 7px; }
  .actions-sidebar { border-left: 0; border-top: 1px solid var(--border); padding: 17px 0 0; }
}
@media (max-width: 480px) {
  .top-bar__inner { padding: 10px 0 0; gap: 0; }
  .top-bar__logo { margin-right: auto; }
  .top-bar__nav { order: 3; width: 100%; min-height: 39px; margin: 5px 0 0; }
  .top-bar__nav-link { padding: 0 13px; }
  .top-bar__nav-link--active::after { left: 13px; right: 13px; }
  .top-bar__logout { margin-left: 0; }
  .page-intro h1 { font-size: 32px; }
  .page-intro__sub { font-size: 13px; line-height: 1.5; }
  .status-heading__note { display: none; }
  .actions-top { align-items: start; }
  .actions-top .card__title { font-size: 23px; }
  .actions-top .btn { max-width: 115px; padding: 9px; font-size: 11px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .top-bar__nav-link { transition: none; }
}
}
