:root{--cream:#f0f5fc;--ink:#172b4d;--amber:#173b70;--yellow:#173b70;--muted:#526176}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:16px system-ui,sans-serif}button,a{font:inherit}button{border:0;border-radius:12px;padding:14px 20px;background:var(--yellow);color:var(--ink);cursor:pointer}a{color:inherit;text-decoration:none}.brand{font-size:36px;font-weight:750;color:var(--amber)}.brand small{display:block;font-size:11px;letter-spacing:1px}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100dvh}nav{padding:24px;background:white}nav a{display:block;padding:12px;border-radius:10px}nav a[aria-current]{background:#dceafb;color:var(--amber)}.content{padding:32px;min-width:0}.panel{background:white;border-radius:20px;padding:24px}.notice{color:var(--muted)}.auth{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.hero,.login{display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,6vw,96px)}.hero{background:linear-gradient(135deg,#0b1938,#3267b5)}.login{background:white;gap:16px}.maintenance{min-height:100dvh;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;padding:40px 20px}footer{font-size:12px;color:var(--muted)}@media(max-width:700px){.auth,.shell{display:flex;flex-direction:column}.hero{padding:24px}.login{flex:1}.content{padding:16px}nav{padding:12px;display:flex;gap:8px;overflow:auto;white-space:nowrap}nav .brand{display:none}}
h1,h2,h3,p{margin:0}h1{font-size:23px}h2{font-size:21px}.dash{max-width:1152px;margin:auto;display:grid;gap:24px}.dash header,.split{display:flex;justify-content:space-between;align-items:center;gap:12px}.dash small{font-size:12px;color:var(--muted)}.balance{background:linear-gradient(100deg,#0b1938,#3267b5);padding:24px 20px;border-radius:20px;display:grid;gap:12px}.amount{font-size:clamp(26px,5vw,34px);font-weight:700}.balance hr{border:0;border-top:1px solid #a5b9d6;width:100%}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{padding:14px;border-radius:16px;display:grid;gap:8px;font-size:13px}.metric strong{font-size:17px}.dash .section{display:grid;gap:12px}.dash .line{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:8px;align-items:center;border-bottom:1px solid #e0e5e6;padding:9px 0;font-size:12px}.progress{height:8px;border-radius:8px;background:#dde5e4;overflow:hidden}.progress i{display:block;height:100%;width:33.3%;background:#46a995}.cta{display:block;text-align:center;background:linear-gradient(90deg,#173b70,#3267b5);padding:14px;border-radius:10px;font-weight:600}.link{color:var(--amber);font-size:13px;font-weight:600}.period{background:white;padding:8px 10px;border-radius:10px;font-size:12px}.mobile-nav,.menu-sheet{display:none}.balance button{width:44px;height:44px;padding:0;background:#f0f5fc}@media(max-width:700px){.shell>nav{display:none}.content{padding:20px 16px 92px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;background:white;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 6px calc(8px + env(safe-area-inset-bottom));gap:3px;border-top:1px solid #e0e5e6}.mobile-nav a,.mobile-nav button{display:grid;justify-items:center;gap:4px;font-size:11px;padding:7px 2px;background:white;border-radius:12px}.mobile-nav [aria-current]{background:#dceafb;color:#173b70}.mobile-nav b{font-size:20px}.menu-sheet:not([hidden]){display:grid;position:fixed;bottom:76px;left:12px;right:12px;background:white;border-radius:16px;padding:12px;z-index:11;box-shadow:0 8px 32px #172b4d26;max-height:65dvh;overflow:auto}.menu-sheet a{padding:12px}.period{flex-shrink:0}}

/* FINPLAN Navy Gradient */
:root{--navy-deep:#0b1938;--navy:#173b70;--royal:#3267b5;--navy-gradient:linear-gradient(135deg,var(--navy-deep),var(--navy),var(--royal));--surface:#fff}button,.cta{background:var(--navy-gradient);color:white}.hero,.balance{background:var(--navy-gradient);color:white}.dash .balance small{color:#e3edfc}.balance button{background:#dceafb;color:#173b70}.mobile-nav button{color:#526176}.hero .brand,.hero footer{color:white}.login footer{color:#526176}

/* Lightweight decorative finance waves: no external asset requests */
:root{--finance-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='420' viewBox='0 0 640 420'%3E%3Cg fill='none' stroke='%237da7e5' stroke-opacity='.19' stroke-width='1.2'%3E%3Cpath d='M-60 340 Q130 90 320 230 T700 50 M-60 365 Q130 115 320 255 T700 75 M-60 390 Q130 140 320 280 T700 100 M-60 415 Q130 165 320 305 T700 125'/%3E%3Ccircle cx='560' cy='80' r='66'/%3E%3Ccircle cx='560' cy='80' r='88'/%3E%3C/g%3E%3C/svg%3E")}
body,.content,.maintenance{background-image:var(--finance-pattern),radial-gradient(ellipse at top right,#dceafb 0,transparent 60%);background-repeat:no-repeat;background-position:right top;background-size:min(640px,100%) auto,100% 100%}
.shell>nav,.mobile-nav,.hero,.balance{background-image:var(--finance-pattern),var(--navy-gradient);background-position:right bottom,center;background-repeat:no-repeat;background-size:auto 420px,cover;color:#fff}
.shell>nav .brand,.shell>nav a{color:#f1f6ff}.shell>nav a[aria-current],.shell>nav a:hover{background:#3267b5;color:#fff}.shell>nav a:focus-visible,.mobile-nav a:focus-visible,.mobile-nav button:focus-visible{outline:2px solid #a8c6f4;outline-offset:2px}.shell>nav{min-height:100dvh}.balance{background-size:cover,cover}.hero{background-size:cover,cover}.menu-sheet:not([hidden]){background:var(--navy-gradient);color:#fff}.menu-sheet a:hover{background:#3267b5;border-radius:10px}
@media(max-width:700px){.mobile-nav{background-size:cover,cover;border-top-color:#3267b5}.mobile-nav a,.mobile-nav button{background:transparent;color:#e3edfc}.mobile-nav [aria-current]{background:#3267b5;color:#fff}}

/* V6 authenticated canvas */
.content{background-image:var(--finance-pattern),linear-gradient(106deg,#dbe9fc 0%,#f9fbff 48%,#f4e7d6 100%);background-size:100% auto,cover}
.shell>nav{background-image:var(--finance-pattern),radial-gradient(ellipse at bottom left,#bfa98b33,transparent 35%),linear-gradient(93deg,#142b50,#234b83,#0b1938);background-size:224px auto,cover,cover;align-self:stretch;padding:28px 16px}.shell>nav .brand{font-size:30px;margin-bottom:12px}.shell>nav a{font-size:13px;margin-bottom:4px}
.module{max-width:1152px;margin:auto;display:grid;gap:16px}.module h1{font-size:30px}.module h2{font-size:18px}.module p,.module small{line-height:1.5}.module small,.muted{color:var(--muted);font-size:13px}.module .panel{display:grid;gap:12px;padding:16px;border-radius:16px}.module .metric strong{font-size:clamp(16px,2vw,24px);overflow-wrap:anywhere}.module .balance small{color:#e3edfc}.module .balance{gap:14px}.module .line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e0e5e6}.module .line:last-child{border:0}.module .line>div{display:grid;gap:4px}.module .line strong{text-align:right}.module .progress i{width:var(--pct,0%)}.module .actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.module .actions a,.module .actions button{font-size:13px;font-weight:600}.module .actions button{padding:8px 12px}.module .demo-note{font-size:12px;color:var(--muted)}.module .soft{background:#e7effb}.module .mint{background:#ddf3e8}.module .peach{background:#ffe2d5}.module .sand{background:#fce8b7}.module .tabs{display:flex;flex-wrap:wrap;gap:8px}.module .tabs a{padding:10px;background:white;border-radius:10px;font-size:13px}.module .tabs a:first-child{background:#173b70;color:white}.module .balance .cta{background:#fff;color:#173b70}.module .chart-bars{display:flex;gap:8px;align-items:end;height:120px}.module .chart-bars span{flex:1;background:#3267b5;border-radius:5px 5px 0 0;height:75%}.login input{width:100%;padding:12px;border:1px solid #d5dce7;border-radius:10px;background:white}.login label{display:grid;gap:6px;font-size:13px}.login footer{text-align:center;line-height:1.6}.maintenance section{display:grid;gap:16px;justify-items:center}.hero h1{font-size:clamp(24px,3.5vw,48px);line-height:1.3}.hero p{margin-top:12px}
@media(max-width:700px){.module h1{font-size:23px}.module .panel{padding:14px}.module .metric{min-width:0}.module .metric strong{font-size:16px}.module .line{font-size:13px}.module .actions{gap:8px}.content{background-size:100% auto,cover}.mobile-nav button[aria-current]{background:#3267b5;color:white}}

.fin-dialog{border:0;border-radius:18px;padding:24px;width:min(480px,calc(100% - 32px));max-height:90dvh;overflow:auto;color:#172b4d;background:white}.fin-dialog::backdrop{background:#0b193899}.fin-dialog form{display:grid;gap:14px}.fin-dialog label,.module label{display:grid;gap:6px;font-size:14px}.fin-dialog input,.fin-dialog select,.module input{width:100%;padding:12px;border:1px solid #b4c7e0;border-radius:10px;font:inherit;background:white;color:#172b4d}.form-error{color:#a11c32}.fin-dialog .actions{display:flex;justify-content:flex-end;gap:8px}.module button:disabled{opacity:.5;cursor:not-allowed}

/* FINPLAN V6 Editorial — shared design tokens from Figma Dashboard */
:root{--cream:#f4f6fb;--ink:#202746;--amber:#4654d9;--yellow:#4654d9;--muted:#66718a;--navy-gradient:linear-gradient(90deg,#202951,#434db2,#7753a9);--surface:#fff;--line:#e0e4f2}
body{font-family:Inter,system-ui,sans-serif;background:#f4f6fb;color:var(--ink)}
.shell{grid-template-columns:248px minmax(0,1fr)}
.shell>nav{background:#fcfcff;color:#46536b;border-right:1px solid var(--line);padding:16px 12px}
.shell>nav .brand{color:#4654d9;font-size:28px;font-weight:600;margin-bottom:14px}
.shell>nav .brand small{color:#65718a;font-size:10px}
.shell>nav a{display:flex;align-items:center;min-height:38px;padding:8px 12px;margin-bottom:3px;background:#fff;color:#46536b;font-size:12px;border-radius:8px}
.shell>nav a[aria-current],.shell>nav a:hover{background:#eef0ff;color:#4654d9;font-weight:600}
.content{background:linear-gradient(90deg,#edf1ff,#f7f2fc 50%,#fff6ef);padding:30px 32px}
.module,.dash{max-width:1128px;gap:24px}.module h1,.dash h1{font-size:30px;font-weight:600;letter-spacing:-.5px}
.panel,.module .panel{border:1px solid var(--line);border-radius:16px;background:#fff;padding:20px;box-shadow:none}
button,.cta{background:#4654d9;color:white;border-radius:8px;padding:10px 14px;font-weight:600;font-size:13px}
button:hover,.cta:hover{filter:brightness(.96)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #4654d9;outline-offset:2px}
.balance,.module .balance{background:var(--navy-gradient);color:white;border-radius:28px;padding:24px;gap:13px}
.amount{font-size:clamp(28px,4vw,44px);font-weight:600}
.period{border:1px solid #dde1f0;border-radius:12px;color:#3946a2;background:white}
.module .split{border-color:var(--line)!important}.module .split button{padding:7px 11px}
.fin-dialog{color:var(--ink);border:1px solid var(--line);border-radius:16px}
.fin-dialog input,.fin-dialog select,.module input,.module select{border:1px solid #dde1f0;border-radius:8px;background:white;color:var(--ink);font:inherit;max-width:100%}
.fin-dialog [data-cancel]{background:#eef0ff;color:#4654d9}
.hero{background:var(--navy-gradient)}
@media(max-width:700px){.content{padding:20px 16px 92px}.module h1,.dash h1{font-size:24px}.module,.dash{gap:16px}.module .panel,.panel{padding:16px}.balance,.module .balance{border-radius:20px;padding:20px}.mobile-nav{background:#fcfcff;border-top:1px solid var(--line);color:#46536b}.mobile-nav a,.mobile-nav button{background:transparent;color:#65718a}.mobile-nav [aria-current],.mobile-nav button[aria-current]{background:#eef0ff;color:#4654d9}.menu-sheet:not([hidden]){background:white;color:#46536b;border:1px solid var(--line)}.menu-sheet a:hover{background:#eef0ff;color:#4654d9}}

.nav-label{display:block;font-size:10px;font-weight:600;color:#8993a8;margin:0 0 6px 12px}.overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.overview-metrics .metric{padding:0;gap:7px}.overview-metrics .metric strong{font-size:20px}.overview-metrics .metric:after{content:"";width:32px;height:3px;border-radius:2px;background:#8ebaff}.overview-metrics .metric:nth-child(2):after{background:#f3bc89}.overview-metrics .metric:nth-child(3):after{background:#c5b9ff}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.quick-actions a{background:#eef0ff;color:#3946a2;border-radius:12px;padding:18px 12px;font-size:13px;font-weight:600}.quick-actions a:nth-child(2){background:#e4f4ec;color:#22644d}.quick-actions a:nth-child(3){background:#fff0df;color:#84501c}.quick-actions a:nth-child(4){background:#f2eaff;color:#624299}.balance .progress{height:6px;background:#6473b5}.dash header>div{display:grid;gap:8px}.dash header .period{padding:12px;min-width:0;max-width:220px}.panel>.metrics{margin-top:8px}.panel>.metrics .metric{background:#f4f6fb}.module .panel>.split{gap:8px}.module .panel>.split button{flex-shrink:0}@media(max-width:700px){.overview-metrics{gap:8px}.overview-metrics .metric strong{font-size:13px}.overview-metrics .metric small{font-size:10px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dash header{flex-wrap:wrap}.dash header .period{max-width:100%}.module .panel>.split{font-size:13px}}

/* Module-specific Figma overview surfaces */
.editorial-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.editorial-metrics .metric{background:#e7effb;border:1px solid #dde1f0;padding:20px}.editorial-metrics .metric:nth-child(2){background:#fce8b7}.editorial-metrics .metric:nth-child(3){background:#ddf3e8}.editorial-metrics .metric:nth-child(4){background:#ffe2d5}.module .editorial-hero{padding:24px;border-radius:24px;gap:10px}.module .editorial-hero.peach{background:linear-gradient(110deg,#fff0df,#fad3b8)}.module .editorial-hero.mint{background:linear-gradient(110deg,#eaf6df,#cde8c4)}.module .editorial-hero.soft{background:linear-gradient(110deg,#e7effb,#c4d9f4)}.mortgage-overview{background:linear-gradient(110deg,#e7effb,#e9d9bf)!important}.mortgage-overview .progress i{background:#648f72}.module .panel h2{font-weight:600}.module .panel .split>div{display:grid;gap:4px}.module .panel .split>div small{display:block}.module .panel .split button[data-action^="d"]{background:#f1f3fa;color:#46536b}.module .panel .split button[data-action^="pay"]{background:#146b55;color:white}@media(max-width:700px){.editorial-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-metrics .metric{padding:12px}.module .editorial-hero{padding:20px}.module .panel .split button{font-size:12px}}

/* Figma account screens */
.auth{background:radial-gradient(ellipse at 80% 25%,#a8c6f459,transparent 60%),#f0f5fc;grid-template-columns:1fr 1fr;align-items:stretch}.auth .hero{background:linear-gradient(110deg,#0b1938,#3267b5);padding:64px;min-height:100dvh}.auth .login{background:transparent;width:min(100%,440px);padding:40px 24px;margin:auto;gap:16px;color:#172b4d}.auth .brand{color:#173b70;font-size:36px}.auth .login h1{font-size:28px;font-weight:650}.auth .login p{color:#526176;font-size:14px}.auth form{display:grid;gap:16px}.auth label[hidden],.auth button[hidden]{display:none}.auth input{border:1px solid #dde3e8;border-radius:10px;min-height:46px;font:inherit}.auth form button{background:#3267b5;min-height:46px;font-size:14px}.auth #forgot-password,.auth #register-toggle{background:transparent;color:#3267b5;padding:4px;text-align:center}.auth #forgot-password{text-align:right}.auth footer{margin-top:16px}.auth-single{display:flex;justify-content:center;align-items:flex-start;padding:60px 16px}.auth-single .hero{display:none}.auth-single .login{margin:0;width:min(440px,100%);padding:0}.auth-single #forgot-password{text-align:center}.auth [role=alert]:empty,.auth [role=status]:empty{display:none}.auth [role=alert]{color:#a11c32}.auth button:disabled{opacity:.6;cursor:wait}@media(max-width:700px){.auth{display:flex;flex-direction:column}.auth .hero{min-height:0;padding:32px 24px}.auth .hero h1{font-size:26px}.auth .login{padding:24px}.auth-single{padding:32px 16px}.auth-single .login{padding:0}}

.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0}.report-grid>.panel{min-width:0}.report-bar{display:grid;gap:8px}.report-bar .progress i{background:#3267b5}.annual-bars{height:170px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;padding-bottom:24px}.annual-bars>div{position:relative;display:flex;align-items:flex-end;justify-content:center;min-width:0}.annual-bars span{width:70%;background:#3267b5;border-radius:5px 5px 0 0}.annual-bars small{position:absolute;bottom:-22px}.allocation-results{display:grid;gap:12px;padding:20px;border-radius:16px;background:#e7effb;color:#172b4d}.allocation-results .split{padding:8px 0}.module[data-module=reports] .editorial-hero{background:linear-gradient(110deg,#e7effb,#fce8b7)}@media(max-width:700px){.report-grid{grid-template-columns:1fr}.annual-bars{gap:4px}.allocation-results{padding:16px}}

.debt-tabs{display:flex;flex-wrap:wrap;gap:8px}.debt-tabs button{background:#fff;color:#173b70;border:1px solid #e0e5e6}.debt-tabs button[aria-current]{background:#173b70;color:white}.maintenance{background:radial-gradient(ellipse at 80% 25%,#a8c6f459,transparent 60%),#f0f5fc;color:#172b4d}.maintenance .brand{color:#173b70}.maintenance section{max-width:440px;gap:16px}.maintenance h1{font-size:32px}.maintenance section>small:first-child{color:#3267b5;font-weight:600;letter-spacing:1px}.maintenance button{background:#3267b5}.fin-dialog{padding:14px;border-radius:16px}.fin-dialog h2{font-size:22px}.fin-dialog form{gap:10px}.fin-dialog label{background:#f0f5fc;padding:10px;border-radius:10px}.fin-dialog .actions{flex-direction:row-reverse;justify-content:flex-start}.fin-dialog .actions button{flex:1}.fin-dialog fieldset[hidden]{display:none}@media(max-width:700px){.debt-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.debt-tabs button{white-space:nowrap}.maintenance h1{font-size:26px}}

/* Gold Tracker navigation pattern, FinPlan palette */
.ico{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0}.shell>nav a{gap:12px}.menu-overlay,.menu-sheet-heading{display:none}@media(max-width:760px){.shell{display:block}.shell>nav{display:none}.content{padding:20px 16px calc(92px + env(safe-area-inset-bottom))}.mobile-nav{position:fixed;inset:auto 0 0;display:flex;align-items:center;justify-content:space-around;min-height:70px;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e0e5e6;z-index:30;gap:0}.mobile-nav a,.mobile-nav button{flex:1;min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#526176;background:transparent;padding:6px 0;font-size:10px;line-height:1.2;border-radius:8px;font-weight:500}.mobile-nav .ico{width:22px;height:22px}.mobile-nav [aria-current],.mobile-nav button[aria-current]{color:#173b70;background:#e7effb;font-weight:600}.menu-overlay:not([hidden]){display:block;position:fixed;inset:0;background:#0b193866;z-index:28}.menu-sheet:not([hidden]){display:grid;gap:4px;position:fixed;bottom:calc(78px + env(safe-area-inset-bottom));left:12px;right:12px;max-height:calc(100dvh - 110px - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;background:white;color:#172b4d;z-index:29;padding:12px;border:1px solid #e0e5e6;border-radius:16px}.menu-sheet-heading{display:flex;justify-content:space-between;align-items:center;padding:4px 8px}.menu-sheet-heading button{background:transparent;color:#526176;font-size:24px;padding:6px 12px}.menu-sheet a{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:8px;font-size:14px}.menu-sheet a[aria-current]{background:#e7effb;color:#173b70;font-weight:600}.menu-sheet a .ico{width:20px;height:20px}}

.category-list{display:grid;gap:12px;margin-top:16px}.category-group{border:1px solid #dde3e8;border-radius:12px;overflow:hidden;background:#fff}.category-group summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:14px;background:#f0f5fc;color:#172b4d;gap:10px}.category-group summary::-webkit-details-marker{display:none}.category-group summary small,.category-child small{display:block;font-size:11px;margin-top:4px}.category-group[open] summary>.ico{transform:rotate(90deg)}.category-body{padding:10px 12px}.category-child{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e0e5e6;padding:12px 0 12px 12px}.category-child>div:first-child{min-width:0;overflow-wrap:anywhere}.category-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.category-actions button{font-size:11px;padding:7px 9px;min-height:36px;width:auto!important;flex:none!important}.category-status.on{color:#16754b}.category-status.off{color:#697386}.category-body>button{margin-top:12px;background:#e7effb;color:#173b70;width:100%}.category-group summary strong{font-size:15px}.category-child strong{font-size:13px}@media(max-width:760px){.category-child{padding-left:4px}.category-actions{gap:5px}.category-actions button{min-height:40px}.category-body{padding:10px}.category-group summary{padding:12px}}

.plan-group-total{display:flex;align-items:center;gap:8px;text-align:right}.plan-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1fr);gap:10px;padding:12px 0;border-bottom:1px solid #e0e5e6;align-items:start}.plan-line small{display:block;color:#526176;font-size:11px;margin-top:4px}.plan-values{text-align:right;min-width:0}.plan-values strong{display:block;font-size:14px;overflow-wrap:anywhere}.plan-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap;margin-top:6px}.plan-line button{width:auto!important;min-height:36px;font-size:11px;padding:6px 9px}.plan-group-total strong{font-size:13px}@media(max-width:760px){.plan-line>div:first-child strong{font-size:13px}.plan-line button{min-height:40px}.plan-group summary{gap:6px}}

/* Period picker and master actions */
.dash header .period-trigger{display:inline-flex;align-items:center;gap:10px;min-height:44px;white-space:nowrap;background:white;color:#173b70;border:1px solid #dde1f0;font-size:14px}.period-trigger .ico:last-child{transform:rotate(90deg);width:16px}
.period-dialog{width:min(360px,calc(100vw - 32px));border:1px solid #dde3e8;border-radius:18px;padding:20px;color:#172b4d;background:white;max-height:calc(100dvh - 32px);overflow:auto}.period-dialog::backdrop{background:#0b193866}.period-dialog h2{margin:0 0 16px;font-size:20px}.period-year,.period-footer{display:flex;align-items:center;gap:8px;justify-content:space-between}.period-year input{width:100%;min-width:0;text-align:center;border:1px solid #dde3e8;border-radius:8px;padding:10px;font:inherit}.period-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.period-dialog button{min-height:44px}.period-grid button,.period-year button,.period-dialog [data-now],.period-dialog [data-close]{background:#f0f5fc;color:#173b70}.period-grid button[aria-pressed=true]{background:#4654d9;color:white}.period-dialog [data-close]{width:100%;margin-top:8px;background:transparent}
.module[data-module=master] button.master-icon{display:inline-flex;align-items:center;justify-content:center;width:44px!important;height:44px;min-height:44px;padding:0!important;flex:0 0 44px!important;background:#fff;color:#46536b;border:1px solid #dde3e8;border-radius:9px}.module[data-module=master] button.master-icon .ico{width:19px;height:19px}.module[data-module=master] button.master-icon.plus{background:#e7effb;color:#173b70}.module[data-module=master] button.master-icon.power{color:#9a570e}.module[data-module=master] button.master-icon.restore{color:#16754b}.module[data-module=master] button.master-icon.trash{color:#a11c32}.module[data-module=master] button.master-icon:hover{background:#f0f5fc}.module[data-module=master] .category-actions{flex-wrap:nowrap}.module[data-module=master] .category-body>button.master-icon{margin-left:auto;display:flex}

/* Shared action control standard */
.module button.standard-icon{display:inline-flex;align-items:center;justify-content:center;width:44px!important;height:44px;min-height:44px;padding:0!important;flex:0 0 44px!important;background:white!important;color:#46536b!important;border:1px solid #dde3e8;border-radius:9px}.module button.standard-icon .ico{width:19px;height:19px}.module button.standard-icon.plus{background:#e7effb!important;color:#173b70!important}.module button.standard-icon.trash{color:#a11c32!important}.module button.standard-icon.power{color:#9a570e!important}.module button.standard-icon.restore{color:#16754b!important}.module button.standard-icon:hover{background:#f0f5fc!important}.module button:not(.standard-icon){min-height:44px}.order-number{display:inline-block;min-width:24px;color:#526176;font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}

.distribution-entry{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 0;font-size:13px}.distribution-recap{padding:14px 0;border-bottom:1px solid #dce3ed}.distribution-recap p{margin:6px 0}.distribution-entry button{min-height:44px}

[data-module="distribution"] .plan-line{grid-template-columns:minmax(0,1fr) auto}[data-module="distribution"] .plan-line>div{min-width:0;overflow-wrap:anywhere}[data-module="distribution"] .distribution-entry span{min-width:0;overflow-wrap:anywhere}[data-module="distribution"] button{min-height:44px}[data-module="distribution"] .distribution-recap{overflow-wrap:anywhere}@media(max-width:760px){[data-module="distribution"] .plan-line{grid-template-columns:minmax(0,1fr)}[data-module="distribution"] .plan-line>button{justify-self:start}[data-module="distribution"] .distribution-entry{align-items:flex-start}[data-module="distribution"] header{flex-wrap:wrap}}

@media print{@page{size:A4;margin:14mm}body,.shell,.content,.dash{background:#fff!important;color:#111!important;display:block!important;max-width:none!important;padding:0!important}.shell>nav,.mobile-nav,.menu-sheet,.menu-overlay,button,.period-trigger,.quick-actions{display:none!important}.panel,.metric,.editorial-hero{background:#fff!important;color:#111!important;box-shadow:none!important;border:1px solid #ddd;break-inside:avoid;margin:8px 0}.amount,.panel small,.metric small{color:#111!important}.report-grid{display:block}.dash header{margin-bottom:12px}}
