/* Shared visual system. Report SVG pixels and engine-owned visibility stay intact. */
body.professional-studio {--fr-bg:#f6f7fb;--fr-text:#202737;--fr-muted:#677085;--fr-line:#e3e7ef;--text:#202737;--muted:#677085;--ps-accent:#6952dc;background:#f6f7fb;color:#202737;font-family:Inter,"Segoe UI",Arial,sans-serif}
body.professional-studio .app {padding:calc(var(--studio-header-height,72px) + 26px) 32px 40px 242px!important}
body.professional-studio .hero {position:fixed!important;top:0!important;left:0;right:0;margin:0!important;border-color:#e3e7ef!important;box-shadow:none!important;padding:14px 26px!important}
body.professional-studio .hero .logo {background:#6952dc!important;box-shadow:none!important;border-radius:10px!important}
body.professional-studio .hero h1 {color:#202737!important;font-size:17px!important}
body.professional-studio .hero .subtitle {color:#748096!important}
body.professional-studio .studio-module-rail {width:212px;padding:18px 12px;background:#fff;border-color:#e3e7ef;gap:4px}
body.professional-studio .studio-module-rail button,body.professional-studio .ps-ocr-nav {display:flex;flex-direction:row;justify-content:flex-start;gap:12px;min-height:43px!important;padding:11px 13px!important;border-radius:8px!important;font-size:13px!important;font-weight:500;color:#677085;text-decoration:none}
body.professional-studio .studio-module-rail button[aria-current=page] {background:#efecfc!important;border-color:transparent!important;color:#5942c4!important}
body.professional-studio .studio-module-rail svg {width:19px;height:19px}
.ps-ocr-nav {margin-top:14px;border-top:1px solid #e3e7ef}
body.professional-studio .ps-ocr-nav:hover {color:#5942c4;background:#f5f3fc}
body.professional-studio :is(.friendly-page-head,.results-head,.ri-heading) {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
body.professional-studio :is(.results-head h2,.friendly-page-head h2,.ri-heading h2) {font-size:25px!important;color:#202737;letter-spacing:-.035em}
body.professional-studio :is(.friendly-setup-body,.docai-card,.pdf-tools-body,.ri-card,.folder-audit-card,.folder-card,.line-visual-summary,.kpi,.toolbar,.studio-review-empty,.mapping-empty,.floor-empty-message,.audit-note,.docai-switch) {border-color:#e3e7ef!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important}
body.professional-studio :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {background:#fff!important;border-color:#dce1eb!important;border-radius:7px!important;color:#202737;font-size:13px}
body.professional-studio :is(button,.friendly-nav-btn,.friendly-module-menu>summary) {border-radius:7px!important;box-shadow:none!important}
body.professional-studio :is(.docai-drop,.pdf-tools-drop,.floor-upload-label) {background:#fafbff!important;border-color:#d4daeb!important;color:#5942c4;border-radius:10px!important}
body.professional-studio .studio-audit-banner {padding:0 0 20px!important}
body.professional-studio .studio-steps {gap:8px}
body.professional-studio .studio-step {border-radius:8px!important;font-size:13px}
body.professional-studio th {background:#f7f8fb!important;color:#596379!important;border-color:#e3e7ef!important}
body.professional-studio .deploy-launcher {background:#fff!important;border:1px solid #dce1eb;color:#5942c4!important;box-shadow:0 3px 12px #2027370a!important;border-radius:8px!important;font-size:12px!important;padding:11px 16px!important}
body.professional-studio .deploy-dialog {border-color:#e3e7ef!important;border-radius:14px!important;max-width:1240px;width:calc(100% - 48px);background:#f7f8fb}
body.professional-studio .deploy-dialog>header {background:#fff;border-bottom:1px solid #e3e7ef}
body.professional-studio .deploy-card {border:1px solid #e3e7ef;border-radius:10px;background:#fff;box-shadow:none}
body.professional-studio .deploy-card h3 {font-size:16px;color:#202737}
body.professional-studio .deploy-result {border-color:#e3e7ef;border-radius:10px}
body.professional-studio .deploy-status {background:#efecfc;color:#5942c4;border:1px solid #e4ddfa;border-radius:8px}
/* Retain the old home DOM for its legacy watchers and navigation contracts. */
body.professional-studio .ri-workspace {grid-template-columns:280px minmax(0,1fr)!important;gap:18px!important}
body.professional-studio .ri-output {padding:16px!important}
body.professional-studio .ri-card {padding:18px!important}
body.professional-studio #reportImagePanel.ps-canvas-focused .ri-workspace {grid-template-columns:minmax(0,1fr)!important}
#reportImagePanel.ps-canvas-focused .ri-editor {display:none!important}
#riPreview.ps-canvas-zoomed {overflow:auto!important;max-height:70vh;min-height:400px}
#riPreview.ps-canvas-zoomed svg {max-width:none!important}
#psCanvasZoom {width:auto!important;padding:8px!important;font-size:12px}
@media(max-width:1200px) {body.professional-studio .ri-workspace {grid-template-columns:minmax(0,1fr)!important}body.professional-studio .re-stage {grid-template-columns:minmax(0,1fr)}body.professional-studio #reportImagePanel .ri-output {padding:12px!important}}
#friendlyHome> :not(#professionalHome) {display:none!important}
#professionalHome {max-width:1500px;margin:0 auto}
.ps-home-header {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 28px}
.ps-eyebrow {font-size:10px;letter-spacing:.14em;font-weight:700;color:#6952dc}
.ps-home-header h2 {font-size:38px;letter-spacing:-.055em;line-height:1.14;margin:14px 0;color:#202737;font-weight:650}
.ps-home-header p {color:#677085;font-size:14px;margin:0}
body.professional-studio .ps-create {background:#6952dc!important;color:#fff!important;padding:12px 20px!important;border-color:#6952dc!important;font-size:13px}
.ps-summary {display:grid;grid-template-columns:2fr 1fr 1fr 1fr;border:1px solid #e3e7ef;border-radius:12px;background:#fff;padding:20px 22px;gap:22px;margin:0 0 30px}
.ps-summary>div {min-width:0;border-right:1px solid #e8ebf2;padding-right:20px;display:flex;flex-direction:column;gap:9px}
.ps-summary>div:last-child {border:0}
.ps-summary span {font-size:11px;color:#748096}
.ps-summary strong {font-size:15px;overflow-wrap:anywhere;color:#202737;font-weight:600}
.ps-section-heading {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.ps-section-heading h3 {font-size:17px;color:#202737;margin:0;font-weight:600}
.ps-section-heading>span,.ps-recent-help {font-size:12px;color:#748096}
.ps-task-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.professional-studio .ps-task {text-align:left;padding:22px!important;background:#fff!important;border:1px solid #e3e7ef!important;border-radius:12px!important;display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-height:218px;transition:border-color .15s,box-shadow .15s;color:#202737!important}
body.professional-studio .ps-task:hover {border-color:#b6a6ee!important;box-shadow:0 5px 18px #35256a08!important}
.ps-task-icon {padding:11px;border-radius:10px;color:#6952dc;background:#efecfc;display:inline-flex}
.ps-task-icon svg {width:23px;height:23px}
.ps-task[data-tone=teal] .ps-task-icon {color:#098d7f;background:#e7f6f2}
.ps-task[data-tone=blue] .ps-task-icon {color:#397bb9;background:#ebf2fc}
.ps-task[data-tone=amber] .ps-task-icon {color:#b48519;background:#fff5df}
.ps-task strong {font-size:15px;font-weight:600}
.ps-task>span:not(.ps-task-icon) {font-size:12px;line-height:1.6;color:#677085}
.ps-task .ps-task-link {color:#6952dc!important;margin-top:auto;width:100%;display:flex;justify-content:space-between;padding-top:5px;font-weight:600}
.ps-home-bottom {display:grid;grid-template-columns:1fr 1.2fr;gap:22px;margin-top:28px}
.ps-ocr-card,.ps-recent {padding:26px;background:#fff;border:1px solid #e3e7ef;border-radius:12px;min-width:0}
.ps-ocr-card {background:#f0edfc}
.ps-ocr-card h3 {font-size:23px;letter-spacing:-.03em;line-height:1.3;color:#202737;margin:14px 0}
.ps-ocr-card p {font-size:13px;line-height:1.7;color:#677085;max-width:440px}
.ps-ocr-card button {background:#fff;color:#5942c4;padding:10px 16px;border:1px solid #dcd4f2}
.ps-ocr-card small {display:block;color:#7a7391;font-size:11px;line-height:1.5;margin-top:16px}
#psRefreshJobs {font-size:11px;padding:7px 10px;background:#fff;border:1px solid #e3e7ef;color:#677085}
#psRecentJobs {font-size:13px;line-height:1.6;color:#677085;padding:16px 0}
body.professional-studio .ps-recent-job {width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;border:0;border-bottom:1px solid #e3e7ef;border-radius:0!important;background:transparent;padding:12px 0!important;font-size:12px;color:#677085}
.ps-recent-job strong {color:#202737;font-weight:500;overflow-wrap:anywhere}
.ps-recent-job span {white-space:nowrap;font-size:11px}
@media(min-width:1600px) {body.professional-studio .app {padding-left:250px!important;padding-right:40px!important}}
@media(max-width:1200px) {.ps-task-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.ps-home-header h2 {font-size:32px}.ps-summary {grid-template-columns:1.8fr 1fr;gap:18px}.ps-summary>div:nth-child(2) {border:0}}
@media(max-width:1000px) {body.professional-studio .studio-module-rail {width:172px;padding:12px 8px}body.professional-studio .app {padding-left:194px!important;padding-right:20px!important}.ps-home-bottom {grid-template-columns:1fr}.ps-section-heading>span {display:none}}
@media(max-width:760px) {body.professional-studio .app {padding:calc(var(--studio-header-height,72px) + 18px) 16px 70px!important}body.professional-studio .studio-module-rail {width:212px}.ps-home-header {flex-direction:column;align-items:flex-start}.ps-home-header h2 {font-size:30px}.ps-task-grid {grid-template-columns:1fr}.ps-summary {grid-template-columns:1fr 1fr;padding:16px;gap:20px}.ps-summary>div {padding:0}.ps-summary strong {font-size:13px}.ps-task {min-height:180px!important}.ps-ocr-card,.ps-recent {padding:20px}.ps-home-header p {font-size:13px;line-height:1.6}body.professional-studio .deploy-dialog {width:calc(100% - 16px);max-height:94vh}body.professional-studio .deploy-launcher {font-size:11px!important;right:12px;bottom:12px}}
