:root {
  --ink: #17302f;
  --muted: #667a76;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --surface-2: #f1f4ef;
  --line: #d9dfd8;
  --green: #176e63;
  --green-dark: #153d3a;
  --green-soft: #dcece6;
  --blue: #42738a;
  --blue-soft: #e1edf1;
  --amber: #bd772d;
  --amber-soft: #f7e9d4;
  --red: #a84d45;
  --red-soft: #f5dfdc;
  --shadow: 0 12px 35px rgba(24, 55, 52, .07);
  --radius: 16px;
  --sidebar: 226px;
  font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 110, 99, .2); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.1; letter-spacing: -.035em; }
h2 { margin-bottom: .25rem; font-size: 1.05rem; letter-spacing: -.015em; }
h3 { margin-bottom: .35rem; font-size: .9rem; }
p { line-height: 1.55; }
small, .muted { color: var(--muted); }
[hidden] { display: none !important; }

.eyebrow { margin-bottom: .28rem; color: var(--green); font-size: .63rem; font-weight: 850; letter-spacing: .105em; text-transform: uppercase; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--green); color: white; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 8px 20px rgba(23,110,99,.22); }
.brand-mark.small { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(440px, .75fr); }
.login-brand { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 8rem); display: flex; flex-direction: column; justify-content: center; background: var(--green-dark); color: #f8f4eb; }
.login-brand::after { content: ""; position: absolute; width: 540px; height: 540px; right: -210px; bottom: -300px; border: 1px solid rgba(229,240,234,.18); border-radius: 50%; box-shadow: 0 0 0 65px rgba(229,240,234,.035), 0 0 0 130px rgba(229,240,234,.025); }
.login-brand .brand-mark { margin-bottom: 2rem; background: #e8b86d; color: var(--green-dark); }
.login-brand .eyebrow { color: #9ed2c3; }
.login-brand h1 { max-width: 770px; margin-bottom: 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6.8vw, 6.6rem); font-weight: 500; line-height: .92; letter-spacing: -.06em; }
.login-copy { max-width: 610px; color: #c9d8d3; font-size: 1rem; }
.login-points { z-index: 1; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.login-points span { padding: .45rem .75rem; border: 1px solid rgba(233,243,238,.18); border-radius: 99px; color: #dbe9e4; font-size: .7rem; }
.login-panel { padding: clamp(2rem, 7vw, 7rem); display: flex; flex-direction: column; justify-content: center; gap: 2rem; background: var(--surface); }
.login-panel h2 { font-family: Georgia, "Times New Roman", serif; font-size: 2.5rem; font-weight: 500; }
.login-panel p { color: var(--muted); }
.login-panel form { display: grid; gap: 1rem; }
.login-panel > small { font-size: .68rem; }
.password-field { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.password-field input { flex: 1; border: 0; border-radius: 0; }
.password-field button { padding: 0 .85rem; border: 0; background: transparent; color: var(--green); font-size: .72rem; font-weight: 800; }

form label, .filters label, .inline-filters label { display: grid; gap: .38rem; color: var(--muted); font-size: .68rem; font-weight: 760; }
input, select, textarea { width: 100%; min-height: 39px; padding: .58rem .68rem; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
textarea { resize: vertical; }
input[readonly] { background: var(--surface-2); color: var(--muted); }

.primary-button, .secondary-button, .text-button, .icon-button, .mini-button { border: 0; border-radius: 9px; font-size: .72rem; font-weight: 800; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.primary-button { min-height: 40px; padding: .65rem 1rem; background: var(--green); color: white; }
.secondary-button { min-height: 38px; padding: .58rem .9rem; border: 1px solid var(--line); background: white; }
.text-button { padding: .35rem .25rem; background: transparent; color: var(--green); }
.text-button.danger { color: var(--red); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface-2); font-size: 1rem; }
.mini-button { padding: .4rem .55rem; border: 1px solid var(--line); background: white; white-space: nowrap; }
.primary-button:hover, .secondary-button:hover, .mini-button:hover { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: .45; transform: none; }

.app-view { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.15rem .8rem; display: flex; flex-direction: column; background: var(--green-dark); color: #e8f0ed; }
.sidebar-brand { margin: 0 .35rem 1.5rem; display: flex; align-items: center; gap: .7rem; }
.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand small { margin-top: .15rem; color: #91aaa5; font-size: .58rem; }
.sidebar nav { display: grid; gap: .2rem; }
.nav-item { width: 100%; padding: .7rem .75rem; display: flex; align-items: center; gap: .7rem; border: 0; border-radius: 9px; background: transparent; color: #aec1bd; font-size: .73rem; font-weight: 720; text-align: left; }
.nav-item > span { width: 24px; color: #6f918a; font-size: .57rem; font-weight: 900; letter-spacing: .06em; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.09); color: white; }
.nav-item.active > span { color: #e8b86d; }
.nav-badge { min-width: 20px; margin-left: auto; padding: .15rem .35rem; border-radius: 99px; background: var(--amber); color: white; font-size: .58rem; text-align: center; }
.sidebar-foot { margin-top: auto; padding: .8rem .6rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot p { margin-bottom: .35rem; color: #98afa9; font-size: .65rem; }
.sidebar-foot .text-button { color: #d9e5e1; }

.workspace { min-width: 0; }
.topbar { min-height: 78px; padding: 1rem clamp(1rem, 3vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: rgba(244,241,233,.92); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 1.55rem; }
.top-actions, .intro-actions, .chart-actions, .series-buttons, .dialog-actions { display: flex; align-items: center; gap: .55rem; }
.top-actions .muted { font-size: .65rem; }
main { max-width: 1500px; margin: auto; padding: clamp(1rem, 2.4vw, 2rem); }
.view { display: none; }
.view.active-view { display: block; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(3px); } }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 16px rgba(22,55,51,.025); }
.panel-head { min-height: 42px; margin-bottom: .75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-head h2 { margin: 0; }
.summary-grid { margin-bottom: .8rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.summary-grid.compact-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary-card.primary { border-color: transparent; background: var(--green); color: white; box-shadow: var(--shadow); }
.summary-card p { margin-bottom: .75rem; overflow: hidden; color: var(--muted); font-size: .6rem; font-weight: 850; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.summary-card.primary p, .summary-card.primary small { color: #cce1db; }
.summary-card strong { display: block; font-size: clamp(1.1rem, 2vw, 1.65rem); font-variant-numeric: tabular-nums; }
.summary-card small { font-size: .62rem; }

.home-grid { margin-bottom: .8rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .72fr); gap: .8rem; }
.action-panel, .balances-panel, .chart-panel, .cash-panel, .data-panel, .two-column-grid > .panel, .flow-panel { padding: 1.05rem; }
.action-list, .balance-list, .cash-list, .stack-list { display: grid; gap: .5rem; }
.action-item { padding: .7rem; display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: 11px; background: white; }
.action-date { color: var(--green); font-size: .62rem; font-weight: 850; }
.action-copy strong, .action-copy small { display: block; }
.action-copy small { margin-top: .15rem; font-size: .6rem; }
.balance-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.balance-row:last-child { border: 0; }
.balance-row span, .balance-row small { display: block; }
.balance-row small { margin-top: .12rem; font-size: .58rem; }
.balance-row strong { font-size: .75rem; font-variant-numeric: tabular-nums; }
.account-identity { min-width: 0; display: flex; align-items: center; gap: .6rem; }
.account-logo, .account-monogram { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; object-fit: cover; background: white; box-shadow: 0 0 0 1px rgba(23,48,47,.08); }
.account-monogram { display: grid !important; place-items: center; background: var(--green-soft); color: var(--green); font-size: .58rem; font-weight: 900; }
select.account-select { padding-left: 2.45rem; background-repeat: no-repeat; background-position: .55rem center; background-size: 24px 24px; }

.income-expense-grid { margin-bottom: .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.income-panel { border-top: 4px solid var(--green); }
.expense-panel { border-top: 4px solid var(--amber); }
.inline-filters { margin-bottom: .65rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; }
.inline-filters select { min-height: 34px; padding: .4rem .5rem; font-size: .65rem; }
.cash-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cash-item { min-width: 0; padding: .65rem; border-radius: 10px; background: var(--surface-2); }
.cash-item span, .cash-item small { display: block; overflow: hidden; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.cash-item strong { display: block; margin: .18rem 0; font-size: .78rem; font-variant-numeric: tabular-nums; }

.canvas-wrap { position: relative; height: 270px; }
.canvas-wrap.large { height: 390px; }
canvas { width: 100%; height: 100%; }
.chart-actions { align-items: flex-start; }
.chart-actions select { width: auto; min-height: 32px; padding: .38rem .5rem; font-size: .65rem; }
.series-buttons { flex-wrap: wrap; }
.series-buttons button, .segmented button { padding: .38rem .55rem; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: .62rem; font-weight: 800; }
.series-buttons button::before { content: ""; width: 7px; height: 7px; margin-right: .35rem; display: inline-block; border-radius: 50%; background: currentColor; }
.series-buttons .income { color: var(--green); }
.series-buttons .expense { color: var(--amber); }
.series-buttons .balance { color: var(--blue); }
.series-buttons button:not(.active) { opacity: .35; }
.chart-tooltip { position: absolute; z-index: 4; min-width: 145px; padding: .6rem; pointer-events: none; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,253,248,.97); box-shadow: var(--shadow); font-size: .62rem; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip span { margin-top: .2rem; color: var(--muted); }

.section-intro { margin-bottom: .8rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-intro p:not(.eyebrow) { margin: .35rem 0 0; color: var(--muted); font-size: .75rem; }
.section-intro h2 { font-size: 1.25rem; }
.toolbar { margin-bottom: .8rem; padding: .8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; }
.filters label { min-width: 145px; flex: 1 1 145px; }
.filters input, .filters select { min-height: 36px; padding: .45rem .52rem; font-size: .66rem; }
.data-panel { overflow: hidden; }
.table-wrap { overflow: auto; }
.table-wrap.compact { max-height: 360px; }
table { width: 100%; border-collapse: collapse; font-size: .69rem; }
th { position: sticky; top: 0; z-index: 1; padding: .65rem .55rem; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .58rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
td { padding: .62rem .55rem; border-bottom: 1px solid #e7ebe5; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(231,239,234,.42); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; justify-content: flex-end; gap: .35rem; }
.mini-button.danger { color: var(--red); }
.count-pill { min-width: 28px; padding: .23rem .45rem; border-radius: 99px; background: var(--surface-2); color: var(--green); font-size: .65rem; font-weight: 850; text-align: center; }
.status { display: inline-block; padding: .23rem .4rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .57rem; font-weight: 850; text-transform: capitalize; }
.status.realizado { background: var(--green-soft); color: var(--green); }
.status.pendiente, .status.pospuesto { background: var(--amber-soft); color: var(--amber); }
.status.cancelado, .status.no-aplica { background: var(--red-soft); color: var(--red); }
.centered { margin: .8rem auto 0; display: block; }

.reserve-grid { margin-bottom: .8rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.reserve-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.reserve-card.base { background: var(--green-dark); color: white; }
.reserve-card small, .reserve-card span { display: block; color: var(--muted); }
.reserve-card.base small, .reserve-card.base span { color: #adc4bf; }
.reserve-card strong { display: block; margin: .65rem 0 .35rem; font-size: 1.2rem; }
.reserve-card .yield-note { font-size: .58rem; }
.reserve-identity { align-items: flex-start; }
.reserve-card.base .account-logo { box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.two-column-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.form-grid .full, .form-grid button.full { grid-column: 1 / -1; }
.compact-form { padding-top: .25rem; }
.stack-item { padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.stack-item strong, .stack-item small { display: block; }
.stack-item small { margin-top: .2rem; font-size: .59rem; }

.segmented { padding: .18rem; display: inline-flex; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.segmented button { border: 0; background: transparent; }
.segmented button.active { background: var(--green); color: white; }
.breakdown-list { display: grid; gap: .62rem; }
.breakdown-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(100px, 2fr) auto; align-items: center; gap: .6rem; font-size: .67rem; }
.breakdown-track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.breakdown-track span { height: 100%; display: block; border-radius: inherit; background: var(--amber); }

.flow-panel { overflow: hidden; }
.account-flow { min-height: 480px; overflow: auto; }
.account-flow svg { min-width: 900px; width: 100%; height: auto; }
.flow-node rect { fill: white; stroke: var(--line); stroke-width: 1.5; cursor: pointer; }
.flow-node text { pointer-events: none; fill: var(--ink); font-size: 12px; font-weight: 750; }
.flow-node .flow-secondary { fill: var(--muted); font-size: 10px; font-weight: 600; }
.flow-node image { clip-path: inset(0 round 8px); }
.flow-node.active rect { fill: var(--green-soft); stroke: var(--green); stroke-width: 2.5; }
.flow-link { fill: none; stroke: #7399a7; stroke-opacity: .42; transition: stroke-opacity .15s; }
.flow-link.active { stroke: var(--green); stroke-opacity: .9; }
.flow-label { fill: var(--muted); font-size: 9px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.flow-detail { margin: .45rem 0 0; color: var(--muted); font-size: .67rem; }

.alert-summary { margin-bottom: .8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.alert-stat { padding: .9rem 1rem; }
.alert-stat span { color: var(--muted); font-size: .63rem; }
.alert-stat strong { display: block; margin-top: .25rem; font-size: 1.4rem; }
.alert-stat.alta { border-top: 3px solid var(--red); }
.alert-stat.media { border-top: 3px solid var(--amber); }
.alert-stat.baja { border-top: 3px solid var(--blue); }
.alert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.alert-card { padding: .9rem; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: var(--surface); }
.alert-card.alta { border-left-color: var(--red); }
.alert-card.media { border-left-color: var(--amber); }
.alert-card-head { margin-bottom: .55rem; display: flex; justify-content: space-between; gap: .5rem; }
.alert-card p { margin-bottom: .55rem; color: var(--muted); font-size: .68rem; }
.alert-meta { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .58rem; }

.tab-bar { margin-bottom: .8rem; display: flex; gap: .35rem; overflow-x: auto; }
.tab-button { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: .66rem; font-weight: 800; white-space: nowrap; }
.tab-button.active { border-color: var(--green); background: var(--green-soft); color: var(--green); }

dialog { width: min(720px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(18,48,45,.25); }
dialog::backdrop { background: rgba(14,35,34,.48); backdrop-filter: blur(3px); }
dialog form { padding: 1.2rem; }
.dialog-form { padding: 1.2rem; }
.wide-dialog { width: min(1100px, calc(100% - 2rem)); }
.dialog-copy { margin: -.35rem 0 1rem; color: var(--muted); font-size: .7rem; }
.bulk-actions { margin: .7rem 0; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.bulk-summary { margin-bottom: .7rem; }
.bulk-summary .success-note, .bulk-summary .error-note { padding: .7rem; border-radius: 9px; font-size: .67rem; }
.bulk-summary .success-note { background: var(--green-soft); color: var(--green); }
.bulk-summary .error-note { background: var(--red-soft); color: var(--red); }
.bulk-preview { max-height: 330px; border: 1px solid var(--line); border-radius: 10px; }
.bulk-preview td { min-width: 90px; }
.bulk-preview .invalid-row { background: var(--red-soft); }
.dialog-head { margin-bottom: 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.dialog-actions { margin-top: 1rem; justify-content: flex-end; }
.context-box, .difference-preview { margin-bottom: .8rem; padding: .75rem; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .67rem; }
.difference-preview strong { color: var(--ink); }
.form-error, .form-warning { min-height: 1em; margin: .5rem 0 0; color: var(--red); font-size: .65rem; }
.form-warning { color: var(--amber); }

.toast { position: fixed; z-index: 30; right: 1rem; bottom: 1rem; max-width: 380px; padding: .75rem 1rem; border-radius: 10px; background: var(--green-dark); color: white; box-shadow: var(--shadow); font-size: .7rem; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }
.busy { position: fixed; z-index: 40; inset: 0; display: grid; place-content: center; justify-items: center; gap: .7rem; background: rgba(244,241,233,.76); color: var(--green-dark); font-size: .72rem; font-weight: 800; backdrop-filter: blur(3px); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 1rem; color: var(--muted); font-size: .68rem; text-align: center; }
.mobile-only { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 205px; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .cash-list { grid-template-columns: repeat(2, 1fr); }
  .reserve-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand { min-height: 44vh; padding: 2.5rem 1.5rem; }
  .login-brand h1 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  .login-panel { padding: 2.2rem 1.5rem; }
  .app-view { display: block; }
  .sidebar { position: fixed; z-index: 20; width: 240px; left: -255px; transition: left .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .mobile-only { display: grid; }
  .topbar { position: sticky; z-index: 10; top: 0; }
  .top-actions .muted { display: none; }
  .home-grid, .income-expense-grid, .two-column-grid { grid-template-columns: 1fr; }
  .summary-grid, .summary-grid.compact-summary { grid-template-columns: repeat(2, 1fr); }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .action-item { grid-template-columns: 72px minmax(0, 1fr); }
  .action-item .mini-button { grid-column: 1 / -1; }
  .alert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main { padding: .75rem; }
  .topbar { padding: .75rem; }
  .topbar h1 { font-size: 1.25rem; }
  .top-actions { gap: .3rem; }
  .top-actions .secondary-button { padding: .5rem .6rem; font-size: .62rem; }
  .summary-grid, .summary-grid.compact-summary, .reserve-grid, .alert-summary { grid-template-columns: 1fr; }
  .cash-list { grid-template-columns: 1fr; }
  .inline-filters, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .chart-actions { width: 100%; flex-direction: column; }
  .series-buttons { width: 100%; }
  .canvas-wrap { height: 235px; }
  .intro-actions, .dialog-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .intro-actions > *, .dialog-actions > * { width: 100%; }
}
