
/* Unified interface, scoped to preserve legacy report and print styles. */
body.studio-redesign{--fr-bg:#f5f7fa;--fr-text:#192d43;--fr-muted:#53677c;--fr-line:#dce4ed;--fr-primary:#275ddb;--fr-primary-2:#1949b7;--primary:#275ddb;--text:#192d43;--muted:#53677c;font-size:16px;line-height:1.5;color:var(--fr-text);background:var(--fr-bg)}
body.studio-redesign .app{width:100%!important;max-width:none!important;margin:0!important;padding:0 24px 40px!important}
body.studio-redesign .hero{margin:0 -24px 32px!important;padding:18px 24px!important;min-height:84px;border-radius:0!important;box-shadow:none!important;background:#fff!important}
body.studio-redesign .hero h1{font-size:18px!important}body.studio-redesign .hero .subtitle{font-size:12px!important;letter-spacing:.02em}
body.studio-redesign .hero .logo{background:#275ddb!important;border-radius:10px!important}
body.studio-redesign .friendly-searchbar,body.studio-redesign .friendly-userchip{display:none!important}
body.studio-redesign .friendly-top-actions:before{display:none}
body.studio-redesign .friendly-nav-btn,body.studio-redesign .friendly-module-menu>summary{height:44px;font-size:15px;padding:0 16px;border-radius:9px}
body.studio-redesign .friendly-home-button{display:inline-flex!important}
.studio-local{font-size:12px;padding:7px 13px;background:#e9f4ef;border-radius:30px;color:#176a53;white-space:nowrap}
body.studio-redesign .friendly-menu-pop{width:min(410px,90vw);max-height:75vh;overflow:auto;padding:12px;top:52px}
body.studio-redesign .friendly-menu-pop button{padding:12px;gap:12px;min-height:64px}body.studio-redesign .friendly-menu-pop strong{font-size:15px}body.studio-redesign .friendly-menu-pop small{font-size:13px}
body.studio-redesign :is(button,input,select,textarea,summary,a):focus-visible{outline:3px solid #4778e6!important;outline-offset:3px}
body.studio-redesign :is(button,.btn,.friendly-big-action,.friendly-back,.friendly-docai-export button){font-size:15px!important;min-height:44px!important;border-radius:9px!important;letter-spacing:0;line-height:1.35}
body.studio-redesign :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;min-height:44px;border-radius:8px;max-width:100%}
body.studio-redesign :is(input[type=checkbox],input[type=radio]){width:18px;height:18px;flex-shrink:0}
body.studio-redesign button:disabled{opacity:1!important;background:#e9eef5!important;border-color:#dce4ed!important;color:#66788b!important;cursor:not-allowed}
body.studio-redesign :is(.results-head,.friendly-page-head){padding:0 0 22px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;margin-bottom:16px!important}
body.studio-redesign :is(.results-head h2,.friendly-page-head h2,#docAiPanel .results-topline h2){font-size:28px!important;font-weight:700;letter-spacing:-.035em;line-height:1.2;margin-bottom:10px!important}
body.studio-redesign :is(.results-head p,.friendly-page-head p,#docAiPanel .results-topline p){font-size:16px!important;line-height:1.55;max-width:920px}
body.studio-redesign .friendly-page-head small{font-size:11px!important;letter-spacing:.09em;margin-bottom:12px}
body.studio-redesign :is(.friendly-setup-body,.docai-card,.pdf-tools-body){padding:24px!important;border-radius:14px!important;background:white!important;border:1px solid var(--fr-line)!important;box-shadow:none!important}
body.studio-redesign :is(h3,.section-title,.step-title){font-size:19px!important;line-height:1.35}
body.studio-redesign :is(.help,.hint,.meta,.docai-card p,.docai-drop small,.docai-file .meta,.docai-gdp-item,.docai-switch,.pdf-tools-row small,.docai-note,.docai-help li,.docai-help p){font-size:14px!important;line-height:1.55}
body.studio-redesign :is(.docai-card h3,.docai-drop strong){font-size:17px!important}
body.studio-redesign :is(.docai-drop,.pdf-tools-drop){min-height:146px!important;border-color:#b8c7da;background:#fafbfd!important;border-radius:10px;padding:22px;gap:8px}
body.studio-redesign :is(.kpis,.docai-kpis){gap:12px!important;margin-top:24px}
body.studio-redesign .kpi{padding:16px 20px!important;background:#fff!important;border-radius:12px!important;min-width:0}
body.studio-redesign .kpi :is(.value,strong){font-size:27px!important}body.studio-redesign .kpi :is(.label,small){font-size:13px!important}
body.studio-redesign .toolbar{padding:16px!important;gap:12px!important;border-radius:12px!important;flex-wrap:wrap}
body.studio-redesign :is(.table-wrap,.docai-table){max-height:620px;overflow:auto!important;border-radius:12px!important;max-width:100%}
body.studio-redesign :is(td,th,.docai-table td,.docai-table th){font-size:14px!important;padding:16px!important;line-height:1.5}
body.studio-redesign th{background:#f8fafc;position:sticky;top:0;z-index:1;color:#53677c;font-weight:600;white-space:nowrap}
body.studio-redesign :is(td small,.docai-status,.chip){font-size:12px!important}body.studio-redesign .docai-status{white-space:normal}
body.studio-redesign .docai-file{padding:12px;grid-template-columns:minmax(0,1fr) minmax(120px,.6fr) 44px}
body.studio-redesign .friendly-docai-advanced{border-radius:12px;margin-top:6px;background:#fff}
body.studio-redesign :is(.friendly-docai-advanced>summary,.ux-details>summary,.docai-help>summary){font-size:15px!important;padding:16px!important;min-height:44px;cursor:pointer}
body.studio-redesign .friendly-docai-advanced-body{padding:20px;gap:20px}
body.studio-redesign .friendly-docai-run{padding:22px;border:1px solid #cbd9f3;background:#f0f5ff;gap:16px;margin:20px 0}
body.studio-redesign .friendly-docai-run .copy strong{font-size:17px}body.studio-redesign .friendly-docai-run .copy span{font-size:14px;margin-top:5px}
body.studio-redesign .friendly-matrix-card{display:flex!important;flex-direction:column;align-items:stretch;justify-content:space-between;gap:16px;grid-column:auto!important}
body.studio-redesign .friendly-matrix-card .matrix-copy strong{font-size:17px!important;white-space:normal;overflow-wrap:anywhere}
body.studio-redesign .friendly-matrix-card .matrix-copy small{font-size:13px!important}
body.studio-redesign .friendly-matrix-card p{font-size:14px!important;margin-top:10px}
body.studio-redesign #docAiPanel .docai-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;margin:0!important}
body.studio-redesign #docAiPanel .docai-card{padding:22px!important}
body.studio-redesign .docai-progress{padding:22px!important;border:1px solid var(--fr-line);background:white!important}
body.studio-redesign .docai-progress-info{font-size:15px!important}
body.studio-redesign .docai-log{font-size:12px;max-height:180px;margin-top:12px}
.studio-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:4px 0 26px}
.studio-step{display:flex;gap:14px;align-items:center;text-align:left;background:#fff;border:1px solid var(--fr-line);padding:16px!important;color:var(--fr-muted);min-height:70px!important}
.studio-step span{width:30px;height:30px;border-radius:50%;background:#edf1f6;display:grid;place-items:center;font-size:14px;flex-shrink:0}
.studio-step[aria-current=step]{background:#edf3ff;border-color:#b4c8f1;color:#2354c0}.studio-step[aria-current=step] span{background:#275ddb;color:white}
body.studio-redesign #docAiPanel [data-stage-hidden=true]{display:none!important}
.studio-stage-heading{font-size:18px;margin:0 0 16px;line-height:1.4}.studio-stage-heading p{font-size:14px;font-weight:400;color:var(--fr-muted);margin:6px 0 0}
.studio-review-empty{padding:50px 24px;text-align:center;background:#fff;border:1px solid var(--fr-line);border-radius:14px;margin-bottom:20px}
.studio-review-empty strong{font-size:20px;display:block}.studio-review-empty p{color:var(--fr-muted);font-size:15px;max-width:600px;margin:12px auto}
.studio-stage-footer{display:flex;justify-content:space-between;gap:12px;margin:24px 0}
.studio-stage-footer button{background:white;border:1px solid var(--fr-line);padding:12px 20px;color:var(--fr-text);cursor:pointer}
.studio-stage-footer button:last-child{background:#275ddb;border-color:#275ddb;color:white}
.studio-home-intro{margin:0 0 32px}.studio-eyebrow{font-size:11px;font-weight:650;color:#53677c;letter-spacing:.10em;text-transform:uppercase}
.studio-home-intro h2{font-size:34px;line-height:1.2;letter-spacing:-.04em;margin:14px 0 12px}.studio-home-intro p{font-size:16px;color:var(--fr-muted);margin:0}
.studio-home-lead{display:grid;grid-template-columns:1.8fr 1fr;gap:24px;margin-bottom:32px}
.studio-home-card{border:1px solid var(--fr-line);border-radius:14px;background:#fff;padding:28px;min-width:0}
.studio-home-card h3{margin:0 0 12px}.studio-home-card p{font-size:15px;color:var(--fr-muted);margin:8px 0 18px}
.studio-home-card button{border:1px solid var(--fr-line);background:#fff;color:var(--fr-text);padding:12px 18px;cursor:pointer}
.studio-home-card button.primary{background:#275ddb;color:white;border-color:#275ddb}
.studio-home-path{display:flex;gap:14px;flex-wrap:wrap;font-size:14px;color:#53677c;margin:28px 0}
.studio-home-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.studio-home-modules .studio-home-card{display:flex;flex-direction:column;min-height:220px}
.studio-home-modules button{margin-top:auto;align-self:flex-start;color:#275ddb;font-weight:600}
.studio-home-file{font-size:17px;font-weight:600;overflow-wrap:anywhere;margin-top:18px}
.studio-home-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:28px 0}
.studio-home-stat{padding:20px;background:#fff;border:1px solid var(--fr-line);border-radius:12px}.studio-home-stat strong{font-size:28px;display:block}.studio-home-stat span{font-size:13px;color:var(--fr-muted)}
body.studio-redesign dialog{font-family:inherit;color:var(--fr-text);box-shadow:0 25px 100px #172b4c33;line-height:1.55}body.studio-redesign dialog::backdrop{background:#172b4c66}body.studio-redesign dialog button{border:1px solid var(--fr-line);background:white;padding:8px 20px}
@media(max-width:1120px){body.studio-redesign .app{padding:0 24px 32px!important}body.studio-redesign .hero{margin:0 -24px 26px!important;padding:16px 24px!important}body.studio-redesign #docAiPanel .docai-grid{grid-template-columns:1fr 1fr!important}body.studio-redesign .friendly-matrix-card{grid-column:1/-1!important}.studio-home-lead{grid-template-columns:1fr 1fr}.studio-local{display:none}.studio-home-modules{grid-template-columns:1fr 1fr}}
@media(max-width:760px){body.studio-redesign .app{padding:0 16px 24px!important}body.studio-redesign .hero{margin:0 -16px 24px!important;padding:12px 16px!important;gap:8px;flex-wrap:wrap;position:static!important}body.studio-redesign .hero h1{font-size:16px!important}.studio-home-lead,.studio-home-modules{grid-template-columns:1fr}.studio-home-intro h2{font-size:28px}.studio-home-card{padding:22px}.studio-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.studio-step{padding:12px!important;gap:8px;font-size:14px!important}.studio-home-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.studio-redesign #docAiPanel .docai-grid{grid-template-columns:1fr!important}body.studio-redesign .general-config{grid-template-columns:1fr!important}body.studio-redesign .general-config>*{grid-column:1!important}body.studio-redesign .friendly-menu-pop{right:0;left:auto;position:absolute;top:50px;width:min(390px,calc(100vw - 32px))}.studio-stage-footer{flex-wrap:wrap}.studio-stage-footer button{flex:1}.studio-home-path{gap:8px}body.studio-redesign .docai-file{grid-template-columns:minmax(0,1fr) 44px}body.studio-redesign .docai-file input{grid-column:1}.studio-local{display:none}}
@media print{body.studio-redesign .hero,.studio-steps,.studio-stage-footer{display:none!important}body.studio-redesign .table-wrap{max-height:none!important;overflow:visible!important}}

/* Visual identity: depth and contrast without decorative controls. */
body.studio-redesign{background:radial-gradient(ellipse at 95% 8%,#e8effb 0,transparent 42%),#f5f7fa}
body.studio-redesign .hero{border-bottom:1px solid #dfe7f0!important;box-shadow:0 3px 24px #203c6610!important}
body.studio-redesign .hero .logo{box-shadow:0 6px 16px #275ddb30!important}
.studio-icon{width:24px;height:24px;vertical-align:middle;flex-shrink:0}
.studio-home-intro{position:relative;padding-top:8px}.studio-home-intro .studio-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#275ddb}.studio-home-intro .studio-eyebrow:before{content:'';width:24px;height:3px;border-radius:3px;background:#275ddb}
.studio-home-intro h2{font-size:40px;font-weight:750;letter-spacing:-.045em;color:#172d49}
.studio-home-lead{gap:24px;grid-template-columns:1.9fr 1fr}
.studio-home-card{box-shadow:0 5px 18px #172d4906;transition:border-color .18s,box-shadow .18s,transform .18s}
.studio-home-card.studio-feature{position:relative;isolation:isolate;overflow:hidden;min-height:304px;border:0;background:radial-gradient(ellipse at 95% 95%,#276ea577 0,transparent 65%),linear-gradient(125deg,#132b4c,#1b406b);color:#fff;padding:30px 32px;box-shadow:0 14px 32px #18365720}
.studio-feature:before{content:'';position:absolute;width:320px;height:320px;border:1px solid #adc8ff1f;border-radius:50%;right:-90px;top:-100px;z-index:-1}.studio-feature:after{content:'';position:absolute;width:320px;height:320px;border:1px solid #adc8ff15;border-radius:50%;right:-40px;top:-145px;z-index:-1}
.studio-feature h3{font-size:26px!important;max-width:70%;line-height:1.2!important;letter-spacing:-.025em;margin-top:16px}.studio-feature p{color:#cedcef;max-width:70%;font-size:15px}.studio-feature .studio-home-path{color:#bed1e8;max-width:68%;gap:9px 13px;font-size:13px;line-height:1.7;margin:20px 0 24px}
.studio-feature-tag{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:700;letter-spacing:.12em;color:#b7d4ff}.studio-feature-tag svg{width:19px;height:19px}
.studio-feature button.primary{background:#fff!important;color:#183e70!important;border-color:#fff!important;box-shadow:0 6px 18px #071c3820;font-weight:700}
.studio-document-art{position:absolute;right:32px;top:89px;width:154px;height:168px;transform:rotate(7deg);pointer-events:none}
.studio-art-page{position:absolute;inset:0 10px 0 14px;background:#f3f7ff;border:1px solid #ffffffa0;border-radius:10px;box-shadow:0 12px 20px #071a3a33;padding:22px 15px}.studio-art-page.back{transform:rotate(-13deg) translate(-10px,7px);background:#8caede;border-color:#b8cef055}
.studio-art-line{display:block;width:75%;height:4px;background:#9bacc3;border-radius:5px;margin-bottom:7px}.studio-art-line.short{width:45%;background:#cbd7e7}
.studio-art-grid{height:51px;margin-top:15px;border:1px solid #cbd7e7;background:repeating-linear-gradient(0deg,transparent 0px,transparent 15px,#cbd7e7 16px,#cbd7e7 17px),repeating-linear-gradient(90deg,transparent 0px,transparent 29px,#cbd7e7 30px,#cbd7e7 31px)}
.studio-art-signature{font-size:25px;color:#4978b7;display:block;line-height:1.5;text-align:right}.studio-art-seal{position:absolute;right:-4px;bottom:3px;width:48px;height:48px;border:4px solid #244a75;border-radius:50%;background:#69dbc2;color:#154a42;display:grid;place-items:center;box-shadow:0 5px 15px #0e244244}
.studio-home-lead>.studio-home-card:not(.studio-feature){border-top:3px solid #80a5e6;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(150deg,#fff 65%,#edf4ff)}
.studio-home-lead>.studio-home-card:not(.studio-feature) .studio-eyebrow{color:#275ddb}.studio-home-file{font-size:20px;margin:20px 0 0}.studio-home-lead>.studio-home-card:not(.studio-feature) button{margin-top:10px;align-self:flex-start}
.studio-home-stat{position:relative;padding:19px 23px;box-shadow:0 4px 12px #182d4705}.studio-home-stat:before{content:'';position:absolute;top:22px;right:20px;width:8px;height:8px;border-radius:50%;background:#729cec}.studio-home-stat:nth-child(2):before{background:#50ab9d}.studio-home-stat:nth-child(3):before{background:#dfad49}.studio-home-stat:nth-child(4):before{background:#9380c8}.studio-home-stat strong{font-size:32px;letter-spacing:-.04em}.studio-home-stat span{font-size:13px}
.studio-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.studio-module-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;background:#edf3ff;color:#315fd2}.studio-module-icon svg{width:25px;height:25px}.studio-module-number{font-size:12px;letter-spacing:.1em;color:#8897aa}
.studio-home-modules .studio-home-card{min-height:269px;border-radius:15px;padding:26px}.studio-home-modules .studio-home-card:hover{transform:translateY(-3px);border-color:#aac0e4;box-shadow:0 12px 26px #1c385311}.studio-home-modules .studio-home-card p{font-size:14px;max-width:340px;margin-bottom:24px}.studio-home-modules .studio-home-card button{border:0;border-radius:0!important;min-height:32px!important;padding:0!important;font-size:14px!important;background:transparent!important}
[data-tone=teal] .studio-module-icon{background:#e6f5f1;color:#177c6a}[data-tone=violet] .studio-module-icon{background:#f0ecfc;color:#7557b2}[data-tone=amber] .studio-module-icon{background:#fcf3df;color:#9b7020}[data-tone=rose] .studio-module-icon{background:#fbecef;color:#b95b75}[data-tone=slate] .studio-module-icon{background:#eaf0f6;color:#4a627f}
body.studio-redesign #docAiPanel .studio-audit-banner{position:relative;padding:28px!important;border-radius:16px!important;background:linear-gradient(115deg,#fff,#f0f5ff)!important;border:1px solid #d7e2f2!important;box-shadow:0 7px 24px #29446807!important}
body.studio-redesign #docAiPanel .studio-audit-banner h2{font-size:30px!important}.studio-audit-banner .kpi{box-shadow:none!important;border-color:#e1e9f4!important;background:#ffffffb0!important}
.studio-step{box-shadow:0 2px 6px #1d395105;transition:background .15s,box-shadow .15s}.studio-step[aria-current=step]{background:#203f6c;color:#fff;border-color:#203f6c;box-shadow:0 6px 16px #1d395124}.studio-step[aria-current=step] span{background:#ffffff20;color:#fff}
.studio-upload-symbol{width:42px;height:42px;display:grid;place-items:center;background:#edf3ff;color:#315fd2;border-radius:11px;margin-bottom:17px;flex-shrink:0}
body.studio-redesign #docAiPanel .docai-card{border-top:3px solid #b6ccee!important;box-shadow:0 6px 16px #25456c05!important}.studio-drop-icon{color:#6088c2;width:27px;height:27px;margin-bottom:4px}body.studio-redesign .docai-drop{border-style:dashed;background:linear-gradient(145deg,#f7faff,#fff)!important;transition:background .15s,border-color .15s}body.studio-redesign .docai-drop:hover{border-color:#315fd2!important;background:#eef4ff!important}
.studio-test-lab{border:1px solid #dbe4f0;border-radius:13px;background:linear-gradient(110deg,#fff,#f2f7fd);margin:22px 0}
.studio-test-lab>summary{display:flex;gap:12px;align-items:center;cursor:pointer;font-size:15px;font-weight:600;padding:18px 22px;list-style:none;color:#26486d}.studio-test-lab>summary span{margin-left:auto;font-size:12px;font-weight:400;color:#687f97}.studio-test-lab>summary:after{content:'+';font-size:22px;font-weight:400}.studio-test-lab[open]>summary:after{content:'−'}.studio-test-lab>summary .studio-icon{color:#507dac}
.studio-test-lab-body{padding:0 22px 22px;display:grid;grid-template-columns:1.5fr 1fr;gap:12px 24px}.studio-test-lab-body h3{font-size:17px!important;margin:8px 0}.studio-test-lab-body p{font-size:14px;color:#53677c;line-height:1.6;margin:0}.studio-test-actions{display:flex;flex-direction:column;gap:9px;justify-content:center}.studio-test-actions button{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #c4d5ea;background:white;color:#234872;cursor:pointer;padding:11px 14px}.studio-test-actions .studio-icon{width:18px;height:18px}#studioTestStatus{grid-column:1/-1;border-top:1px solid #e1e9f1;padding-top:14px;margin-top:6px;font-size:13px}
body.studio-redesign .studio-review-empty{background:radial-gradient(ellipse at 50% 0,#eef4ff,transparent 80%),#fff;border-style:dashed;padding:54px 30px}
body.studio-redesign .studio-review-empty:before{content:'↗';display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;background:#e6effe;border:1px solid #d3e1f7;border-radius:15px;color:#315fd2;font-size:26px}
body.studio-redesign .studio-stage-footer button:last-child{box-shadow:0 5px 13px #275ddb24}body.studio-redesign .studio-stage-footer button:disabled{box-shadow:none!important}
@media(max-width:1120px){.studio-home-lead{grid-template-columns:1.4fr 1fr}.studio-feature h3,.studio-feature p,.studio-feature .studio-home-path{max-width:100%}.studio-document-art{display:none}}
@media(max-width:760px){.studio-home-intro h2{font-size:32px}.studio-home-lead{grid-template-columns:1fr}.studio-feature h3{font-size:25px!important}.studio-home-card.studio-feature{padding:26px;min-height:0}.studio-home-modules .studio-home-card{min-height:240px}.studio-test-lab-body{grid-template-columns:1fr}.studio-test-lab>summary{align-items:flex-start}.studio-test-lab>summary span{display:none}body.studio-redesign #docAiPanel .studio-audit-banner{padding:22px!important}}
@media(prefers-reduced-motion:reduce){body.studio-redesign *{transition:none!important;scroll-behavior:auto!important}}
/* Keep the mobile header compact: brand flex-basis is width, never a 220px column height. */
@media(max-width:760px){
 body.studio-redesign .hero{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;min-height:0!important;height:auto!important;gap:10px!important}
 body.studio-redesign .hero .brand{flex:1 1 100%!important;width:100%;min-width:0;max-width:100%}
 body.studio-redesign .hero .brand>div:last-child{min-width:0}
 body.studio-redesign .hero .subtitle{white-space:normal;overflow-wrap:anywhere;line-height:1.4!important}
 body.studio-redesign .hero .logo{flex-shrink:0}
 body.studio-redesign .friendly-top-actions{flex:0 0 auto;margin-left:0;gap:8px}
 body.studio-redesign .friendly-nav-btn .hide-mobile{display:inline!important}
}
.studio-script-notice{padding:16px;border:1px solid #dce4ed;border-radius:10px;background:#fff;color:#405166;line-height:1.5}

