/* LIDA's existing navy, blue and gold visual language, scoped to the workspace. */
.ws-chrome{position:relative;overflow:hidden;max-width:1184px;margin:30px auto 0;padding:32px 38px 24px;border:1px solid rgba(225,195,124,.3);border-radius:28px;background:radial-gradient(ellipse at 94% 20%,rgba(62,105,225,.45),transparent 55%),linear-gradient(115deg,#101a34,#202251 58%,#244794);box-shadow:0 18px 45px rgba(26,46,98,.16);color:#fff}
.ws-chrome:before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(230,199,123,.2) 1px,transparent 1px);background-size:24px 24px;opacity:.4;pointer-events:none}
.ws-chrome[hidden]{display:none}.ws-heading,.ws-tabs,.ws-fees{position:relative}.ws-mark{display:inline-block;margin-bottom:12px;color:#e8cf91;font-size:11px;font-weight:800;letter-spacing:2px}.ws-heading h1{margin:0;color:#fff;font-size:clamp(26px,3vw,38px);line-height:1.2;letter-spacing:-1px;font-weight:800}.ws-heading p{margin:12px 0 0;color:#d6dff2;font-size:15px;line-height:1.65;max-width:750px}
.ws-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:24px}.ws-tabs button,.ws-tabs a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 14px;border:1px solid rgba(216,226,250,.22);border-radius:12px;color:#e1e9fa;background:rgba(255,255,255,.06);font:inherit;font-size:14px;font-weight:650;line-height:1.45;text-decoration:none;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}.ws-tabs svg{width:22px;height:22px;flex-shrink:0}.ws-tabs button:hover,.ws-tabs a:hover{background:rgba(255,255,255,.13);border-color:#c6d4ed80}.ws-tabs button.active{background:#fff;color:#223b70;border-color:#fff;box-shadow:0 5px 16px #0a143525}.ws-tabs button:focus-visible,.ws-tabs a:focus-visible{outline:3px solid #e8cf91;outline-offset:3px}.ws-external{font-size:17px;color:#e8cf91}.ws-fees{font-size:12px;color:#c3cfea;line-height:1.65;margin:16px 0 0;padding-top:14px;border-top:1px solid #ffffff1c}
.in-workspace .page-wrap{padding-top:26px}.in-workspace #page-doc-analysis .dg-hero,.in-workspace #page-doc-gen .dg-hero{padding:0;margin-bottom:22px;border:0;border-radius:0;background:none;box-shadow:none}.in-workspace .dg-hero:before,.in-workspace .dg-hero .dg-brand,.in-workspace .dg-hero .dg-hero-art{display:none!important}.in-workspace #page-doc-analysis .dg-hero h2,.in-workspace #page-doc-gen .dg-hero h2{font-size:25px;letter-spacing:-.5px;color:#223354}.in-workspace #page-doc-analysis .dg-hero p,.in-workspace #page-doc-gen .dg-hero p{margin-top:8px;font-size:14px;color:#64748b;max-width:840px}.in-workspace #page-analysis .page-hd{max-width:1184px!important;margin:0 auto 22px!important;padding:0!important;border:0;background:none;box-shadow:none;border-radius:0}.in-workspace #page-analysis .page-hd:before,.in-workspace #page-analysis .page-hd:after{display:none}.in-workspace #page-analysis .page-hd h2{font-size:25px;color:#223354}.in-workspace #page-analysis .page-hd p{color:#64748b!important;font-size:14px!important;margin-top:8px!important}.in-workspace #page-analysis .an-layout{max-width:1240px;padding:0 28px}
@media(max-width:1240px){.ws-chrome{margin-left:28px;margin-right:28px}.in-workspace #page-analysis .page-hd{margin-left:28px!important;margin-right:28px!important}}
@media(max-width:768px){.ws-chrome{margin:16px 16px 0;padding:24px;border-radius:20px}.ws-heading h1{font-size:28px}.ws-heading p{font-size:14px;margin-top:10px}.ws-tabs{grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}.ws-tabs button,.ws-tabs a{padding:11px 10px;font-size:13px;min-height:54px;gap:8px;justify-content:flex-start}.ws-tabs svg{width:20px;height:20px}.ws-fees{font-size:11px;margin-top:14px}.in-workspace #page-analysis .page-hd{margin:0 16px 18px!important}.in-workspace #page-analysis .an-layout{padding:0 16px}.in-workspace #page-doc-analysis .dg-hero h2,.in-workspace #page-doc-gen .dg-hero h2,.in-workspace #page-analysis .page-hd h2{font-size:22px;line-height:1.3}.in-workspace #page-doc-analysis .dg-hero,.in-workspace #page-doc-gen .dg-hero{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.ws-tabs button,.ws-tabs a{transition:none}}

/* Mobile workspace: tool directory followed by one focused task screen. */
.ws-mobile-home,.ws-mobile-bar{display:none}
.ws-mobile-details>summary{display:none}
@media(max-width:768px){
 html body.in-workspace{background:#f5f7fb}
 html body.in-workspace #workspace-chrome{display:none!important}
 html body.in-workspace.ws-mobile-hub #page-doc-analysis,
 html body.in-workspace.ws-mobile-hub #page-doc-gen,
 html body.in-workspace.ws-mobile-hub #page-analysis{display:none!important}
 .in-workspace.ws-mobile-hub .ws-mobile-home{display:block;padding:26px 16px 24px;max-width:560px;margin:auto}
 .ws-mobile-intro{padding:0 4px 22px}
 .ws-mobile-intro h1{margin:0 0 8px;color:#102559;font-size:25px;line-height:1.25;font-weight:800;letter-spacing:-.6px}
 .ws-mobile-intro p{margin:0;color:#64748b;font-size:15px;line-height:1.5}
 .ws-mobile-tools{display:grid;gap:12px}
 .ws-tool-card{display:flex;align-items:center;gap:14px;width:100%;min-height:106px;padding:18px 16px;border:1px solid #e0e7f1;border-radius:18px;background:#fff;box-shadow:0 3px 12px #17345e04;color:#102559;font:inherit;text-align:left;text-decoration:none;cursor:pointer}
 .ws-tool-card:active{background:#edf3ff;border-color:#9bb4e6}
 .ws-tool-card:focus-visible,.ws-tools-back:focus-visible{outline:3px solid #4671c9;outline-offset:3px}
 .ws-tool-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#eaf1ff;color:#224d95;flex:0 0 48px}
 .ws-tool-icon svg{width:25px;height:25px}
 .ws-tool-card:nth-child(2) .ws-tool-icon{background:#eff1fa;color:#5759a0}
 .ws-tool-card:nth-child(3) .ws-tool-icon{background:#e9f5f0;color:#25785b}
 .ws-tool-copy{min-width:0;flex:1}
 .ws-tool-copy strong{display:block;font-size:16px;line-height:1.35;font-weight:750}
 .ws-tool-copy small{display:block;margin-top:5px;font-size:13px;line-height:1.5;color:#69778b}
 .ws-tool-arrow{font-size:25px;color:#8594ad;flex:0 0 12px}
 .ws-tool-pen{min-height:90px;margin-top:8px;background:#f0f3f9;box-shadow:none}
 .ws-tool-pen .ws-tool-icon{background:#fff;color:#657189}
 .ws-mobile-usage{margin:22px 4px 0;font-size:12px;line-height:1.6;color:#758198}
 .ws-mobile-usage summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px}
 .ws-mobile-usage summary:after{content:'+';font-size:18px}
 .ws-mobile-usage[open] summary:after{content:'−'}
 .ws-mobile-usage p{margin:0 0 8px}
 .in-workspace:not(.ws-mobile-hub) .ws-mobile-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 0;max-width:560px;margin:auto}
 .ws-tools-back{display:flex;align-items:center;gap:7px;min-height:44px;padding:0 10px 0 0;color:#315c9e;background:none;border:0;font:inherit;font-size:14px;cursor:pointer}
 .ws-tools-back span:first-child{font-size:29px;line-height:1}
 .ws-current-tool{font-size:12px;color:#7b879b;text-align:right}
 html body.in-workspace #page-doc-analysis .page-wrap,
 html body.in-workspace #page-doc-gen .page-wrap{max-width:560px;padding:18px 16px 28px!important;margin:auto}
 html body.in-workspace #page-doc-analysis .dg-hero,
 html body.in-workspace #page-doc-gen .dg-hero{margin:0 0 20px;padding:0!important;min-height:0}
 html body.in-workspace .dg-hero h2,
 html body.in-workspace #page-analysis .page-hd h2{font-size:23px!important;line-height:1.3!important;letter-spacing:-.5px}
 html body.in-workspace .dg-hero p,
 html body.in-workspace #page-analysis .page-hd p{font-size:14px!important;line-height:1.6!important;margin-top:7px!important}
 html body.in-workspace #page-doc-analysis .dg-workspace,
 html body.in-workspace #page-doc-gen .dg-workspace{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
 .in-workspace .ws-mobile-details{margin:0 0 18px;border:1px solid #e0e7f1;border-radius:13px;background:#fff;overflow:hidden}
 .in-workspace .ws-mobile-details>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 14px;color:#536781;font-size:14px;font-weight:650;cursor:pointer;list-style:none;box-sizing:border-box}
 .in-workspace .ws-mobile-details>summary::-webkit-details-marker{display:none}
 .in-workspace .ws-mobile-details>summary:after{content:'+';font-size:20px;font-weight:400}
 .in-workspace .ws-mobile-details[open]>summary:after{content:'−'}
 .in-workspace .ws-mobile-details>.form-group{padding:0 14px 14px;margin:0!important}
 .in-workspace .ws-mobile-details>.disclaimer{margin:0!important;border:0!important;border-radius:0!important;font-size:12px!important}
 .in-workspace .ws-mobile-details .info-cards{margin:0!important;padding:0 14px 14px;gap:12px}
 .in-workspace .ws-mobile-details .info-card{padding:14px!important;box-shadow:none!important}
 .in-workspace #page-doc-analysis .or-div{display:none}
 html body.in-workspace #page-doc-analysis .da-mode-switch{display:grid;grid-template-columns:1fr 1fr;background:#e9edf5;padding:4px;border:0;border-radius:12px;margin:0 0 16px;gap:4px}
 html body.in-workspace #page-doc-analysis .da-mode-switch button{min-height:48px;padding:8px;border:0;border-radius:9px;font-size:13px;line-height:1.4;background:transparent;color:#687892;box-shadow:none}
 html body.in-workspace #page-doc-analysis .da-mode-switch button.active{background:#fff;color:#234675;box-shadow:0 2px 5px #233e6c0a}
 html body.in-workspace #page-doc-analysis .upload-zone{padding:25px 18px;border:1.5px dashed #a7bddf;border-radius:18px;background:#edf3fc;box-shadow:none;margin-bottom:16px}
 html body.in-workspace #page-doc-analysis .upload-icon{font-size:30px;margin-bottom:10px}
 html body.in-workspace #page-doc-analysis .upload-title{font-size:16px;line-height:1.5;max-width:280px;margin:0 auto 6px;color:#244675}
 html body.in-workspace #page-doc-analysis .upload-desc,
 html body.in-workspace #page-doc-analysis .da-upload-count-hint{font-size:12px;line-height:1.5;color:#667e9e}
 html body.in-workspace .form-ctrl{font-size:16px!important;min-height:48px;border-radius:12px!important;background:#fff!important;border:1px solid #dce4ef!important;padding:12px!important;box-shadow:none!important;max-width:100%;box-sizing:border-box}
 html body.in-workspace textarea.form-ctrl{min-height:120px;line-height:1.6;resize:vertical}
 html body.in-workspace .form-ctrl:focus{outline:2px solid #7b9fd9;outline-offset:1px}
 html body.in-workspace .form-label{font-size:14px!important;line-height:1.5;color:#3e5270}
 html body.in-workspace .action-row{display:flex;flex-direction:column;gap:8px;margin-top:24px}
 html body.in-workspace .btn-submit{width:100%;min-height:52px;border-radius:13px;font-size:15px;padding:13px 16px;line-height:1.5;box-shadow:none}
 html body.in-workspace .btn-sm-outline{min-height:44px;border-radius:12px;padding:10px 14px;font-size:14px}
 html body.in-workspace .action-row>.btn-sm-outline{align-self:center;border-color:transparent;background:transparent;color:#748299}
 html body.in-workspace #page-doc-gen .tmpl-grid{display:flex;flex-direction:column;gap:8px}
 html body.in-workspace #page-doc-gen .tmpl-card{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;min-height:64px;padding:12px 14px;border:1px solid #dfe6f0;border-radius:13px;background:#fff;box-shadow:none;gap:12px;text-align:left;transform:none}
 html body.in-workspace #page-doc-gen .tmpl-card.sel{border:2px solid #315fa4;padding:11px 13px;background:#eff5ff}
 html body.in-workspace #page-doc-gen .tmpl-ico{font-size:22px;flex:0 0 32px;margin:0}
 html body.in-workspace #page-doc-gen .tmpl-name{font-size:14px;line-height:1.4;flex:1}
 html body.in-workspace #page-doc-gen .tmpl-card.sel:after{content:'✓';color:#315fa4;font-size:18px;position:static}
 html body.in-workspace #page-analysis{padding-top:18px!important}
 html body.in-workspace #page-analysis .page-hd{max-width:528px!important;margin:0 auto 20px!important;padding:0 16px!important;box-sizing:content-box}
 html body.in-workspace #page-analysis .an-layout{display:flex;flex-direction:column;max-width:560px;padding:0 16px!important;margin:auto;gap:20px;box-sizing:border-box}
 html body.in-workspace #page-analysis .an-form-panel{padding:16px!important;border-radius:16px!important;box-shadow:none!important;min-width:0;width:100%;box-sizing:border-box}
 html body.in-workspace #page-analysis .an-panel-hd{padding-bottom:14px;margin-bottom:18px}
 html body.in-workspace #page-analysis .an2-role-btn{min-height:46px;font-size:13px!important;padding:10px 8px!important;border-radius:10px}
 html body.in-workspace #page-analysis #an2-welcome{display:none}
 html body.in-workspace #page-analysis .an-results-panel{position:static;min-height:0;max-height:none;width:100%;min-width:0}
 html body.in-workspace .result,
 html body.in-workspace .an-results-panel{scroll-margin-top:80px}
 html body.in-workspace .result-hd{flex-wrap:wrap;gap:12px}
 html body.in-workspace .result-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
 html body.in-workspace .result-actions button{min-height:44px}
 html body.in-workspace .result-body{font-size:15px!important;line-height:1.75!important;overflow-wrap:anywhere}
 html body.in-workspace .result-body table{display:block;max-width:100%;overflow-x:auto}
 html body.in-workspace .da-file-list{margin-bottom:16px}
 html body.in-workspace .da-file-card{min-width:0}
 html body.in-workspace .da-file-name{overflow-wrap:anywhere}
}
@media(max-width:768px){
 .in-workspace [data-ws-details="template"]>summary{color:#244675;min-height:54px}
 .in-workspace [data-ws-details="template"] .form-label{display:none}
 .in-workspace [data-ws-details="template"]>.form-group{padding:0 10px 10px}
}
.ws-task-description{display:none}
@media(max-width:768px){
 html body.in-workspace :is(#page-doc-analysis,#page-doc-gen) .dg-hero-copy>p:not(.ws-task-description),
 html body.in-workspace #page-analysis .page-hd>p:not(.ws-task-description){display:none!important}
 html body.in-workspace .ws-task-description{display:block}
 html body.in-workspace :is(#page-doc-analysis,#page-doc-gen,#page-analysis) .btn-submit{min-height:52px;padding:13px 16px;border-radius:13px;font-size:15px;line-height:1.5;box-shadow:none!important}
 html body.in-workspace :is(#page-doc-analysis,#page-doc-gen) .action-row{border:0;padding:0;display:flex;flex-direction:column;gap:8px}
 html body.in-workspace :is(#page-doc-analysis,#page-doc-gen) .action-row>.btn-sm-outline{align-self:center;border-color:transparent;background:transparent;color:#748299;min-height:44px}
}
@media(max-width:768px){
 html body.in-workspace #page-doc-gen .dg-section{padding:16px!important;border:1px solid #e1e7f0;border-radius:16px;box-shadow:none!important;margin-bottom:16px}
 html body.in-workspace #page-doc-gen .dg-fields-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}
 html body.in-workspace #page-doc-gen .dg-field :is(input,select,textarea){font-size:16px!important;min-height:48px;border-radius:12px;padding:12px;box-sizing:border-box;max-width:100%;background:#fff}
 html body.in-workspace #page-doc-gen .dg-field label{font-size:13px;line-height:1.5}
 html body.in-workspace #page-doc-gen .dg-section-title{font-size:14px!important;line-height:1.6}
}
.ws-case-role{display:none}
@media(max-width:768px){
 html body.in-workspace #page-analysis #an2-role-grid{display:none!important}
 html body.in-workspace #page-analysis .ws-case-role{display:block;width:100%}
}

@media(max-width:768px){
 html body.in-workspace #page-analysis #anForm>div[style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
}
@media(max-width:768px){
 .in-workspace.ws-mobile-hub #mob-header-right-slot>div>span{display:none}
}
