@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--navy:#10213d;--navy2:#18345a;--blue:#2e6df3;--ink:#182741;--muted:#7586a0;--line:#e3eaf4;--canvas:#f2f5fb;--green:#12966c;--red:#cf4258;--shadow:0 10px 28px rgba(28,48,82,.055)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;font:14px/1.5 'Be Vietnam Pro',Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:linear-gradient(160deg,#10213d,#142c4c);color:#dce8fb;display:flex;flex-direction:column;z-index:40;padding:22px 14px 14px;box-shadow:8px 0 28px rgba(17,34,60,.06)}.brand{display:flex;align-items:center;gap:11px;padding:0 7px 22px;border-bottom:1px solid rgba(206,222,246,.13)}.brand-icon{display:grid;place-items:center;width:44px;height:44px;background:linear-gradient(145deg,#52a8ff,#365ee9);color:#fff;border-radius:14px;font-weight:800;font-size:24px;flex:0 0 auto;box-shadow:0 7px 17px #10213d}.brand>span:last-child,.login-brand>div{display:flex;flex-direction:column;gap:1px}.brand strong,.login-brand strong{font-size:20px;letter-spacing:.01em;color:#fff}.brand small,.login-brand small{font-size:9px;letter-spacing:.12em;color:#9fb5d8;font-weight:700}.sidebar-caption{font-size:10px;letter-spacing:.14em;color:#7793bc;font-weight:800;padding:25px 12px 9px}.main-nav{display:flex;flex-direction:column;gap:5px;overflow:auto;flex:1;min-height:0;padding-bottom:10px;scrollbar-width:thin;scrollbar-color:#405a7f transparent}.nav-link{display:flex;align-items:center;gap:12px;min-height:45px;padding:11px 13px;border-radius:12px;color:#b7c9e3;font-size:12px;font-weight:600;transition:background .16s,color .16s}.nav-link:hover{background:rgba(183,211,255,.08);color:#fff}.nav-link.active{background:linear-gradient(95deg,rgba(62,123,239,.28),rgba(59,119,231,.1));color:white;box-shadow:inset 3px 0 #66a0ff}.nav-ico{width:23px;flex:0 0 23px;text-align:center;color:#92b2e3;font-size:19px}.sidebar-bottom{display:flex;align-items:center;gap:9px;border-top:1px solid rgba(206,222,246,.13);padding:14px 4px 1px;flex:0 0 auto}.user-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d9e8ff;color:#1e53a1;font-weight:800;flex:0 0 auto}.user-data{display:flex;flex-direction:column;min-width:0;flex:1}.user-data strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}.user-data a{font-size:10px;color:#9fb3d0}.logout{border:0;background:transparent;color:#bcd0ed;font-size:23px;cursor:pointer}.sidebar-backdrop{display:none}.main-area{margin-left:260px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:66px;display:flex;align-items:center;gap:14px;padding:0 32px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.crumb{display:flex;align-items:center;gap:12px;font-size:11px;color:#7486a1;font-weight:600}.crumb span{color:#c4cede}.crumb strong{color:#2b3d59}.topbar-note{margin-left:auto;display:flex;align-items:center;gap:9px;font-size:11px;color:#7586a0}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#21c894;box-shadow:0 0 0 4px #e3faf1}.mobile-menu{display:none;border:0;background:#eef3fb;color:#304967;border-radius:9px;width:37px;height:37px;font-size:20px}.page-wrap{width:100%;max-width:1720px;padding:30px 32px 22px;margin:0 auto;flex:1}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 21px}.page-heading h1{margin:0;font-weight:800;font-size:30px;line-height:1.2;letter-spacing:-.04em}.page-heading p{font-size:12px;color:#8090a9;margin:8px 0 0}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#527bb9;margin-bottom:7px}.muted{color:#8292aa}.small{font-size:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 15px;border:1px solid transparent;border-radius:10px;font-weight:700;font-size:11px;line-height:1.3;cursor:pointer;white-space:nowrap;transition:transform .14s,background .14s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,#3478f7,#2458e7);color:white;box-shadow:0 7px 16px rgba(46,109,243,.15)}.btn-secondary{background:#fff;border-color:#dce5f1;color:#526581}.btn-dark{background:#192b47;color:white}.btn-danger{background:#fff7f8;border-color:#f4d5dc;color:#b33b51}.btn-xs{min-height:30px;padding:5px 9px;border-radius:7px;font-size:10px}.full{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:21px}.stats-two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px}.stat-card{position:relative;overflow:hidden;background:#fff;border:1px solid #e5ebf4;border-radius:18px;padding:20px 21px;min-width:0;box-shadow:var(--shadow)}.stat-total{background:linear-gradient(135deg,#173969,#286eb1);color:white}.stat-label{font-size:11px;color:#7c8da6;font-weight:600}.stat-total .stat-label,.stat-total .stat-caption{color:#c4dcf8}.stat-value{font-size:clamp(22px,2vw,31px);line-height:1.35;font-weight:800;letter-spacing:-.04em;margin:8px 0 4px;overflow-wrap:anywhere}.stat-caption{font-size:9px;color:#9ba8ba}.stat-mark{position:absolute;right:17px;top:17px;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf0ff;color:#3478f5;font-size:20px;font-weight:800}.stat-mark.green{background:#e4f8ef;color:#128c66}.stat-mark.red{background:#ffeaee;color:#d8465f}.stat-mark.blue{background:#e7f4ff;color:#1684c7}.money-positive{color:#128b66!important}.money-negative{color:#ce4058!important}.stat-total .money-positive,.stat-total .money-negative{color:white!important}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:18px;margin-bottom:20px}.panel{background:white;border:1px solid #e3eaf4;border-radius:19px;box-shadow:var(--shadow);min-width:0;overflow:hidden;margin-bottom:18px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 22px 17px}.panel-heading h2,.panel-pad h2{font-size:14px;margin:0;font-weight:800;color:#203654}.panel-heading p{font-size:10px;color:#91a0b5;margin:5px 0 0}.text-link{font-size:10px;font-weight:800;color:#2f6fe9;white-space:nowrap}.table-wrap{width:100%;overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0;min-width:680px;text-align:left}.data-table th{font-size:9px;color:#8799b3;letter-spacing:.09em;font-weight:800;background:#f8faff;padding:13px 15px;border-top:1px solid #edf1f7;border-bottom:1px solid #edf1f7;white-space:nowrap}.data-table td{padding:13px 15px;border-bottom:1px solid #edf1f7;font-size:10px;color:#5f718b;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.txn-title{color:#293d5b;font-size:11px;font-weight:800}.align-right{text-align:right}.no-wrap{white-space:nowrap}.amount{white-space:nowrap;font-weight:800;font-size:10px!important}.pill{display:inline-flex;align-items:center;border-radius:7px;background:#edf2f9;padding:4px 7px;font-size:9px;font-weight:800;color:#697b95;white-space:nowrap}.pill-income{background:#e5f8ef;color:#108960}.pill-expense{background:#ffeaee;color:#c43e55}.pill-transfer{background:#e8f1ff;color:#306bd6}.row-actions{display:flex;align-items:center;gap:5px}.row-actions form,.card-actions form,.category-item form{margin:0}.category-bars{padding:2px 22px 22px}.bar-row{margin:13px 0}.bar-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:10px;color:#657893}.bar-label strong{font-size:10px;color:#2c405f;white-space:nowrap}.bar-track{height:7px;background:#edf1f7;border-radius:99px;overflow:hidden}.bar-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#5a91f7,#2e6df3)}.bar-fill.over-budget{background:linear-gradient(90deg,#f59e0b,#dc4057)}.empty-note{padding:25px;text-align:center;color:#8b9ab0;font-size:11px}.empty-state{padding:35px 22px;text-align:center}.empty-state>span{display:grid;place-items:center;margin:0 auto;width:48px;height:48px;background:#edf3ff;border-radius:14px;color:#3478f5;font-size:24px}.empty-state h3{margin:12px 0 4px;font-size:14px}.empty-state p{margin:0 0 15px;color:#8b9ab0;font-size:11px}.budget-list{padding:0 22px 18px}.budget-row{margin:12px 0}.budget-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#677a95;margin-bottom:7px}.budget-meta strong{color:#2f4260}.month-filter,.filter-panel{display:flex;align-items:flex-end;gap:10px;padding:13px 15px;border:1px solid #e1e8f2;background:#fff;border-radius:14px;margin-bottom:18px;flex-wrap:wrap}.month-filter label,.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:10px;font-weight:800;color:#536783}.month-filter input,.filter-panel input,.filter-panel select,.form-grid input,.form-grid select,.form-grid textarea{height:41px;border:1px solid #dce5f1;border-radius:9px;background:#fbfcff;color:#30425f;padding:9px 11px;outline:none;min-width:0}.month-filter input{height:39px}.filter-panel input[type=search]{flex:1;min-width:190px}.filter-panel select{min-width:160px}.filter-panel input[type=month]{min-width:135px}.form-panel{padding:23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.form-grid .span-2{grid-column:1/-1}.form-grid textarea{height:auto;resize:vertical;min-height:90px}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.filter-panel input:focus,.filter-panel select:focus{border-color:#75a1f2;box-shadow:0 0 0 3px rgba(52,120,247,.1)}.form-actions{display:flex;justify-content:flex-end;gap:9px;padding:20px 0 0;margin-top:18px;border-top:1px solid #edf1f7}.notice{border:1px solid #d9e7ff;background:#f2f7ff;color:#476893;border-radius:12px;padding:13px 15px;font-size:10px;line-height:1.7;margin:14px 0 18px}.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.account-card{background:white;border:1px solid #e2eaf4;border-radius:17px;padding:19px;box-shadow:var(--shadow);min-width:0}.account-card.account-inactive{opacity:.65}.account-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.account-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#e9f1ff;color:#3478f5;font-size:20px;font-weight:800}.account-card h2{font-size:13px;margin:15px 0 4px}.account-balance{font-size:23px;font-weight:800;letter-spacing:-.04em;overflow-wrap:anywhere}.card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px;padding-top:14px;border-top:1px solid #edf1f7}.category-columns{display:grid;grid-template-columns:1fr 1fr;gap:17px}.category-list{padding:0 18px 15px}.category-item{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #edf1f7;min-width:0}.category-item:last-child{border-bottom:0}.category-name{font-size:11px;font-weight:700;color:#334966;flex:1;min-width:0;overflow-wrap:anywhere}.color-dot{display:inline-block;flex:0 0 9px;width:9px;height:9px;border-radius:50%;vertical-align:middle;margin-right:5px}.budget-table{padding:0 22px}.budget-edit-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(180px,.9fr) minmax(150px,.9fr);align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid #edf1f7}.budget-edit-row>div:first-child{display:flex;flex-direction:column;gap:4px}.budget-edit-row strong{font-size:11px}.budget-edit-row small{font-size:9px}.budget-edit-row label{display:flex;flex-direction:column;gap:5px;font-size:9px;color:#7c8da7}.budget-edit-row input{height:38px;border:1px solid #dce5f1;border-radius:9px;padding:8px 10px;width:100%;min-width:0}.budget-progress small{font-size:9px;color:#8494aa;display:block;margin-top:6px}.report-panel{margin-bottom:18px}.history-chart{height:210px;display:flex;align-items:stretch;gap:10px;padding:15px 25px 0;border-bottom:1px solid #edf1f7}.history-item{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px}.history-bars{height:164px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px;border-bottom:1px solid #dfe7f2;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#f0f3f8 40px)}.history-bar{width:min(32%,25px);border-radius:5px 5px 0 0;min-height:3px}.income-bar{background:#37ad85}.expense-bar{background:#ef8d56}.history-item>strong{font-size:9px;color:#7586a0;white-space:nowrap}.chart-legend{display:flex;justify-content:center;gap:18px;padding:12px;font-size:9px;color:#7889a1}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px}.legend-income{background:#37ad85}.legend-expense{background:#ef8d56}.compact-form{max-width:760px}.panel-pad{padding:20px 22px}.panel-pad p{font-size:11px;line-height:1.7}.flash-stack,.standalone-flashes{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.flash{padding:11px 14px;border-radius:10px;font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid}.flash-success{color:#087650;background:#e9f9f1;border-color:#c5efdc}.flash-error{color:#a63349;background:#fff0f3;border-color:#f4d4dc}.flash-close{background:none;border:0;color:inherit;font-size:18px;cursor:pointer}.footer{display:flex;justify-content:space-between;gap:12px;padding:20px 4px 0;color:#9ba8b9;font-size:9px}.error-page{max-width:600px;padding:45px;text-align:center;margin:35px auto}.error-number{font-size:60px;font-weight:800;color:#dce7f7}.error-page h1{font-size:22px}.error-page p{font-size:12px;color:#8090a7;margin-bottom:24px}.login-page{min-height:100vh;padding:40px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 15% 80%,rgba(47,105,207,.23),transparent 30%),linear-gradient(140deg,#10213d,#173b65)}.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:25px}.login-card{width:100%;max-width:420px;background:white;border:1px solid #e1e8f3;border-radius:21px;box-shadow:0 25px 70px rgba(0,0,0,.15);padding:32px}.login-card h1{font-size:28px;margin:4px 0}.login-card>p{font-size:12px;margin:0 0 25px}.form-stack{display:flex;flex-direction:column;gap:17px}.form-stack label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#536783}.form-stack input{height:46px;border:1px solid #dce5f1;border-radius:10px;padding:10px 12px;outline:none}.form-stack input:focus{border-color:#75a1f2;box-shadow:0 0 0 3px rgba(52,120,247,.1)}.login-tip{border-top:1px solid #edf1f7;margin-top:20px;padding-top:15px;text-align:center;color:#90a0b4;font-size:9px;line-height:1.6}.standalone-flashes{position:fixed;top:12px;left:12px;right:12px;z-index:100}.standalone-flashes .flash{max-width:600px;margin:0 auto;width:100%}code{background:#f0f4fb;padding:2px 5px;border-radius:5px}
@media(max-width:1250px){.sidebar{width:235px}.main-area{margin-left:235px}.page-wrap{padding:25px 22px 18px}.topbar{padding:0 22px}.stats-grid{gap:10px}.stat-card{padding:17px}.dashboard-grid{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)}.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-grid,.category-columns{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-edit-row{grid-template-columns:1fr 1fr}.budget-progress{grid-column:1/-1}.topbar-note{display:none}}
@media(max-width:700px){.sidebar{width:285px;transform:translateX(-105%);transition:transform .2s ease;box-shadow:18px 0 45px rgba(5,17,34,.25)}body.nav-open .sidebar{transform:translateX(0)}body.nav-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(7,18,36,.52);z-index:35}.main-area{margin-left:0}.topbar{height:58px;padding:0 13px;gap:9px}.mobile-menu{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.crumb{gap:7px;font-size:10px;min-width:0}.crumb span{display:none}.page-wrap{padding:22px 13px 17px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:17px}.page-heading>.btn{align-self:flex-start}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}.stats-grid{gap:9px;margin-bottom:15px}.stat-card{padding:14px;border-radius:14px}.stat-label{font-size:9px;padding-right:22px}.stat-value{font-size:clamp(19px,5.4vw,26px);margin:9px 0 4px}.stat-caption{font-size:8px;line-height:1.5}.stat-mark{width:27px;height:27px;right:10px;top:10px;font-size:16px;border-radius:8px}.panel{border-radius:15px;margin-bottom:14px}.panel-heading{padding:16px 14px 14px;align-items:flex-start}.panel-heading h2{font-size:13px}.panel-heading p{font-size:9px}.data-table{min-width:670px}.data-table th,.data-table td{padding:11px}.category-bars{padding:0 15px 16px}.filter-panel{padding:10px;gap:8px}.filter-panel input[type=search]{min-width:100%;flex:1 0 100%}.filter-panel input[type=month],.filter-panel select{min-width:0;flex:1;width:calc(50% - 5px)}.filter-panel .btn{flex:1}.month-filter{padding:10px;gap:8px}.month-filter label{flex:1;min-width:120px}.month-filter input{width:100%}.form-panel{padding:17px 14px}.form-grid{grid-template-columns:1fr;gap:14px}.form-grid .span-2{grid-column:auto}.form-grid input,.form-grid select{height:43px;width:100%}.form-actions{justify-content:stretch}.form-actions .btn{flex:1}.account-grid{grid-template-columns:1fr;gap:10px}.account-card{padding:16px}.category-item{gap:6px;flex-wrap:wrap}.category-name{min-width:100px}.budget-table{padding:0 14px}.budget-edit-row{grid-template-columns:1fr;gap:10px;padding:15px 0}.budget-progress{grid-column:auto}.stats-two{grid-template-columns:1fr}.history-chart{height:190px;padding:10px 12px 0;gap:6px}.history-bars{height:145px;gap:3px}.footer{flex-direction:column;gap:4px;padding-top:16px}.login-page{padding:24px 13px}.login-card{padding:25px 20px}.login-card h1{font-size:25px}.error-page{padding:30px 18px}.row-actions{flex-wrap:wrap}}

/* Login: remember this device without storing the password in app storage. */
.remember-row{display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;font-weight:500!important;color:#536783}.remember-row input{width:16px;height:16px;flex:0 0 auto;padding:0;border:0;appearance:auto;accent-color:#3478f5}.remember-row span{line-height:1.4}

/* DULQ_TC_INVESTMENT_STYLES_V1 */
.investment-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.investment-stat{background:#fff;border:1px solid #e2eaf4;border-radius:16px;padding:18px 20px;box-shadow:var(--shadow);min-width:0}
.investment-stat-label{font-size:10px;color:#7c8da7;font-weight:800}
.investment-stat-value{font-size:clamp(20px,2.2vw,28px);font-weight:800;letter-spacing:-.04em;color:#1c2e4a;overflow-wrap:anywhere;margin:8px 0 3px}
.investment-stat-sub{font-size:9px;color:#93a1b5}
.investment-form-help{display:block;font-size:10px;color:#8292a8;font-weight:500;line-height:1.6;margin-top:3px}
.investment-positive{color:#0e9469!important;font-weight:800!important;white-space:nowrap}
.investment-negative{color:#c23d55!important;font-weight:800!important;white-space:nowrap}
.investment-neutral{color:#62748d!important;font-weight:800!important;white-space:nowrap}
.investment-note-cell{min-width:180px;max-width:360px;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
.investment-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.investment-actions form{margin:0}
.investment-date-field input{min-width:170px}
@media(max-width:900px){.investment-summary-grid{grid-template-columns:1fr 1fr}.investment-summary-grid .investment-stat:last-child{grid-column:1/-1}}
@media(max-width:700px){.investment-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.investment-stat{padding:14px;border-radius:13px}.investment-stat-value{font-size:20px}.investment-summary-grid .investment-stat:last-child{grid-column:auto}.investment-note-cell{min-width:150px;max-width:220px}}

