  :root {
    --ffl-bg: #FEFEFE;
    --ffl-surface: #FDFDFD;
    --ffl-surface-subtle: #F9F9FA;
    --ffl-sidebar: #121211;
    --ffl-text: #131312;
    --ffl-text-muted: #737273;
    --ffl-border: #EBE7E4;
    --ffl-border-soft: #EFEAE9;
    --ffl-brand-blush: #AE928D;
    --ffl-icon-blush: #E4C5C5;
    --ffl-icon-fg: #A87E7E;
    --ffl-success: #176B2C;
    --ffl-success-bg: #E4F0E2;
    --ffl-danger: #EF3E3E;
    --ffl-danger-bg: #FBE1DF;
    --ffl-warning: #E8752F;
    --ffl-warning-bg: #FCE8DC;
    --ffl-info: #2F6FB0;
    --ffl-info-bg: #DDE9F6;
    --ffl-loyalty: #7B4FA0;
    --ffl-loyalty-bg: #EAE0F5;
    --ffl-yellow: #A67C00;
    --ffl-yellow-bg: #FBF0C8;
    --ffl-gray-icon: #6B6B6B;
    --ffl-gray-icon-bg: #E5E2DF;
    --ffl-radius-sm: 8px;
    --ffl-radius-md: 12px;
    --ffl-radius-lg: 16px;
    --ffl-border-width: 1px;
    --ffl-shadow: 0 1px 2px rgba(0,0,0,.03);
    --ffl-font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: var(--ffl-font);
    color: var(--ffl-text);
    background: var(--ffl-bg);
    font-size: 13px;
    line-height: 1.5;
  }
  .shell {
    display: grid;
    grid-template-columns: 254px 1fr;
    min-height: 100vh;
    align-items: start;
  }
  .sidebar {
    background: var(--ffl-sidebar);
    color: #fff;
    padding: 24px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .sidebar-brand {
    padding: 2px 10px 22px;
  }
  .sidebar-brand .brand-title {
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -.01em;
    color: #fff;
    line-height: 1;
  }
  .sidebar-brand .brand-sub {
    font-size: 11px;
    color: #B7AFAC;
    text-transform: uppercase;
    letter-spacing: .3em;
    margin-top: 6px;
    font-weight: 500;
  }
  .sidebar-nav { padding: 0; }
  .sidebar-section-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #8C817D;
    padding: 10px 10px;
  }
  .nav-divider { height: 1px; background: rgba(255,255,255,.12); margin: 14px 10px 10px; }
  .nav-item {
    display: flex; align-items: center; gap: 12px; white-space: nowrap;
    padding: 0 12px; height: 48px; border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #E7E2E0;
    user-select: none;
    margin-bottom: 1px;
  }
  .nav-item svg { width: 20px; height: 20px; flex: none; stroke-width: 1.9; }
  .nav-item:hover { background: rgba(255,255,255,.06); }
  .nav-item.active {
    background: var(--ffl-brand-blush);
    color: #fff;
    font-weight: 500;
  }
  .nav-item.active:hover { background: var(--ffl-brand-blush); }
  .nav-item.disabled {
    color: #5C5652;
    cursor: not-allowed;
  }
  .nav-item.disabled:hover { background: transparent; }
  .nav-item .nav-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: auto;
  }
  .sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12px;
    color: #B7AFAC;
  }
  .sidebar-footer .user-name { color: #fff; font-weight: 600; }
  .main { min-width: 0; background: var(--ffl-bg); }
  .app { width: 100%; }
  .hidden { display: none !important; }

  /* -------- KPI Tracker sub-tabs -------- */
  .kpi-tabs-card {
    background: #FFFFFF;
    border-radius: 4px;
    margin-top: 16px;
  }
  .kpi-tabs-strip {
    display: flex;
    gap: 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.12);
    padding: 0 8px;
  }
  .kpi-tab {
    padding: 12px 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5px;
    transition: color 0.15s ease, border-color 0.15s ease;
    user-select: none;
  }
  .kpi-tab:hover { color: #000; }
  .kpi-tab.active {
    color: #000;
    font-weight: 500;
    border-bottom-color: #B97373;
  }
  .kpi-pane { padding: 24px; }
  .kpi-pane-empty {
    padding: 80px 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
  }

  /* -------- Money Math sheet -------- */
  .mm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    background: #FAFAFA;
  }
  .mm-year-strip {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    background: #FFFFFF;
    align-items: center;
  }
  .mm-year-pill {
    padding: 6px 14px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    background: #FFFFFF;
    color: #000;
    user-select: none;
    transition: background 0.15s ease;
  }
  .mm-year-pill:hover { background: #FDF0F0; }
  .mm-year-pill.active {
    background: #E4C5C5;
    border-color: #C9A8A8;
    font-weight: 500;
  }
  .mm-year-pill.add { color: #999; border-style: dashed; }
  .mm-year-pill.add:hover { color: #000; background: #F1DADA; }
  .mm-toolbar-left { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #666; }
  .mm-toolbar-right { display: flex; gap: 6px; }
  .mm-btn {
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    color: #000;
    font-family: inherit;
    transition: background 0.15s ease;
  }
  .mm-btn:hover { background: #F1DADA; }
  .mm-btn.primary { background: #E4C5C5; border-color: #C9A8A8; }
  .mm-btn.primary:hover { background: #D9B8B8; }

  .mm-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }
  .mm-table {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: 100%;
    font-size: 12px;
  }
  .mm-table th, .mm-table td {
    border-right: 0.5px solid rgba(0,0,0,0.08);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    padding: 0;
    vertical-align: middle;
    background: #FFFFFF;
    white-space: nowrap;
  }
  .mm-table th:last-child, .mm-table td:last-child { border-right: none; }

  /* Header row (months) */
  .mm-table thead th {
    background: #F5F5F5;
    font-weight: 500;
    color: #000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .mm-table thead th.mm-corner {
    text-align: left;
    background: #EEEEEE;
    min-width: 220px;
    width: 220px;
    position: sticky;
    left: 0;
    z-index: 3;
  }
  .mm-table thead th.mm-month-cell {
    min-width: 88px;
  }
  .mm-table thead th.mm-yearend-cell {
    min-width: 110px;
    background: #E4C5C5;
    color: #000;
  }
  .mm-cell.mm-yearend {
    background: #E4C5C5;
    font-weight: 500;
    color: #000;
  }

  /* Section header rows */
  .mm-section-spacer td {
    background: #FAFAFA !important;
    height: 16px;
    padding: 0;
    border-right: none;
    border-bottom: none;
  }
  .mm-section-spacer td.mm-row-label {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #FAFAFA !important;
  }
  .mm-section-row td {
    background: #E4C5C5 !important;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    padding: 8px 12px;
  }
  .mm-section-row td.mm-row-label {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  /* Data rows */
  .mm-row-label {
    padding: 9px 12px;
    text-align: left;
    font-size: 12px;
    color: #000;
    background: #FAFAFA;
    min-width: 220px;
    width: 220px;
    position: sticky;
    left: 0;
    z-index: 1;
  }
  .mm-row-label.mm-calc { color: #000; font-style: normal; background: #F1DADA; }
  .mm-row-label .mm-row-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 10px;
    color: #999;
    font-style: normal;
  }
  .mm-row-label .mm-row-actions {
    float: right;
    color: #BBB;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    visibility: hidden;
  }
  .mm-table tr:hover .mm-row-actions { visibility: visible; }
  .mm-row-actions:hover { color: #B71C1C; }

  /* Editable cells */
  .mm-cell {
    padding: 9px 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    cursor: text;
    min-width: 110px;
  }
  .mm-cell.mm-input { background: #FFFFFF; }
  .mm-cell.mm-input:hover { background: #FFFEF5; }
  .mm-cell.mm-input:focus {
    background: #FFFEF5;
    outline: 2px solid #B97373;
    outline-offset: -2px;
  }
  .mm-cell.mm-calc {
    background: #F1DADA;
    color: #000;
    cursor: not-allowed;
  }
  .mm-cell.mm-kpi-good { color: #1B5E20; }
  .mm-cell.mm-kpi-bad { color: #B71C1C; }

  /* Calc cells with rose tint stripped (Haley's, Processing) */
  .mm-cell.mm-calc.mm-untinted,
  .mm-row-label.mm-calc.mm-untinted {
    background: #FFFFFF;
  }

  /* Summary / total rows: bold black label and bold numbers, no italic */
  .mm-row-label.mm-summary {
    color: #000;
    font-weight: 500;
    font-style: normal;
  }
  .mm-cell.mm-summary {
    font-weight: 500;
    color: #000;
  }
  /* Summary cell still respects KPI coloring */
  .mm-cell.mm-summary.mm-kpi-good { color: #1B5E20; }
  .mm-cell.mm-summary.mm-kpi-bad { color: #B71C1C; }

  /* Stronger divider line under specified rows */
  .mm-row-divider td { border-bottom: 1px solid rgba(0,0,0,0.5); }

  /* Gap row (blank breathing space between subsections) */
  .mm-row-gap td {
    background: #FAFAFA !important;
    height: 12px;
    padding: 0;
    border-right: none;
    border-bottom: none;
  }
  .mm-row-gap td.mm-row-label {
    position: sticky; left: 0; z-index: 1;
    background: #FAFAFA !important;
  }

  /* Add row button */
  .mm-add-row-btn {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    color: #999;
    cursor: pointer;
    background: #FAFAFA;
  }
  .mm-add-row-btn:hover { background: #F1DADA; color: #000; }

  /* Editing state */
  [contenteditable="true"]:focus {
    outline: 2px solid #B97373;
    outline-offset: -2px;
    background: #FFFEF5 !important;
  }

  /* -------- Page Header (Dashboard) -------- */
  .page-header {
    background: #E4C5C5;
    padding: 16px 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .page-header-left .title { font-size: 22px; font-weight: 500; color: #000; }
  .page-header-left .date-sub { font-size: 13px; color: #000; margin-top: 3px; }
  .search-bar {
    width: 260px;
    background: #F1DADA;
    border: 1px solid #C9A8A8;
    border-radius: 4px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .search-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
  .search-bar input {
    border: none;
    outline: none;
    background: #F1DADA;
    width: 100%;
    font-size: 13px;
    color: #000;
    font-family: inherit;
  }
  .search-bar input::placeholder { color: #000; opacity: 1; }

  /* -------- Category Boxes -------- */
  .categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 16px;
  }
  .category-box {
    padding: 14px 10px;
    border-radius: 4px;
    border: 1.5px solid;
    cursor: pointer;
    transition: filter 0.15s ease;
    user-select: none;
  }
  .category-box:hover { filter: brightness(1.06); }
  .category-box.selected { outline: 3px solid #000; outline-offset: 2px; }
  .category-box .label { font-size: 12px; font-weight: 500; }
  .category-box .number { font-size: 26px; font-weight: 500; margin-top: 4px; }

  .cat-active { background: #E8F5E9; border-color: #A5D6A7; color: #1B5E20; }
  .cat-longterm { background: #E3F2FD; border-color: #90CAF9; color: #1565C0; }
  .cat-attention { background: #FFFDE7; border-color: #FFF176; color: #F57F17; }
  .cat-flagged { background: #FFEBEE; border-color: #EF9A9A; color: #B71C1C; }
  .cat-past { background: #F5F5F5; border-color: #E0E0E0; color: #546E7A; }

  /* -------- Client List -------- */
  .client-list { margin-top: 16px; }
  .week-group { margin-bottom: 8px; border-radius: 4px; overflow: hidden; }
  .week-header {
    background: #E4C5C5;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
  }
  .week-header:hover { background: #D9B8B8; }
  .week-header .week-title {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .week-header .week-title .chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
  }
  .week-header.collapsed .chevron { transform: rotate(-90deg); }
  .week-header .week-count { font-size: 12px; color: #000; }
  .week-body { background: #FFFFFF; }

  .client-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-top: 0.5px solid rgba(0,0,0,0.12);
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .client-row:hover { background: #FDF0F0; }
  .avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
  }
  .avatar-active { background: #C8E6C9; color: #1B5E20; }
  .avatar-attention { background: #FFF9C4; color: #F57F17; }
  .avatar-flagged { background: #FFCDD2; color: #B71C1C; }
  .avatar-past { background: #ECEFF1; color: #37474F; }
  /* Past-client outcome variants */
  .avatar-completed { background: #C8E6C9; color: #1B5E20; }
  .avatar-ghosted { background: #E1BEE7; color: #4A148C; }
  .avatar-quit { background: #FFCDD2; color: #B71C1C; }

  .client-info { flex: 1; min-width: 0; }
  .client-info .name { font-size: 14px; font-weight: 500; color: #000; }
  .client-info .dates { font-size: 12px; color: #000; margin-top: 2px; }

  .client-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  .stat-item { text-align: right; }
  .stat-item .stat-label { font-size: 11px; font-weight: 500; color: #000; }
  .stat-item .stat-value { font-size: 13px; font-weight: 500; }

  .status-badge {
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
  }
  .badge-active { background: #E8F5E9; color: #1B5E20; }
  .badge-attention { background: #FFFDE7; color: #F57F17; }
  .badge-flagged { background: #FFEBEE; color: #B71C1C; }
  /* Past-client outcome badges */
  .badge-completed { background: #E8F5E9; color: #1B5E20; }
  .badge-ghosted { background: #F3E5F5; color: #4A148C; }
  .badge-quit { background: #FFEBEE; color: #B71C1C; }

  /* Payment tag in profile header (Active clients) */
  .payment-tag {
    display: inline-block;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: middle;
  }
  .payment-tag.paid { background: #E8F5E9; color: #1B5E20; }
  .payment-tag.plan { background: #FFFDE7; color: #F57F17; }
  .payment-tag.hidden { display: none; }

  .text-active { color: #1B5E20; }
  .text-attention { color: #F57F17; }
  .text-flagged { color: #B71C1C; }
  .text-longterm { color: #1565C0; }
  .text-past { color: #546E7A; }

  /* -------- Profile Page -------- */
  .back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #000;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 12px;
    font-family: inherit;
    transition: opacity 0.15s ease;
  }
  .back-button:hover { opacity: 0.7; }
  .back-button svg { width: 14px; height: 14px; }

  .profile-header {
    background: #E4C5C5;
    padding: 20px 24px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .profile-header-left { display: flex; align-items: center; gap: 14px; }
  .profile-avatar {
    width: 52px; height: 52px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 18px;
  }
  .profile-name { font-size: 20px; font-weight: 500; color: #000; }
  .profile-subline { font-size: 13px; color: #000; margin-top: 2px; }
  .profile-badge {
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
  }

  /* -------- Sections -------- */
  .section { margin-top: 16px; border-radius: 4px; overflow: hidden; background: #FFFFFF; border: 0.5px solid rgba(0,0,0,0.08); }
  .section-title-bar {
    background: #E4C5C5;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #000;
  }
  .section-body { padding: 16px; }

  /* -------- Weight Cards -------- */
  .weight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .weight-card {
    background: #F9F4F4;
    border: 1px solid #E4D0D0;
    border-radius: 4px;
    padding: 14px 12px;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .weight-card.editable { cursor: text; }
  .weight-card.editable:hover {
    background: #F1DADA;
    border-color: #A88080;
  }
  .weight-card.readonly {
    background: #F1DADA;
    border-color: #C9A8A8;
  }
  .weight-card .card-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    margin-bottom: 6px;
  }
  .weight-card .big-num {
    font-size: 22px;
    font-weight: 500;
    color: #000;
    background: transparent;
    border: none;
    width: 100%;
    text-align: center;
    outline: none;
    font-family: inherit;
    -moz-appearance: textfield;
  }
  .weight-card .big-num::-webkit-outer-spin-button,
  .weight-card .big-num::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
  }
  .weight-card .auto-note {
    font-size: 10px;
    font-style: italic;
    color: #8A5A5A;
    margin-top: 4px;
  }

  /* -------- Compliance Section -------- */
  .compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .compliance-box {
    background: #F9F4F4;
    border: 1px solid #E4D0D0;
    border-radius: 4px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .compliance-box:hover {
    background: #F1DADA;
    border-color: #A88080;
  }
  .compliance-box .label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    margin-bottom: 6px;
  }
  .compliance-box .big-number {
    font-size: 28px;
    font-weight: 500;
  }

  .checkin-divider {
    height: 0.5px;
    background: rgba(0,0,0,0.12);
    margin: 16px 0 12px;
  }
  .checkin-label {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
  }
  .checkin-dots {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
  }
  .checkin-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 32px;
  }
  .checkin-dot .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  .dot-completed { background: #C8E6C9; border-color: #A5D6A7; color: #1B5E20; }
  .dot-missed { background: #FFCDD2; border-color: #EF9A9A; color: #B71C1C; }
  .dot-upcoming { background: #F1DADA; border-color: #E4D0D0; color: #8A5A5A; }
  .checkin-dot .week-num { font-size: 8px; font-weight: 500; color: #000; }
  .auto-pop-note {
    font-size: 11px;
    font-style: italic;
    color: #8A5A5A;
    margin-top: 8px;
    text-align: center;
  }

  /* -------- Program Details -------- */
  .program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .program-field { display: flex; flex-direction: column; gap: 4px; }
  .program-field .field-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
  }
  .program-field input {
    padding: 9px 11px;
    border: 1px solid #C9A8A8;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 13px;
    font-family: inherit;
    color: #000;
    outline: none;
  }
  .program-field input.readonly {
    background: #F1DADA;
    cursor: default;
  }
  .program-field input:focus:not(.readonly) {
    border-color: #A88080;
  }
  .program-field .field-note {
    font-size: 11px;
    font-style: italic;
    color: #8A5A5A;
  }
  .program-bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 0.5px solid rgba(0,0,0,0.12);
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }
  .program-bottom .sales-call { flex: 1; }
  .testimonials { display: flex; flex-direction: column; gap: 8px; }
  .testimonials label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #000;
    cursor: pointer;
  }
  .testimonials input[type="checkbox"] {
    accent-color: #A88080;
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  /* -------- Buttons (Meal/Fitness Plan) -------- */
  .btn-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .opt-btn {
    background: #F9F9F9;
    border: 1.5px solid #C9A8A8;
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .opt-btn:hover {
    background: #F1DADA;
    border-color: #A88080;
  }
  .opt-btn.selected {
    background: #E4C5C5;
    border-color: #A88080;
  }
  .opt-btn.selected:hover {
    background: #F1DADA;
    border-color: #A88080;
  }

  /* Outcome buttons (Past Client profile) — selected state takes the outcome color */
  .opt-btn.outcome-completed.selected {
    background: #C8E6C9; border-color: #1B5E20; color: #1B5E20;
  }
  .opt-btn.outcome-completed.selected:hover {
    background: #C8E6C9; border-color: #1B5E20;
  }
  .opt-btn.outcome-ghosted.selected {
    background: #E1BEE7; border-color: #4A148C; color: #4A148C;
  }
  .opt-btn.outcome-ghosted.selected:hover {
    background: #E1BEE7; border-color: #4A148C;
  }
  .opt-btn.outcome-quit.selected {
    background: #FFCDD2; border-color: #B71C1C; color: #B71C1C;
  }
  .opt-btn.outcome-quit.selected:hover {
    background: #FFCDD2; border-color: #B71C1C;
  }
  .field-label-static {
    font-size: 12px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    display: block;
  }

  /* -------- Notes Textarea -------- */
  .notes-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #C9A8A8;
    border-radius: 4px;
    background: #F9F9F9;
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
    font-size: 13px;
    color: #000;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .notes-textarea:focus {
    border-color: #A88080;
    background: #FFFFFF;
  }

  /* -------- Status Dropdown -------- */
  .status-select {
    max-width: 260px;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #C9A8A8;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 13px;
    font-family: inherit;
    color: #000;
    cursor: pointer;
    outline: none;
  }

  /* -------- Actions Bar -------- */
  .actions-bar {
    background: #E4C5C5;
    padding: 16px 24px;
    border-radius: 4px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .action-btn {
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.15s ease;
  }
  .action-btn:hover { opacity: 0.85; }
  .btn-save { background: #000000; color: #FFFFFF; }
  .btn-save.saved { background: #1B5E20; }
  .btn-message { background: #F1DADA; border-color: #C9A8A8; color: #000; }
  .btn-flag { background: #FFEBEE; border-color: #EF9A9A; color: #B71C1C; }
  .btn-flag.unflagged { background: #E8F5E9; border-color: #A5D6A7; color: #1B5E20; }
  .action-btn svg { width: 14px; height: 14px; }

  /* -------- Detail Page Common -------- */
  .detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
  }
  .detail-stat-card {
    background: #F9F4F4;
    border: 1px solid #E4D0D0;
    border-radius: 4px;
    padding: 14px;
    text-align: center;
  }
  .detail-stat-card .stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    margin-bottom: 6px;
  }
  .detail-stat-card .stat-value {
    font-size: 24px;
    font-weight: 500;
  }

  .week-block {
    border: 0.5px solid #C9A8A8;
    border-radius: 4px;
    margin-top: 16px;
    overflow: hidden;
  }
  .week-block-header {
    background: #E4C5C5;
    padding: 10px 16px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .week-block-header .left { font-weight: 500; color: #000; }
  .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }
  .day-cell {
    padding: 10px 6px;
    border-right: 0.5px solid rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .day-cell:last-child { border-right: none; }
  .day-cell:hover { background: #F1DADA; }
  .day-cell .day-name { font-size: 10px; color: #000; }
  .day-cell .day-date { font-size: 11px; color: #000; margin-top: 2px; }
  .day-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 6px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
  }

  /* Settings bar (step / fitness / water) */
  .settings-bar {
    background: #F9F4F4;
    border: 1px solid #E4D0D0;
    border-radius: 4px;
    padding: 14px 20px;
    margin-top: 16px;
    display: inline-block;
  }
  .settings-bar.full-width {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .settings-bar .setting-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .settings-bar .setting-row + .setting-row { margin-top: 8px; }
  .settings-bar label { font-size: 13px; font-weight: 500; color: #000; }
  .settings-bar input {
    border: 1px solid #C9A8A8;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
    color: #000;
    outline: none;
    text-align: center;
  }

  /* Step bars */
  .step-bar-wrap {
    height: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 6px auto 4px;
  }
  .step-bar {
    width: 18px;
    border-radius: 2px 2px 0 0;
  }
  .step-count { font-size: 11px; font-weight: 500; }

  .week-goal-input {
    border: 1px solid #C9A8A8;
    background: #F1DADA;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 12px;
    width: 80px;
    font-family: inherit;
    color: #000;
    outline: none;
    text-align: center;
  }

  /* Fitness table */
  .fitness-table { margin-top: 16px; border: 0.5px solid #C9A8A8; border-radius: 4px; overflow: hidden; }
  .fitness-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 110px 60px;
    align-items: center;
    padding: 12px 16px;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    gap: 12px;
  }
  .fitness-row.header {
    background: #E4C5C5;
    padding: 10px 16px;
    border-top: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .fitness-row.alt { background: #F1DADA; }
  .fitness-row .week-cell .week-name { font-size: 13px; font-weight: 500; }
  .fitness-row .week-cell .week-date { font-size: 11px; color: #000; opacity: 0.7; }
  .fitness-row .center { text-align: center; font-weight: 500; }
  .progress-dots-row { display: flex; gap: 4px; justify-content: center; }
  .progress-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500;
    border: 1px solid;
  }
  .rate-cell { text-align: center; font-weight: 500; }

  .saved-toast {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    color: #1B5E20;
    font-size: 12px;
    font-weight: 500;
  }

  /* ============================================================
     HOME DASHBOARD (hero, stat cards, metric cards, tables)
     ============================================================ */
  .topbar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 22px 28px 0; }
  .search-topbar { display: flex; align-items: center; gap: 8px; background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 10px; padding: 9px 14px; font-size: 13px; color: var(--ffl-text-muted); width: 250px; }
  .search-topbar svg { width: 15px; height: 15px; flex: none; stroke-width: 1.8; }
  .bell { position: relative; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
  .bell svg { width: 19px; height: 19px; color: var(--ffl-text); stroke-width: 1.8; }
  .bell i { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 999px; background: var(--ffl-danger); border: 1.5px solid var(--ffl-bg); }
  .who-chip { display: flex; align-items: center; gap: 9px; }
  .who-chip .avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--ffl-icon-blush); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--ffl-icon-fg); }
  .who-chip .name { font-weight: 600; font-size: 14px; color: var(--ffl-text); }
  .who-chip svg { width: 13px; height: 13px; color: var(--ffl-text-muted); stroke-width: 2; }

  /* Every redesigned page wraps its content in .page-content so it gets the
     same side margins as the Dashboard (.home-content is the Dashboard's). */
  .home-content, .page-content { padding: 18px 28px 30px; }

  .hero {
    position: relative; border-radius: var(--ffl-radius-lg); overflow: hidden; padding: 34px 40px;
    color: #131312; margin-bottom: 20px; height: 240px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
  }
  .hero svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
  .hero-text { flex: 1 1 320px; min-width: 0; position: relative; z-index: 2; }
  .hero .eyebrow2 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: #2B2422; }
  .hero h2 { font-size: 52px; font-weight: 700; margin: 6px 0 10px; text-wrap: balance; line-height: 1.0; color: #171110; }
  .hero p { font-size: 20px; font-weight: 400; margin: 0; color: #3A322F; white-space: nowrap; }

  .stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
  @media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
  .stat-card { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: var(--ffl-radius-md); padding: 20px; display: flex; gap: 14px; box-shadow: var(--ffl-shadow); }
  .stat-icon { width: 56px; height: 56px; border-radius: 999px; background: var(--ffl-icon-blush); color: var(--ffl-icon-fg); display: flex; align-items: center; justify-content: center; flex: none; }
  .stat-icon.bad { background: var(--ffl-danger-bg); color: var(--ffl-danger); }
  .stat-icon.info { background: var(--ffl-info-bg); color: var(--ffl-info); }
  .stat-icon.good { background: var(--ffl-success-bg); color: var(--ffl-success); }
  .stat-icon.loyalty { background: var(--ffl-loyalty-bg); color: var(--ffl-loyalty); }
  .stat-icon.yellow { background: var(--ffl-yellow-bg); color: var(--ffl-yellow); }
  .stat-icon.warn { background: var(--ffl-warning-bg); color: var(--ffl-warning); }
  .stat-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
  .stat-body .label { font-size: 15px; color: var(--ffl-text); }
  .stat-body .value { font-size: 30px; font-weight: 700; margin-top: 4px; color: var(--ffl-text); }
  .stat-trend { font-size: 13px; margin-top: 5px; display: flex; align-items: center; gap: 5px; color: var(--ffl-text-muted); }
  .stat-trend .up { color: var(--ffl-success); font-weight: 600; }
  .stat-trend .down { color: var(--ffl-danger); font-weight: 600; }

  .metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
  @media (max-width: 1100px) { .metric-row { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .metric-row { grid-template-columns: 1fr; } }
  .metric-card { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: var(--ffl-radius-md); padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--ffl-shadow); }
  .metric-icon { width: 46px; height: 46px; border-radius: 999px; background: var(--ffl-icon-blush); color: var(--ffl-icon-fg); display: flex; align-items: center; justify-content: center; flex: none; }
  .metric-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
  .metric-icon.warn { background: var(--ffl-warning-bg); color: var(--ffl-warning); }
  .metric-icon.good { background: var(--ffl-success-bg); color: var(--ffl-success); }
  .metric-icon.info { background: var(--ffl-info-bg); color: var(--ffl-info); }
  .metric-icon.yellow { background: var(--ffl-yellow-bg); color: var(--ffl-yellow); }
  .metric-icon.gray { background: var(--ffl-gray-icon-bg); color: var(--ffl-gray-icon); }
  .metric-body { flex: 1; min-width: 0; }
  .metric-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ffl-text-muted); }
  .metric-head .info { width: 14px; height: 14px; border-radius: 999px; border: 1.4px solid var(--ffl-text-muted); color: var(--ffl-text-muted); font-size: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
  .metric-value { font-size: 24px; font-weight: 700; margin-top: 4px; color: var(--ffl-text); }
  .metric-trend { font-size: 12.5px; margin-top: 3px; color: var(--ffl-text-muted); }
  .metric-trend .up { color: var(--ffl-success); font-weight: 600; }
  .metric-trend .down { color: var(--ffl-danger); font-weight: 600; }
  .spark { width: 90px; height: 36px; flex: none; }

  .panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 980px) { .panel-row { grid-template-columns: 1fr; } }
  .panel { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: var(--ffl-radius-md); overflow: hidden; box-shadow: var(--ffl-shadow); }
  .panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; }
  .panel-head h3 { font-size: 19px; font-weight: 700; margin: 0; color: var(--ffl-text); }
  .panel-head a { font-size: 13px; color: #C9584B; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; }
  .table-scroll { overflow-x: auto; }
  .t-head, .t-row { display: grid; grid-template-columns: 1.4fr .9fr .9fr .9fr; gap: 10px; align-items: center; min-width: 460px; padding: 12px 20px; }
  .t-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; color: var(--ffl-text-muted); border-top: var(--ffl-border-width) solid var(--ffl-border); background: var(--ffl-surface-subtle); }
  .t-row { border-top: var(--ffl-border-width) solid var(--ffl-border); font-size: 13.5px; color: var(--ffl-text-muted); }
  .who2 { display: flex; align-items: center; gap: 10px; }
  .who2 .avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--ffl-icon-blush); color: var(--ffl-icon-fg); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
  .who2 .name { font-weight: 500; color: var(--ffl-text); }
  .pill { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 500; width: fit-content; white-space: nowrap; }
  .pill.bad { background: var(--ffl-danger-bg); color: var(--ffl-danger); }
  .pill.warn { background: var(--ffl-warning-bg); color: var(--ffl-warning); }
  .pill.good { background: var(--ffl-success-bg); color: var(--ffl-success); }
  .pill.neutral { background: var(--ffl-surface-subtle); color: var(--ffl-text-muted); border: 1px solid var(--ffl-border); }
  .pill.yellow { background: var(--ffl-yellow-bg); color: var(--ffl-yellow); }
  .panel-footnote { padding: 10px 20px; font-size: 11.5px; color: var(--ffl-text-muted); border-top: var(--ffl-border-width) solid var(--ffl-border); }

  /* ---------- onboarding page ---------- */
  .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 10px 0 16px; }
  .page-head h1 { font-size: 22px; font-weight: 700; margin: 0; color: var(--ffl-text); }
  .page-head p { font-size: 13px; color: var(--ffl-text-muted); margin: 4px 0 0; }
  /* Denser stat cards on every .page-content page -- the Dashboard keeps its larger ones. */
  .page-content .stat-row { margin-bottom: 16px; }
  .page-content .stat-card { padding: 14px 16px; gap: 12px; }
  .page-content .stat-icon { width: 44px; height: 44px; }
  .page-content .stat-icon svg { width: 20px; height: 20px; }
  .page-content .stat-body .label { font-size: 13px; }
  .page-content .stat-body .value { font-size: 24px; margin-top: 2px; }
  .btn-primary {
    display: flex; align-items: center; gap: 8px; background: var(--ffl-brand-blush); color: #fff; border: none;
    border-radius: 10px; padding: 12px 18px; font-family: var(--ffl-font); font-size: 14px; font-weight: 600;
    cursor: pointer; box-shadow: var(--ffl-shadow); flex: none; white-space: nowrap;
  }
  .btn-primary svg { width: 17px; height: 17px; stroke-width: 2.2; }

  .btn-primary:disabled { opacity: .6; cursor: default; }
  .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ffl-danger); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
  .nav-badge.hidden { display: none; }
  .nav-item.disabled .nav-badge { opacity: 1; }
  .row-menu { position: absolute; z-index: 300; min-width: 200px; background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; }
  .row-menu.hidden { display: none; }
  .row-menu-name { font-size: 11.5px; color: var(--ffl-text-muted); padding: 6px 10px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: none; background: transparent; border-radius: 7px; font-family: var(--ffl-font); font-size: 13px; color: var(--ffl-text); cursor: pointer; text-align: left; }
  .row-menu-item svg { width: 15px; height: 15px; stroke-width: 1.9; }
  .row-menu-item:hover { background: var(--ffl-surface-subtle); }
  .row-menu-item.danger { color: var(--ffl-danger); }
  .row-menu-item.danger:hover { background: var(--ffl-danger-bg); }
  .save-status { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border: var(--ffl-border-width) solid var(--ffl-border); }
  .save-status svg { width: 14px; height: 14px; }
  .save-status .when { font-weight: 400; opacity: .8; }
  .save-status.saved { color: var(--ffl-success); background: var(--ffl-success-bg); border-color: transparent; }
  .save-status.saving { color: var(--ffl-text-muted); }
  .save-status.saving .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ffl-brand-blush); animation: save-pulse 1s ease-in-out infinite; }
  .save-status.failed { color: var(--ffl-danger); background: var(--ffl-danger-bg); border-color: transparent; }
  @keyframes save-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
  .topbar-add { padding: 9px 14px; font-size: 13.5px; border-radius: 9px; margin-left: 4px; }
  .topbar-add svg { width: 15px; height: 15px; }
  .modal { max-width: 560px; }
  .modal .form-row .form-field { flex: 1 1 0; }
  .btn-secondary {
    display: flex; align-items: center; gap: 8px; background: var(--ffl-surface); color: var(--ffl-text);
    border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 10px; padding: 12px 18px;
    font-family: var(--ffl-font); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .btn-secondary:hover { background: var(--ffl-surface-subtle); }

  /* ---------- modal (Add New Client) ---------- */
  .modal-backdrop {
    position: fixed; inset: 0; background: rgba(19, 19, 18, .45); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 20px;
  }
  .modal-backdrop.hidden { display: none; }
  .modal {
    background: var(--ffl-surface); border-radius: var(--ffl-radius-lg); width: 100%; max-width: 460px;
    padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 16px;
  }
  .modal-head h2 { font-size: 18px; font-weight: 700; margin: 0; color: var(--ffl-text); }
  .modal-head p { font-size: 13px; color: var(--ffl-text-muted); margin: 4px 0 0; }
  .form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
  .form-field label { font-size: 12.5px; font-weight: 600; color: var(--ffl-text); }
  .form-field label .optional { font-weight: 400; color: var(--ffl-text-muted); }
  .form-field input, .form-field select {
    font-family: var(--ffl-font); font-size: 14px; color: var(--ffl-text); background: var(--ffl-surface-subtle);
    border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 42px;
  }
  .form-field input:focus, .form-field select:focus { outline: 2px solid var(--ffl-brand-blush); outline-offset: 1px; border-color: transparent; }
  .form-row { display: flex; gap: 14px; }
  .form-row > .form-field { flex: 1 1 0; min-width: 0; }
  .form-row.three > .form-field input, .form-row.three > .form-field select { width: 100%; }
  .date-field { position: relative; display: flex; align-items: center; }
  .date-field input[type="text"] { padding-right: 40px; }
  .date-field svg { position: absolute; right: 12px; width: 18px; height: 18px; stroke-width: 1.8; color: var(--ffl-text-muted); pointer-events: none; }
  /* the native picker sits invisibly over the calendar icon so a click opens it */
  .date-field input[type="date"] { position: absolute; right: 0; top: 0; width: 42px; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: none; min-height: 0; }
  .date-field input[type="date"]::-webkit-calendar-picker-indicator { width: 100%; height: 100%; cursor: pointer; }
  .form-hint { font-size: 12px; color: var(--ffl-text-muted); }
  .form-hint.warn { color: var(--ffl-warning); }
  .form-error { font-size: 13px; color: var(--ffl-danger); background: var(--ffl-danger-bg); border-radius: 8px; padding: 10px 12px; }
  .form-error.hidden { display: none; }
  .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
  @media (max-width: 520px) { .form-row { flex-direction: column; } }

  /* ---------- Active / Long-Term / Past tables: same tight scale as Client LTV ---------- */
  .acl-head, .acl-row {
    display: grid; grid-template-columns: 236px 112px 136px 156px 124px 124px 112px 138px minmax(124px, 1fr) 40px;
    align-items: center; min-width: 1302px;
  }
  .acl-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-bottom: var(--ffl-border-width) solid var(--ffl-border); }
  .acl-head > div { padding: 8px 10px; min-height: 38px; display: flex; align-items: center; justify-content: center; text-align: center; gap: 6px; white-space: nowrap; }
  .acl-head > div:first-child { justify-content: flex-start; text-align: left; padding-left: 14px; }
  .acl-head > div svg { width: 12px; height: 12px; stroke-width: 2.2; color: var(--ffl-text); }
  .acl-head > div.sortable { cursor: pointer; user-select: none; }
  .acl-head > div svg.up { transform: rotate(180deg); }
  .acl-row { border-top: var(--ffl-border-width) solid var(--ffl-border); }
  .acl-row:first-child { border-top: none; }
  .acl-row > div { padding: 8px 8px; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--ffl-text); white-space: nowrap; min-width: 0; overflow: hidden; }
  .acl-row > div:has(> .pill), .acl-head > div.status { padding-left: 14px; padding-right: 14px; overflow: visible; }
  .acl-row > div:first-child { justify-content: flex-start; text-align: left; padding-left: 14px; }
  .acl-row > div:nth-child(n+4) { border-left: var(--ffl-border-width) solid var(--ffl-border-soft); }
  .acl-row > div:last-child { border-left: none; padding: 0 4px; }
  .acl-row .onb-who { width: 100%; gap: 8px; }
  .acl-row .onb-who-text { min-width: 0; flex: 1; }
  .acl-row .onb-avatar { width: 30px; height: 30px; font-size: 10.5px; }
  .acl-row .onb-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .acl-row .onb-email { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .acl-empty { padding: 20px 16px; color: var(--ffl-text-muted); font-size: 13px; }
  .acl-progress { gap: 8px; }
  .acl-progress .onb-progress-track { width: 64px; flex: none; }
  .acl-progress .num { font-weight: 600; font-size: 12px; }
  .onb-progress-fill.neutral { background: var(--ffl-gray-icon); }
  .acl-weight { gap: 4px; color: var(--ffl-success); font-weight: 500; }
  .acl-weight svg { width: 13px; height: 13px; stroke-width: 2.2; }
  .acl-muted { color: var(--ffl-text-muted); }
  /* Long-Term's editable weeks box (Active shows "Week N of 16") */
  .acl-weeks { gap: 5px; }
  .acl-weeks input {
    width: 40px; min-width: 0; flex: 0 1 auto; height: 30px; padding: 0 4px; text-align: center; font-family: var(--ffl-font); font-size: 12px; font-weight: 600; color: var(--ffl-text);
    background: var(--ffl-surface-subtle); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; -moz-appearance: textfield;
  }
  .acl-weeks input::-webkit-outer-spin-button, .acl-weeks input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .acl-weeks input:focus { outline: 2px solid var(--ffl-brand-blush); outline-offset: 1px; border-color: transparent; }
  .acl-weeks .unit { font-size: 11px; color: var(--ffl-text-muted); }
  .acl-week { font-size: 12px; font-weight: 600; color: var(--ffl-text); white-space: nowrap; }
  .acl-week .of { font-weight: 400; color: var(--ffl-text-muted); }
  /* Past Clients: one column fewer (no editable weeks box). */
  .acl-head.pcl, .acl-row.pcl { grid-template-columns: 236px 112px 156px 124px 124px 112px minmax(124px, 1fr) 40px; min-width: 1028px; }
  .pcl-month { min-width: 1028px; }

  /* ---------- Payment Schedule (from payment_schedule_mockup.html) ---------- */
  .ps-section { margin-bottom: 18px; }
  .ps-section-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font-size: 15px; font-weight: 600; color: var(--ffl-text); }
  .ps-section-head .n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ffl-danger); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
  .ps-section-head .n.ok { background: var(--ffl-success-bg); color: var(--ffl-success); }
  .ps-sub { font-weight: 400; font-size: 13px; color: var(--ffl-text-muted); }
  .ps-grid { display: grid; grid-template-columns: 210px 118px 118px 118px 126px minmax(120px, 1fr) minmax(170px, max-content) 40px; min-width: 100%; width: max-content; }
  .ps-row > div:last-child { border-left: none; padding: 0 4px; }
  .ps-head, .ps-row, .ps-rows { display: contents; }
  .ps-head > div { padding: 8px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-bottom: var(--ffl-border-width) solid var(--ffl-border); display: flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 38px; }
  .ps-row > div { padding: 8px 10px; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12.5px; color: var(--ffl-text); white-space: nowrap; border-top: var(--ffl-border-width) solid var(--ffl-border); min-width: 0; overflow: hidden; }
  .ps-head > div:first-child, .ps-row > div:first-child { justify-content: flex-start; text-align: left; padding-left: 14px; }
  .ps-row > div:nth-child(n+2) { border-left: var(--ffl-border-width) solid var(--ffl-border-soft); }
  .ps-row.clickable > div { cursor: pointer; }
  .ps-row.clickable:hover > div { background: var(--ffl-surface-subtle); }
  .ps-row .onb-avatar { width: 30px; height: 30px; font-size: 10.5px; } .ps-row .onb-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; } .ps-row .onb-email { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .ps-row .onb-who { gap: 8px; width: 100%; } .ps-row .onb-who-text { min-width: 0; flex: 1; }
  .ps-owing { color: var(--ffl-danger); font-weight: 600; }
  .ps-empty { grid-column: 1 / -1; padding: 18px 16px; font-size: 13px; color: var(--ffl-text-muted); border-top: var(--ffl-border-width) solid var(--ffl-border); }
  .ps-dots { display: flex; gap: 5px; align-items: center; }
  .ps-dots i { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--ffl-border); background: var(--ffl-surface); display: inline-block; flex: none; }
  .ps-dots i.paid { background: var(--ffl-success); border-color: var(--ffl-success); }
  .ps-dots i.due { border-color: var(--ffl-warning); } .ps-dots i.late { background: var(--ffl-danger); border-color: var(--ffl-danger); }
  .ps-dots .lbl { font-size: 11.5px; color: var(--ffl-text-muted); margin-left: 4px; }
  .btn-small { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-family: var(--ffl-font); font-size: 12.5px; font-weight: 600; cursor: pointer; border: var(--ffl-border-width) solid var(--ffl-border); background: var(--ffl-surface); color: var(--ffl-text); white-space: nowrap; }
  .btn-small.primary { background: var(--ffl-brand-blush); color: #fff; border-color: transparent; }
  .btn-small svg { width: 14px; height: 14px; stroke-width: 2.2; }
  .btn-link { background: none; border: none; padding: 0; font-family: var(--ffl-font); font-size: 12px; color: var(--ffl-text-muted); text-decoration: underline; cursor: pointer; }
  .btn-link:hover { color: var(--ffl-danger); }
  .ps-detail { grid-column: 1 / -1; background: #FBF7F6; border-top: var(--ffl-border-width) solid var(--ffl-border); padding: 14px 18px 16px; }
  .ps-builder { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; margin-bottom: 12px; }
  .ps-builder .f { display: flex; flex-direction: column; gap: 5px; }
  .ps-builder label { font-size: 11.5px; font-weight: 600; color: var(--ffl-text-muted); text-transform: uppercase; letter-spacing: .04em; }
  .ps-builder .box { height: 34px; padding: 0 10px; border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; background: var(--ffl-surface); font-family: var(--ffl-font); font-size: 13px; font-weight: 600; color: var(--ffl-text); display: flex; align-items: center; gap: 8px; min-width: 110px; }
  .ps-builder input.box { width: 90px; text-align: center; }
  .ps-builder select.box { padding-right: 28px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
  .ps-builder .date-field.box { padding: 0; min-width: 170px; }
  .ps-builder .date-field.box input[type="text"] { border: none; background: transparent; height: 100%; padding: 0 40px 0 10px; font-family: var(--ffl-font); font-size: 13px; font-weight: 600; width: 100%; outline: none; }
  .ps-builder .ro { background: var(--ffl-surface-subtle); }
  .ps-builder .box.warn { color: var(--ffl-warning); }
  .ps-inst { display: grid; grid-template-columns: 60px 170px 170px 130px 1fr; background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 10px; overflow: hidden; }
  .ps-inst > div { padding: 8px 12px; font-size: 12.5px; border-top: var(--ffl-border-width) solid var(--ffl-border-soft); display: flex; align-items: center; gap: 8px; min-height: 42px; }
  .ps-inst > div.h { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-top: none; min-height: 34px; }
  .ps-inst input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ffl-brand-blush); margin: 0; cursor: pointer; }
  .ps-inst .ltv-input { width: 92px; }
  .ps-date-field { width: 150px; }
  .ps-date-field input.ps-date { width: 100%; padding-right: 34px; }
  .ps-date-field svg { right: 9px; width: 15px; height: 15px; }
  .ps-date-field input[type="date"] { width: 34px; }
  .ps-date { height: 30px; padding: 0 8px; border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; font-family: var(--ffl-font); font-size: 12px; background: var(--ffl-surface-subtle); color: var(--ffl-text); }
  .ps-actions { display: flex; gap: 10px; margin-top: 12px; }
  .ps-foot { font-size: 12px; color: var(--ffl-text-muted); margin-top: 10px; }

  /* ---------- Client LTV: collapsible year cards, one shared grid per year (from ltv_mockup.html) ---------- */
  .ltv-year { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: var(--ffl-radius-md); box-shadow: var(--ffl-shadow); margin-bottom: 14px; overflow: hidden; }
  .ltv-year-head {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; background: var(--ffl-surface); border: none; cursor: pointer;
    font-family: var(--ffl-font); text-align: left; color: var(--ffl-text);
  }
  .ltv-year-head:hover { background: var(--ffl-surface-subtle); }
  .ltv-year-head .chev { width: 18px; height: 18px; stroke-width: 2.2; color: var(--ffl-text-muted); transition: transform .15s ease; flex: none; }
  .ltv-year.open .ltv-year-head .chev { transform: rotate(90deg); }
  .ltv-year-line { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ffl-text); flex-wrap: wrap; }
  .ltv-year-line .dot { color: var(--ffl-text-muted); font-weight: 400; }
  .ltv-year-line b { font-weight: 600; }
  .ltv-year-totals { margin-left: auto; display: flex; gap: 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
  .ltv-year-body { display: none; border-top: var(--ffl-border-width) solid var(--ffl-border); }
  .ltv-year.open .ltv-year-body { display: block; }

  /* One grid for the header + every client row, so titles line up exactly with columns. */
  /* Name · Signed · [Weeks · Paid · Front End] · Resigned · [Weeks · Paid · Back End] · Re-Signed · [Weeks · Paid · Back End] · gap · Total Paid · Total Contracted · ••• */
  .ltv-grid { display: grid; grid-template-columns: 230px 104px 104px 66px 122px 142px 64px 66px 122px 142px 64px 66px 122px 142px 142px minmax(142px, 1fr) 56px; min-width: 1838px; }
  .acl-head.ltv, .acl-row.ltv { display: contents; }
  .acl-head.ltv > div { padding: 8px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-bottom: var(--ffl-border-width) solid var(--ffl-border); display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; white-space: nowrap; min-height: 38px; }
  .acl-row.ltv > div { padding: 8px 8px; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--ffl-text); white-space: nowrap; border-top: var(--ffl-border-width) solid var(--ffl-border); min-width: 0; overflow: hidden; }
  .acl-row.ltv > div:first-child { justify-content: flex-start; text-align: left; padding-left: 14px; }
  .acl-head.ltv > div:first-child { padding-left: 14px; }
  .acl-row.ltv > div:nth-child(n+2) { border-left: var(--ffl-border-width) solid var(--ffl-border-soft); }
  .acl-row.ltv > div:nth-child(4), .acl-row.ltv > div:nth-child(7), .acl-row.ltv > div:nth-child(8), .acl-row.ltv > div:nth-child(11), .acl-row.ltv > div:nth-child(12) { border-left: var(--ffl-border-width) solid var(--ffl-border); }
  /* The last contract cell closes with a full line on its right; the gap has no lines;
     Total Contracted and Total Paid each get lines on both sides so they read as boxes. */
  .acl-row.ltv > div:nth-child(14) { border-right: var(--ffl-border-width) solid var(--ffl-border); }
  .acl-row.ltv > div:nth-child(15), .acl-row.ltv > div:nth-child(16) { border-left: var(--ffl-border-width) solid var(--ffl-border); }
  .acl-row.ltv > div:nth-child(16) { border-right: var(--ffl-border-width) solid var(--ffl-border); }
  .acl-row.ltv > div:nth-child(17) { border-left: none; }
  .acl-row.ltv > div:last-child { padding: 0 4px; }
  .ltv-total-box { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; background: var(--ffl-surface); font-weight: 600; font-size: 12.5px; white-space: nowrap; width: 124px; justify-content: center; }
  /* the Paid tag sits at the right end of the name cell, floating so name/email never move */
  .ltv-who { position: relative; }
  .ltv-who.has-tag .onb-who-text { padding-right: 46px; }
  .ltv-paid-tag { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 22px; padding: 0 8px; font-size: 11px; }
  .acl-row.ltv .onb-who { width: 100%; gap: 8px; }
  .acl-row.ltv .onb-who-text { min-width: 0; flex: 1; }
  .acl-row.ltv .onb-avatar { width: 30px; height: 30px; font-size: 10.5px; }
  .acl-row.ltv .onb-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
  .acl-row.ltv .onb-email { font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
  .acl-month { min-width: 1302px; }   /* week group headers on the Active / Long-Term lists span the same width as the rows */
  .ltv-month { grid-column: 1 / -1; padding: 8px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ffl-icon-fg); background: #FBF7F6; border-top: var(--ffl-border-width) solid var(--ffl-border); }
  .ltv-weeks input { width: 46px; min-width: 46px; flex: 0 0 auto; height: 30px; padding: 0 4px; text-align: center; font-family: var(--ffl-font); font-size: 12px; font-weight: 600; color: var(--ffl-text); background: var(--ffl-surface-subtle); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; -moz-appearance: textfield; }
  .ltv-weeks input::-webkit-outer-spin-button, .ltv-weeks input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .ltv-weeks input:focus, .ltv-input:focus { outline: 2px solid var(--ffl-brand-blush); outline-offset: 1px; border-color: transparent; }
  .ltv-weeks .unit { font-size: 11px; color: var(--ffl-text-muted); margin-left: 4px; }
  .ltv-money .dollar { font-size: 12px; font-weight: 600; color: var(--ffl-text-muted); margin-right: 2px; }
  .ltv-input { width: 86px; min-width: 0; flex: 0 1 auto; height: 30px; padding: 0 6px; font-family: var(--ffl-font); font-size: 12px; font-weight: 600; color: var(--ffl-text); background: var(--ffl-surface-subtle); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; }
  .ltv-input::placeholder { color: var(--ffl-text-muted); font-weight: 400; }
  .ltv-cur { font-size: 11px; font-weight: 600; color: var(--ffl-text-muted); margin-left: 3px; letter-spacing: .04em; }
  .acl-row.ltv .ltv-cur { font-size: 10px; margin-left: 2px; }
  .ltv-check { width: 18px; height: 18px; accent-color: var(--ffl-brand-blush); margin: 0; cursor: pointer; }
  .acl-row.ltv:not(.resigned) .ltv-back > :not(.dash) { display: none; }
  .acl-row.ltv.resigned .ltv-back > .dash { display: none; }
  .acl-row.ltv:not(.resigned2) .ltv-back2 > :not(.dash) { display: none; }
  .acl-row.ltv.resigned2 .ltv-back2 > .dash { display: none; }
  .ltv-input { width: 80px; }
  .ltv-total-box { width: 92px; justify-content: center; }
  .ltv-total { font-weight: 600; font-size: 12px; gap: 0; }
  .pill.loyalty { background: var(--ffl-loyalty-bg); color: var(--ffl-loyalty); }
  #module-client-ltv .stat-body .value { font-size: 18px; white-space: nowrap; }
  #module-client-ltv .stat-card { min-width: 0; }
  #module-client-ltv .stat-body { min-width: 0; overflow: hidden; }

  /* Editable program length: a small number box; changing it recalculates the end date. */
  .acl-weeks { gap: 6px; }
  .acl-weeks input {
    width: 54px; height: 32px; padding: 0 6px; text-align: center; font-family: var(--ffl-font); font-size: 13px; font-weight: 600; color: var(--ffl-text);
    background: var(--ffl-surface-subtle); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px; -moz-appearance: textfield;
  }
  .acl-weeks input::-webkit-outer-spin-button, .acl-weeks input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .acl-weeks input:focus { outline: 2px solid var(--ffl-brand-blush); outline-offset: 1px; border-color: transparent; }
  .acl-weeks .unit { font-size: 12px; color: var(--ffl-text-muted); }
  .acl-week { font-size: 13px; font-weight: 600; color: var(--ffl-text); white-space: nowrap; }
  .acl-week .of { font-weight: 400; color: var(--ffl-text-muted); }
  .acl-override { margin-left: 6px; font-size: 10px; padding: 1px 7px; vertical-align: middle; }
  .acl-empty { padding: 20px 16px; color: var(--ffl-text-muted); font-size: 13px; }
  .acl-progress { gap: 10px; }
  .acl-progress .onb-progress-track { width: 70px; flex: none; }
  .acl-progress .num { font-weight: 600; font-size: 13px; }
  .onb-progress-fill.neutral { background: var(--ffl-gray-icon); }
  .acl-weight { gap: 5px; color: var(--ffl-success); font-weight: 500; }
  .acl-weight svg { width: 14px; height: 14px; stroke-width: 2.2; }
  .acl-muted { color: var(--ffl-text-muted); }

  .filter-bar {
    display: flex; align-items: center; gap: 12px; background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border);
    border-radius: var(--ffl-radius-md); padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--ffl-shadow); flex-wrap: wrap;
  }
  .filter-search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 180px; color: var(--ffl-text-muted); font-size: 13px; }
  .filter-search svg { width: 16px; height: 16px; flex: none; stroke-width: 1.8; }
  .filter-search input { border: none; outline: none; font-family: var(--ffl-font); font-size: 13.5px; color: var(--ffl-text); width: 100%; background: transparent; }
  .filter-search input::placeholder { color: var(--ffl-text-muted); }
  .filter-sep { width: 1px; align-self: stretch; background: var(--ffl-border); flex: none; }
  .filter-select {
    display: flex; align-items: center; gap: 6px; border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 8px;
    padding: 8px 12px; font-size: 13px; color: var(--ffl-text); background: var(--ffl-surface-subtle); flex: none;
    font-family: var(--ffl-font); cursor: pointer;
  }

  .onb-table { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: var(--ffl-radius-md); overflow: hidden; box-shadow: var(--ffl-shadow); }
  .onb-head, .onb-row {
    display: grid; grid-template-columns: 1.3fr .8fr 3fr .8fr 1.2fr .85fr .35fr;
    gap: 10px; align-items: center; min-width: 900px; padding: 10px 16px;
  }
  .onb-head > div { white-space: nowrap; }
  .onb-head { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-bottom: var(--ffl-border-width) solid var(--ffl-border); }
  .onb-row { border-top: var(--ffl-border-width) solid var(--ffl-border); }
  .onb-row:first-child { border-top: none; }

  .onb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .onb-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--ffl-icon-blush); color: var(--ffl-icon-fg); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
  .onb-who-text { min-width: 0; }
  .onb-name { font-weight: 600; font-size: 13.5px; color: var(--ffl-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .onb-email { font-size: 12px; color: var(--ffl-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .onb-progress-frac { font-size: 12.5px; font-weight: 600; color: var(--ffl-text); margin-bottom: 6px; }
  .onb-progress-track { height: 6px; border-radius: 999px; background: var(--ffl-border-soft); overflow: hidden; }
  .onb-progress-fill { height: 100%; border-radius: 999px; }
  .onb-progress-fill.good { background: var(--ffl-success); }
  .onb-progress-fill.warn { background: var(--ffl-warning); }
  .onb-progress-fill.bad { background: var(--ffl-danger); }

  /* 2 columns like the approved mockup. No nowrap/ellipsis: a step name that
     doesn't fit wraps to a second line instead of being clipped. */
  .checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .check-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ffl-text-muted); background: none; border: none; padding: 0; font-family: var(--ffl-font); cursor: pointer; text-align: left; line-height: 1.3; }
  .check-item svg { width: 14px; height: 14px; flex: none; stroke-width: 2.2; }
  .check-item.done { color: var(--ffl-text); }
  .check-item.done svg { color: var(--ffl-success); }
  .check-item.todo svg { color: var(--ffl-border); }

  .onb-call { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: var(--ffl-text-muted); }
  .onb-call svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--ffl-text-muted); stroke-width: 1.8; }
  .onb-call .line1 { color: var(--ffl-text); font-weight: 500; }
  .onb-call .line2 { margin-top: 1px; }
  .onb-call.none { color: var(--ffl-text-muted); font-style: italic; }

  .onb-start { font-size: 12.5px; color: var(--ffl-text); }

  /* The ••• cell is pinned to the visible right edge of a scrolling table (Anthony, Sep 29th:
     "three dots should be all the way to the right, alone") -- rows scroll underneath it. */
  .onb-actions { display: flex; justify-content: flex-end; position: sticky; right: 0; z-index: 1; background: var(--ffl-surface); }
  /* Check-Ins / Meal Plans wrap the ••• in a grid cell with overflow hidden, so the cell itself is the sticky one there. */
  .mp-row > div:last-child { position: sticky; right: 0; z-index: 1; background: var(--ffl-surface); }
  .onb-actions-btn { width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--ffl-text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .onb-actions-btn svg { width: 17px; height: 17px; stroke-width: 2; }

  /* ---------- Meal Plans page ---------- */
  .learn { display: flex; align-items: center; gap: 16px; background: var(--ffl-yellow-bg); border: 1px solid #F1E2A6; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
  .learn-l { width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--ffl-yellow); display: flex; align-items: center; justify-content: center; flex: none; }
  .learn-l svg { width: 20px; height: 20px; stroke-width: 2; }
  .learn-t { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ffl-text); }
  .learn-t b { font-size: 13.5px; }
  .learn-t span { color: #7A5D00; }
  .learn-r { margin-left: auto; min-width: 220px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
  .learn-n { font-size: 13px; font-weight: 600; } .learn-n b { font-size: 18px; }
  .learn-r .onb-progress-track { width: 100%; height: 8px; }
  .learn-s { font-size: 11px; color: #7A5D00; }
  .learn.done { background: var(--ffl-success-bg); border-color: #BFDDBA; } .learn.done .learn-l { color: var(--ffl-success); } .learn.done .learn-t span, .learn.done .learn-s { color: var(--ffl-success); }
  /* Columns size to their content (Anthony, Sep 28th 2026): every tag/text fully readable with space either side. */
  .mp-grid { display: grid; grid-template-columns: minmax(230px, max-content) max-content max-content max-content minmax(150px, max-content) max-content max-content minmax(56px, 1fr); min-width: 100%; width: max-content; }
  .mp-head > div:last-child, .mp-row > div:last-child { justify-content: flex-end; padding-right: 10px; }
  .mp-head > div.sortable { cursor: pointer; user-select: none; }
  .mp-head > div.sortable:hover { color: var(--ffl-text); }
  .mp-head > div.sortable.on { color: var(--ffl-text); }
  .mp-head > div.sortable.on::after { content: "▼"; font-size: 8px; margin-left: 5px; }
  .mp-head > div.sortable.on.desc::after { content: "▲"; }
  .mp-head, .mp-row, .mp-rows { display: contents; }
  .mp-head > div { padding: 8px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-bottom: 1px solid var(--ffl-border); display: flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 38px; }
  .mp-row > div { padding: 8px 14px; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; white-space: nowrap; border-top: 1px solid var(--ffl-border); min-width: 0; overflow: hidden; cursor: pointer; }
  .mp-row:hover > div { background: var(--ffl-surface-subtle); }
  .mp-head > div:first-child, .mp-row > div:first-child { justify-content: flex-start; text-align: left; padding-left: 14px; }
  .mp-row > div:nth-child(n+2) { border-left: 1px solid var(--ffl-border-soft); }
  .mp-row .onb-avatar { width: 30px; height: 30px; font-size: 10.5px; } .mp-row .onb-name { font-size: 12.5px; } .mp-row .onb-email { font-size: 11px; }
  .mp-row .onb-who { gap: 8px; width: 100%; } .mp-row .onb-who-text { min-width: 0; flex: 1; }
  .mp-allergy { font-size: 11.5px; white-space: normal !important; line-height: 1.3; }
  .mp-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--ffl-text-muted); font-size: 12.5px; border-top: 1px solid var(--ffl-border); }
  .hist { display: inline-flex; gap: 4px; align-items: center; }
  .hist i { width: 10px; height: 10px; border-radius: 3px; background: var(--ffl-border); display: inline-block; }
  .hist i.new { background: var(--ffl-success); } .hist i.repeat { background: var(--ffl-info); } .hist i.missed { background: var(--ffl-danger); } .hist i.start { background: var(--ffl-brand-blush); }
  .mp-foot { font-size: 12px; color: var(--ffl-text-muted); margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
  .crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ffl-text-muted); margin: 4px 0 14px; }
  .crumb a { color: inherit; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; } .crumb a:hover { color: var(--ffl-text); }
  .crumb svg { width: 14px; height: 14px; stroke-width: 2.2; }
  .crumb b { color: var(--ffl-text); font-weight: 600; }
  .plan-head { display: flex; align-items: center; gap: 16px; background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 12px; padding: 14px 18px; box-shadow: var(--ffl-shadow); margin-bottom: 14px; }
  .plan-head .onb-avatar { width: 44px; height: 44px; font-size: 14px; }
  .plan-head .nm { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .plan-head .sub { font-size: 12.5px; color: var(--ffl-text); margin-top: 2px; display: flex; gap: 14px; flex-wrap: wrap; }
  .plan-head .sub b { font-weight: 600; }
  .plan-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .plan-body { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 12px; padding: 14px 18px 16px; box-shadow: var(--ffl-shadow); }
  .plan-empty { padding: 40px 20px; text-align: center; color: var(--ffl-text-muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .plan-empty b { color: var(--ffl-text); font-size: 15px; }
  .mp-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
  .mp-top .wk { display: flex; gap: 6px; }
  .mp-top .wk button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ffl-border); background: var(--ffl-surface); font-family: var(--ffl-font); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ffl-text); }
  .mp-top .wk button.on { background: var(--ffl-brand-blush); color: #fff; border-color: transparent; }
  .mp-top .meta { font-size: 12.5px; color: var(--ffl-text); display: flex; gap: 14px; flex-wrap: wrap; }
  .mp-top .meta b { font-weight: 600; }
  .tz-title { font-size: 20px; font-weight: 600; }
  .mp-plan-h { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; padding: 2px 0 12px; border-bottom: 1px solid var(--ffl-border); margin-bottom: 6px; }
  .plan-collapsed .mp-plan-h { padding-bottom: 2px; border-bottom: none; margin-bottom: 0; }
  .plan-body + .plan-body { margin-top: 12px; }
  .mp-plan-chev { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ffl-text-muted); transition: transform .15s; flex: none; }
  .mp-plan-chev svg { width: 14px; height: 14px; } .mp-plan-chev.open { transform: rotate(90deg); }
  .mp-plan-h:hover .mp-plan-chev { background: var(--ffl-surface-subtle); color: var(--ffl-text); }
  .mp-plan-dot { color: var(--ffl-text-muted); font-size: 18px; }
  .mp-plan-date { font-size: 18px; font-weight: 500; color: var(--ffl-text); }
  .mp-plan-h .pill { margin-left: 4px; }
  .mp-plan-h .tz-title, .mp-plan-h .mp-plan-date { white-space: nowrap; }
  .mp-plan-h { flex-wrap: wrap; }
  .tz-day { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 10px; font-size: 14px; }
  .tz-day b { font-weight: 700; letter-spacing: .2px; } .tz-day span { font-weight: 400; } .tz-day i { font-style: normal; color: var(--ffl-text-muted); margin: 0 -2px; } .tz-day em { font-style: normal; font-size: 12px; color: var(--ffl-text-muted); margin-left: 4px; }
  .tz-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .tz-card { width: 200px; border: 1px solid var(--ffl-border); border-radius: 8px; background: var(--ffl-surface); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); display: flex; flex-direction: column; }
  .tz-photo { position: relative; height: 80px; background: linear-gradient(135deg, #DACFCB, #B8A9A3); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); flex: none; }
  .tz-photo svg { width: 30px; height: 30px; }
  .tz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tz-rep { position: absolute; left: 8px; bottom: 6px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--ffl-text-muted); padding: 2px 6px; border-radius: 999px; }
  .tz-body { padding: 10px 10px 9px; display: flex; flex-direction: column; flex: 1; }
  .tz-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; min-height: 34px; padding-bottom: 10px; border-bottom: 1px solid var(--ffl-border); }
  .tz-meta { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 8px; margin-top: auto; }
  .tz-type, .tz-cal { font-size: 10.5px; color: var(--ffl-text-muted); line-height: 1.5; }
  .tz-swap { width: 20px; height: 20px; border: 1px solid var(--ffl-border); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--ffl-text-muted); flex: none; }
  .tz-swap svg { width: 12px; height: 12px; }
  .tz-swap.on { cursor: pointer; background: var(--ffl-surface); }
  .tz-swap.on:hover { border-color: var(--ffl-brand-blush); color: var(--ffl-brand-blush); }
  .tz-swap.off { opacity: .4; }
  .tz-card.changed { border-color: var(--ffl-brand-blush); box-shadow: 0 0 0 2px #F3E3E0; }
  .mp-target { display: inline-flex; align-items: center; gap: 4px; }
  .mp-target input { width: 64px; height: 24px; font-family: var(--ffl-font); font-size: 12.5px; font-weight: 400; text-align: right; border: 1px solid var(--ffl-border); border-radius: 6px; padding: 0 6px; color: var(--ffl-text); background: var(--ffl-surface); }
  .mp-target input:focus { outline: none; border-color: var(--ffl-brand-blush); }
  .mp-swap-pop { position: absolute; z-index: 60; width: 320px; background: var(--ffl-surface); border: 1px solid var(--ffl-border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); overflow: hidden; }
  .mp-swap-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--ffl-border); background: var(--ffl-surface-subtle); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-text-muted); }
  .mp-swap-head input { margin-left: auto; width: 150px; height: 26px; font-family: var(--ffl-font); font-size: 12px; border: 1px solid var(--ffl-border); border-radius: 6px; padding: 0 8px; }
  .mp-swap-list { max-height: 340px; overflow: auto; padding: 4px; }
  .mp-swap-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-text-muted); padding: 8px 8px 2px; font-weight: 600; }
  .mp-swap-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
  .mp-swap-item:hover { background: var(--ffl-surface-subtle); }
  .mp-swap-item.current { background: #FFF8F7; }
  .mp-swap-item img, .mp-swap-item .ph { width: 44px; height: 30px; border-radius: 5px; object-fit: cover; flex: none; background: linear-gradient(135deg, #DACFCB, #B8A9A3); }
  .mp-swap-item .n { font-weight: 600; line-height: 1.25; }
  .mp-swap-item .m { font-size: 11px; color: var(--ffl-text-muted); }
  .form-row.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .form-row.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .form-row.six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .mp-target input.narrow { width: 44px; }
  .modal.modal-wide { max-width: 1040px; width: calc(100vw - 48px); }
  .mp-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
  .mp-pick { border: 1px solid var(--ffl-border); border-radius: 10px; overflow: hidden; min-width: 0; }
  .mp-pick.hidden { display: none; }
  .mp-pick-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); padding: 8px 10px; border-bottom: 1px solid var(--ffl-border); display: flex; justify-content: space-between; }
  .mp-pick-h span { background: var(--ffl-brand-blush); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
  .mp-pick-list { max-height: 210px; overflow: auto; padding: 6px 4px; }
  .mp-pick-list label { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
  .mp-pick-list label:hover { background: var(--ffl-surface-subtle); }
  .mp-pick-list label input { margin: 0; accent-color: var(--ffl-brand-blush); }
  .mp-pick-list label small { margin-left: auto; color: var(--ffl-text-muted); font-size: 10.5px; white-space: nowrap; }
  .mp-pick-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-text-muted); padding: 8px 6px 2px; font-weight: 600; }

  /* ---------- Onboarding (LTV-style list, content-sized columns; click a row for the detail page) ---------- */
  .onb-grid { display: grid; grid-template-columns: minmax(230px, max-content) max-content max-content max-content max-content minmax(56px, 1fr); min-width: 100%; width: max-content; }
  .onb-ghead, .onb-grow, .onb-grows { display: contents; }
  .onb-ghead > div { padding: 8px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); border-bottom: 1px solid var(--ffl-border); display: flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 38px; }
  .onb-ghead > div.sortable { cursor: pointer; user-select: none; } .onb-ghead > div.sortable:hover, .onb-ghead > div.sortable.on { color: var(--ffl-text); }
  .onb-ghead > div.sortable.on::after { content: "▼"; font-size: 8px; margin-left: 5px; } .onb-ghead > div.sortable.on.desc::after { content: "▲"; }
  .onb-grow > div { padding: 8px 14px; min-height: 52px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; white-space: nowrap; border-top: 1px solid var(--ffl-border); min-width: 0; cursor: pointer; }
  .onb-grow:hover > div { background: var(--ffl-surface-subtle); }
  .onb-ghead > div:first-child, .onb-grow > div:first-child { justify-content: flex-start; text-align: left; }
  .onb-grow > div:nth-child(n+2) { border-left: 1px solid var(--ffl-border-soft); }
  .onb-ghead > div:last-child, .onb-grow > div:last-child { justify-content: flex-end; padding-right: 10px; }
  .onb-grow .onb-avatar { width: 30px; height: 30px; font-size: 10.5px; } .onb-grow .onb-name { font-size: 12.5px; } .onb-grow .onb-email { font-size: 11px; }
  .onb-grow .onb-who { gap: 8px; width: 100%; } .onb-grow .onb-who-text { min-width: 0; flex: 1; }
  .onb-prog { display: flex; flex-direction: column; gap: 5px; min-width: 190px; }
  .onb-prog .t { font-size: 12px; } .onb-prog .t span { color: var(--ffl-text-muted); }
  .onb-prog .onb-progress-track { height: 7px; }
  .onb-call2 { display: flex; flex-direction: column; line-height: 1.3; } .onb-call2 .l2 { font-size: 11px; color: var(--ffl-text-muted); }
  .onb-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--ffl-text-muted); font-size: 12.5px; border-top: 1px solid var(--ffl-border); }
  /* detail page */
  .onb-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .onb-card { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 12px; box-shadow: var(--ffl-shadow); overflow: hidden; }
  .onb-card-h { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--ffl-border); cursor: pointer; user-select: none; }
  .onb-card-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
  .onb-card-h .meta { font-size: 12px; color: var(--ffl-text-muted); margin-left: 6px; }
  .onb-card-h .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .onb-card.closed .onb-card-h { border-bottom: none; }
  .onb-card-b { padding: 14px 18px 16px; }
  .onb-chev { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ffl-text-muted); transition: transform .15s; flex: none; }
  .onb-chev svg { width: 14px; height: 14px; } .onb-chev.open { transform: rotate(90deg); }
  .onb-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .onb-step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--ffl-border); border-radius: 10px; background: var(--ffl-surface); cursor: pointer; font-family: var(--ffl-font); font-size: 13px; text-align: left; color: var(--ffl-text); }
  .onb-step:hover { background: var(--ffl-surface-subtle); }
  .onb-step .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ffl-border); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
  .onb-step .box svg { width: 12px; height: 12px; stroke-width: 3; }
  .onb-step.done .box { background: var(--ffl-success); border-color: var(--ffl-success); }
  .onb-step.done { color: var(--ffl-text-muted); text-decoration: line-through; }
  .onb-step .n { width: 18px; font-size: 11px; color: var(--ffl-text-muted); font-weight: 600; }
  .onb-detail-prog { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12.5px; }
  .onb-detail-prog .onb-progress-track { flex: 1; height: 8px; }
  .qa { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); }
  .qa > div { padding: 9px 12px; font-size: 12.5px; border-top: 1px solid var(--ffl-border-soft); white-space: pre-wrap; word-break: break-word; }
  .qa > div:nth-child(-n+2) { border-top: none; }
  .qa .q { font-weight: 600; color: var(--ffl-text); background: var(--ffl-surface-subtle); }
  .qa .a { color: var(--ffl-text); }
  .onb-none { padding: 22px; text-align: center; color: var(--ffl-text-muted); font-size: 12.5px; }
  .onb-sel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
  .onb-sel > div { border: 1px solid var(--ffl-border); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
  .onb-sel b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-text-muted); margin-bottom: 4px; }
  .onb-sel ul { margin: 0; padding-left: 16px; } .onb-sel li { margin: 2px 0; }
  .onb-head-fields { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin-top: 4px; align-items: center; }
  .onb-head-fields b { font-weight: 600; }
  .onb-head-fields input { height: 26px; font-family: var(--ffl-font); font-size: 12.5px; border: 1px solid var(--ffl-border); border-radius: 6px; padding: 0 8px; color: var(--ffl-text); background: var(--ffl-surface); }
  /* form viewer (verbatim Google Form answers) */
  .modal.modal-form { max-width: 860px; width: calc(100vw - 48px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
  .form-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--ffl-border); margin: 0; }
  .form-view-head h2 { margin: 0; }
  .form-view-sub { font-size: 12.5px; color: var(--ffl-text-muted); margin-top: 3px; }
  .form-view-body { overflow: auto; padding: 8px 22px 22px; }
  .fv-q { padding: 14px 0 12px; border-bottom: 1px solid var(--ffl-border-soft); }
  .fv-q:last-child { border-bottom: none; }
  .fv-q .fq { font-size: 13px; font-weight: 600; color: var(--ffl-text); margin-bottom: 6px; white-space: pre-wrap; }
  .fv-q .fa { font-size: 13px; color: var(--ffl-text); background: var(--ffl-surface-subtle); border: 1px solid var(--ffl-border); border-radius: 8px; padding: 9px 12px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
  .fv-num { display: inline-block; min-width: 22px; color: var(--ffl-text-muted); font-weight: 600; }
  .onb-form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ffl-text-muted); }
  .fv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
  .fv-day { border: 1px solid var(--ffl-border); border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 12px; color: var(--ffl-text-muted); background: var(--ffl-surface-subtle); display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; }
  .fv-day.on { background: var(--ffl-success-bg); border-color: var(--ffl-success); color: var(--ffl-success); font-weight: 600; }
  .fv-day svg { width: 14px; height: 14px; stroke-width: 2.5; }
  .fv-note { margin-top: 8px; }
  .onb-cards.three { grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .onb-steps.one { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .onb-steps.one .onb-step { padding: 7px 10px; font-size: 12.5px; }
  .onb-cards.three .onb-card-h { padding: 10px 14px; } .onb-cards.three .onb-card-h h3 { font-size: 14px; } .onb-cards.three .onb-card-b { padding: 12px 14px 14px; }
  .onb-cards.three .onb-sel { grid-template-columns: minmax(0, 1fr); }
  .fa-empty { color: var(--ffl-text-muted); }
  .fv-q .fq { text-align: left; }
  @media (max-width: 1180px) { .onb-cards.three { grid-template-columns: minmax(0, 1fr); } }
  .onb-card-h.static { cursor: default; }
  .onb-col { display: flex; flex-direction: column; gap: 14px; }
  .onb-kv { display: flex; flex-direction: column; gap: 10px; }
  .onb-kv b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-text-muted); margin-bottom: 4px; }
  .onb-kv .fa { font-size: 12.5px; background: var(--ffl-surface-subtle); border: 1px solid var(--ffl-border); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; }
  .onb-form-row.spread { justify-content: space-between; flex-wrap: wrap; }
  .onb-form-row.spread span { white-space: nowrap; }
  .onb-form-row.spread .btn-small { white-space: nowrap; }
  .acl-row.clickable { cursor: pointer; } .acl-row.clickable:hover > div { background: var(--ffl-surface-subtle); }
  .acl-row.outcome-quit > div, .acl-row.outcome-quit.clickable:hover > div { background: var(--ffl-danger-bg); }
  .acl-row.outcome-ghosted > div, .acl-row.outcome-ghosted.clickable:hover > div { background: var(--ffl-warning-bg); }
  .cd-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cd-fact { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--ffl-border-soft); }
  .cd-fact:last-child { border-bottom: none; }
  .cd-fact b { font-weight: 600; } .cd-fact span { text-align: right; }
  .cd-notes { width: 100%; min-height: 120px; font-family: var(--ffl-font); font-size: 12.5px; line-height: 1.5; border: 1px solid var(--ffl-border); border-radius: 8px; padding: 9px 11px; resize: vertical; color: var(--ffl-text); background: var(--ffl-surface-subtle); }
  .cd-notes:focus { outline: none; border-color: var(--ffl-brand-blush); background: var(--ffl-surface); }
  .contracts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .contract { border: 1px solid var(--ffl-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; background: var(--ffl-surface-subtle); }
  .contract-when { font-size: 13px; font-weight: 600; }
  .contract-who { font-size: 11.5px; color: var(--ffl-text-muted); margin-bottom: 4px; }
  .modal.modal-pdf { max-width: 1000px; width: calc(100vw - 48px); height: calc(100vh - 48px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
  .pdf-frame { flex: 1; width: 100%; border: none; background: #525659; }
  .pdf-view-actions { display: flex; gap: 8px; align-items: center; }
  .free-tag { font-size: 10px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
  .onb-step.locked { cursor: default; opacity: .9; } .onb-step.locked:hover { background: var(--ffl-surface); }
  .onb-step .lock { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-success); text-decoration: none; }

  /* ---------- check-ins page ---------- */
  .ci-grid { grid-template-columns: minmax(260px, max-content) max-content max-content max-content max-content max-content max-content minmax(56px, 1fr); }
  .mp-head > div.ci-strip-head, .mp-row > div.ci-strip-cell { justify-content: flex-start; }
  .mp-row .onb-name .pill { font-size: 10px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
  .ci-strip { display: inline-flex; gap: 6px; }
  .ci-strip i { width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 12px; color: #fff; background: var(--ffl-border); }
  .ci-strip i.in { background: var(--ffl-success); }
  .ci-strip i.miss { background: #A61B1B; }   /* deep red -- Anthony: the bright app red looked "corny" in the big boxes */
  .ci-strip i.soon { background: #fff; color: var(--ffl-text-muted); border: 1px solid var(--ffl-border); font-weight: 500; }
  .ci-cards { display: flex; flex-direction: column; gap: 12px; }
  .ci-card .onb-card-h { cursor: pointer; }
  .ci-card .onb-card-h .meta { font-size: 12px; color: var(--ffl-text-muted); margin-left: 10px; }
  .ci-card .onb-card-h .right { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
  .ci-card.closed .onb-card-b { display: none; } .ci-card.closed .onb-chev { transform: none; }
  .ci-ratings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; margin-bottom: 14px; }
  .ci-rating { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; padding: 7px 10px; border: 1px solid var(--ffl-border); border-radius: 8px; background: var(--ffl-surface-subtle); }
  .ci-chip { display: inline-flex; align-items: baseline; gap: 1px; min-width: 34px; justify-content: center; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
  .ci-chip small { font-weight: 500; font-size: 9px; opacity: .8; }
  .ci-chip.good { background: var(--ffl-success-bg); color: var(--ffl-success); } .ci-chip.warn { background: var(--ffl-yellow-bg); color: var(--ffl-yellow); } .ci-chip.bad { background: var(--ffl-danger-bg); color: var(--ffl-danger); } .ci-chip.none { background: var(--ffl-surface); color: var(--ffl-text-muted); border: 1px solid var(--ffl-border); font-weight: 500; }
  .ci-qa .fv-q { padding: 10px 0 9px; }
  .ci-notes { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ffl-border); }
  .ci-notes b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ffl-text-muted); margin-bottom: 6px; }
  .ci-notes textarea { width: 100%; min-height: 64px; font-family: var(--ffl-font); font-size: 12.5px; border: 1px solid var(--ffl-border); border-radius: 8px; padding: 8px 10px; resize: vertical; margin-bottom: 8px; background: var(--ffl-surface-subtle); }
  .ci-empty { padding: 28px; text-align: center; color: var(--ffl-text-muted); font-size: 13px; background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: 12px; }

  /* ---------- Body Weight card + graph (client pages) ---------- */
  .bw-facts .cd-fact:last-child { padding-top: 6px; border-top: 1px solid var(--ffl-border); margin-top: 2px; }
  .bw-card-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 10px 0 8px; }
  .bw-mini { width: 100%; height: 110px; display: block; }
  .bw-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--ffl-text-muted); }
  .bw-modal { position: fixed; inset: 0; background: rgba(20, 16, 14, .45); display: flex; align-items: center; justify-content: center; z-index: 60; }
  .bw-panel { width: min(620px, 92vw); background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); padding: 22px 26px 18px; }
  .bw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .bw-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
  .bw-head .who { font-size: 12.5px; color: var(--ffl-text-muted); margin-top: 2px; }
  .bw-tools { display: flex; align-items: center; gap: 18px; margin-right: 6px; }
  .bw-ranges { display: inline-flex; border: 1px solid #C9D6E5; border-radius: 6px; overflow: hidden; }
  .bw-ranges button { border: 0; background: #fff; padding: 6px 12px; font: inherit; font-size: 12px; color: #2C3E50; cursor: pointer; border-right: 1px solid #C9D6E5; }
  .bw-ranges button:last-child { border-right: 0; }
  .bw-ranges button.on { background: #2F7DE1; color: #fff; }
  .bw-close { border: 0; background: var(--ffl-surface-subtle); width: 32px; height: 32px; border-radius: 999px; font-size: 18px; cursor: pointer; }
  .bw-frame { border: 1px solid #E6ECF2; border-radius: 8px; padding: 10px 16px 12px; }
  .bw-nav { display: flex; justify-content: flex-end; align-items: center; font-size: 12.5px; color: #2C3E50; margin-bottom: 4px; }
  .bw-svg { width: 100%; height: 400px; display: block; }
  .bw-legend { font-size: 12.5px; color: #2C3E50; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
  .bw-legend i { width: 9px; height: 9px; border-radius: 999px; background: #2F7DE1; display: inline-block; }
  .bw-wrap { position: relative; }
  .bw-tip { position: absolute; pointer-events: none; background: #1F2A37; color: #fff; font-size: 11.5px; line-height: 1.35; padding: 6px 9px; border-radius: 6px; white-space: nowrap; text-align: center; transform: translate(-50%, calc(-100% - 14px)); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
  .bw-tip b { font-weight: 700; }
  .bw-bottom { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E6ECF2; }
  .bw-brush { position: relative; flex: 1; height: 44px; margin-bottom: 14px; }
  .bw-brush svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .bw-window { position: absolute; top: 0; bottom: 0; background: rgba(47, 125, 225, .16); border-left: 2px solid #2F7DE1; border-right: 2px solid #2F7DE1; cursor: grab; border-radius: 3px; touch-action: none; }
  .bw-window:active { cursor: grabbing; }
  .bw-window i { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
  .bw-window i.l { left: -6px; } .bw-window i.r { right: -6px; }
  .bw-brush-lbl { position: absolute; bottom: -14px; font-size: 10px; color: #8A94A6; }
  .wt-down, .acl-weight.wt-down { color: var(--ffl-success); font-weight: 600; }
  .wt-up, .acl-weight.wt-up { color: var(--ffl-danger); font-weight: 600; }
  .acl-weight.wt-up svg { transform: rotate(180deg); }

  /* ---------- progress photos ---------- */
  .pp-track { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 12.5px; }
  .pp-track b { font-weight: 600; }
  .pp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; cursor: zoom-in; }
  .pp-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--ffl-surface-subtle); border: 1px solid var(--ffl-border); }
  .pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pp-thumb i { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 999px; }
  .pp-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--ffl-text-muted); font-size: 11px; }
  .pp-dl { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ffl-text); display: none; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
  .pp-dl svg { width: 14px; height: 14px; }
  .pp-thumb:hover .pp-dl { display: inline-flex; }
  .pp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--ffl-text-muted); }
  .pp-modal { position: fixed; inset: 0; background: rgba(20,16,14,.6); display: flex; align-items: center; justify-content: center; z-index: 60; }
  .pp-panel { background: #fff; border-radius: 14px; padding: 18px 22px 16px; width: min(880px, 94vw); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
  .pp-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .pp-panel-h h2 { margin: 0; font-size: 18px; font-weight: 600; }
  .pp-panel-h .who { font-size: 12.5px; color: var(--ffl-text-muted); margin-top: 2px; }
  .pp-close { border: 0; background: var(--ffl-surface-subtle); width: 32px; height: 32px; border-radius: 999px; font-size: 18px; cursor: pointer; }
  .pp-gallery { max-height: 78vh; overflow-y: auto; padding-right: 6px; }
  .pp-gset { padding: 12px 0 14px; border-top: 1px solid var(--ffl-border-soft); }
  .pp-gset:first-child { border-top: none; padding-top: 0; }
  .pp-gset-h { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 8px; }
  .pp-gset-h b { font-weight: 600; }
  .pp-gset-h span { color: var(--ffl-text-muted); font-size: 12px; }
  .pp-gset-h span:last-of-type { margin-right: auto; }
  .pp-gset-h .pp-ok { font-style: normal; font-weight: 600; font-size: 12px; color: var(--ffl-success); }
  .pp-gset-h .btn-small svg { width: 13px; height: 13px; margin-right: 4px; }
  .pp-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pp-big .pp-thumb { border-radius: 10px; }
  .pp-big .pp-thumb i { font-size: 11px; }
  .pp-col-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
  .pp-col-cell small { color: var(--ffl-text-muted); font-size: 11px; }
  .pp-sched { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
  .pp-due { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 12px; padding: 5px 9px; border-radius: 7px; background: var(--ffl-surface-subtle); }
  .pp-due b { font-weight: 600; min-width: 48px; text-align: right; }
  .pp-due.ok b { color: var(--ffl-success); } .pp-due.miss b { color: var(--ffl-danger); } .pp-due.miss { background: var(--ffl-danger-bg); } .pp-due.soon b { color: var(--ffl-text-muted); }

  /* ---------- expense tracker ---------- */
  .ex-drop { border: 2px dashed var(--ffl-border); border-radius: 12px; padding: 26px 20px; text-align: center; background: var(--ffl-surface); cursor: pointer; margin-bottom: 14px; transition: border-color .12s, background .12s; }
  .ex-drop.over { border-color: var(--ffl-brand-blush); background: var(--ffl-surface-subtle); }
  .ex-drop-t b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .ex-drop-t span { font-size: 12px; color: var(--ffl-text-muted); }
  .ex-drop-s { margin-top: 10px; font-size: 12.5px; color: var(--ffl-text); }
  .ex-grid { grid-template-columns: minmax(260px, max-content) minmax(140px, max-content) max-content max-content max-content max-content minmax(160px, 1fr) max-content minmax(56px, 1fr); }
  .ex-grid .mp-row > div { cursor: default; }
  .ex-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .ex-name a { color: var(--ffl-text); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
  .ex-name a:hover { text-decoration: underline; }
  .ex-name small { color: var(--ffl-text-muted); font-size: 11px; white-space: nowrap; }
  .ex-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--ffl-surface-subtle); color: var(--ffl-icon-fg); display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
  .ex-in { font: inherit; font-size: 12px; border: 1px solid var(--ffl-border); border-radius: 6px; padding: 5px 8px; background: var(--ffl-surface); color: var(--ffl-text); min-width: 0; }
  .ex-in:focus { outline: 2px solid var(--ffl-brand-blush); outline-offset: 1px; border-color: transparent; }
  .ex-in.money { width: 96px; text-align: right; }
  .ex-in.date { width: 138px; }
  .ex-in.note { width: 100%; }
  .ex-in.cur { width: 60px; }
  .ex-actions { display: inline-flex; gap: 6px; }
  .ex-actions a, .ex-actions button { border: 1px solid var(--ffl-border); background: var(--ffl-surface); border-radius: 6px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--ffl-text); cursor: pointer; }
  .ex-actions svg { width: 14px; height: 14px; stroke-width: 2.2; }
  .ex-actions .danger { color: var(--ffl-danger); }
  .pp-due.can-open { cursor: pointer; grid-template-columns: auto 1fr auto auto; }
  .pp-due:not(.can-open) { grid-template-columns: auto 1fr auto auto; }
  .pp-due .onb-chev { width: 18px; height: 18px; }
  .pp-due .onb-chev svg { width: 12px; height: 12px; }
  .pp-nochev { width: 18px; height: 18px; display: inline-block; }
  .pp-due.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .pp-set-body { border: 1px solid var(--ffl-border); border-top: none; border-radius: 0 0 8px 8px; padding: 10px; margin-top: -4px; margin-bottom: 2px; background: var(--ffl-surface); }
  .pp-set-body .pp-row { cursor: default; }
  .pp-set-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
  .pp-set-foot .btn-small svg, .pp-all svg { width: 13px; height: 13px; margin-right: 4px; }
  .pp-link { color: var(--ffl-text); font-weight: 600; cursor: pointer; text-decoration: underline; }
  .ex-year { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--ffl-surface-subtle); border-top: var(--ffl-border-width) solid var(--ffl-border); cursor: pointer; font-size: 13px; }
  .ex-year b { font-size: 15px; font-weight: 700; }
  .ex-year > span { color: var(--ffl-text-muted); }
  .ex-year .ex-year-tot { margin-left: auto; color: var(--ffl-text); font-weight: 600; }
  .ex-year .onb-chev { width: 20px; height: 20px; } .ex-year .onb-chev svg { width: 12px; height: 12px; }
  .ex-cat { grid-column: 1 / -1; }

/* Expense Tracker — Meta Ads sync (Sep 28th, 2026) */
.ex-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ex-meta-status { font-size: 12.5px; color: var(--muted, #6b6b70); white-space: nowrap; }

/* Expense Tracker — year folders + chart of accounts (Anthony, Sep 28th, 2026 evening) */
.ex-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ex-year-card { background: var(--ffl-surface); border: var(--ffl-border-width) solid var(--ffl-border); border-radius: var(--ffl-radius-md); box-shadow: var(--ffl-shadow); padding: 18px 20px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ex-year-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ex-year-card .y { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.ex-year-card .n { font-size: 12.5px; color: var(--ffl-text-muted); margin: 2px 0 12px; }
.ex-year-card .t { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-top: 1px solid var(--ffl-border); }
.ex-year-card .t b { font-weight: 600; }
.ex-year-card .t .ltv-cur { margin-left: 4px; }
.ex-year-card .warn { color: var(--ffl-danger); font-size: 12px; margin-top: 8px; }
.ex-year-card.empty { opacity: .6; }
.ex-year-title { display: flex; align-items: baseline; gap: 10px; }
.ex-year-title b { font-size: 20px; font-weight: 700; }
.ex-year-title span { font-size: 12.5px; color: var(--ffl-text-muted); }
.ex-acct { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: #FBF7F6; border-top: var(--ffl-border-width) solid var(--ffl-border); font-size: 12px; }
.ex-acct b { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ffl-icon-fg); }
.ex-acct > span { color: var(--ffl-text-muted); }
.ex-acct .tot { margin-left: auto; color: var(--ffl-text); font-weight: 600; font-size: 13px; }
.ex-acct.empty { padding: 6px 16px; background: var(--ffl-surface); }
.ex-acct.empty b { color: var(--ffl-text-muted); font-weight: 600; opacity: .7; }
.ex-acct.uncat b { color: var(--ffl-danger); }
.ex-in.acct { width: 176px; }

/* Expense Tracker — tiles like the Trainerize meal cards (Anthony, Sep 28th evening) */
.ex-crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.ex-crumbs a { color: var(--ffl-text); cursor: pointer; text-decoration: none; }
.ex-crumbs a:hover { text-decoration: underline; }
.ex-crumbs i { font-style: normal; color: var(--ffl-text-muted); }
.ex-crumbs b { font-weight: 600; }
.ex-tiles { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ex-tile { width: 200px; border: 1px solid var(--ffl-border); border-radius: 8px; background: var(--ffl-surface); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); display: flex; flex-direction: column; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ex-tile:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.08); border-color: var(--ffl-brand-blush); }
.ex-tile .band { height: 64px; background: linear-gradient(135deg, #DACFCB, #B8A9A3); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); flex: none; position: relative; }
.ex-tile .band svg { width: 26px; height: 26px; }
.ex-tile .band .pill { position: absolute; left: 8px; bottom: 6px; font-size: 10px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--ffl-text-muted); padding: 2px 6px; border-radius: 999px; }
.ex-tile.empty .band { background: linear-gradient(135deg, #EDE6E3, #DCD3CF); }
.ex-tile.empty { opacity: .75; }
.ex-tile.warn .band .pill { color: var(--ffl-danger); }
.ex-tile .body { padding: 10px 10px 9px; display: flex; flex-direction: column; flex: 1; }
.ex-tile .name { font-size: 12.5px; font-weight: 600; line-height: 1.3; min-height: 34px; padding-bottom: 8px; border-bottom: 1px solid var(--ffl-border); }
.ex-tile .tot { font-size: 18px; font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
.ex-tile .tot .ltv-cur { font-size: 10px; margin-left: 4px; }
.ex-tile .tot.zero { color: var(--ffl-text-muted); font-weight: 600; }
.ex-tile .sub { font-size: 10.5px; color: var(--ffl-text-muted); line-height: 1.5; margin-top: 4px; }
.ex-tile.add { border-style: dashed; justify-content: center; align-items: center; min-height: 150px; color: var(--ffl-text-muted); font-size: 12.5px; font-weight: 600; }
.ex-tile.add:hover { color: var(--ffl-text); }
.ex-in.subcat { width: 160px; }
