:root {
  --blue: #1e6cff;
  --blue-2: #0c55dc;
  --navy: #06111f;
  --navy-2: #0a1828;
  --panel: #0d1c2d;
  --panel-2: #11243a;
  --field: #081625;
  --line: #243a50;
  --text: #f5f9ff;
  --muted: #9eb0c4;
  --muted-2: #72879c;
  --green: #20d6b0;
  --red: #ff6470;
  --amber: #f4ad45;
  --violet: #9f7aea;
  --sidebar: 282px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy); color-scheme: dark; }
body { min-height: 100%; margin: 0; background: #07111e; color: var(--text); font-family: "Segoe UI Variable Display", "Segoe UI", Tahoma, Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.48; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Authentication and installer */
.yf-auth-page { display: grid; min-height: 100vh; place-items: center; padding: 30px; background: radial-gradient(circle at 16% 15%, rgba(30,108,255,.24), transparent 34%), radial-gradient(circle at 88% 86%, rgba(32,214,176,.10), transparent 25%), #050d17; }
.yf-login-shell, .yf-install-shell { width: min(1120px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid rgba(121,158,193,.22); border-radius: 24px; background: rgba(8,20,34,.94); box-shadow: 0 40px 120px rgba(0,0,0,.48); }
.yf-install-shell { width: min(1240px, 100%); grid-template-columns: .78fr 1.22fr; }
.yf-auth-brand { display: flex; flex-direction: column; justify-content: center; min-height: 650px; padding: 58px; background: linear-gradient(155deg, rgba(17,48,86,.72), rgba(6,17,31,.8)), radial-gradient(circle at 0 0, rgba(30,108,255,.28), transparent 50%); }
.yf-auth-brand img { width: 205px; height: 64px; margin-bottom: 66px; border-radius: 6px; object-fit: cover; }
.yf-auth-brand > span, .yf-eyebrow { color: #6ea2ff; font-size: 12px; font-weight: 900; letter-spacing: .17em; }
.yf-auth-brand h1 { max-width: 610px; margin: 16px 0 20px; font-size: clamp(38px, 5vw, 62px); font-weight: 900; line-height: 1.04; letter-spacing: -.045em; }
.yf-auth-brand p { max-width: 590px; margin: 0; color: #b8c7d7; font-size: 17px; line-height: 1.72; }
.yf-auth-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.yf-auth-points b { padding: 10px 14px; border: 1px solid #2b4763; border-radius: 10px; background: rgba(5,16,29,.7); color: #dbe8f5; font-size: 13px; }
.yf-auth-card { display: flex; flex-direction: column; justify-content: center; padding: 58px; background: #0a1726; }
.yf-auth-card-head h2, .yf-auth-card > div:first-child h2 { margin: 10px 0 8px; font-size: 34px; font-weight: 900; letter-spacing: -.03em; }
.yf-auth-card-head p, .yf-auth-card > div:first-child p { margin: 0 0 30px; color: var(--muted); }
.yf-login-form { display: grid; gap: 18px; }
.yf-login-form label, .yf-install-form label { display: grid; gap: 8px; color: #d9e5f1; font-weight: 750; }
.yf-login-form input, .yf-install-form input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #2a435c; border-radius: 10px; outline: 0; background: #071422; color: white; font-size: 16px; font-weight: 650; transition: .2s; }
.yf-login-form input:focus, .yf-install-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,108,255,.14); }
.yf-install-card { padding: 42px 50px; }
.yf-install-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yf-install-form .full { grid-column: 1 / -1; }
.yf-install-form small { color: var(--muted); font-size: 12px; }
.yf-form-section { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.yf-form-section strong { font-size: 16px; }
.yf-form-section span { color: var(--muted); font-size: 13px; }
.yf-form-error, .yf-form-success { margin: 20px 0; padding: 13px 15px; border-radius: 10px; font-weight: 700; }
.yf-form-error { border: 1px solid rgba(255,100,112,.36); background: rgba(255,100,112,.10); color: #ffabb2; }
.yf-form-success { border: 1px solid rgba(32,214,176,.36); background: rgba(32,214,176,.10); color: #83efd9; }
.yf-auth-security { margin: 20px 0 0; color: var(--muted-2); text-align: center; font-size: 12px; }
.yf-auth-link { display: block; margin-top: 18px; color: #78a7ff; text-align: center; font-size: 13px; font-weight: 800; text-decoration: none; }
.yf-auth-link:hover { color: #a8c6ff; text-decoration: underline; }
.yf-login-form small { color: var(--muted); font-size: 11px; }
.yf-recovery-shell { width: min(720px, 100%); }
.yf-recovery-shell .yf-auth-card { min-height: 560px; border: 1px solid rgba(121,158,193,.22); border-radius: 24px; box-shadow: 0 40px 120px rgba(0,0,0,.48); }
.yf-recovery-warning { display: grid; gap: 4px; margin: 18px 0; padding: 15px 17px; border: 1px solid rgba(244,173,69,.38); border-radius: 11px; background: rgba(244,173,69,.08); }
.yf-recovery-warning strong { color: #ffd08a; }
.yf-recovery-warning span { color: #b9c8d8; font-size: 13px; line-height: 1.55; }
.yf-recovery-code { margin: 19px 0; padding: 22px 16px; overflow-wrap: anywhere; border: 1px solid #37618a; border-radius: 13px; background: #06111e; color: #fff; text-align: center; font-family: Consolas, "Courier New", monospace; font-size: clamp(19px, 3vw, 28px); font-weight: 900; letter-spacing: .06em; user-select: all; }
.yf-recovery-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; }
.yf-recovery-actions .yf-btn { text-decoration: none; }

/* Shell */
.yf-shell { min-height: 100vh; }
.yf-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; padding: 22px 16px 16px; border-right: 1px solid #1c3145; background: linear-gradient(180deg, #071729, #06111f); box-shadow: 14px 0 50px rgba(0,0,0,.12); }
.yf-logo-wrap { width: 184px; height: 52px; margin: 0 7px 18px; overflow: hidden; border-radius: 6px; background: white; }
.yf-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.yf-workspace { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 11px; width: 100%; min-height: 57px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid #1e3850; border-radius: 11px; background: #0b1d30; text-align: start; cursor: pointer; }
.yf-workspace > i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(32,214,176,.09); }
.yf-workspace span { display: grid; }
.yf-workspace small { color: #6384a2; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.yf-workspace strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.yf-workspace > b { color: var(--muted); font-size: 20px; }
.yf-nav { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #28445f transparent; padding: 0 2px 20px; }
.yf-nav-title { display: block; margin: 17px 11px 7px; color: #55728e; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.yf-nav button { display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 7px; width: 100%; min-height: 43px; margin: 3px 0; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #a9bdd0; text-align: start; font-weight: 700; cursor: pointer; transition: .18s; }
.yf-nav button > i { display: grid; width: 25px; height: 25px; place-items: center; color: #7792ad; font-style: normal; font-size: 18px; }
.yf-nav button:hover { background: #10253a; color: white; }
.yf-nav button.active { background: linear-gradient(135deg, #1e6cff, #0754d8); color: white; box-shadow: 0 10px 26px rgba(30,108,255,.22); }
.yf-nav button.active i { color: white; }
.yf-nav button > b { min-width: 21px; padding: 2px 6px; border-radius: 20px; background: var(--red); color: white; font-size: 10px; text-align: center; }
.yf-local-card { display: flex; align-items: center; gap: 10px; margin: 6px 4px 12px; padding: 12px; border: 1px solid #1f3a52; border-radius: 10px; background: #091a2a; }
.yf-local-card > i { color: #4f91ff; font-style: normal; font-size: 21px; }
.yf-local-card > span { display: grid; }
.yf-local-card strong { font-size: 12px; }
.yf-local-card small { color: #637f99; font-size: 10px; }
.yf-profile { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid #213b53; border-radius: 11px; background: #0b1c2d; text-align: start; cursor: pointer; }
.yf-profile > span:nth-child(2), .yf-user-menu-button > span:nth-child(2) { display: grid; }
.yf-profile strong, .yf-user-menu-button strong { font-size: 13px; }
.yf-profile small, .yf-user-menu-button small { color: var(--muted); font-size: 10px; }
.yf-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--blue); color: white; font-weight: 900; }
.yf-main { min-height: 100vh; margin-left: var(--sidebar); }
.yf-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; min-height: 78px; padding: 12px 28px; border-bottom: 1px solid #1c3044; background: rgba(6,17,31,.94); backdrop-filter: blur(18px); }
.yf-mobile-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: pointer; }
.yf-search { position: relative; display: flex; align-items: center; width: min(620px, 48vw); height: 46px; border: 1px solid #233d56; border-radius: 10px; background: #0a1b2d; }
.yf-search > i { margin: 0 11px 0 15px; color: #7290ab; font-style: normal; font-size: 24px; }
.yf-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 14px; font-weight: 650; }
.yf-search input::placeholder { color: #71889e; }
.yf-search button { width: 37px; height: 37px; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.yf-top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.yf-top-date { display: flex; gap: 8px; margin-right: 6px; color: #8ca4bb; font-size: 12px; text-transform: capitalize; }
.yf-top-control, .yf-icon-button { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid #233d56; border-radius: 9px; background: #0b1c2e; font-weight: 900; cursor: pointer; }
.yf-notification-button { position: relative; }
.yf-notification-button > b { position: absolute; top: -5px; right: -5px; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 4px; border: 2px solid #06111f; border-radius: 20px; background: var(--red); color: white; font-size: 9px; }
.yf-user-menu-button { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-width: 180px; min-height: 48px; padding: 4px 8px; border: 1px solid #233d56; border-radius: 10px; background: #0b1c2e; text-align: start; cursor: pointer; }
.yf-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 31px 30px 20px; }
.yf-page-head > div > span { color: #5791ff; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.yf-page-head h1 { margin: 6px 0 2px; font-size: clamp(30px, 3vw, 41px); font-weight: 900; line-height: 1.12; letter-spacing: -.038em; }
.yf-page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.yf-content { padding: 0 30px 50px; }
.yf-stack { display: grid; gap: 18px; }

/* Generic components */
.yf-card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #0d1c2d, #0b1928); box-shadow: 0 12px 38px rgba(0,0,0,.10); }
.yf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 9px; font-weight: 800; cursor: pointer; transition: .18s; }
.yf-btn.primary { border: 1px solid #2675ff; background: linear-gradient(135deg, #2374ff, #0d58dc); color: white; box-shadow: 0 10px 24px rgba(30,108,255,.19); }
.yf-btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.yf-btn.ghost { border: 1px solid #2a435c; background: #0c1d2e; color: #dce8f4; }
.yf-btn.danger { border: 1px solid rgba(255,100,112,.45); background: rgba(255,100,112,.10); color: #ff9ca4; }
.yf-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.yf-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.yf-card-title, .yf-module-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.yf-card-title h2, .yf-module-toolbar h2 { margin: 0; font-size: 19px; font-weight: 900; }
.yf-card-title p, .yf-module-toolbar p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.yf-eyebrow { display: block; }
.yf-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.yf-kpi { min-height: 134px; padding: 20px; overflow: hidden; position: relative; }
.yf-kpi::after { content: ""; position: absolute; right: -22px; bottom: -38px; width: 110px; height: 110px; border-radius: 50%; background: rgba(30,108,255,.07); }
.yf-kpi small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.yf-kpi strong { display: block; margin: 10px 0 5px; font-size: 28px; font-weight: 900; letter-spacing: -.035em; }
.yf-kpi span { color: var(--muted-2); font-size: 11px; }
.yf-kpi.green strong { color: #51e0c4; }
.yf-kpi.red strong { color: #ff8690; }
.yf-kpi.amber strong { color: #ffc46d; }
.yf-liquidity { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }
.yf-liquidity-main { padding: 27px; background: radial-gradient(circle at 100% 0, rgba(30,108,255,.17), transparent 45%), #0c1d2f; }
.yf-liquidity-main > small { color: #76a7ff; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.yf-liquidity-main > strong { display: block; margin: 8px 0 18px; font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: -.05em; }
.yf-account-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.yf-account-pills button { padding: 10px 13px; border: 1px solid #2a455e; border-radius: 9px; background: #0a1929; cursor: pointer; }
.yf-account-pills button b { margin-left: 6px; }
.yf-liquidity-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.yf-liquidity-side > div { display: grid; align-content: center; padding: 24px; background: #0b1a2a; }
.yf-liquidity-side small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.yf-liquidity-side strong { margin-top: 8px; font-size: 22px; }
.yf-dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; }
.yf-chart-card, .yf-debt-card, .yf-table-card, .yf-panel, .yf-module-toolbar { padding: 21px; }
.yf-chart { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 7px; height: 220px; margin-top: 25px; padding: 18px 10px 0; border-bottom: 1px solid #2a4056; background: repeating-linear-gradient(to top, transparent 0, transparent 43px, rgba(100,130,160,.09) 44px); }
.yf-chart-col { display: grid; grid-template-rows: 1fr auto; align-items: end; gap: 8px; height: 100%; text-align: center; }
.yf-chart-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 100%; }
.yf-chart-bars i { width: 8px; min-height: 2px; border-radius: 4px 4px 0 0; }
.yf-chart-bars .in { background: var(--green); }
.yf-chart-bars .out { background: var(--red); }
.yf-chart-col small { color: var(--muted-2); font-size: 9px; text-transform: uppercase; }
.yf-debt-list { display: grid; gap: 10px; margin-top: 18px; }
.yf-debt-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid #22394e; border-radius: 10px; background: #0a1827; }
.yf-debt-row > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; font-weight: 900; }
.yf-debt-row > div { display: grid; }
.yf-debt-row small { color: var(--muted); font-size: 11px; }
.yf-debt-row > b { color: #ffcb7e; }
.yf-logic { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; padding: 20px; }
.yf-logic > div { padding: 16px; border: 1px solid #243e56; border-radius: 10px; background: #091827; text-align: center; }
.yf-logic strong { display: block; }
.yf-logic small { color: var(--muted); }
.yf-logic > b { color: #4d7eaa; font-size: 22px; }

/* Tables and filters */
.yf-table-card { padding: 0; overflow: hidden; }
.yf-table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #0a1929; color: #7890a7; text-align: left; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 16px; border-bottom: 1px solid #1c3144; color: #d8e4f0; vertical-align: middle; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(30,108,255,.025); }
td strong { display: block; color: white; font-weight: 850; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.yf-amount { font-weight: 900; white-space: nowrap; }
.yf-amount.positive { color: #4ce0c1; }
.yf-amount.negative { color: #ff8992; }
.yf-chip { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border: 1px solid #2b465f; border-radius: 20px; background: #10243a; color: #c5d5e5; font-size: 10px; font-weight: 800; white-space: nowrap; }
.yf-chip.paid, .yf-chip.active { border-color: rgba(32,214,176,.35); background: rgba(32,214,176,.1); color: #62e3c9; }
.yf-chip.due, .yf-chip.warning { border-color: rgba(244,173,69,.35); background: rgba(244,173,69,.1); color: #ffc46d; }
.yf-chip.danger { border-color: rgba(255,100,112,.36); background: rgba(255,100,112,.1); color: #ff9ca5; }
.yf-row-button, .yf-link-button { border: 0; background: transparent; color: #74a5ff; font-weight: 800; cursor: pointer; }
.yf-row-button.danger { color: #ff858f; }
.yf-filters { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; padding: 14px; }
.yf-filter label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.yf-filter select, .yf-filter input { min-height: 40px; padding: 0 10px; border: 1px solid #29445e; border-radius: 8px; outline: 0; background: #081625; color: white; font-weight: 700; }
.yf-module-toolbar { min-height: 92px; }
.yf-module-toolbar > div:first-child { display: flex; align-items: center; gap: 13px; }
.yf-module-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: rgba(30,108,255,.14); color: #6fa3ff; font-size: 22px; }
.yf-empty { display: grid; min-height: 320px; place-items: center; padding: 40px; text-align: center; }
.yf-empty > div { max-width: 450px; }
.yf-empty i { display: grid; width: 70px; height: 70px; margin: 0 auto 17px; place-items: center; border-radius: 18px; background: rgba(30,108,255,.12); color: #6ea2ff; font-size: 30px; font-style: normal; }
.yf-empty h2 { margin: 0 0 7px; font-size: 22px; }
.yf-empty p { margin: 0 0 19px; color: var(--muted); }
.yf-project-cell { display: flex; align-items: center; gap: 10px; }
.yf-project-cell > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: white; font-weight: 900; }
.yf-project-row { cursor: pointer; }
.yf-inline-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yf-inline-stats > div { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #0b1a2a; }
.yf-inline-stats small { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.yf-inline-stats strong { display: block; margin-top: 6px; font-size: 21px; }

/* Members, accounts, settings */
.yf-members-grid, .yf-account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.yf-member-card { padding: 20px; }
.yf-member-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; }
.yf-member-head > span:first-child { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; font-weight: 900; }
.yf-member-head h2 { margin: 0; font-size: 19px; }
.yf-member-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.yf-member-balance { display: flex; align-items: flex-end; justify-content: space-between; margin: 18px 0 12px; padding: 20px; border: 1px solid #25425c; border-radius: 12px; background: radial-gradient(circle at 100% 0, rgba(30,108,255,.16), transparent 45%), #081727; }
.yf-member-balance span { color: var(--muted); font-size: 11px; }
.yf-member-balance strong { font-size: 28px; }
.yf-member-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yf-member-stats > div { padding: 12px; border-radius: 9px; background: #081625; }
.yf-member-stats small { display: block; color: var(--muted); }
.yf-member-stats b { display: block; margin-top: 4px; }
.yf-member-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; }
.yf-account-card { overflow: hidden; }
.yf-account-card-head { padding: 22px; background: radial-gradient(circle at 100% 0, rgba(30,108,255,.18), transparent 48%), #0c2034; }
.yf-account-card-head small { color: #7ca8d3; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.yf-account-card-head strong { display: block; margin: 7px 0; font-size: 34px; }
.yf-account-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.yf-account-card-body > div { padding: 14px 18px; background: #0b1928; }
.yf-account-card-body small { display: block; color: var(--muted); }
.yf-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yf-settings-card { padding: 21px; }
.yf-settings-card.full { grid-column: 1 / -1; }
.yf-settings-card h2 { margin: 0; font-size: 18px; }
.yf-settings-card > p { margin: 4px 0 18px; color: var(--muted); font-size: 12px; }
.yf-category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.yf-category-list span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #29445d; border-radius: 20px; background: #0b1b2c; font-size: 11px; }
.yf-category-list button { border: 0; background: transparent; color: #ff828c; cursor: pointer; }
.yf-danger-zone { border-color: rgba(255,100,112,.35); background: rgba(255,100,112,.035); }

/* Forms, modal, drawer, popover */
.yf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yf-form-grid .full { grid-column: 1 / -1; }
.yf-field { display: grid; gap: 7px; }
.yf-field > span { color: #c9d7e5; font-size: 12px; font-weight: 800; }
.yf-field input, .yf-field select, .yf-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #2a465f; border-radius: 9px; outline: 0; background: #071522; color: white; font-weight: 650; }
.yf-field textarea { min-height: 90px; resize: vertical; }
.yf-field input:focus, .yf-field select:focus, .yf-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,108,255,.12); }
.yf-field small { color: var(--muted); font-size: 10px; }
.yf-file-field { position: relative; display: grid; min-height: 75px; place-items: center; border: 1px dashed #385a78; border-radius: 10px; background: rgba(30,108,255,.035); cursor: pointer; }
.yf-file-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.yf-file-field span { color: #aac2da; font-weight: 750; }
.yf-file-field small { display: block; color: var(--muted); font-size: 10px; }
.yf-modal-backdrop, .yf-drawer-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(2,8,15,.74); backdrop-filter: blur(5px); }
.yf-overlay-dismiss { position: absolute; inset: 0; border: 0; background: transparent; cursor: default; }
.yf-modal { position: relative; z-index: 1; width: min(680px, 100%); max-height: 92vh; overflow-y: auto; border: 1px solid #2b4862; border-radius: 16px; background: #0b1928; box-shadow: var(--shadow); }
.yf-modal.wide { width: min(840px, 100%); }
.yf-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.yf-modal-head h2 { margin: 0; font-size: 22px; }
.yf-modal-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.yf-modal-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #29435b; border-radius: 9px; background: #0d2134; font-size: 20px; cursor: pointer; }
.yf-modal-body { padding: 22px; }
.yf-modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 22px; border-top: 1px solid var(--line); background: #091725; }
.yf-drawer-backdrop { display: block; padding: 0; }
.yf-drawer { position: absolute; z-index: 1; top: 0; right: 0; width: min(540px, 100%); height: 100%; overflow-y: auto; border-left: 1px solid #2c475f; background: #0a1827; box-shadow: -30px 0 80px rgba(0,0,0,.28); }
.yf-drawer-head { display: flex; align-items: center; gap: 14px; padding: 23px; border-bottom: 1px solid var(--line); }
.yf-drawer-head > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 13px; font-weight: 900; }
.yf-drawer-head > div { flex: 1; }
.yf-drawer-head h2 { margin: 0; font-size: 22px; }
.yf-drawer-head p { margin: 3px 0 0; color: var(--muted); }
.yf-drawer-body { display: grid; gap: 16px; padding: 21px; }
.yf-treasury-box { padding: 20px; border: 1px solid #2b4a65; border-radius: 12px; background: radial-gradient(circle at 100% 0, rgba(30,108,255,.18), transparent 50%), #0b1d30; }
.yf-treasury-box > small { color: #77a7ff; font-weight: 900; letter-spacing: .1em; }
.yf-treasury-box > strong { display: block; margin: 7px 0 16px; font-size: 34px; }
.yf-formula { display: grid; gap: 6px; padding-top: 13px; border-top: 1px solid #2c4962; color: #a8bbce; font-size: 12px; }
.yf-movement-list { display: grid; gap: 8px; }
.yf-movement { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border: 1px solid #233b52; border-radius: 9px; background: #081625; }
.yf-movement small { display: block; color: var(--muted); }
.yf-popover { position: fixed; top: 72px; right: 28px; z-index: 90; width: min(420px, calc(100vw - 32px)); overflow: hidden; border: 1px solid #2b485f; border-radius: 14px; background: #0b1a2a; box-shadow: var(--shadow); }
.yf-popover-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.yf-popover-head button { border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.yf-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; }
.yf-quick-grid button { min-height: 75px; border: 1px solid #29445d; border-radius: 10px; background: #0a1c2d; font-weight: 800; cursor: pointer; }
.yf-notification-list { display: grid; max-height: 430px; overflow-y: auto; }
.yf-notification-list button { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 17px; border: 0; border-bottom: 1px solid #1e3449; background: transparent; text-align: start; cursor: pointer; }
.yf-notification-list button:hover { background: #10243a; }
.yf-notification-list i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: rgba(244,173,69,.1); color: #ffc46d; font-style: normal; }
.yf-notification-list strong { display: block; }
.yf-notification-list small { color: var(--muted); }
.yf-profile-popover { padding: 14px; }
.yf-profile-summary { display: grid; grid-template-columns: 45px 1fr; gap: 12px; padding: 8px 6px 17px; border-bottom: 1px solid var(--line); }
.yf-profile-summary span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; background: var(--blue); font-weight: 900; }
.yf-profile-summary small { display: block; color: var(--muted); }
.yf-profile-popover > button, .yf-profile-popover form button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: start; cursor: pointer; }
.yf-profile-popover > button:hover, .yf-profile-popover form button:hover { background: #10253a; }
.yf-profile-popover form { margin: 0; }
.yf-toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: 430px; padding: 14px 18px; border: 1px solid #33516a; border-radius: 10px; background: #10263a; box-shadow: var(--shadow); font-weight: 750; }
.yf-toast.error { border-color: rgba(255,100,112,.55); background: #321824; color: #ffbdc2; }
.yf-loading { display: flex; justify-content: center; gap: 8px; min-height: 300px; align-items: center; }
.yf-loading i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); animation: pulse 1s infinite alternate; }
.yf-loading i:nth-child(2) { animation-delay: .18s; }
.yf-loading i:nth-child(3) { animation-delay: .36s; }
@keyframes pulse { to { opacity: .25; transform: translateY(-7px); } }
.yf-scrim { display: none; }

html[dir="rtl"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
html[dir="rtl"] .yf-sidebar { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid #1c3145; }
html[dir="rtl"] .yf-main { margin-left: 0; margin-right: var(--sidebar); }
html[dir="rtl"] th { text-align: right; }
html[dir="rtl"] .yf-top-actions { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .yf-popover { right: auto; left: 28px; }
html[dir="rtl"] .yf-drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid #2c475f; }

@media (max-width: 1180px) {
  .yf-top-date { display: none; }
  .yf-user-menu-button { min-width: 52px; }
  .yf-user-menu-button > span:nth-child(2), .yf-user-menu-button > b { display: none; }
  .yf-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .yf-dashboard-grid { grid-template-columns: 1fr; }
  .yf-filters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar: 278px; }
  .yf-sidebar { transform: translateX(-105%); transition: transform .24s ease; }
  .yf-sidebar.is-open { transform: translateX(0); }
  html[dir="rtl"] .yf-sidebar { transform: translateX(105%); }
  html[dir="rtl"] .yf-sidebar.is-open { transform: translateX(0); }
  .yf-main, html[dir="rtl"] .yf-main { margin: 0; }
  .yf-mobile-menu { display: grid; place-items: center; }
  .yf-scrim { position: fixed; inset: 0; z-index: 45; border: 0; background: rgba(0,0,0,.62); }
  .yf-scrim.is-visible { display: block; }
  .yf-search { width: min(560px, 65vw); }
  .yf-login-shell, .yf-install-shell { grid-template-columns: 1fr; }
  .yf-auth-brand { min-height: auto; padding: 38px; }
  .yf-auth-brand img { margin-bottom: 35px; }
  .yf-auth-card { padding: 38px; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .yf-auth-page { padding: 12px; }
  .yf-auth-brand { display: none; }
  .yf-auth-card, .yf-install-card { padding: 28px 20px; }
  .yf-recovery-actions { grid-template-columns: 1fr; }
  .yf-install-form { grid-template-columns: 1fr; }
  .yf-install-form .full { grid-column: auto; }
  .yf-topbar { min-height: 68px; padding: 10px 14px; }
  .yf-search { width: auto; flex: 1; }
  .yf-top-actions { gap: 5px; }
  .yf-top-actions .yf-top-control, #quick-button { display: none; }
  .yf-icon-button { min-width: 39px; height: 39px; }
  .yf-user-menu-button { display: none; }
  .yf-page-head { align-items: flex-start; padding: 23px 16px 16px; }
  .yf-page-head .yf-btn { min-width: 42px; width: 42px; overflow: hidden; padding: 0; font-size: 0; }
  .yf-page-head .yf-btn::before { content: "+"; font-size: 20px; }
  .yf-content { padding: 0 16px 35px; }
  .yf-kpi-grid, .yf-inline-stats, .yf-members-grid, .yf-account-grid, .yf-settings-grid { grid-template-columns: 1fr; }
  .yf-settings-card.full { grid-column: auto; }
  .yf-liquidity { grid-template-columns: 1fr; }
  .yf-liquidity-side { grid-template-columns: 1fr 1fr; }
  .yf-chart { gap: 3px; height: 190px; }
  .yf-chart-bars i { width: 5px; }
  .yf-logic { grid-template-columns: 1fr; }
  .yf-logic > b { transform: rotate(90deg); }
  .yf-filters { grid-template-columns: 1fr 1fr; }
  .yf-form-grid { grid-template-columns: 1fr; }
  .yf-form-grid .full { grid-column: auto; }
  .yf-modal-backdrop { padding: 8px; }
  .yf-modal { max-height: 96vh; }
  .yf-popover, html[dir="rtl"] .yf-popover { top: 64px; right: 10px; left: auto; }
  .yf-toast { right: 12px; bottom: 12px; left: 12px; }
}

@media print {
  .yf-auth-page { padding: 40px; background: #fff; color: #000; }
  .yf-auth-brand, .yf-recovery-actions, .yf-auth-security, .yf-auth-link { display: none !important; }
  .yf-login-shell, .yf-install-shell, .yf-recovery-shell, .yf-recovery-shell .yf-auth-card { display: block; width: 100%; min-height: auto; border: 0; background: #fff; box-shadow: none; }
  .yf-auth-card { padding: 0; background: #fff; color: #000; }
  .yf-auth-card p, .yf-recovery-warning span { color: #333; }
  .yf-recovery-warning, .yf-recovery-code { border-color: #333; background: #fff; color: #000; }
}

.yf-accent { color: #fff; }
.yf-accent-blue { background: #1769ff; }
.yf-accent-green { background: #00b894; }
.yf-accent-purple { background: #8056d9; }
.yf-accent-amber { background: #e59a21; }
.yf-accent-red { background: #e5566f; }
.yf-card-section { padding: 20px; }
.yf-empty-compact { min-height: 150px; }
.yf-space-top { margin-top: 16px; }
.yf-space-top-sm { margin-top: 12px; }
.yf-space-top-lg { margin-top: 18px; }
.yf-history-banner { border-color: #31506b; }
.yf-notification-empty { padding: 28px; text-align: center; color: var(--muted); }
.yf-read-all { margin: 12px; width: calc(100% - 24px); }
.yf-height-0 { height: 2%; }
.yf-height-1 { height: 5%; }
.yf-height-2 { height: 10%; }
.yf-height-3 { height: 15%; }
.yf-height-4 { height: 20%; }
.yf-height-5 { height: 25%; }
.yf-height-6 { height: 30%; }
.yf-height-7 { height: 35%; }
.yf-height-8 { height: 40%; }
.yf-height-9 { height: 45%; }
.yf-height-10 { height: 50%; }
.yf-height-11 { height: 55%; }
.yf-height-12 { height: 60%; }
.yf-height-13 { height: 65%; }
.yf-height-14 { height: 70%; }
.yf-height-15 { height: 75%; }
.yf-height-16 { height: 80%; }
.yf-height-17 { height: 85%; }
.yf-height-18 { height: 90%; }
.yf-height-19 { height: 95%; }
.yf-height-20 { height: 100%; }
