:root{--stats-accent:#9f1239;--stats-accent-dark:#7f0f2f;--stats-ink:#171717;--stats-muted:#675f5a;--stats-line:#ded8d4;--stats-soft:#f8f5f3;--stats-panel:#fff;--stats-good:#166534;--stats-warn:#9a6700;--stats-bad:#b42318;--stats-blue:#1d4ed8;--stats-teal:#0f766e;--stats-shadow:0 18px 45px rgba(39,29,24,.08)}
.stats-page{background:#f7f6f4;color:var(--stats-ink)}
.stats-page .site-header{position:sticky;top:0;z-index:1200}
.stats-intro{padding:30px 0 18px;background:linear-gradient(180deg,#fff 0%,#faf8f6 100%);border-bottom:1px solid var(--stats-line)}
.stats-intro .breadcrumbs{margin-bottom:14px}.stats-intro h1{font-size:clamp(2.05rem,5vw,4.2rem);line-height:.98;letter-spacing:-.045em;margin:.25rem 0 .8rem}.stats-intro .lead{max-width:860px;margin:0;font-size:1.08rem;color:#584f49}
.stats-kicker{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:7px 12px;background:#fdecef;color:#8e142a;font-weight:800;font-size:.78rem;letter-spacing:.05em;text-transform:uppercase}
.stats-workspace-wrap{padding:18px 0 30px}.stats-workspace{border:1px solid var(--stats-line);border-radius:22px;background:var(--stats-panel);box-shadow:var(--stats-shadow);overflow:hidden}
.stats-toolbar{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--stats-line);background:#fff;overflow-x:auto;scrollbar-width:thin}.stats-toolbar::-webkit-scrollbar{height:6px}.stats-toolbar button,.stats-toolbar label,.stats-toolbar .button{flex:0 0 auto}.stats-toolbar-spacer{flex:1 0 18px}.stats-btn{border:1px solid #d8d0cb;border-radius:11px;background:#fff;color:#2d2825;font:inherit;font-weight:750;padding:9px 12px;cursor:pointer;white-space:nowrap}.stats-btn:hover,.stats-btn:focus-visible{border-color:#b11b36;color:#8e142a;background:#fff8f8}.stats-btn.primary{background:#b21d38;border-color:#b21d38;color:#fff}.stats-btn.danger{color:#a51c30}.stats-btn.small{padding:6px 9px;font-size:.88rem}.stats-btn[disabled]{opacity:.5;cursor:not-allowed}
.stats-file-input{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.stats-status{min-height:24px;padding:7px 14px;font-size:.9rem;color:#665b55;background:#fbfaf9;border-bottom:1px solid var(--stats-line)}.stats-status.good{color:var(--stats-good);background:#f0fdf4}.stats-status.warn{color:#7a4b00;background:#fffbeb}.stats-status.bad{color:var(--stats-bad);background:#fef2f2}
.stats-data-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:400px}.stats-data-main{min-width:0;border-right:1px solid var(--stats-line)}.stats-grid-scroll{overflow:auto;max-height:500px}.stats-grid{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.93rem}.stats-grid th,.stats-grid td{min-width:145px;height:40px;border-right:1px solid #e8e2de;border-bottom:1px solid #e8e2de;padding:7px 9px;background:#fff;vertical-align:middle}.stats-grid thead th{position:sticky;top:0;z-index:4;background:#f5f2f0;text-align:left;font-weight:800}.stats-grid .row-number{position:sticky;left:0;z-index:3;min-width:52px;width:52px;text-align:center;color:#756a63;background:#f7f4f2;font-variant-numeric:tabular-nums}.stats-grid thead .row-number{z-index:5}.stats-grid td[contenteditable=true]:focus{outline:3px solid rgba(165,28,48,.16);outline-offset:-3px;background:#fffdfd}.stats-grid td.invalid{background:#fff1f0;color:#9f1239}.stats-grid td.missing{background:#fffdf4}.stats-grid th .col-name{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats-grid th .col-type{display:block;margin-top:2px;color:#786d66;font-size:.75rem;font-weight:650;text-transform:uppercase;letter-spacing:.04em}.stats-grid-actions{display:flex;gap:8px;padding:10px 12px;background:#faf8f6;border-top:1px solid var(--stats-line);overflow-x:auto}
.stats-side{padding:15px;background:#fbfaf9;overflow:auto;max-height:556px}.stats-side-toggle{display:none;width:100%;margin-bottom:10px}.stats-side h2{font-size:1.15rem;margin:0 0 10px}.stats-quality{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:15px}.quality-card{border:1px solid var(--stats-line);border-radius:12px;padding:9px;background:#fff}.quality-card strong{display:block;font-size:1.15rem}.quality-card span{font-size:.77rem;color:#6f655e}.quality-alert{border-radius:10px;padding:9px 10px;margin:8px 0;font-size:.86rem}.quality-alert.good{background:#ecfdf3;color:#166534}.quality-alert.warn{background:#fffbeb;color:#854d0e}.quality-alert.bad{background:#fef2f2;color:#991b1b}
.variable-list{display:grid;gap:9px}.variable-card{border:1px solid var(--stats-line);border-radius:12px;background:#fff;padding:10px}.variable-card input,.variable-card select{width:100%;border:1px solid #d9d1cc;border-radius:8px;padding:7px 8px;font:inherit;background:#fff}.variable-card input{font-weight:750;margin-bottom:7px}.variable-meta{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.variable-meta small{color:#756a63}.variable-actions{display:flex;justify-content:space-between;gap:6px;margin-top:8px}
.stats-tabs{display:flex;gap:5px;padding:10px 12px;border-top:1px solid var(--stats-line);border-bottom:1px solid var(--stats-line);background:#fff;overflow-x:auto;scrollbar-width:thin}.stats-tab{flex:0 0 auto;border:0;border-bottom:3px solid transparent;background:transparent;padding:9px 13px;font:inherit;font-weight:800;color:#5f554f;cursor:pointer}.stats-tab[aria-selected=true]{color:#95152e;border-color:#b41e3a}.stats-tab:focus-visible{outline:3px solid rgba(165,28,48,.18);border-radius:8px}
.stats-panel{display:none;padding:18px}.stats-panel.active{display:block}.analysis-layout{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px}.analysis-controls{border:1px solid var(--stats-line);border-radius:16px;background:#faf8f7;padding:15px;align-self:start;position:sticky;top:98px}.analysis-controls h2{font-size:1.28rem;margin:0 0 12px}.control-group{border-top:1px solid var(--stats-line);padding-top:12px;margin-top:12px}.control-group:first-of-type{border-top:0;padding-top:0;margin-top:0}.control-group h3{font-size:.97rem;margin:0 0 8px}.control-group label{display:block;margin:7px 0;font-size:.91rem}.control-group select,.control-group input[type=number],.control-group input[type=text]{width:100%;padding:8px 9px;border:1px solid #d8d0cb;border-radius:9px;background:#fff;font:inherit}.check-list{display:grid;gap:6px;max-height:210px;overflow:auto;padding:4px}.check-line{display:flex!important;gap:8px;align-items:flex-start}.check-line input{margin-top:3px}.analysis-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.analysis-results{min-width:0}.results-empty{border:1px dashed #cfc6c0;border-radius:16px;padding:38px;text-align:center;color:#736861;background:#fcfbfa}.result-block{border:1px solid var(--stats-line);border-radius:16px;background:#fff;margin-bottom:15px;overflow:hidden}.result-block>h3{margin:0;padding:13px 15px;background:#faf8f6;border-bottom:1px solid var(--stats-line);font-size:1.05rem}.result-content{padding:14px}.result-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}.summary-metric{border:1px solid #e2dbd6;border-radius:12px;padding:10px;background:#fff}.summary-metric strong{display:block;font-size:1.2rem;word-break:break-word}.summary-metric span{font-size:.78rem;color:#6e645d}.result-table-wrap{overflow:auto}.result-table{width:100%;border-collapse:collapse;font-size:.9rem}.result-table th,.result-table td{padding:9px 10px;border-bottom:1px solid #e7e1dd;text-align:right;white-space:nowrap}.result-table th:first-child,.result-table td:first-child{text-align:left}.result-table thead th{background:#f8f5f3}.result-table tbody tr:hover{background:#fffafa}.interpretation{border-left:4px solid #b51f3b;background:#fff7f8;padding:11px 13px;border-radius:0 10px 10px 0;line-height:1.55}.method-note{font-size:.86rem;color:#655b55;background:#f8f6f4;border-radius:10px;padding:10px}.warning-note{font-size:.88rem;color:#854d0e;background:#fffbeb;border:1px solid #f5deb3;border-radius:10px;padding:10px}.success-note{font-size:.88rem;color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:10px}
.chart-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.stats-chart{min-height:350px;border:1px solid #e3ddd8;border-radius:14px;background:#fff;padding:10px;overflow:auto}.stats-chart svg{display:block;max-width:100%;height:auto;margin:auto}.chart-summary{margin-top:9px;font-size:.88rem;color:#655b55}.chart-legend{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0;font-size:.84rem}.legend-item{display:inline-flex;align-items:center;gap:5px}.legend-swatch{width:12px;height:12px;border-radius:3px}
.test-helper{border:1px solid #dfd7d2;border-radius:12px;padding:11px;background:#fff;margin-bottom:12px}.test-helper button{margin-top:8px}.wizard{display:none;margin-top:9px}.wizard.open{display:block}.wizard-question{margin:8px 0}.wizard-recommendation{font-weight:800;color:#8f142c;margin-top:9px}
.stats-dialog{border:0;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.24);width:min(680px,calc(100% - 28px));padding:0}.stats-dialog::backdrop{background:rgba(22,17,14,.5)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:1px solid var(--stats-line)}.dialog-head h2{margin:0;font-size:1.25rem}.dialog-body{padding:16px}.dialog-actions{display:flex;gap:9px;justify-content:flex-end;padding:14px 16px;border-top:1px solid var(--stats-line)}.paste-box{width:100%;min-height:230px;padding:12px;border:1px solid #d7cfca;border-radius:12px;font:14px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}.example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.example-card{border:1px solid var(--stats-line);border-radius:12px;padding:12px;background:#fff}.example-card h3{margin:0 0 5px;font-size:1rem}.example-card p{font-size:.84rem;color:#6f655e;min-height:42px}
.stats-content{padding:50px 0;background:#fff;border-top:1px solid var(--stats-line)}.stats-content h2{font-size:clamp(1.65rem,3vw,2.5rem)}.stats-content .content-card{height:100%}.stats-faq details{border:1px solid var(--stats-line);border-radius:12px;background:#fff;padding:0;margin:9px 0}.stats-faq summary{cursor:pointer;padding:14px;font-weight:800}.stats-faq details p{padding:0 14px 14px;margin:0;color:#5f554f}
.stats-noscript{padding:16px;background:#fff3cd;color:#664d03;border:1px solid #ffecb5;border-radius:12px;margin:15px}
@media(max-width:1000px){.stats-data-layout{grid-template-columns:1fr}.stats-data-main{border-right:0}.stats-side{border-top:1px solid var(--stats-line);max-height:none}.analysis-layout{grid-template-columns:1fr}.analysis-controls{position:static}.stats-quality{grid-template-columns:repeat(4,1fr)}}
@media(max-width:720px){.stats-side-toggle{display:block}.stats-side.mobile-collapsed .stats-side-inner{display:none}.stats-side.mobile-collapsed{padding-bottom:10px}.stats-intro{padding:20px 0 12px}.stats-intro h1{font-size:2.35rem}.stats-workspace-wrap{padding-top:10px}.stats-workspace{border-radius:0;border-left:0;border-right:0}.stats-toolbar{padding:9px 10px}.stats-btn{min-height:44px}.stats-grid-scroll{max-height:420px}.stats-grid th,.stats-grid td{min-width:125px}.stats-side{padding:12px}.stats-quality{grid-template-columns:repeat(2,1fr)}.stats-tabs{padding-inline:7px}.stats-tab{min-height:44px;padding:9px 12px}.stats-panel{padding:12px 10px}.analysis-controls{border-radius:13px;padding:12px}.result-table th,.result-table td{padding:8px}.stats-chart{min-height:290px;padding:5px}.result-summary{grid-template-columns:repeat(2,1fr)}.stats-content{padding:36px 0}.mobile-run-bar{position:sticky;bottom:0;z-index:30;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);padding:8px;border-top:1px solid var(--stats-line);margin:14px -12px -12px}.mobile-run-bar .stats-btn{width:100%}}
@media(max-width:420px){.result-summary{grid-template-columns:1fr}.stats-grid th,.stats-grid td{min-width:116px}.stats-intro .lead{font-size:1rem}}
@media print{.site-header,.site-footer,.stats-toolbar,.stats-grid-actions,.stats-side,.stats-tabs,.analysis-controls,.chart-toolbar,.stats-intro .breadcrumbs{display:none!important}.stats-page{background:#fff}.stats-workspace{border:0;box-shadow:none}.stats-panel{display:block!important;padding:0}.analysis-results{width:100%}.result-block{break-inside:avoid}.stats-chart{border:0}}


/* V14.8.1 instant variable profiles */
.stats-grid thead th{overflow:visible}.column-head{display:flex;align-items:flex-start;gap:7px;min-width:0}.column-labels{display:block;min-width:0;flex:1}.column-profile-trigger{flex:0 0 auto;width:23px;height:23px;border:1px solid #c9c1bc;border-radius:50%;background:#fff;color:#5d514a;font:800 .76rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 2px rgba(35,25,20,.05);transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease}.column-profile-trigger:hover,.column-profile-trigger:focus-visible,.column-profile-trigger[aria-expanded=true]{background:#a51c30;color:#fff;border-color:#a51c30;outline:0;transform:translateY(-1px)}.column-profile-trigger.has-warning{border-color:#d29d22;color:#8a5a00;background:#fffaf0}.column-profile-trigger.has-error{border-color:#be123c;color:#9f1239;background:#fff1f2}.column-profile-trigger.has-warning:hover,.column-profile-trigger.has-warning:focus-visible,.column-profile-trigger.has-warning[aria-expanded=true],.column-profile-trigger.has-error:hover,.column-profile-trigger.has-error:focus-visible,.column-profile-trigger.has-error[aria-expanded=true]{background:#a51c30;color:#fff;border-color:#a51c30}
.column-profile-popover{position:fixed;z-index:9999;max-height:min(480px,calc(100dvh - 24px));overflow:auto;scrollbar-width:thin;padding:15px;border:1px solid #d9d1cc;border-radius:15px;background:#fff;color:#2a2420;box-shadow:0 22px 60px rgba(39,28,22,.22),0 4px 14px rgba(39,28,22,.08);font-size:.88rem;line-height:1.35}.column-profile-popover[hidden]{display:none}.profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #ece5e1}.profile-head h3{margin:5px 0 0;font-size:1.05rem;line-height:1.2}.profile-close{width:30px;height:30px;border:0;border-radius:8px;background:#f5f2f0;color:#554a44;font-size:1.3rem;line-height:1;cursor:pointer}.profile-close:hover,.profile-close:focus-visible{background:#f7e8eb;color:#a51c30;outline:2px solid rgba(165,28,48,.16)}.profile-type{display:inline-flex;border-radius:999px;padding:3px 7px;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em;background:#f2efed;color:#5e5149}.profile-type.numeric{background:#e8f6f2;color:#0b6a5d}.profile-type.ordinal{background:#eef1ff;color:#3549a2}.profile-type.categorical{background:#fff4df;color:#875800}.profile-type.identifier{background:#f0eef7;color:#5d4685}.profile-quality-row{display:flex;flex-wrap:wrap;gap:6px;margin:11px 0}.profile-quality{border-radius:999px;padding:4px 7px;font-size:.73rem;font-weight:750}.profile-quality.good{background:#eaf7ee;color:#28703e}.profile-quality.warn{background:#fff5dc;color:#805400}.profile-quality.bad{background:#fff0f1;color:#9b1735}.profile-section-title{margin:12px 0 6px;font-weight:850;color:#3e342f}.profile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.profile-metrics.compact{margin-top:10px}.profile-metric{min-width:0;padding:7px 8px;border:1px solid #ece5e1;border-radius:9px;background:#faf8f6}.profile-metric span{display:block;color:#756a63;font-size:.72rem}.profile-metric strong{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.87rem;font-variant-numeric:tabular-nums}.profile-mini-chart{display:block;width:100%;height:auto;margin-top:3px;color:#756a63}.profile-mini-chart rect{fill:#0f8c80}.profile-mini-chart line{stroke:#cfc6c1;stroke-width:1}.profile-mini-chart text{fill:#6e625b;font:9px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.profile-mini-chart .bar-value{fill:#3b312d}.profile-caption{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:5px;color:#6c6059;font-size:.76rem}.profile-caption strong{color:#3c332f}.profile-table-scroll{max-height:170px;overflow:auto;border:1px solid #ece5e1;border-radius:9px}.profile-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.profile-table th,.profile-table td{padding:6px 7px;border-bottom:1px solid #eee7e3;text-align:left}.profile-table th{position:sticky;top:0;background:#faf8f6;font-size:.72rem}.profile-table th:nth-child(n+2),.profile-table td:nth-child(n+2){text-align:right}.profile-alert,.profile-success{margin-top:10px;padding:8px 9px;border-radius:9px;font-size:.8rem}.profile-alert{background:#fff5dc;color:#765000}.profile-success{background:#eaf7ee;color:#2c6840}.profile-sample-list{margin:5px 0 0;padding-left:20px;color:#554b45}.profile-sample-list li{margin:3px 0}.profile-footnote{margin:11px 0 0;padding-top:9px;border-top:1px solid #ece5e1;color:#746861;font-size:.74rem}.profile-empty,.profile-empty-chart{padding:16px 8px;text-align:center;color:#776b64;background:#faf8f6;border-radius:9px}
@media(max-width:720px){.column-profile-popover{left:10px!important;right:10px!important;top:auto!important;bottom:10px!important;width:auto!important;max-height:min(72dvh,540px);border-radius:16px}.column-profile-trigger{width:27px;height:27px}.stats-grid th .col-type{white-space:nowrap}.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.profile-metrics{grid-template-columns:1fr}.column-profile-popover{font-size:.86rem}}
@media print{.column-profile-trigger,.column-profile-popover{display:none!important}}

/* V14.8.2 stable mobile profiles and first-visit guide */
.column-profile-trigger{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.column-profile-popover{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.column-profile-guide{position:fixed;z-index:10020;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;padding:12px 13px 11px;border:1px solid #d8c7ca;border-radius:14px;background:#fff;color:#2c2421;box-shadow:0 18px 44px rgba(43,29,24,.2),0 3px 10px rgba(43,29,24,.08);font-size:.82rem;line-height:1.35;transition:opacity .25s ease,transform .25s ease}
.column-profile-guide::before{content:"";position:absolute;left:var(--guide-arrow-left,50%);top:-7px;width:12px;height:12px;border-left:1px solid #d8c7ca;border-top:1px solid #d8c7ca;background:#fff;transform:translateX(-50%) rotate(45deg)}
.column-profile-guide.guide-above::before{top:auto;bottom:-7px;border:0;border-right:1px solid #d8c7ca;border-bottom:1px solid #d8c7ca}
.column-profile-guide.soften{opacity:.82;transform:translateY(2px)}
.column-profile-guide-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#a51c30;color:#fff;font:850 1rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 0 0 5px rgba(165,28,48,.1)}
.column-profile-guide strong{display:block;margin:0 0 3px;font-size:.9rem;color:#3c2c29}
.column-profile-guide p{margin:0;color:#695d57}
.column-profile-guide-close{grid-column:2;justify-self:start;margin-top:7px;padding:5px 10px;border:1px solid #d6cbc6;border-radius:8px;background:#faf8f6;color:#6f1424;font-weight:800;cursor:pointer}
.column-profile-guide-close:hover,.column-profile-guide-close:focus-visible{background:#f7e8eb;outline:2px solid rgba(165,28,48,.15)}
.column-profile-trigger.guide-target{animation:column-profile-guide-pulse 1.7s ease-in-out infinite;position:relative;z-index:2}
@keyframes column-profile-guide-pulse{0%,100%{box-shadow:0 0 0 0 rgba(165,28,48,.28)}50%{box-shadow:0 0 0 7px rgba(165,28,48,0)}}
@media(max-width:720px){.column-profile-popover{touch-action:pan-y}.column-profile-guide{left:10px!important;right:10px!important;top:auto!important;bottom:18px!important;width:auto!important;grid-template-columns:34px minmax(0,1fr);padding-bottom:max(11px,env(safe-area-inset-bottom))}.column-profile-guide::before{display:none}}
@media(prefers-reduced-motion:reduce){.column-profile-trigger.guide-target{animation:none}.column-profile-guide{transition:none}}
@media print{.column-profile-guide{display:none!important}}

/* V14.8.3 reliability and analysis-audit layer */
.analysis-policy-summary{display:grid;gap:4px;margin:14px 0 18px;padding:12px 13px;border:1px solid #ddd3cd;border-radius:14px;background:#fffaf7;color:#352f2b}
.analysis-policy-summary strong{font-size:.88rem;color:#8f1328}
.analysis-policy-summary span{font-weight:800}
.analysis-policy-summary small{line-height:1.45;color:#6c615a}
.variable-card.is-excluded{opacity:.72;background:#f5f3f1;border-style:dashed}
.variable-card.is-excluded input{font-style:italic}
.column-head em{font-size:.68rem;font-weight:700;color:#8b5a12}
.analysis-audit{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;padding:12px 14px;margin:0 0 14px;border:1px solid #d7dfe8;border-radius:13px;background:#f6f9fc}
.analysis-audit strong{color:#173f6b}
.analysis-audit span{font-weight:800;text-align:right}
.analysis-audit small{grid-column:1/-1;color:#5c6670;line-height:1.45}
.assumption-list{margin:12px 0 14px;padding-left:20px;display:grid;gap:7px}
.assumption-warning,.assumption-ok{padding:10px 12px;border-radius:11px;line-height:1.45}
.assumption-warning{border:1px solid #e6bd76;background:#fff8e9;color:#6d4505}
.assumption-ok{border:1px solid #b9d8c5;background:#f0faf4;color:#215b36}
.stats-dialog.wide{width:min(1040px,calc(100vw - 32px));max-width:1040px}
.import-options{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:14px}
.import-options label{min-width:210px}
.import-summary{display:grid;gap:4px;padding:12px 14px;margin-bottom:12px;border:1px solid #ddd3cd;border-radius:13px;background:#fbfaf9}
.import-summary strong{font-size:1rem}
.import-summary span{font-weight:700}
.import-summary small{color:#6d625b}
.import-preview{max-height:360px;overflow:auto;border:1px solid #ddd3cd;border-radius:12px;background:#fff}
.import-preview .result-table-wrap{margin:0;border:0;border-radius:0}
.import-preview .result-table{font-size:.82rem;min-width:640px}
.import-preview th{position:sticky;top:0;z-index:2;background:#f5f0ed}
.stats-dialog textarea{width:100%;min-height:92px;resize:vertical}
.stats-dialog label>small{display:block;margin-top:5px;color:#6d625b;line-height:1.4}
.stats-dialog input[type="text"],.stats-dialog input[type="number"],.stats-dialog select,.stats-dialog textarea{border:1px solid #cfc3bc;border-radius:10px;padding:10px 11px;background:#fff;color:#211c19;font:inherit}
.stats-dialog .dialog-body>label{display:grid;gap:6px;margin-bottom:13px;font-weight:700}

@media(max-width:720px){
  .analysis-audit{grid-template-columns:1fr}.analysis-audit span{text-align:left}.analysis-audit small{grid-column:1}
  .stats-dialog.wide{width:calc(100vw - 16px);max-height:94dvh}
  .import-options{display:grid;grid-template-columns:1fr}.import-options label{min-width:0}
  .import-preview{max-height:46dvh}
}
