/* VAS unified UI v2, 2026-11-07. One coherent theme, readable every mode. */
:root{--vas-bg:#f0f4f8;--vas-surface:#fff;--vas-muted-bg:#eaf0f5;--vas-text:#172f40;--vas-secondary:#496276;--vas-border:#cbd9e2;--vas-head:#102f45;--vas-head-text:#fff;--vas-link:#155d84;--vas-btn:#165c82;--vas-btn-text:#fff;--vas-focus:#d49b3c;--vas-warn-bg:#fff0d4;--vas-warn-text:#513a10;--vas-warn-border:#b78226;--vas-success-bg:#e6f5ec;--vas-success-text:#175237;--vas-elevation:0 3px 16px rgba(18,42,60,.07);--vas-font-scale:100%;--vas-strong:#15354a;--vas-accent:#1e638b;color-scheme:light}
html[data-vas-color="navy"],html[data-vas-color="blue"]{--vas-accent:#1b678f;--vas-btn:#155d84;--vas-head:#102e46;--vas-focus:#d8a74d}
html[data-vas-color="teal"]{--vas-accent:#007f70;--vas-btn:#056c60;--vas-head:#103e40;--vas-focus:#d0a454}
html[data-vas-color="gold"]{--vas-accent:#976014;--vas-btn:#785017;--vas-head:#40331f;--vas-focus:#f0c067}
html[data-vas-color="purple"]{--vas-accent:#7553a9;--vas-btn:#60438c;--vas-head:#2b2b4f;--vas-focus:#bfa2ee}
html[data-vas-mode="dark"]{--vas-bg:#0e1925;--vas-surface:#1c2e3e;--vas-muted-bg:#25394b;--vas-text:#f4f8fb;--vas-secondary:#c5d8e7;--vas-border:#647b8f;--vas-head:#091927;--vas-head-text:#fff;--vas-link:#9fdbff;--vas-btn:#28749a;--vas-btn-text:#fff;--vas-warn-bg:#3d351e;--vas-warn-text:#fff0c3;--vas-warn-border:#ebbf6b;--vas-success-bg:#173d33;--vas-success-text:#ddfff0;--vas-strong:#fff;color-scheme:dark}
html[data-vas-mode="dark"][data-vas-color="teal"]{--vas-btn:#12796d;--vas-accent:#64d8c2}
html[data-vas-mode="dark"][data-vas-color="gold"]{--vas-btn:#816126;--vas-accent:#edc76d}
html[data-vas-mode="dark"][data-vas-color="purple"]{--vas-btn:#7353ad;--vas-accent:#c7b0f2}
html[data-vas-mode="contrast"]{--vas-bg:#000;--vas-surface:#000;--vas-muted-bg:#000;--vas-text:#fff;--vas-secondary:#fff;--vas-border:#fff;--vas-head:#000;--vas-head-text:#fff;--vas-link:#ffed60;--vas-btn:#000;--vas-btn-text:#ffed60;--vas-warn-bg:#000;--vas-warn-text:#fff;--vas-warn-border:#ffed60;--vas-success-bg:#000;--vas-success-text:#ffed60;--vas-focus:#ffed60;--vas-strong:#fff;color-scheme:dark}
html[data-vas-ui] {font-size:var(--vas-font-scale,100%);scroll-padding-top:20px}
html[data-vas-ui] body{min-width:0;margin:0;background:var(--vas-bg)!important;color:var(--vas-text)!important;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;line-height:1.55;overflow-x:clip}
html[data-vas-ui] body *{box-sizing:border-box}
html[data-vas-ui] body header{background:var(--vas-head)!important;color:var(--vas-head-text)!important;border-bottom:3px solid var(--vas-accent)}
html[data-vas-ui] body header :is(p,h1,h2,h3,span,strong){color:var(--vas-head-text)}
html[data-vas-ui] body header a{color:#edf7fe!important}
html[data-vas-ui] body main{color:var(--vas-text);min-width:0}
html[data-vas-ui] body main :is(h1,h2,h3,h4,h5,h6){color:var(--vas-strong);letter-spacing:-.018em}
html[data-vas-ui] body main :is(.intro,.muted,.note,.small,.eyebrow,.card p,.stat p){color:var(--vas-secondary)}
html[data-vas-ui] body :is(.card,.panel,.stat,.formpanel,.formgrid,.choice,.caseCard,.ownerCaseCard){background:var(--vas-surface)!important;color:var(--vas-text)!important;border-color:var(--vas-border)!important;border-radius:13px!important;box-shadow:var(--vas-elevation)}
html[data-vas-ui] body .card :is(h2,h3,strong),html[data-vas-ui] body .panel :is(h2,h3,strong){color:var(--vas-strong)}
html[data-vas-ui] body :is(.notice,.alert){background:var(--vas-warn-bg)!important;color:var(--vas-warn-text)!important;border-color:var(--vas-warn-border)!important;border-left:5px solid var(--vas-warn-border)!important;border-radius:9px!important;box-shadow:none!important}
html[data-vas-ui] body :is(.notice,.alert) :is(strong,p,span,small,label,a){color:var(--vas-warn-text)!important;-webkit-text-fill-color:var(--vas-warn-text)!important}
html[data-vas-ui] body :is(.ok,.success){background:var(--vas-success-bg)!important;color:var(--vas-success-text)!important;border-color:var(--vas-accent)!important}
html[data-vas-ui] body :is(.ok,.success) *{color:var(--vas-success-text)}
html[data-vas-ui] body :is(.btn,button:not(.vas-ui-textbtn):not(.vas-ui-swatch),input[type="submit"]){background:var(--vas-btn)!important;color:var(--vas-btn-text)!important;-webkit-text-fill-color:var(--vas-btn-text)!important;border:1px solid var(--vas-btn)!important;border-radius:9px!important;text-decoration:none!important;font-weight:700;min-height:42px;cursor:pointer;box-shadow:none}
html[data-vas-ui] body :is(.btn.secondary,button.secondary){background:var(--vas-muted-bg)!important;color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important;border:1px solid var(--vas-border)!important}
html[data-vas-ui] body :is(.btn,button):disabled{opacity:.55;cursor:wait}
html[data-vas-ui] body main a:not(.btn){color:var(--vas-link)}
html[data-vas-ui] body :is(input,textarea,select){background:var(--vas-surface)!important;color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important;border-color:var(--vas-border)!important;min-height:44px;border-radius:8px}
html[data-vas-ui] body :is(input,textarea,select)::placeholder{color:var(--vas-secondary);opacity:.8}
html[data-vas-ui] body :is(select option,select optgroup){background:var(--vas-surface)!important;color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important}
html[data-vas-ui] body :is(label,legend,th,td){color:var(--vas-text)}
html[data-vas-ui] body :is(table,thead,tbody,tr,td,th){border-color:var(--vas-border)}
html[data-vas-ui] body thead th{background:var(--vas-muted-bg)!important;color:var(--vas-strong)!important}
html[data-vas-ui] body :is(.badge,.pill,.tag){background:var(--vas-muted-bg)!important;color:var(--vas-text)!important;border-radius:24px}
html[data-vas-ui] body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--vas-focus)!important;outline-offset:3px!important}
html[data-vas-ui] body .vas-portal-entry{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--vas-accent)!important;color:#fff!important;padding:10px 15px!important;border-radius:10px!important;text-decoration:none!important;font-weight:800!important;white-space:normal!important;line-height:1.35}
html[data-vas-ui][data-vas-color="gold"] body .vas-portal-entry{color:#ffffff!important}
html[data-vas-ui] body header nav{display:flex;align-items:center;flex-wrap:wrap;gap:9px 17px;max-width:100%}
html[data-vas-ui] body header nav a:not(.vas-portal-entry){min-height:37px;display:inline-flex;align-items:center;text-decoration:none}
html[data-vas-ui] body header nav a:hover{text-decoration:underline!important}
html[data-vas-ui] body .vas-ui-skip{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
html[data-vas-ui] body .vas-ui-skip:focus{left:12px;top:12px;z-index:10000;width:auto;height:auto;background:#fff;color:#14293b;padding:10px}
html[data-vas-ui] body .vas-ui-bar{max-width:1220px;padding:9px 20px;margin:0 auto;display:flex;align-items:center;justify-content:flex-end;gap:12px;color:var(--vas-secondary)}
html[data-vas-ui] body .vas-ui-color-indicator{display:inline-flex;align-items:center;gap:7px;font-size:.85rem;color:var(--vas-secondary)}
html[data-vas-ui] body .vas-ui-dot{display:inline-block;width:13px;height:13px;border-radius:50%;background:var(--vas-accent);box-shadow:0 0 0 2px var(--vas-border)}
html[data-vas-ui] body .vas-ui-bar button{padding:8px 12px!important;min-height:38px!important;font-size:.89rem}
html[data-vas-ui] body .vas-ui-preferences{background:var(--vas-surface)!important;color:var(--vas-text)!important;border:1px solid var(--vas-border);border-radius:14px;padding:18px;max-width:1190px;margin:0 auto 14px;box-shadow:var(--vas-elevation)}
html[data-vas-ui] body .vas-ui-preferences[hidden]{display:none!important}
html[data-vas-ui] body .vas-ui-preferences h2{font-size:1.15rem;margin:0 0 6px;color:var(--vas-strong)!important}
html[data-vas-ui] body .vas-ui-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px;margin:12px 0}
html[data-vas-ui] body .vas-ui-controls h3{margin:0 0 9px;font-size:.98rem;color:var(--vas-strong)!important}
html[data-vas-ui] body .vas-ui-choice-row{display:flex;flex-wrap:wrap;gap:8px}
html[data-vas-ui] body button.vas-ui-choice{display:inline-flex;align-items:center;gap:7px;padding:9px 13px!important;border:1px solid var(--vas-border)!important;background:var(--vas-muted-bg)!important;color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important}
html[data-vas-ui] body button.vas-ui-choice[aria-pressed="true"]{border:2px solid var(--vas-accent)!important;outline:2px solid var(--vas-accent);outline-offset:1px;background:var(--vas-surface)!important}
html[data-vas-ui] body .vas-ui-swatch{border-radius:50%;width:18px;height:18px;border:1px solid rgba(0,0,0,.2);display:inline-block}
html[data-vas-ui] body .vas-ui-preview{padding:12px;border:1px solid var(--vas-border);border-left:5px solid var(--vas-accent);border-radius:8px;background:var(--vas-muted-bg);color:var(--vas-text)}
html[data-vas-ui] body .vas-ui-preview strong{color:var(--vas-strong)}
html[data-vas-ui] body .vas-ui-preferences select{max-width:240px}
html[data-vas-ui] body .vas-ui-voice-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
html[data-vas-ui] body .vas-ui-voice-actions button{padding:8px 12px!important;font-size:.9rem}
html[data-vas-ui] body #accessDetails{display:none!important}
html[data-vas-ui] body #accessTools{background:var(--vas-surface)!important;color:var(--vas-text)!important}
html[data-vas-ui] body :is(#workspaceTitle,#dashboardHome,#ownerPrivateProfile,#complete-caseload,#my-actions){scroll-margin-top:22px}
html[data-vas-ui] body .caseCard,.ownerCaseCard{border-top:4px solid var(--vas-accent)!important}
html[data-vas-ui] body .caseTimeline .caseMile{background:var(--vas-muted-bg)!important;color:var(--vas-text)!important;border-top:4px solid var(--vas-accent)}
html[data-vas-ui] body .caseTimeline .caseMile *{color:var(--vas-text)!important}
html[data-vas-ui] body .vas-portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:20px 0}
html[data-vas-ui] body .vas-portal-grid a{text-decoration:none!important}
html[data-vas-ui] body .vas-portal-tile{display:flex;flex-direction:column;gap:9px;border:1px solid var(--vas-border);border-top:5px solid var(--vas-accent);background:var(--vas-surface);padding:20px;border-radius:12px;min-height:150px;box-shadow:var(--vas-elevation)}
html[data-vas-ui] body .vas-portal-tile strong{font-size:1.13rem;color:var(--vas-strong)}
html[data-vas-ui] body .vas-portal-tile span{color:var(--vas-secondary)}
html[data-vas-ui] body #authForms .panel{max-width:560px;margin-inline:auto}
html[data-vas-ui] body #authForms form{display:flex;flex-direction:column;gap:8px}
html[data-vas-ui] body #authForms form[hidden]{display:none!important}
html[data-vas-ui] body #authForms label{margin:5px 0}
html[data-vas-ui] body #authForms .captcha-slot{position:relative;display:block;min-height:82px;margin:10px 0 17px;max-width:100%;isolation:isolate;overflow:visible}
html[data-vas-ui] body #authForms .captcha-slot>div{max-width:100%;overflow:visible}
html[data-vas-ui] body #authForms button[type="submit"]{align-self:flex-start;min-width:150px;min-height:48px}
html[data-vas-ui] body #authForms .pw-wrap{position:relative}
html[data-vas-ui] body #authForms .pw-eye{background:var(--vas-muted-bg)!important;color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important;border:1px solid var(--vas-border)!important;min-height:34px;top:50%}
html[data-vas-ui] body #memberPanel p a{margin:5px 8px 5px 0}
html[data-vas-ui] body.vas-app-screen header{padding-top:18px;padding-bottom:18px}
html[data-vas-ui] body.vas-app-screen header h1{font-size:clamp(1.7rem,4vw,2.5rem);margin:10px 0}
html[data-vas-ui] body.vas-app-screen main{max-width:1230px;padding-top:20px}
html[data-vas-ui] body.vas-app-screen .section{margin-top:18px;margin-bottom:18px}
html[data-vas-ui] body.vas-app-screen .section>h2{border-left:5px solid var(--vas-accent);padding-left:12px}
html[data-vas-ui] body.vas-app-screen .stats .stat .number,html[data-vas-ui] body.vas-app-screen .stat strong{color:var(--vas-accent)!important}
html[data-vas-ui][data-vas-mode="dark"] body main [style*="background:#fff"],html[data-vas-ui][data-vas-mode="dark"] body main [style*="background: #fff"],html[data-vas-ui][data-vas-mode="dark"] body main [style*="background:white"],html[data-vas-ui][data-vas-mode="dark"] body main section:not(.hero){background-color:var(--vas-surface)!important;color:var(--vas-text)!important;border-color:var(--vas-border)!important}
html[data-vas-ui][data-vas-mode="dark"] body main :is(.card,.panel,.notice,.alert,.choice,.stat,.grid>article,article,section:not(.hero)) :is(h1,h2,h3,h4,p,span,strong,small,label,li,legend){color:var(--vas-text)!important}
html[data-vas-ui][data-vas-mode="dark"] body main :is(.notice,.alert){background:var(--vas-warn-bg)!important;color:var(--vas-warn-text)!important}
html[data-vas-ui][data-vas-mode="dark"] body main :is(.notice,.alert) :is(p,strong,span,small,label){color:var(--vas-warn-text)!important}
html[data-vas-ui][data-vas-mode="contrast"] body main :is(.panel,.card,.stat,section:not(.hero),.notice,.alert,article){background:#000!important;color:#fff!important;border:2px solid #fff!important}
html[data-vas-ui][data-vas-mode="contrast"] body main a:not(.btn){color:#ffed60!important;text-decoration:underline!important}
html[data-vas-ui][data-vas-mode="contrast"] body :is(button,.btn){border:2px solid #ffed60!important}
@media(max-width:720px){html[data-vas-ui] body main{padding-left:clamp(14px,4vw,22px)!important;padding-right:clamp(14px,4vw,22px)!important}
html[data-vas-ui] body header{padding:17px!important}
html[data-vas-ui] body header nav{display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:7px 0!important}
html[data-vas-ui] body header nav a{font-size:.9rem!important;padding:7px!important}
html[data-vas-ui] body .vas-portal-entry{width:auto!important;padding:9px 12px!important}
html[data-vas-ui] body .vas-ui-bar{padding:8px 14px}
html[data-vas-ui] body .vas-ui-preferences{margin:0 12px 12px;padding:14px}
html[data-vas-ui] body .vas-ui-controls{grid-template-columns:1fr!important}
html[data-vas-ui] body .grid,.stats,.ownerCaseGrid{grid-template-columns:minmax(0,1fr)!important}
html[data-vas-ui] body .card,.panel{padding:16px!important}
html[data-vas-ui] body .vas-portal-grid{grid-template-columns:1fr}
html[data-vas-ui] body #authForms{max-width:100%;margin-top:12px}
html[data-vas-ui] body #authForms .panel{padding:22px!important}
html[data-vas-ui] body .caseTimeline.horizontal{scroll-snap-type:x proximity}
html[data-vas-ui] body .tableScroll,.vas-table-scroll{max-width:100%;overflow:auto}
}
@media(prefers-reduced-motion:reduce){html[data-vas-ui] *,html[data-vas-ui] *::before,html[data-vas-ui] *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Homepage service invitation: keep the surface and all text coupled to one palette. */
html[data-vas-ui] body main .service-feature{background:var(--vas-surface)!important;color:var(--vas-text)!important;border:1px solid var(--vas-border)!important;box-shadow:var(--vas-elevation)!important;display:flex;align-items:center;gap:22px}
html[data-vas-ui] body main .service-feature h3{color:var(--vas-strong)!important;-webkit-text-fill-color:var(--vas-strong)!important}
html[data-vas-ui] body main .service-feature p{color:var(--vas-secondary)!important;-webkit-text-fill-color:var(--vas-secondary)!important}
html[data-vas-ui] body main .service-feature .symbol{flex:0 0 auto}
@media(max-width:650px){html[data-vas-ui] body main .service-feature{align-items:flex-start;gap:14px;padding:18px!important}html[data-vas-ui] body main .service-feature .symbol{font-size:2.2rem}}


/* VAS contrast/navigation hotfix 2026-11-07 B */
html[data-vas-ui] body main .warn,html[data-vas-ui] body main .warn :is(p,strong,span,small,label,a,li){background-color:var(--vas-warn-bg)!important;color:var(--vas-warn-text)!important;-webkit-text-fill-color:var(--vas-warn-text)!important}
html[data-vas-ui] body main .warn{border:1px solid var(--vas-warn-border)!important;border-left:5px solid var(--vas-warn-border)!important;border-radius:10px!important;padding:16px 18px!important}
html[data-vas-ui] body main .warn :is(p,strong,span,small,label,a,li){background-color:transparent!important}
html[data-vas-ui] body main .warn a{text-decoration:underline!important}
html[data-vas-ui] body.vas-qa-screen main .good{color:var(--vas-success-text)!important;-webkit-text-fill-color:var(--vas-success-text)!important}
html[data-vas-ui] body.vas-qa-screen main .bad{color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important;border-color:#d26a6a!important}
html[data-vas-ui] body.vas-qa-screen main .neutral{color:var(--vas-secondary)!important}
html[data-vas-ui] body main :is(.notice,.alert) :is(h1,h2,h3,h4,h5,h6,li,em,b){color:var(--vas-warn-text)!important;-webkit-text-fill-color:var(--vas-warn-text)!important}
html[data-vas-ui] body header nav.vas-main-nav{max-width:1240px;display:grid!important;grid-template-columns:minmax(250px,1fr) auto;grid-template-areas:'brand actions' 'navigation navigation';align-items:center;column-gap:24px;row-gap:12px;padding:18px 24px!important;margin:0 auto}
html[data-vas-ui] body header .vas-main-nav .brand{grid-area:brand;display:inline-flex;align-items:center;max-width:max-content;font-size:clamp(1.05rem,1.5vw,1.35rem);line-height:1.2;color:#fff!important;white-space:normal}
html[data-vas-ui] body header .vas-main-nav .brand span{margin:0 .35em;color:#f4d28f!important}
html[data-vas-ui] body header .vas-main-nav .vas-primary-nav{grid-area:navigation;display:flex;align-items:center;flex-wrap:wrap;gap:8px 22px;padding-top:10px;border-top:1px solid rgba(255,255,255,.23)}
html[data-vas-ui] body header .vas-main-nav .vas-primary-nav>a{font-size:.96rem;color:#edf7ff!important;padding:6px 0;font-weight:600}
html[data-vas-ui] body header .vas-main-nav .vas-header-actions{grid-area:actions;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
html[data-vas-ui] body header .vas-main-nav .vas-header-actions a{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:42px;padding:10px 15px;border-radius:9px;text-decoration:none!important;font-weight:750;line-height:1.2}
html[data-vas-ui] body header .vas-main-nav .vas-header-actions .vas-cta{background:#f0c46a!important;color:#243244!important;-webkit-text-fill-color:#243244!important}
html[data-vas-ui] body header .vas-main-nav .vas-header-actions .vas-portal-entry{background:var(--vas-btn)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-vas-ui] body header .vas-more-menu{position:relative;color:#fff;font-size:.95rem;font-weight:650}
html[data-vas-ui] body header .vas-more-menu>summary{list-style:none;cursor:pointer;min-height:37px;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid rgba(255,255,255,.4);border-radius:8px;color:#fff!important}
html[data-vas-ui] body header .vas-more-menu>summary::-webkit-details-marker{display:none}
html[data-vas-ui] body header .vas-more-menu>summary::after{content:'▾';font-size:.8em}
html[data-vas-ui] body header .vas-more-menu[open]>summary::after{content:'▴'}
html[data-vas-ui] body header .vas-more-options{position:absolute;top:calc(100% + 7px);left:0;z-index:100;display:flex;flex-direction:column;min-width:235px;padding:7px;background:var(--vas-surface);border:1px solid var(--vas-border);border-radius:10px;box-shadow:0 15px 35px rgba(0,0,0,.22)}
html[data-vas-ui] body header .vas-more-options a{color:var(--vas-text)!important;-webkit-text-fill-color:var(--vas-text)!important;display:block;padding:9px 12px;min-height:38px;font-weight:600;text-decoration:none!important;border-radius:7px}
html[data-vas-ui] body header .vas-more-options a:hover,html[data-vas-ui] body header .vas-more-options a:focus-visible{background:var(--vas-muted-bg)!important;text-decoration:underline!important}
html[data-vas-ui] body header .vas-main-nav .vas-primary-nav a:not(.vas-portal-entry){background:transparent}
@media(max-width:760px){html[data-vas-ui] body header nav.vas-main-nav{grid-template-columns:1fr!important;grid-template-areas:'brand' 'actions' 'navigation';padding:17px!important;gap:13px!important}html[data-vas-ui] body header .vas-main-nav .vas-header-actions{justify-content:flex-start}html[data-vas-ui] body header .vas-main-nav .vas-primary-nav{gap:8px 16px;justify-content:flex-start}html[data-vas-ui] body header .vas-main-nav .vas-primary-nav>a{font-size:.94rem!important}html[data-vas-ui] body header .vas-more-options{left:0;right:auto;min-width:min(88vw,250px)}}
@media(max-width:410px){html[data-vas-ui] body header .vas-main-nav .vas-header-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}html[data-vas-ui] body header .vas-main-nav .vas-header-actions a{padding:9px 7px;font-size:.84rem!important}}
