/* POWER VPL screen workspace. Reports, charts and printable documents keep their original rendering. */
@media screen {
 :root {
  --workspace-header-height:100px; --workspace-ink:#132f4b; --workspace-muted:#455f76;
  --workspace-text:#f7fbff; --workspace-edge:#ffffffae;
  --workspace-panel:linear-gradient(125deg,#f6fbfff0,#eaf5ffe3);
  --workspace-glass:linear-gradient(130deg,#e9f6ffd9,#dcefffd1);
  --workspace-bar:linear-gradient(110deg,color-mix(in srgb,var(--workspace-shade) 88%,transparent),color-mix(in srgb,var(--workspace-shade) 84%,transparent));
  --workspace-shade:color-mix(in srgb,var(--theme-ink) 66%,#061d31);
  --workspace-depth:0 10px 32px #02192c20,inset 0 1px 0 #ffffffc2;
 }
 :root[data-ui-theme="blanco"] {
  --workspace-text:#243447; --workspace-edge:#ffffffed;
  --workspace-panel:linear-gradient(125deg,#fffffffa,#f7fafbef);
  --workspace-glass:linear-gradient(125deg,#fffffff5,#f1f6fae8);
  --workspace-bar:linear-gradient(120deg,#ffffffed,#f1f5fbe8);
  --workspace-shade:#e8eff5; --workspace-depth:0 8px 24px #18354d14,inset 0 1px 0 #fff;
 }
 body.vp-workspace.authenticated {display:block;background:var(--workspace-shade);isolation:isolate;}
 body.vp-workspace.authenticated::before {content:"";position:fixed;inset:-8px;z-index:-1;pointer-events:none;background:linear-gradient(120deg,color-mix(in srgb,var(--workspace-shade) 30%,transparent),color-mix(in srgb,var(--workspace-shade) 62%,transparent)),url('process-validation-login.jpg') center / cover no-repeat;filter:blur(4px);}
 :root[data-ui-theme="blanco"] body.vp-workspace.authenticated::before {background:linear-gradient(120deg,#f3f7f9e8,#e6edf6eb),url('process-validation-login.jpg') center / cover no-repeat;}
 body.vp-workspace.authenticated > main {width:100%;margin:0;min-height:100dvh;padding:18px 0 0;}
 body.vp-workspace.authenticated #workspaceBar {
  position:sticky;top:12px;z-index:65;display:flex;align-items:center;gap:16px;
  width:calc(100% - 48px);max-width:1720px;height:auto;min-height:74px;margin:0 auto;
  padding:12px 15px;border:1px solid #d2edff66;border-radius:22px;
  background:var(--workspace-bar);color:var(--workspace-text);box-shadow:0 6px 24px #031b301a,inset 0 1px 0 #ffffff26;
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
 }
 .workspace-brand {display:block;flex:0 0 206px;max-width:220px;padding:9px 12px;background:#fff;border:1px solid #fff;border-radius:13px;}
 .workspace-brand img {display:block;width:100%;height:auto;}
 .workspace-search {flex:1 1 240px;min-width:130px;display:flex;align-items:center;gap:10px;margin:0;min-height:46px;padding:0 14px;background:#ffffff19;border:1px solid #d9f2ff77;border-radius:24px;color:var(--workspace-text);}
 .workspace-search>svg {width:22px;height:22px;flex:0 0 22px;}
 body.vp-workspace #workspaceSearch {min-width:0;width:100%;padding:10px 0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--workspace-text);font-size:calc(14px * var(--ui-scale));}
 #workspaceSearch::placeholder {color:var(--workspace-text);opacity:.85;}
 .workspace-search:focus-within {outline:2px solid var(--workspace-text);outline-offset:2px;}
 body.vp-workspace #workspaceSearch:focus-visible {outline:0;box-shadow:none;}
 .workspace-account-actions {display:flex;align-items:center;gap:12px;flex:0 0 auto;}
 .workspace-account {display:flex;align-items:center;gap:9px;max-width:220px;padding:4px 12px;border-left:1px solid #ffffff4a;}
 .workspace-account>svg {width:28px;height:28px;flex:0 0 28px;padding:2px;}
 .workspace-account span {min-width:0;}.workspace-account b,.workspace-account small{display:block;overflow-wrap:break-word;}
 .workspace-account b {font-size:calc(13px * var(--ui-scale));font-weight:700;}.workspace-account small{font-size:calc(11px * var(--ui-scale));opacity:.9;}
 body.vp-workspace #workspaceBar :is(#customizeEnvironment,#vpNavToggle,#logoutBtn) {width:auto;flex-shrink:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid #c7e9ff70;border-radius:13px;background:#ffffff17;color:var(--workspace-text);font-size:calc(12px * var(--ui-scale));white-space:nowrap;}
 body.vp-workspace #workspaceBar :is(#customizeEnvironment,#vpNavToggle,#logoutBtn):hover {background:#ffffff30;color:var(--workspace-text);}
 body.vp-workspace #workspaceBar #vpNavToggle {display:flex;align-items:center;justify-content:center;gap:0;}
 #workspaceBar #vpNavToggle span {display:none;}#workspaceBar #vpNavToggle svg{width:22px;height:22px;}
 #workspaceBar #customizeEnvironment .env-full {display:inline;}#workspaceBar #customizeEnvironment .env-short{display:none;}
 #workspaceBar #logoutBtn>svg {width:23px;height:23px;display:block;}
 body.vp-workspace #workspaceBar :is(button,a):focus-visible {outline:3px solid var(--workspace-text);outline-offset:3px;}
 body.vp-workspace.authenticated .content {max-width:1672px;margin:0 auto;padding:6px 40px 42px;background:transparent;}
 .workspace-context {display:flex;align-items:center;gap:18px;width:calc(100% - 80px);max-width:1592px;margin:20px auto 14px;min-height:45px;color:var(--workspace-text);flex-wrap:wrap;}
 #workspacePageCopy {min-width:0;flex:1;}#workspacePageCopy h2{font-size:calc(26px * var(--ui-scale));line-height:1.2;margin:0;letter-spacing:-.02em;color:var(--workspace-text);}
 #workspacePageCopy p {margin:5px 0 0;color:var(--workspace-text);font-size:calc(12px * var(--ui-scale));opacity:.94;line-height:1.5;}#workspacePageCopy p:empty{display:none;}
 .workspace-context-status {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-left:auto;}
 .workspace-context .status-dot {font-size:11px;background:#f6fffbf2;color:#165f3d;border:1px solid #b7e0c8;max-width:100%;}
 body.vp-workspace .workspace-context .btn.secondary {background:#e8f5ff26;color:var(--workspace-text);border:1px solid #d8f0ff77;border-radius:20px;font-size:12px;min-height:39px;}
 .workspace-back {display:inline-flex;align-items:center;gap:9px;}.workspace-back[hidden]{display:none;}
 body.vp-workspace .workspace-context #workspaceBack{min-height:62px;min-width:245px;padding:12px 22px;gap:13px;justify-content:center;font-size:calc(18px * var(--ui-scale,1));font-weight:800;line-height:1.25;color:#153f63;background:linear-gradient(135deg,#fff,#d9efff);border:2px solid #98c7e5;border-radius:17px;box-shadow:0 7px 22px #001b3a33,inset 0 1px 0 #fff;white-space:normal}
 body.vp-workspace .workspace-context #workspaceBack>span:first-child{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#c7e6fc;font-size:28px;line-height:1}
 body.vp-workspace .workspace-context #workspaceBack:hover{background:#fff;border-color:#5fa8d4;box-shadow:0 9px 26px #001b3a45}
 body.vp-workspace .workspace-context #workspaceBack:focus-visible{outline:3px solid #27b8df;outline-offset:4px}
 @media(max-width:560px){body.vp-workspace .workspace-context #workspaceBack{width:100%;min-width:0;min-height:56px;padding:10px 16px;font-size:17px}}
 .workspace-context .btn:focus-visible {outline-color:var(--workspace-text);}
 body.vp-workspace:has(.section.active :is(.med-hero,.study-hero,.bit-heading,.intake-hero)) #workspacePageCopy {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
 .workspace-sr {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;border:0!important;}
 .workspace-group {margin:0 0 27px;}.workspace-group[hidden]{display:none;}
 .workspace-group>h3 {color:var(--workspace-text);font-size:calc(18px * var(--ui-scale));font-weight:650;letter-spacing:-.01em;margin:0 0 12px;}
 .workspace-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;}
 body.vp-workspace .workspace-tile {
  display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;
  min-width:0;min-height:155px;padding:19px 10px 16px;background:var(--workspace-glass);
  border:1px solid var(--workspace-edge);border-radius:19px;box-shadow:var(--workspace-depth);color:var(--workspace-ink);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);position:relative;
 }
 .workspace-tile[hidden]{display:none!important;}
 .workspace-tile .workspace-tile-icon {display:grid;place-items:center;width:69px;height:66px;border-radius:17px;background:#ffffff8c;color:var(--module-accent);box-shadow:inset 0 1px 0 #fff6;}
 .workspace-tile-icon svg {width:43px;height:43px;display:block;}
 .workspace-tile-name {display:block;text-align:center;font-weight:700;font-size:calc(14px * var(--ui-scale));line-height:1.35;overflow-wrap:break-word;max-width:100%;}
 .workspace-tile:hover,.workspace-tile:focus-visible {border-color:color-mix(in srgb,var(--module-accent) 48%,white);box-shadow:0 0 0 2px color-mix(in srgb,var(--module-accent) 55%,white),0 12px 30px #001b3a40,inset 0 1px 0 #fff;}
 .workspace-tile:focus-visible {outline:3px solid var(--workspace-text);outline-offset:5px;}
 .workspace-empty {padding:28px;border-radius:18px;background:var(--workspace-panel);color:var(--workspace-ink);border:1px solid var(--workspace-edge);}.workspace-empty[hidden]{display:none;}
 .workspace-empty h3{margin-top:0;}.workspace-empty p{line-height:1.6;}
 /* The existing menu is now a drawer at every size, preserving focus trapping and GM layout controls. */
 body.vp-workspace.vp-polished-nav.authenticated > .sidebar {width:min(330px,90vw);inset:0 auto 0 0;z-index:140;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease,visibility .18s;background:var(--sidebar-bg);border-right:1px solid #cce3ed66;box-shadow:15px 0 50px #001c3450;overflow-y:auto;padding:20px 14px;}
 body.vp-workspace.vp-polished-nav.vp-nav-open > .sidebar {transform:translateX(0);visibility:visible;}
 body.vp-workspace.vp-polished-nav.vp-nav-open {overflow:hidden;}
 body.vp-workspace #vpNavClose {display:flex;align-items:center;justify-content:center;gap:9px;margin:0 10px 14px;}
 body.vp-workspace #vpNavClose svg {width:18px;height:18px;}
 body.vp-workspace.vp-nav-open #vpNavShade:not([hidden]) {display:block;position:fixed;inset:0;z-index:130;background:#071f3faa;backdrop-filter:blur(3px);}
 body.vp-workspace .sidebar .brand-logo-wrap {width:215px;max-width:100%;}
 body.vp-workspace .sidebar .brand-logo {height:auto;aspect-ratio:auto;}
 body.vp-workspace .sidebar :is(.brand small,.brand-version,.sidebar-user,#sidebarRole) {display:block;}
 body.vp-workspace .sidebar .nav button[data-go] {justify-content:flex-start;}
 body.vp-workspace .sidebar .nav button[data-go]>span:not(.nav-icon) {display:inline;}
 body.vp-workspace .sidebar .nav-group-title {text-align:left;font-size:10px;}
 /* Shared interiors: translucent framing, opaque input and report surfaces. */
 body.vp-workspace.authenticated .content .section {--hero-text:var(--module-ink);--hero-bg:var(--workspace-glass);color:var(--workspace-ink);}
 body.vp-workspace.authenticated .content .section .card,
 body.vp-workspace.authenticated .content .section :is(.med-hero,.study-hero,.bit-heading,.intake-hero) {
  background:var(--workspace-panel);border:1px solid var(--workspace-edge);border-radius:19px;box-shadow:var(--workspace-depth);color:var(--workspace-ink);
 }
 body.vp-workspace.authenticated .content .section :is(.med-hero,.study-hero,.bit-heading,.intake-hero) {background:var(--workspace-glass);border-left:5px solid var(--module-accent);backdrop-filter:blur(12px);padding:21px 25px;}
 body.vp-workspace.authenticated .content .section :is(.med-hero,.study-hero,.intake-hero) :is(h1,h2,h3,p,small,strong,.med-user,.intake-kicker) {color:var(--module-ink);}
 body.vp-workspace.authenticated #section-bitacora .bit-heading {background:var(--workspace-glass);border-left:5px solid var(--module-accent);}
 body.vp-workspace.authenticated #section-bitacora .bit-heading :is(h1,p,strong,.bit-account) {color:var(--module-ink);}
 body.vp-workspace.authenticated #section-bitacora .bit-heading h1 {font-size:calc(31px * var(--ui-scale));}
 body.vp-workspace.authenticated .bit-module-badge {color:var(--module-ink);background:#ffffff94;border-color:var(--module-border);}
 body.vp-workspace .section .study-symbol {background:#ffffffa8;border-color:#fff9;color:var(--module-accent);}
 body.vp-workspace .section :is(.med-hero h2,.study-hero h2) {font-size:calc(31px * var(--ui-scale));letter-spacing:0;}
 body.vp-workspace .section .med-hero-icon {width:72px;height:72px;border-radius:17px;box-shadow:none;}
 body.vp-workspace .section .study-hero p {font-size:calc(15px * var(--ui-scale));}
 body.vp-workspace.authenticated .content .stock-card :is(h3,.subtitle,label,.field>label,.help,.stock-label,.legend,.stock-number) {color:var(--module-ink);}
 body.vp-workspace.authenticated .content .stock-card {border-top:4px solid var(--module-accent);}
 body.vp-workspace.authenticated .section .card.metric {border-top:3px solid var(--module-accent);}
 body.vp-workspace .content .section :is(.card>h3,.card-title-row h3,legend,.field>label) {color:var(--module-ink);}
 body.vp-workspace .content .section .card>h3 {font-size:calc(19px * var(--ui-scale));}
 body.vp-workspace .content .field>label {font-size:calc(13px * var(--ui-scale));line-height:1.45;font-weight:650;margin-bottom:7px;}
 body.vp-workspace :is(.content,dialog,.modal,.med-dialog) :is(input.entry,select.entry,textarea.entry):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]) {background:#fff;border:1px solid #a8bccd;color:#20394e;border-radius:10px;min-height:43px;padding:10px 12px;box-shadow:inset 0 1px 2px #18394d03;}
 body.vp-workspace :is(.content,dialog,.modal,.med-dialog) :is(input,textarea)::placeholder {color:#607286;opacity:1;}
 body.vp-workspace :is(.content,dialog,.modal,.med-dialog) :is(input,select,textarea):focus-visible {outline:2px solid var(--blue);outline-offset:2px;}
 body.vp-workspace .content .section :is(.btn,.button) {border-radius:12px;min-height:41px;font-size:calc(13px * var(--ui-scale));line-height:1.4;}
 body.vp-workspace.authenticated .section .btn.primary {background:linear-gradient(115deg,var(--module-accent),var(--module-end));color:white;border-color:transparent;box-shadow:0 3px 9px #153b4b25,inset 0 1px 0 #ffffff29;}
 body.vp-workspace.authenticated .section .btn.secondary {background:#ffffffb8;color:var(--module-ink);border-color:var(--module-border);}
 body.vp-workspace .content .section :is(.help,.subtitle,.med-help,.ari-help) {color:var(--workspace-muted);line-height:1.55;}
 body.vp-workspace .content .section .vp-donut-scope {background:var(--workspace-panel);padding:13px 17px;border:1px solid var(--workspace-edge);border-radius:12px;}
 body.vp-workspace .content .section :is(.table-wrap,.study-table-wrap) {background:#fff;border:1px solid var(--module-border);border-radius:12px;}
 body.vp-workspace .content .section :is(.table-wrap,.study-table-wrap,.med-loaded-table) th {background:var(--module-soft);color:var(--module-ink);border-bottom:1px solid var(--module-border);font-weight:700;}
 body.vp-workspace .content .section :is(.table-wrap,.study-table-wrap) td {color:#243b50;}
 body.vp-workspace .content .section fieldset {border-color:var(--module-border);border-radius:13px;}
 body.vp-workspace .section :is(.bit-layout-tools,.bit-photo-row,.ari-plan,.ari-stage-group,.plan-card,.study-factor,.mc-toolbar,.mc-tool-selector,.mc-tool,.mc-module-links,.experience-history-item,.matrix-record-corrections) {background:#f8fcfff2;border:1px solid var(--module-border);border-radius:14px;color:var(--workspace-ink);}
 body.vp-workspace .section :is(.study-empty,.ari-empty,.mc-empty) {background:var(--workspace-panel);color:var(--module-ink);border-radius:14px;}
 body.vp-workspace .section .operational-item {background:var(--workspace-panel);border-color:var(--workspace-edge);border-radius:14px;color:var(--workspace-ink);}
 body.vp-workspace .section :is(.med-phase-hint,.med-state:not(.error),.med-footer) {background:#f7fbfff0;color:var(--module-ink);padding:11px 15px;border-radius:11px;}
 body.vp-workspace .section .med-state:empty {display:none;}
 body.vp-workspace #section-med>.med-workflow {top:calc(var(--workspace-header-height) + 8px);z-index:40;gap:10px;background:var(--workspace-glass);border:1px solid var(--workspace-edge);border-radius:18px;backdrop-filter:blur(20px);box-shadow:var(--workspace-depth);}
 body.vp-workspace #section-med .med-workflow>button {border-radius:24px;background:#ffffff91;color:var(--module-ink);border:1px solid #fff7;min-height:52px;}
 body.vp-workspace #section-med .med-workflow>button.active {background:linear-gradient(115deg,var(--module-accent),var(--module-end));color:#fff;border-color:#c6ffff;box-shadow:0 0 0 1px #dfffff66;}
 body.vp-workspace #section-med .med-workflow>button.active b {background:#fff;color:var(--module-accent);}
 body.vp-workspace #section-med .med-settings {gap:20px;}
 body.vp-workspace #section-med .med-work-actions {position:relative;bottom:auto;background:var(--workspace-panel);border:1px solid var(--workspace-edge);border-radius:15px;padding:13px 17px;margin:16px 0;}
 body.vp-workspace #section-med .med-work-actions #medNext {margin-left:auto;}
 body.vp-workspace #section-med .med-timer {background:var(--workspace-glass);border:1px solid var(--workspace-edge);color:var(--module-ink);border-radius:16px;box-shadow:var(--workspace-depth);}
 body.vp-workspace .section .mc-steps {top:calc(var(--workspace-header-height) + 8px);background:var(--workspace-glass);border:1px solid var(--workspace-edge);border-radius:15px;padding:9px;backdrop-filter:blur(18px);}
 body.vp-workspace .section .mc-phase {scroll-margin-top:calc(var(--workspace-header-height) + 115px);}
 body.vp-workspace .section .mc-storage {padding:20px;background:var(--workspace-panel);color:var(--workspace-ink);border:1px solid var(--workspace-edge);border-radius:15px;}
 body.vp-workspace .section .study-status:not(:empty) {padding:13px 17px;background:#f7fbfff2;border:1px solid var(--module-border);border-radius:12px;color:var(--module-ink);line-height:1.5;}
 body.vp-workspace .section .study-status.error {background:#fff1f1;color:#9a2635;border-color:#e4a1aa;}
 body.vp-workspace .section .mc-steps button.active {background:var(--module-accent);color:#fff;border-color:var(--module-accent);}
 body.vp-workspace .section .mc-steps button.active b {background:white;color:var(--module-accent);}
 body.vp-workspace .section :is(.mc-project-card,.experience-stat,.ari-stat) {border-radius:14px;box-shadow:0 4px 12px #0a274d08;}
 body.vp-workspace .section .intake-steps span {background:#ffffffc9;border-radius:13px;}
 body.vp-workspace .section .vp-file-drop {background:#fff9;border-color:color-mix(in srgb,var(--module-accent) 45%,white);border-radius:15px;}
 /* Dialog surfaces stay nearly opaque and above all glass layers. No report iframe/SVG styling here. */
 body.vp-workspace :is(dialog,.modal,.med-dialog-card) {background:#f7fbfff9;color:var(--workspace-ink);border:1px solid #d4e5ed;border-radius:20px;box-shadow:0 22px 80px #031c4560;}
 body.vp-workspace dialog::backdrop {background:#09233fa6;backdrop-filter:blur(5px);}
 body.vp-workspace .med-dialog {background:#09233fa6;backdrop-filter:blur(5px);}
 body.vp-workspace :is(.med-dialog-head,.dialog-head,.admin-edit-head,.admin-edit-foot) {background:#f6faff;color:var(--workspace-ink);}
 body.vp-workspace .vp-module-preview {border-radius:19px;background:#f3f9fffa;border-color:#d8eafa;box-shadow:0 16px 46px #001c4450;}
 body.vp-workspace .flowmaker-frame-card {padding:0;overflow:hidden;}
 body.vp-workspace .flowmaker-frame {min-height:760px;height:calc(100dvh - var(--workspace-header-height) - 85px);background:transparent;}
 body.vp-workspace .section .flowmaker-loading {background:var(--workspace-panel);color:var(--module-ink);}
 :root[data-ui-theme="blanco"] #workspaceBar :is(.workspace-search,#customizeEnvironment,#vpNavToggle,#logoutBtn) {border-color:#a9baca;background:#ffffffb5;}
 :root[data-ui-theme="blanco"] .workspace-context .btn.secondary {background:#ffffffdc;border-color:#afbdcb;color:#243447;}
 @media(hover:hover) and (prefers-reduced-motion:no-preference) { .workspace-tile {transition:box-shadow .16s ease,border-color .16s ease,transform .16s ease;}.workspace-tile:hover{transform:translateY(-2px);} }
 @media(min-width:761px) {body.vp-workspace #workspaceBar #vpNavToggle {padding:10px;} }
 @media(max-width:1250px) {
  .workspace-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  .workspace-brand {flex-basis:175px;}.workspace-account {max-width:150px;padding-inline:4px;}.workspace-account>svg{display:none;}
  #workspaceBar #customizeEnvironment .env-full{display:none;}#workspaceBar #customizeEnvironment .env-short{display:inline;}
  body.vp-workspace.authenticated #workspaceBar {gap:10px;}.workspace-account-actions{gap:8px;}
 }
 @media(max-width:760px) {
  body.vp-workspace.authenticated>main{padding-top:10px;}
  body.vp-workspace.authenticated #workspaceBar {position:relative;top:auto;display:flex;flex-wrap:wrap;width:calc(100% - 24px);padding:12px;border-radius:18px;gap:10px;}
  .workspace-brand{flex:1 1 130px;max-width:180px;padding:7px 10px;}
  .workspace-search{order:5;flex:1 0 100%;min-height:42px;}
  .workspace-account-actions{margin-left:auto;gap:7px;}.workspace-account{max-width:115px;padding:0;border:0;}.workspace-account b{font-size:11px;}.workspace-account small{font-size:10px;}
  body.vp-workspace #workspaceBar :is(#customizeEnvironment,#vpNavToggle,#logoutBtn){min-height:40px;padding:8px;}
  body.vp-workspace.authenticated .content{padding:6px 16px 32px;}
  .workspace-context {width:calc(100% - 32px);margin-top:15px;gap:12px;}.workspace-context-status{gap:8px;}#workspacePageCopy h2{font-size:22px;}
  .workspace-context-status .status-dot {display:none;}
  .workspace-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}.workspace-group{margin-bottom:24px;}
  body.vp-workspace .workspace-tile{min-height:145px;padding:15px 8px;gap:10px;border-radius:16px;}
  .workspace-tile .workspace-tile-icon{width:59px;height:57px;}.workspace-tile-icon svg{width:36px;height:36px;}.workspace-tile-name{font-size:calc(12px * var(--ui-scale));}
  body.vp-workspace.authenticated .content .section :is(.med-hero,.study-hero,.bit-heading,.intake-hero){padding:18px;gap:15px;}
  body.vp-workspace .section :is(.med-hero h2,.study-hero h2){font-size:27px;}
  body.vp-workspace #section-med>.med-workflow{top:8px;gap:6px;padding:7px;border-radius:14px;}
  body.vp-workspace #section-med .med-workflow>button {min-height:44px;font-size:12px;gap:7px;}
  body.vp-workspace #section-med .med-work-actions .btn {flex:1 1 170px;}.workspace-back{min-height:42px;}
  body.vp-workspace .flowmaker-frame{min-height:860px;height:calc(100dvh - 40px);}
 }
 @media(max-width:480px){
  .workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.workspace-brand{max-width:146px;flex-basis:120px;}.workspace-account{max-width:75px;}.workspace-account>b{font-size:10px;}
  #workspaceBar #customizeEnvironment .env-short{font-size:11px;}.workspace-account-actions{gap:5px;}
  body.vp-workspace #workspaceBar :is(#customizeEnvironment,#vpNavToggle,#logoutBtn){padding:7px;}
  .workspace-context #workspaceSummary{font-size:11px;}.workspace-group>h3{font-size:17px;}
  .workspace-context-status{width:100%;margin:0;}body.vp-workspace #section-med .med-hero-icon{width:57px;height:57px;}
 }
 @media(prefers-reduced-motion:reduce){body.vp-workspace .workspace-tile,body.vp-workspace .sidebar{transition:none;}.workspace-tile:hover{transform:none;}}
 @media(prefers-reduced-transparency:reduce){body.vp-workspace{--workspace-panel:#f5faff;--workspace-glass:#eaf4fb;--workspace-bar:var(--workspace-shade);}body.vp-workspace::before{display:none;}.workspace-tile,#workspaceBar{backdrop-filter:none!important;}}
}
@media print {
 #workspaceBar,.workspace-context,#section-modules,.workspace-sr {display:none!important;}
 body.vp-workspace::before {display:none!important;}
}

@media screen {
 .workspace-card {position:relative;display:grid;min-width:0;border-radius:21px;}
 .workspace-card[hidden] {display:none!important;}
 body.vp-workspace .workspace-card>.workspace-tile {width:100%;height:auto;}
 body.vp-workspace .workspace-card>.workspace-favorite {
  position:absolute;right:7px;top:7px;z-index:2;display:grid;place-items:center;
  width:30px;height:30px;min-width:30px;min-height:30px;padding:6px;margin:0;
  border:1px solid transparent;border-radius:50%;background:transparent;color:#526779;
  box-shadow:none;cursor:pointer;transition:background .15s ease,color .15s ease;
 }
 .workspace-favorite svg {display:block;width:16px;height:16px;pointer-events:none;}
 body.vp-workspace .workspace-favorite:hover {background:#ffffffba;color:var(--favorite-accent,var(--theme-accent));}
 body.vp-workspace .workspace-favorite:focus-visible {outline:2px solid var(--favorite-glow,var(--theme-accent));outline-offset:2px;background:#fff;}
 body.vp-workspace .workspace-favorite[aria-pressed=true] {color:var(--favorite-accent,var(--theme-accent));}
 .workspace-favorite[aria-pressed=true] svg {fill:currentColor;}
 body.vp-workspace .workspace-card.is-favorite>.workspace-tile {border-color:var(--module-glow);box-shadow:0 0 0 1px var(--module-glow),0 0 20px color-mix(in srgb,var(--module-glow) 20%,transparent),inset 0 1px 0 #fff4;}
 body.vp-workspace .workspace-card.is-favorite>.workspace-tile:hover {box-shadow:0 0 0 2px var(--module-glow),0 0 25px color-mix(in srgb,var(--module-glow) 30%,transparent),inset 0 1px 0 #fff6;}
 .module-access-card {margin-bottom:20px;}
 .module-access-card[hidden] {display:none!important;}
 .module-access-eyebrow {font-size:11px;font-weight:800;letter-spacing:.11em;color:#526880;margin:0 0 8px;}
 .module-access-controls {display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:18px 0;}
 .module-access-controls .field {width:min(300px,100%);}
 .module-access-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
 .module-access-options fieldset {min-width:0;margin:0;padding:15px;border:1px solid #bacddb90;border-radius:15px;background:#ffffff55;}
 .module-access-options legend {font-size:13px;font-weight:700;padding:0 7px;color:#284b66;}
 .module-access-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 body.vp-workspace label.module-access-choice {display:flex!important;align-items:center;justify-content:flex-start;gap:9px;margin:0;padding:9px 8px;min-height:40px;border-radius:9px;color:#1d405c;cursor:pointer;font-size:13px;}
 label.module-access-choice:has(input:checked) {background:#d4e9f980;}
 body.vp-workspace label.module-access-choice input {position:static!important;flex:0 0 16px;width:16px!important;height:16px;margin:0!important;accent-color:#25699a;}
 .module-access-choice span {flex:1;min-width:0;}
 .module-access-choice small {display:block;margin-top:3px;font-size:11px;color:#526880;}
 .module-access-choice:focus-within {outline:2px solid #34779d;outline-offset:1px;}
 @media(max-width:850px){.module-access-options{grid-template-columns:1fr;}}
 @media(max-width:460px){.module-access-choices{grid-template-columns:1fr;}}
 @media(prefers-reduced-motion:reduce){body.vp-workspace .workspace-favorite{transition:none;}}
}

@media screen {
 body.vp-workspace .workspace-card.is-favorite>.workspace-tile {
  background:linear-gradient(145deg,var(--module-accent),var(--module-end));color:#fff;border-color:var(--module-accent);
  box-shadow:0 0 0 2px #ffffffb0,0 8px 25px #173b453d,inset 0 1px 0 #ffffff40;
 }
 body.vp-workspace .workspace-card.is-favorite>.workspace-tile:hover {box-shadow:0 0 0 2px var(--module-glow),0 10px 30px color-mix(in srgb,var(--module-glow) 35%,transparent),inset 0 1px 0 #ffffff50;}
 body.vp-workspace .workspace-card.is-favorite .workspace-tile-name {color:#fff;text-shadow:0 1px 2px #0002;}
 body.vp-workspace .workspace-card.is-favorite .workspace-tile-icon {background:#fff;color:var(--module-accent);box-shadow:0 2px 10px #0002;}
 body.vp-workspace .workspace-card.is-favorite>.workspace-favorite {background:#fff;color:var(--favorite-accent,var(--theme-accent));box-shadow:0 1px 5px #0002;}
 :root[data-ui-theme="blanco"] body.vp-workspace .workspace-card.is-favorite>.workspace-tile {background:#fff;border-color:#52677d;box-shadow:0 0 0 2px #52677d,0 8px 28px #263f5250;}
 :root[data-ui-theme="blanco"] body.vp-workspace .workspace-card.is-favorite .workspace-tile-name {color:#243447;text-shadow:none;}
 :root[data-ui-theme="blanco"] body.vp-workspace .workspace-card.is-favorite .workspace-tile-icon {background:#e7eef5;color:#243447;}
}

/* Usuarios y acceso · módulos por perfil o por persona */
.mapx-tabs{display:inline-flex;gap:4px;margin:14px 0 2px;padding:4px;border-radius:999px;background:#e6eef5;border:1px solid #c9d8e4}
.mapx-tabs button{min-height:34px;padding:6px 16px;border:0;border-radius:999px;background:transparent;color:#284b66;font:700 13px Arial,sans-serif;cursor:pointer}
.mapx-tabs button[aria-selected=true]{background:#25699a;color:#fff;box-shadow:0 4px 12px #25699a40}
.mapx[hidden],.module-access-card [hidden]{display:none!important}
.mapx-intro{margin:12px 0 0;color:#405d75;font-size:13px}
.mapx-legend{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 12px;font-size:12px;color:#405d75}
.mapx-k{display:inline-flex;align-items:center;gap:6px}
.mapx-k::before{content:"";width:12px;height:12px;border-radius:4px;border:1px solid #9fb6c8}
.mapx-k-base::before{background:#d4e9f9}
.mapx-k-add::before{background:#d9f2e3;border-color:#2e8b57}
.mapx-k-rem::before{background:#fbe3e6;border-color:#b23a48}
body.vp-workspace label.mapx-choice[data-state=add]{background:#d9f2e3;box-shadow:inset 3px 0 #2e8b57}
body.vp-workspace label.mapx-choice[data-state=rem]{background:#fbe3e6;box-shadow:inset 3px 0 #b23a48}
body.vp-workspace label.mapx-choice[data-state=rem] span{text-decoration:line-through;text-decoration-color:#b23a4888}
.mapx-choice[data-state=add] small{color:#1f6a3d!important;font-weight:700}
.mapx-choice[data-state=rem] small{color:#8f2234!important;font-weight:700}
.mapx-list{margin-top:14px}
.mapx-list h4{margin:0 0 8px;font-size:14px;color:#1d405c}
.mapx-list ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.mapx-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;border:1px solid #c9d8e4;border-radius:10px;background:#ffffff80}
.mapx-pick{display:inline-flex;align-items:baseline;gap:6px;margin-right:6px;padding:0;border:0;background:none;color:#1d405c;font:13px Arial,sans-serif;cursor:pointer}
.mapx-pick:hover b{text-decoration:underline}
.mapx-pick small{color:#526880}
.mapx-chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:700}
.mapx-add{background:#d9f2e3;color:#1f6a3d}
.mapx-rem{background:#fbe3e6;color:#8f2234}
.mapx-none{margin:12px 0 0;color:#526880;font-size:13px}

/* Bitácora · formato del informe en tarjetas con la hoja dibujada */
.bit-layout-tools:has(.blp){display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px}
.bit-layout-tools .blp-source{display:none!important}
.blp{display:grid;gap:6px;flex:1 1 520px;min-width:0}
.blp-title{font-weight:700;font-size:13px;color:#6b3a46}
.blp-cards{display:grid;grid-template-columns:repeat(5,minmax(96px,1fr));gap:8px}
.blp-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 6px 9px;border:1.5px solid #d9c3c9;border-radius:12px;background:#fff;cursor:pointer;text-align:center;transition:border-color .15s,box-shadow .15s,transform .15s,background .15s}
.blp-card input{position:absolute;opacity:0;pointer-events:none}
.blp-card svg{width:58px;height:56px;display:block}
.blp-sheet{fill:#fff;stroke:#9b7a83;stroke-width:1.2}
.blp-head{fill:#c9aab3}
.blp-photo rect{fill:#e3edf3;stroke:#8aa3b3;stroke-width:.6}
.blp-photo path{fill:#7fae9a}
.blp-photo circle{fill:#f2c14e}
.blp-line{fill:#c8d2d9}
.blp-text{display:grid;gap:1px;line-height:1.2}
.blp-text strong{font-size:13px;color:#3b2a2f}
.blp-text small{font-size:10.5px;color:#7a6a6f}
.blp-card:hover{border-color:#a85e70;transform:translateY(-2px);box-shadow:0 6px 16px #a85e7022}
.blp-card:has(input:checked){border-color:#a85e70;background:#fbf2f4;box-shadow:inset 0 0 0 1px #a85e70,0 6px 16px #a85e7026}
.blp-card:has(input:checked) .blp-sheet{stroke:#a85e70;stroke-width:1.6}
.blp-card:has(input:checked)::after{content:"✓";position:absolute;top:5px;right:6px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#a85e70;color:#fff;font-size:11px;font-weight:800}
.blp-card:has(input:focus-visible){outline:3px solid #a85e7055;outline-offset:2px}
@media(max-width:700px){.blp-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:340px){.blp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.blp{align-content:start}
body.vp-workspace .blp label.blp-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;min-height:0!important;height:auto!important;margin:0!important;padding:8px 6px 9px!important;text-align:center}
@media(max-width:700px){.blp{flex:0 0 auto;width:100%}.blp-card svg{width:46px;height:44px}.blp-text small{display:none}}
/* Ingresos emitidos: estado explicado */
.intake-state{white-space:nowrap;font-size:13px;line-height:1.55}
.intake-state .is-ok{color:#1f7a45}.intake-state .is-bad{color:#b03a2e}.intake-state .is-wait{color:#9a6a00}
.intake-state-help{margin-top:10px}
/* */ .vpl-cloud #shutdownBtn{display:none!important}
