:root {
  --navy: #0b2450;
  --blue: #1689ee;
  --sky: #40bfff;
  --ink: #17253c;
  --muted: #66768c;
  --line: #dbe6f0;
  --soft: #f4f8fc;
  --good: #0d9d7a;
  --warn: #e68a1f;
  --bad: #d95757;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff; }
body { padding: 30px; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.frame-root { max-width: 1120px; margin: 0 auto; }
.frame-eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.frame-title { margin: 0; color: var(--navy); font-size: clamp(24px, 4vw, 36px); letter-spacing: -.035em; line-height: 1.08; }
.frame-lead { max-width: 760px; margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.frame-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.frame-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #c9e4f8; border-radius: 999px; color: #0a6ebd; background: #edf8ff; font-size: 11px; font-weight: 800; }
.grid { display: grid; gap: 14px; }
.grid.kpis { grid-template-columns: repeat(4, 1fr); }
.grid.two { grid-template-columns: 1.2fr .8fr; }
.grid.equal { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 7px 22px rgba(13,43,78,.055); }
.card-pad { padding: 20px; }
.kpi { position: relative; overflow: hidden; min-height: 126px; padding: 18px; }
.kpi::after { content: ""; position: absolute; width: 70px; height: 70px; right: -28px; top: -28px; border-radius: 50%; background: #e7f5ff; }
.kpi-label { color: #728197; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kpi-value { margin-top: 14px; color: var(--navy); font-size: clamp(24px, 3.5vw, 34px); font-weight: 780; letter-spacing: -.04em; }
.kpi-note { margin-top: 6px; color: #7b899b; font-size: 11px; }
.kpi-note.good { color: var(--good); }
.kpi-note.warn { color: #b96a0f; }
.section-card { margin-top: 14px; padding: 20px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-heading h3 { margin: 0; color: var(--navy); font-size: 16px; }
.card-heading span { color: #8290a2; font-size: 11px; }
.legend { display: flex; align-items: center; gap: 14px; color: #7a889b; font-size: 11px; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; background: var(--blue); }
.legend i.alt { background: #b9c9d9; }
.month-chart { display: grid; grid-template-columns: repeat(12, minmax(24px, 1fr)); align-items: end; gap: 8px; min-height: 235px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.month { display: flex; align-items: center; flex-direction: column; justify-content: flex-end; height: 220px; gap: 7px; }
.month-bars { display: flex; align-items: end; justify-content: center; gap: 3px; width: 100%; height: 185px; }
.month-bars i { display: block; width: 36%; min-height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(to top, #0e74cf, #3aacf7); }
.month-bars i.alt { background: #c2cfdb; }
.month label { color: #8290a2; font-size: 11px; }
.aging-list { display: grid; gap: 12px; }
.aging-row { display: grid; grid-template-columns: 78px 1fr 100px 42px; align-items: center; gap: 12px; }
.aging-row label { color: #55677e; font-size: 12px; font-weight: 720; }
.aging-track { overflow: hidden; height: 9px; border-radius: 999px; background: #eaf0f5; }
.aging-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #28a8f4, #0f70d0); }
.aging-row.is-old .aging-track i { background: linear-gradient(90deg, #f1a444, #db5c57); }
.aging-row strong { color: var(--navy); font-size: 12px; text-align: right; }
.aging-row span { color: #8794a5; font-size: 11px; text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; color: #7b899a; background: #f7f9fb; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 13px 12px; border-bottom: 1px solid #e7edf3; color: #44566d; font-size: 12px; }
td strong { color: var(--navy); }
th.num, td.num { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 4px 7px; border-radius: 5px; color: #0b8366; background: #e6f7f2; font-size: 11px; font-weight: 800; }
.status.warn { color: #ad6209; background: #fff2dd; }
.control-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: 20px; }
.story { position: relative; overflow: hidden; padding: 28px; color: #fff; border: 0; background: radial-gradient(circle at 90% 5%, rgba(64,191,255,.28), transparent 32%), linear-gradient(145deg, #09214a, #0c477e); }
.story::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; bottom: -90px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.03), 0 0 0 84px rgba(255,255,255,.025); }
.story-kicker { color: #88d7ff; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.story h2 { max-width: 390px; margin: 16px 0 14px; font-size: clamp(29px, 4vw, 43px); line-height: 1.03; letter-spacing: -.04em; }
.story > p { max-width: 430px; margin: 0; color: #c5d7e9; font-size: 14px; line-height: 1.7; }
.story-steps { display: grid; gap: 10px; margin-top: 28px; }
.story-step { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 10px; color: #dbe9f5; font-size: 12px; }
.story-step span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #82d3ff; font-weight: 850; }
.entry { padding: 25px; }
.entry h3 { margin: 0; color: var(--navy); font-size: 20px; }
.entry > p { margin: 7px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #55667c; font-size: 11px; font-weight: 800; }
.field select, .field input { width: 100%; min-height: 42px; border: 1px solid #cddbe7; border-radius: 8px; padding: 9px 11px; color: #273b55; background: #fff; outline: none; }
.field select:focus, .field input:focus { border-color: #1d93ed; box-shadow: 0 0 0 3px rgba(29,147,237,.12); }
.dynamic-fields { display: contents; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.primary { border: 0; border-radius: 8px; padding: 11px 15px; color: #fff; background: linear-gradient(135deg, #0873d1, #1598ee); font-size: 12px; font-weight: 820; box-shadow: 0 8px 20px rgba(14,120,207,.2); }
.primary:disabled { opacity: .55; cursor: wait; }
.link-button { border: 0; padding: 8px; color: #718198; background: transparent; font-size: 11px; font-weight: 700; }
.form-message { min-height: 18px; margin-top: 12px; font-size: 11px; }
.form-message.good { color: var(--good); }
.form-message.bad { color: var(--bad); }
.activity-list { display: grid; gap: 9px; }
.activity { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e7edf3; }
.activity:last-child { border-bottom: 0; }
.activity time { color: #8592a3; font-size: 11px; }
.activity strong { display: block; color: #30445f; font-size: 12px; }
.activity small { color: #8390a1; font-size: 11px; }
.activity b { color: var(--navy); font-size: 12px; }
.activity b.outflow { color: #bd5d50; }
.account-list { display: grid; gap: 11px; }
.account { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 15px; border: 1px solid #e0e8f0; border-radius: 10px; background: #fbfdff; }
.account strong { color: var(--navy); font-size: 13px; }
.account > b { color: #0d73c9; font-size: 17px; }
.account small { color: #8492a4; font-size: 11px; }
.flow { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.flow span { padding: 6px 8px; border-radius: 5px; color: #0b8166; background: #edf8f5; font-size: 11px; }
.flow span:last-child { color: #a45e0b; background: #fff5e8; }
.split-bars { display: grid; gap: 11px; }
.split-bar { display: grid; grid-template-columns: 92px 1fr 94px; align-items: center; gap: 10px; }
.split-bar label { color: #5a6b80; font-size: 11px; font-weight: 720; }
.split-track { position: relative; overflow: hidden; height: 12px; border-radius: 999px; background: #eaf0f5; }
.split-track i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #1689ee; }
.split-track i.ap { background: #f0a03c; }
.split-bar strong { color: var(--navy); font-size: 11px; text-align: right; }
.empty-note { padding: 14px; border: 1px dashed #cbd9e5; border-radius: 9px; color: #718198; background: #f8fbfd; font-size: 11px; line-height: 1.5; }
@media (max-width: 800px) {
  body { padding: 20px 16px; }
  .grid.kpis { grid-template-columns: repeat(2, 1fr); }
  .grid.two, .grid.equal, .control-layout { grid-template-columns: 1fr; }
  .month-chart { gap: 4px; overflow-x: auto; }
  .month { min-width: 31px; }
  .aging-row { grid-template-columns: 68px 1fr 76px; }
  .aging-row span { display: none; }
}
@media (max-width: 520px) {
  body { padding: 17px 12px; }
  .frame-header { flex-direction: column; }
  .grid.kpis, .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .story, .entry, .card-pad, .section-card { padding: 18px; }
  .kpi { min-height: 110px; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .primary { width: 100%; }
}