/* Authenticated application only. Login deliberately inherits styles.css unchanged. */
.records-shell {
 --bg:oklch(18% .008 160); --panel:oklch(22% .008 160); --raised:oklch(25% .009 160); --text:oklch(94% .008 150); --muted:oklch(72% .014 155); --line:oklch(34% .012 160); --accent:oklch(78% .075 158); --spent:oklch(76% .09 55); --expected:oklch(74% .055 260);
 min-height:100vh;background:var(--bg);color:var(--text);font:400 14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding-bottom:64px;
}
.records-shell *{box-sizing:border-box}
.records-shell span{display:inline;color:inherit;font-size:inherit;margin:0;padding:0;background:none;border:0;border-radius:0}
.records-shell a{color:var(--accent);text-decoration:none}
.records-shell a:hover{text-decoration:underline}
.records-shell h1,.records-shell h2,.records-shell h3{color:var(--text);font-weight:600;line-height:1.25;letter-spacing:-.025em;margin:0}
.records-shell h2{font-size:24px}.records-shell h3{font-size:18px}
.records-shell p{max-width:75ch;margin:0 0 12px;color:var(--muted)}
.records-shell .eyebrow{font-size:10px;letter-spacing:.13em;font-weight:650;text-transform:uppercase;margin:0 0 8px;color:var(--muted)}
.records-shell button,.records-shell .primary-action{width:auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 15px;border-radius:7px;border:1px solid var(--line);background:var(--raised);color:var(--text);font-family:inherit;font-size:13px;line-height:1.4;font-weight:600;cursor:pointer;text-decoration:none;box-shadow:none}
.records-shell button:hover{background:var(--line)}
.records-shell .primary-action,.records-shell form button{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.records-shell .primary-action:hover,.records-shell form button:hover{filter:brightness(1.08)}
.records-shell button:disabled{opacity:.5;cursor:wait}
.records-shell :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.records-shell input,.records-shell select,.records-shell textarea{min-width:0;width:100%;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:6px;padding:10px 12px;font:inherit;min-height:42px;color-scheme:dark}
.records-shell input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--accent)}
.records-shell label{color:var(--muted);font-size:12px}
.records-shell .records-header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 max(28px,calc((100% - 1200px)/2))}
.records-shell .app-brand{display:flex;align-items:center;gap:13px;color:var(--text);font-size:20px;font-weight:650;line-height:1.25;letter-spacing:-.025em;text-decoration:none}
.records-shell .app-brand svg{width:34px;height:34px;color:var(--accent)}
.records-shell .brand-subtitle{display:block;font-size:11px;font-weight:400;letter-spacing:.025em;color:var(--muted);margin-top:4px}
.records-shell .account-menu{display:flex;gap:20px;align-items:center}
.records-shell #current-user-pill{background:none;border:0;color:var(--muted);font-size:12px;margin:0}
.records-shell .records-main{width:min(1200px,calc(100% - 56px));margin:0 auto;display:flex;flex-direction:column}
.records-shell .records-nav{order:-2;display:flex;gap:25px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid var(--line);padding:0;scrollbar-width:thin}
.records-shell .records-nav a{color:var(--muted);font-size:13px;padding:17px 0 14px;min-height:48px}
.records-shell .records-nav a:first-child{color:var(--accent);border-bottom:2px solid var(--accent)}
.records-shell .records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0 0}
.records-shell .records-toolbar label{display:flex;align-items:center;gap:12px}
.records-shell .records-toolbar input{width:174px;font-size:13px;padding:7px 10px}
.records-shell #app-message{font-size:11px;margin:8px 0 18px;min-height:18px}
.records-shell .dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 26px}
.records-shell .cash-overview{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;padding:28px 32px;background:var(--panel);border:1px solid var(--line);border-radius:12px 12px 0 0}
.records-shell .cash-label{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.records-shell .cash-label h3{font-size:15px;font-weight:500}
.records-shell .scenario-tag{padding:3px 8px;border:1px solid var(--line);border-radius:4px;color:var(--accent);font-size:10px}
.records-shell .cash-value{color:var(--text);font-size:48px;line-height:1.1;letter-spacing:-.045em;font-weight:600;font-variant-numeric:tabular-nums;margin:17px 0 10px}
.records-shell .cash-assumption{font-size:12px;margin-bottom:14px}
.records-shell .cash-date{font-size:11px;margin:0;line-height:1.8}
.records-shell .cash-summary{margin:0;display:grid;align-content:center;gap:18px;border-left:1px solid var(--line);padding-left:32px}
.records-shell .cash-summary>div+div{border-top:1px solid var(--line);padding-top:16px}
.records-shell dt{font-size:12px;color:var(--muted)}
.records-shell dd{font-variant-numeric:tabular-nums;margin:4px 0;font-size:25px;font-weight:550;letter-spacing:-.035em}
.records-shell .cash-summary p{font-size:11px;margin:2px 0 0}
.records-shell details{min-width:0}
.records-shell summary{cursor:pointer;min-height:40px;padding:10px 0;color:var(--muted);font-size:12px;list-style-position:inside}
.records-shell summary:hover{color:var(--text)}
.records-shell details[open]>summary{color:var(--accent);margin-bottom:10px}
.records-shell details p{font-size:12px;line-height:1.7}
.records-shell .methodology{border:1px solid var(--line);border-top:0;background:var(--panel);padding:0 32px;border-radius:0 0 12px 12px;margin-bottom:24px}
.records-shell .methodology[open]{padding-bottom:20px}
.records-shell .methodology h3{font-size:14px;margin:16px 0 8px}
.records-shell .analysis-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:22px;align-items:start}
.records-shell .analysis-panel{padding:24px;border:1px solid var(--line);border-radius:10px;background:var(--panel);min-width:0}
.records-shell .panel-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:22px}
.records-shell .panel-meta{color:var(--muted);font-size:10px;padding-top:3px;white-space:nowrap}
.records-shell .flow-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 12px}
.records-shell .flow-summary dd{font-size:21px}
.records-shell .legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:6px}
.records-shell .chart-received{fill:var(--accent);background:var(--accent)}
.records-shell .chart-spent{fill:var(--spent);background:var(--spent)}
.records-shell .chart-expected{fill:var(--expected);background:var(--expected)}
.records-shell .trend-figure{margin:0 0 18px}
.records-shell .trend-figure svg{display:block;width:100%;height:auto;overflow:visible}
.records-shell .gridline{stroke:var(--line);stroke-width:1}
.records-shell .trend-figure text{font:11px sans-serif;fill:var(--muted)}
.records-shell .trend-figure figcaption{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}
.records-shell .panel-note{font-size:11px;line-height:1.6;margin:14px 0 0}
.records-shell .analysis-panel>details{border-top:1px solid var(--line);margin-top:14px}
.records-shell .category-total{font-size:27px;letter-spacing:-.035em;color:var(--text);margin-bottom:22px;font-variant-numeric:tabular-nums}
.records-shell .category-total span{display:block;font-size:11px;color:var(--muted);letter-spacing:0;margin-top:3px}
.records-shell .category-strip{height:14px;display:flex;gap:3px;overflow:hidden;border-radius:3px;margin-bottom:20px}
.records-shell .category-strip i{min-width:0;flex-basis:0}
.records-shell .category-color-0{background:var(--accent)}.records-shell .category-color-1{background:var(--spent)}.records-shell .category-color-2{background:var(--expected)}.records-shell .category-color-3{background:oklch(76% .06 330)}.records-shell .category-color-4{background:oklch(78% .065 90)}.records-shell .category-color-5{background:oklch(69% .03 205)}
.records-shell .category-list,.records-shell .allocation-list,.records-shell .ledger-list{list-style:none;padding:0;margin:0}
.records-shell .category-list li{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}
.records-shell .category-name{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere}
.records-shell .category-name i{width:8px;height:8px;flex-shrink:0;border-radius:2px}
.records-shell .category-list strong{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}
.records-shell .allocation-list li{display:grid;grid-template-columns:85px minmax(0,1fr) auto;gap:14px;padding:15px 0;border-top:1px solid var(--line);align-items:start;font-size:12px}
.records-shell .due-date{color:var(--muted);font-size:11px;padding-top:2px;font-variant-numeric:tabular-nums}
.records-shell .allocation-description>span{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.records-shell .allocation-description strong{font-weight:550;overflow-wrap:anywhere}
.records-shell .allocation-description summary{font-size:10px;padding:5px 0;min-height:28px}
.records-shell .allocation-list b{font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.records-shell .health-summary h3{font-size:17px;line-height:1.5;margin-bottom:20px}
.records-shell .health-summary p{font-size:12px}
.records-shell .health-notice{color:var(--spent);display:flex;align-items:center;gap:8px;margin:0 0 6px}
.records-shell .health-notice::before{content:"";width:6px;height:6px;border:1px solid var(--spent);border-radius:50%}
.records-shell .table-scroll{overflow:auto}
.records-shell table{width:100%;border-collapse:collapse;font-size:11px}
.records-shell th,.records-shell td{text-align:right;padding:10px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.records-shell th:first-child{text-align:left}
.records-shell caption{text-align:left;color:var(--muted);margin-bottom:8px}
.records-shell #records-view>section:not(#dashboard),.records-shell #agregar{padding:28px 0;border-top:1px solid var(--line);margin-top:28px;scroll-margin-top:24px}
.records-shell #records-view>section:not(#dashboard)>h2,.records-shell #agregar h2{font-size:19px;margin-bottom:10px}
.records-shell #records-view>section:not(#dashboard)>p,.records-shell #agregar>p{font-size:12px;max-width:85ch}
.records-shell .ledger-disclosure>summary{font-weight:550;color:var(--text)}
.records-shell .record{display:flex;justify-content:space-between;gap:24px;border-top:1px solid var(--line);padding:16px 0;min-width:0}
.records-shell .record>div{min-width:0;flex:1}
.records-shell .record strong{font-size:13px;overflow-wrap:anywhere}
.records-shell .record p{font-size:11px;margin:4px 0}
.records-shell .record .amount{font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:550}
.records-shell form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:760px;margin:14px 0 22px}
.records-shell form label{display:grid;gap:6px}
.records-shell form button{align-self:end}
.records-shell pre{font-family:inherit;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);max-width:75ch}
.records-shell .review{padding:18px 0;border-top:1px solid var(--line)}
.records-shell .review h3{font-size:14px;margin:16px 0 10px}
.records-shell .empty,.records-shell .chart-empty{color:var(--muted);font-size:12px;padding:20px 0;display:block!important}
.records-shell .chart-empty{min-height:190px;display:grid!important;place-content:center;border-bottom:1px solid var(--line)}
@media(min-width:1000px){.records-shell .flow-panel,.records-shell .distribution-panel{min-height:434px}}
@media(max-width:760px){
 .records-shell .records-header{padding:0 20px;height:76px}.records-shell .records-main{width:calc(100% - 40px)}.records-shell .account-menu{gap:10px}.records-shell #current-user-pill{max-width:140px;text-align:right;font-size:10px}
 .records-shell .records-nav{gap:22px}.records-shell .dashboard-heading{align-items:start}.records-shell .dashboard-heading h2{font-size:22px}.records-shell .primary-action{font-size:11px;max-width:150px}
 .records-shell .cash-overview{grid-template-columns:1fr;gap:24px;padding:24px}.records-shell .cash-summary{grid-template-columns:1fr 1fr;gap:20px;border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.records-shell .cash-summary>div+div{border:0;padding:0}.records-shell .cash-summary dd{font-size:23px}
 .records-shell .analysis-grid{grid-template-columns:1fr}.records-shell .analysis-panel{padding:22px}.records-shell .methodology{padding:0 24px}.records-shell .distribution-panel{grid-row:auto}.records-shell .cash-value{font-size:44px}
}
@media(max-width:430px){
 .records-shell .records-header{padding:0 16px}.records-shell .records-main{width:calc(100% - 32px)}.records-shell .app-brand{font-size:17px;gap:7px}.records-shell .app-brand svg{width:26px}.records-shell .brand-subtitle{font-size:9px}.records-shell #current-user-pill{max-width:95px}.records-shell #logout-button{padding:8px 10px;font-size:11px}
 .records-shell .records-toolbar{align-items:end;gap:8px;padding-top:18px}.records-shell .records-toolbar label{display:grid;gap:5px;font-size:10px}.records-shell .records-toolbar input{width:155px;font-size:12px}.records-shell #refresh-button{font-size:11px;padding:8px 10px}
 .records-shell .dashboard-heading{display:block;margin-bottom:20px}.records-shell .dashboard-heading .primary-action{margin-top:15px;max-width:none}.records-shell .dashboard-heading h2{font-size:23px}
 .records-shell .cash-overview{padding:20px;gap:18px}.records-shell .cash-label{gap:8px}.records-shell .cash-value{font-size:40px}.records-shell .cash-summary{gap:12px}.records-shell .cash-summary dt{font-size:11px}.records-shell .cash-summary dd{font-size:21px}.records-shell .cash-summary p{font-size:10px}.records-shell .cash-date{font-size:10px}
 .records-shell .methodology{padding:0 20px}.records-shell .methodology>summary{font-size:11px}.records-shell .analysis-panel{padding:20px 16px}.records-shell .panel-heading{gap:8px}.records-shell .panel-heading h3{font-size:17px}.records-shell .panel-meta{font-size:9px}.records-shell .flow-summary{gap:8px}.records-shell .flow-summary dt{font-size:10px}.records-shell .flow-summary dd{font-size:17px}.records-shell .legend-dot{margin-right:4px;width:6px;height:6px}
 .records-shell .allocation-list li{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}.records-shell .due-date{grid-column:1/-1}.records-shell .record{gap:12px;flex-wrap:wrap}.records-shell .record>div{flex-basis:65%}.records-shell form{grid-template-columns:1fr}.records-shell .record .amount{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.records-shell *{scroll-behavior:auto;transition:none}}
