:root {
    --fff-black: #070706;
    --fff-panel: #10100f;
    --fff-panel-soft: #171715;
    --fff-gold: #c9a85b;
    --fff-gold-bright: #e2c778;
    --fff-gold-soft: rgba(201, 168, 91, .12);
    --fff-line: rgba(255, 255, 255, .08);
    --fff-muted: #9b9b93;
    --fff-text: #f4f1e8;
    color-scheme: dark;
}

html, body, .fi-body, .fi-layout, .fi-main, .fi-simple-layout {
    background: var(--fff-black) !important;
    color: var(--fff-text);
}

body, .fi-body { font-family: "Segoe UI", Tahoma, Arial, sans-serif !important; }
.fi-layout, .fi-main { direction: rtl; }
.fi-main { background-image: radial-gradient(circle at 75% 0%, rgba(201, 168, 91, .055), transparent 35%); }
.fi-main-ctn { background: transparent !important; }
.fi-page { max-width: 100% !important; }
.fi-page-header { display: none !important; }
.fi-sidebar { background: #0b0b0a !important; border-left: 1px solid var(--fff-line) !important; border-right: 0 !important; }
.fi-sidebar-header { background: transparent !important; border-bottom: 1px solid var(--fff-line); box-shadow: none !important; min-height: 5.5rem; }
.fi-logo { color: var(--fff-gold-bright) !important; font-weight: 800 !important; letter-spacing: .08em; }
.fi-sidebar-nav { padding: 1.25rem .75rem !important; }
.fi-sidebar-group-label { color: #686862 !important; font-size: .67rem !important; letter-spacing: .12em; text-transform: uppercase; }
.fi-sidebar-item-button { border-radius: .65rem !important; color: #c9c8c1 !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-button,
.fi-sidebar-item-button:hover { background: var(--fff-gold-soft) !important; color: var(--fff-gold-bright) !important; }
.fi-topbar { background: rgba(8, 8, 7, .94) !important; border-bottom: 1px solid var(--fff-line) !important; box-shadow: none !important; backdrop-filter: blur(16px); }
.fi-topbar nav { min-height: 4.4rem; }
.fi-avatar { background: var(--fff-gold) !important; color: #111 !important; }
.fi-dropdown-panel { background: #151513 !important; border: 1px solid var(--fff-line) !important; }
.fi-btn.fi-color-primary { background: var(--fff-gold) !important; color: #111 !important; }

.fff-dashboard, .fff-page { display: grid; gap: 1.25rem; width: 100%; }
.fff-ltr, .fff-money { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.fff-eyebrow { color: var(--fff-gold); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.fff-hero, .fff-page-heading { align-items: end; background: linear-gradient(125deg, rgba(201,168,91,.12), rgba(255,255,255,.015) 55%); border: 1px solid rgba(201,168,91,.2); border-radius: 1rem; display: flex; justify-content: space-between; overflow: hidden; padding: 1.7rem 1.8rem; position: relative; }
.fff-hero::after, .fff-page-heading::after { background: var(--fff-gold); content: ""; height: 2px; inset: auto 0 0 auto; position: absolute; width: 28%; }
.fff-hero h1, .fff-page-heading h1 { color: var(--fff-text); font-size: clamp(1.5rem, 2.5vw, 2.3rem); font-weight: 750; margin: .35rem 0; }
.fff-hero p, .fff-page-heading p { color: var(--fff-muted); font-size: .85rem; margin: 0; }
.fff-live-pill, .fff-read-only { align-items: center; background: rgba(75, 176, 123, .08); border: 1px solid rgba(75, 176, 123, .28); border-radius: 999px; color: #78d6a2; direction: ltr; display: inline-flex; font-size: .66rem; font-weight: 800; gap: .45rem; letter-spacing: .08em; padding: .5rem .75rem; white-space: nowrap; }
.fff-live-pill i { animation: fff-pulse 2s infinite; background: #5bd391; border-radius: 50%; height: .4rem; width: .4rem; }
@keyframes fff-pulse { 50% { box-shadow: 0 0 0 .32rem rgba(91,211,145,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(91,211,145,.35); } }

.fff-alerts { display: grid; gap: .5rem; }
.fff-alert { border: 1px solid var(--fff-line); border-radius: .65rem; color: #c8c6bd; font-size: .8rem; padding: .75rem 1rem; }
.fff-alert--warning { background: rgba(218, 155, 55, .08); border-color: rgba(218,155,55,.25); color: #e4bd76; }
.fff-alert--info { background: rgba(94, 134, 187, .08); border-color: rgba(94,134,187,.25); }
.fff-system-strip { background: rgba(16,16,15,.65); border: 1px solid var(--fff-line); border-radius: .75rem; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.fff-system-strip > div { border-left: 1px solid var(--fff-line); display: grid; gap: .16rem; padding: .7rem .9rem; }
.fff-system-strip > div:last-child { border-left: 0; }
.fff-system-strip span, .fff-system-strip small { color: #686761; direction: ltr; font-size: .52rem; text-align: right; }
.fff-system-strip strong { color: #9d9b91; direction: ltr; font-size: .62rem; text-align: right; }

.fff-kpi-grid { display: grid; gap: .8rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fff-kpi { background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .85rem; display: flex; flex-direction: column; min-height: 9.25rem; padding: 1.15rem; position: relative; }
.fff-kpi::before { background: var(--fff-gold); content: ""; height: 1.6rem; right: 0; position: absolute; top: 1.1rem; width: 2px; }
.fff-kpi > span { color: #dedbd1; font-size: .8rem; font-weight: 700; }
.fff-kpi > small { color: #72726c; direction: ltr; font-size: .63rem; margin-top: .2rem; text-align: right; }
.fff-kpi > strong { color: var(--fff-gold-bright); font-size: clamp(1.15rem, 1.7vw, 1.55rem); margin-top: auto; white-space: nowrap; }
.fff-kpi > strong em { color: #77766f; font-size: .56rem; font-style: normal; }
.fff-kpi p { color: #817f76; font-size: .58rem; line-height: 1.4; margin: .3rem 0 0; }
.fff-kpi--analytical { border-color: rgba(201,168,91,.3); }

.fff-section { background: rgba(16,16,15,.88); border: 1px solid var(--fff-line); border-radius: 1rem; padding: 1.25rem; }
.fff-section > header { align-items: center; border-bottom: 1px solid var(--fff-line); display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .8rem; }
.fff-section > header > div { align-items: center; display: grid; gap: 0 .65rem; grid-template-columns: auto 1fr; }
.fff-section-index { color: var(--fff-gold); font-size: .65rem; font-weight: 800; grid-row: 1 / 3; }
.fff-section h2 { color: #edeadf; font-size: .95rem; font-weight: 750; margin: 0; }
.fff-section header p { color: #66665f; direction: ltr; font-size: .6rem; margin: .15rem 0 0; text-align: right; }
.fff-section header a { color: var(--fff-gold); font-size: .7rem; text-decoration: none; }
.fff-account-grid { display: grid; gap: .75rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fff-account-card { background: var(--fff-panel-soft); border: 1px solid rgba(255,255,255,.055); border-radius: .75rem; padding: 1rem; }
.fff-account-card > div { display: flex; flex-direction: column; }
.fff-account-card span { color: #d0cec5; font-size: .72rem; }
.fff-account-card small { color: #64645e; direction: ltr; font-size: .56rem; text-align: right; }
.fff-account-card strong { color: var(--fff-gold-bright); display: block; font-size: 1rem; margin: 1.2rem 0 .55rem; }
.fff-account-card strong em { color: #6b6a65; font-size: .52rem; font-style: normal; }
.fff-account-card p { color: #64645e; font-size: .56rem; margin: 0; }

.fff-two-column { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fff-list { display: grid; gap: .15rem; }
.fff-list > div { align-items: center; border-bottom: 1px solid rgba(255,255,255,.045); display: flex; justify-content: space-between; padding: .65rem .2rem; }
.fff-list span { color: #aaa89f; font-size: .75rem; }
.fff-list span small { background: rgba(201,168,91,.1); border-radius: 999px; color: var(--fff-gold); font-size: .53rem; margin-right: .35rem; padding: .18rem .35rem; }
.fff-list strong { color: #e6e2d7; font-size: .8rem; }
.fff-list-total { border-bottom: 0 !important; border-top: 1px solid rgba(201,168,91,.25); margin-top: .35rem; padding-top: .9rem !important; }
.fff-list-total strong { color: var(--fff-gold-bright); }
.fff-receivable-total { align-items: end; display: flex; justify-content: space-between; margin-bottom: 1rem; }
.fff-receivable-total span { color: #88877f; direction: ltr; font-size: .68rem; }
.fff-receivable-total strong { color: var(--fff-gold-bright); font-size: 1.2rem; }
.fff-aging-bars { display: grid; gap: .55rem; }
.fff-aging-bars > div { align-items: center; display: grid; gap: .65rem; grid-template-columns: 2.5rem 1fr 5rem; }
.fff-aging-bars span, .fff-aging-bars strong { color: #88877f; font-size: .65rem; }
.fff-aging-bars strong { text-align: left; }
.fff-aging-bars progress { appearance: none; background: #262622; border: 0; border-radius: 1rem; height: .36rem; overflow: hidden; width: 100%; }
.fff-aging-bars progress::-webkit-progress-bar { background: #262622; }
.fff-aging-bars progress::-webkit-progress-value { background: linear-gradient(90deg, #8e753c, var(--fff-gold-bright)); }
.fff-employee-due { align-items: center; border-top: 1px solid var(--fff-line); display: flex; justify-content: space-between; margin-top: .8rem; padding-top: .75rem; }
.fff-employee-due span, .fff-employee-due strong { font-size: .7rem; }

.fff-today-grid { display: grid; gap: .6rem; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.fff-today-grid article { background: var(--fff-panel-soft); border-radius: .65rem; display: flex; flex-direction: column; min-height: 6rem; padding: .8rem; }
.fff-today-grid span { color: #89887f; font-size: .62rem; }
.fff-today-grid strong { color: #e0ddd3; font-size: .82rem; margin-top: auto; }
.fff-today-grid strong small { color: #66655f; font-size: .45rem; }
.fff-today-grid em { color: var(--fff-gold); font-size: .55rem; font-style: normal; margin-top: .25rem; }
.fff-performance-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2, 1fr); }
.fff-performance-grid article { background: var(--fff-panel-soft); border-radius: .65rem; padding: .85rem; }
.fff-performance-grid span { color: #85847d; display: block; font-size: .62rem; }
.fff-performance-grid strong { color: #dfdcd1; display: block; font-size: .95rem; margin-top: .55rem; }
.fff-month-comparison { align-items: center; border-top: 1px solid var(--fff-line); display: flex; justify-content: space-between; margin-top: .8rem; padding-top: .75rem; }
.fff-month-comparison span { color: #6f6e68; direction: ltr; font-size: .6rem; }
.fff-month-comparison strong { color: var(--fff-gold); font-size: .76rem; }
.fff-close-card { background: var(--fff-panel-soft); border-right: 2px solid var(--fff-gold); border-radius: .65rem; padding: 1rem; }
.fff-close-card > strong { color: #e5e2d8; display: block; font-size: 1.05rem; margin: .8rem 0 .5rem; }
.fff-close-card p { color: #7b7a73; font-size: .65rem; margin: .35rem 0; }
.fff-status { background: rgba(201,168,91,.1); border: 1px solid rgba(201,168,91,.18); border-radius: 999px; color: var(--fff-gold-bright); direction: ltr; display: inline-block; font-size: .56rem; font-weight: 700; padding: .22rem .45rem; white-space: nowrap; }
.fff-ranking { display: grid; }
.fff-ranking > div:not(.fff-empty) { align-items: center; border-bottom: 1px solid var(--fff-line); display: grid; gap: 1rem; grid-template-columns: 7rem 1fr auto; padding: .7rem .25rem; }
.fff-plate { border: 1px solid rgba(201,168,91,.25); border-radius: .35rem; color: var(--fff-gold-bright); direction: ltr; font-size: .67rem; padding: .3rem .45rem; text-align: center; }
.fff-ranking span { color: #aaa89f; font-size: .72rem; }
.fff-ranking strong { color: #e1ded4; font-size: .74rem; }
.fff-owner-zone { background: linear-gradient(135deg, rgba(201,168,91,.08), rgba(16,16,15,.9)); border: 1px solid rgba(201,168,91,.25); border-radius: 1rem; padding: 1.25rem; }
.fff-owner-zone > header { display: flex; gap: .8rem; margin-bottom: 1rem; }
.fff-owner-zone > header span { background: var(--fff-gold); border-radius: .2rem; color: #111; font-size: .55rem; font-weight: 900; padding: .25rem .4rem; }
.fff-owner-zone h2 { font-size: .9rem; margin: 0; }
.fff-owner-grid { display: grid; gap: .65rem; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fff-owner-grid article { background: rgba(7,7,6,.45); border-radius: .65rem; display: flex; flex-direction: column; min-height: 5.5rem; padding: .8rem; }
.fff-owner-grid span { color: #797870; direction: ltr; font-size: .57rem; text-align: right; }
.fff-owner-grid strong { color: #d8d4ca; font-size: .72rem; margin-top: auto; }
.fff-owner-grid small { color: var(--fff-gold); font-size: .5rem; margin-top: .2rem; }

.fff-filter-bar { align-items: end; background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .85rem; display: flex; flex-wrap: wrap; gap: .65rem; padding: .85rem; }
.fff-filter-bar label { display: grid; gap: .3rem; min-width: 8rem; }
.fff-filter-bar label span { color: #77766e; font-size: .58rem; }
.fff-filter-bar input, .fff-filter-bar select { background: #191917; border: 1px solid var(--fff-line); border-radius: .45rem; color: #d6d3c9; font-size: .7rem; height: 2.25rem; padding: 0 .65rem; }
.fff-filter-bar button, .fff-filter-bar > a { align-items: center; border-radius: .45rem; display: inline-flex; font-size: .65rem; height: 2.25rem; justify-content: center; padding: 0 .9rem; text-decoration: none; }
.fff-filter-bar button { background: var(--fff-gold); color: #111; font-weight: 800; }
.fff-filter-bar > a { border: 1px solid var(--fff-line); color: #96948b; }
.fff-summary-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.fff-summary-card { background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .75rem; display: grid; gap: .65rem; padding: 1rem; }
.fff-summary-card span { color: #77766e; font-size: .62rem; }
.fff-summary-card strong { color: var(--fff-gold-bright); font-size: 1rem; }
.fff-summary-card strong small { color: #77766e; font-size: .5rem; }
.fff-table-shell { background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .85rem; overflow: hidden; }
.fff-table-scroll { overflow-x: auto; }
.fff-table { border-collapse: collapse; min-width: 62rem; width: 100%; }
.fff-table th { background: #141412; color: #77766e; font-size: .58rem; font-weight: 700; padding: .8rem .75rem; text-align: right; white-space: nowrap; }
.fff-table td { border-top: 1px solid rgba(255,255,255,.045); color: #b9b7ae; font-size: .66rem; max-width: 18rem; padding: .75rem; vertical-align: middle; }
.fff-table tbody tr:hover { background: rgba(201,168,91,.025); }
.fff-pagination { border-top: 1px solid var(--fff-line); padding: .8rem; }
.fff-empty { align-items: center; color: #686761; display: flex; flex-direction: column; gap: .35rem; justify-content: center; min-height: 8rem; text-align: center; }
.fff-empty strong { color: #94928a; font-size: .8rem; }
.fff-empty span { font-size: .62rem; }
.fff-metadata { background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .75rem; color: #77766e; font-size: .65rem; padding: .8rem; }
.fff-metadata pre { direction: ltr; font-size: .6rem; overflow-x: auto; text-align: left; }

.fff-login-brand { align-items: center; direction: ltr; display: flex; gap: .75rem; justify-content: center; margin-bottom: .6rem; }
.fff-login-brand > span { align-items: center; border: 1px solid var(--fff-gold); border-radius: .55rem; color: var(--fff-gold-bright); display: flex; font-size: 1.15rem; font-weight: 900; height: 2.7rem; justify-content: center; letter-spacing: -.08em; width: 2.7rem; }
.fff-login-brand > div { display: flex; flex-direction: column; }
.fff-login-brand strong { color: #eeeade; font-size: .95rem; letter-spacing: .1em; }
.fff-login-brand small { color: var(--fff-gold); font-size: .57rem; letter-spacing: .28em; }
.fff-login-intro { color: #77766e; font-size: .7rem; margin: 0 0 1.4rem; text-align: center; }
.fi-simple-main { background: rgba(15,15,14,.98) !important; border: 1px solid rgba(201,168,91,.2) !important; box-shadow: 0 25px 80px rgba(0,0,0,.55) !important; }
.fi-simple-main .fi-logo { display: none !important; }
.fi-simple-main::before { background: linear-gradient(90deg, transparent, var(--fff-gold), transparent); content: ""; height: 1px; left: 15%; position: absolute; right: 15%; top: 0; }
.fi-input-wrp { background: #191917 !important; border-color: var(--fff-line) !important; }

.fff-topbar-status { align-items: center; direction: ltr; display: flex; gap: .4rem; margin-left: .75rem; overflow: hidden; }
.fff-topbar-date { color: #72716a; font-size: .58rem; white-space: nowrap; }
.fff-topbar-user { color: #b7b4aa; font-size: .58rem; white-space: nowrap; }
.fff-indicator { border: 1px solid var(--fff-line); border-radius: 999px; color: #82817a; font-size: .52rem; padding: .27rem .45rem; white-space: nowrap; }
.fff-indicator--live { border-color: rgba(75,176,123,.22); color: #65c992; }

@media (max-width: 1280px) {
    .fff-kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .fff-account-grid { grid-template-columns: repeat(3, 1fr); }
    .fff-today-grid { grid-template-columns: repeat(5, 1fr); }
    .fff-owner-grid { grid-template-columns: repeat(3, 1fr); }
    .fff-system-strip { grid-template-columns: repeat(2, 1fr); }
    .fff-topbar-status .fff-indicator:not(.fff-indicator--live) { display: none; }
}

@media (max-width: 800px) {
    .fff-hero, .fff-page-heading { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.2rem; }
    .fff-kpi-grid, .fff-two-column { grid-template-columns: 1fr; }
    .fff-account-grid { grid-template-columns: repeat(2, 1fr); }
    .fff-today-grid { grid-template-columns: repeat(2, 1fr); }
    .fff-owner-grid { grid-template-columns: repeat(2, 1fr); }
    .fff-filter-bar { align-items: stretch; }
    .fff-filter-bar label { flex: 1 1 45%; }
    .fff-topbar-status { display: none; }
    .fff-system-strip { grid-template-columns: 1fr; }
    .fff-system-strip > div { border-bottom: 1px solid var(--fff-line); border-left: 0; }
}

@media (max-width: 480px) {
    .fff-account-grid, .fff-owner-grid, .fff-performance-grid { grid-template-columns: 1fr; }
    .fff-section { padding: .9rem; }
    .fff-ranking > div:not(.fff-empty) { grid-template-columns: 5.5rem 1fr; }
    .fff-ranking strong { grid-column: 2; }
}

/* Dashboard V1.1: compact financial control and responsive management views. */
.fi-topbar nav { min-height: 3.35rem; }
.fff-dashboard, .fff-page { gap: .9rem; }
.fff-hero { padding: 1.15rem 1.35rem; }
.fff-hero h1 { font-size: clamp(1.3rem, 2vw, 1.85rem); margin: .22rem 0; }
.fff-hero p { font-size: .75rem; }
.fff-eyebrow small { color: #77766f; font-size: .58rem; letter-spacing: .05em; }
.fff-page-heading { align-items: center; padding: .9rem 1.1rem; }
.fff-page-heading::after { width: 12%; }
.fff-page-heading h1 { font-size: 1.2rem; margin: 0 0 .18rem; }
.fff-page-heading p { font-size: .7rem; }
.fff-kpi-grid { gap: .65rem; }
.fff-kpi { min-height: 6.6rem; padding: .85rem .95rem; }
.fff-kpi::before { height: 1.15rem; top: .85rem; }
.fff-kpi > strong { font-size: clamp(1rem, 1.45vw, 1.35rem); }
.fff-kpi p { font-size: .54rem; }
.fff-system-strip > div { padding: .5rem .75rem; }
.fff-section { padding: .95rem; }
.fff-section > header { margin-bottom: .75rem; padding-bottom: .6rem; }
.fff-account-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fff-account-card { padding: .8rem; }
.fff-account-card strong { margin: .75rem 0 .4rem; }
.fff-control-split { display: grid; gap: .45rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .7rem; }
.fff-control-split > div, .fff-opening-cash { background: rgba(255,255,255,.025); border: 1px solid var(--fff-line); border-radius: .55rem; display: grid; gap: .25rem; padding: .55rem .65rem; }
.fff-control-split span, .fff-opening-cash span { color: #77766e; font-size: .58rem; }
.fff-control-split strong, .fff-opening-cash strong { color: #d7d3c8; font-size: .75rem; }
.fff-opening-cash { margin-top: .65rem; }
.fff-opening-cash small { color: #77766e; font-size: .53rem; }
.fff-business-note, .fff-business-notice { background: rgba(201,168,91,.07); border: 1px solid rgba(201,168,91,.2); border-radius: .65rem; color: #c9c3b4; font-size: .68rem; line-height: 1.6; padding: .65rem .8rem; }
.fff-today-grid article { min-height: 4.7rem; padding: .65rem; }
.fff-owner-zone { padding: .9rem; }
.fff-owner-grid article { min-height: 4.35rem; padding: .65rem; }
.fff-owner-zone > header { align-items: center; margin-bottom: .65rem; }
.fff-owner-zone > header a { color: var(--fff-gold); font-size: .62rem; margin-right: auto; text-decoration: none; }
.fff-control-health-grid { display: grid; gap: .6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fff-control-health-grid article { background: var(--fff-panel-soft); border-radius: .6rem; display: grid; gap: .3rem; padding: .7rem; }
.fff-control-health-grid span { color: #89877f; font-size: .62rem; }
.fff-control-health-grid strong { color: #ddd9ce; font-size: .7rem; }
.fff-control-health-grid small { color: var(--fff-gold); font-size: .55rem; }
.fff-filter-wrap { display: grid; gap: .5rem; }
.fff-filter-toggle { align-items: center; background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .6rem; color: #bcb9ae; display: none; font-size: .68rem; justify-content: space-between; padding: .65rem .75rem; width: 100%; }
.fff-filter-bar { padding: .7rem; }
.fff-summary-card { gap: .4rem; padding: .75rem; }
.fff-table { min-width: 56rem; }
.fff-table th { padding: .65rem; }
.fff-table td { line-height: 1.5; padding: .65rem; }
.fff-cell-details summary { color: #bab7ae; cursor: pointer; }
.fff-cell-details p { color: #88867e; line-height: 1.6; margin: .55rem 0 0; }
.fff-methodology { background: var(--fff-panel); border: 1px solid var(--fff-line); border-radius: .7rem; color: #9c998f; font-size: .65rem; padding: .7rem .8rem; }
.fff-methodology summary { color: #c5c1b6; cursor: pointer; }
.fff-methodology ul { display: grid; gap: .35rem; margin: .65rem 1rem 0 0; padding: 0; }

@media (max-width: 1280px) {
    .fff-account-grid { grid-template-columns: repeat(3, 1fr); }
    .fff-control-health-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    .fff-dashboard, .fff-page { gap: .7rem; }
    .fff-hero { align-items: center; flex-direction: row; gap: .75rem; padding: .8rem .9rem; }
    .fff-hero h1 { font-size: 1.1rem; }
    .fff-hero p { font-size: .62rem; }
    .fff-hero .fff-eyebrow { display: none; }
    .fff-live-pill { font-size: .55rem; padding: .38rem .5rem; }
    .fff-page-heading { align-items: center; flex-direction: row; gap: .7rem; padding: .75rem .8rem; }
    .fff-page-heading h1 { font-size: 1rem; }
    .fff-page-heading p { font-size: .62rem; }
    .fff-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fff-kpi { min-height: 6rem; padding: .72rem; }
    .fff-kpi > span { font-size: .68rem; }
    .fff-kpi > small { font-size: .52rem; }
    .fff-kpi > strong { font-size: .9rem; }
    .fff-two-column { grid-template-columns: 1fr; }
    .fff-account-grid { grid-template-columns: repeat(2, 1fr); }
    .fff-section { padding: .75rem; }
    .fff-section header p { display: none; }
    .fff-today-grid { grid-template-columns: repeat(3, 1fr); }
    .fff-owner-grid { grid-template-columns: repeat(2, 1fr); }
    .fff-system-strip { grid-template-columns: repeat(2, 1fr); }
    .fff-system-strip > div { border-bottom: 1px solid var(--fff-line); }
    .fff-filter-toggle { display: flex; }
    .fff-filter-bar { display: none; }
    .fff-filter-bar--open { align-items: stretch; display: flex; }
    .fff-filter-bar label { flex: 1 1 45%; min-width: 0; }
    .fff-table-scroll { overflow: visible; }
    .fff-table { display: block; min-width: 0; width: 100%; }
    .fff-table thead { display: none; }
    .fff-table tbody { display: grid; gap: .65rem; padding: .65rem; }
    .fff-table tr { background: #151513; border: 1px solid var(--fff-line); border-radius: .65rem; display: grid; overflow: hidden; }
    .fff-table td { align-items: start; border-top: 1px solid rgba(255,255,255,.045); display: grid; gap: .7rem; grid-template-columns: minmax(6.5rem, 38%) 1fr; max-width: none; padding: .58rem .65rem; overflow-wrap: anywhere; }
    .fff-table td::before { color: #77766e; content: attr(data-label); font-size: .58rem; font-weight: 700; }
    .fff-table td:first-child { border-top: 0; }
    .fff-table .fff-empty-row { border: 0; }
    .fff-table .fff-empty-row td { display: block; }
    .fff-table .fff-empty-row td::before { display: none; }
    .fff-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    .fff-account-grid, .fff-performance-grid, .fff-control-split, .fff-control-health-grid { grid-template-columns: 1fr; }
    .fff-today-grid { grid-template-columns: repeat(2, 1fr); }
    .fff-filter-bar label { flex-basis: 100%; }
    .fff-summary-grid { grid-template-columns: 1fr; }
    .fff-owner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fff-receivable-total { align-items: start; flex-direction: column; gap: .35rem; }
}
