@font-face{font-family:Inter;src:url("../fonts/inter.woff2") format("woff2");font-display:swap;font-weight:100 900}
@font-face{font-family:Montserrat;src:url("../fonts/montserrat.woff2") format("woff2");font-display:swap;font-weight:400 800}
:root{--primary:#3F6D2B;--primary-dark:#222F30;--primary-soft:#F2F6ED;--brand-lime:#CEF79E;--brand-lime-hover:#B8E486;--ink:#1f2937;--muted:#64748b;--line:#e7e9ee;--canvas:#f0f1f7;--card:#fff;--green:#26bf94;--green-soft:#e8f8f3;--blue:#23b7e5;--blue-soft:#e7f7fc;--orange:#f5b849;--orange-soft:#fff5e3;--red:#e6533c;--red-soft:#fdf0ee;--sidebar:#fff;--shadow:0 8px 24px rgba(18,25,38,.06);--sidebar-width:252px}
*{box-sizing:border-box}
html{min-height:100%;background:var(--canvas);overflow-x:hidden}
body{margin:0;min-height:100vh;color:var(--ink);font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.5;overflow-x:hidden}
button,input,select{font:inherit}
button,a{transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-dark)}
.icon{display:block;width:20px;height:20px;flex:0 0 auto}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 18px;border:1px solid transparent;border-radius:7px;font-weight:600;cursor:pointer}
.button--primary{color:#222F30;background:var(--brand-lime);box-shadow:0 5px 14px rgba(63,109,43,.18)}
.button--primary:hover{color:#222F30;background:var(--brand-lime-hover);transform:translateY(-1px)}
.button--soft{color:var(--primary);background:var(--primary-soft)}
.button--ghost{color:#4b5563;background:#fff;border-color:#dfe3ea;box-shadow:0 2px 5px rgba(15,23,42,.04)}
.button--wide{width:100%}
.button small{font-size:9px;text-transform:uppercase;letter-spacing:.06em;opacity:.8}
button[disabled]{cursor:not-allowed}

/* Authentication */
.auth-page{background:#fff}
.auth-shell{display:grid;grid-template-columns:minmax(420px,46%) 1fr;min-height:100vh}
.auth-story{position:relative;display:flex;flex-direction:column;min-height:100vh;padding:46px clamp(44px,6vw,92px);overflow:hidden;color:#fff;background:linear-gradient(145deg,#19292e 0%,#263b40 58%,#17272c 100%)}
.auth-story:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 86% 20%,rgba(63,109,43,.3),transparent 34%),linear-gradient(120deg,transparent 0 64%,rgba(255,255,255,.025) 64% 65%,transparent 65%)}
.auth-logo{position:relative;z-index:2;display:block;width:min(278px,80%)}
.auth-logo img{display:block;width:100%}
.story-content{position:relative;z-index:2;max-width:580px;margin:auto 0}
.story-tag,.eyebrow{display:block;margin-bottom:15px;color:#CEF79E;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.story-content h2{max-width:540px;margin:0 0 24px;font-family:Montserrat,Inter,sans-serif;font-size:clamp(38px,4.3vw,64px);line-height:1.08;letter-spacing:-.04em}
.story-content>p{max-width:530px;margin:0;color:rgba(255,255,255,.68);font-size:16px;line-height:1.8}
.story-stats{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:46px;padding-top:28px;border-top:1px solid rgba(255,255,255,.12)}
.story-stats div{display:flex;flex-direction:column;gap:5px}
.story-stats strong{font-size:17px}
.story-stats span{color:rgba(255,255,255,.52);font-size:12px}
.story-visual{position:absolute;right:-90px;bottom:5%;width:330px;height:330px;opacity:.85}
.story-visual span{position:absolute;border:1px solid rgba(255,255,255,.14);border-radius:50%}
.story-visual span:nth-child(1){inset:0}
.story-visual span:nth-child(2){inset:55px}
.story-visual span:nth-child(3){inset:110px;background:linear-gradient(145deg,rgba(63,109,43,.8),rgba(35,183,229,.32));box-shadow:0 0 70px rgba(63,109,43,.34)}
.story-visual i,.story-visual b{position:absolute;display:block;width:15px;height:15px;border:3px solid #CEF79E;border-radius:50%}
.story-visual i{top:34px;left:80px}.story-visual b{right:45px;bottom:70px;border-color:#23b7e5}
.story-foot{position:relative;z-index:2;margin:30px 0 0;color:rgba(255,255,255,.45);font-size:12px}
.auth-panel{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;padding:60px clamp(28px,6vw,95px);background:#fff}
.auth-card{width:100%;max-width:540px}
.auth-mobile-logo{display:none}
.auth-heading{margin-bottom:30px}
.auth-heading .eyebrow,.result-card .eyebrow{color:var(--primary)}
.auth-heading h1,.result-card h1{margin:0 0 12px;font-family:Montserrat,Inter,sans-serif;font-size:clamp(30px,3.1vw,43px);line-height:1.15;letter-spacing:-.035em}
.auth-heading p,.result-card>p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}
.auth-form{display:flex;flex-direction:column;gap:19px}
.auth-form--register{gap:17px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 18px}
.field{display:flex;flex-direction:column;gap:7px;color:#344054;font-size:12px;font-weight:600}
.input-wrap{position:relative;display:block}
.field input{width:100%;height:46px;padding:0 14px;border:1px solid #dfe3e9;border-radius:7px;outline:none;color:var(--ink);background:#fff;font-size:13px;font-weight:400}
.field select{width:100%;height:46px;padding:0 38px 0 14px;border:1px solid #dfe3e9;border-radius:7px;outline:none;color:var(--ink);background:#fff;font-size:13px;font-weight:400}
.field--wide{grid-column:1/-1}
.field input::placeholder{color:#a3acb9}
.field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(63,109,43,.11)}
.input-wrap:has(.input-action) input{padding-right:46px}
.input-action{position:absolute;top:0;right:0;display:grid;width:46px;height:46px;padding:0;border:0;background:transparent;place-items:center;color:#8993a3;cursor:pointer}
.input-action .icon{width:18px}
.field-error{color:var(--red);font-size:11px;font-weight:500}
.form-row{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:12px}
.form-row--center{justify-content:center;gap:28px}
.check{display:flex;align-items:flex-start;gap:8px;color:#667085;font-size:12px;cursor:pointer}
.check input{width:15px;height:15px;margin:1px 0 0;accent-color:var(--primary)}
.check--terms{line-height:1.6}
.form-foot{margin:0;text-align:center;color:#667085;font-size:12px}
.password-hint{display:flex;align-items:center;gap:11px;margin-top:-3px;color:#7c8798;font-size:10px}
.strength{display:flex;gap:3px}.strength i{display:block;width:23px;height:3px;border-radius:2px;background:#e4e7ec;transition:background-color .18s ease}.password-hint[data-strength="1"] .strength i:nth-child(1){background:#d8654f}.password-hint[data-strength="2"] .strength i:nth-child(-n+2){background:#d99a33}.password-hint[data-strength="3"] .strength i:nth-child(-n+3){background:var(--primary)}.password-hint[data-strength="4"] .strength i{background:#3F6D2B}
.notice{display:flex;gap:12px;margin:-7px 0 20px;padding:13px 14px;border:1px solid;border-radius:8px}
.notice>.icon{width:18px;margin-top:1px}
.notice strong{display:block;margin-bottom:2px;font-size:12px}.notice p{margin:0;font-size:11px}
.notice--error{color:#b93828;background:var(--red-soft);border-color:#fad2cc}
.notice--success{color:#13795b;background:var(--green-soft);border-color:#bcebdc}
.notice--info{color:#345f24;background:var(--primary-soft);border-color:#d4e8c2}
.auth-actions{display:flex;flex-direction:column;gap:15px}
.registration-errors ul{margin:7px 0 0;padding-left:17px;font-size:11px}
.portal-captcha{min-width:0}
.captcha-row{display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:10px;align-items:center}
.captcha-row img{display:block;max-width:100%;height:46px;border:1px solid #dfe3e9;border-radius:7px;object-fit:contain}
.captcha-row input{min-width:0}
.sponsor-note{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid #DCE8CF;border-radius:7px;background:#F7F8F5;font-size:11px}
.sponsor-note span{color:var(--muted)}.sponsor-note strong{font-size:11px}
.otp{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}
.otp input{width:100%;height:58px;border:1px solid #dfe3e9;border-radius:8px;outline:none;text-align:center;font-size:22px;font-weight:700}
.otp input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(63,109,43,.1)}
.result-card{text-align:center}
.result-icon{display:grid;width:76px;height:76px;margin:0 auto 25px;border-radius:50%;place-items:center}
.result-icon .icon{width:31px;height:31px}
.result-icon--success{color:#14916d;background:var(--green-soft)}
.result-icon--mail{color:var(--primary);background:var(--primary-soft)}
.result-icon--error{color:var(--red);background:var(--red-soft)}
.result-card .button{margin-top:30px}
.support-line{margin-top:22px!important;font-size:12px!important}
.auth-legal{position:absolute;right:28px;bottom:20px;left:28px;margin:0;text-align:center;color:#98a2b3;font-size:10px}

/* Dashboard shell */
.dashboard-page{background:var(--canvas)}
.portal-shell{min-height:100vh}
.sidebar{position:fixed;z-index:40;top:0;bottom:0;left:0;display:flex;width:var(--sidebar-width);flex-direction:column;border-right:1px solid var(--line);background:var(--sidebar);overflow-y:auto}
.sidebar-brand{display:flex;align-items:center;height:64px;padding:0 22px;border-bottom:1px solid var(--line)}
.sidebar-brand a{display:block}
.sidebar-brand .brand-logo-reverse{display:none}
.sidebar-brand img{width:188px;max-height:32px}
.sidebar-close{display:none;margin-left:auto}
.client-mini{display:flex;align-items:center;gap:11px;margin:18px 15px 5px;padding:12px;border:1px solid #eceaf4;border-radius:9px;background:#faf9fd}
.client-mini img{width:37px;height:37px;border-radius:7px;object-fit:cover}
.client-mini div{display:flex;min-width:0;flex-direction:column}
.client-mini strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.client-mini span{color:var(--muted);font-size:10px}
.sidebar nav{padding:10px 13px 20px}
.nav-label{margin:20px 12px 7px;color:#9aa3b2;font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.nav-item{display:flex;align-items:center;min-height:42px;margin:2px 0;padding:9px 11px;border-radius:6px;color:#536072;font-size:12px}
.nav-item .icon{width:18px;height:18px;margin-right:11px}
.nav-item small{margin-left:auto;padding:2px 5px;border-radius:9px;color:#3F6D2B;background:#EDF5E5;font-size:8px;text-transform:uppercase}
.nav-item:hover{color:var(--primary);background:#F2F6ED}
.nav-item.is-active{color:#222F30;background:var(--brand-lime);box-shadow:0 5px 12px rgba(63,109,43,.16)}
.nav-item.is-disabled{cursor:not-allowed}
.sidebar-foot{margin-top:auto;padding:0 15px 18px}
.support-card{margin-bottom:12px;padding:17px;border:1px solid #DCE8CF;border-radius:9px;background:linear-gradient(145deg,#F7F8F5,#EDF5E5)}
.support-icon{display:grid;width:28px;height:28px;margin-bottom:10px;border-radius:50%;color:#222F30;background:var(--brand-lime);place-items:center;font-size:12px;font-weight:700}
.support-card strong{display:block;font-size:12px}.support-card p{margin:4px 0 9px;color:var(--muted);font-size:10px}.support-card a{font-size:10px;font-weight:700}
.logout-link{display:flex;align-items:center;gap:10px;padding:10px;color:#677386;font-size:11px}.logout-link .icon{width:17px}
.portal-main{min-width:0;min-height:100vh;margin-left:var(--sidebar-width)}
.topbar{position:sticky;z-index:30;top:0;display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 30px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.topbar-left,.topbar-actions{display:flex;align-items:center}
.menu-button{display:none}
.search-box{display:flex;align-items:center;width:270px;height:36px;padding:0 11px;border:1px solid var(--line);border-radius:6px;color:#9aa3b2;background:#f9fafb}
.search-box .icon{width:16px}.search-box input{width:100%;padding-left:9px;border:0;outline:0;background:transparent;font-size:11px}
.icon-button{display:grid;width:36px;height:36px;padding:0;border:0;border-radius:6px;color:#536072;background:transparent;cursor:pointer;place-items:center}
.icon-button:hover{color:var(--primary);background:var(--primary-soft)}
.preview-chip{margin-right:14px;padding:4px 8px;border-radius:4px;color:#3F6D2B;background:var(--primary-soft);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.secure-chip{margin-right:14px;padding:4px 8px;border-radius:4px;color:#16775b;background:var(--green-soft);font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.portal-title{color:#536072;font-size:12px;font-weight:600}
.notification-button{position:relative;margin-right:10px}.notification-button .icon{width:18px}.notification-button i{position:absolute;top:7px;right:7px;width:6px;height:6px;border:2px solid #fff;border-radius:50%;background:#e6533c}
.user-toggle{display:flex;align-items:center;gap:9px;padding:4px 7px;border:0;border-radius:7px;background:transparent;cursor:pointer}
.user-toggle:hover{background:#f7f7fa}
.user-toggle img{width:34px;height:34px;border-radius:6px;object-fit:cover}
.user-toggle span{display:flex;min-width:95px;flex-direction:column;align-items:flex-start}.user-toggle strong{font-size:11px}.user-toggle small{color:var(--muted);font-size:9px}.user-toggle b{color:#8b95a5}
.user-menu{position:absolute;top:56px;right:28px;display:none;width:190px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.user-menu.is-open{display:block}
.user-menu a{display:flex;align-items:center;gap:9px;padding:9px;border-radius:5px;color:#536072;font-size:11px}.user-menu a:hover{color:var(--primary);background:#F2F6ED}.user-menu .icon{width:16px}.user-menu small{margin-left:auto;color:#667170;font-size:7px;text-transform:uppercase}
.dashboard-content{min-width:0;padding:27px 30px 34px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:23px}
.page-heading p{margin:0 0 4px;color:var(--primary);font-size:10px;font-weight:700;text-transform:uppercase}
.page-heading h1{margin:0 0 4px;font-family:Montserrat,Inter,sans-serif;font-size:23px;letter-spacing:-.02em}.page-heading>div>span{color:var(--muted);font-size:11px}
.heading-actions{display:flex;gap:9px}.heading-actions .button{min-height:36px;padding:8px 12px;font-size:10px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:17px}
.metric-card,.panel,.welcome-panel{border:1px solid var(--line);border-radius:8px;background:var(--card);box-shadow:0 2px 7px rgba(18,25,38,.025)}
.metric-card{position:relative;min-width:0;padding:18px;overflow:hidden}
.metric-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.metric-icon{display:grid;width:36px;height:36px;border-radius:7px;place-items:center}.metric-icon .icon{width:18px}
.metric-icon--purple{color:var(--primary);background:var(--primary-soft)}.metric-icon--blue{color:#178eb3;background:var(--blue-soft)}.metric-icon--green{color:#15906d;background:var(--green-soft)}.metric-icon--orange{color:#c47e08;background:var(--orange-soft)}
.metric-change{color:#778294;font-size:9px}
.metric-card p{margin:0 0 5px;color:var(--muted);font-size:10px}.metric-card>strong{display:block;font-family:Montserrat,Inter,sans-serif;font-size:20px;letter-spacing:-.02em}
.spark{position:absolute;right:14px;bottom:14px;display:flex;align-items:flex-end;gap:3px;height:20px;opacity:.35}.spark i{display:block;width:3px;border-radius:2px;background:currentColor}.spark i:nth-child(1){height:7px}.spark i:nth-child(2){height:11px}.spark i:nth-child(3){height:8px}.spark i:nth-child(4){height:15px}.spark i:nth-child(5){height:12px}.spark i:nth-child(6){height:18px}.spark i:nth-child(7){height:20px}.spark--purple{color:var(--primary)}.spark--blue{color:var(--blue)}.spark--green{color:var(--green)}.spark--orange{color:var(--orange)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:17px;margin-bottom:17px}
.dashboard-grid--lower{grid-template-columns:minmax(0,1.65fr) minmax(290px,.65fr)}
.dashboard-grid--account{grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr)}
.panel{min-width:0;padding:19px}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.panel-head h2{margin:0 0 3px;font-size:13px}.panel-head p{margin:0;color:var(--muted);font-size:9px}
.select-button{padding:6px 9px;border:1px solid var(--line);border-radius:5px;color:#647084;background:#fff;font-size:9px}.select-button span{margin-left:9px}
.more-button{border:0;color:#929baa;background:transparent;cursor:pointer;letter-spacing:2px}
.chart-summary{display:flex;align-items:center;gap:12px;margin-bottom:8px}.chart-summary strong{font-size:20px}.chart-summary span{color:var(--green);font-size:9px}.chart-summary small{padding:2px 4px;border-radius:3px;background:var(--green-soft)}
.line-chart{position:relative;height:230px;margin-left:36px;padding-top:10px}
.line-chart:before{content:"";position:absolute;inset:10px 0 25px;background:repeating-linear-gradient(to bottom,#edf0f4 0 1px,transparent 1px 48px)}
.line-chart svg{position:relative;width:100%;height:195px;overflow:visible}.chart-line{fill:none;stroke:var(--primary);stroke-width:3;vector-effect:non-scaling-stroke}.chart-area{fill:url(#area)}
.chart-y{position:absolute;top:3px;bottom:25px;left:-40px;display:flex;flex-direction:column;justify-content:space-between;color:#98a1af;font-size:8px}
.chart-x{display:flex;justify-content:space-between;color:#98a1af;font-size:8px}
.donut{position:relative;display:grid;width:162px;height:162px;margin:7px auto 24px;border-radius:50%;background:conic-gradient(var(--primary) 0 46%,var(--blue) 46% 75%,var(--green) 75% 92%,var(--orange) 92%);place-items:center}
.donut:after{content:"";position:absolute;inset:24px;border-radius:50%;background:#fff}.donut>span{position:relative;z-index:2;display:flex;flex-direction:column;text-align:center}.donut strong{font-size:17px}.donut small{color:var(--muted);font-size:8px}
.donut--empty{background:#edf0f4}.donut--empty strong{color:#8791a0}
.legend{display:flex;margin:0;padding:0;flex-direction:column;gap:11px;list-style:none}.legend li{display:flex;align-items:center;color:#647084;font-size:9px}.legend i{width:7px;height:7px;margin-right:8px;border-radius:50%}.legend i.purple{background:var(--primary)}.legend i.blue{background:var(--blue)}.legend i.green{background:var(--green)}.legend i.orange{background:var(--orange)}.legend strong{margin-left:auto;color:var(--ink);font-size:10px}
.allocation-empty{text-align:center;color:var(--muted);font-size:10px}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{padding:0 9px 9px;color:#929cab;font-size:8px;font-weight:600;text-align:left;text-transform:uppercase}td{padding:11px 9px;border-top:1px solid #eef0f3;color:#5f6b7c;font-size:9px}td:first-child{display:flex;align-items:center;gap:9px}td div{display:flex;flex-direction:column}td strong{color:#354052;font-size:10px}td small{color:#9aa3b0;font-size:8px}.align-right{text-align:right}.positive{color:var(--green)}
.table-icon{display:grid;width:29px;height:29px;border-radius:6px;place-items:center}.table-icon .icon{width:14px}.table-icon--green{color:#15906d;background:var(--green-soft)}.table-icon--purple{color:var(--primary);background:var(--primary-soft)}.table-icon--orange{color:#bf7d0e;background:var(--orange-soft)}
.status{padding:3px 6px;border-radius:4px;font-size:8px}.status--complete{color:#168463;background:var(--green-soft)}.status--pending{color:#ad7008;background:var(--orange-soft)}
.panel-link{font-size:9px;font-weight:600}.panel-link small{display:block;color:#667170;font-size:7px;text-align:right;text-transform:uppercase}.panel-link.is-disabled{cursor:not-allowed}
.referral-panel{position:relative;overflow:hidden}.referral-panel .eyebrow{margin:4px 0 8px;font-size:8px}.referral-panel h2{margin:0 0 7px;font-size:15px}.referral-panel>p{max-width:245px;margin:0 0 15px;color:var(--muted);font-size:9px}.referral-art{position:absolute;top:-22px;right:-24px;width:120px;height:120px;border:1px solid #DCE8CF;border-radius:50%}.referral-art span,.referral-art i,.referral-art b{position:absolute;display:block;border-radius:50%;background:var(--primary)}.referral-art span{top:38px;left:38px;width:42px;height:42px;opacity:.12}.referral-art i{top:23px;left:72px;width:9px;height:9px;opacity:.6}.referral-art b{top:80px;left:25px;width:6px;height:6px;background:var(--blue)}
.copy-field{display:flex;height:36px;border:1px solid var(--line);border-radius:6px;overflow:hidden}.copy-field input{min-width:0;flex:1;padding:0 9px;border:0;outline:0;color:#7c8796;background:#fafbfc;font-size:8px}.copy-field button{display:grid;width:38px;border:0;color:#fff;background:#91BC62;place-items:center}.copy-field .icon{width:14px}.upcoming-note{display:block;margin-top:7px;color:#667170;font-size:7px;text-transform:uppercase}
.account-details{display:flex;margin:0;flex-direction:column}
.account-details div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #eef0f3}
.account-details dt{color:var(--muted);font-size:9px}.account-details dd{margin:0;color:#344054;font-size:10px;font-weight:600;text-align:right}
.referral-block{margin-top:20px}.referral-block>span{display:block;margin-bottom:7px;color:var(--muted);font-size:9px}
.empty-chart{display:flex;height:250px;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);text-align:center}.empty-icon,.empty-activity>span{display:grid;width:48px;height:48px;margin-bottom:11px;border-radius:50%;color:#929cab;background:#f1f3f6;place-items:center}.empty-chart strong,.empty-activity strong{color:#485467;font-size:11px}.empty-chart p,.empty-activity p{margin:4px 0 0;font-size:9px}
.empty-activity{display:flex;min-height:150px;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);text-align:center}
.welcome-panel{position:relative;display:flex;min-height:220px;align-items:center;justify-content:space-between;margin-bottom:17px;padding:34px;overflow:hidden;background:linear-gradient(115deg,#fff 0%,#fff 60%,#F2F6ED 100%)}
.welcome-panel>div:first-child{position:relative;z-index:2;max-width:610px}.welcome-kicker{display:block;margin-bottom:8px;color:var(--primary);font-size:9px;font-weight:700;text-transform:uppercase}.welcome-panel h2{margin:0 0 8px;font-size:22px}.welcome-panel p{margin:0;color:var(--muted);font-size:11px}.welcome-actions{display:flex;gap:9px;margin-top:20px}.welcome-actions .button{min-height:36px;font-size:10px}
.welcome-art{position:relative;width:200px;height:150px}.welcome-art span{position:absolute;bottom:18px;width:28px;border-radius:5px 5px 0 0;background:linear-gradient(#CEF79E,#3F6D2B)}.welcome-art span:nth-child(1){right:125px;height:45px}.welcome-art span:nth-child(2){right:80px;height:78px}.welcome-art span:nth-child(3){right:35px;height:115px}.welcome-art:after{content:"";position:absolute;right:10px;bottom:17px;width:170px;height:1px;background:#d6c9f0}.welcome-art i{position:absolute;top:15px;right:35px;width:16px;height:16px;border-top:3px solid var(--green);border-right:3px solid var(--green);transform:rotate(-10deg)}.welcome-art i:after{content:"";position:absolute;top:7px;right:-2px;width:145px;height:2px;background:var(--green);transform:rotate(24deg);transform-origin:right}
.portal-footer{display:flex;justify-content:space-between;padding:15px 30px;border-top:1px solid var(--line);color:#929baa;background:#fff;font-size:9px}
.sidebar-scrim{display:none}

/* Review UI */
.review-toolbar{position:fixed;z-index:100;right:18px;bottom:18px;width:280px}
.review-toggle{display:flex;width:100%;height:42px;align-items:center;justify-content:space-between;padding:0 14px;border:0;border-radius:8px;color:#fff;background:#171d2a;box-shadow:0 10px 28px rgba(15,23,42,.24);cursor:pointer}
.review-toggle span{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.review-toggle b{transition:transform .2s}.review-toggle .icon{width:15px}
.review-toolbar.is-open .review-toggle{border-radius:0 0 8px 8px}.review-toolbar.is-open .review-toggle b{transform:rotate(90deg)}
.review-panel{display:none;padding:14px;border:1px solid #30394a;border-bottom:0;border-radius:8px 8px 0 0;color:#dfe5ee;background:#202735;box-shadow:0 -8px 28px rgba(15,23,42,.16)}
.review-toolbar.is-open .review-panel{display:block}
.review-head{display:flex;flex-direction:column;margin-bottom:11px}.review-head strong{font-size:11px}.review-head small{color:#8995a7;font-size:8px}
.review-panel label{display:flex;flex-direction:column;gap:5px}.review-panel label span{color:#9ba6b7;font-size:8px;text-transform:uppercase}.review-panel select{width:100%;height:34px;padding:0 8px;border:1px solid #3b4557;border-radius:5px;color:#fff;background:#171d28;outline:none;font-size:10px}
.review-actions{display:flex;gap:5px;margin-top:9px}.review-actions a{flex:1;padding:6px 4px;border-radius:4px;color:#CEF79E;background:#2d3544;text-align:center;font-size:8px}.review-actions a:hover{color:#fff;background:#3F6D2B}
.toast{position:fixed;z-index:120;right:50%;bottom:26px;padding:11px 16px;border-radius:7px;color:#fff;background:#18212f;box-shadow:0 10px 24px rgba(15,23,42,.2);font-size:11px;opacity:0;pointer-events:none;transform:translate(50%,20px);transition:.25s}.toast.is-visible{opacity:1;transform:translate(50%,0)}

/* Phase 2 account workflows */
.phase-heading{margin-bottom:20px}
.phase-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:17px;margin-bottom:24px}
.phase-side{display:flex;min-width:0;flex-direction:column;gap:17px}
.phase-form-panel{padding:22px}
.phase-form{display:flex;flex-direction:column;gap:17px}
.phase-form .field{font-size:10px}
.phase-form textarea{width:100%;padding:12px 14px;border:1px solid #dfe3e9;border-radius:7px;outline:none;resize:vertical;color:var(--ink);background:#fff;font-size:12px}
.phase-form textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(63,109,43,.11)}
.phase-form .field>span:first-child small{color:#9aa3b2;font-size:8px;font-weight:500}
.money-input{position:relative;display:block}.money-input b{position:absolute;top:0;left:0;display:grid;width:42px;height:46px;border-right:1px solid #e3e6eb;color:#667085;place-items:center}.money-input input{padding-left:56px}
.field-note{color:#8b95a5;font-size:8px;font-weight:500}.step-badge{padding:4px 8px;border-radius:10px;color:#3F6D2B;background:var(--primary-soft);font-size:8px;font-weight:700;text-transform:uppercase}
.balance-panel{padding:21px;background:linear-gradient(145deg,#fff,#f8f5fe)}.balance-panel>span{display:block;margin-bottom:5px;color:var(--muted);font-size:9px}.balance-panel>strong{display:block;font-size:24px}.balance-panel>p{margin:5px 0 0;color:#8b95a5;font-size:9px}
.guidance-panel{padding:21px}.guidance-panel .metric-icon{margin-bottom:14px}.guidance-panel h3{margin:0 0 7px;font-size:13px}.guidance-panel p{margin:0 0 12px;color:var(--muted);font-size:9px;line-height:1.7}.guidance-panel ul{display:flex;margin:0;padding:0;flex-direction:column;gap:8px;list-style:none}.guidance-panel li{position:relative;padding-left:15px;color:#657184;font-size:9px;line-height:1.5}.guidance-panel li:before{content:"";position:absolute;top:6px;left:0;width:5px;height:5px;border-radius:50%;background:var(--primary)}
.plan-section{margin-bottom:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.section-title h2{margin:0 0 3px;font-size:14px}.section-title p{margin:0;color:var(--muted);font-size:9px}
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.plan-card{padding:20px;border:1px solid var(--line);border-radius:8px;background:#fff}.plan-mark{display:grid;width:38px;height:38px;margin-bottom:14px;border-radius:8px;place-items:center}.plan-mark .icon{width:18px}.plan-mark--purple{color:var(--primary);background:var(--primary-soft)}.plan-mark--blue{color:#168eb2;background:var(--blue-soft)}.plan-mark--green{color:#168463;background:var(--green-soft)}
.plan-card h3{margin:0 0 6px;font-size:12px}.plan-card>p{min-height:36px;margin:0 0 14px;color:var(--muted);font-size:9px;line-height:1.6}.plan-card dl{display:flex;margin:0 0 14px;padding:11px 0;border-top:1px solid #eef0f3;border-bottom:1px solid #eef0f3;gap:24px}.plan-card dl div{display:flex;flex-direction:column;gap:2px}.plan-card dt{color:#929cab;font-size:7px;text-transform:uppercase}.plan-card dd{margin:0;font-size:9px;font-weight:700}.plan-select{width:100%;height:32px;border:1px solid #DCE8CF;border-radius:5px;color:var(--primary);background:#F7F8F5;font-size:9px;font-weight:700;cursor:pointer}
.phase-metrics .metric-card--wide{grid-column:span 2}.phase-table-panel{padding:20px}.phase-table-panel .panel-head{margin-bottom:13px}.phase-table td{height:58px}.phase-table td:first-child{min-width:190px}.phase-table td .status{white-space:nowrap}.row-action{border:0;color:#9099a7;background:transparent;cursor:pointer}
.history-filter{margin-bottom:17px;padding:16px 20px}.history-filter form{display:flex;align-items:flex-end;gap:12px}.history-filter label{display:flex;min-width:150px;flex-direction:column;gap:5px;color:#657184;font-size:8px;font-weight:600}.history-filter input,.history-filter select{height:36px;padding:0 10px;border:1px solid var(--line);border-radius:5px;outline:none;color:#4b5563;background:#fff;font-size:9px}.history-filter .button{min-height:36px;padding:7px 15px;font-size:9px}
.table-pagination{display:flex;align-items:center;justify-content:space-between;padding-top:16px;color:#8d96a4;font-size:8px}.table-pagination div{display:flex;gap:4px}.table-pagination button,.table-pagination a,.table-pagination span.is-current{display:grid;min-width:28px;height:27px;padding:0 7px;border:1px solid var(--line);border-radius:4px;color:#6b7585;background:#fff;font-size:8px;place-items:center}.table-pagination button.is-current,.table-pagination span.is-current{color:#fff;background:var(--primary);border-color:var(--primary)}
.investment-group{margin-bottom:17px}.plan-terms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.plan-terms>div{display:flex;padding:11px;border:1px solid #eef0f3;border-radius:6px;flex-direction:column}.plan-terms span{font-size:9px}.plan-terms strong{margin-top:4px;font-size:10px}.plan-terms small{color:var(--muted);font-size:8px}.position-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:15px;border-radius:6px;overflow:hidden;background:#e9ebef}.position-summary div{display:flex;padding:12px;background:#f8f9fb;flex-direction:column}.position-summary span{color:var(--muted);font-size:8px}.position-summary strong{margin-top:3px;font-size:11px}
.confirmation-summary{display:flex;margin-bottom:20px;border-top:1px solid #eef0f3;flex-direction:column}.confirmation-summary>div{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #eef0f3}.confirmation-summary span{color:var(--muted);font-size:9px}.confirmation-summary strong{max-width:65%;font-size:10px;text-align:right}.confirmation-summary .confirmation-total{margin:3px -10px 0;padding:13px 10px;border:0;border-radius:6px;background:var(--primary-soft)}.confirmation-summary .confirmation-total span,.confirmation-summary .confirmation-total strong{color:var(--primary-dark)}
.confirm-form{display:flex;flex-direction:column;gap:15px}.confirm-actions{display:flex;align-items:center;gap:9px;margin-top:17px}.confirm-actions .button{min-width:130px}.dynamic-fields{display:flex;flex-direction:column;gap:13px}
.method-list{display:flex;margin:0;padding:0;border:0;flex-direction:column;gap:8px}.method-list legend{margin-bottom:7px;color:#344054;font-size:10px;font-weight:600}.method-list label{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:6px;cursor:pointer}.method-list input{accent-color:var(--primary)}.method-list span{display:flex;flex-direction:column}.method-list strong{font-size:10px}.method-list small{color:var(--muted);font-size:8px}
.destination-panel{padding:20px}.destination-panel h3{margin:0 0 10px;font-size:12px}.destination-panel>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #eef0f3}.destination-panel span{color:var(--muted);font-size:8px}.destination-panel strong{font-size:9px;text-align:right}.date-filter-group{display:grid;grid-template-columns:auto repeat(3,minmax(58px,1fr));align-items:end;gap:5px}.date-filter-group>span{grid-column:1/-1;color:#657184;font-size:8px;font-weight:600}.date-filter-group select{min-width:58px}
.history-totals{display:flex;justify-content:flex-end;gap:1px;margin-top:14px;border-radius:6px;overflow:hidden}.history-totals>div{display:flex;min-width:140px;padding:11px;background:#f7f8fa;flex-direction:column}.history-totals span{color:var(--muted);font-size:8px}.history-totals strong{margin-top:3px;font-size:10px}.cancel-link{display:inline-block;margin-left:6px;color:var(--red);font-size:8px}.portal-result{max-width:620px;margin:60px auto;padding:35px;border:1px solid var(--line);border-radius:9px;background:#fff}.processor-form{margin-top:18px;padding-top:18px;border-top:1px solid #eef0f3}.processor-form input[type=submit],.processor-form button{min-height:40px;padding:9px 16px;border:0;border-radius:6px;color:#fff;background:var(--primary);font-weight:600}

/* Phase 3 account services */
.compact-panel{max-width:650px}.phase-notice{max-width:760px;margin-bottom:17px}.form-divider{display:flex;align-items:center;gap:12px;margin:4px 0;color:#596579;font-size:9px;font-weight:700;text-transform:uppercase}.form-divider:after{content:"";height:1px;flex:1;background:var(--line)}
.phase-form select{width:100%;height:46px;padding:0 13px;border:1px solid #dfe3e9;border-radius:7px;outline:none;color:var(--ink);background:#fff;font-size:11px}.phase-form select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(63,109,43,.11)}
.choice-group{display:grid;margin:0;padding:0;border:0;gap:8px}.choice-group legend{margin-bottom:3px;color:#344054;font-size:10px;font-weight:700}.choice-group label{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid var(--line);border-radius:7px;cursor:pointer}.choice-group input{margin-top:2px;accent-color:var(--primary)}.choice-group span{display:flex;flex-direction:column;gap:2px}.choice-group strong{font-size:10px}.choice-group small{color:var(--muted);font-size:8px}.choice-group--inline{grid-template-columns:repeat(3,minmax(0,1fr))}.choice-group--inline legend{grid-column:1/-1}
.read-only-row{display:flex;justify-content:space-between;padding:11px 13px;border:1px solid var(--line);border-radius:7px;background:#fafbfc}.read-only-row span{color:var(--muted);font-size:9px}.read-only-row strong{font-size:10px}
.referral-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);align-items:center;gap:28px;margin-bottom:17px;padding:25px;background:linear-gradient(120deg,#fff 0,#fff 63%,#f6f1fe 100%)}.referral-hero .eyebrow{color:var(--primary);font-size:8px;font-weight:700;text-transform:uppercase}.referral-hero h2{margin:5px 0 6px;font-size:18px}.referral-hero p{margin:0;color:var(--muted);font-size:9px}.referral-hero .copy-field{height:42px}.referral-hero .copy-field input{font-size:9px}.referral-hero .copy-field .button{width:auto;min-height:42px;padding:8px 16px;border-radius:0;font-size:9px}
.upload-field input{height:auto;padding:12px;border:1px dashed #cfd5de;border-radius:7px;background:#fafbfc;font-size:9px}.upload-field>small{margin-top:6px;color:var(--muted);font-size:8px}.portal-error-list{margin:5px 0 0;padding-left:18px;font-size:10px}.secret-code{padding:10px;border-radius:6px;background:#f5f2fb;font-family:monospace;font-size:11px;overflow-wrap:anywhere}.tfa-qr{display:block;max-width:180px;margin:10px auto}.danger-check{color:#b93828}.referred-by{display:flex;align-items:center;gap:9px;margin-bottom:17px}.referred-by span{color:var(--muted);font-size:9px}.referred-by strong{font-size:10px}
.outcome-panel{max-width:680px;margin:45px auto;padding:40px;text-align:center}.outcome-icon{display:grid;width:58px;height:58px;margin:0 auto 16px;border-radius:50%;color:#168463;background:var(--green-soft);place-items:center}.outcome-icon .icon{width:27px}.outcome-panel h2{margin:0 0 8px;font-size:20px}.outcome-panel p{max-width:480px;margin:0 auto 20px;color:var(--muted);font-size:10px;line-height:1.7}

@media (max-width:1180px){
  .auth-shell{grid-template-columns:42% 1fr}.auth-story{padding:38px}.story-content h2{font-size:42px}
  .metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.dashboard-grid--lower{grid-template-columns:1fr}.allocation-panel{display:grid;grid-template-columns:1fr 1fr}.allocation-panel .panel-head{grid-column:1/-1}.donut{margin-bottom:5px}.legend{align-self:center}
}
@media (max-width:900px){
  .auth-shell{display:block}.auth-story{display:none}.auth-panel{min-height:100vh;align-items:center;justify-content:flex-start;flex-direction:column;padding:118px 24px 42px}.auth-card{width:100%;max-width:560px;margin:0 auto}.auth-mobile-logo{position:absolute;top:30px;left:50%;display:block;width:min(560px,calc(100% - 48px));transform:translateX(-50%)}.auth-mobile-logo img{display:block;width:235px;max-width:100%}.auth-legal{position:static;width:100%;max-width:560px;margin:34px auto 0;text-align:center}.review-toolbar{right:12px;bottom:12px;width:min(250px,calc(100vw - 24px))}
  .sidebar{transform:translateX(-100%);transition:transform .24s ease}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-scrim{position:fixed;z-index:35;inset:0;background:rgba(17,24,39,.45)}.sidebar-open .sidebar-scrim{display:block}.sidebar-close{display:grid}
  .portal-main{margin-left:0}.menu-button{display:grid;margin-right:10px}.topbar{padding:0 18px}.dashboard-content{padding:22px 18px}.search-box{width:220px}.page-heading{align-items:flex-start;flex-direction:column}.heading-actions{align-self:stretch}.heading-actions .button{flex:1}.portal-footer{padding:15px 18px}
  .phase-layout{grid-template-columns:1fr}.plan-grid{grid-template-columns:1fr 1fr}.phase-metrics .metric-card--wide{grid-column:auto}.referral-hero{grid-template-columns:1fr}
}
@media (max-width:640px){
  .dashboard-page,.portal-shell,.portal-main{width:100%;max-width:100vw}.portal-main{overflow:hidden}.topbar{width:100%;max-width:100vw}.dashboard-content,.page-heading,.heading-actions,.metric-grid,.dashboard-grid,.welcome-panel,.panel,.metric-card{width:100%;max-width:100%}
  .auth-panel{align-items:center;padding:108px 20px 42px}.auth-mobile-logo{top:28px;width:calc(100% - 40px)}.auth-mobile-logo img{width:215px}.auth-heading{margin-bottom:24px}.auth-heading h1,.result-card h1{font-size:29px}.field-grid{grid-template-columns:1fr}.otp{gap:5px}.otp input{height:49px}.auth-legal{margin-top:30px}
  .topbar{height:58px;padding:0 12px}.search-box{display:none}.preview-chip,.secure-chip{display:none}.user-toggle span,.user-toggle b{display:none}.user-menu{right:12px}.dashboard-content{padding:18px 12px}.page-heading h1{font-size:20px}.heading-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.heading-actions .button{min-width:0;padding:8px 6px;white-space:normal}.heading-actions .button small{display:none}.metric-grid{grid-template-columns:minmax(0,1fr)}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px}.panel{padding:15px}.allocation-panel{display:block}.line-chart{height:205px}.line-chart svg{height:170px}.welcome-panel{width:100%;min-width:0;padding:24px}.welcome-panel>div:first-child{min-width:0}.welcome-panel p{overflow-wrap:anywhere}.welcome-art{display:none}.welcome-actions{align-items:stretch;flex-direction:column}.welcome-actions .button small{display:none}.table-wrap{margin:0 -15px;padding:0 15px}.portal-footer{align-items:center;flex-direction:column;gap:4px}.review-toolbar{right:10px;bottom:10px;width:245px}.toast{bottom:65px;max-width:90%;text-align:center}
  .phase-layout{width:100%;min-width:0;grid-template-columns:minmax(0,1fr);gap:12px}.phase-form,.phase-form-panel,.phase-form .field,.phase-form .input-wrap,.phase-form input,.phase-form textarea,.phase-form select{min-width:0;max-width:100%}.phase-form-panel{padding:17px}.plan-grid{grid-template-columns:1fr}.history-filter form{align-items:stretch;flex-direction:column}.history-filter label{width:100%;min-width:0}.history-filter .button{width:100%}.section-title{align-items:flex-start;flex-direction:column}.table-pagination{align-items:flex-start;flex-direction:column;gap:10px}.choice-group--inline{grid-template-columns:1fr}.referral-hero{padding:18px}.referral-hero .copy-field{height:auto;flex-direction:column;border:0;gap:8px;overflow:visible}.referral-hero .copy-field input{height:42px;border:1px solid var(--line);border-radius:6px}.referral-hero .copy-field .button{width:100%;border-radius:6px}
}
@media (max-width:640px){.plan-terms,.position-summary{grid-template-columns:1fr}.confirm-actions{align-items:stretch;flex-direction:column}.confirm-actions .button{width:100%}.confirmation-summary strong{max-width:58%;overflow-wrap:anywhere}.date-filter-group{grid-template-columns:repeat(3,minmax(0,1fr))}.history-totals{align-items:stretch;flex-direction:column}.history-totals>div{min-width:0}.portal-result{margin:20px auto;padding:24px}}
@media (max-width:640px){.dashboard-content{width:auto;max-width:none}.phase-layout{width:calc(100vw - 24px)!important}.phase-layout>.panel,.phase-layout>.phase-side{width:100%;max-width:100%;min-width:0}}
/* Dashboard readability scale */
.dashboard-page{--sidebar-width:276px;font-size:15px}
.dashboard-page .sidebar-brand{height:70px;padding:0 24px}
.dashboard-page .sidebar-brand img{width:202px;max-height:36px}
.dashboard-page .client-mini{gap:12px;margin:20px 16px 6px;padding:14px}
.dashboard-page .client-mini img{width:42px;height:42px}
.dashboard-page .client-mini strong{font-size:14px}
.dashboard-page .client-mini span{font-size:11px}
.dashboard-page .sidebar nav{padding:11px 14px 22px}
.dashboard-page .nav-label{margin:22px 12px 8px;font-size:10px}
.dashboard-page .nav-item{min-height:46px;padding:10px 12px;font-size:14px}
.dashboard-page .nav-item .icon{width:20px;height:20px;margin-right:12px}
.dashboard-page .nav-item small{font-size:9px}
.dashboard-page .sidebar-foot{padding:0 16px 20px}
.dashboard-page .support-card{padding:18px}
.dashboard-page .support-icon{width:32px;height:32px;font-size:13px}
.dashboard-page .support-card strong{font-size:14px}
.dashboard-page .support-card p,.dashboard-page .support-card a{font-size:12px}
.dashboard-page .logout-link{font-size:13px}
.dashboard-page .topbar{height:70px;padding:0 34px}
.dashboard-page .search-box{width:300px;height:40px}
.dashboard-page .search-box input{font-size:13px}
.dashboard-page .preview-chip,.dashboard-page .secure-chip{font-size:10px}
.dashboard-page .user-toggle strong{font-size:13px}
.dashboard-page .user-toggle small{font-size:11px}
.dashboard-page .user-menu{top:62px;width:210px}
.dashboard-page .user-menu a{font-size:13px}
.dashboard-page .dashboard-content{padding:32px 34px 40px}
.dashboard-page .page-heading{margin-bottom:28px}
.dashboard-page .page-heading p{font-size:11px}
.dashboard-page .page-heading h1{font-size:30px}
.dashboard-page .page-heading>div>span{font-size:14px}
.dashboard-page .heading-actions .button{min-height:42px;padding:10px 15px;font-size:13px}
.dashboard-page .button{min-height:44px;font-size:13px}
.dashboard-page .metric-grid{gap:20px;margin-bottom:20px}
.dashboard-page .metric-card{padding:22px}
.dashboard-page .metric-top{margin-bottom:17px}
.dashboard-page .metric-icon{width:42px;height:42px}
.dashboard-page .metric-icon .icon{width:20px}
.dashboard-page .metric-change{font-size:11px}
.dashboard-page .metric-card p{font-size:13px}
.dashboard-page .metric-card>strong{font-size:26px}
.dashboard-page .dashboard-grid{gap:20px;margin-bottom:20px}
.dashboard-page .panel{padding:24px}
.dashboard-page .panel-head{margin-bottom:22px}
.dashboard-page .panel-head h2{font-size:18px}
.dashboard-page .panel-head p{font-size:12px}
.dashboard-page .select-button,.dashboard-page .panel-link{font-size:11px}
.dashboard-page .chart-summary strong{font-size:24px}
.dashboard-page .chart-summary span{font-size:11px}
.dashboard-page .chart-y,.dashboard-page .chart-x{font-size:10px}
.dashboard-page th{padding:0 11px 11px;font-size:11px}
.dashboard-page td{padding:14px 11px;font-size:13px}
.dashboard-page td strong{font-size:13px}
.dashboard-page td small{font-size:11px}
.dashboard-page .table-icon{width:34px;height:34px}
.dashboard-page .table-icon .icon{width:16px}
.dashboard-page .status{padding:4px 8px;font-size:10px}
.dashboard-page .welcome-kicker,.dashboard-page .eyebrow{font-size:10px}
.dashboard-page .welcome-panel h2{font-size:25px}
.dashboard-page .welcome-panel p{font-size:14px}
.dashboard-page .referral-panel h2{font-size:18px}
.dashboard-page .referral-panel>p{font-size:12px}
.dashboard-page .copy-field input{font-size:11px}
.dashboard-page .phase-layout{gap:20px}
.dashboard-page .phase-form-panel{padding:25px}
.dashboard-page .phase-form{gap:19px}
.dashboard-page .phase-form .field{font-size:13px}
.dashboard-page .phase-form input,.dashboard-page .phase-form textarea,.dashboard-page .phase-form select{font-size:14px}
.dashboard-page .field-note,.dashboard-page .step-badge{font-size:10px}
.dashboard-page .balance-panel>span,.dashboard-page .balance-panel>p{font-size:12px}
.dashboard-page .balance-panel>strong{font-size:28px}
.dashboard-page .guidance-panel h3{font-size:16px}
.dashboard-page .guidance-panel p,.dashboard-page .guidance-panel li{font-size:12px}
.dashboard-page .section-title h2{font-size:18px}
.dashboard-page .section-title p{font-size:12px}
.dashboard-page .plan-card h3{font-size:15px}
.dashboard-page .plan-card>p{font-size:12px}
.dashboard-page .plan-card dt{font-size:9px}
.dashboard-page .plan-card dd,.dashboard-page .plan-select{font-size:12px}
.dashboard-page .history-filter label,.dashboard-page .date-filter-group>span{font-size:11px}
.dashboard-page .history-filter input,.dashboard-page .history-filter select{font-size:12px}
.dashboard-page .confirmation-summary span,.dashboard-page .destination-panel span{font-size:12px}
.dashboard-page .confirmation-summary strong,.dashboard-page .destination-panel strong{font-size:13px}
.dashboard-page .read-only-row span{font-size:12px}
.dashboard-page .read-only-row strong{font-size:13px}
.dashboard-page .choice-group legend,.dashboard-page .choice-group strong{font-size:13px}
.dashboard-page .choice-group small{font-size:11px}
.dashboard-page .portal-footer{font-size:11px}
@media (max-width:900px){
  .dashboard-page .topbar{height:66px;padding:0 20px}
  .dashboard-page .dashboard-content{padding:27px 22px 34px}
  .dashboard-page .page-heading h1{font-size:28px}
}
@media (max-width:640px){
  .dashboard-page{--sidebar-width:min(300px,88vw);font-size:14px}
  .dashboard-page .topbar{height:62px;padding:0 13px}
  .dashboard-page .dashboard-content{width:100vw!important;max-width:100vw!important;padding:21px 13px 30px}
  .dashboard-page .page-heading,.dashboard-page .heading-actions,.dashboard-page .metric-grid,.dashboard-page .dashboard-grid,.dashboard-page .welcome-panel,.dashboard-page .phase-layout{width:calc(100vw - 26px)!important;max-width:calc(100vw - 26px)!important}
  .dashboard-page .metric-grid>.metric-card,.dashboard-page .dashboard-grid>.panel,.dashboard-page .phase-layout>.panel,.dashboard-page .phase-layout>.phase-side{width:100%;max-width:100%;min-width:0}
  .dashboard-page .page-heading{margin-bottom:22px}
  .dashboard-page .page-heading h1{font-size:25px}
  .dashboard-page .page-heading>div>span{font-size:13px}
  .dashboard-page .metric-grid,.dashboard-page .dashboard-grid{gap:14px;margin-bottom:14px}
  .dashboard-page .metric-card{padding:19px}
  .dashboard-page .metric-card>strong{font-size:24px}
  .dashboard-page .panel{padding:18px}
  .dashboard-page .panel-head h2{font-size:17px}
  .dashboard-page .phase-form-panel{padding:18px}
  .dashboard-page th{font-size:10px}
  .dashboard-page td{font-size:12px}
  .dashboard-page td strong{font-size:12px}
}
/* Dashboard light and dark themes */
.dashboard-page{
  --page-bg:#f0f1f7;
  --surface:#fff;
  --surface-raised:#fff;
  --surface-muted:#f7f8fa;
  --surface-input:#fff;
  --surface-hover:#F2F6ED;
  --text-primary:#1f2937;
  --text-secondary:#64748b;
  --text-subtle:#8b95a5;
  --theme-border:#e7e9ee;
  --theme-grid:#edf0f4;
  --theme-shadow:rgba(18,25,38,.07);
}
html[data-theme="dark"]{background:#101716}
html[data-theme="dark"] .dashboard-page{
  --primary:#CEF79E;
  --primary-dark:#E2FFC0;
  --primary-soft:#2b3b29;
  --ink:#f1f5f2;
  --muted:#a9b5b0;
  --line:#34413f;
  --canvas:#101716;
  --card:#1a2423;
  --sidebar:#151f1e;
  --green-soft:#173a31;
  --blue-soft:#173640;
  --orange-soft:#3b3020;
  --red-soft:#3c2422;
  --page-bg:#101716;
  --surface:#1a2423;
  --surface-raised:#202c2a;
  --surface-muted:#222e2c;
  --surface-input:#141e1d;
  --surface-hover:#27362a;
  --text-primary:#f1f5f2;
  --text-secondary:#b1bdb8;
  --text-subtle:#899792;
  --theme-border:#34413f;
  --theme-grid:#2b3937;
  --theme-shadow:rgba(0,0,0,.28);
  --shadow:0 8px 24px rgba(0,0,0,.24);
}
.dashboard-page,.dashboard-page .portal-main{color:var(--text-primary);background:var(--page-bg)}
.dashboard-page .sidebar,.dashboard-page .topbar,.dashboard-page .portal-footer{border-color:var(--theme-border);background:var(--surface)}
.dashboard-page .metric-card,.dashboard-page .panel,.dashboard-page .welcome-panel,.dashboard-page .plan-card{border-color:var(--theme-border);background:var(--surface);box-shadow:0 2px 8px var(--theme-shadow)}
.dashboard-page .client-mini{border-color:var(--theme-border);background:var(--surface-raised)}
.dashboard-page .client-mini span,.dashboard-page .page-heading>div>span,.dashboard-page .metric-card p,.dashboard-page .panel-head p,.dashboard-page .section-title p,.dashboard-page .plan-card>p,.dashboard-page .guidance-panel p,.dashboard-page .guidance-panel li,.dashboard-page .balance-panel>span,.dashboard-page .balance-panel>p{color:var(--text-secondary)}
.dashboard-page .nav-item,.dashboard-page .logout-link,.dashboard-page .user-toggle,.dashboard-page .icon-button{color:var(--text-secondary)}
.dashboard-page .nav-item:hover,.dashboard-page .icon-button:hover{color:var(--primary);background:var(--surface-hover)}
.dashboard-page .nav-item.is-active{color:#222F30;background:var(--brand-lime)}
.dashboard-page .sidebar-brand,.dashboard-page .topbar{border-color:var(--theme-border)}
.dashboard-page .search-box{color:var(--text-subtle);border-color:var(--theme-border);background:var(--surface-input)}
.dashboard-page .search-box input{color:var(--text-primary)}
.dashboard-page .user-toggle:hover{background:var(--surface-hover)}
.dashboard-page .user-menu{color:var(--text-primary);border-color:var(--theme-border);background:var(--surface-raised);box-shadow:0 14px 34px var(--theme-shadow)}
.dashboard-page .user-menu a{color:var(--text-secondary)}
.dashboard-page .user-menu a:hover{color:var(--primary);background:var(--surface-hover)}
.dashboard-page .support-card{border-color:var(--theme-border);background:linear-gradient(145deg,var(--surface-raised),var(--surface-hover))}
.dashboard-page .button--ghost,.dashboard-page .select-button{color:var(--text-secondary);border-color:var(--theme-border);background:var(--surface-input)}
.dashboard-page .metric-card>strong,.dashboard-page .panel h2,.dashboard-page .panel h3,.dashboard-page .page-heading h1,.dashboard-page td strong,.dashboard-page .chart-summary strong{color:var(--text-primary)}
.dashboard-page th{color:var(--text-subtle)}
.dashboard-page td{color:var(--text-secondary);border-color:var(--theme-border)}
.dashboard-page .line-chart:before{background:repeating-linear-gradient(to bottom,var(--theme-grid) 0 1px,transparent 1px 48px)}
.dashboard-page .chart-y,.dashboard-page .chart-x{color:var(--text-subtle)}
.dashboard-page .donut:after{background:var(--surface)}
.dashboard-page .copy-field{border-color:var(--theme-border)}
.dashboard-page .copy-field input{color:var(--text-secondary);background:var(--surface-input)}
.dashboard-page .welcome-panel{background:linear-gradient(115deg,var(--surface) 0%,var(--surface) 60%,var(--surface-hover) 100%)}
.dashboard-page .empty-icon,.dashboard-page .empty-activity>span{color:var(--text-subtle);background:var(--surface-muted)}
.dashboard-page .empty-chart,.dashboard-page .empty-activity,.dashboard-page .allocation-empty{color:var(--text-secondary)}
.dashboard-page .field{color:var(--text-primary)}
.dashboard-page .choice-group legend{color:var(--text-secondary)}
.dashboard-page .field input,.dashboard-page .field select,.dashboard-page .phase-form textarea,.dashboard-page .phase-form select,.dashboard-page .history-filter input,.dashboard-page .history-filter select{color:var(--text-primary);border-color:var(--theme-border);background:var(--surface-input)}
.dashboard-page .field input::placeholder,.dashboard-page .phase-form textarea::placeholder{color:var(--text-subtle)}
.dashboard-page .read-only-row,.dashboard-page .choice-group label,.dashboard-page .method-list label,.dashboard-page .destination-panel>div,.dashboard-page .plan-terms>div{color:var(--text-primary);border-color:var(--theme-border);background:var(--surface-muted)}
.dashboard-page .read-only-row span,.dashboard-page .confirmation-summary span,.dashboard-page .destination-panel span,.dashboard-page .plan-terms small{color:var(--text-secondary)}
.dashboard-page .form-divider:after,.dashboard-page .confirmation-summary,.dashboard-page .confirmation-summary>div,.dashboard-page .account-details div{border-color:var(--theme-border)}
.dashboard-page .portal-title,.dashboard-page .form-divider,.dashboard-page .input-action{color:var(--text-secondary)}
.dashboard-page .portal-result,.dashboard-page .secret-code{color:var(--text-primary);border-color:var(--theme-border);background:var(--surface)}
.dashboard-page .plan-select{color:var(--text-primary);border-color:var(--theme-border);background:var(--surface-muted)}
.dashboard-page .plan-select:hover{color:#222F30;border-color:var(--brand-lime);background:var(--brand-lime)}
.dashboard-page .processor-form{border-color:var(--theme-border)}
.dashboard-page .processor-form input[type=submit],.dashboard-page .processor-form button{color:#222F30;background:var(--brand-lime)}
.dashboard-page .referral-art span{border-color:var(--theme-border)}
.dashboard-page .confirmation-summary .confirmation-total{background:var(--surface-hover)}
.dashboard-page .position-summary,.dashboard-page .history-totals{background:var(--theme-border)}
.dashboard-page .position-summary div,.dashboard-page .history-totals>div{background:var(--surface-muted)}
.dashboard-page .balance-panel{background:linear-gradient(145deg,var(--surface),var(--surface-hover))}
.dashboard-page .referral-hero{background:linear-gradient(120deg,var(--surface) 0,var(--surface) 63%,var(--surface-hover) 100%)}
.dashboard-page .upload-field input{color:var(--text-secondary);border-color:var(--theme-border);background:var(--surface-muted)}
.dashboard-page .table-pagination button,.dashboard-page .table-pagination a,.dashboard-page .table-pagination span.is-current{color:var(--text-secondary);border-color:var(--theme-border);background:var(--surface-input)}
.dashboard-page .table-pagination button.is-current,.dashboard-page .table-pagination span.is-current{color:#222F30;border-color:var(--brand-lime);background:var(--brand-lime)}
.dashboard-page .theme-toggle{position:relative;margin-right:6px;color:var(--text-secondary);border:1px solid transparent}
.dashboard-page .theme-toggle:hover{border-color:var(--theme-border)}
.dashboard-page .theme-toggle:focus-visible{outline:3px solid rgba(206,247,158,.4);outline-offset:2px}
.dashboard-page .theme-icon{position:absolute;width:18px;height:18px;transition:opacity .18s ease,transform .18s ease}
.dashboard-page .theme-icon--sun{opacity:0;transform:rotate(-35deg) scale(.65)}
.dashboard-page .theme-icon--moon{opacity:1;transform:rotate(0) scale(1)}
html[data-theme="dark"] .dashboard-page .theme-icon--sun{opacity:1;transform:rotate(0) scale(1)}
html[data-theme="dark"] .dashboard-page .theme-icon--moon{opacity:0;transform:rotate(35deg) scale(.65)}
html[data-theme="dark"] .dashboard-page .sidebar-brand .brand-logo-primary{display:none}
html[data-theme="dark"] .dashboard-page .sidebar-brand .brand-logo-reverse{display:block}
html[data-theme="dark"] .dashboard-page .spark{opacity:.55}
html[data-theme="dark"] .dashboard-page .preview-chip{color:#CEF79E;background:#263729}
html[data-theme="dark"] .dashboard-page .status--complete{color:#7ce6c2}
html[data-theme="dark"] .dashboard-page .status--pending{color:#ffd17a}
html[data-theme="dark"] .dashboard-page input[type="date"]{color-scheme:dark}
@media (max-width:640px){
  .dashboard-page .theme-toggle{margin-right:1px}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
