
:root{--ink:#23352d;--muted:#788178;--green:#315c44;--lime:#dbe6b5;--surface:#fff;--canvas:#f5f6f2;--line:#e6e9e1;--bs-body-font-family:"Segoe UI",sans-serif;--bs-primary:#315c44;--bs-border-color:#e2e6de}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-size:14px}a{color:var(--green);text-decoration:none}button,input,select,textarea{font:inherit}button:focus-visible,a:focus-visible{outline:3px solid #9eb777;outline-offset:3px}.btn{border-radius:9px;padding:11px 19px;font-size:13px;font-weight:600}.btn-primary{--bs-btn-bg:#315c44;--bs-btn-border-color:#315c44;--bs-btn-hover-bg:#254936;--bs-btn-hover-border-color:#254936;--bs-btn-active-bg:#254936;--bs-btn-disabled-bg:#315c44}.btn-light{background:#f0f3ec;border-color:#e5e8e0}.btn-danger{background:#a8483c;border-color:#a8483c}.form-control,.form-select{border-radius:8px;padding:11px 12px;font-size:14px}.form-control:focus,.form-select:focus{border-color:#7b9b75;box-shadow:0 0 0 .2rem #315c4417}.form-label{font-size:12px;font-weight:600}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#7e8d78;margin-bottom:12px}.brand{display:flex;align-items:center;gap:10px;font-size:24px;color:#2e503d;font-weight:700;letter-spacing:-.8px}.brand>span{font-size:17px;letter-spacing:-.6px}.brand-light{font-weight:400}.sidebar{width:235px;height:100vh;position:fixed;background:#fff;border-right:1px solid var(--line);padding:30px 20px 15px;display:flex;flex-direction:column;z-index:30}.workspace-label{font-size:9px;letter-spacing:1.5px;color:#8b9588;margin:40px 12px 14px;font-weight:600}.sidebar nav{overflow-y:auto;flex:1}.sidebar nav a{display:flex;align-items:center;gap:12px;color:#6a766b;padding:10px 13px;border-radius:8px;margin:3px 0;font-size:15px}.sidebar nav a span{font-size:12px}.sidebar nav a:hover{background:#f4f6f0}.sidebar nav a.active{background:#eaf0e0;color:#345735;font-weight:600}.sidebar nav a.active::after{content:"";width:5px;height:5px;background:#66844a;border-radius:50%;margin-left:auto}.nav-label{font-size:9px;letter-spacing:1.6px;color:#92998d;padding:23px 13px 8px;font-weight:600}.sidebar-bottom{display:flex;gap:10px;align-items:center;padding:20px 0 0;border-top:1px solid var(--line);margin-top:20px}.avatar{width:34px;height:34px;border-radius:50%;background:#e4ead9;display:grid;place-items:center;color:#546744;font-weight:700}.sidebar-bottom strong{font-size:11px;display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom small{display:block;color:#8a9386;font-size:10px}.icon-button{border:0;background:transparent;padding:7px;color:#6d7969}.sidebar-bottom .icon-button{margin-left:auto}.workspace{margin-left:235px}.topbar{height:76px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#ffffff88;font-size:11px;color:#8a9286}.topbar-right{display:flex;align-items:center;gap:8px}.topbar-right #today{margin-left:22px;border-left:1px solid var(--line);padding-left:22px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#7f9b5f}main#main{padding:36px 42px;min-height:calc(100vh - 125px);max-width:1720px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;gap:20px}.page-heading h1{font-size:32px;letter-spacing:-1.1px;font-weight:600;margin-bottom:9px}.page-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}.page-heading .eyebrow{margin-bottom:9px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:23px}.summary-card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:24px;min-width:0}.summary-label{font-size:11px;color:#7c8879;margin-bottom:15px}.summary-value{font-size:28px;line-height:1.2;letter-spacing:-.9px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.summary-caption{font-size:10px;color:#8b9485;margin-top:12px}.summary-card.highlight{background:#31543f;color:#fff;border-color:#31543f;position:relative;overflow:hidden}.highlight .summary-label,.highlight .summary-caption{color:#d0ddc9}.highlight:after{content:"";width:180px;height:180px;border:1px solid #ffffff17;border-radius:50%;position:absolute;right:-65px;top:-30px;pointer-events:none}.panel{border:1px solid var(--line);border-radius:13px;background:#fff;margin-bottom:23px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 25px 18px}.panel h2{font-size:15px;letter-spacing:-.2px;margin:0;font-weight:600}.record-count{font-size:10px;color:#8a9483;background:#f2f5ed;padding:5px 9px;border-radius:5px}.finance-table{margin:0;font-size:12px;vertical-align:middle}.finance-table th{background:#fafbf7;color:#87917e;text-transform:uppercase;letter-spacing:.9px;font-size:9px;font-weight:500;padding:13px 24px;white-space:nowrap;border-bottom-color:var(--line)}.finance-table td{padding:19px 24px;border-bottom-color:#eff1eb;color:#55634f;max-width:270px;overflow-wrap:anywhere}.finance-table tr:last-child td{border-bottom:0}.finance-table .record-name{font-weight:600;color:#354834}.table-actions{display:flex;gap:8px;justify-content:flex-end}.table-actions button{border:1px solid #e4e9df;background:#fff;color:#64765c;border-radius:6px;padding:5px 9px;font-size:10px}.table-actions button:hover{background:#f1f4eb}.table-actions .delete-action{color:#a15e50}.empty-state{text-align:center;padding:64px 20px;background:#fff;border:1px dashed #d7dfcd;border-radius:13px}.empty-symbol{font-size:32px;color:#81936b;margin-bottom:14px}.empty-state h3{font-size:19px;font-weight:500}.empty-state p{font-size:12px;color:#85917e;margin:12px auto 22px;max-width:350px}.currency-select{width:100px;padding:6px 10px;font-size:11px;display:inline-block}.overview-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.panel-body{padding:0 25px 25px}.breakdown-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #eef1e9;font-size:12px}.breakdown-row:last-child{border:0}.breakdown-row strong{font-weight:600;font-variant-numeric:tabular-nums}.mini-bar{height:7px;display:flex;border-radius:7px;overflow:hidden;background:#eef2e8;margin:13px 0 20px}.mini-bar span{height:100%;min-width:0}.allocation-dot{display:inline-block;width:7px;height:7px;background:#78945f;border-radius:2px;margin-right:8px}.subtle-note{font-size:11px;color:#8b9586;line-height:1.7}.section-label{font-size:10px;color:#8a9581;letter-spacing:1.4px;text-transform:uppercase;margin:30px 0 15px}.budget-total{background:#f2f6e9;border:1px solid #e1e8d6;border-radius:9px;padding:18px;display:flex;justify-content:space-between;align-items:center;margin-top:15px}.budget-total span{font-size:12px}.budget-total strong{font-size:22px;color:#41623c}.negative{color:#a55345!important}.loan-progress{min-width:140px}.progress-label{font-size:10px;color:#7b8b6e;margin-bottom:6px}.progress{height:5px;background:#edf1e6}.progress-bar{background:#8da864}.modal-content{border:0;border-radius:14px;box-shadow:0 20px 100px #1f3b2526}.modal-header{padding:22px 25px;border-bottom-color:var(--line)}.modal-body{padding:25px}.modal-footer{padding:17px 25px;border-top-color:var(--line)}.modal-title{font-size:18px!important}.settings-panel{max-width:640px;padding:28px}footer{padding:15px 42px;border-top:1px solid var(--line);font-size:8px;letter-spacing:1.4px;color:#98a08f;display:flex;justify-content:space-between}footer span{letter-spacing:0;font-size:10px}.mobile-menu{display:none}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#fff}.auth-story{background:#eaf0df;padding:46px 60px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.auth-story:after{content:"";width:500px;height:500px;border:1px solid #c8d4b7;border-radius:50%;position:absolute;bottom:-220px;right:-160px;pointer-events:none}.auth-story h1{font-size:64px;line-height:1.1;font-weight:500;letter-spacing:-3px;margin:22px 0}.auth-story p{font-size:14px;color:#7f8e72;line-height:1.8}.auth-story small{font-size:11px;color:#879579}.auth-panel{display:flex;align-items:center;justify-content:center;padding:50px}.auth-box{width:100%;max-width:350px}.auth-box h2{font-size:31px;letter-spacing:-1px;margin:16px 0}.auth-box>p{font-size:12px;line-height:1.8;margin-bottom:28px}.auth-box form{margin-top:32px}.privacy-note{border-top:1px solid var(--line);padding-top:25px;margin-top:40px;font-size:10px;color:#8c9783}.loading-state{padding:65px;text-align:center;color:#88937f}.error-panel{padding:30px}.notice-banner{padding:15px 20px;border-radius:9px;background:#edf2e4;color:#6b7e55;font-size:11px;margin-bottom:22px}
@media(min-width:1500px){.summary-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.sidebar{width:210px;padding-left:15px;padding-right:15px}.workspace{margin-left:210px}main#main{padding:30px 25px}.topbar{padding:0 25px}.summary-value{font-size:23px}.summary-card{padding:20px}.overview-grid{grid-template-columns:1fr}.auth-story{padding:40px}.auth-story h1{font-size:50px}}
@media(max-width:767px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:10px 0 60px #1d332533}.workspace{margin-left:0}.mobile-menu{display:block}.topbar{height:62px;padding:0 18px;gap:12px}.topbar-right{margin-left:auto}.topbar-right #today{display:none}main#main{padding:28px 18px}.page-heading{align-items:flex-start}.page-heading h1{font-size:27px}.page-heading .btn{padding:9px 12px;white-space:nowrap}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.summary-value{font-size:21px}.summary-card{padding:17px}.summary-caption{line-height:1.5}.finance-table td,.finance-table th{padding:16px}.auth-page{grid-template-columns:1fr}.auth-story{min-height:auto;padding:26px}.auth-story>div{margin-top:35px}.auth-story h1{font-size:38px;letter-spacing:-1.5px}.auth-story p,.auth-story>small{display:none}.auth-panel{padding:35px 25px}.auth-story:after{width:250px;height:250px;bottom:-130px;right:-20px}.topbar>span:first-of-type{display:none}footer{padding:15px 18px}.page-heading p{max-width:250px}.summary-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.table-actions button{white-space:nowrap}.finance-table{min-width:620px}

.dashboard-charts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin: 28px 0 32px;
}
.chart-panel { margin: 0; min-width: 0; }
.chart-panel .panel-heading { align-items: flex-start; gap: 12px; padding-bottom: 12px; }
.chart-subtitle { font-size: 11px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.chart-badge { padding: 5px 8px; background: #f1f4eb; color: #7e8e6c; font-size: 8px; letter-spacing: 1px; border-radius: 5px; white-space: nowrap; }
.chart-body { padding: 12px 25px 25px; }
.allocation-layout { display: flex; align-items: center; gap: 20px; min-height: 235px; }
.asset-ring { position: relative; width: 200px; flex: 0 0 200px; }
.asset-ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 32px; }
.ring-center > span { font-size: 8px; letter-spacing: 1px; color: #8b987f; }
.ring-center strong { font-size: 17px; letter-spacing: -.5px; margin: 9px -14px 6px; font-variant-numeric: tabular-nums; }
.ring-center small { font-size: 9px; color: #8d9885; }
.ring-segment { transition: opacity .18s; }
.has-selection .ring-segment { opacity: .2; }
.has-selection .ring-segment.selected { opacity: 1; }
.chart-legend { flex: 1; min-width: 0; }
.chart-legend-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 6px; width: 100%; background: none; border: 0; border-bottom: 1px solid #eff2e9; text-align: left; border-radius: 5px; color: #58684f; font-size: 11px; }
.chart-legend-item:last-child { border-bottom: 0; }
.chart-legend-item:hover,.chart-legend-item:focus-visible { background: #f4f7ee; }
.chart-swatch { width: 8px; height: 8px; border-radius: 3px; display: inline-block; flex-shrink: 0; margin-right: 8px; }
.legend-label { display: flex; align-items: center; }
.budget-category-chart .legend-label { min-width: 0; overflow-wrap: anywhere; }
.budget-category-chart .legend-values strong { white-space: normal; }
.budget-category-chart .chart-legend { max-height: 21rem; overflow-y: auto; padding: 4px; }
@media (min-width: 768px) {
	.budget-category-chart .allocation-layout { flex-direction: row; gap: 28px; }
}
.legend-values { text-align: right; }
.legend-values strong { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legend-values small { display: block; color: #99a28d; margin-top: 3px; font-size: 9px; }
.comparison-chart { display: grid; gap: 22px; padding-top: 10px; }
.chart-row-heading { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; margin-bottom: 10px; color: #77846c; }
.chart-row-heading strong { font-weight: 600; color: #354b38; font-variant-numeric: tabular-nums; }
.comparison-track { height: 17px; border-radius: 5px; background: repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#e6ecdf calc(25% - 1px),#e6ecdf 25%),#f3f6ee; position: relative; }
.comparison-track.signed::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: #b6c2a8; }
.comparison-fill { position: absolute; left: 0; height: 100%; border-radius: 5px; }
.amount-track { display: block; height: 6px; min-width: 5rem; max-width: 9rem; margin-top: 5px; }
.text-end .amount-track { margin-left: auto; }
.amount-track .comparison-fill { background: var(--chart-2, #7b9966); }
.amount-track .amount-negative { background: var(--chart-negative, #b67160); }
.amount-sort { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; }
.amount-sort:hover { text-decoration: underline; }
.amount-sort-arrow { margin-inline-start: .35em; }
.comparison-track:hover .comparison-fill,.comparison-track:focus-visible .comparison-fill { filter: brightness(1.12); }
.chart-insight { display: flex; align-items: center; gap: 13px; background: #f1f5e8; padding: 14px; border-radius: 8px; color: #7e8d6d; font-size: 10px; line-height: 1.6; margin-top: 26px; }
.insight-symbol { font-size: 24px; color: #6d8a51; }
.flow-income { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; padding-top: 3px; }
.flow-income > span { font-size: 9px; color: #89967d; letter-spacing: 1px; }
.flow-income strong { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.flow-tracks { display: grid; gap: 12px; }
.flow-track-row { display: flex; gap: 15px; align-items: center; }
.flow-track-row > span { width: 55px; flex-shrink: 0; color: #87947a; font-size: 10px; }
.flow-track { display: flex; height: 25px; flex: 1; border-radius: 6px; overflow: hidden; background: #f1f5e9; }
.flow-segment { height: 100%; display: block; border-right: 2px solid #fff; }
.flow-segment:last-child { border: 0; }
.flow-segment:hover,.flow-segment:focus-visible { filter: brightness(1.15); }
.flow-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 25px; margin: 25px 0 22px; }
.flow-legend > div { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: #859276; }
.flow-legend strong { margin-left: 16px; font-size: 12px; font-weight: 600; color: #4e6347; }
.chart-buffer { border-top: 1px solid #e9eddf; padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #7d8e68; font-size: 11px; }
.chart-buffer strong { font-size: 17px; font-weight: 600; color: #4a6940; }
.chart-buffer.over-budget,.chart-buffer.over-budget strong { color: #a55345; }
.fixed-cost-chart { gap: 18px; }
.fixed-cost-chart .comparison-track { height: 12px; }
.chart-total { display: flex; justify-content: space-between; border-top: 1px solid #e9eddf; margin-top: 24px; padding-top: 17px; font-size: 11px; color: #7c8c6b; }
.chart-total strong { font-size: 15px; font-weight: 600; color: #425c3e; }
.chart-note { font-size: 10px; color: #8b987e; line-height: 1.7; margin: 17px 0 0; }
@media (min-width: 1101px) and (max-width: 1380px) {
	.allocation-layout { flex-direction: column; gap: 4px; }
	.asset-ring { width: 170px; flex-basis: 170px; }
	.chart-legend { width: 100%; }
}
@media (max-width: 1100px) {
	.dashboard-charts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.allocation-layout { flex-direction: column; gap: 5px; }
	.chart-legend { width: 100%; }
	.chart-panel .panel-heading { flex-direction: column; }
	.chart-body { padding: 12px 20px 22px; }
	.flow-income strong { font-size: 18px; }
}


.investment-panel .record-name{min-width:170px;overflow-wrap:break-word}.investment-panel td.subtle-note{min-width:180px}


.chart-page-link,.dashboard-page-link{color:inherit}.chart-page-link:hover,.dashboard-page-link:hover,.chart-legend-item:hover .legend-label{text-decoration:underline}.chart-legend-item{text-decoration:none}

.finance-table .action-text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	min-width: 12rem;
	max-width: 36rem;
}
