.dashboard-body{background:#dce5ec}
.dashboard-body footer{background:#dce5ec;border-top-color:#c5d3de}
.dashboard-stage{width:min(1810px,calc(100% - 24px));margin:18px auto 42px;padding:22px;border-radius:24px;background:linear-gradient(135deg,#053b67,#0876bd 58%,#0aa1dc);box-shadow:0 18px 50px rgba(4,45,77,.24);color:#fff}
.dashboard-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.dashboard-toolbar>div:first-child{min-width:0}
.dashboard-toolbar h1{max-width:none;margin:5px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:32px;letter-spacing:.015em}
.dashboard-toolbar p{margin:0;color:#cce5f4;font-size:12px}
.dash-kicker{font-size:10px;font-weight:900;letter-spacing:.15em;color:#70e5ef}
.dashboard-toolbar .dashboard-actions{width:auto}
.dashboard-toolbar .primary{background:#fff;color:#075b91;box-shadow:0 6px 18px rgba(0,0,0,.16)}
.dash-ghost{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:13px 18px;font-weight:850;cursor:pointer}
.dash-link{display:inline-block;text-decoration:none}
.dashboard-alert{max-width:none;margin:0 0 14px}
.dashboard-loading{min-height:260px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(3,37,66,.22);font-size:15px;font-weight:800}
.dashboard-loading[hidden],.dashboard-layout[hidden]{display:none!important}
.dashboard-layout{display:grid;grid-template-columns:minmax(880px,1fr) 330px;gap:15px;align-items:start}
.dashboard-main{min-width:0}
.filter-panel{display:grid;grid-template-columns:1fr 1fr 1fr 1.35fr;gap:8px;margin-bottom:11px}
.filter-panel label{overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 5px 15px rgba(0,0,0,.14)}
.filter-panel label>span{display:block;padding:5px 9px;background:#e9f1f6;color:#436377;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.filter-panel select{display:block;width:100%;margin:0;border:0;border-radius:0;padding:9px 28px 9px 10px;color:#23445c;font-size:12px;font-weight:750}
.dash-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:11px}
.dash-kpi{min-height:116px;display:flex;flex-direction:column;justify-content:center;overflow:hidden;border-radius:15px;padding:13px;background:rgba(255,255,255,.96);color:#12334b;box-shadow:0 7px 18px rgba(0,0,0,.13)}
.dash-kpi>span{font-size:10px;font-weight:900;letter-spacing:.075em;text-transform:uppercase;color:#627b8d}
.dash-kpi strong{margin:10px 0 4px;font-size:21px;letter-spacing:-.025em;white-space:nowrap}
.dash-kpi small{min-height:25px;color:#7890a0;font-size:9px;line-height:1.3}
.dash-kpi.sales{background:linear-gradient(145deg,#fff,#cce9f8)}
.dash-kpi.profit{background:linear-gradient(145deg,#fff,#d8f1ec)}
.dash-charts{display:grid;grid-template-columns:1fr 1.35fr .92fr;gap:10px}
.dash-chart{min-width:0;min-height:270px;padding:13px;border-radius:15px;background:rgba(255,255,255,.97);color:#173348;box-shadow:0 7px 18px rgba(0,0,0,.12)}
.dash-chart-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}
.dash-chart-head span{display:block;color:#0878b0;font-size:9px;font-weight:900;letter-spacing:.12em}
.dash-chart-head h2{margin:4px 0 0;font-size:14px}
.dash-chart-head small{color:#7890a0;font-size:9px;text-align:right}
.dash-chart canvas{display:block;width:100%;height:215px}
.dash-insights{position:sticky;top:16px;padding:16px;border-radius:18px;background:#fff;color:#173348;box-shadow:0 12px 35px rgba(0,0,0,.2)}
.insight-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}
.insight-head span{color:#6f8796;font-size:9px;font-weight:900;letter-spacing:.1em}
.insight-head h2{margin:4px 0 0;font-size:19px}
.insight-head b{padding:5px 8px;border-radius:999px;background:#e3f3fb;color:#0873aa;font-size:9px}
.dash-insight-group{margin:13px 2px 5px;color:#758b99;font-size:9px;font-weight:900;letter-spacing:.1em}
.dash-insight{margin:7px 0;padding:11px;border:1px solid #e1ebf1;border-left:4px solid #248ccb;border-radius:11px;background:#fbfdfe}
.dash-insight.good{border-left-color:#37a77b}
.dash-insight.warn{border-left-color:#e9a23b}
.dash-insight strong{display:block;font-size:12px}
.dash-insight p{margin:5px 0 0;color:#668090;font-size:11px;line-height:1.42}
.insight-foot{margin:13px 0 0;padding-top:10px;border-top:1px solid #e7eef2;color:#8295a1;font-size:9px;line-height:1.45}
.import-history-rich{margin-top:14px;padding:16px;border-radius:16px;background:#fff;color:#173348}
.import-history-rich .table-wrap{max-height:330px}
.import-history-rich p{color:#708797}
.saved-files-panel{width:min(1810px,calc(100% - 24px));margin:0 auto 42px;padding:20px;border:1px solid #cbd8e2;box-shadow:0 14px 36px rgba(26,55,78,.12)}
.saved-files-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:15px}
.saved-files-head h2{margin:5px 0 4px;font-size:22px}
.saved-files-head p{margin:0;font-size:12px}
.saved-files-head>b{flex:none;padding:7px 10px;border-radius:999px;background:#e8f3f9;color:#126c9d;font-size:10px}
.saved-files-panel .table-wrap{max-height:none;border-color:#d6e1e8}
.saved-files-table{min-width:920px}
.saved-files-table th{background:#eaf1f6;color:#36576c;font-size:10px;letter-spacing:.05em;text-transform:uppercase}
.saved-files-table td{vertical-align:middle;color:#29475c}
.saved-files-table td:first-child{min-width:230px}
.saved-files-table td:first-child strong,.saved-files-table td small{display:block}
.saved-files-table td small{margin-top:4px;color:#7b909e;font-size:9px}
.cost-badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:850;white-space:nowrap}
.cost-badge.complete{background:#e1f5ec;color:#187755}
.cost-badge.partial{background:#fff3d9;color:#8a6215}
.cost-badge.missing{background:#edf1f4;color:#667b89}
.delete-import-form{margin:0}
.delete-import-button{border:1px solid #efb6b1;border-radius:8px;padding:7px 10px;background:#fff5f4;color:#a3322a;font-size:10px;font-weight:850;cursor:pointer}
.delete-import-button:hover{background:#ffe9e6}
.view-only-label{color:#8496a2;font-size:9px;font-weight:750}
.saved-files-empty{display:flex;min-height:110px;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:1px dashed #b9cad6;border-radius:12px;background:#f7fafc;color:#708797}
.saved-files-empty strong{color:#29475c}
.access-lock-page{min-height:calc(100vh - 138px);display:grid;place-items:center;padding:42px 16px;background:#dce5ec}
.access-lock-card{width:min(590px,100%);padding:38px;border:1px solid #c5d3de;border-radius:24px;background:#fff;color:#173348;text-align:center;box-shadow:0 22px 60px rgba(23,51,72,.16)}
.access-lock-badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#fff0dc;color:#9a6315;font-size:10px;font-weight:900;letter-spacing:.12em}
.access-lock-card h1{margin:16px auto 12px;font-size:clamp(32px,5vw,48px);line-height:1.05;letter-spacing:-.035em}
.access-lock-card>p{max-width:470px;margin:0 auto 22px;color:#647d8e;font-size:16px;line-height:1.55}
.access-data-safe{margin:0 0 20px;padding:16px;border:1px solid #bfe2d4;border-radius:13px;background:#effaf5;text-align:left}
.access-data-safe strong,.access-data-safe span{display:block}
.access-data-safe strong{margin-bottom:5px;color:#187755}
.access-data-safe span{color:#557365;font-size:12px;line-height:1.45}
.access-lock-card form{margin:10px 0 0}
.access-lock-card .ghost{width:100%}
.access-lock-card>small{display:block;margin-top:18px;color:#8496a2}
.access-plan-link{display:block;width:100%;box-sizing:border-box;text-decoration:none}
.plans-body{background:#d8e3eb}
.plans-body footer{background:#d8e3eb;border-top-color:#c2d0da}
.plans-page{min-height:calc(100vh - 139px);padding:58px 18px 70px;background:radial-gradient(circle at 50% 0,#edf5f9 0,#d8e3eb 58%,#cfdce5 100%);color:#173348}
.plans-intro{max-width:760px;margin:0 auto 30px;text-align:center}
.plans-intro h1{margin:12px auto 14px;font-size:clamp(38px,5.2vw,64px);line-height:1.02;letter-spacing:-.045em}
.plans-intro p{max-width:650px;margin:0 auto;color:#597384;font-size:17px;line-height:1.55}
.annual-plan-card{width:min(740px,100%);box-sizing:border-box;margin:0 auto;padding:30px;border:1px solid #b9cad6;border-radius:24px;background:#f8fbfd;box-shadow:0 22px 58px rgba(23,51,72,.16)}
.plan-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid #d8e3ea}
.plan-heading>div>span{color:#0877af;font-size:10px;font-weight:900;letter-spacing:.13em}
.plan-heading h2{max-width:500px;margin:7px 0 0;font-size:24px;line-height:1.2}
.plan-heading>b{flex:none;padding:7px 9px;border-radius:999px;background:#dff3fb;color:#0872a8;font-size:9px;letter-spacing:.08em}
.plan-price{display:flex;align-items:flex-end;gap:11px;margin:25px 0 4px}
.plan-price strong{font-size:58px;line-height:1;letter-spacing:-.055em;color:#073e6a}
.plan-price span{padding-bottom:7px;color:#5f7889;font-size:15px;font-weight:750}
.plan-equivalent{margin:0;color:#708797;font-size:12px}
.plan-features{display:grid;grid-template-columns:1fr 1fr;gap:13px 24px;margin:25px 0;padding:22px 0;border-top:1px solid #d8e3ea;border-bottom:1px solid #d8e3ea;list-style:none}
.plan-features li{position:relative;padding-left:25px;color:#294b62;font-size:14px;line-height:1.4}
.plan-features li:before{content:'✓';position:absolute;left:0;top:-1px;display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#dff4eb;color:#16805a;font-size:11px;font-weight:950}
.plan-action{display:flex;align-items:center;gap:16px}
.plan-action form{flex:none;margin:0}
.plan-action .primary{flex:none;min-width:245px;text-align:center;text-decoration:none}
.plan-action small{color:#6d8493;line-height:1.45}
.checkout-placeholder{cursor:not-allowed;opacity:.7}
.plans-footnote{margin:18px auto 0;color:#6c8291;font-size:11px;text-align:center}
.billing-page{min-height:calc(100vh - 139px);padding:54px 18px 70px;background:radial-gradient(circle at 50% 0,#edf5f9 0,#d8e3eb 58%,#cfdce5 100%);color:#173348}
.billing-intro{max-width:760px;margin:0 auto 28px;text-align:center}
.billing-intro h1{margin:12px auto 12px;font-size:clamp(36px,5vw,58px);line-height:1.04;letter-spacing:-.04em}
.billing-intro p{margin:0;color:#597384;font-size:16px;line-height:1.5}
.billing-alert{width:min(740px,100%);max-width:none;margin:0 auto 16px}
.billing-card{width:min(740px,100%);margin:0 auto;padding:30px;border:1px solid #b9cad6;border-radius:24px;background:#f8fbfd;box-shadow:0 22px 58px rgba(23,51,72,.16)}
.billing-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid #d8e3ea}
.billing-card-head>div>span{color:#0877af;font-size:10px;font-weight:900;letter-spacing:.13em}
.billing-card-head h2{margin:7px 0 0;font-size:28px}
.billing-status{flex:none;padding:7px 10px;border-radius:999px;background:#eef1f4;color:#6f7f89;font-size:9px;letter-spacing:.08em}
.billing-status.active{background:#dff4eb;color:#16805a}
.billing-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:24px 0;background:#d6e2ea;border:1px solid #d6e2ea;border-radius:14px;overflow:hidden}
.billing-facts>div{min-height:94px;padding:19px;background:#fff}
.billing-facts span{display:block;margin-bottom:9px;color:#6f8492;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.billing-facts strong{font-size:17px;color:#183d55}
.billing-test-note{display:flex;gap:6px;flex-direction:column;margin:0 0 20px;padding:14px 16px;border:1px solid #f0d89a;border-radius:12px;background:#fff8e5;color:#805d12}
.billing-test-note span{font-size:12px;line-height:1.45}
.billing-actions{display:flex;align-items:stretch;gap:11px}
.billing-actions form{flex:1;margin:0}
.billing-actions .primary,.billing-actions .button-link{display:grid;flex:1;min-height:46px;place-items:center;width:auto;text-align:center}
.billing-actions .ghost{box-sizing:border-box}
.billing-footnote{margin:20px 0 0;padding-top:18px;border-top:1px solid #d8e3ea;color:#708797;font-size:11px;line-height:1.5;text-align:center}
.chart-empty{display:grid;place-items:center;height:215px;color:#8396a3;font-size:11px}
.dash-legend{display:flex;gap:9px;align-items:center}
.dash-legend span{display:flex;gap:4px;align-items:center;color:#718796;font-size:8px}
.dash-legend i{width:7px;height:7px;border-radius:50%}
.dash-legend .current{background:#169fd3}
.dash-legend .previous{background:#e9b52d}
@media(max-width:1370px){.dashboard-layout{grid-template-columns:1fr}
.dash-insights{position:static}
.dash-kpis{grid-template-columns:repeat(3,1fr)}
.dash-charts{grid-template-columns:1fr 1fr}
.dash-chart.wide{grid-column:auto}
}
@media(max-width:820px){.dashboard-stage{width:calc(100% - 16px);margin:8px auto 24px;padding:12px;border-radius:17px}
.dashboard-toolbar{flex-direction:column}
.dashboard-toolbar h1{white-space:normal}
.dashboard-toolbar .dashboard-actions{width:100%}
.filter-panel{grid-template-columns:1fr 1fr}
.dash-kpis{grid-template-columns:1fr 1fr}
.dash-charts{grid-template-columns:1fr}
.dash-chart{min-height:250px}
.dashboard-toolbar h1{font-size:25px}
.import-history-rich{padding:12px}
.saved-files-panel{width:calc(100% - 16px);margin-bottom:24px}
.saved-files-head{flex-direction:column;gap:9px}
}
@media(max-width:520px){.filter-panel{grid-template-columns:1fr}
.dash-kpi{min-height:104px;padding:11px}
.dash-kpi strong{font-size:18px}
.dashboard-toolbar .dashboard-actions{align-items:stretch}
.dashboard-toolbar .dashboard-actions a,.dashboard-toolbar .dashboard-actions form,.dashboard-toolbar .dashboard-actions button{width:100%;text-align:center}
.plans-page{padding:38px 12px 48px}
.annual-plan-card{padding:21px}
.plan-heading{flex-direction:column}
.plan-price strong{font-size:50px}
.plan-features{grid-template-columns:1fr}
.plan-action{align-items:stretch;flex-direction:column}
.plan-action form,.plan-action .primary{width:100%;box-sizing:border-box}
.billing-page{padding:38px 12px 48px}
.billing-card{padding:21px}
.billing-card-head{flex-direction:column}
.billing-facts{grid-template-columns:1fr}
.billing-actions{flex-direction:column}
}
@media(min-width:1101px) and (max-width:1370px){
.dashboard-layout{grid-template-columns:minmax(750px,1fr) 280px}
.dash-insights{position:sticky}
.dash-kpis{grid-template-columns:repeat(6,1fr)}
.dash-charts{grid-template-columns:1fr 1.35fr .92fr}
}
@media(min-width:1101px) and (min-height:760px){
.dashboard-stage{display:flex;flex-direction:column;height:calc(100vh - 164px);min-height:690px;margin:10px auto 16px;padding:14px}
.dashboard-toolbar{margin-bottom:9px}
.dashboard-toolbar h1{margin:3px 0 4px;font-size:clamp(27px,3vh,32px)}
.dashboard-layout{flex:1;min-height:0;align-items:stretch}
.dashboard-main{display:flex;align-self:stretch;min-height:0;height:100%;flex-direction:column}
.filter-panel{margin-bottom:8px}
.filter-panel label>span{padding:4px 9px}
.filter-panel select{padding-top:7px;padding-bottom:7px}
.dash-kpis{gap:8px;margin-bottom:8px}
.dash-kpi{min-height:clamp(86px,10vh,116px);padding:10px}
.dash-kpi strong{margin:6px 0 2px;font-size:clamp(18px,2vh,21px)}
.dash-kpi small{min-height:14px;font-size:8px}
.dash-charts{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
.dash-chart{display:flex;min-height:0;flex-direction:column;padding:10px}
.dash-chart-head{margin-bottom:5px}
.dash-chart canvas{flex:1 1 0;min-height:0;height:0}
.dash-insights{position:sticky;align-self:stretch;height:auto;padding:12px}
.insight-head{margin-bottom:6px}
.insight-head h2{font-size:clamp(17px,1.8vh,19px)}
.dash-insight-group{margin:8px 2px 4px}
.dash-insight{margin:clamp(5px,.8vh,7px) 0;padding:clamp(8px,1vh,11px)}
.dash-insight p{margin-top:3px;font-size:clamp(10px,1.05vh,11px);line-height:1.35}
.insight-foot{margin-top:8px;padding-top:7px}
}
