:root{--ink:#000;--muted:#667085;--line:#d5d8db;--canvas:#d5d8db;--forest:#0c5fa5;--mint:#e7f2fb;--amber:#a85b00;--amber-bg:#fff4db;--red:#bf3636;--red-bg:#fdecec;--blue:#014a7d;--blue-bg:#e7f2fb;--shadow:0 24px 70px rgba(15,23,42,.10)}body{background:#d5d8db;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.side-nav{background:linear-gradient(180deg,#014a7d,#3399cc);border-right:0}.brand-mark{background:linear-gradient(135deg,#014a7d,#3399cc);border:1px solid rgba(255,255,255,.35);color:#fff}.brand small,.unit-switch small,nav p,.nav-foot p{color:rgba(255,255,255,.72)}.unit-switch{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25)}.unit-switch b,.brand{color:#fff}.dot{background:#70e0a0}nav a{color:#edf8ff}nav a:hover,nav a.active{background:rgba(255,255,255,.2)}.nav-foot{border-color:rgba(255,255,255,.25)}.mode-pill{background:#e7f2fb;color:#014a7d}.workspace{max-width:1700px}.page-intro h2,.metric-grid b,.alert-panel h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.04em}.surface,.metric-grid article{border-radius:20px;background:#fff}.button.primary{background:#0c5fa5}.alert-panel{background:linear-gradient(145deg,#014a7d,#0c5fa5)}.preview-tile{background:linear-gradient(135deg,#014a7d,#3399cc)}.status{background:#e7f2fb;color:#014a7d}.confidence.alta{background:#eaf8ef;color:#16834a}.table-head{background:#f4f8fb}.table-row:hover{background:#f6fbff}
.workbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.workbar h2{font-size:25px;margin:5px 0 0}.resolution-list{display:grid;gap:0}.resolution-card{display:grid;grid-template-columns:10px 44px minmax(0,1fr) 190px 20px;gap:14px;align-items:center;padding:16px 4px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}.resolution-card:hover{background:#f6fbff}.resolution-card small{display:block;color:var(--muted);font-size:12px;line-height:1.5}.resolution-card strong{font-size:12px;color:#014a7d}.priority-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b}@media(max-width:760px){.resolution-card{grid-template-columns:8px 40px 1fr 18px}.resolution-card>span:nth-child(4){display:none}.workbar{align-items:start;gap:12px;flex-direction:column}}
.identification-workspace{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:16px;align-items:start}.identification-workspace .surface{padding:18px}.identification-workspace .document-preview{height:390px}.identification-workspace .form-stack small{font-weight:500;color:var(--muted)}.technical{margin-top:16px;border-top:1px solid var(--line);padding-top:12px;color:var(--muted);font-size:12px}.technical summary{cursor:pointer;color:#014a7d;font-weight:700}.candidate-list{margin-top:14px}.next-actions{margin-top:16px;padding:14px;background:#f4f8fb;border-radius:12px;font-size:12px}.next-actions form{display:flex;gap:6px;margin-top:8px}.next-actions input{min-width:0;flex:1}.next-actions button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:8px 10px;font-weight:700;color:#014a7d}.next-actions .danger{color:#bf3636}.audit-section{margin-top:16px}.audit-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}.audit-line span{color:var(--muted)}@media(max-width:1100px){.identification-workspace{grid-template-columns:1fr}.identification-workspace .document-preview{height:330px}}

#processing-indicator{position:fixed;right:24px;bottom:24px;background:#0f172a;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 8px 24px #0004;z-index:99}.confidence-help{border:0;background:transparent;color:#0c5fa5;cursor:help}

.layout-mini,.layout-sheet{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;background:#fff;border:1px solid #cbd5e1;padding:5px;border-radius:5px}.layout-mini{width:52px;height:62px}.layout-mini i,.layout-cells i{background:#dbeafe;border:1px solid #93c5fd;min-height:15px}.layout-mini small{grid-column:1/-1;font-size:8px}.layout-preview{margin:12px 0}.layout-sheet{height:180px;grid-template-columns:1fr;grid-template-rows:auto 1fr auto}.layout-cells{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.layout-sheet span{font-size:10px;color:#64748b;text-align:center}

/* Login uses the same RETA blue, typography and cards as the authenticated workspace. */
.auth-shell{grid-template-columns:minmax(0,1fr) minmax(350px,450px);gap:clamp(34px,8vw,130px);place-content:center;min-height:100vh;padding:48px;background:radial-gradient(circle at 15% 12%,rgba(51,153,204,.36),transparent 34%),linear-gradient(135deg,#014a7d,#0c5fa5 62%,#3399cc)}
.auth-brand{max-width:560px;color:#eef8ff}.auth-brand .brand{padding:0 0 42px}.auth-brand h1{font:800 clamp(34px,5vw,56px)/1.04 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.055em;margin:12px 0 18px;color:#fff}.auth-brand>p:not(.eyebrow){max-width:500px;color:#d9effc;font-size:16px;line-height:1.7}.auth-brand .eyebrow{color:#c8ebff}.auth-points{display:grid;gap:10px;margin-top:28px}.auth-points span{font-size:13px;color:#e9f8ff}.auth-card{width:100%;padding:34px;background:#fff;border:1px solid rgba(255,255,255,.65);border-radius:20px;box-shadow:0 28px 70px rgba(0,45,75,.28)}.auth-card h2{font:800 28px/1.15 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.035em;margin:8px 0}.auth-card>p:not(.eyebrow){color:var(--muted);margin-bottom:24px}.auth-card .button{justify-content:center;background:#0c5fa5}.auth-card .operation-notice{margin:0}.auth-help{display:block;text-align:center;color:var(--muted);margin-top:16px;font-size:11px}@media(max-width:850px){.auth-shell{grid-template-columns:1fr;padding:28px;gap:28px}.auth-brand{max-width:470px}.auth-brand .brand{padding-bottom:22px}.auth-brand h1{font-size:38px}.auth-card{max-width:470px}}

/* Cadastros operacionais: lista, pesquisa e formulário são etapas distintas. */
.registry-surface{padding:0;overflow:hidden}.registry-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid var(--line)}.registry-toolbar h3{margin:0 0 4px}.registry-toolbar small{color:var(--muted)}.registry-search{display:grid;gap:5px;min-width:min(100%,320px);font-size:12px;font-weight:700;color:var(--muted)}.registry-search input{min-width:280px;background:#fff}.registry-list{padding:4px 18px 18px}.registry-list>div{grid-template-columns:48px minmax(0,1fr) auto}.registry-list>div[hidden]{display:none}.admin-editor{max-width:760px;margin:22px auto}.admin-editor .surface{padding:26px}.admin-editor-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:18px}.admin-editor-head h3{margin:0}.admin-editor-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.registry-status{display:inline-flex;gap:6px;flex-wrap:wrap}.status.default{background:#eaf8ef;color:#16834a}.assignment-list{margin:10px 0 0;padding:0;list-style:none}.assignment-list li{padding:7px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.assignment-list b{color:var(--ink)}@media(max-width:760px){.registry-toolbar{align-items:stretch;flex-direction:column;padding:18px}.registry-search input{min-width:0;width:100%}.registry-list{padding:4px 10px 14px}.registry-list>div{grid-template-columns:40px minmax(0,1fr)}.registry-list>div>span:last-child{grid-column:2}.admin-editor{margin:14px 10px}.row-actions{flex-wrap:wrap}}

/* Perfis de leitura: cada layout é apresentado como um cartão, não como tabela extensa. */
.reading-profile-list{display:grid;gap:16px}.reading-profile-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.reading-profile-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:18px 20px 14px;background:#f6fbff}.reading-profile-card h4{margin:2px 0 0;font-size:18px}.profile-tags{display:flex;gap:7px;flex-wrap:wrap}.profile-tags span{padding:5px 8px;background:#e7f2fb;color:#014a7d;border-radius:999px;font-weight:700;font-size:11px}.profile-layout{margin:0;padding:12px 20px;color:var(--muted);font-size:13px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.region-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0}.region-card{display:flex;justify-content:space-between;gap:12px;padding:16px 20px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.region-card b,.region-card small{display:block}.region-card small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.45}.region-actions{text-align:right;white-space:nowrap}.region-actions form{margin-top:5px}.region-card.is-inactive{opacity:.56;background:#f8fafc}@media(max-width:760px){.reading-profile-card>header{flex-direction:column}.region-card{border-right:0}.region-actions{text-align:left}.profile-layout{padding:12px 16px}.region-card{padding:14px 16px}}
/* Tela de acesso: mesma marca, com imagem própria e contraste preservado. */
.auth-shell{position:relative;isolation:isolate;background:linear-gradient(90deg,rgba(0,33,58,.96) 0%,rgba(0,53,90,.88) 45%,rgba(0,50,80,.55) 100%),url("/static/branding/reta-login-imaging.jpg") center/cover no-repeat}.auth-shell:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 20% 25%,rgba(51,153,204,.24),transparent 40%)}.auth-brand h1{max-width:640px}.auth-points{gap:16px}.auth-points span{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;font-size:14px;line-height:1.45}.auth-points span:before{content:"✓";display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(130,219,255,.2);color:#dff6ff;font-weight:800}.auth-points span small{grid-column:2;color:#d9effc;font-size:13px;line-height:1.5}

.sortable-head button{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}.sortable-head button:hover{color:#014a7d}.sortable-head i{font-style:normal;color:#0c5fa5;font-size:13px}


/* Conciliação: candidatos da agenda em comparação estruturada, não em recibo. */
.back-link{display:inline-flex;align-items:center;gap:7px;margin:0 0 14px;color:#014a7d;font-size:13px;font-weight:800;text-decoration:none}.back-link:hover{text-decoration:underline}.worklist-result{min-width:0}.inline-primary-action{margin:16px 0}.worklist-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}.worklist-table{width:100%;min-width:940px;border-collapse:collapse;font-size:12px}.worklist-table th{padding:11px 12px;background:#f4f8fb;color:#667085;text-align:left;font-size:10px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.worklist-table td{padding:13px 12px;vertical-align:top;border-top:1px solid var(--line);line-height:1.35}.worklist-table tr.is-selected td{background:#e7f2fb}.worklist-table .procedure{min-width:185px;max-width:260px}.candidate-action{white-space:nowrap}.candidate-action form{margin:0}.button.secondary{background:#fff;border:1px solid #0c5fa5;color:#014a7d}.selected-label{font-weight:800;color:#16834a}.confirmation-panel{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;margin-top:16px;padding:16px;border:1px solid #a8cdea;border-radius:14px;background:#f4f9fd}.confirmation-panel b,.confirmation-panel small{display:block}.confirmation-panel small{max-width:440px;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}.confirmation-panel .check{font-size:12px;white-space:nowrap}@media(max-width:760px){.confirmation-panel{grid-template-columns:1fr;align-items:start}.confirmation-panel .button{width:100%}.worklist-table{min-width:840px}}

.top-return{display:inline-flex;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#014a7d;font-size:12px;font-weight:800;text-decoration:none}.top-return:hover{background:#f4f8fb}@media(max-width:760px){.top-actions{gap:8px;flex-wrap:wrap}.top-return{order:2}.system-state{order:3}}

/* Header actions must reflow before the responsive navigation consumes the workspace width. */
@media(max-width:1100px){
  .topbar{align-items:flex-start;flex-wrap:wrap;gap:12px}
  .topbar>div:first-child{width:100%;min-width:0}
  .top-actions{width:100%;min-width:0;flex:1 1 100%;justify-content:flex-start;flex-wrap:wrap;gap:10px}
  .top-actions>*,.top-actions form{flex:0 0 auto}
  .top-actions form{margin:0}
}


/* Configuração inicial: campos empilhados e legíveis, inclusive em telas estreitas. */
.setup-shell{grid-template-columns:minmax(0,520px);justify-content:center;padding:32px}.setup-card{max-width:520px}.setup-card h1{font:800 clamp(28px,4vw,38px)/1.1 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.045em;margin:8px 0 12px;color:var(--ink)}.setup-form{display:grid;gap:16px;margin-top:26px}.setup-form label{display:grid;gap:7px;color:var(--ink);font-size:13px;font-weight:800}.setup-form input{width:100%;min-height:46px}.setup-form small{color:var(--muted);font-weight:500;line-height:1.4}.setup-form .button{justify-content:center;margin-top:4px;min-height:46px}@media(max-width:620px){.setup-shell{padding:20px}.setup-card{padding:26px 22px}}

/* Product mark: clinical document flowing to a verified destination. */
img.brand-mark{display:block;object-fit:contain;background:transparent!important;border:0!important;color:transparent;font-size:0;box-shadow:none}
.auth-brand img.brand-mark{width:44px;height:44px;border-radius:0}


/* Product access: the visual flow explains the product without turning login into a landing page. */
.product-login-page{margin:0;background:#F7FAFC;color:#172B4D;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.product-login{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(400px,.82fr);min-height:100vh;background:linear-gradient(116deg,#F8FCFF 0%,#F5FAFC 58%,#EEF6FA 100%)}
.login-product{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:100vh;padding:clamp(38px,6vw,82px);overflow:hidden;background:radial-gradient(circle at 78% 20%,rgba(23,169,212,.12),transparent 26%),linear-gradient(135deg,#F9FCFE,#EDF8FC)}
.login-product:before,.login-product:after{content:"";position:absolute;pointer-events:none}.login-product:before{width:65vw;height:65vw;right:-42vw;bottom:-44vw;border:1px solid rgba(8,120,201,.10);border-radius:50%}.login-product:after{width:42vw;height:42vw;right:-25vw;bottom:-27vw;border:1px solid rgba(16,184,165,.13);border-radius:50%}
.login-brand{position:relative;z-index:1;display:inline-flex;align-items:center;gap:12px;width:max-content;color:#0B2F5B;text-decoration:none}.login-brand img{display:block;width:47px;height:47px}.login-brand b,.login-brand small{display:block}.login-brand b{font-size:22px;line-height:1.05;letter-spacing:-.04em}.login-brand small{margin-top:5px;color:#66758A;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.login-product-copy{position:relative;z-index:1;max-width:640px;margin-top:clamp(44px,8vh,102px)}.login-kicker{margin:0 0 12px;color:#0878C9;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.login-product h1{margin:0;color:#0B2F5B;font-size:clamp(39px,4.6vw,64px);font-weight:700;letter-spacing:-.065em;line-height:1.04}.login-product-copy>p:last-child{max-width:610px;margin:20px 0 0;color:#516B82;font-size:clamp(15px,1.3vw,18px);line-height:1.65}
.login-flow{position:relative;z-index:1;max-width:850px;margin:clamp(20px,4vh,52px) 0 0}.login-flow img{display:block;width:min(100%,760px);height:auto}.login-flow figcaption{display:flex;align-items:center;gap:8px;max-width:700px;margin:6px 0 0 66px;color:#5F7488;font-size:11px;font-weight:700}.login-flow figcaption i{display:block;flex:1;min-width:14px;height:1px;background:linear-gradient(90deg,#5FCDE1,#10B8A5)}
.login-access{display:grid;place-items:center;padding:32px;background:rgba(255,255,255,.78);border-left:1px solid #DDE5EC}.login-access-card{width:min(100%,430px);padding:clamp(28px,4vw,44px);border:1px solid #DDE5EC;border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(17,55,82,.10)}.login-access-card h2{margin:0;color:#172B4D;font-size:31px;letter-spacing:-.05em;line-height:1.12}.login-access-card>p:not(.login-kicker){margin:12px 0 28px;color:#66758A;font-size:14px;line-height:1.55}
.login-form{display:grid;gap:9px}.login-form label{margin-top:8px;color:#334D66;font-size:13px;font-weight:700}.login-form input{width:100%;min-height:51px;padding:0 14px;border:1px solid #D5E0E8;border-radius:10px;background:#fff;color:#172B4D;font:inherit;outline:0}.login-form input::placeholder{color:#9AA9B7}.login-form input:focus{border-color:#0878C9;box-shadow:0 0 0 4px rgba(8,120,201,.13)}.password-field{position:relative;display:block}.password-field input{padding-right:80px}.password-field button{position:absolute;top:50%;right:9px;transform:translateY(-50%);border:0;border-radius:7px;background:#EFF7FB;color:#0878C9;padding:7px 8px;font:700 11px Inter,ui-sans-serif,sans-serif;cursor:pointer}.password-field button:hover{background:#DDF1F8}.password-field button:focus-visible,.login-submit:focus-visible{outline:3px solid rgba(8,120,201,.32);outline-offset:2px}
.login-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin-top:17px;padding:0 18px;border:0;border-radius:10px;background:linear-gradient(95deg,#0B2F5B,#0878C9);box-shadow:0 10px 20px rgba(8,120,201,.20);color:white;font:700 14px Inter,ui-sans-serif,sans-serif;cursor:pointer}.login-submit:hover{background:linear-gradient(95deg,#08284E,#066BAF)}.login-submit:disabled{cursor:wait;opacity:.72}.login-submit i{font-size:20px;font-style:normal}.login-error{margin:0 0 18px;padding:11px 12px;border:1px solid #F1C6C0;border-radius:9px;background:#FFF5F3;color:#A33131;font-size:12px;font-weight:700}.login-help{margin:23px 0 0;color:#748398;font-size:12px;line-height:1.5;text-align:center}
@media(max-width:1120px){.product-login{grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr)}.login-product{padding:44px}.login-flow figcaption{margin-left:25px}}@media(max-width:850px){.product-login{display:block}.login-product{min-height:auto;padding:30px 28px 18px}.login-product-copy{margin-top:32px}.login-product h1{max-width:520px;font-size:40px}.login-product-copy>p:last-child{font-size:15px}.login-flow{display:none}.login-access{padding:22px 28px 34px;border:0;background:transparent;place-items:start}.login-access-card{width:100%;max-width:490px;padding:28px}.login-brand img{width:40px;height:40px}}@media(max-width:460px){.login-product,.login-access{padding-left:20px;padding-right:20px}.login-product h1{font-size:34px}.login-access-card{padding:24px 20px;border-radius:16px}}


/* Access guide: responsibilities are explicit and never imply permissions not enforced by the product. */
.access-guide{margin-bottom:20px}.access-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:16px -21px 0;background:#DDE5EC;border-top:1px solid #DDE5EC}.access-role-grid article{display:flex;gap:12px;padding:18px 21px;background:#fff}.access-role-icon{display:grid;place-items:center;flex:0 0 auto;width:31px;height:31px;border-radius:9px;background:#E7F2FB;color:#0878C9;font-size:12px;font-weight:800}.access-role-icon.admin{background:#E8F8F2;color:#16834A}.access-role-grid h4{margin:1px 0 5px;font-size:14px}.access-role-grid p{margin:0;color:#66758A;font-size:12px;line-height:1.5}.access-transparency{margin:0 -21px -21px;padding:12px 21px;background:#F7FAFC;color:#66758A;font-size:11px;line-height:1.5}.access-transparency b{color:#334D66}@media(max-width:900px){.access-role-grid{grid-template-columns:1fr}.access-role-grid article{border-bottom:1px solid #DDE5EC}}@media(max-width:620px){.access-role-grid{margin-left:-16px;margin-right:-16px}.access-role-grid article{padding:15px 16px}.access-transparency{margin-left:-16px;margin-right:-16px;margin-bottom:-16px;padding:12px 16px}}


/* Quality centre: decisions and priorities, not a table of internal codes. */
.quality-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:18px;padding:29px 31px;border-radius:20px;background:linear-gradient(115deg,#0B2F5B,#0A6DAA 58%,#17A9D4);box-shadow:0 20px 45px rgba(8,73,125,.19);color:#F7FCFF}.quality-hero .eyebrow{color:#BFE8F6}.quality-hero h2{margin:5px 0 8px;font-size:clamp(29px,3.5vw,43px);letter-spacing:-.055em;line-height:1.08}.quality-hero p:not(.eyebrow){max-width:700px;margin:0;color:#D9F0F8;font-size:14px;line-height:1.55}.quality-hero-state{display:flex;align-items:center;gap:13px;min-width:265px;padding:10px 13px;border:1px solid rgba(225,250,255,.3);border-radius:14px;background:rgba(255,255,255,.10)}.quality-state-ring{display:grid;place-items:center;width:58px;height:58px;border:5px solid #65D9D0;border-left-color:rgba(255,255,255,.32);border-radius:50%;color:#fff;font-size:12px;font-weight:800}.quality-hero-state small,.quality-hero-state b{display:block}.quality-hero-state small{color:#C9ECF7;font-size:10px}.quality-hero-state b{margin-top:4px;font-size:12px;color:#fff}
.quality-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.quality-kpi{position:relative;min-height:150px;padding:19px 20px;border:1px solid #DCE7EE;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(19,59,90,.07);overflow:hidden}.quality-kpi:after{content:"";position:absolute;right:-28px;bottom:-35px;width:105px;height:105px;border-radius:50%;background:#E8F4FA}.quality-kpi.success:after{background:#E6F7F0}.quality-kpi.watch:after{background:#FFF2D9}.quality-kpi.critical:after{background:#FDEAE7}.quality-kpi span,.quality-kpi small{position:relative;z-index:1;display:block;color:#66758A;font-size:11px;line-height:1.4}.quality-kpi span{font-weight:800;text-transform:uppercase;letter-spacing:.06em}.quality-kpi strong{position:relative;z-index:1;display:block;margin:8px 0 5px;color:#172B4D;font-size:38px;line-height:1;letter-spacing:-.06em}.quality-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:18px;margin-bottom:18px}.quality-bottom-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(310px,.9fr);gap:18px}.quality-panel{min-width:0;border:1px solid #DCE7EE;border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(19,59,90,.07);overflow:hidden}.quality-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:21px 22px 16px;border-bottom:1px solid #E3EBF0}.quality-panel .eyebrow{margin-bottom:5px;color:#0878C9}.quality-panel h3{margin:0;color:#172B4D;font-size:21px;letter-spacing:-.035em}.quality-panel header p:not(.eyebrow){max-width:660px;margin:7px 0 0;color:#66758A;font-size:12px;line-height:1.5}.quality-priority-list{display:grid}.quality-priority-list>article{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:13px;padding:16px 22px;border-top:1px solid #E5EDF2}.quality-priority-list>article:first-child{border-top:0}.quality-priority-count{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#E7F2FB;color:#0878C9;font-size:15px;font-weight:800}.quality-priority-list h4{margin:0 0 4px;color:#243E57;font-size:13px}.quality-priority-list p{margin:0;color:#66758A;font-size:11px;line-height:1.45}.quality-priority-list a{color:#0878C9;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.quality-priority-list a span{margin-left:4px;font-size:16px}.quality-source-metrics{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#E3EBF0}.quality-source-metrics>div{min-height:92px;padding:17px;background:#FBFDFF}.quality-source-metrics>div:last-child{grid-column:1/-1}.quality-source-metrics small{display:block;color:#66758A;font-size:11px}.quality-source-metrics b{display:block;margin-top:8px;color:#172B4D;font-size:25px;letter-spacing:-.05em}.quality-source-note{margin:0;padding:16px 18px;color:#66758A;font-size:11px;line-height:1.55}.quality-reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#E3EBF0}.quality-reading-grid>div{min-height:104px;padding:17px;background:#fff}.quality-reading-grid span,.quality-reading-grid b{display:block}.quality-reading-grid span{color:#66758A;font-size:11px;line-height:1.4}.quality-reading-grid b{margin-top:11px;color:#172B4D;font-size:28px;letter-spacing:-.05em}.quality-reading-grid .corroborada b{color:#16834A}.quality-reading-grid .recuperada_pela_segunda_leitura b{color:#0878C9}.quality-reading-grid .divergente b{color:#BF3636}.quality-reading-grid .inconclusiva b{color:#A85B00}.quality-origin-list{display:grid}.quality-origin-list>div{display:grid;grid-template-columns:37px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 18px;border-top:1px solid #E5EDF2}.quality-origin-list>div:first-child{border-top:0}.quality-origin-list .preview-tile{width:34px;height:34px;font-size:10px}.quality-origin-list b{overflow:hidden;color:#243E57;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.quality-origin-list strong{color:#0878C9;font-size:17px;letter-spacing:-.04em}.quality-origin-list small{grid-column:2/-1;margin-top:-9px;color:#66758A;font-size:10px}.quality-empty{display:flex!important;align-items:center;gap:11px;min-height:116px;padding:18px 21px!important;background:#FBFDFF!important}.quality-empty>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#E7F2FB;color:#0878C9;font-weight:800}.quality-empty b,.quality-empty p{display:block}.quality-empty b{font-size:12px}.quality-empty p{margin:4px 0 0;color:#66758A;font-size:11px;line-height:1.45}.quality-footnote{margin:16px 0 0;color:#66758A;font-size:11px;line-height:1.5}
@media(max-width:1100px){.quality-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-layout,.quality-bottom-grid{grid-template-columns:1fr}.quality-sources{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.quality-sources>header{grid-column:1/-1}.quality-source-note{align-self:stretch}}@media(max-width:720px){.quality-hero{align-items:flex-start;flex-direction:column;padding:24px 21px}.quality-hero-state{min-width:0;width:100%}.quality-kpi-grid{grid-template-columns:1fr}.quality-priority-list>article{grid-template-columns:40px minmax(0,1fr)}.quality-priority-list a{grid-column:2;justify-self:start}.quality-panel>header{padding:18px}.quality-priority-list>article{padding:15px 18px}.quality-sources{display:block}.quality-reading-grid{grid-template-columns:1fr}.quality-origin-list>div{padding:13px 16px}}


/* Explicit lifecycle execution: compact, deliberate and readable. */
.retention-execute { margin-top: .65rem; max-width: 25rem; }
.retention-execute summary { cursor: pointer; color: var(--blue-700, #075fa6); font-weight: 700; }
.retention-execute p { margin: .6rem 0; color: var(--muted, #60708a); font-size: .84rem; line-height: 1.45; }
.retention-execute .form-stack { gap: .55rem; }


/* Work centre: a concise command view, not a second received-exams screen. */
.work-command-hero{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-bottom:17px;padding:29px 31px;border-radius:20px;background:radial-gradient(circle at 89% 18%,rgba(42,208,219,.35),transparent 27%),linear-gradient(112deg,#09294D,#08659A 62%,#1097BF);box-shadow:0 22px 48px rgba(5,51,91,.19);color:#f8fcff}.work-command-hero .eyebrow{color:#BEE8F5}.work-command-hero h2{margin:5px 0 8px;font-size:clamp(29px,3.5vw,43px);letter-spacing:-.055em;line-height:1.06}.work-command-hero p:not(.eyebrow){max-width:710px;margin:0;color:#D9F1F8;font-size:14px;line-height:1.55}.work-command-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.ghost-on-dark{border:1px solid rgba(228,250,255,.44)!important;background:rgba(255,255,255,.10)!important;color:#fff!important}.work-command-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:17px}.work-command-kpi{position:relative;display:block;min-width:0;min-height:137px;padding:18px 19px;border:1px solid #DCE7EE;border-radius:16px;background:#fff;box-shadow:0 10px 27px rgba(19,59,90,.07);overflow:hidden;text-decoration:none}.work-command-kpi:after{content:"";position:absolute;right:-28px;bottom:-38px;width:108px;height:108px;border-radius:50%;background:#E9F4FA}.work-command-kpi.good:after{background:#E7F7EF}.work-command-kpi.watch:after{background:#FFF1D9}.work-command-kpi.critical:after{background:#FDEAE7}.work-command-kpi span,.work-command-kpi small,.work-command-kpi strong{position:relative;z-index:1;display:block}.work-command-kpi span{color:#60728A;font-size:11px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.work-command-kpi strong{margin:9px 0 5px;color:#162C4E;font-size:37px;letter-spacing:-.06em;line-height:1}.work-command-kpi small{max-width:145px;color:#66758A;font-size:11px;line-height:1.38}.work-command-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(295px,.7fr);gap:17px;margin-bottom:17px}.work-command-layout.lower{grid-template-columns:minmax(0,1.48fr) minmax(290px,.72fr)}.work-command-panel{min-width:0;border:1px solid #DCE7EE;border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(19,59,90,.07);overflow:hidden}.work-command-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:21px 22px 16px;border-bottom:1px solid #E3EBF0}.work-command-panel .eyebrow{margin-bottom:5px;color:#0878C9}.work-command-panel h3{margin:0;color:#172B4D;font-size:21px;letter-spacing:-.035em}.work-command-panel header p:not(.eyebrow){margin:7px 0 0;color:#66758A;font-size:12px;line-height:1.5}.work-command-panel header>a,.work-command-delivery>a{color:#0878C9;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}.work-priority-list{display:grid}.work-priority{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;padding:16px 22px;border-top:1px solid #E5EDF2;text-decoration:none}.work-priority:first-child{border-top:0}.work-priority>strong{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#E8F4FA;color:#0878C9;font-size:16px}.work-priority.watch>strong{background:#FFF0D4;color:#A85B00}.work-priority.critical>strong{background:#FDE9E7;color:#BF3636}.work-priority b,.work-priority small{display:block}.work-priority b{margin-bottom:4px;color:#243E57;font-size:13px}.work-priority small{color:#66758A;font-size:11px;line-height:1.4}.work-priority em{color:#0878C9;font-size:11px;font-style:normal;font-weight:800;white-space:nowrap}.work-priority em i{margin-left:4px;font-size:16px;font-style:normal}.work-command-delivery{padding:22px;background:linear-gradient(155deg,#F9FDFF,#EAF7FB)}.work-command-delivery>p:not(.eyebrow){margin:10px 0 19px;color:#60728A;font-size:13px;line-height:1.55}.work-delivery-stat{display:flex;align-items:center;gap:12px;margin:0 0 19px;padding:13px;border:1px solid #D6E9F0;border-radius:13px;background:#fff}.work-delivery-stat strong{color:#0878C9;font-size:31px;letter-spacing:-.05em}.work-delivery-stat span{color:#506982;font-size:11px;line-height:1.42}.work-recent-list{display:grid}.work-recent-list>a{display:grid;grid-template-columns:38px minmax(0,1fr) minmax(144px,.45fr) 14px;align-items:center;gap:11px;padding:13px 18px;border-top:1px solid #E5EDF2;text-decoration:none}.work-recent-list>a:first-child{border-top:0}.work-recent-list .preview-tile{width:35px;height:35px;font-size:10px}.work-recent-list b,.work-recent-list small{display:block}.work-recent-list b{overflow:hidden;color:#243E57;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.work-recent-list small{overflow:hidden;margin-top:4px;color:#66758A;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.work-recent-meta{text-align:right}.work-recent-meta .confidence{display:inline-block;margin:0 0 3px}.work-recent-arrow{color:#0878C9;font-weight:800}.work-command-origins{padding:22px}.work-origin-list{display:grid;margin:17px -22px -22px}.work-origin-list>div{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 20px;border-top:1px solid #E5EDF2}.work-origin-list .preview-tile{width:34px;height:34px;font-size:10px}.work-origin-list b,.work-origin-list small{display:block}.work-origin-list b{overflow:hidden;color:#243E57;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.work-origin-list small{margin-top:3px;color:#66758A;font-size:10px}.work-origin-list strong{color:#0878C9;font-size:18px;letter-spacing:-.04em}@media(max-width:1180px){.work-command-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.work-command-layout,.work-command-layout.lower{grid-template-columns:1fr}.work-command-delivery{min-height:0}}@media(max-width:720px){.work-command-hero{align-items:flex-start;flex-direction:column;padding:24px 21px}.work-command-actions{justify-content:flex-start}.work-command-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.work-command-kpi:last-child{grid-column:1/-1}.work-command-panel>header{padding:18px}.work-priority{grid-template-columns:40px minmax(0,1fr);padding:15px 18px}.work-priority em{grid-column:2}.work-recent-list>a{grid-template-columns:36px minmax(0,1fr) 12px;padding:13px 16px}.work-recent-meta{display:none}.work-command-origins{padding:18px}.work-origin-list{margin:16px -18px -18px}}

/* Product typography: the authenticated application is an operational tool,
   never an editorial landing page.  The login uses the same scale. */
:root{--ui-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--ui-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
body,button,input,select,textarea{font-family:var(--ui-font)!important}
h1,h2,h3,h4,.brand b,.metric-grid b,.ops-kpi strong,.ops-panel h3,.ops-activity-grid b,.ops-lifecycle strong,.ops-lifecycle h3{font-family:var(--ui-font)!important;font-weight:750!important;letter-spacing:-.035em!important}
.crumb,.eyebrow,nav p,.mode-pill,.table-head,.table-heading,.ops-kpi>small,.ops-kpi-icon{font-family:var(--ui-mono)!important;letter-spacing:.07em!important}
.work-command-hero h2,.work-command-panel h3,.quality-hero h2,.quality-panel h3{font-family:var(--ui-font)!important;font-weight:750!important}
.product-login-page,.product-login{min-height:100vh}
.login-product{padding:clamp(32px,5vw,64px)}
.login-product-copy{max-width:560px;margin-top:clamp(34px,6vh,66px)}
.login-product h1{font-family:var(--ui-font)!important;font-size:clamp(35px,4vw,54px);font-weight:750;letter-spacing:-.055em}
.login-flow{max-width:520px;margin-top:clamp(22px,3.5vh,38px)}
.login-flow img{width:100%;max-height:250px;object-fit:contain;object-position:left center}
.login-flow figcaption{max-width:500px;margin-left:28px;font-family:var(--ui-font)!important}
@media(max-width:980px){.login-flow{max-width:440px}.login-flow img{max-height:210px}}

/* Compact explanation on access screen; avoids oversized decorative destination icons. */
.login-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:580px}
.login-steps>div{min-height:118px;padding:14px;border:1px solid #D8E9F0;border-radius:13px;background:rgba(255,255,255,.68)}
.login-steps span{display:grid;place-items:center;width:25px;height:25px;margin-bottom:12px;border-radius:8px;background:#E6F5F9;color:#0878C9;font-size:11px;font-weight:800}
.login-steps b,.login-steps small{display:block}.login-steps b{color:#17395F;font-size:13px}.login-steps small{margin-top:5px;color:#60758A;font-size:11px;line-height:1.42}
@media(max-width:720px){.login-steps{grid-template-columns:1fr}.login-steps>div{min-height:0}.login-steps span{float:left;margin:0 10px 0 0}.login-steps small{margin-left:35px}}


/* Login, second iteration: clinical context stays atmospheric; access remains the focus. */
.product-login-page{background:#edf4f7;color:#162f51}
.product-login{position:relative;grid-template-columns:minmax(0,1.28fr) minmax(390px,.72fr);overflow:hidden;background:#f7fbfd}
.login-product{isolation:isolate;padding:clamp(42px,6vw,88px);background:linear-gradient(115deg,rgba(247,252,254,.98) 0%,rgba(243,250,253,.94) 44%,rgba(232,246,250,.73) 100%)}
.login-scene-image{position:absolute;z-index:-2;inset:0;background:linear-gradient(104deg,rgba(249,253,254,.98) 4%,rgba(246,252,254,.91) 38%,rgba(237,249,252,.53) 70%,rgba(223,242,247,.35)),url("/static/branding/reta-login-imaging.jpg") center right/cover no-repeat;filter:saturate(.72) contrast(.94)}
.login-product:before{z-index:-1;width:64vw;height:64vw;right:-38vw;bottom:-43vw;border-color:rgba(8,120,201,.14)}
.login-product:after{z-index:-1;width:47vw;height:47vw;right:-28vw;bottom:-31vw;border-color:rgba(16,184,165,.16)}
.login-brand{gap:13px}
.login-brand img{width:45px;height:45px}
.login-brand b{font-size:23px;font-weight:780;letter-spacing:-.055em}
.login-brand small{margin-top:4px;color:#557188;font-size:9px;letter-spacing:.13em}
.login-product-copy{max-width:605px;margin-top:clamp(54px,10vh,126px)}
.login-kicker{color:#0878c9;font-size:10px;letter-spacing:.14em}
.login-product h1{max-width:590px;font-size:clamp(41px,4.65vw,66px);font-weight:760;letter-spacing:-.07em;line-height:1.01}
.login-product-copy>p:last-child{max-width:545px;margin-top:22px;color:#45647a;font-size:clamp(15px,1.22vw,18px);line-height:1.67}
.login-access{position:relative;padding:clamp(28px,4vw,64px);border-left:1px solid rgba(215,229,235,.82);background:linear-gradient(180deg,rgba(255,255,255,.91),rgba(249,253,254,.95))}
.login-access:before{content:"";position:absolute;inset:0 0 0 -1px;background:linear-gradient(115deg,rgba(255,255,255,.2),rgba(255,255,255,.88) 45%);pointer-events:none}
.login-access-card{position:relative;width:min(100%,420px);border-color:rgba(215,227,234,.95);border-radius:18px;background:rgba(255,255,255,.95);box-shadow:0 24px 70px rgba(15,52,79,.13);backdrop-filter:blur(10px)}
.login-access-card h2{font-size:30px;font-weight:760}
.login-form label{font-size:12px}
.login-form input{min-height:50px;border-radius:9px}
.login-submit{border-radius:9px}
@media(max-width:850px){
  .product-login{display:block;min-height:100vh}
  .login-product{min-height:unset;padding:28px 24px 22px;background:linear-gradient(105deg,rgba(248,252,254,.97),rgba(238,248,251,.85))}
  .login-scene-image{background:linear-gradient(90deg,rgba(248,252,254,.97),rgba(238,248,251,.75)),url("/static/branding/reta-login-imaging.jpg") 63% center/cover no-repeat;opacity:.52}
  .login-product-copy{margin-top:30px}
  .login-product h1{max-width:485px;font-size:38px}
  .login-product-copy>p:last-child{max-width:510px;font-size:14px}
  .login-access{padding:22px 24px 34px;border:0;background:rgba(255,255,255,.72)}
}
@media(max-width:460px){
  .login-product,.login-access{padding-left:20px;padding-right:20px}
  .login-brand img{width:40px;height:40px}
  .login-brand b{font-size:21px}
  .login-product h1{font-size:32px}
  .login-product-copy>p:last-child{font-size:14px;line-height:1.55}
  .login-access-card{padding:24px 20px}
}


/* Política de leitura: escolhas agrupadas, com controles alinhados e sem ambiguidade de repetição. */
.reading-policy-form{display:grid;gap:22px;padding:24px}
.reading-policy-explanation{padding:15px 17px;border:1px solid #b9d8ea;border-radius:14px;background:#f4f9fd;color:#334d66}
.reading-policy-explanation strong{display:block;margin-bottom:5px;color:#014a7d;font-size:13px}
.reading-policy-explanation p{margin:0;font-size:13px;line-height:1.55}
.reading-policy-limit{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.5fr);gap:24px;align-items:start;padding:20px;border:1px solid var(--line);border-radius:16px;background:#f8fbfd}
.reading-policy-limit .eyebrow,.reading-policy-choices .eyebrow{margin:0 0 6px}
.reading-policy-limit h4,.reading-policy-choices h4{margin:0;color:var(--ink);font-size:18px}
.reading-policy-limit p:not(.eyebrow),.reading-policy-choices header>p:not(.eyebrow){margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.5}
.reading-policy-number{display:grid;gap:7px;color:var(--ink);font-size:13px;font-weight:800}
.reading-policy-number input{width:100%;min-height:46px}
.reading-policy-number small{display:block;color:var(--muted);font-weight:500;font-size:12px;line-height:1.5}
.reading-policy-number small b{color:#014a7d}
.reading-policy-choices{padding-top:2px}
.reading-policy-choices header{margin-bottom:13px}
.reading-policy-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.reading-policy-option{display:flex!important;align-items:flex-start!important;gap:12px!important;min-height:98px;padding:16px!important;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink)!important;cursor:pointer}
.reading-policy-option:hover{border-color:#77b9dc;background:#f7fcff}
.reading-policy-option input[type="checkbox"]{display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-height:20px!important;margin:2px 0 0!important;padding:0!important;accent-color:#0c5fa5}
.reading-policy-option span{display:grid;gap:5px;min-width:0}
.reading-policy-option b{font-size:14px;line-height:1.35}
.reading-policy-option small{color:var(--muted);font-size:12px;font-weight:500;line-height:1.45}
.reading-policy-save{display:flex;align-items:center;gap:16px;padding-top:2px}
.reading-policy-save .button{min-width:280px;justify-content:center}
.reading-policy-save small{color:var(--muted);font-size:12px;line-height:1.45}
@media(max-width:760px){
  .reading-policy-form{padding:18px}
  .reading-policy-limit,.reading-policy-options-grid{grid-template-columns:1fr}
  .reading-policy-limit{gap:18px;padding:17px}
  .reading-policy-option{min-height:0}
  .reading-policy-save{align-items:stretch;flex-direction:column}
  .reading-policy-save .button{width:100%;min-width:0}
}


/* Navegação móvel: nunca ocupa uma coluna lateral nem desloca o conteúdo. */
@media(max-width:900px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .app-shell{display:block!important;width:100%!important;min-width:0!important}
  .side-nav{position:static!important;width:100%!important;min-width:0!important;height:auto!important;padding:14px!important;display:block!important}
  .side-nav .brand{padding:0 4px 12px!important}
  .side-nav .unit-switch{margin:0 0 12px!important}
  .side-nav nav{display:flex!important;max-width:100%!important;overflow-x:auto!important;gap:4px!important;padding:0 0 2px!important;scrollbar-width:thin}
  .side-nav nav p,.side-nav .nav-foot{display:none!important}
  .side-nav nav a{display:flex!important;flex:0 0 auto!important;white-space:nowrap!important;margin:0!important;padding:9px 10px!important}
  .workspace{width:100%!important;min-width:0!important;margin:0!important;padding:20px 16px 42px!important}
}
@media(max-width:500px){
  .side-nav{padding:12px!important}
  .side-nav .brand{padding-bottom:10px!important}
  .side-nav .unit-switch{padding:9px!important}
  .side-nav nav a{font-size:12px!important}
  .workspace{padding:18px 12px 36px!important}
}

/* Print-profile editor: human variables, existing branding and an honest output preview. */
.profile-editor{display:grid;gap:18px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-editor fieldset{margin:0;padding:18px;border:1px solid var(--line);border-radius:14px}.profile-editor legend{padding:0 6px;color:#17395f;font-size:13px;font-weight:800}.current-logo{display:flex;align-items:center;gap:14px;padding:12px;margin-bottom:12px;border:1px solid #d8e7ee;border-radius:11px;background:#f9fcfd}.current-logo img{width:96px;height:48px;object-fit:contain;object-position:left center}.current-logo b,.current-logo small{display:block}.current-logo small{margin-top:4px;color:var(--muted);font-size:12px}.token-editor{display:grid;gap:10px}.field-help{margin:0;color:var(--muted);font-size:12px}.token-chips{display:flex;flex-wrap:wrap;gap:7px}.token-chips button{padding:7px 9px;border:1px solid #b9d8ea;border-radius:999px;background:#f7fcff;color:#075c95;font-size:11px;font-weight:750;cursor:pointer}.token-chips button:hover{background:#e4f3fb}.profile-live-preview{padding:18px;border:1px solid #d8e6ed;border-radius:14px;background:#f5fafc}.profile-live-preview header{display:grid;gap:4px;margin-bottom:12px}.profile-live-preview header small{color:var(--muted);font-size:12px}.profile-preview-sheet{max-width:560px;margin:auto;overflow:hidden;border:1px solid #c8d9e3;border-radius:8px;background:#fff;box-shadow:0 10px 24px rgba(17,54,79,.1)}.preview-band,.preview-footer{display:flex;justify-content:space-between;gap:10px;padding:11px 15px;color:#17395f;font-size:10px;font-weight:750}.preview-band{background:#f9fcfd;border-bottom:1px solid #dce8ee}.preview-clinical{display:grid;place-items:center;min-height:210px;background:linear-gradient(135deg,#122934,#324c5b);color:#b8ccd5;font-size:13px}.preview-footer{color:#60758a;font-weight:600}@media(max-width:650px){.form-two{grid-template-columns:1fr}.preview-band,.preview-footer{display:grid}.current-logo{align-items:flex-start;flex-direction:column}}


/* Fila e revisão: modalidade recebida e exame clínico são contextos distintos. */
.queue-document{display:grid!important;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center}
.queue-document .preview-tile{background:linear-gradient(135deg,#214d78,#198bb7);font-size:10px}
.queue-document small b{color:#35566e;font-size:10px;text-transform:uppercase;letter-spacing:.04em}
.pagination-bar{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px!important}
.pagination-bar>div{display:grid;gap:3px}
.pagination-bar>div b{font-size:13px}
.pagination-bar>div small{color:var(--muted);font-size:11px}
.pagination-controls{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.pagination-controls .per-page{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:700}
.pagination-controls select{min-height:36px;padding:6px 8px;font-size:12px}
.pagination-state{min-width:92px;color:var(--muted);font-size:11px;text-align:center}
.pagination-controls button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #b9d3e3;border-radius:8px;background:#fff;color:#014a7d;font-size:20px;font-weight:800;line-height:1;cursor:pointer}
.pagination-controls button:hover:not(:disabled){background:#e7f2fb}
.pagination-controls button:disabled{border-color:#e0e5e8;background:#f6f7f8;color:#a8b2ba;cursor:not-allowed}
.document-reading-summary{margin-bottom:16px}
.reading-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
.reading-summary-grid>div{min-width:0;padding:14px 15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.reading-summary-grid>div:nth-child(3n){border-right:0}
.reading-summary-grid small,.reading-summary-grid b{display:block}
.reading-summary-grid small{margin-bottom:5px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.reading-summary-grid b{overflow-wrap:anywhere;font-size:13px;line-height:1.35}
.candidate-comparison,.match-list,.difference-list{display:block;margin-top:5px;font-size:10px;line-height:1.4}
.candidate-comparison{color:var(--muted)}
.match-list{color:#16834a;font-weight:700}
.difference-list{color:#bf3636;font-weight:700}
.candidate-state{display:inline-block;margin:0 0 6px;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:800}
.candidate-state.compatível{background:#eaf8ef;color:#16834a}
.candidate-state.divergente{background:#fdecec;color:#bf3636}
.candidate-state.insuficiente{background:#fff4db;color:#a85b00}
.candidate-row.candidate-divergente td{background:#fffafa}
.candidate-blocked{display:block;max-width:148px;color:#a33131;font-size:10px;font-weight:700;line-height:1.4}
.worklist-table .confidence{display:block;margin-top:0}
@media(max-width:760px){
  .pagination-bar{align-items:stretch;flex-direction:column}
  .pagination-controls{justify-content:flex-start}
  .pagination-state{min-width:0;text-align:left}
  .reading-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reading-summary-grid>div:nth-child(3n){border-right:1px solid var(--line)}
  .reading-summary-grid>div:nth-child(2n){border-right:0}
}

.exam-context{display:flex;flex-wrap:wrap;gap:7px 15px!important}
.exam-context span{color:var(--muted)}
.exam-context b{color:#35566e;font-size:11px;text-transform:uppercase;letter-spacing:.04em}


/* Provenance is visual, not merely textual: agenda data never impersonates document reading. */
.queue-identity .candidate-name,.agenda-name{color:#76511c}
.agenda-candidate{display:block;margin-top:.32rem;color:#76511c;font-size:.78rem}
.agenda-candidate-notice{border-color:#ecd69a;background:#fffaf0}


/* Saúde operacional: mesma linguagem visual da fila e da central, com capacidade completa. */
.health-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.health-state{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #b9d8ea;border-radius:999px;background:#f2f8fd;color:#0878c9;font-size:12px;font-weight:800;white-space:nowrap}
.health-state.watch{border-color:#f0d9a7;background:#fff9ed;color:#946100}.health-state i{width:8px;height:8px;border-radius:50%;background:currentColor}
.health-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:16px}
.health-kpi{position:relative;min-height:185px;padding:19px!important;overflow:hidden}
.health-kpi:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:#0878c9}.health-kpi.watch:before{background:#d99318}.health-kpi.critical:before{background:#c54a4a}
.health-kpi header{display:flex;justify-content:space-between;gap:8px;align-items:center}.health-kpi header span{color:#536c84;font-family:var(--ui-mono);font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.health-kpi header em{padding:4px 7px;border-radius:999px;background:#e7f2fb;color:#0878c9;font-size:10px;font-style:normal;font-weight:800}.health-kpi.watch header em{background:#fff3dc;color:#946100}.health-kpi.critical header em{background:#feebeb;color:#af3434}
.health-kpi strong{display:block;margin:21px 0 8px;color:#172b4d;font-size:31px;letter-spacing:-.055em}.health-kpi strong i{font-size:13px;font-style:normal;font-weight:700;letter-spacing:-.01em}.health-kpi p{min-height:32px;margin:0;color:#66758a;font-size:11px;line-height:1.45}.health-kpi p b{color:#38536c}
.health-meter{height:7px;margin-top:16px;overflow:hidden;border-radius:999px;background:#e8eef2}.health-meter i{display:block;height:100%;border-radius:inherit;background:#0878c9}.health-kpi.watch .health-meter i{background:#d99318}.health-kpi.critical .health-meter i{background:#c54a4a}
.health-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.7fr);gap:15px;margin-bottom:15px}.health-panel{min-width:0;margin-bottom:15px;padding:0!important;overflow:hidden}.health-panel>header{padding:20px 21px 15px;border-bottom:1px solid var(--line)}.health-panel .eyebrow{margin:0 0 6px;color:#0878c9}.health-panel h3{margin:0;color:#172b4d;font-size:20px}.health-panel header small{display:block;margin-top:7px;color:#66758a;font-size:12px;line-height:1.45}
.health-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#e3ebf0;gap:1px}.health-activity-grid>div{min-height:125px;padding:18px;background:#fff}.health-activity-grid span,.health-activity-grid b,.health-activity-grid small{display:block}.health-activity-grid span{color:#66758a;font-size:11px}.health-activity-grid b{margin:13px 0 6px;color:#172b4d;font-size:29px;letter-spacing:-.05em}.health-activity-grid b i{font-size:13px;font-style:normal}.health-activity-grid small{color:#66758a;font-size:11px;line-height:1.4}
.health-lifecycle{padding:21px!important;background:linear-gradient(155deg,#f9fdff,#edf7fb)}.health-lifecycle h3{margin:12px 0 2px;color:#0878c9;font-size:38px;letter-spacing:-.06em}.health-lifecycle>b{color:#38536c;font-size:12px}.health-lifecycle>p:not(.eyebrow){margin:15px 0;color:#60728a;font-size:12px;line-height:1.5}.health-lifecycle .button{margin-top:2px}
.health-insight-list{display:grid}.health-insight-list>div{display:flex;align-items:flex-start;gap:11px;padding:15px 20px;border-top:1px solid var(--line)}.health-insight-list>div:first-child{border-top:0}.health-insight-list span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;background:#fff1dc;color:#a96200;font-size:14px;font-weight:900}.health-insight-list .clear span{background:#e7f2fb;color:#0878c9}.health-insight-list p{margin:3px 0 0;color:#456179;font-size:12px;line-height:1.5}
@media(max-width:1080px){.health-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.health-layout{grid-template-columns:1fr}.health-lifecycle{margin-bottom:0!important}}@media(max-width:700px){.health-intro{align-items:flex-start;flex-direction:column}.health-kpi-grid,.health-activity-grid{grid-template-columns:1fr}.health-kpi{min-height:0}.health-panel>header,.health-insight-list>div{padding-left:17px;padding-right:17px}}


/* Revisão de divergência: prova lado a lado, sem sugerir que candidato seja identificação. */
.evidence-comparison{margin-bottom:16px}.evidence-comparison-list{display:grid;gap:10px;padding:16px 18px}.evidence-comparison-item{border:1px solid #f1cccc;border-radius:13px;background:#fffafa;overflow:hidden}.evidence-comparison-item>header{display:flex;align-items:center;gap:9px;padding:12px 14px;border-bottom:1px solid #f4dada}.evidence-comparison-item>header b{color:#5d3030;font-size:13px}.evidence-pairs{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#f0dcdc}.evidence-pairs>div{display:grid;gap:4px;padding:13px 14px;background:#fff}.evidence-pairs small{color:#69798a;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.evidence-pairs b{color:#273e56;font-size:12px}.evidence-pairs span{color:#66758a;font-size:11px;line-height:1.4}.evidence-comparison-item>p{margin:0;padding:11px 14px;color:#813a3a;font-size:11px;line-height:1.45}.evidence-empty{display:flex;align-items:center;gap:10px;padding:4px}.evidence-empty span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#e7f2fb;color:#0878c9;font-weight:900}.evidence-empty p{margin:0;color:#61748a;font-size:12px;line-height:1.45}@media(max-width:680px){.evidence-pairs{grid-template-columns:1fr}.evidence-comparison-list{padding:13px}}

/* Product identity: a fluid access surface and a compact mark shared with the authenticated navigation. */
.product-login-page{background:#eff6f9;color:#102d50}
.product-login{position:relative;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(420px,.7fr);width:100%;min-height:100vh;overflow:hidden;background:#f7fbfd}
.login-product{isolation:isolate;min-height:100vh;padding:clamp(48px,6vw,96px);background:linear-gradient(98deg,rgba(247,252,254,.98) 0%,rgba(246,252,254,.89) 42%,rgba(241,250,253,.5) 72%,rgba(238,248,251,.08) 100%)}
.login-scene-image{z-index:-2;background:linear-gradient(90deg,rgba(247,252,254,.98) 0%,rgba(247,252,254,.82) 38%,rgba(242,250,253,.36) 67%,rgba(231,244,249,.18) 100%),url("/static/branding/reta-login-imaging.jpg") 68% center/cover no-repeat;filter:saturate(.72) contrast(.96)}
.login-product:before{z-index:-1;width:56vw;height:56vw;right:-31vw;bottom:-35vw;border-color:rgba(25,151,201,.16)}
.login-product:after{z-index:-1;width:42vw;height:42vw;right:-23vw;bottom:-26vw;border-color:rgba(84,212,174,.16)}
.login-brand{gap:14px;align-items:center}.login-brand img{width:58px;height:58px;flex:none;object-fit:contain}.login-brand b{font-size:25px;font-weight:800;letter-spacing:-.055em;line-height:1}.login-brand small{margin-top:6px;color:#527087;font-size:9px;letter-spacing:.16em}
.login-product-copy{max-width:560px;margin-top:clamp(58px,11vh,132px)}.login-kicker{margin-bottom:13px;color:#0878c9;font-size:10px;letter-spacing:.16em}.login-product h1{max-width:560px;font-size:clamp(40px,4.15vw,63px);line-height:1.02;letter-spacing:-.068em}.login-product-copy>p:last-child{max-width:515px;margin-top:21px;color:#43637a;font-size:16px;line-height:1.65}
.login-access{position:relative;z-index:0;display:grid;place-items:center;padding:clamp(32px,5vw,80px);background:linear-gradient(105deg,rgba(250,253,254,.62) 0%,rgba(255,255,255,.94) 30%,#fff 100%)}.login-access:before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:-110px;width:180px;background:linear-gradient(90deg,rgba(240,249,252,0),rgba(255,255,255,.92));filter:blur(12px)}.login-access-card{width:min(100%,430px);padding:clamp(30px,3.2vw,44px);border:1px solid rgba(186,211,225,.72);border-radius:22px;background:rgba(255,255,255,.86);box-shadow:0 24px 55px rgba(26,67,96,.13);backdrop-filter:blur(12px)}.login-access-card h2{font-size:27px;letter-spacing:-.045em}.login-access-card>p:not(.login-kicker):not(.login-help){font-size:13px;line-height:1.55}
.login-form{gap:10px}.login-form label{margin-top:9px;font-size:12px}.login-form input{min-height:50px;border-radius:11px}.login-submit{min-height:52px;margin-top:18px;border-radius:11px}.login-help{margin-top:22px}
.side-nav .brand{gap:12px;padding:2px 5px 22px}.side-nav .brand-mark{width:42px;height:42px;flex:none;border:0;border-radius:0;background:transparent!important;object-fit:contain}.side-nav .brand b{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:18px;font-weight:800;letter-spacing:-.055em;line-height:1.05}.side-nav .brand small{margin-top:4px;font-size:9px;letter-spacing:.12em}
@media(max-width:960px){.product-login{grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr)}.login-product{padding:48px}.login-access{padding:34px}.login-product-copy{margin-top:70px}}
@media(max-width:780px){.product-login{display:block}.login-product{min-height:unset;padding:30px 26px 28px;background:linear-gradient(95deg,rgba(247,252,254,.98),rgba(239,248,251,.72))}.login-scene-image{background:linear-gradient(90deg,rgba(247,252,254,.98),rgba(239,248,251,.58)),url("/static/branding/reta-login-imaging.jpg") 70% center/cover no-repeat;opacity:.72}.login-product-copy{max-width:520px;margin-top:38px}.login-product h1{font-size:40px}.login-product-copy>p:last-child{max-width:490px;font-size:15px}.login-access{display:block;padding:0 26px 34px;background:linear-gradient(180deg,rgba(239,248,251,.72),#fff 30%)}.login-access:before{display:none}.login-access-card{width:100%;max-width:520px;margin:0 auto;padding:30px}}
@media(max-width:480px){.login-product{padding:25px 20px 24px}.login-brand img{width:50px;height:50px}.login-brand b{font-size:23px}.login-product-copy{margin-top:32px}.login-product h1{font-size:34px}.login-product-copy>p:last-child{font-size:14px;line-height:1.57}.login-access{padding:0 20px 28px}.login-access-card{padding:26px 21px;border-radius:18px}.login-access-card h2{font-size:24px}}


/* Print profile studio: configuration and real compositor preview side by side. */
.profile-studio{
  display:grid;
  grid-template-columns:minmax(360px,.92fr) minmax(430px,1.08fr);
  gap:22px;
  align-items:start;
  margin-top:22px;
}
.profile-studio-form{
  display:grid;
  gap:16px;
  padding:0;
  overflow:hidden;
}
.profile-studio-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  padding:24px 24px 18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fbfdff 0%,#f7fbfd 100%);
}
.profile-studio-head h3{margin:2px 0 5px;font-size:22px}
.profile-studio-head p:last-child{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.profile-close{font-size:12px;font-weight:800;color:#0b5f98;text-decoration:none}
.profile-close:hover{text-decoration:underline}
.profile-section-nav{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding:0 24px;
}
.profile-section-nav button{
  border:1px solid #c9dbe7;
  background:#f8fbfd;
  color:#315a73;
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.profile-section-nav button:hover{background:#eaf4fa;color:#064e80}
.profile-card{
  display:grid;
  gap:14px;
  margin:0 24px;
  padding:18px;
  border:1px solid #dce7ee;
  border-radius:16px;
  background:#fff;
  scroll-margin-top:18px;
}
.profile-card-title{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:11px;
  align-items:start;
  padding-bottom:4px;
}
.profile-card-title>span{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#eaf4fa;
  color:#075d94;
  font-size:12px;
  font-weight:900;
}
.profile-card-title h4{margin:1px 0 3px;font-size:15px}
.profile-card-title p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.profile-small-field{max-width:180px}
.profile-context-note{
  display:grid;
  gap:3px;
  padding:12px 13px;
  border:1px solid #cfe1ee;
  border-radius:12px;
  background:#f3f9fc;
  color:#30576f;
}
.profile-context-note b{font-size:12px}
.profile-context-note span{font-size:11px;line-height:1.45}
.profile-logo-current{
  display:grid;
  grid-template-columns:118px 1fr;
  gap:14px;
  align-items:center;
  padding:13px;
  border:1px solid #dbe7ee;
  border-radius:13px;
  background:#f9fcfd;
}
.profile-logo-frame{
  display:grid;
  place-items:center;
  height:72px;
  padding:8px;
  border-radius:10px;
  background:#fff;
  border:1px solid #e2eaf0;
}
.profile-logo-frame img{
  display:block;
  max-width:100%;
  max-height:56px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.profile-logo-current b,.profile-logo-current small{display:block}
.profile-logo-current small{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.4}
.profile-empty-brand{
  display:grid;
  gap:3px;
  padding:15px;
  border:1px dashed #cbdce7;
  border-radius:12px;
  background:#fafcfd;
}
.profile-empty-brand span{font-weight:800;color:#496b80}
.profile-empty-brand small{color:var(--muted)}
.profile-file-control{display:grid;gap:7px}
.profile-file-control>span{font-weight:800;font-size:12px;color:#3e596c}
.profile-file-control small{font-weight:500;color:var(--muted);line-height:1.45}
.profile-remove-logo{color:#9a3b3b}
.profile-text-block{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid #e2e9ee;
  border-radius:12px;
  background:#fbfcfd;
}
.profile-toggle-line{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.profile-toggle-line b,.profile-toggle-line small{display:block}
.profile-toggle-line b{font-size:12px;color:#314f62}
.profile-toggle-line small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.switch-line{
  display:flex!important;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  font-size:11px!important;
  color:#466779!important;
}
.profile-token-box{
  display:grid;
  gap:8px;
  padding-top:2px;
}
.profile-token-box>span{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#648093;
}
.profile-token-box>small{color:var(--muted);font-size:10px}
.profile-filename-example{
  display:grid;
  gap:4px;
  padding:12px 13px;
  border-radius:11px;
  background:#f2f7fa;
  border:1px solid #dce8ee;
}
.profile-filename-example small{color:var(--muted)}
.profile-filename-example b{
  overflow-wrap:anywhere;
  font-size:12px;
  color:#234f6d;
}
.profile-savebar{
  position:sticky;
  bottom:0;
  z-index:3;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:15px 24px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
}
.profile-savebar b,.profile-savebar small{display:block}
.profile-savebar b{font-size:12px}
.profile-savebar small{margin-top:2px;color:var(--muted);font-size:10px}

.profile-studio-preview{
  position:sticky;
  top:18px;
  padding:20px;
  overflow:hidden;
}
.profile-preview-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:16px;
}
.profile-preview-head h3{margin:2px 0 0;font-size:20px}
.profile-preview-badge{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  background:#eaf8ef;
  color:#187043;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
.profile-preview-stage{
  position:relative;
  display:grid;
  place-items:center;
  min-height:520px;
  padding:22px;
  border:1px solid #d6e2e9;
  border-radius:16px;
  background:
    linear-gradient(45deg,#eef3f6 25%,transparent 25%),
    linear-gradient(-45deg,#eef3f6 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#eef3f6 75%),
    linear-gradient(-45deg,transparent 75%,#eef3f6 75%),
    #f7fafc;
  background-size:24px 24px;
  background-position:0 0,0 12px,12px -12px,-12px 0;
}
.profile-preview-stage img{
  display:block;
  max-width:100%;
  max-height:72vh;
  width:auto;
  height:auto;
  border-radius:4px;
  box-shadow:0 18px 46px rgba(22,53,73,.18);
  background:#fff;
}
.profile-preview-stage.is-loading img{opacity:.38}
.profile-preview-loading{
  position:absolute;
  inset:0;
  z-index:2;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:10px;
  color:#466779;
}
.profile-preview-loading[hidden]{display:none}
.profile-preview-loading span{
  width:30px;
  height:30px;
  border:3px solid #d4e3ec;
  border-top-color:#0b6fa4;
  border-radius:50%;
  animation:profile-spin .8s linear infinite;
}
@keyframes profile-spin{to{transform:rotate(360deg)}}
.profile-preview-meta{
  display:grid;
  grid-template-columns:.8fr 1fr 1.35fr;
  gap:0;
  margin-top:14px;
  border:1px solid #dbe6ed;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.profile-preview-meta>div{
  min-width:0;
  padding:10px 12px;
  border-right:1px solid #e1e9ee;
}
.profile-preview-meta>div:last-child{border-right:0}
.profile-preview-meta small,.profile-preview-meta b{display:block}
.profile-preview-meta small{
  margin-bottom:3px;
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.profile-preview-meta b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:#294e65;
}
.profile-preview-status{
  margin:10px 2px 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

@media(max-width:1080px){
  .profile-studio{grid-template-columns:minmax(320px,.95fr) minmax(360px,1.05fr)}
  .profile-preview-stage{min-height:440px;padding:16px}
}
@media(max-width:860px){
  .profile-studio{grid-template-columns:1fr}
  .profile-studio-preview{position:static;order:-1}
  .profile-preview-stage{min-height:360px}
}
@media(max-width:620px){
  .profile-studio-head{padding:20px 16px 15px}
  .profile-section-nav{padding:0 16px}
  .profile-card{margin:0 16px;padding:15px}
  .profile-logo-current{grid-template-columns:1fr}
  .profile-logo-frame{justify-items:start}
  .profile-savebar{padding:13px 16px;align-items:stretch;flex-direction:column}
  .profile-preview-head{flex-direction:column}
  .profile-preview-meta{grid-template-columns:1fr}
  .profile-preview-meta>div{border-right:0;border-bottom:1px solid #e1e9ee}
  .profile-preview-meta>div:last-child{border-bottom:0}
  .profile-preview-stage{min-height:300px;padding:12px}
}


/* Login refinement 2026-09-22: one continuous surface, wide image fade, undistorted product mark. */
.product-login-page{
  background:#fbfdfe;
}
.product-login{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(104deg,#f7fbfd 0%,#f9fcfd 57%,#fff 100%);
}
.product-login::before{
  content:"";
  position:absolute;
  z-index:-3;
  inset:0 auto 0 0;
  width:78%;
  background:url("/static/branding/reta-login-imaging.jpg") 56% center/cover no-repeat;
  filter:saturate(.79) contrast(.96);
  opacity:.90;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 55%,rgba(0,0,0,.94) 67%,rgba(0,0,0,.72) 78%,rgba(0,0,0,.34) 89%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0%,#000 55%,rgba(0,0,0,.94) 67%,rgba(0,0,0,.72) 78%,rgba(0,0,0,.34) 89%,transparent 100%);
}
.product-login::after{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(247,251,253,.94) 0%,
      rgba(247,251,253,.78) 22%,
      rgba(247,251,253,.38) 46%,
      rgba(249,252,253,.46) 60%,
      rgba(252,254,255,.76) 74%,
      rgba(255,255,255,.96) 89%,
      #fff 100%),
    radial-gradient(circle at 18% 22%,rgba(31,155,204,.12),transparent 36%);
}
.login-product{
  isolation:auto;
  background:transparent;
  overflow:visible;
}
.login-scene-image{
  display:none;
}
.login-product:before,
.login-product:after{
  opacity:.34;
}
.login-brand{
  gap:15px;
}
.login-brand img{
  width:58px;
  height:auto;
  max-width:58px;
  max-height:58px;
  object-fit:contain;
  flex:0 0 auto;
}
.login-brand b{
  font-size:26px;
}
.login-brand small{
  margin-top:5px;
  color:#647b8e;
  font-size:10px;
  letter-spacing:.12em;
}
.login-access{
  position:relative;
  z-index:1;
  border-left:0;
  background:transparent;
}
.login-access:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-8% 0 -8% -34%;
  pointer-events:none;
  background:linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.28) 28%,
    rgba(255,255,255,.66) 56%,
    rgba(255,255,255,.93) 78%,
    #fff 100%);
}
.login-access-card{
  border-color:rgba(220,231,237,.72);
  background:rgba(255,255,255,.78);
  box-shadow:0 18px 52px rgba(24,61,84,.08);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
@media(max-width:1120px){
  .product-login::before{width:84%;background-position:60% center}
  .login-access:before{inset:-8% 0 -8% -42%}
}
@media(max-width:850px){
  .product-login{
    background:linear-gradient(180deg,#f6fbfd 0%,#f9fcfd 42%,#fff 68%,#fff 100%);
  }
  .product-login::before{
    inset:0 0 auto 0;
    width:100%;
    height:56%;
    background-position:62% center;
    opacity:.76;
    -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 42%,rgba(0,0,0,.78) 58%,rgba(0,0,0,.32) 76%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0%,#000 42%,rgba(0,0,0,.78) 58%,rgba(0,0,0,.32) 76%,transparent 100%);
  }
  .product-login::after{
    background:linear-gradient(180deg,
      rgba(247,251,253,.92) 0%,
      rgba(247,251,253,.66) 25%,
      rgba(249,252,253,.7) 44%,
      rgba(253,254,255,.94) 60%,
      #fff 74%,
      #fff 100%);
  }
  .login-access:before{display:none}
  .login-access{background:transparent}
  .login-access-card{
    background:rgba(255,255,255,.86);
    box-shadow:0 16px 42px rgba(24,61,84,.07);
  }
  .login-brand img{
    width:48px;
    max-width:48px;
    max-height:48px;
    height:auto;
  }
  .login-brand b{font-size:23px}
}
@media(max-width:460px){
  .product-login::before{height:52%;background-position:66% center}
  .login-brand img{
    width:42px;
    max-width:42px;
    max-height:42px;
    height:auto;
  }
  .login-brand b{font-size:22px}
  .login-access-card{
    border-color:rgba(220,231,237,.6);
    box-shadow:0 12px 34px rgba(24,61,84,.06);
  }
}


/* Operational service control center */
.service-control-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:18px}
.service-control-card{border:1px solid var(--line,#dbe3e8);border-radius:18px;padding:18px;background:var(--surface,#fff);display:grid;gap:14px}
.service-control-card.running{box-shadow:inset 4px 0 0 #2b9a70}
.service-control-card.stopped{box-shadow:inset 4px 0 0 #d39b2a}
.service-control-card.unknown{box-shadow:inset 4px 0 0 #8c98a4}
.service-control-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.service-control-head>div{display:grid;gap:4px}
.service-control-head small,.service-control-disabled{color:var(--muted,#64748b);line-height:1.45}
.service-facts{display:grid;gap:6px;margin:0}
.service-facts>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line-soft,#eef2f5);padding-top:7px}
.service-facts dt{color:var(--muted,#64748b);font-size:.82rem}
.service-facts dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere}
.service-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.service-actions form,.stage-control-grid form{margin:0}
.pipeline-control-panel{margin-top:18px}
.stage-control-grid .service-control-card{min-height:150px}
.service-control-disabled{margin:0;padding:10px 12px;border-radius:12px;background:var(--soft,#f6f8fa);font-size:.88rem}
@media(max-width:700px){.service-control-grid{grid-template-columns:1fr}.service-control-head{align-items:flex-start}.service-actions{display:grid;grid-template-columns:1fr}.service-actions button{width:100%}}


/* Premium operational control center */
.ops-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;align-items:stretch;margin-bottom:20px}
.ops-hero-copy,.ops-hero-status,.ops-section,.ops-panel,.ops-metric{background:#fff;border:1px solid rgba(1,74,125,.08);box-shadow:0 16px 46px rgba(15,23,42,.07)}
.ops-hero-copy{padding:30px 32px;border-radius:24px}
.ops-hero-copy h2{margin:5px 0 10px;font-size:34px;letter-spacing:-.045em}
.ops-hero-copy>p:last-child{max-width:760px;color:var(--muted);font-size:15px;line-height:1.65;margin:0}
.ops-hero-status{border-radius:24px;padding:26px;display:flex;gap:16px;align-items:center;background:linear-gradient(145deg,#f8fcff,#eef7fd)}
.ops-hero-status.good{box-shadow:inset 0 0 0 1px rgba(38,154,112,.10),0 16px 46px rgba(15,23,42,.07)}
.ops-hero-status.watch{background:linear-gradient(145deg,#fffdf8,#fff7e8)}
.ops-status-dot{width:14px;height:14px;border-radius:999px;background:#269a70;box-shadow:0 0 0 7px rgba(38,154,112,.12);flex:0 0 auto}
.ops-hero-status.watch .ops-status-dot{background:#d39b2a;box-shadow:0 0 0 7px rgba(211,155,42,.12)}
.ops-hero-status div{display:grid;gap:3px}
.ops-hero-status small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.ops-hero-status b{font-size:19px;letter-spacing:-.02em}
.ops-hero-status span:last-child{color:var(--muted);font-size:12px;line-height:1.45}

.ops-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.ops-metric{padding:20px;border-radius:20px;display:grid;gap:9px;min-height:158px;min-width:0;overflow:hidden}
.ops-metric-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.ops-metric-head span{font-size:12px;font-weight:800;color:#344054}
.ops-metric-head em{font-style:normal;font-size:11px;font-weight:800;border-radius:999px;padding:5px 8px;background:#f2f5f7;color:#667085}
.ops-metric.good .ops-metric-head em{background:#edf9f3;color:#16834a}
.ops-metric.watch .ops-metric-head em{background:#fff5df;color:#9a6200}
.ops-metric.critical .ops-metric-head em{background:#fdecec;color:#ad2f2f}
.ops-metric strong{font-size:29px;letter-spacing:-.04em;line-height:1}
.ops-metric strong small{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:0}
.ops-metric p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.ops-metric>.ops-meter{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;display:block;width:100%!important;max-width:100%!important;min-width:0;height:6px;background:#eef2f5;border-radius:999px;overflow:hidden;margin-top:auto;contain:paint}
.ops-metric>.ops-meter i{display:block;width:0;max-width:100%;height:100%;border-radius:999px;background:#0c5fa5}
.ops-metric.watch .ops-meter i{background:#d39b2a}
.ops-metric.critical .ops-meter i{background:#bf3636}
.ops-metric.good .ops-meter i{background:#269a70}

.ops-section{border-radius:24px;padding:26px 28px;margin-bottom:20px}
.ops-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}
.ops-section-head h3,.ops-panel-head h3{font-size:22px;letter-spacing:-.035em;margin:3px 0 4px}
.ops-section-head p:not(.eyebrow){margin:0;max-width:780px;color:var(--muted);font-size:13px;line-height:1.55}
.ops-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ops-service-card{border:1px solid #e5eaee;border-radius:20px;padding:18px;background:linear-gradient(180deg,#fff,#fbfcfd);display:grid;gap:15px;min-width:0}
.ops-service-card.is-running{border-color:rgba(38,154,112,.22)}
.ops-service-card.is-stopped{border-color:rgba(211,155,42,.3);background:linear-gradient(180deg,#fff,#fffbf3)}
.ops-service-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.ops-service-identity{display:flex;gap:13px;min-width:0}
.ops-service-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#014a7d,#3399cc);color:#fff;font-size:10px;font-weight:900;letter-spacing:.04em;box-shadow:0 8px 20px rgba(1,74,125,.16);flex:0 0 auto}
.ops-service-identity h4{font-size:16px;margin:2px 0 4px;letter-spacing:-.02em}
.ops-service-identity p{margin:0;color:var(--muted);font-size:12px;line-height:1.45;max-width:520px}
.ops-state-pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:850;white-space:nowrap;background:#f2f4f7;color:#667085}
.ops-state-pill i{width:7px;height:7px;border-radius:50%;background:#98a2b3}
.ops-state-pill.on{background:#edf9f3;color:#16834a}
.ops-state-pill.on i{background:#269a70}
.ops-state-pill.off,.ops-state-pill.paused{background:#fff5df;color:#9a6200}
.ops-state-pill.off i,.ops-state-pill.paused i{background:#d39b2a}
.ops-service-action{display:flex;gap:10px;align-items:center;min-height:38px}
.ops-service-action form{margin:0}
.ops-service-action .button{min-width:108px;justify-content:center}
.ops-danger-menu{margin-left:auto;position:relative}
.ops-danger-menu summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:750;list-style:none}
.ops-danger-menu summary::-webkit-details-marker{display:none}
.ops-danger-menu[open]{background:#fff;border:1px solid #e5eaee;border-radius:12px;padding:9px 11px}
.ops-danger-menu form{margin-top:8px}
.ops-service-note{font-size:12px;color:#8a6a20;background:#fff8e8;border-radius:11px;padding:10px 12px}
.ops-service-note.protected{color:#667085;background:#f6f8fa}
.ops-technical{border-top:1px solid #edf0f2;padding-top:11px;color:var(--muted)}
.ops-technical summary{cursor:pointer;font-size:11px;font-weight:800;color:#667085;list-style:none}
.ops-technical summary::-webkit-details-marker{display:none}
.ops-technical dl{display:grid;gap:7px;margin:11px 0 0}
.ops-technical dl div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;font-size:11px}
.ops-technical dt{color:#98a2b3}
.ops-technical dd{margin:0;color:#475467;overflow-wrap:anywhere}
.ops-error{font-size:11px;color:#bf3636;margin:8px 0 0}

.ops-pipeline{overflow:hidden}
.ops-pipeline-summary{font-size:12px;font-weight:800;color:#014a7d;background:#edf7fd;padding:8px 11px;border-radius:999px;white-space:nowrap}
.ops-stage-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;position:relative;margin-top:6px}.ops-stage-flow>*{min-width:0}
.ops-stage-card{position:relative;padding:0 10px;min-width:0}
.ops-stage-card:not(:last-child):after{display:none}
.ops-stage-number{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#eef5fa;color:#014a7d;font-size:13px;font-weight:900;margin-bottom:12px;border:1px solid #d9e7f0}
.ops-stage-card.is-enabled .ops-stage-number{background:linear-gradient(135deg,#014a7d,#3399cc);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(1,74,125,.14)}
.ops-stage-card.is-paused{opacity:.75}
.ops-stage-body{display:grid;gap:11px}
.ops-stage-title{display:grid;gap:9px}
.ops-stage-title h4{font-size:14px;margin:0 0 4px}
.ops-stage-title p{font-size:11px;line-height:1.45;color:var(--muted);margin:0;min-height:48px}
.ops-stage-toggle{border:0;background:transparent;padding:0;font:inherit;font-size:11px;font-weight:850;cursor:pointer;text-align:left}
.ops-stage-toggle.pause{color:#8a6a20}
.ops-stage-toggle.resume{color:#0c5fa5}
.ops-stage-toggle:hover{text-decoration:underline}
.ops-guidance{margin-top:24px;padding:16px 18px;border-radius:16px;background:#f5f9fc;border:1px solid #e2edf4}
.ops-guidance b{font-size:12px}
.ops-guidance p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}

.ops-bottom-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.55fr);gap:16px;margin-bottom:20px}
.ops-panel{border-radius:22px;padding:24px 26px}
.ops-panel-head{margin-bottom:16px}
.ops-activity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ops-activity-grid>div{padding:16px;border-radius:15px;background:#f7f9fb}
.ops-activity-grid small,.ops-activity-grid span{display:block;color:var(--muted);font-size:11px}
.ops-activity-grid b{display:block;font-size:24px;margin:5px 0 3px;letter-spacing:-.035em}
.ops-activity-grid b i{font-style:normal;font-size:11px;color:var(--muted)}
.ops-lifecycle-card{display:flex;flex-direction:column;justify-content:center}
.ops-lifecycle-card strong{font-size:38px;letter-spacing:-.05em;color:#014a7d}
.ops-lifecycle-card h3{font-size:17px;margin:0}
.ops-lifecycle-card p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.5}
.ops-lifecycle-card .button{align-self:flex-start}
.ops-insights{margin-bottom:24px}
.ops-insight-list{display:grid;gap:10px}
.ops-insight-list>div{display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:start;padding:12px 0;border-top:1px solid #edf0f2}
.ops-insight-list>div:first-child{border-top:0}
.ops-insight-list>div>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff5df;color:#9a6200;font-weight:900;font-size:12px}
.ops-insight-list>div.clear>span{background:#edf9f3;color:#16834a}
.ops-insight-list p{margin:4px 0 0;font-size:12px;color:#475467;line-height:1.5}

@media(max-width:1180px){
  .ops-metrics{grid-template-columns:repeat(2,1fr)}
  .ops-stage-flow{grid-template-columns:repeat(2,1fr);gap:16px}
  .ops-stage-card{padding:0}
  .ops-stage-card:after{display:none}
}
@media(max-width:820px){
  .ops-hero,.ops-bottom-grid,.ops-service-grid{grid-template-columns:1fr}
  .ops-section-head{align-items:flex-start;flex-direction:column}
  .ops-stage-flow{grid-template-columns:1fr}
}
@media(max-width:580px){
  .ops-hero-copy,.ops-hero-status,.ops-section,.ops-panel{padding:20px}
  .ops-hero-copy h2{font-size:28px}
  .ops-metrics{grid-template-columns:1fr}
  .ops-service-top{flex-direction:column}
  .ops-state-pill{align-self:flex-start}
  .ops-service-action{align-items:stretch;flex-direction:column}
  .ops-danger-menu{margin-left:0}
  .ops-technical dl div{grid-template-columns:1fr;gap:2px}
  .ops-activity-grid{grid-template-columns:1fr}
}


/* Operational hero brand lock: keep RETA blue even if an older cached rule coexists. */
.ops-hero{
  background:linear-gradient(135deg,#014a7d 0%,#0c5fa5 58%,#3399cc 100%);
  padding:24px;
  border-radius:24px;
  box-shadow:0 18px 46px rgba(1,74,125,.16);
}
.ops-hero-copy{background:#fff!important}
.ops-hero-copy .eyebrow{color:#0c5fa5!important}
.ops-hero-copy h2{color:#101828!important}
.ops-hero-copy>p:last-child{color:#667085!important}
.ops-hero-status{background:linear-gradient(145deg,#f9fcff,#edf6fc)!important}
.ops-hero-status small{color:#53657a!important}
.ops-hero-status b{color:#101828!important}
.ops-hero-status span:last-child{color:#667085!important}
.ops-hero-status.good{box-shadow:inset 0 0 0 1px rgba(1,74,125,.10),0 16px 46px rgba(15,23,42,.07)!important}
.ops-status-dot{background:#0c5fa5!important;box-shadow:0 0 0 7px rgba(12,95,165,.12)!important}
.ops-hero-status.watch .ops-status-dot{background:#d39b2a!important;box-shadow:0 0 0 7px rgba(211,155,42,.12)!important}
@media(max-width:580px){.ops-hero{padding:14px;border-radius:20px}}


/* Manual output for incomplete clinical sets */
.partial-output-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.partial-output-grid>form{padding:16px;border:1px solid var(--line,#dbe3e8);border-radius:16px;background:#fff}
.partial-output-grid h4{margin:0 0 4px;font-size:15px;letter-spacing:-.02em}
.page-completeness-notice .partial-output>summary{font-weight:800;cursor:pointer;margin-top:8px}
.page-completeness-notice .partial-output>p{margin:8px 0 0;color:var(--muted,#667085)}
@media(max-width:820px){.partial-output-grid{grid-template-columns:1fr}}


/* Exam output center */
.output-center{margin-top:18px}
.output-center .partial-output-grid{align-items:start}
.output-option{padding:18px;border:1px solid var(--line,#dbe3e8);border-radius:16px;background:#fff;display:grid;gap:12px}
.output-option h4{margin:0;font-size:16px;letter-spacing:-.02em}
.output-option>p{margin:0;color:var(--muted,#667085);font-size:12px;line-height:1.5}
.output-option .form-stack{margin:0}

/* Direct identification actions */
.identification-shortcuts{margin:16px 0;background:#f5faff;border-color:#c9e0f2}
.identification-shortcuts .section-head{margin-bottom:8px}
.identification-shortcuts .action-row{align-items:center;gap:10px}
.identification-shortcuts .action-row button{font:700 13px Manrope;padding:10px 14px}
.candidate-action{white-space:normal;min-width:185px}
.candidate-action .form-stack{gap:7px}
.candidate-action .check{font-size:11px;line-height:1.35}
.candidate-action>a{display:block;margin-top:8px;color:#014a7d;font-weight:700}
#agenda,#estudos,#corrigir-dados{scroll-margin-top:18px}
.profile-element-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px 14px;margin-top:10px}
.profile-element-options .check{font-size:12px}


/* Daily workbench: preview-first selection and batch output without leaving the home screen. */
.dashboard-bulk{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:18px 20px;border:1px solid #cfe2ee;background:linear-gradient(135deg,#f9fcff,#f0f8fd)}.dashboard-bulk[hidden]{display:none!important}
.dashboard-bulk h3{margin:2px 0 3px}.dashboard-bulk small{color:var(--muted)}
.selectable-recent-row{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;align-items:center}
.recent-selector{display:flex!important;align-items:center;justify-content:center;align-self:stretch;width:36px;min-width:36px;height:auto;margin:0;padding:0;cursor:pointer;border-right:1px solid #edf2f5}.recent-selector input{display:block!important;position:static!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;padding:0!important;accent-color:#0c5fa5}.recent-selector>span{display:none!important}
.recent-preview-thumb{width:46px;height:46px;object-fit:cover;border-radius:10px;border:1px solid #d4e3eb;background:#edf5f9}
.dashboard-confirm{display:flex!important;align-items:center!important;gap:8px;max-width:210px;white-space:normal;line-height:1.3}.dashboard-confirm input{flex:0 0 18px!important}
@media(max-width:900px){.dashboard-bulk{align-items:stretch;flex-direction:column}.dashboard-bulk .bulk-action-form{width:100%}.selectable-recent-row{grid-template-columns:36px minmax(0,1fr)!important}.selectable-recent-row .work-recent-actions{grid-column:2}}

/* Operational home: exception-first state and one-click ready selection. */
.workflow-lane-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:8px;padding:14px 18px 10px;border-bottom:1px solid #e5edf2;background:#f8fbfd}
.workflow-lane{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:10px 11px;border:1px solid #dce7ee;border-radius:11px;background:#fff;color:#50677d;font:750 11px var(--ui-font);text-align:left;cursor:pointer}
.workflow-lane span{line-height:1.2;white-space:normal}.workflow-lane strong{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#edf3f7;color:#486176;font-size:11px}.workflow-lane.active{border-color:#1486bd;box-shadow:0 0 0 2px rgba(20,134,189,.13);color:#095d8c}.workflow-lane.human strong{background:#fff0d8;color:#955505}.workflow-lane.failure strong{background:#fde9e7;color:#ad3434}.workflow-lane.processing strong{background:#e8f4fb;color:#086795}.workflow-lane.ready strong{background:#e5f7ee;color:#13744b}.workflow-filter-result{margin:0;padding:0 18px 11px;border-bottom:1px solid #e5edf2;background:#f8fbfd;color:#687b8d;font-size:11px}
.workflow-output-note{margin:0;padding:0 18px 11px;border-bottom:1px solid #e5edf2;background:#f8fbfd;color:#536d80;font-size:11px;line-height:1.4}
.work-list-tools{display:flex;align-items:center;gap:14px}
.work-list-tools>a{color:#0878C9;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.batch-filter-tools{flex-wrap:wrap;justify-content:flex-end}
.batch-filter-tools label{display:grid;gap:3px;min-width:118px}
.batch-filter-tools label>span{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#61758a}
.batch-filter-tools select{min-width:118px;max-width:180px}
.text-button{padding:0;border:0;background:transparent;color:#0878C9;font:800 12px var(--ui-font);cursor:pointer}
.text-button:hover{text-decoration:underline}
.work-recent-identity{min-width:0}
.operation-state{display:inline-flex;align-items:center;margin-top:7px;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;line-height:1.25}
.operation-state.ready{background:#e5f7ee;color:#13744b}
.operation-state.done{background:#edf1f5;color:#56687a}
.operation-state.info{background:#e8f4fb;color:#0a6899}
.operation-state.watch{background:#fff0d8;color:#9b5b08}
.operation-state.critical{background:#fde9e7;color:#b63535}
.operation-hint{display:inline!important;margin-left:7px!important;max-width:290px!important;color:#7a8796!important}
.work-recent-row{border-top:1px solid #E5EDF2}.work-recent-row[hidden]{display:none!important}
.work-recent-row:first-child{border-top:0}
.work-recent-main{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(138px,.38fr);align-items:center;gap:12px;padding:13px 0;text-decoration:none;min-width:0}
.work-recent-actions{display:flex;gap:9px;padding-right:18px}
.work-recent-actions a{color:#0878C9;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}
@media(max-width:980px){.workflow-lane-filter{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1450px){.work-command-layout.lower{grid-template-columns:1fr}}
@media(max-width:720px){.workflow-lane-filter{display:flex;overflow-x:auto;padding:12px}.workflow-lane{flex:0 0 auto;min-width:136px}.workflow-filter-result{padding:0 12px 10px}.work-list-tools{align-items:flex-end;flex-direction:column;gap:6px}.work-recent-main{grid-template-columns:42px minmax(0,1fr)}.work-recent-meta{display:none}.operation-hint{display:none!important}.work-recent-actions{padding:0 14px 13px 0}}

/* Quick review drawer: keep the operator anchored on the workbench. */
.quick-drawer-shell[hidden]{display:none}.quick-drawer-shell{position:fixed;z-index:1200;inset:0}
.quick-drawer-backdrop{position:absolute;inset:0;border:0;background:rgba(10,32,55,.38);backdrop-filter:blur(2px)}
.quick-drawer{position:absolute;top:0;right:0;width:min(760px,94vw);height:100%;display:flex;flex-direction:column;background:#f5f9fb;box-shadow:-20px 0 55px rgba(9,37,62,.22)}
.quick-drawer-top{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #dce8ef;background:#fff;font-weight:800;color:#1b3858}
.quick-drawer-top button{width:34px;height:34px;border:0;border-radius:9px;background:#eef4f7;color:#31516d;font-size:24px;cursor:pointer}
.quick-drawer-body{overflow:auto;padding:18px}.quick-drawer-loading{padding:40px;text-align:center;color:#60758a}
.quick-exam{display:grid;gap:15px}.quick-exam-head{display:flex;justify-content:space-between;gap:16px}.quick-exam-head h3{margin:3px 0;font-size:24px}.quick-exam-head p{margin:0;color:#66758a}
.quick-exam-head-actions{display:flex;align-items:flex-end;flex-direction:column;gap:8px}.quick-exam-head-actions>a{font-size:12px;font-weight:800;color:#0878c9;text-decoration:none}
.quick-preview-section,.quick-correction,.quick-discarded{padding:16px;border:1px solid #dce7ee;border-radius:16px;background:#fff}
.quick-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.quick-section-head h4{margin:2px 0;font-size:17px}.quick-section-head>small{color:#687b8e}
.quick-pages{display:flex;gap:12px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity}
.quick-page-card{flex:0 0 178px;scroll-snap-align:start;border:1px solid #d9e5ec;border-radius:12px;background:#fbfdfe;overflow:hidden}
.quick-page-card>a{display:block;height:220px;background:#eaf1f5}.quick-page-card img{width:100%;height:100%;object-fit:contain}
.quick-page-card>div,.quick-page-card>details{padding:9px 10px}.quick-page-card b,.quick-page-card small{display:block}.quick-page-card small{margin-top:3px;color:#718295}
.quick-page-card summary{cursor:pointer;color:#b04444;font-size:11px;font-weight:800}.quick-page-card textarea{min-height:64px}
.quick-correction-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.quick-correction-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#4f667c}
.quick-correction-form input,.quick-correction-form select,.quick-correction-form textarea{width:100%}.quick-wide{grid-column:1/-1}.quick-form-actions{display:flex;gap:9px;align-items:center}
body.quick-drawer-open{overflow:hidden}
@media(max-width:720px){.quick-drawer{width:100vw}.quick-drawer-body{padding:13px}.quick-exam-head{flex-direction:column}.quick-exam-head-actions{align-items:flex-start}.quick-correction-form{grid-template-columns:1fr}.quick-wide{grid-column:auto}}

/* Strong processing feedback for server-bound operations. */
.processing-modal[hidden]{display:none}.processing-modal{position:fixed;z-index:2000;inset:0;display:grid;place-items:center}
.processing-modal-backdrop{position:absolute;inset:0;background:rgba(8,27,45,.62);backdrop-filter:blur(4px)}
.processing-modal-card{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:min(420px,88vw);padding:34px 32px;border:1px solid rgba(255,255,255,.7);border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(5,24,40,.36);text-align:center}
.processing-modal-card small{margin-top:17px;color:#0878c9;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.processing-modal-card strong{margin-top:5px;color:#172b4d;font-size:22px;letter-spacing:-.035em}
.processing-modal-card p{max-width:330px;margin:9px 0 0;color:#63788b;font-size:12px;line-height:1.55}
.processing-modal-spinner{width:42px;height:42px;border:4px solid #dcebf4;border-top-color:#0878c9;border-radius:50%;animation:reta-spin .8s linear infinite}
body.processing-modal-open{overflow:hidden}
@keyframes reta-spin{to{transform:rotate(360deg)}}

.quick-operational-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.quick-operational-facts>div{padding:12px 14px;border:1px solid #dce7ee;border-radius:12px;background:#fff}
.quick-operational-facts small,.quick-operational-facts span{display:block;color:#6d7e90;font-size:10px}.quick-operational-facts b{display:block;margin:4px 0;color:#223e57;font-size:13px}
.quick-retry-output{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #f0d6a7;border-radius:12px;background:#fffaf0}.quick-retry-output small{color:#7f6a43}
.quick-candidates{padding:16px;border:1px solid #dce7ee;border-radius:16px;background:#fff}
.quick-candidate-list{display:grid;gap:9px}.quick-candidate{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);gap:15px;padding:13px;border:1px solid #dce7ee;border-radius:12px;background:#fbfdfe}
.quick-candidate.compatível{border-color:#bce4cf;background:#f8fdf9}.quick-candidate.divergente{border-color:#f0c9c5;background:#fffafa}
.quick-candidate-main b,.quick-candidate-main small{display:block}.quick-candidate-main b{margin:5px 0 3px;color:#223e57}.quick-candidate-main small,.quick-candidate-review small{color:#687b8e;line-height:1.45}.quick-candidate-review{display:flex;flex-direction:column;justify-content:center;gap:8px}
.ops-policy-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px}.ops-policy-form>label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#415970}.ops-policy-form small{font-weight:400;color:#6a7d90;line-height:1.45}.ops-policy-wide{grid-column:1/-1}
@media(max-width:720px){.quick-operational-facts,.quick-candidate,.ops-policy-form{grid-template-columns:1fr}.ops-policy-wide{grid-column:auto}}

.output-profile-chip{min-width:180px;padding:10px 12px;border:1px solid #cfe5d8;border-radius:12px;background:#f7fcf9}
.output-profile-chip.warning{border-color:#efd8ab;background:#fffaf1}.output-profile-chip small,.output-profile-chip span{display:block;color:#6a7d90;font-size:10px}.output-profile-chip b{display:block;margin:3px 0;color:#213d56;font-size:13px}
#batch-filter{max-width:185px;padding:7px 9px;border:1px solid #d3e1e9;border-radius:9px;background:#fff;color:#3f5870;font:700 11px var(--ui-font)}

.operational-window-note{display:block;margin-top:5px;color:#6c7f91;font-size:10px;line-height:1.45}
.stage-capacity-line{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}.stage-capacity-line span{font-size:10px;padding:5px 7px;border-radius:999px;background:#f3f6f8;color:#526273}.stage-capacity-line span.ok{background:#edf9f3;color:#16834a}.capacity-form{display:grid;gap:16px;padding:20px}.capacity-form>label{display:grid;gap:6px}.capacity-form small{color:var(--muted);font-size:11px;line-height:1.4}.capacity-mode{grid-template-columns:auto 1fr!important;align-items:start;padding:14px;border:1px solid #dce7ee;border-radius:14px;background:#f8fbfd}.capacity-mode input{margin-top:3px}.capacity-mode span{display:grid;gap:3px}.capacity-grid-head,.capacity-row{display:grid;grid-template-columns:minmax(190px,1.2fr) 130px 150px minmax(220px,1.5fr);gap:12px;align-items:center}.capacity-grid-head{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.07em;color:#667085;padding:0 8px}.capacity-row{padding:11px 8px;border-top:1px solid #edf0f2}.capacity-row input{width:100%}.capacity-note{display:grid;gap:4px;padding:13px 15px;border-radius:13px;background:#f5f9fc;border:1px solid #e2edf4}.capacity-note span{font-size:11px;color:var(--muted)}@media(max-width:820px){.capacity-grid-head{display:none}.capacity-row{grid-template-columns:1fr 1fr}.capacity-row b,.capacity-row small{grid-column:1/-1}.stage-capacity-line{gap:4px}}
.dashboard-search-panel{display:grid;grid-template-columns:minmax(190px,.45fr) minmax(0,1.55fr);gap:18px;align-items:end;margin:0 0 18px;padding:18px 20px}.dashboard-search-panel h3{margin:2px 0 4px}.dashboard-search-panel small{color:var(--muted)}.dashboard-search-form{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px;align-items:end}.dashboard-search-form label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#667085}.dashboard-search-form input{width:100%}.rich-filters{display:grid!important;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px!important;align-items:end}.rich-filters>label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#667085}.rich-filters input,.rich-filters select{width:100%}.filter-check{display:flex!important;grid-column:span 2;flex-direction:row!important;align-items:center!important;gap:9px!important;min-height:42px;padding:9px 11px;border:1px solid #dce4ea;border-radius:10px;background:#f8fafb}.filter-check input,.dashboard-confirm input,.simple-source-choice input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;margin:0!important}.filter-actions{display:flex;gap:8px;align-items:center}.simple-source-choice{min-width:220px}.simple-source-choice small{display:block;color:var(--muted);font-size:10px;line-height:1.35;margin-top:3px}@media(max-width:1100px){.dashboard-search-panel{grid-template-columns:1fr}.dashboard-search-form,.rich-filters{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:650px){.dashboard-search-form,.rich-filters{grid-template-columns:1fr}.filter-check{grid-column:auto}.filter-actions{flex-direction:column;align-items:stretch}}

/* Received exams: keep the daily lookup visible and reveal precise filters when needed. */
.received-filters{display:grid;gap:11px}
.queue-state-badges{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0;margin-top:7px}
.queue-state-badges .operation-state{margin-top:0!important}
.print-dispatch-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:3px 8px;border:1px solid #a3d9c7;border-radius:999px;background:#e7f8f0;color:#17684d;font-size:10px;font-weight:850;line-height:1.25;white-space:normal}
html[data-theme="dark"] .print-dispatch-badge{border-color:#36765f;background:#15392c;color:#a4eccb}
.bulk-actions[hidden]{display:none!important}
.received-search-row{display:grid;grid-template-columns:minmax(240px,1fr) minmax(175px,auto) auto auto;align-items:end;gap:10px}
.received-search-field,.received-advanced-grid>label{display:grid;gap:5px;min-width:0;color:#536a7d;font-size:11px;font-weight:800}
.received-search-field input,.received-advanced-grid input,.received-advanced-grid select{width:100%}
.received-search-row .filter-check{grid-column:auto;white-space:normal;margin:0}
.received-search-row>.button{min-height:42px;justify-content:center;white-space:nowrap}
.received-advanced-filters{min-width:0;border-top:1px solid #e5edf2;padding-top:10px}
.received-advanced-filters summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;cursor:pointer;color:#176b99;font-size:12px;font-weight:800}
.received-advanced-filters summary::before{content:'▸';font-size:12px;transition:transform .15s}
.received-advanced-filters[open] summary::before{transform:rotate(90deg)}
.received-filter-active{border-radius:999px;background:#e7f4fa;color:#176b99;padding:3px 8px;font-size:10px}
.received-advanced-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:13px}
html[data-theme="dark"] .received-advanced-filters{border-color:#344958}
html[data-theme="dark"] .received-search-field,html[data-theme="dark"] .received-advanced-grid>label{color:#bed0dd}
html[data-theme="dark"] .received-advanced-filters summary{color:#8dd5fb}
html[data-theme="dark"] .received-filter-active{background:#14344b;color:#bde7ff}
html[data-theme="dark"] .received-search-row .filter-check{background:#142633;border-color:#35556b;color:#d5e4ef}
@media(max-width:1080px){.received-search-row{grid-template-columns:minmax(0,1fr) auto auto}.received-search-row .filter-check{grid-column:1/-1;grid-row:2}.received-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.received-search-row{grid-template-columns:repeat(2,minmax(0,1fr))}.received-search-field,.received-search-row .filter-check{grid-column:1/-1}.received-search-row .filter-check{grid-row:auto}.received-advanced-grid{grid-template-columns:1fr}.received-search-row>.button{width:100%}}

.capacity-top-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:12px}
.capacity-top-grid label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#536579}
.capacity-explainer{display:flex;gap:8px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:#eef7fc;color:#425a70;font-size:11px;line-height:1.5}
.capacity-explainer b{white-space:nowrap;color:#173a59}
.capacity-explainer strong{color:#173a59}
@media(max-width:720px){.capacity-top-grid{grid-template-columns:1fr}.capacity-explainer{display:grid}}

.destination-fields[hidden],.physical-auto[hidden],[data-dicom-color-note][hidden]{display:none!important}
.destination-policy-block{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.2fr);gap:14px 18px;padding:16px;border:1px solid #d9e5ed;border-radius:14px;background:#f8fbfd}
.destination-policy-block>div:first-child{align-self:start}.destination-policy-block h4{margin:2px 0 5px;color:#173a59}.destination-policy-block p{margin:0;color:#667b8d;font-size:11px;line-height:1.5}
.choice-card{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:12px 14px;border:1px solid #d9e5ed;border-radius:12px;background:#fff;min-height:0!important}
.choice-card input,.check input{width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px;margin:1px 0 0!important}
.choice-card span{display:grid;gap:3px}.choice-card b{color:#24445e;font-size:12px}.choice-card small{font-weight:500;line-height:1.45}.destination-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.destination-badges em{font-style:normal;font-size:9px;font-weight:800;padding:3px 7px;border-radius:999px;background:#eef5f8;color:#526d80}
@media(max-width:760px){.destination-policy-block{grid-template-columns:1fr}}

.stage-history-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.stage-history-line span{font-size:9px;padding:4px 7px;border-radius:999px;background:#f7f9fb;color:#68798a;border:1px solid #e8eef2}

.stage-capacity-reason{display:block;margin-top:6px;color:#526273;line-height:1.4}
.destination-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.destination-health-card{display:grid;gap:10px;padding:16px;border:1px solid #dce7ee;border-radius:16px;background:#fff}
.destination-health-card.good{border-color:#cfe9dc}.destination-health-card.watch{border-color:#ecd7a8}.destination-health-card.critical{border-color:#f1c4c4}
.destination-health-card>div:first-child{display:flex;justify-content:space-between;gap:10px}.destination-health-card small{color:var(--muted)}
.destination-health-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font-size:10px;color:#667085}.destination-health-facts b{color:#263f54}
.destination-health-error{padding:8px 10px;border-radius:10px;background:#fff2f2;color:#a63838!important}.destination-health-card>a{font-size:11px;font-weight:800;color:#0878c9;text-decoration:none}
@media(max-width:620px){.destination-health-facts{grid-template-columns:1fr}}

.automation-breakdown{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding:12px 14px;border:1px solid #e1e9ee;border-radius:14px;background:#f8fbfd}
.automation-breakdown>b{width:100%;font-size:11px;color:#334e63}.automation-breakdown span{font-size:10px;padding:5px 8px;border-radius:999px;background:#fff;color:#667085}.automation-breakdown strong{color:#173a59}

.destination-health-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.destination-health-actions form{margin:0}.destination-health-actions a{font-size:11px;font-weight:800;color:#0878c9;text-decoration:none}

/* Product experience — 2026-09-26 */
.product-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 30px;margin-bottom:18px;border-radius:22px;background:linear-gradient(135deg,#102b39,#173f50);color:#fff;box-shadow:0 16px 40px rgba(20,47,60,.14)}
.product-hero h2{margin:4px 0 8px;font-size:30px;letter-spacing:-.025em}.product-hero p{max-width:760px;margin:0;color:#d8e7ed}.product-hero .eyebrow{color:#9fd2e2}
.automation-score,.release-card{min-width:220px;padding:18px 20px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.08)}
.automation-score small,.release-card small{display:block;color:#b8d4de}.automation-score strong,.release-card strong{display:block;margin:4px 0;font-size:34px}.automation-score span,.release-card span{font-size:13px;color:#d8e7ed}
.product-alerts{display:grid;gap:10px;margin:0 0 18px}.product-alert{display:grid;grid-template-columns:1fr auto;gap:4px 18px;padding:14px 16px;border-radius:14px;text-decoration:none}.product-alert b,.product-alert span{grid-column:1}.product-alert em{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-weight:700}
.product-alert.critical{background:#fff0ef;border:1px solid #f2c4c0;color:#862a25}.product-alert.watch{background:#fff8e9;border:1px solid #ead4a0;color:#76591b}.product-alert.info{background:#edf7fb;border:1px solid #c5e3ee;color:#245669}
.product-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.product-kpi-grid article{padding:18px;border:1px solid #dce5e9;border-radius:16px;background:#fff}.product-kpi-grid small,.product-kpi-grid span{display:block;color:#70808a}.product-kpi-grid strong{display:block;margin:5px 0;font-size:28px;color:#173d4b}.product-kpi-grid strong i{font-size:13px;font-style:normal;font-weight:600}
.product-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:16px;margin-bottom:18px}.product-panel{padding:20px}.product-actions-bar{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 4px}
.automation-days{display:grid;gap:10px}.automation-days>div{position:relative;display:grid;grid-template-columns:62px 70px 1fr;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#f6f9fa;overflow:hidden}.automation-days i{position:absolute;left:0;bottom:0;height:3px;background:#2d839c}.automation-days small{color:#70808a}
.reason-list,.learning-list{display:grid;gap:9px}.reason-list>div,.reason-list>a,.learning-list>a{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e1e8eb;border-radius:12px;text-decoration:none;color:inherit}.reason-list span,.learning-list span{flex:1;display:grid;gap:3px}.reason-list small,.learning-list small,.learning-list em{color:#72818a;font-size:12px;font-style:normal}.learning-list strong{font-size:22px;color:#174558}
.source-performance-table{display:grid;gap:6px}.source-performance-table>div{display:grid;grid-template-columns:1.4fr .7fr .8fr 1.1fr;gap:12px;align-items:center;padding:10px 12px;border-bottom:1px solid #e7ecee}.source-performance-table .head{font-size:12px;color:#75858d;font-weight:700;background:#f7f9fa;border-radius:10px}.source-performance-table i{display:block;height:5px;margin-top:5px;background:#e6edef;border-radius:99px;overflow:hidden}.source-performance-table i em{display:block;height:100%;background:#31859d}
.readiness-ring{display:grid;place-items:center;width:150px;height:150px;border-radius:50%;border:10px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);text-align:center}.readiness-ring.ready{border-color:#84d0b1}.readiness-ring strong{font-size:30px}.readiness-ring span{font-size:11px;color:#d8e7ed}
.onboarding-steps{display:grid;gap:10px}.onboarding-step{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:14px;padding:14px;border:1px solid #dfe7ea;border-radius:14px;text-decoration:none;color:inherit}.onboarding-step.done{background:#f5fbf8}.onboarding-step.todo{background:#fffaf0;border-color:#ead9ad}.step-state{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e8f1f4;font-weight:800}.onboarding-step.done .step-state{background:#d9f1e6;color:#246c52}.onboarding-step small{display:block;color:#6f7f88}.onboarding-step em{font-style:normal;font-weight:700}
.onboarding-finish ol{padding-left:20px;color:#4f626b}.onboarding-finish li{margin:8px 0}.onboarding-final-actions{display:flex;gap:10px;flex-wrap:wrap}
.support-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.support-action-grid article{padding:20px}.support-service-list,.backup-list{display:grid;gap:9px}.support-service-list>div,.backup-list>div{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #e6ecee}.support-service-list small{grid-column:2;color:#75858d}
.review-mode-bar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;margin:-4px 0 12px;border:1px solid #dce5e8;border-radius:16px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 10px 30px rgba(21,53,66,.08)}.review-mode-bar h2{margin:2px 0}.review-mode-actions{display:flex;gap:8px;flex-wrap:wrap}.review-mode-help{display:flex;gap:18px;flex-wrap:wrap;padding:9px 12px;margin-bottom:12px;border-radius:12px;background:#edf5f8;color:#46616c;font-size:12px}.review-mode-help kbd{padding:2px 6px;border:1px solid #cbd9de;border-radius:5px;background:#fff;font-family:inherit}.review-mode-content>.quick-exam{max-width:none}.empty-celebration{text-align:center;padding:52px}.empty-celebration>strong{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#dff3e9;color:#27694f;font-size:30px}
.quick-output-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.quick-print-handoff{padding:16px 0;border-top:1px solid #e3e9eb}.print-handoff-list{display:grid;gap:9px}.print-handoff-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dfe7e9;border-radius:12px;background:#fbfcfc}.print-handoff-list small{display:block;color:#75858d}.handoff-confirmed{padding:7px 10px;border-radius:999px;background:#dff3e9;color:#28684f;font-weight:700;font-size:12px}.correction-choice{display:flex;gap:9px;flex-wrap:wrap}.correction-explainer{padding:11px 13px;border:1px solid #cfe2e8;border-radius:12px;background:#f3f9fb}.correction-explainer b,.correction-explainer span{display:block}.correction-explainer span{margin-top:3px;color:#617781;font-size:12px}.full-exam-delete{margin-top:12px}.full-exam-delete>summary{color:#8d3d37;font-weight:700}
@media(max-width:980px){.product-kpi-grid{grid-template-columns:1fr 1fr}.product-split,.support-action-grid{grid-template-columns:1fr}.product-hero{align-items:flex-start}.source-performance-table>div{grid-template-columns:1.2fr .6fr .7fr 1fr}.review-mode-bar{position:static;align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.product-hero{flex-direction:column;padding:22px}.automation-score,.release-card{min-width:0;width:100%}.product-kpi-grid{grid-template-columns:1fr}.source-performance-table .head{display:none}.source-performance-table>div{grid-template-columns:1fr 1fr}.source-performance-table>div>b{grid-column:1/-1}.onboarding-step{grid-template-columns:36px 1fr}.onboarding-step em{grid-column:2}.review-mode-actions{width:100%}.review-mode-actions .button{flex:1}.print-handoff-list>div{align-items:flex-start;flex-direction:column}}

/* Automation cockpit: same RETA visual language as Work Centre and Operational Health. */
.automation-command-hero{display:flex;align-items:center;justify-content:space-between;gap:26px;margin-bottom:16px;padding:29px 31px;border-radius:20px;background:radial-gradient(circle at 88% 18%,rgba(42,208,219,.32),transparent 28%),linear-gradient(112deg,#09294d,#08659a 62%,#1097bf);box-shadow:0 22px 48px rgba(5,51,91,.19);color:#f8fcff}.automation-command-hero .eyebrow{color:#bee8f5}.automation-command-hero h2{margin:5px 0 8px;font-size:clamp(29px,3.5vw,43px);letter-spacing:-.055em}.automation-command-hero p:not(.eyebrow){max-width:720px;margin:0;color:#d9f1f8;font-size:14px;line-height:1.55}.automation-command-score{min-width:245px;padding:16px 18px;border:1px solid rgba(228,250,255,.34);border-radius:15px;background:rgba(255,255,255,.11)}.automation-command-score small,.automation-command-score span{display:block;color:#d7eff7}.automation-command-score strong{display:block;margin:4px 0;color:#fff;font-size:39px;letter-spacing:-.06em}.automation-command-score span{font-size:11px}
.automation-period-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;padding:17px 20px;border:1px solid #dce7ee}.automation-period-bar h3{margin:2px 0 3px;font-size:17px}.automation-period-bar small{color:#66758a}.automation-period-bar nav{display:flex;gap:6px}.automation-period-bar nav a{padding:8px 12px;border:1px solid #c9dce8;border-radius:9px;background:#fff;color:#315a73;font-size:11px;font-weight:800;text-decoration:none}.automation-period-bar nav a.active{border-color:#0878c9;background:#0878c9;color:#fff}
.automation-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.automation-kpi-grid article{min-height:130px;padding:18px 19px;border:1px solid #dce7ee;border-radius:16px;background:#fff;box-shadow:0 10px 27px rgba(19,59,90,.07)}.automation-kpi-grid small,.automation-kpi-grid span{display:block;color:#66758a}.automation-kpi-grid small{font-size:10px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.automation-kpi-grid strong{display:block;margin:9px 0 5px;color:#162c4e;font-size:34px;letter-spacing:-.06em}.automation-kpi-grid strong i{font-size:12px;font-style:normal}.automation-kpi-grid span{font-size:11px}
.automation-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:16px;margin-bottom:16px}.automation-panel{min-width:0;border:1px solid #dce7ee;border-radius:17px;background:#fff;box-shadow:0 10px 30px rgba(19,59,90,.07);overflow:hidden}.automation-panel>header{display:flex;justify-content:space-between;gap:16px;padding:20px 21px 15px;border-bottom:1px solid #e3ebf0}.automation-panel .eyebrow{color:#0878c9}.automation-panel h3{margin:2px 0 4px;color:#172b4d;font-size:20px}.automation-panel header p:not(.eyebrow){max-width:650px;margin:5px 0 0;color:#66758a;font-size:11px;line-height:1.5}.automation-panel header>a{color:#0878c9;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.automation-wide{margin-bottom:16px}.opportunity-grid{grid-template-columns:1fr 1fr}
.improvement-row,.quality-action-list>a{display:flex!important;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-top:1px solid #e5edf2;color:#243e57;text-decoration:none}.improvement-row:first-child,.quality-action-list>a:first-child{border-top:0}.improvement-row span,.quality-action-list>a span{min-width:0}.improvement-row b,.improvement-row small,.improvement-row em,.quality-action-list b,.quality-action-list small,.quality-action-list em{display:block}.improvement-row small,.quality-action-list small{margin-top:3px;color:#66758a;font-size:10px;line-height:1.4}.improvement-row em,.quality-action-list em{margin-top:6px;color:#0878c9;font-size:10px;font-style:normal;font-weight:800}.improvement-row>strong{color:#0878c9;font-size:11px;white-space:nowrap}.quality-action-list>a>strong{display:grid;place-items:center;min-width:36px;height:36px;border-radius:10px;background:#e8f4fa;color:#0878c9;font-size:14px}.automation-footnote{display:flex;gap:8px;margin:0 2px 16px;color:#66758a;font-size:11px;line-height:1.45}.automation-footnote b{color:#35566e}
.dashboard-search-utility{grid-template-columns:minmax(190px,.42fr) minmax(0,1.58fr);align-items:center;padding:16px 18px;background:linear-gradient(135deg,#fbfdff,#f5fafc)}.dashboard-search-copy h3{margin:2px 0 3px;font-size:18px}.dashboard-search-utility .dashboard-search-form{grid-template-columns:1.35fr .7fr .9fr auto;align-items:center}.dashboard-search-utility .button{min-height:42px}.dashboard-search-more{grid-column:1/-1}.dashboard-search-more summary{width:max-content;margin-top:2px;color:#0878c9;font-size:11px;font-weight:800;cursor:pointer}.dashboard-search-more-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:9px;margin-top:10px;padding-top:10px;border-top:1px solid #e3ebf0}.dashboard-search-more-grid label{display:grid;gap:4px;color:#667085;font-size:10px;font-weight:800}
.work-recent-actions{display:grid!important;grid-template-columns:repeat(3,minmax(62px,1fr));gap:6px!important;min-width:220px;padding-right:14px!important}.work-recent-actions .recent-action{display:grid;gap:1px;place-items:center;min-height:48px;padding:7px 8px;border:1px solid #cbdce7;border-radius:10px;background:#fff;color:#315a73!important;text-decoration:none!important}.work-recent-actions .recent-action:hover{border-color:#88bdda;background:#f5fbff}.work-recent-actions .recent-action.primary{border-color:#0878c9;background:#0878c9;color:#fff!important}.work-recent-actions .recent-action span{font-size:11px;font-weight:850}.work-recent-actions .recent-action small{margin:0!important;color:inherit!important;font-size:9px!important;font-weight:650;opacity:.76}.work-recent-actions .recent-action.primary small{color:#fff!important}
@media(max-width:1080px){.automation-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-grid,.opportunity-grid{grid-template-columns:1fr}.dashboard-search-utility{grid-template-columns:1fr}.dashboard-search-utility .dashboard-search-form{grid-template-columns:repeat(2,minmax(140px,1fr))}.dashboard-search-more-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}
@media(max-width:720px){.automation-command-hero,.automation-period-bar{align-items:flex-start;flex-direction:column}.automation-command-score{min-width:0;width:100%}.automation-period-bar nav{width:100%}.automation-period-bar nav a{flex:1;text-align:center}.automation-kpi-grid{grid-template-columns:1fr}.automation-panel>header{align-items:flex-start;flex-direction:column}.automation-footnote{display:grid}.dashboard-search-utility .dashboard-search-form,.dashboard-search-more-grid{grid-template-columns:1fr}.work-recent-actions{grid-column:2;grid-template-columns:repeat(3,1fr);min-width:0;width:100%;padding:0 14px 13px 0!important}}


/* Product support: use the same RETA blue palette as the operational cockpit. */
.support-hero{background:radial-gradient(circle at 88% 18%,rgba(42,208,219,.32),transparent 28%),linear-gradient(112deg,#09294d,#08659a 62%,#1097bf)!important;box-shadow:0 22px 48px rgba(5,51,91,.19)!important}
.support-hero .eyebrow{color:#bee8f5!important}.support-hero h2{color:#fff!important}.support-hero p:not(.eyebrow){color:#d9f1f8!important}
.support-hero .release-card{border-color:rgba(228,250,255,.34);background:rgba(255,255,255,.11)}
.support-hero .release-card small,.support-hero .release-card span{color:#d7eff7}.support-hero .release-card strong{color:#fff}
.review-purpose{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:11px 13px;border:1px solid #cfe2e8;border-radius:12px;background:#f3f9fb;color:#456474;font-size:12px;line-height:1.45}
.review-purpose b{color:#173a59}.review-purpose a{margin-left:auto;white-space:nowrap;color:#0878c9;font-weight:800;text-decoration:none}

/* UI containment refinement — 2026-09-27 */
.side-nav .unit-switch{align-items:flex-start!important;min-width:0}
.side-nav .unit-switch>.dot{flex:0 0 8px;margin-top:7px}
.side-nav .unit-switch form{display:grid;flex:1;min-width:0;gap:5px;margin:0}
.side-nav .unit-switch form small{line-height:1.2}
.side-nav .unit-switch select{display:block;width:100%;max-width:100%;min-width:0;padding:7px 26px 7px 8px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:rgba(255,255,255,.12);color:#fff;font-size:11px;font-weight:750;line-height:1.2}
.side-nav .unit-switch select option{color:#172b4d;background:#fff}

.onboarding-hero{background:radial-gradient(circle at 88% 18%,rgba(42,208,219,.32),transparent 28%),linear-gradient(112deg,#09294d,#08659a 62%,#1097bf)!important;box-shadow:0 22px 48px rgba(5,51,91,.19)!important}
.onboarding-hero .eyebrow{color:#bee8f5!important}.onboarding-hero h2{color:#fff!important}.onboarding-hero p:not(.eyebrow){color:#d9f1f8!important}
.onboarding-hero .readiness-ring{border-color:rgba(228,250,255,.28);background:rgba(255,255,255,.11)}
.onboarding-hero .readiness-ring.ready{border-color:#65d9d0}.onboarding-hero .readiness-ring strong{color:#fff}.onboarding-hero .readiness-ring span{color:#d7eff7}
.selectable-recent-row{grid-template-columns:36px minmax(0,1fr) minmax(190px,210px)!important;column-gap:12px}
.work-recent-main{padding-right:4px;grid-template-columns:46px minmax(0,1fr) minmax(104px,.28fr)}
.work-recent-actions{width:100%;min-width:0!important;padding-right:12px!important}
.work-recent-actions .recent-action{min-width:0;padding-left:6px;padding-right:6px}
@media(max-width:1350px){.work-recent-main{grid-template-columns:46px minmax(0,1fr) 90px}.work-recent-meta>small{display:none}.work-recent-actions{grid-template-columns:repeat(3,minmax(58px,1fr))!important}}
@media(max-width:1050px){.selectable-recent-row{grid-template-columns:36px minmax(0,1fr) minmax(185px,205px)!important}}
@media(max-width:900px){.selectable-recent-row{grid-template-columns:36px minmax(0,1fr)!important;column-gap:8px}.work-recent-actions{grid-column:2;width:100%;padding:0 14px 13px 0!important}.work-recent-main{grid-template-columns:46px minmax(0,1fr) 82px}}
@media(max-width:720px){.work-recent-main{grid-template-columns:42px minmax(0,1fr)}.work-recent-meta{display:none}.work-recent-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* Automatic recognition learning — 2026-09-27 */
.auto-learning-console{padding:20px;margin-bottom:16px;border-color:#cfe0eb}.learning-lifecycle{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:4px 0 16px}.learning-lifecycle>span{display:grid;gap:2px;padding:12px 13px;border:1px solid #dce7ee;border-radius:12px;background:#f8fbfd;color:#0878c9;font-size:11px;font-weight:900}.learning-lifecycle b{color:#173a59}.learning-lifecycle small{color:#66758a;font-weight:600}.auto-learning-policy{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auto-learning-thresholds{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;padding:14px;border:1px solid #dce7ee;border-radius:13px;background:#f8fbfd}.auto-learning-thresholds label{display:grid;gap:5px;color:#536579;font-size:10px;font-weight:800}.auto-learning-thresholds input{width:100%}.auto-learning-policy .action-bar{grid-column:1/-1;display:flex;align-items:center;gap:12px}.auto-learning-policy .action-bar small{color:#66758a}
.learning-candidates-panel{padding:20px;margin-bottom:16px}.learning-candidate-list{display:grid;gap:12px}.learning-candidate{padding:15px;border:1px solid #dce7ee;border-radius:14px;background:#fff}.learning-candidate.shadow{border-color:#acd5e8;background:#fbfeff}.learning-candidate.active{border-color:#b9e2d0;background:#fbfffd}.learning-candidate.suspended,.learning-candidate.rejected{background:#fbfbfb;opacity:.82}.learning-candidate>header{display:flex;justify-content:space-between;gap:16px}.learning-candidate h4{margin:2px 0 4px;color:#173a59}.learning-candidate header small{color:#66758a}.learning-state{align-self:flex-start;padding:5px 8px;border-radius:999px;background:#edf3f7;color:#536579;font-size:9px;font-weight:900;text-transform:uppercase}.learning-state.shadow{background:#e7f4fb;color:#0878c9}.learning-state.active{background:#e6f7ef;color:#15734a}.learning-state.suspended,.learning-state.rejected{background:#fdeceb;color:#a63838}.learning-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.learning-metrics span,.learning-fields span{display:grid;gap:3px;padding:9px 10px;border-radius:10px;background:#f6f9fb}.learning-metrics small,.learning-fields small{color:#66758a;font-size:9px}.learning-metrics b,.learning-fields b{color:#24445e;font-size:11px}.learning-fields{display:flex;gap:7px;flex-wrap:wrap}.learning-error{padding:9px 10px;border-radius:9px;background:#fff3f2;color:#a63838;font-size:10px}.learning-candidate>footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.learning-candidate>footer form{margin:0}
@media(max-width:840px){.learning-lifecycle{grid-template-columns:1fr 1fr}.auto-learning-policy{grid-template-columns:1fr}.auto-learning-thresholds{grid-template-columns:1fr 1fr}.auto-learning-policy .action-bar,.auto-learning-thresholds{grid-column:auto}.learning-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.learning-lifecycle,.auto-learning-thresholds,.learning-metrics{grid-template-columns:1fr}.learning-candidate>header{flex-direction:column}.learning-state{align-self:flex-start}}

.learning-inventory{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}.learning-inventory span{display:grid;gap:3px;padding:10px 11px;border:1px solid #dce7ee;border-radius:11px;background:#f8fbfd}.learning-inventory span.ready{border-color:#b9e2d0;background:#f5fcf8}.learning-inventory small{color:#66758a;font-size:9px}.learning-inventory b{color:#173a59;font-size:18px}.learning-inventory em{color:#66758a;font-size:9px;font-style:normal}.learning-wait-reason{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:10px;background:#eef7fc;color:#24445e;margin:8px 0 12px}.learning-wait-reason b{white-space:nowrap;color:#0878c9;font-size:10px}.learning-wait-reason span{font-size:10px}.learning-candidate.active .learning-wait-reason{background:#f2fbf6}.learning-candidate.active .learning-wait-reason b{color:#15734a}@media(max-width:980px){.learning-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.learning-inventory{grid-template-columns:1fr}.learning-wait-reason{display:grid}}
.ops-reclaim-section{margin-top:18px}.ops-reclaim-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ops-reclaim-card{display:grid;gap:12px;padding:16px;border:1px solid #dce7ee;border-radius:14px;background:#fff}.ops-reclaim-card.high{border-color:#f0c98a;background:#fffaf2}.ops-reclaim-card small{color:#6b7a8d}.ops-reclaim-card h4{margin:3px 0 5px;color:#173a59}.ops-reclaim-card p{margin:0;color:#66758a;line-height:1.45}.ops-reclaim-facts{display:flex;gap:8px;flex-wrap:wrap}.ops-reclaim-facts span{display:grid;gap:2px;padding:8px 10px;border-radius:10px;background:#f5f8fa}.ops-reclaim-facts b{color:#1f4968}.ops-reclaim-card>a{font-weight:800;color:#0a78be}.ops-reclaim-note{margin:12px 0 0;padding:11px 13px;border-radius:10px;background:#f4f8fb;color:#536579}.ops-reclaim-note b{color:#173a59}@media(max-width:980px){.ops-reclaim-grid{grid-template-columns:1fr 1fr}}@media(max-width:640px){.ops-reclaim-grid{grid-template-columns:1fr}}

/* Worklist query policy: explain operational behavior without exposing implementation jargon. */
.worklist-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.worklist-intro .button{flex:0 0 auto}
.worklist-unit-bar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:15px;padding:16px 18px!important}.worklist-unit-bar form{min-width:min(420px,100%)}.worklist-unit-bar label{display:grid;gap:6px;color:#38536c;font-size:11px;font-weight:800}.worklist-unit-summary{display:grid;justify-items:end;gap:6px;text-align:right}.worklist-unit-summary small{color:#66758a}
.worklist-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:15px}.worklist-status-card{display:grid;align-content:start;gap:13px;min-height:205px;padding:19px!important;border-top:4px solid #cfdce5}.worklist-status-card.good{border-top-color:#0878c9}.worklist-status-card.watch{border-top-color:#d99318}.worklist-status-card .eyebrow{margin:0}.worklist-status-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.worklist-status-title h3{margin:0 0 5px;color:#172b4d;font-size:18px}.worklist-status-title p{margin:0;color:#66758a;font-size:11px;line-height:1.45}.worklist-status-title>.status{flex:0 0 auto}.worklist-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.worklist-facts div{padding:9px 10px;border-radius:10px;background:#f6f9fb}.worklist-facts dt{color:#7a8897;font-size:9px;font-weight:800;text-transform:uppercase}.worklist-facts dd{margin:3px 0 0;color:#38536c;font-size:11px;font-weight:800}.worklist-alert{margin:0;padding:9px 10px;border-radius:10px;background:#fff7e8;color:#8b5b08;font-size:11px;line-height:1.45}.compact-empty{display:grid;gap:6px;padding:15px!important}.compact-empty b{color:#38536c}.compact-empty span{font-size:11px;line-height:1.45}.compact-empty a{color:#0878c9;font-size:11px;font-weight:800;text-decoration:none}
.worklist-policy-layout{align-items:start}.worklist-policy-form{gap:13px}.worklist-choice{grid-column:1/-1;padding:15px!important}.worklist-fields{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.worklist-fields label{display:grid;gap:6px}.worklist-fields small{color:#66758a;font-weight:500;line-height:1.45}.worklist-save{display:flex;grid-column:1/-1;align-items:center;justify-content:space-between;gap:18px;padding-top:13px;border-top:1px solid #e2eaf0}.worklist-save div{display:grid;gap:4px;max-width:580px}.worklist-save b{color:#38536c;font-size:11px}.worklist-save small{color:#66758a;line-height:1.45}.worklist-save .button{flex:0 0 auto}
.worklist-guide{padding:20px!important}.worklist-guide h3{margin:5px 0 15px;color:#172b4d}.worklist-steps{display:grid;gap:0;margin:0;padding:0;list-style:none}.worklist-steps li{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:12px 0;border-top:1px solid #e6edf2}.worklist-steps li:first-child{border-top:0;padding-top:0}.worklist-steps li>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#e9f4fb;color:#0878c9;font-size:11px;font-weight:900}.worklist-steps li div{display:grid;gap:3px}.worklist-steps b{color:#38536c;font-size:11px}.worklist-steps small{color:#66758a;line-height:1.45}
.worklist-explain{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:22px;align-items:center;padding:20px!important}.worklist-explain h3{margin:5px 0 7px;color:#172b4d}.worklist-explain p:not(.eyebrow){margin:0;color:#66758a;font-size:11px;line-height:1.55}.worklist-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.worklist-role-grid a{display:grid;gap:4px;padding:13px;border:1px solid #dce7ee;border-radius:12px;background:#fbfdff;text-decoration:none}.worklist-role-grid b{color:#24445e;font-size:11px}.worklist-role-grid span{color:#0878c9;font-size:10px;font-weight:900}.worklist-role-grid small{color:#66758a;line-height:1.4}
@media(max-width:900px){.worklist-intro{align-items:flex-start;flex-direction:column}.worklist-status-grid,.worklist-fields,.worklist-explain,.worklist-role-grid{grid-template-columns:1fr}.worklist-unit-bar,.worklist-save{align-items:stretch;flex-direction:column}.worklist-unit-summary{justify-items:start;text-align:left}}@media(max-width:620px){.worklist-status-title{display:grid}.worklist-facts{grid-template-columns:1fr}.worklist-save .button{width:100%}}

/* Identity safety and clearer operational metrics. */
.automation-time-kpi{display:grid!important;align-content:start}.automation-kpi-reference{display:grid;gap:5px;margin-top:9px;padding-top:9px;border-top:1px solid #e4ebf0}.automation-kpi-reference span{font-size:10px!important;line-height:1.35}.automation-kpi-reference b{color:#24445e}.correction-evidence-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);gap:18px;align-items:start}.correction-evidence{position:sticky;top:18px;display:grid;gap:10px;padding:15px;border:1px solid #d7e4ec;border-radius:14px;background:#f8fbfd}.correction-evidence h4{margin:0;color:#173a59}.correction-evidence>a{display:block;overflow:hidden;border-radius:10px;background:#0c1720}.correction-evidence img{display:block;width:100%;max-height:520px;object-fit:contain}.correction-evidence>small{color:#617487;line-height:1.45}.correction-data-form{min-width:0}.evidence-confirm{padding:12px!important;border:1px solid #d8b46b!important;border-radius:11px;background:#fff9ed!important}.evidence-confirm span{display:grid;gap:3px}.evidence-confirm b{color:#6d4a08}.evidence-confirm small{color:#775f35;font-weight:500;line-height:1.4}.work-recent-actions .recent-action{white-space:normal!important;text-align:center;line-height:1.05}.work-recent-actions .recent-action span{overflow-wrap:anywhere}.work-recent-actions{grid-template-columns:repeat(3,minmax(76px,1fr))!important;min-width:252px!important}.work-recent-row{grid-template-columns:44px minmax(0,1fr) minmax(252px,auto)!important}@media(max-width:1100px){.correction-evidence-grid{grid-template-columns:1fr}.correction-evidence{position:static}.work-recent-row{grid-template-columns:36px minmax(0,1fr)!important}.work-recent-actions{grid-column:2;min-width:0!important;width:100%}}

/* 2026-09-27 decision workflow hardening */
.work-recent-actions .recent-action.disabled{cursor:not-allowed;border-color:#d8e1e7;background:#f3f5f7;color:#8796a4!important;opacity:.9}
.decision-hero{background:linear-gradient(112deg,#09294d,#08659a 62%,#1097bf);color:#fff;border:none}.decision-hero .eyebrow,.decision-hero h2,.decision-hero small{color:#fff}.decision-lead{max-width:720px;margin:7px 0 10px;color:rgba(255,255,255,.88);line-height:1.5}.decision-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important}.decision-steps span{display:flex!important;align-items:center;gap:8px;padding:9px 11px;border:1px solid #dce7ee;border-radius:11px;background:#fff}.decision-steps b{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#0878c9;color:#fff;font-size:11px}.blind-edit-block{margin-top:10px}.blind-edit-block a{font-weight:800}
@media(max-width:900px){.decision-steps{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.decision-steps{grid-template-columns:1fr}}

/* Dedicated human-decision workspace: evidence stays visible while the operator decides. */
@media(min-width:1050px){
  .review-mode-content>.quick-exam{grid-template-columns:minmax(0,1.45fr) minmax(380px,.85fr);column-gap:18px;align-items:start}
  .review-mode-content .quick-exam-head,.review-mode-content .operation-notice,.review-mode-content .review-purpose{grid-column:1/-1}
  .review-mode-content .quick-preview-section{grid-column:1;grid-row:auto / span 3;position:sticky;top:112px;max-height:calc(100vh - 132px);overflow:auto}
  .review-mode-content .quick-candidates,.review-mode-content .quick-correction{grid-column:2}
  .review-mode-content .quick-discarded{grid-column:1}
  .review-mode-content .quick-pages{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
}
.review-mode-content .quick-candidates{border-color:#bcd8e8;box-shadow:0 10px 30px rgba(17,88,130,.06)}
.review-mode-content .quick-correction{border-color:#c8dce7}
.review-mode-help b{color:#173f63}

/* Autonomous recovery and explainability — 2026-09-29 */
.autonomy-scoreboard{margin-bottom:16px}.autonomy-scoreboard>.section-head>strong{color:#0878c9;font-size:34px;letter-spacing:-.05em}
.human-next-action{display:block!important;margin-top:4px!important;color:#315a73!important}.human-next-action b{color:#0878c9}
.recovery-explanation-panel,.confidence-explanation-panel,.receipt-session-panel{margin-bottom:16px}.recovery-trace-grid,.receipt-session-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px;margin-top:12px}
.recovery-trace-grid article,.receipt-session-timeline article{display:grid;gap:4px;padding:11px;border:1px solid #dce7ee;border-radius:11px;background:#f8fbfd}.recovery-trace-grid article.resolved{border-color:#b9e2d0;background:#f5fcf8}.recovery-trace-grid article.not_resolved{border-color:#edcf9a;background:#fffaf1}
.confidence-factor-list{display:flex;gap:7px;flex-wrap:wrap}.confidence-factor-list span{padding:7px 9px;border-radius:9px;background:#f2f6f8;color:#536579;font-size:10px}.confidence-factor-list .good{background:#eaf8f1;color:#176b4b}.confidence-factor-list .watch{background:#fff6e6;color:#865b12}.confidence-factor-list .critical{background:#fdeceb;color:#a63838}
.confidence-explainer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #cfe2ea;border-radius:11px;background:#f5fafc}.confidence-explainer small,.confidence-explainer b{display:block}.confidence-explainer details{max-width:55%}.confidence-explainer ul{margin:8px 0;padding-left:18px}
.recovery-explanation{padding:11px 13px;border:1px solid #dce7ee;border-radius:11px;background:#fbfdff}.recovery-explanation summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer}.recovery-explanation-body{padding-top:9px}.recovery-trace{display:grid;gap:6px;padding-left:20px}.recovery-trace li small{display:block;color:#66758a}
.inferred-regions{margin-bottom:14px}.learning-impact{display:flex;gap:9px;padding:9px 11px;border-radius:10px;background:#eef8f3;color:#315a60}.learning-impact b{color:#15734a;white-space:nowrap}.learning-impact span{font-size:10px}
.ops-causal-section{margin-bottom:16px}.ops-causal-section .product-alerts{margin:0}.batch-filter-tools label{display:grid;gap:3px;color:#66758a;font-size:9px;font-weight:800}.batch-filter-tools select{min-width:130px}
@media(max-width:820px){.confidence-explainer{display:grid}.confidence-explainer details{max-width:none}.learning-impact{display:grid}.batch-filter-tools{align-items:stretch!important}.batch-filter-tools label{width:100%}.batch-filter-tools select{width:100%}}

/* Identification provenance — 2026-09-29 */
.reading-provenance{margin-bottom:16px}.reading-provenance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.reading-origin-card{display:grid;gap:5px;padding:13px;border:1px solid #dce7ee;border-radius:12px;background:#fbfdff}.reading-origin-card.has-history{border-color:#e8c98c;background:#fffaf1}.reading-origin-card>small{color:#66758a;font-size:9px;font-weight:850;text-transform:uppercase}.reading-origin-card>b{color:#173a59;font-size:14px;overflow-wrap:anywhere}.reading-origin-card>span{color:#315a73;font-size:10px}.reading-origin-card>em{color:#7a8897;font-size:9px;font-style:normal}.reading-origin-card details{margin-top:4px}.reading-origin-card summary,.raw-ocr-evidence summary{color:#0878c9;font-size:10px;font-weight:800;cursor:pointer}.reading-origin-card ul{display:grid;gap:5px;margin:8px 0 0;padding:0;list-style:none}.reading-origin-card li{display:grid;gap:2px;padding:7px 8px;border-radius:8px;background:#f2f6f8}.reading-origin-card li.current{outline:1px solid #8fc6df;background:#eef8fc}.reading-origin-card li small{color:#66758a;font-size:9px}.raw-ocr-evidence{margin-top:12px;padding-top:10px;border-top:1px solid #e2eaf0}.raw-ocr-evidence pre{max-height:240px;overflow:auto;padding:11px;border-radius:10px;background:#0e1d2b;color:#dceaf4;font-size:10px;white-space:pre-wrap;word-break:break-word}


/* Radiology dark mode: user-local preference, preserving semantic alert colors. */
.theme-toggle{display:grid;place-items:center;width:36px;height:36px;border:1px solid #D5E0E8;border-radius:10px;background:#fff;color:#183B56;font:700 17px/1 Inter,ui-sans-serif,sans-serif;cursor:pointer}.theme-toggle:hover{background:#EFF7FB}.theme-toggle:focus-visible{outline:3px solid rgba(8,120,201,.28);outline-offset:2px}
html[data-theme="dark"]{color-scheme:dark;background:#07111D}
html[data-theme="dark"] body{background:#07111D;color:#DDE8F2}
html[data-theme="dark"] .workspace{background:#0A1522}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .surface,html[data-theme="dark"] .work-command-panel,html[data-theme="dark"] .work-command-kpi,html[data-theme="dark"] .registry-surface,html[data-theme="dark"] .admin-editor>article,html[data-theme="dark"] .output-option,html[data-theme="dark"] .document-preview,html[data-theme="dark"] .destination-health-card{background:#101E2D!important;border-color:#26394A!important;box-shadow:0 12px 28px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .side-nav{background:#081725;border-color:#1D3143}
html[data-theme="dark"] .side-nav nav a{color:#B8C9D8}html[data-theme="dark"] .side-nav nav a:hover,html[data-theme="dark"] .side-nav nav a.active{background:#12314A;color:#F1FAFF}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] b,html[data-theme="dark"] strong{color:#F2F7FB}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] label,html[data-theme="dark"] .muted,html[data-theme="dark"] .crumb{color:#AFC0D0}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0A1724!important;border-color:#31485B!important;color:#EDF5FA!important}html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#71869A}
html[data-theme="dark"] .button:not(.primary):not(.danger),html[data-theme="dark"] .theme-toggle{background:#13283A;color:#D9EAF5;border-color:#31506A}html[data-theme="dark"] .theme-toggle:hover{background:#18354B}
html[data-theme="dark"] .compact-list>div,html[data-theme="dark"] .work-priority,html[data-theme="dark"] .work-recent-list>a,html[data-theme="dark"] .work-origin-list>div{border-color:#26394A}
html[data-theme="dark"] .work-command-kpi:after{opacity:.13}html[data-theme="dark"] .work-command-kpi span,html[data-theme="dark"] .work-command-kpi small{color:#9FB4C6}html[data-theme="dark"] .work-command-kpi strong{color:#F5FAFD}
html[data-theme="dark"] .work-command-delivery{background:linear-gradient(155deg,#102434,#0D1D2B)}html[data-theme="dark"] .work-delivery-stat{background:#0C1A28;border-color:#294257}
html[data-theme="dark"] table{color:#DDE8F2}html[data-theme="dark"] th{color:#A8BBCB}html[data-theme="dark"] td,html[data-theme="dark"] th{border-color:#26394A}
html[data-theme="dark"] .login-shell,html[data-theme="dark"] .login-card{background:#0A1522}html[data-theme="dark"] .login-panel{background:#101E2D;border-color:#26394A}html[data-theme="dark"] .login-form label{color:#C4D3DF}html[data-theme="dark"] .login-form input{background:#091725;color:#F1F7FB;border-color:#30485C}

/* Radiology dark mode refinement — 2026-09-30. Layered neutrals, lower blue saturation. */
html[data-theme="dark"]{--dark-canvas:#060b11;--dark-workspace:#0a1119;--dark-surface:#101923;--dark-raised:#15212d;--dark-row:#0d1721;--dark-border:#263644;--dark-muted:#9dafbd;--dark-text:#edf3f7;--dark-accent:#1594d2;background:var(--dark-canvas)}
html[data-theme="dark"] body{background:var(--dark-canvas);color:var(--dark-text)}
html[data-theme="dark"] .workspace{background:var(--dark-workspace)}
html[data-theme="dark"] .topbar{background:#0c151e!important;border-color:#202f3c!important;box-shadow:0 1px 0 rgba(255,255,255,.025)!important}
html[data-theme="dark"] .surface,html[data-theme="dark"] .registry-surface,html[data-theme="dark"] .admin-editor>article,html[data-theme="dark"] .output-option,html[data-theme="dark"] .destination-health-card,html[data-theme="dark"] .automation-panel{background:var(--dark-surface)!important;border-color:var(--dark-border)!important;box-shadow:0 12px 26px rgba(0,0,0,.16)!important}
html[data-theme="dark"] .work-command-panel,html[data-theme="dark"] .work-command-kpi{background:var(--dark-raised)!important;border-color:#2a3d4d!important}
html[data-theme="dark"] .workflow-lane-filter,html[data-theme="dark"] .workflow-filter-result{background:#0d1721;border-color:#26394a;color:#9dafbd}html[data-theme="dark"] .workflow-lane{background:#15222d;border-color:#344958;color:#c5d3dc}html[data-theme="dark"] .workflow-lane strong{color:#486176!important}html[data-theme="dark"] .workflow-lane.active{border-color:#258fc4;box-shadow:0 0 0 2px rgba(37,143,196,.2)}
html[data-theme="dark"] .workflow-output-note{background:#0d1721;border-color:#26394a;color:#9dafbd}
html[data-theme="dark"] .work-recent-list>a,html[data-theme="dark"] .compact-list>div,html[data-theme="dark"] .work-priority,html[data-theme="dark"] .work-origin-list>div,html[data-theme="dark"] .improvement-row,html[data-theme="dark"] .quality-action-list>a{background:var(--dark-row)!important;border-color:#22323f!important}
html[data-theme="dark"] .work-recent-list>a:hover,html[data-theme="dark"] .compact-list>div:hover{background:#111e29!important}
html[data-theme="dark"] .side-nav{background:#07131d;border-color:#1b2a36}
html[data-theme="dark"] .side-nav nav a{color:#b7c5d0}html[data-theme="dark"] .side-nav nav a:hover{background:#102536;color:#f3f8fb}html[data-theme="dark"] .side-nav nav a.active{background:#153750;color:#f7fbfd;box-shadow:inset 3px 0 0 #22a6e1}
html[data-theme="dark"] .side-nav nav p{color:#718696}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] label,html[data-theme="dark"] .muted,html[data-theme="dark"] .crumb{color:var(--dark-muted)}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] b,html[data-theme="dark"] strong{color:var(--dark-text)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#09121a!important;border-color:#344654!important;color:#edf4f8!important;box-shadow:none!important}
html[data-theme="dark"] select option{background:#0b151e;color:#eef4f8}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:#258fc4!important;outline:2px solid rgba(37,143,196,.15)}
html[data-theme="dark"] .button:not(.primary):not(.danger),html[data-theme="dark"] .recent-action:not(.primary),html[data-theme="dark"] .theme-toggle{background:#15222d!important;color:#dce7ee!important;border-color:#344958!important}
html[data-theme="dark"] .button.primary,html[data-theme="dark"] .recent-action.primary{background:#087fbe!important;border-color:#1596d2!important;color:#fff!important}
html[data-theme="dark"] .operation-notice.info{background:#102331!important;border-color:#28516a!important}html[data-theme="dark"] .operation-notice.warning{background:#2a2316!important;border-color:#6b5426!important}html[data-theme="dark"] .operation-notice.error{background:#2a1718!important;border-color:#6d3436!important}
html[data-theme="dark"] .status{filter:saturate(.82) brightness(.96)}
html[data-theme="dark"] .work-command-delivery{background:#101c26!important}html[data-theme="dark"] .work-delivery-stat{background:#0c151e!important;border-color:#2b3c49!important}
html[data-theme="dark"] .work-command-kpi:after{opacity:.08}
html[data-theme="dark"] ::selection{background:#176b96;color:#fff}
.report-state{display:inline-flex;width:max-content;margin-top:5px;padding:4px 7px;border-radius:999px;background:#edf3f6;color:#536b78;font-size:9px;font-weight:850}.report-ready{background:#e4f6ed;color:#17704b}.report-pending{background:#fff3da;color:#81590d}.ris-report-status{margin-bottom:16px}
html[data-theme="dark"] .report-state{background:#172734;color:#b9cad5}html[data-theme="dark"] .report-ready{background:#123126;color:#79d6aa}html[data-theme="dark"] .report-pending{background:#332a18;color:#e4c06c}
.driver-capability-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.driver-capability-controls label{display:grid;gap:5px;padding:10px 11px;border:1px solid #dce7ee;border-radius:10px;background:#f8fbfd}.driver-capability-controls b{font-size:11px}.driver-capability-controls small{font-size:9px;color:#6b7a8d}.driver-capability-controls select{width:100%}html[data-theme="dark"] .driver-capability-controls label{background:#0c1721;border-color:#263744}
.cups-queue-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:14px}.cups-queue-card{border:1px solid #dce7ee;border-radius:14px;padding:14px;background:#fbfdfe}.cups-queue-card>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.cups-queue-card>header div{display:grid;gap:3px}.cups-queue-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.cups-queue-kpis span{display:grid;gap:2px;padding:9px;border:1px solid #e1eaf0;border-radius:10px;background:#fff}.cups-queue-kpis b{font-size:18px}.cups-job-list{margin-top:13px;border-top:1px solid #e1eaf0;padding-top:10px}.cups-job-list h4{margin:0 0 8px}.cups-job-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #edf2f5}.cups-job-row>span{display:grid;gap:2px}.cups-job-row em{font-style:normal;font-weight:800;font-size:10px}.cups-state-text{min-height:18px}.status.success{background:#e4f6ed;color:#17704b}.status.warning{background:#fff3da;color:#81590d}html[data-theme="dark"] .cups-queue-card{background:#0c1721;border-color:#263744}html[data-theme="dark"] .cups-queue-kpis span{background:#101d27;border-color:#293b48}html[data-theme="dark"] .cups-job-list,html[data-theme="dark"] .cups-job-row{border-color:#263744}
.cups-history{margin-top:8px}.cups-history>summary{cursor:pointer;font-size:10px;font-weight:800;color:#3e6277;padding:7px 0}.cups-native-job .cups-job-row{}.cups-job-row span:nth-child(2){max-width:280px}.cups-job-row span:nth-child(2) small{white-space:normal;line-height:1.35}html[data-theme="dark"] .cups-history>summary{color:#91b8ca}
.received-preview-thumb{width:56px;height:70px;object-fit:cover;border-radius:9px;border:1px solid var(--line,#d9e3ea);background:#0b1117;box-shadow:0 4px 12px rgba(15,38,56,.08);flex:0 0 auto}.queue-document{display:flex!important;align-items:center;gap:10px}.queue-document small{min-width:0}.printer-technical-details{grid-column:1/-1}.printer-technical-details summary{cursor:pointer;font-weight:800;color:#52697a}.printer-technical-details textarea{min-height:120px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.destination-fields.device-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.destination-fields.device-fields>label{min-width:0}.destination-fields.device-fields>label textarea{width:100%;box-sizing:border-box}.cups-capability-panel{grid-column:1/-1;min-width:0}.driver-capability-list{min-width:0}.driver-capability-controls label{min-width:0}.driver-capability-controls select{min-width:0;max-width:100%}@media(max-width:980px){.destination-fields.device-fields{grid-template-columns:1fr}.received-preview-thumb{width:48px;height:60px}}
html[data-theme="dark"] .received-preview-thumb{border-color:#2d4050}
.destination-policy-controls{display:grid;gap:12px;min-width:0}.destination-policy-copy{min-width:0}.destination-policy-controls>label:not(.choice-card):not(.check){display:grid;gap:6px}.destination-policy-controls .operation-notice{margin:0}.destination-policy-block>*{min-width:0}.form-stack>label>textarea{width:100%;box-sizing:border-box;min-height:92px}.form-actions{clear:both;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:4px}
.cups-attempt-message{max-width:520px;white-space:normal;overflow-wrap:anywhere}.cups-history[open]>summary{color:#176b96}.cups-history summary::after{content:'  ▾';font-size:9px}.cups-history[open] summary::after{content:'  ▴'}
.automation-time-scale{display:grid;gap:5px;margin-top:8px}.automation-time-scale>div{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#73879a}.automation-time-scale>i{display:block;height:7px;border-radius:999px;background:#e5edf3;overflow:hidden}.automation-time-scale>i>em{display:block;height:100%;border-radius:inherit;background:currentColor;color:#1477b9}.output-failure-kpi details{margin-top:8px}.output-failure-kpi summary{cursor:pointer;font-size:10px;font-weight:800;color:#24506e}.output-failure-list{display:grid;gap:6px;margin-top:7px}.output-failure-list a{display:grid;gap:2px;padding:7px 8px;border:1px solid #e0e8ee;border-radius:9px;text-decoration:none}.output-failure-list b{font-size:10px}.output-failure-list span,.output-failure-list small{font-size:9px;color:#63778b;overflow-wrap:anywhere}html[data-theme="dark"] .automation-time-scale>i{background:#243746}html[data-theme="dark"] .output-failure-list a{border-color:#2a3e4d}
.history-filter-surface{margin-bottom:16px}.history-filters{display:grid;grid-template-columns:minmax(240px,1.4fr) repeat(2,minmax(135px,.6fr)) repeat(3,minmax(145px,.7fr));gap:10px;align-items:end}.history-filters label{display:grid;gap:5px;font-size:10px;font-weight:800;color:var(--muted)}.history-filter-checks{display:flex;gap:15px;align-items:center;grid-column:1/-2;min-height:38px}.history-filter-checks label{display:flex;align-items:center;gap:7px}.history-filter-actions{display:flex;justify-content:flex-end;gap:8px}.history-result-head,.history-pages{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}.history-result-head span,.history-pages span{color:var(--muted);font-size:11px}.history-pages{border-top:1px solid var(--line);border-bottom:0}.history-list a{grid-template-columns:42px minmax(0,1fr) auto}@media(max-width:1400px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filter-checks,.history-filter-actions{grid-column:1/-1}.history-filter-actions{justify-content:flex-start}}@media(max-width:620px){.history-filters{grid-template-columns:1fr}.history-list a{grid-template-columns:38px minmax(0,1fr)}.history-list a>span:last-child{grid-column:2}}
.default-output-pill{display:grid;gap:1px;min-width:118px;padding:7px 10px;border:1px solid #cfe3ee;border-radius:10px;background:#f6fbfe;color:#183c56;text-decoration:none;line-height:1.1}.default-output-pill small{font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6b8194}.default-output-pill b{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.default-output-pill.warning{border-color:#f0d39a;background:#fff9ec}.default-output-pill.warning b{color:#8a5b00}html[data-theme="dark"] .default-output-pill{border-color:#294355;background:#101d27;color:#d9edf8}html[data-theme="dark"] .default-output-pill small{color:#8fa9ba}@media(max-width:820px){.default-output-pill{display:none}}
.retention-db-overview{margin-bottom:16px;overflow:hidden}.retention-db-overview>.section-head{padding:19px 20px 14px;border-bottom:1px solid var(--line)}.retention-db-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 16px 16px;background:transparent}.retention-db-grid article{display:grid;gap:5px;min-width:0;min-height:142px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.retention-db-grid article>span{font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#60758a}.retention-db-grid article>strong{font-size:28px;line-height:1;color:#173b59}.retention-db-grid article>b{font-size:12px;color:#263f55}.retention-db-grid article>small{font-size:10px;line-height:1.45;color:#687b8e}.retention-db-grid article.technical>span{color:#0878c9}.retention-db-grid article.review>span{color:#9a6500}.retention-db-grid article.protected>span{color:#1c7851}html[data-theme="dark"] .retention-db-grid article{background:#0f1c26}.retention-db-grid article.protected{box-shadow:inset 0 3px 0 #65b98d}.retention-db-grid article.review{box-shadow:inset 0 3px 0 #e3b65f}.retention-db-grid article.technical{box-shadow:inset 0 3px 0 #67add7}@media(max-width:900px){.retention-db-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.retention-db-grid{grid-template-columns:1fr}}

/* Release policies: richer records need a card layout, not the generic registry row. */
.release-policy-list{display:grid;gap:16px;padding:16px}
.release-policy-item{display:grid;gap:16px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);min-width:0;overflow:hidden}
.release-policy-item.is-inactive{opacity:.76;background:var(--surface-soft,#f7fafc)}
.release-policy-head{display:flex;justify-content:space-between;gap:16px;align-items:center;min-width:0}
.release-policy-identity{display:flex;align-items:center;gap:12px;min-width:0}.release-policy-identity>div{min-width:0}.release-policy-identity h4{margin:2px 0 0;font-size:17px;color:var(--ink);overflow-wrap:anywhere}
.release-policy-state{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}.release-policy-state .status{white-space:nowrap}
.release-policy-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.release-policy-summary-cell{display:grid;gap:3px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#f8fbfd)}.release-policy-summary-cell small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.release-policy-summary-cell b{font-size:13px;color:var(--ink);overflow-wrap:anywhere}.release-policy-summary-cell span{font-size:10px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}.release-policy-summary-cell .risk-value{color:#a45f08}
.release-policy-detail-panel{border:1px solid var(--line);border-radius:13px;background:var(--surface,#fff);overflow:hidden}.release-policy-detail-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;cursor:pointer;list-style:none}.release-policy-detail-panel>summary::-webkit-details-marker{display:none}.release-policy-detail-panel>summary>span:first-child{display:grid;gap:2px;min-width:0}.release-policy-detail-panel>summary b{font-size:12px;color:var(--ink)}.release-policy-detail-panel>summary small{font-size:10px;color:var(--muted)}.release-policy-detail-action{font-size:10px;font-weight:800;color:var(--accent);white-space:nowrap}.release-policy-detail-panel[open] .release-policy-detail-action{font-size:0}.release-policy-detail-panel[open] .release-policy-detail-action::after{content:'Ocultar detalhes';font-size:10px}.release-policy-detail-body{display:grid;gap:12px;padding:0 14px 14px;border-top:1px solid var(--line);padding-top:14px}
.release-policy-overview{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;min-width:0}
.release-policy-lane{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft,#f8fbfd);min-width:0;align-content:start}
.release-policy-lane-auto{background:linear-gradient(135deg,var(--surface-soft,#f8fbfd),#eef7fb);border-color:#cfe2ec}
.release-policy-lane-head{display:grid;gap:2px;padding-bottom:9px;border-bottom:1px solid var(--line)}.release-policy-lane-head small{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}.release-policy-lane-head b{font-size:13px;color:var(--ink)}
.release-policy-level{display:grid;gap:4px}.release-policy-level span{font-size:11px;color:var(--muted)}.release-policy-level strong{font-size:17px;color:var(--ink)}.release-policy-level p{margin:0;font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.release-policy-rule-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,auto);gap:12px;align-items:start;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent);font-size:11px}.release-policy-rule-row span{color:var(--muted)}.release-policy-rule-row b{text-align:right;color:var(--ink);overflow-wrap:anywhere}.release-policy-rule-row .risk-value{color:#a45f08}
.release-policy-risk-block{display:grid;grid-template-columns:minmax(210px,.55fr) minmax(0,1.45fr);gap:14px;align-items:start;padding:12px 14px;border:1px dashed var(--line);border-radius:13px;min-width:0}.release-policy-risk-copy{display:grid;gap:2px}.release-policy-risk-copy small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.release-policy-risk-copy b{font-size:12px;color:var(--ink)}
.release-policy-details{display:flex;gap:7px;flex-wrap:wrap;align-items:center;min-width:0}.release-policy-details span{padding:6px 9px;border-radius:999px;background:var(--surface-soft,#eef5f8);color:var(--muted);font-size:10px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}.release-policy-details .policy-safe{background:#e9f6ef;color:#26724b}.release-policy-details .policy-risk{background:#fff2d7;color:#8a570d}.release-policy-details .policy-risk.high{background:#ffe8e5;color:#a33131}
.release-policy-acceptance{font-size:10px;color:var(--muted);padding:0 2px}.release-policy-acceptance b{color:var(--ink)}
.release-policy-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:50px;padding-top:12px;border-top:1px solid var(--line);min-width:0}.release-policy-actions>div{display:flex;gap:8px;flex-wrap:wrap;min-width:0}.release-policy-actions form{margin:0}.release-policy-actions .button,.release-policy-actions button{white-space:nowrap}
@media(max-width:980px){.release-policy-summary{grid-template-columns:1fr 1fr}.release-policy-overview{grid-template-columns:1fr}.release-policy-risk-block{grid-template-columns:1fr}}
@media(max-width:700px){.release-policy-summary{grid-template-columns:1fr}.release-policy-detail-panel>summary{align-items:flex-start}.release-policy-list{padding:10px}.release-policy-item{padding:14px}.release-policy-head,.release-policy-actions{align-items:stretch;flex-direction:column}.release-policy-state{justify-content:flex-start}.release-policy-rule-row{grid-template-columns:1fr;gap:3px}.release-policy-rule-row b{text-align:left}.release-policy-actions>div{display:grid;grid-template-columns:1fr}.release-policy-actions .button,.release-policy-actions form,.release-policy-actions form button{width:100%;justify-content:center}.release-policy-actions>.link-danger{align-self:flex-start}}
html[data-theme="dark"] .release-policy-lane-auto{background:#14283a!important;border-color:#31506a!important}
html[data-theme="dark"] .release-policy-details .policy-safe{background:#18372c!important;color:#9be2bc!important}
html[data-theme="dark"] .release-policy-details .policy-risk{background:#443518!important;color:#ffd98a!important}
html[data-theme="dark"] .release-policy-details .policy-risk.high{background:#432225!important;color:#ffb4ad!important}
.installation-capability-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.installation-capability-grid .choice-card{margin:0}@media(max-width:760px){.installation-capability-grid{grid-template-columns:1fr}}

/* Profile composition controls: keep copy and inputs visually distinct. */
.profile-chrome-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;align-items:stretch}
.profile-setting-card{display:grid;align-content:start;gap:8px;min-width:0;padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft,#f8fbfd);color:var(--ink)}
.profile-setting-card>span{font-size:12px;font-weight:800;color:var(--ink);line-height:1.3}.profile-setting-card select,.profile-setting-card input{width:100%;max-width:100%;min-width:0;margin:0}.profile-setting-card small{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin:0}.profile-setting-card.profile-setting-info{background:var(--surface,#fff)}.profile-setting-info>b{font-size:13px;line-height:1.45;color:var(--ink)}.profile-setting-wide{grid-column:1/-1}
.profile-number-suffix{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.profile-number-suffix i{font-style:normal;font-weight:800;color:var(--muted)}
@media(max-width:1200px){.profile-chrome-grid{grid-template-columns:1fr}.profile-setting-wide{grid-column:auto}}
html[data-theme="dark"] .profile-setting-card{background:#132637!important;border-color:#2b475d!important}html[data-theme="dark"] .profile-setting-card.profile-setting-info{background:#102130!important}

/* Dark theme completeness: administrative/editor components must inherit the same visual system. */
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .profile-text-block,
html[data-theme="dark"] .destination-policy-block,
html[data-theme="dark"] .choice-card,
html[data-theme="dark"] .filter-surface,
html[data-theme="dark"] .quick-filter-surface,
html[data-theme="dark"] .table-surface,
html[data-theme="dark"] .bulk-actions,
html[data-theme="dark"] .output-center,
html[data-theme="dark"] .document-review,
html[data-theme="dark"] .release-policy-item,
html[data-theme="dark"] .release-policy-lane,
html[data-theme="dark"] .release-policy-risk-block,
html[data-theme="dark"] .ops-service-card,
html[data-theme="dark"] .ops-stage-card,
html[data-theme="dark"] .capacity-form,
html[data-theme="dark"] .ops-policy-form,
html[data-theme="dark"] .retention-db-overview,
html[data-theme="dark"] details.exception-release-options {
  background:var(--dark-surface)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-text)!important;
}
html[data-theme="dark"] .choice-card:hover,
html[data-theme="dark"] .profile-text-block:hover,
html[data-theme="dark"] .release-policy-lane:hover {border-color:#38546a!important}
html[data-theme="dark"] .profile-card-title>span,
html[data-theme="dark"] .preview-tile {background:#12314a!important;color:#dff4ff!important;border-color:#31506a!important}
html[data-theme="dark"] .form-guidance,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .capacity-explainer,
html[data-theme="dark"] .capacity-note,
html[data-theme="dark"] .ops-guidance,
html[data-theme="dark"] .release-policy-acceptance {background:#0c1721!important;border-color:#263744!important;color:#aebfcb!important}
html[data-theme="dark"] .data-table .table-row,
html[data-theme="dark"] .selectable-row,
html[data-theme="dark"] .document-review-card,
html[data-theme="dark"] .page-card,
html[data-theme="dark"] .compact-form {background:#0d1721!important;border-color:#263744!important}
html[data-theme="dark"] .table-heading {background:#111f2b!important;color:#aebfcb!important}
html[data-theme="dark"] .filter-chip {background:#101d27!important;border-color:#2b4152!important;color:#bcd0dd!important}
html[data-theme="dark"] .filter-chip.active {background:#123a55!important;border-color:#2788bc!important;color:#f3fbff!important}
html[data-theme="dark"] .operation-state.info {color:#8fcce9!important}
html[data-theme="dark"] .emergency-output {background:#241c16!important;border-color:#654a2b!important}
html[data-theme="dark"] .emergency-output>summary {color:#f0c37c!important}

/* Dark theme completeness II — KPI and analytics surfaces introduced after the base dark pass. */
html[data-theme="dark"] .automation-period-bar,
html[data-theme="dark"] .automation-kpi-grid article,
html[data-theme="dark"] .quality-kpi,
html[data-theme="dark"] .quality-panel,
html[data-theme="dark"] .quality-source-metrics>div,
html[data-theme="dark"] .quality-reading-grid>div,
html[data-theme="dark"] .ops-metric,
html[data-theme="dark"] .ops-section,
html[data-theme="dark"] .ops-hero-copy,
html[data-theme="dark"] .ops-hero-status,
html[data-theme="dark"] .product-kpi-grid article,
html[data-theme="dark"] .reading-profile-card,
html[data-theme="dark"] .learning-candidate,
html[data-theme="dark"] .learning-metrics span,
html[data-theme="dark"] .learning-fields span,
html[data-theme="dark"] .learning-inventory span,
html[data-theme="dark"] .ops-reclaim-card,
html[data-theme="dark"] .worklist-status-card,
html[data-theme="dark"] .worklist-facts div,
html[data-theme="dark"] .health-activity-grid>div {
  background:var(--dark-surface)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-text)!important;
}
html[data-theme="dark"] .automation-kpi-grid strong,
html[data-theme="dark"] .quality-kpi strong,
html[data-theme="dark"] .quality-panel h3,
html[data-theme="dark"] .quality-source-metrics b,
html[data-theme="dark"] .quality-reading-grid b,
html[data-theme="dark"] .product-kpi-grid strong,
html[data-theme="dark"] .learning-candidate h4,
html[data-theme="dark"] .learning-metrics b,
html[data-theme="dark"] .learning-fields b,
html[data-theme="dark"] .learning-inventory b,
html[data-theme="dark"] .ops-reclaim-card h4,
html[data-theme="dark"] .worklist-status-title h3,
html[data-theme="dark"] .worklist-facts dd,
html[data-theme="dark"] .health-activity-grid b {color:var(--dark-text)!important}
html[data-theme="dark"] .automation-kpi-grid small,
html[data-theme="dark"] .automation-kpi-grid span,
html[data-theme="dark"] .quality-kpi span,
html[data-theme="dark"] .quality-kpi small,
html[data-theme="dark"] .quality-source-metrics small,
html[data-theme="dark"] .quality-reading-grid span,
html[data-theme="dark"] .product-kpi-grid small,
html[data-theme="dark"] .product-kpi-grid span,
html[data-theme="dark"] .learning-metrics small,
html[data-theme="dark"] .learning-fields small,
html[data-theme="dark"] .learning-inventory small,
html[data-theme="dark"] .learning-inventory em,
html[data-theme="dark"] .ops-reclaim-card p,
html[data-theme="dark"] .ops-reclaim-card small,
html[data-theme="dark"] .worklist-status-title p,
html[data-theme="dark"] .worklist-facts dt,
html[data-theme="dark"] .health-activity-grid span,
html[data-theme="dark"] .health-activity-grid small {color:var(--dark-muted)!important}
html[data-theme="dark"] .automation-kpi-reference,
html[data-theme="dark"] .quality-empty,
html[data-theme="dark"] .learning-wait-reason,
html[data-theme="dark"] .ops-reclaim-facts span,
html[data-theme="dark"] .worklist-alert {background:#0c1721!important;border-color:#263744!important;color:var(--dark-muted)!important}

/* Reading profile cards: keep learned regions legible on wide screens. */
.reading-profile-card .region-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.reading-profile-card .region-card{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;min-width:0;min-height:150px}
.reading-profile-card .region-card-copy{min-width:0}.reading-profile-card .region-card-copy b{overflow-wrap:anywhere}.reading-profile-card .region-card-copy small{overflow-wrap:anywhere}
.reading-profile-card .region-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;text-align:left;white-space:normal;margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}
.reading-profile-card .region-actions small{min-width:0;overflow-wrap:anywhere}.reading-profile-card .region-actions form{margin:0;flex:0 0 auto}
.inactive-region-history{border-top:1px solid var(--line);background:var(--surface-soft,#f8fbfd)}.inactive-region-history>summary{cursor:pointer;padding:12px 20px;color:var(--muted);font-size:11px;font-weight:800}.inactive-region-history .region-cards{border-top:1px solid var(--line)}
.inactive-region-history .region-card{min-height:132px}.inactive-region-history .region-card.is-inactive{opacity:.72}
html[data-theme="dark"] .inactive-region-history{background:#0c1721!important;border-color:#263744!important}html[data-theme="dark"] .inactive-region-history .region-actions{border-color:#263744!important}
@media(max-width:1180px){.reading-profile-card .region-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.reading-profile-card .region-cards{grid-template-columns:1fr}.reading-profile-card .region-actions{align-items:flex-start;flex-direction:column}}

/* Dark theme completeness III — visual editors and learned-profile surfaces. */
html[data-theme="dark"] .profile-studio-head,
html[data-theme="dark"] .profile-savebar,
html[data-theme="dark"] .profile-studio-preview,
html[data-theme="dark"] .profile-preview-meta,
html[data-theme="dark"] .profile-preview-meta>div,
html[data-theme="dark"] .profile-logo-current,
html[data-theme="dark"] .profile-logo-frame,
html[data-theme="dark"] .profile-empty-brand,
html[data-theme="dark"] .profile-context-note,
html[data-theme="dark"] .profile-filename-example,
html[data-theme="dark"] .reading-profile-card>header {
  background:var(--dark-surface)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-text)!important;
}
html[data-theme="dark"] .profile-preview-stage {
  border-color:var(--dark-border)!important;
  background:
    linear-gradient(45deg,#13202a 25%,transparent 25%),
    linear-gradient(-45deg,#13202a 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#13202a 75%),
    linear-gradient(-45deg,transparent 75%,#13202a 75%),
    #0b141d!important;
  background-size:24px 24px!important;
  background-position:0 0,0 12px,12px -12px,-12px 0!important;
}
html[data-theme="dark"] .profile-section-nav button,
html[data-theme="dark"] .profile-token-box button,
html[data-theme="dark"] .profile-close {
  background:#13222e!important;
  border-color:#304656!important;
  color:#cfe3ef!important;
}
html[data-theme="dark"] .profile-preview-badge{background:#123326!important;color:#8cddb3!important}
html[data-theme="dark"] .profile-preview-meta b,
html[data-theme="dark"] .profile-logo-current b,
html[data-theme="dark"] .profile-filename-example b{color:var(--dark-text)!important}
html[data-theme="dark"] .profile-tags span{background:#12314a!important;color:#bde8ff!important}
html[data-theme="dark"] .profile-layout{border-color:var(--dark-border)!important;color:var(--dark-muted)!important}
html[data-theme="dark"] .reading-profile-card .region-card{border-color:var(--dark-border)!important;background:#0d1721!important}

/* Dark theme coverage for operational surfaces added after the base theme. */
html[data-theme="dark"] .quality-kpi,
html[data-theme="dark"] .quality-panel,
html[data-theme="dark"] .quality-reading-grid>div,
html[data-theme="dark"] .quality-source-metrics>div,
html[data-theme="dark"] .health-kpi,
html[data-theme="dark"] .health-panel,
html[data-theme="dark"] .health-activity-grid>div,
html[data-theme="dark"] .automation-kpi-grid article,
html[data-theme="dark"] .learning-candidate,
html[data-theme="dark"] .reading-profile-card,
html[data-theme="dark"] .profile-live-preview,
html[data-theme="dark"] .quick-preview-section,
html[data-theme="dark"] .quick-correction,
html[data-theme="dark"] .quick-discarded,
html[data-theme="dark"] .quick-candidates,
html[data-theme="dark"] .quick-operational-facts>div,
html[data-theme="dark"] .retention-db-grid article,
html[data-theme="dark"] .ops-reclaim-card,
html[data-theme="dark"] .partial-output-grid>form,
html[data-theme="dark"] .choice-card,
html[data-theme="dark"] .worklist-status-card{
  background:var(--dark-surface,#101923)!important;
  border-color:var(--dark-border,#263644)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .quality-panel>header,
html[data-theme="dark"] .automation-panel>header,
html[data-theme="dark"] .quick-drawer-top,
html[data-theme="dark"] .reading-profile-card>header{
  background:var(--dark-raised,#15212d)!important;
  border-color:var(--dark-border,#263644)!important;
}
html[data-theme="dark"] .quality-kpi strong,
html[data-theme="dark"] .quality-panel h3,
html[data-theme="dark"] .quality-reading-grid b,
html[data-theme="dark"] .quality-origin-list b,
html[data-theme="dark"] .automation-kpi-grid strong,
html[data-theme="dark"] .automation-panel h3,
html[data-theme="dark"] .learning-candidate h4,
html[data-theme="dark"] .learning-metrics b,
html[data-theme="dark"] .learning-fields b,
html[data-theme="dark"] .worklist-status-title h3,
html[data-theme="dark"] .worklist-facts dd{
  color:var(--dark-text,#edf3f7)!important;
}
html[data-theme="dark"] .quality-kpi span,
html[data-theme="dark"] .quality-kpi small,
html[data-theme="dark"] .quality-panel p,
html[data-theme="dark"] .quality-reading-grid span,
html[data-theme="dark"] .automation-kpi-grid small,
html[data-theme="dark"] .automation-kpi-grid span,
html[data-theme="dark"] .automation-panel p,
html[data-theme="dark"] .learning-candidate header small,
html[data-theme="dark"] .learning-metrics small,
html[data-theme="dark"] .learning-fields small,
html[data-theme="dark"] .worklist-status-title p,
html[data-theme="dark"] .worklist-facts dt{
  color:var(--dark-muted,#9dafbd)!important;
}
html[data-theme="dark"] .quality-source-metrics,
html[data-theme="dark"] .quality-reading-grid,
html[data-theme="dark"] .health-activity-grid,
html[data-theme="dark"] .retention-db-grid{
  background:var(--dark-border,#263644)!important;
}
html[data-theme="dark"] .quality-empty,
html[data-theme="dark"] .learning-metrics span,
html[data-theme="dark"] .learning-fields span,
html[data-theme="dark"] .ops-reclaim-facts span,
html[data-theme="dark"] .worklist-facts div{
  background:var(--dark-row,#0d1721)!important;
}
html[data-theme="dark"] .learning-candidate.shadow,
html[data-theme="dark"] .learning-candidate.active,
html[data-theme="dark"] .learning-candidate.suspended,
html[data-theme="dark"] .learning-candidate.rejected{opacity:1}
html[data-theme="dark"] .processing-modal-card{background:#111c26!important;border-color:#314654!important;color:var(--dark-text,#edf3f7)!important}

/* Dark contrast normalization — 2026-10-01
   Internal surfaces must remain part of the dark hierarchy instead of creating
   bright islands with washed-out muted text. */
html[data-theme="dark"]{
  --surface:#101923;
  --surface-soft:#0d1721;
  --surface-raised:#15212d;
  --ink:#edf3f7;
  --muted:#aebfcb;
  --line:#263744;
  --accent:#21a0dc;
}
html[data-theme="dark"] .automation-days>div,
html[data-theme="dark"] .automation-breakdown,
html[data-theme="dark"] .automation-breakdown span,
html[data-theme="dark"] .reason-list>div,
html[data-theme="dark"] .reason-list>a,
html[data-theme="dark"] .learning-list>a,
html[data-theme="dark"] .source-performance-table .head,
html[data-theme="dark"] .onboarding-step,
html[data-theme="dark"] .review-mode-bar,
html[data-theme="dark"] .review-mode-help,
html[data-theme="dark"] .review-mode-help kbd,
html[data-theme="dark"] .print-handoff-list>div,
html[data-theme="dark"] .correction-explainer,
html[data-theme="dark"] .dashboard-search-utility,
html[data-theme="dark"] .recent-action:not(.primary),
html[data-theme="dark"] .correction-evidence,
html[data-theme="dark"] .evidence-confirm,
html[data-theme="dark"] .default-output-pill,
html[data-theme="dark"] .release-policy-summary-cell,
html[data-theme="dark"] .release-policy-detail-panel,
html[data-theme="dark"] .release-policy-lane,
html[data-theme="dark"] .profile-setting-card,
html[data-theme="dark"] .inactive-region-history {
  background:var(--surface-soft)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .automation-days>div:hover,
html[data-theme="dark"] .reason-list>a:hover,
html[data-theme="dark"] .learning-list>a:hover,
html[data-theme="dark"] .print-handoff-list>div:hover,
html[data-theme="dark"] .recent-action:not(.primary):hover{
  background:var(--surface-raised)!important;
  border-color:#38546a!important;
}
html[data-theme="dark"] .automation-days span,
html[data-theme="dark"] .automation-days b,
html[data-theme="dark"] .automation-days small,
html[data-theme="dark"] .automation-breakdown span,
html[data-theme="dark"] .reason-list small,
html[data-theme="dark"] .learning-list small,
html[data-theme="dark"] .source-performance-table .head,
html[data-theme="dark"] .onboarding-step small,
html[data-theme="dark"] .review-mode-help,
html[data-theme="dark"] .print-handoff-list small,
html[data-theme="dark"] .correction-explainer span,
html[data-theme="dark"] .dashboard-search-more-grid label,
html[data-theme="dark"] .correction-evidence>small,
html[data-theme="dark"] .release-policy-summary-cell small,
html[data-theme="dark"] .release-policy-summary-cell span,
html[data-theme="dark"] .profile-setting-card small{
  color:var(--muted)!important;
}
html[data-theme="dark"] .automation-days b,
html[data-theme="dark"] .reason-list b,
html[data-theme="dark"] .learning-list b,
html[data-theme="dark"] .source-performance-table b,
html[data-theme="dark"] .onboarding-step b,
html[data-theme="dark"] .print-handoff-list b,
html[data-theme="dark"] .correction-explainer b,
html[data-theme="dark"] .release-policy-summary-cell b,
html[data-theme="dark"] .profile-setting-card>span{
  color:var(--ink)!important;
}
html[data-theme="dark"] .automation-days i,
html[data-theme="dark"] .source-performance-table i{
  background:#203442!important;
}
html[data-theme="dark"] .automation-days i{background:#1c7fa9!important}
html[data-theme="dark"] .onboarding-step.done{background:#10271f!important;border-color:#285241!important}
html[data-theme="dark"] .onboarding-step.todo{background:#2a2316!important;border-color:#655126!important}
html[data-theme="dark"] .step-state{background:#183044!important;color:#ccecff!important}
html[data-theme="dark"] .onboarding-step.done .step-state{background:#17372b!important;color:#9be2bc!important}
html[data-theme="dark"] .review-purpose{background:#0f202c!important;border-color:#29475a!important;color:#b8cad6!important}
html[data-theme="dark"] .review-purpose b{color:var(--ink)!important}
html[data-theme="dark"] .handoff-confirmed{background:#17372b!important;color:#9be2bc!important}
html[data-theme="dark"] .full-exam-delete>summary{color:#f09a93!important}

/* Deployment mode and workbench KPI scope — 2026-10-01 */
.mode-summary-link{display:grid;gap:2px;min-width:145px;padding:8px 12px;border:1px solid rgba(228,250,255,.38);border-radius:11px;background:rgba(255,255,255,.10);color:#fff;text-decoration:none}.mode-summary-link small{color:#bee8f5!important;font-size:8px!important;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.mode-summary-link b{color:#fff!important;font-size:11px}.deployment-mode-hero .release-card strong{font-size:20px}.deployment-mode-guide{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-bottom:16px;overflow:hidden}.deployment-mode-guide>div{display:grid;gap:5px;padding:16px 18px;background:var(--surface-soft,#f8fbfd)}.deployment-mode-guide b{color:var(--ink,#173a59)}.deployment-mode-guide span{color:var(--muted,#66758a);font-size:11px;line-height:1.5}.deployment-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.deployment-mode-card{position:relative;display:grid;align-content:start;gap:8px;min-height:210px;padding:18px;border:1px solid var(--line,#dce7ee);border-radius:16px;background:var(--surface,#fff);cursor:pointer}.deployment-mode-card input{position:absolute;top:16px;right:16px;width:18px;height:18px}.deployment-mode-card.active{border-color:#1685bd;box-shadow:0 0 0 2px rgba(22,133,189,.12)}.deployment-mode-card.unavailable{opacity:.62;cursor:not-allowed}.deployment-mode-family{width:max-content;padding:4px 7px;border-radius:999px;background:#e8f4fa;color:#0878c9;font-size:9px;font-weight:900;text-transform:uppercase}.deployment-mode-card>b{padding-right:25px;font-size:16px;color:var(--ink,#173a59)}.deployment-mode-card p{margin:0;color:var(--muted,#66758a);font-size:11px;line-height:1.5}.deployment-mode-card small{color:var(--muted,#66758a);font-size:10px;line-height:1.45}.deployment-mode-card em{margin-top:auto;color:#0878c9;font-size:10px;font-style:normal;font-weight:800}.deployment-mode-save{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid var(--line,#dce7ee);border-radius:14px;background:var(--surface-soft,#f8fbfd)}.deployment-mode-save>div{display:grid;gap:3px}.deployment-mode-save small{color:var(--muted,#66758a);font-size:10px;line-height:1.45}.work-command-kpis-five{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1180px){.deployment-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-command-kpis-five{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.deployment-mode-grid,.deployment-mode-guide{grid-template-columns:1fr}.deployment-mode-save{align-items:flex-start;flex-direction:column}.work-command-kpis-five{grid-template-columns:1fr 1fr}.work-command-kpis-five .work-command-kpi:last-child{grid-column:1/-1}}
html[data-theme="dark"] .deployment-mode-guide>div,html[data-theme="dark"] .deployment-mode-card,html[data-theme="dark"] .deployment-mode-save{background:var(--dark-surface,#101923)!important;border-color:var(--dark-border,#263644)!important}html[data-theme="dark"] .deployment-mode-card.active{border-color:#2b9dd3!important;box-shadow:0 0 0 2px rgba(43,157,211,.16)}html[data-theme="dark"] .deployment-mode-family{background:#12314a;color:#bde8ff}
.operation-mode-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--line,#dce7ee);border-radius:12px;background:var(--surface-soft,#f8fbfd)}.operation-mode-summary>div{display:grid;gap:3px}.operation-mode-summary small{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#66758a)}.operation-mode-summary b{font-size:15px;color:var(--ink,#173a59)}.operation-mode-summary span{font-size:10px;color:var(--muted,#66758a)}html[data-theme="dark"] .operation-mode-summary{background:var(--dark-surface,#101923);border-color:var(--dark-border,#263644)}@media(max-width:700px){.operation-mode-summary{align-items:flex-start;flex-direction:column}}

/* Dark support surface contract: support/admin cards must never fall back to light islands. */
html[data-theme="dark"] .support-action-grid>article,
html[data-theme="dark"] .deployment-proof-panel,
html[data-theme="dark"] .product-split>.product-panel,
html[data-theme="dark"] .product-panel .support-service-list>div,
html[data-theme="dark"] .product-panel .backup-list>div{background:var(--dark-surface,#101923)!important;border-color:var(--dark-border,#263644)!important;color:var(--dark-text,#edf3f7)!important}
html[data-theme="dark"] .support-action-grid h3,html[data-theme="dark"] .support-action-grid p,
html[data-theme="dark"] .product-panel h3,html[data-theme="dark"] .product-panel b,html[data-theme="dark"] .product-panel span{color:var(--dark-text,#edf3f7)!important}
html[data-theme="dark"] .support-action-grid p:not(.eyebrow),html[data-theme="dark"] .product-panel small,html[data-theme="dark"] .product-panel .muted{color:var(--dark-muted,#9dafbd)!important}

/* Dark quick-review readability: labels, values and hints must remain comfortably legible. */
html[data-theme="dark"] .quick-correction-form label,
html[data-theme="dark"] .quick-section-head .eyebrow,
html[data-theme="dark"] .quick-candidate-review b,
html[data-theme="dark"] .correction-explainer b,
html[data-theme="dark"] .evidence-confirm b{color:#dce9f2!important}
html[data-theme="dark"] .quick-correction-form label>small,
html[data-theme="dark"] .quick-correction-form .check small,
html[data-theme="dark"] .correction-explainer span,
html[data-theme="dark"] .evidence-confirm small,
html[data-theme="dark"] .quick-exam-head p,
html[data-theme="dark"] .operation-hint{color:#aebfcb!important}
html[data-theme="dark"] .quick-correction-form input,
html[data-theme="dark"] .quick-correction-form select,
html[data-theme="dark"] .quick-correction-form textarea{background:#0b141d!important;border-color:#314454!important;color:#f1f6fa!important}
html[data-theme="dark"] .quick-correction-form input::placeholder,
html[data-theme="dark"] .quick-correction-form textarea::placeholder{color:#7f93a2!important;opacity:1}
html[data-theme="dark"] .quick-candidate-main b,
html[data-theme="dark"] .quick-exam-head h3,
html[data-theme="dark"] .quick-section-head h4{color:#f3f7fa!important}
html[data-theme="dark"] .quick-candidate-main small,
html[data-theme="dark"] .quick-candidate-review small,
html[data-theme="dark"] .quick-section-head>small{color:#afc0cc!important}

/* Dark quick-review surface contract: evidence/comparison components stay dark and readable. */
html[data-theme="dark"] .quick-candidate,
html[data-theme="dark"] .quick-page-card,
html[data-theme="dark"] .confidence-explainer,
html[data-theme="dark"] .recovery-explanation,
html[data-theme="dark"] .quick-retry-output,
html[data-theme="dark"] .output-profile-chip,
html[data-theme="dark"] .correction-explainer,
html[data-theme="dark"] .evidence-confirm{
  background:var(--dark-row,#0d1721)!important;
  border-color:var(--dark-border,#263644)!important;
  color:var(--dark-text,#edf3f7)!important;
}
html[data-theme="dark"] .quick-candidate.compatível{background:#0f241d!important;border-color:#295d49!important}
html[data-theme="dark"] .quick-candidate.divergente{background:#261718!important;border-color:#704044!important}
html[data-theme="dark"] .quick-page-card>a{background:#081018!important}
html[data-theme="dark"] .quick-drawer{background:var(--dark-workspace,#0a1119)!important}
html[data-theme="dark"] .quick-drawer-top{background:var(--dark-raised,#15212d)!important;border-color:var(--dark-border,#263644)!important;color:var(--dark-text,#edf3f7)!important}
html[data-theme="dark"] .quick-drawer-top button{background:var(--dark-row,#0d1721)!important;color:var(--dark-text,#edf3f7)!important}

/* Dark licensing/capability contract: no pale cards or washed-out status copy. */
html[data-theme="dark"] .installation-capability-grid .choice-card,
html[data-theme="dark"] .ops-policy-form .choice-card,
html[data-theme="dark"] .ops-policy-form>label,
html[data-theme="dark"] .operation-mode-summary,
html[data-theme="dark"] .operation-notice.info,
html[data-theme="dark"] .operation-notice.warning,
html[data-theme="dark"] .operation-notice.success {
  background:var(--dark-row,#0d1721)!important;
  border-color:var(--dark-border,#263644)!important;
  color:var(--dark-text,#edf3f7)!important;
}
html[data-theme="dark"] .installation-capability-grid .choice-card b,
html[data-theme="dark"] .ops-policy-form .choice-card b,
html[data-theme="dark"] .operation-mode-summary b,
html[data-theme="dark"] .operation-notice b {
  color:#f2f7fa!important;
}
html[data-theme="dark"] .installation-capability-grid .choice-card small,
html[data-theme="dark"] .ops-policy-form .choice-card small,
html[data-theme="dark"] .ops-policy-form>label>small,
html[data-theme="dark"] .operation-mode-summary span,
html[data-theme="dark"] .operation-notice span {
  color:#b7c7d2!important;
}
html[data-theme="dark"] .ops-policy-form input,
html[data-theme="dark"] .ops-policy-form select,
html[data-theme="dark"] .ops-policy-form textarea {
  background:#0a131b!important;
  border-color:#334958!important;
  color:#f1f6fa!important;
}
html[data-theme="dark"] .ops-policy-form input:disabled,
html[data-theme="dark"] .ops-policy-form select:disabled,
html[data-theme="dark"] .ops-policy-form textarea:disabled {
  background:#111d27!important;
  color:#aebfcb!important;
  opacity:1!important;
}
html[data-theme="dark"] .installation-capability-grid .choice-card:has(input:disabled) {
  opacity:.86!important;
  background:#111b24!important;
}

/* Dark recovery trace contract: recovery evidence cards must not become light islands. */
html[data-theme="dark"] .recovery-explanation-panel,
html[data-theme="dark"] .recovery-trace-grid article,
html[data-theme="dark"] .receipt-session-timeline article,
html[data-theme="dark"] .reading-origin-card,
html[data-theme="dark"] .reading-origin-card li {
  background:var(--dark-row,#0d1721)!important;
  border-color:var(--dark-border,#263644)!important;
  color:var(--dark-text,#edf3f7)!important;
}
html[data-theme="dark"] .recovery-trace-grid article.resolved,
html[data-theme="dark"] .reading-origin-card li.current {
  background:#10271f!important;
  border-color:#285241!important;
}
html[data-theme="dark"] .recovery-trace-grid article.not_resolved,
html[data-theme="dark"] .reading-origin-card.has-history {
  background:#2a2316!important;
  border-color:#655126!important;
}
html[data-theme="dark"] .recovery-trace-grid article b,
html[data-theme="dark"] .reading-origin-card>b,
html[data-theme="dark"] .reading-origin-card li b {
  color:#f1f6fa!important;
}
html[data-theme="dark"] .recovery-trace-grid article small,
html[data-theme="dark"] .reading-origin-card>small,
html[data-theme="dark"] .reading-origin-card>span,
html[data-theme="dark"] .reading-origin-card>em,
html[data-theme="dark"] .reading-origin-card li small {
  color:#aebfcb!important;
}

/* Cross-theme accessibility and responsive contract — visual regression 2026-10-02. */
.side-nav{background:linear-gradient(180deg,#014a7d,#0878a6)}
@media(max-width:1050px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .app-shell{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  .side-nav{position:static!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:14px!important;display:block!important;overflow:hidden!important}
  .side-nav .brand{padding:0 4px 12px!important}
  .side-nav .unit-switch{margin:0 0 12px!important;max-width:100%!important}
  .side-nav nav{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;gap:4px!important;padding:0 0 2px!important;scrollbar-width:thin}
  .side-nav nav p,.side-nav .nav-foot{display:none!important}
  .side-nav nav a{display:flex!important;flex:0 0 auto!important;white-space:nowrap!important;margin:0!important;padding:9px 10px!important}
  .workspace{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:20px 16px 42px!important;overflow-x:hidden}
}
html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .recent-action.primary{background:#0878a6!important;border-color:#1596d2!important;color:#fff!important}
html[data-theme="dark"] .avatar{background:#173448!important;color:#fff!important;border-color:#31506a!important}
html[data-theme="dark"] .ops-hero-copy,
html[data-theme="dark"] .ops-hero-status,
html[data-theme="dark"] .ops-section,
html[data-theme="dark"] .ops-panel,
html[data-theme="dark"] .ops-metric,
html[data-theme="dark"] .ops-activity-grid>div,
html[data-theme="dark"] .ops-insight-list>div{
  background:var(--dark-surface,#101923)!important;
  border-color:var(--dark-border,#263644)!important;
  color:var(--dark-text,#edf3f7)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .ops-hero-copy h2,
html[data-theme="dark"] .ops-hero-status b,
html[data-theme="dark"] .ops-metric-head span,
html[data-theme="dark"] .ops-panel h3,
html[data-theme="dark"] .ops-activity-grid b,
html[data-theme="dark"] .ops-lifecycle-card strong,
html[data-theme="dark"] .ops-lifecycle-card h3{color:var(--dark-text,#edf3f7)!important}
html[data-theme="dark"] .ops-hero-copy .eyebrow,
html[data-theme="dark"] .ops-hero-copy>p:last-child,
html[data-theme="dark"] .ops-hero-status small,
html[data-theme="dark"] .ops-hero-status span:last-child,
html[data-theme="dark"] .ops-activity-grid small,
html[data-theme="dark"] .ops-activity-grid span,
html[data-theme="dark"] .ops-insight-list p{color:#b6c7d3!important}
html[data-theme="dark"] .ops-metric-head em{background:#182633!important;color:#c2d2dd!important}
html[data-theme="dark"] .ops-metric.good .ops-metric-head em{background:#123126!important;color:#8cddb3!important}
html[data-theme="dark"] .ops-metric.watch .ops-metric-head em{background:#332a18!important;color:#f1cf7c!important}
html[data-theme="dark"] .ops-metric.critical .ops-metric-head em{background:#351d1f!important;color:#f2a3a3!important}
html[data-theme="dark"] .ops-metric>.ops-meter{background:#25333e!important}
html[data-theme="dark"] .product-alert.watch{background:#2a2316!important;border-color:#665126!important;color:#f0d38e!important}
html[data-theme="dark"] .product-alert.info{background:#102331!important;border-color:#28516a!important;color:#b8dff0!important}
html[data-theme="dark"] .product-alert.critical{background:#2a1718!important;border-color:#6d3436!important;color:#f0adad!important}
html[data-theme="dark"] .product-alert b,
html[data-theme="dark"] .product-alert span{color:inherit!important}
html[data-theme="dark"] .retention-db-grid article>span{color:#a9bdcb!important}
html[data-theme="dark"] .retention-db-grid article>strong,
html[data-theme="dark"] .retention-db-grid article>b{color:#edf3f7!important}
html[data-theme="dark"] .retention-db-grid article>small{color:#aebfcb!important}
html[data-theme="dark"] .deployment-mode-card em{color:#b8dff0!important}

/* Clinical review dark-mode hard contract — 2026-10-02. */
html[data-theme="dark"] .exam-context,
html[data-theme="dark"] .recovery-explanation-panel>p,
html[data-theme="dark"] .recovery-explanation-panel .section-head h3{
  color:#edf4f8!important;
}
html[data-theme="dark"] .recovery-explanation-panel .section-head small,
html[data-theme="dark"] .recovery-explanation-panel>p:not(:has(b)){
  color:#b7c8d3!important;
}
html[data-theme="dark"] .recovery-trace-grid article{
  background:#101c26!important;
  border:1px solid #314553!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .recovery-trace-grid article b{
  color:#f4f8fb!important;
}
html[data-theme="dark"] .recovery-trace-grid article small{
  color:#b9c9d3!important;
}
html[data-theme="dark"] .recovery-trace-grid article.resolved{
  background:#10271f!important;
  border-color:#34705a!important;
}
html[data-theme="dark"] .recovery-trace-grid article.not_resolved{
  background:#2b2417!important;
  border-color:#785d28!important;
}
html[data-theme="dark"] .evidence-required-notice.operation-notice.warning{
  background:#251f14!important;
  border-color:#705729!important;
  color:#f0e5c9!important;
}
html[data-theme="dark"] .evidence-required-notice b{color:#fff4d8!important}
html[data-theme="dark"] .evidence-required-notice span,
html[data-theme="dark"] .evidence-required-notice small{color:#d8c9a7!important}
html[data-theme="dark"] .evidence-required-notice .button{
  background:#152433!important;
  border-color:#385267!important;
  color:#eef6fb!important;
}

/* Dark theme completeness — newer configuration and learning surfaces. */
html[data-theme="dark"] .capacity-mode,
html[data-theme="dark"] .filter-check,
html[data-theme="dark"] .destination-policy-block,
html[data-theme="dark"] .auto-learning-console,
html[data-theme="dark"] .auto-learning-thresholds,
html[data-theme="dark"] .learning-lifecycle>span,
html[data-theme="dark"] .worklist-role-grid a,
html[data-theme="dark"] .worklist-explain,
html[data-theme="dark"] .reading-policy-explanation,
html[data-theme="dark"] .reading-policy-limit,
html[data-theme="dark"] .driver-capability-controls label {
  background:var(--surface-soft,#0d1721)!important;
  border-color:var(--line,#263744)!important;
  color:var(--ink,#edf3f7)!important;
}
html[data-theme="dark"] .capacity-row,
html[data-theme="dark"] .auto-learning-policy,
html[data-theme="dark"] .learning-candidate>footer,
html[data-theme="dark"] .worklist-role-grid,
html[data-theme="dark"] .filter-check {
  border-color:var(--line,#263744)!important;
}
html[data-theme="dark"] .capacity-mode small,
html[data-theme="dark"] .capacity-note span,
html[data-theme="dark"] .learning-lifecycle small,
html[data-theme="dark"] .auto-learning-thresholds label,
html[data-theme="dark"] .worklist-role-grid small,
html[data-theme="dark"] .worklist-explain p:not(.eyebrow),
html[data-theme="dark"] .reading-policy-explanation,
html[data-theme="dark"] .reading-policy-limit,
html[data-theme="dark"] .driver-capability-controls small {
  color:var(--muted,#aebfcb)!important;
}
html[data-theme="dark"] .learning-lifecycle b,
html[data-theme="dark"] .worklist-role-grid b,
html[data-theme="dark"] .worklist-explain h3,
html[data-theme="dark"] .driver-capability-controls b {
  color:var(--ink,#edf3f7)!important;
}

/* Dark theme hardening — eliminate residual light islands on authenticated surfaces. */
html[data-theme="dark"] .reading-policy-option,
html[data-theme="dark"] .profile-preview-sheet,
html[data-theme="dark"] .preview-band,
html[data-theme="dark"] .evidence-comparison-item,
html[data-theme="dark"] .evidence-pairs>div,
html[data-theme="dark"] .ops-danger-menu[open],
html[data-theme="dark"] .identification-shortcuts,
html[data-theme="dark"] .decision-steps span{
  background:var(--surface-soft,#0d1721)!important;
  border-color:var(--line,#263744)!important;
  color:var(--ink,#edf3f7)!important;
}
html[data-theme="dark"] .reading-policy-option:hover,
html[data-theme="dark"] .pagination-controls button:hover:not(:disabled){background:#122434!important}
html[data-theme="dark"] .pagination-controls button{
  background:#13283a!important;border-color:#31506a!important;color:#d9eaf5!important;
}
html[data-theme="dark"] .pagination-controls button:disabled{
  background:#101820!important;border-color:#263744!important;color:#667988!important;
}
html[data-theme="dark"] .ops-service-note,
html[data-theme="dark"] .ops-service-note.protected,
html[data-theme="dark"] .destination-health-error,
html[data-theme="dark"] .learning-error{
  background:#251f14!important;border-color:#705729!important;color:#f0e5c9!important;
}
html[data-theme="dark"] .destination-health-error,
html[data-theme="dark"] .learning-error{background:#29191b!important;border-color:#754047!important;color:#f2b8bc!important}
html[data-theme="dark"] .stage-history-line span{
  background:#111d27!important;border-color:#2c414f!important;color:#aebfcb!important;
}
html[data-theme="dark"] .evidence-comparison-item>header{border-color:#5f3438!important}
html[data-theme="dark"] .evidence-comparison-item>header b,
html[data-theme="dark"] .evidence-pairs b{color:#edf3f7!important}
html[data-theme="dark"] .evidence-pairs small,
html[data-theme="dark"] .evidence-pairs span{color:#aebfcb!important}
html[data-theme="dark"] .preview-band,
html[data-theme="dark"] .preview-footer{color:#c5d5df!important}

/* Dark theme hardening — remaining state/hover surfaces in authenticated UI. */
html[data-theme="dark"] .resolution-card:hover,
html[data-theme="dark"] .current-logo,
html[data-theme="dark"] .candidate-row.candidate-divergente td,
html[data-theme="dark"] .agenda-candidate-notice{
  background:var(--surface-soft,#0d1721)!important;
  border-color:var(--line,#263744)!important;
  color:var(--ink,#edf3f7)!important;
}
html[data-theme="dark"] .candidate-state.insuficiente,
html[data-theme="dark"] .ops-state-pill.off,
html[data-theme="dark"] .ops-state-pill.paused,
html[data-theme="dark"] .health-insight-list span{
  background:#2b2417!important;color:#e8c77a!important;border-color:#785d28!important;
}
html[data-theme="dark"] .health-insight-list .clear span{
  background:#102838!important;color:#86cdec!important;
}
html[data-theme="dark"] .health-insight-list p,
html[data-theme="dark"] .current-logo small{color:var(--muted,#aebfcb)!important}
html[data-theme="dark"] .resolution-card strong{color:#86cdec!important}


/* Dark theme contrast baseline — screenshots 2026-10-05. Keep component surfaces and text paired. */
html[data-theme="dark"] .access-guide .access-role-grid {background:var(--dark-border)!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .access-guide .access-role-grid article {background:var(--dark-surface)!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .access-guide .access-role-grid h4 {color:var(--dark-text)!important}
html[data-theme="dark"] .access-guide .access-role-grid p {color:#b8c8d5!important}
html[data-theme="dark"] .access-guide .access-transparency {background:var(--dark-row)!important;color:#b8c8d5!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .access-guide .access-transparency b {color:var(--dark-text)!important}
html[data-theme="dark"] .form-stack .check,
html[data-theme="dark"] .form-grid .check,
html[data-theme="dark"] .form-stack .check-card,
html[data-theme="dark"] .form-grid .check-card {background:var(--dark-raised)!important;border-color:#385064!important;color:var(--dark-text)!important}
html[data-theme="dark"] .quick-partial-output {background:var(--dark-surface)!important;border-color:var(--dark-border)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .quick-partial-output p,
html[data-theme="dark"] .quick-partial-output small {color:#b8c8d5!important}
html[data-theme="dark"] .quick-partial-output .compact-form {background:var(--dark-row)!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .quick-partial-output .check {background:var(--dark-raised)!important;color:var(--dark-text)!important}


/* Receipt assembly policy + retention layout — 2026-10-06 */
.incomplete-receipt-policy{margin-bottom:18px}.incomplete-wait-form{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr) auto;gap:16px;align-items:end}.incomplete-wait-form>label{display:grid;gap:6px;font-size:12px;font-weight:800}.number-with-suffix{display:flex;align-items:center;gap:8px}.number-with-suffix input{width:120px}.number-with-suffix b{color:var(--muted);font-size:11px}.incomplete-wait-flow{display:flex;align-items:center;gap:8px;min-width:0;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#f8fbfd}.incomplete-wait-flow span{display:flex;align-items:center;gap:6px;min-width:0;color:#526b80;font-size:10px;line-height:1.3}.incomplete-wait-flow span b{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#e7f2fb;color:#0878c9;font-size:9px}.incomplete-wait-flow i{color:#8aa0b2;font-style:normal}.ops-policy-readonly{display:grid;gap:4px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft,#f8fbfd)}.ops-policy-readonly small{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.ops-policy-readonly b{font-size:18px}.ops-policy-readonly span{font-size:10px;color:var(--muted)}.ops-policy-readonly a{font-weight:800}.retention-planning-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.retention-plan-table,.retention-rule-editor{min-width:0}.retention-rule-editor .form-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.retention-rule-editor .form-stack>button,.retention-rule-editor .field-help{grid-column:1/-1}@media(max-width:980px){.incomplete-wait-form{grid-template-columns:1fr}.incomplete-wait-flow{overflow-x:auto}.retention-rule-editor .form-stack{grid-template-columns:1fr}.retention-rule-editor .form-stack>button,.retention-rule-editor .field-help{grid-column:auto}}html[data-theme="dark"] .incomplete-wait-flow,html[data-theme="dark"] .ops-policy-readonly{background:var(--dark-row)!important;border-color:var(--dark-border)!important}html[data-theme="dark"] .incomplete-wait-flow span{color:#b8c8d5!important}html[data-theme="dark"] .incomplete-wait-flow span b{background:#12314a!important;color:#dff4ff!important}

/* Compact report availability actions */
.recent-report-actions{position:relative}.recent-report-actions summary{list-style:none;cursor:pointer}.recent-report-actions summary::-webkit-details-marker{display:none}.recent-report-actions>div{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;min-width:190px;padding:6px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px rgba(18,42,60,.16)}.recent-report-actions>div a{padding:9px 10px;border-radius:7px;font-size:11px;font-weight:800;white-space:nowrap}.recent-report-actions>div a:hover{background:#eef6fb}.report-state.report-ready{cursor:default}html[data-theme="dark"] .recent-report-actions>div{background:var(--dark-raised)!important;border-color:var(--dark-border)!important}html[data-theme="dark"] .recent-report-actions>div a{color:var(--dark-text)!important}html[data-theme="dark"] .recent-report-actions>div a:hover{background:var(--dark-row)!important}

/* Digital delivery states */
.patient-delivery-panel .row-actions{align-items:center}.delivery-state{display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:800}.delivery-state.good{background:#eef9f2;color:#167345;border-color:#bfe5cd}.delivery-state.info{background:#edf7fd;color:#176a98;border-color:#c5e2f2}.delivery-state.warning{background:#fff7e7;color:#8b5a00;border-color:#efd49a}.delivery-state.muted{background:#f6f8fa;color:#6b7e8d}html[data-theme="dark"] .delivery-state.good{background:#103326!important;color:#b8f3d0!important;border-color:#245b46!important}html[data-theme="dark"] .delivery-state.info{background:#12314a!important;color:#c7eaff!important;border-color:#315a76!important}html[data-theme="dark"] .delivery-state.warning{background:#3e3012!important;color:#ffe3a3!important;border-color:#6d5823!important}html[data-theme="dark"] .delivery-state.muted{background:var(--dark-row)!important;color:#b8c8d5!important;border-color:var(--dark-border)!important}

/* Product consistency — actions and integration settings */
.compact-button{font-family:Manrope,sans-serif!important;font-size:11px!important;font-weight:700!important;line-height:1.2}
.integration-settings-stack{display:grid;gap:18px}.integration-capability-card{min-width:0}.integration-capability-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.integration-capability-card .check-card{min-width:0}.integration-capability-card label small{white-space:normal;overflow-wrap:anywhere;line-height:1.45}.integration-save-bar{display:flex;align-items:center;justify-content:space-between;gap:18px}.integration-save-bar>div:first-child{display:grid;gap:4px}.integration-save-bar small{color:var(--muted)}@media(max-width:1050px){.integration-capability-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.integration-capability-card .form-grid{grid-template-columns:1fr}.integration-save-bar{align-items:stretch;flex-direction:column}.integration-save-bar .row-actions{width:100%}.integration-save-bar .button{flex:1;justify-content:center}}


/* Patient delivery channel controls */
.delivery-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.delivery-channel-card{display:grid;gap:10px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#f8fbfd);min-width:0}.delivery-channel-card>div{display:grid;gap:3px}.delivery-channel-card small{color:var(--muted);font-size:10px}.delivery-channel-card details>summary{cursor:pointer;font-size:11px;font-weight:800;color:var(--accent);list-style:none}.delivery-channel-card details>summary::-webkit-details-marker{display:none}.compact-delivery-form{display:grid;gap:10px;margin-top:10px}.compact-delivery-form label{display:grid;gap:5px;font-size:11px;font-weight:800}.compact-delivery-form .check{font-weight:600}.integration-capability-card .wide-field{grid-column:1/-1}@media(max-width:760px){.delivery-channel-grid{grid-template-columns:1fr}}html[data-theme="dark"] .delivery-channel-card{background:var(--dark-row)!important;border-color:var(--dark-border)!important}html[data-theme="dark"] .delivery-channel-card>div>b,html[data-theme="dark"] .compact-delivery-form label{color:var(--dark-text)!important}html[data-theme="dark"] .delivery-channel-card small{color:#b8c8d5!important}

/* Executive ROI */
.roi-filter-bar{margin-bottom:18px}.roi-filters{grid-template-columns:1.15fr repeat(4,minmax(130px,1fr)) auto;align-items:end}.roi-hero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.roi-hero-card{display:grid;gap:6px;min-height:138px}.roi-hero-card small{text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:800;color:var(--muted)}.roi-hero-card strong{font-size:30px;line-height:1.05}.roi-hero-card span{font-size:11px;line-height:1.45;color:var(--muted)}.roi-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.roi-metric-grid>div{display:grid;gap:4px;padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft,#f8fbfd)}.roi-metric-grid small{font-size:10px;color:var(--muted)}.roi-metric-grid b{font-size:20px}.roi-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.roi-breakdown-list{display:grid;gap:8px}.roi-breakdown-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.roi-breakdown-list span{font-size:11px;color:var(--muted)}.roi-scenario-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.roi-scenario-grid article{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#f8fbfd)}.roi-scenario-grid article small{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.roi-scenario-grid article b{font-size:15px}.roi-scenario-grid article span{font-size:11px;color:var(--muted)}.roi-methodology{margin-top:18px}.roi-cost-form .wide-field{grid-column:1/-1}
html[data-theme="dark"] .roi-metric-grid>div,html[data-theme="dark"] .roi-scenario-grid article{background:var(--dark-row)!important;border-color:var(--dark-border)!important}
@media(max-width:1180px){.roi-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.roi-hero-grid,.roi-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.roi-filters,.roi-hero-grid,.roi-metric-grid,.roi-two-column,.roi-scenario-grid{grid-template-columns:1fr}}
.roi-scenario-chart{margin-top:18px}.roi-scenario-chart .production-bar>div:first-child{flex-wrap:wrap}.roi-scenario-mode{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0 18px;padding:0;border:0;min-width:0}.roi-scenario-mode legend{float:left;margin-right:10px;padding:7px 0;color:var(--muted);font-size:12px;font-weight:700}.roi-scenario-mode label{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft,var(--surface));color:var(--ink);font-size:12px;font-weight:700;cursor:pointer}.roi-scenario-mode label:has(input:checked){border-color:var(--accent,#2780ac);box-shadow:0 0 0 1px var(--accent,#2780ac)}.roi-scenario-mode input{accent-color:var(--accent,#2780ac)}.roi-scenario-mode input:focus-visible{outline:2px solid var(--accent,#2780ac);outline-offset:3px}.roi-scenario-chart .roi-scenario-brl-note:not([hidden]){margin-top:8px}

.roi-opportunity-list{display:grid;gap:9px}.roi-opportunity-list article{display:grid;gap:4px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft,#f8fbfd)}.roi-opportunity-list article b{font-size:12px}.roi-opportunity-list article span{font-size:11px;line-height:1.45;color:var(--muted)}html[data-theme="dark"] .roi-opportunity-list article{background:var(--dark-row)!important;border-color:var(--dark-border)!important}

.work-origin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.work-origin-head nav{display:flex;gap:4px}.work-origin-head nav a{padding:5px 7px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:10px;font-weight:800;text-decoration:none}.work-origin-head nav a.active{background:#e8f4fa;color:#0878c9;border-color:#b9d9ea}@media(max-width:520px){.work-origin-head{align-items:stretch;flex-direction:column}.work-origin-head nav{justify-content:flex-start}}html[data-theme="dark"] .work-origin-head nav a{border-color:var(--dark-border)!important;color:#b8c8d5!important}html[data-theme="dark"] .work-origin-head nav a.active{background:#12314a!important;color:#dff4ff!important;border-color:#315a76!important}

/* Product action typography contract — keep new screens from inventing button fonts. */
:root{
  --reta-action-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --reta-accent:#0878c9;
  --reta-accent-strong:#0b5f9e;
  --reta-accent-soft:#e8f4fa;
  --reta-surface-soft:#f7fafc;
}
.workspace button,
.workspace .button,
.workspace .compact-button,
.workspace .recent-action,
.workspace .filter-chip,
.workspace .top-return,
.workspace .row-actions a,
.workspace .row-actions button,
.workspace .batch-actions button,
.workspace .next-actions button,
.workspace .action-row button,
.workspace .danger-button,
.workspace .link-danger{
  font-family:var(--reta-action-font)!important;
  font-weight:700;
  line-height:1.2;
  letter-spacing:0;
}
.workspace .button{font-size:12px!important}
.workspace .compact-button,
.workspace .recent-action,
.workspace .row-actions a,
.workspace .row-actions button,
.workspace .batch-actions button,
.workspace .next-actions button,
.workspace .action-row button,
.workspace .link-danger{font-size:11px!important}
.workspace .button.primary{
  background:var(--reta-accent)!important;
  border-color:var(--reta-accent)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(8,120,201,.16)!important;
}
.workspace .button.primary:hover{background:var(--reta-accent-strong)!important}
.workspace .button.secondary{
  background:#fff!important;
  border-color:#b7d5e6!important;
  color:#0b5f9e!important;
}

/* Deployment mode must use the product palette, never legacy green styling. */
.deployment-mode-hero{
  background:linear-gradient(135deg,#0b2f5b,#0878c9)!important;
  box-shadow:0 16px 40px rgba(11,47,91,.16)!important;
}
.deployment-mode-hero .eyebrow{color:#c3e6f7!important}
.deployment-mode-hero p,.deployment-mode-hero .release-card small,.deployment-mode-hero .release-card span{color:#d8edf8!important}
.deployment-mode-guide>div,
.deployment-mode-card,
.deployment-mode-save{background:var(--reta-surface-soft)!important;border-color:#d8e5ed!important}
.deployment-mode-card{background:#fff!important}
.deployment-mode-card:hover:not(.unavailable){border-color:#86bdd9!important;box-shadow:0 9px 24px rgba(17,75,108,.08)}
.deployment-mode-card.active{border-color:var(--reta-accent)!important;box-shadow:0 0 0 2px rgba(8,120,201,.12)!important}
.deployment-mode-family{background:var(--reta-accent-soft)!important;color:var(--reta-accent)!important}
.deployment-mode-card em{color:var(--reta-accent)!important}
.deployment-mode-card input[type="radio"]{accent-color:var(--reta-accent)!important}
.deployment-mode-save{background:#f3f8fb!important}
html[data-theme="dark"] .deployment-mode-hero{background:linear-gradient(135deg,#0b2236,#0c5f91)!important}
html[data-theme="dark"] .deployment-mode-guide>div,
html[data-theme="dark"] .deployment-mode-card,
html[data-theme="dark"] .deployment-mode-save{background:var(--dark-surface,#101923)!important;border-color:var(--dark-border,#263644)!important}
html[data-theme="dark"] .deployment-mode-card.active{border-color:#2b9dd3!important;box-shadow:0 0 0 2px rgba(43,157,211,.16)!important}
html[data-theme="dark"] .deployment-mode-family{background:#12314a!important;color:#bde8ff!important}

/* Reta RIS / Digital delivery: stable, non-overlapping responsive grid. */
.integration-settings-stack{display:grid!important;gap:18px!important;min-width:0}
.integration-settings-stack>.surface{min-width:0;overflow:hidden}
.integration-settings-stack .section-head{min-width:0}
.integration-settings-stack .section-head>div{min-width:0}
.integration-settings-stack .section-head h3,
.integration-settings-stack .section-head small{overflow-wrap:anywhere}
.integration-settings-stack .form-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px 16px!important;
  align-items:start!important;
}
.integration-settings-stack .form-grid>label,
.integration-settings-stack .form-grid>.check,
.integration-settings-stack .form-grid>.check-card{min-width:0!important;width:100%!important}
.integration-settings-stack input,
.integration-settings-stack select,
.integration-settings-stack textarea{width:100%!important;max-width:100%!important;min-width:0!important}
.integration-settings-stack label>small,
.integration-settings-stack .check-card small{display:block;overflow-wrap:anywhere;line-height:1.45}
.integration-settings-stack .check-card{align-items:flex-start!important;min-height:100%}
.integration-settings-stack .check-card>span{min-width:0}
.integration-settings-stack .row-actions{align-items:center!important;justify-content:flex-end}
.integration-save-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.integration-save-bar>div:first-child{display:grid;gap:4px;min-width:240px;flex:1}
@media(max-width:900px){
  .integration-settings-stack .form-grid{grid-template-columns:1fr!important}
  .integration-settings-stack .row-actions{justify-content:flex-start}
}
@media(max-width:560px){
  .integration-save-bar{align-items:stretch;flex-direction:column}
  .integration-save-bar .row-actions{width:100%}
  .integration-save-bar .button{flex:1 1 auto;justify-content:center}
}

/* All RIS / Portal provider forms share the same responsive layout contract. */
.integration-capability-card{min-width:0;overflow:hidden}
.integration-capability-card>.section-head{min-width:0}
.integration-capability-card>.section-head>div{min-width:0}
.integration-capability-card>.section-head h3,
.integration-capability-card>.section-head small{overflow-wrap:anywhere}
.integration-capability-card .form-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px 16px!important;
  align-items:start!important;
}
.integration-capability-card .form-grid>label,
.integration-capability-card .form-grid>.check,
.integration-capability-card .form-grid>.check-card,
.integration-capability-card .form-grid>.choice-card,
.integration-capability-card .form-grid>.row-actions{
  min-width:0!important;
  width:100%!important;
}
.integration-capability-card .form-grid input,
.integration-capability-card .form-grid select,
.integration-capability-card .form-grid textarea{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
.integration-capability-card .form-grid label>small,
.integration-capability-card .form-grid .check-card small,
.integration-capability-card .form-grid .choice-card small{
  display:block;
  margin-top:4px;
  overflow-wrap:anywhere;
  line-height:1.45;
}
.integration-capability-card .form-grid .check-card,
.integration-capability-card .form-grid .choice-card{
  align-items:flex-start!important;
  min-height:100%;
}
.integration-capability-card .form-grid .check-card>span,
.integration-capability-card .form-grid .choice-card>span{min-width:0}
.integration-capability-card .form-grid .wide-field,
.integration-capability-card .form-grid>.row-actions{grid-column:1/-1}
.integration-capability-card .form-grid>.row-actions{justify-content:flex-end;margin-top:2px}
.integration-capability-card textarea{min-height:112px;resize:vertical}
@media(max-width:900px){
  .integration-capability-card .form-grid{grid-template-columns:1fr!important}
  .integration-capability-card .form-grid .wide-field,
  .integration-capability-card .form-grid>.row-actions{grid-column:auto}
  .integration-capability-card .form-grid>.row-actions{justify-content:flex-start}
}

/* RIS/Portal integration toggles: fixed checkbox column + flexible copy. */
.integration-toggle{
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  align-items:start!important;
  column-gap:10px!important;
  row-gap:0!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:12px 14px!important;
}
.integration-toggle>input[type="checkbox"]{
  grid-column:1!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin:1px 0 0!important;
  align-self:start!important;
}
.integration-toggle>span{
  grid-column:2!important;
  display:grid!important;
  gap:3px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  overflow:visible!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
.integration-toggle>span>b,.integration-toggle>span>small{width:auto!important;min-width:0!important;white-space:normal!important;word-break:normal!important}

/* Quick correction: explicit decision between Worklist validation and operator confirmation. */
.correction-decision-title{display:grid;gap:3px;margin-top:4px}
.correction-decision-title>b{font-size:14px;color:var(--ink,#163247)}
.correction-decision-title>span{font-size:12px;color:var(--muted,#647785);line-height:1.45}
.correction-choice-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;align-items:stretch}
.correction-decision-card{appearance:none;text-align:left;border:1px solid #bfd4e1;background:#fff;border-radius:14px;padding:14px 16px;display:grid;gap:5px;min-width:0;cursor:pointer;box-shadow:0 4px 14px rgba(22,62,89,.04);font-family:var(--reta-action-font);color:#163247}
.correction-decision-card:hover,.correction-decision-card:focus-visible{border-color:var(--reta-accent,#0878c9);box-shadow:0 0 0 3px rgba(8,120,201,.10);outline:none}
.correction-decision-card.primary{background:var(--reta-accent-soft,#e8f4fa);border-color:#8fc7e3}
.correction-decision-card b{font-size:14px;line-height:1.25}
.correction-decision-card small{font-size:12px;line-height:1.45;color:#526b7b;font-weight:500}
.correction-decision-kicker{font-size:10px;line-height:1.2;text-transform:uppercase;letter-spacing:.06em;color:var(--reta-accent,#0878c9);font-weight:800}
.correction-secondary-action{display:flex;justify-content:flex-start;margin-top:2px}
html[data-theme="dark"] .correction-decision-title>b{color:#edf7fc}
html[data-theme="dark"] .correction-decision-title>span{color:#a9bdc9}
html[data-theme="dark"] .correction-decision-card{background:#101923;border-color:#304454;color:#edf7fc}
html[data-theme="dark"] .correction-decision-card.primary{background:#12314a;border-color:#2b87b6}
html[data-theme="dark"] .correction-decision-card small{color:#b3c7d3}
@media(max-width:760px){.correction-choice-cards{grid-template-columns:1fr}}


/* Scalable authenticated navigation: one-level domain groups, session-persistent. */
.side-nav{overflow:hidden}
.side-nav-menu{min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:3px;scrollbar-width:thin;scrollbar-color:rgba(191,218,231,.28) transparent}
.side-nav-menu>.nav-primary,
.nav-group summary,
.nav-group-items a{font:600 13px/1.35 var(--ui-font)!important;letter-spacing:0}
.nav-group{margin:3px 0;border:1px solid transparent;border-radius:11px}
.nav-group[open]{border-color:rgba(185,216,231,.12);background:rgba(255,255,255,.025)}
.nav-group summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;color:#d1e5ef;border-radius:9px;cursor:pointer;list-style:none;text-transform:none;user-select:none}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary>span{display:flex;align-items:center;gap:10px;min-width:0}
.nav-group summary i{width:16px;color:#9ed8f0;font-style:normal;font-size:14px;text-align:center}
.nav-group summary b{font-size:15px;font-weight:500;transition:transform .16s ease}
.nav-group[open] summary{color:#f5fbff}
.nav-group[open] summary b{transform:rotate(180deg)}
.nav-group-items{display:grid;gap:1px;padding:0 5px 7px 10px}
.nav-group-items a{gap:10px;padding:8px 9px;margin:0}
.nav-group-items a.active{font-weight:600!important}
.nav-group-items a span{min-width:0}
.nav-group-items a.active{box-shadow:inset 3px 0 #42b8e8}
html[data-theme="dark"] .nav-group[open]{border-color:rgba(86,145,177,.24);background:rgba(32,76,104,.16)}
html[data-theme="dark"] .nav-group summary{color:#c0d2de}
html[data-theme="dark"] .nav-group summary i{color:#8ac9e8}
html[data-theme="dark"] .nav-group[open] summary{color:#f3f8fb}
@media(max-width:1050px){
  .side-nav-menu{display:flex!important;overflow-x:auto!important;gap:5px;align-items:flex-start;padding:0 0 4px}
  .side-nav-menu>.nav-primary{flex:0 0 auto;white-space:nowrap}
  .nav-group{flex:0 0 auto;margin:2px 0;border:1px solid rgba(208,239,225,.14)}
  .nav-group summary{white-space:nowrap;padding:10px 12px}
  .nav-group-items{min-width:220px;padding:4px 7px 7px;border-top:1px solid rgba(208,239,225,.12)}
  .nav-group:not([open]) .nav-group-items{display:none}
  .nav-group-items a{white-space:nowrap!important}
  .nav-foot{display:none}
}

/* Unknown inbound source: visible, actionable, never silently auto-authorized. */
.source-link-alert{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:16px;padding:18px 20px!important;border-left:4px solid #d99318!important;background:linear-gradient(100deg,#fffaf0,#fff)!important}
.source-link-alert h3{margin:3px 0 5px;color:#17395f;font-size:17px}
.source-link-alert p:not(.eyebrow){margin:0;max-width:900px;color:#5f6f7d;font-size:12px;line-height:1.5}
.source-suggestion-panel{margin-bottom:18px;padding:0!important;overflow:hidden}
.source-suggestion-panel>.section-head{padding:20px 21px 15px;margin:0;border-bottom:1px solid var(--line)}
.source-suggestion-panel>.section-head p:last-child{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.source-suggestion-list{display:grid}
.source-suggestion-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;padding:14px 20px;border-top:1px solid var(--line)}
.source-suggestion-row:first-child{border-top:0}
.source-suggestion-row small{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}
html[data-theme="dark"] .source-link-alert{background:linear-gradient(100deg,#241f16,#101923)!important;border-color:#a8751d!important}
html[data-theme="dark"] .source-link-alert h3{color:#edf7fc}
html[data-theme="dark"] .source-link-alert p:not(.eyebrow){color:#b5c5cf}
@media(max-width:760px){.source-link-alert{align-items:flex-start;flex-direction:column}.source-suggestion-row{grid-template-columns:42px minmax(0,1fr)}.source-suggestion-row>.button{grid-column:1/-1;justify-content:center}}

/* Workbench regression guard: keep state copy inside its identity column. */
.work-recent-main{align-items:start}
.work-recent-identity{min-width:0;overflow:hidden}
.work-recent-identity>small,
.work-recent-identity .operation-hint,
.work-recent-identity .human-next-action{
  display:block!important;
  max-width:100%!important;
  margin-left:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere;
  line-height:1.38;
}
.work-recent-identity .operation-hint{margin-top:5px!important}
.work-recent-identity .human-next-action{margin-top:5px!important}
.work-recent-meta{min-width:0;align-self:start;padding-top:1px}

/* Workbench row state: status, explanation and next action each own their line.
   Prevent long operational copy from colliding with confidence/actions columns. */
.work-recent-identity .operation-state{display:flex!important;width:max-content;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
.work-recent-identity .operation-hint{display:block!important;margin:5px 0 0!important;max-width:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35}
.work-recent-identity .human-next-action{display:block!important;margin:5px 0 0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35}
.work-recent-identity{padding-right:8px}

/* Dark-mode final surface contract — automation, policy and analytics.
   Keep every nested card inside the same dark hierarchy so legacy light
   declarations cannot reintroduce washed-out islands or low-contrast text. */
html[data-theme="dark"] .automation-command-score,
html[data-theme="dark"] .autonomy-scoreboard,
html[data-theme="dark"] .automation-period-bar,
html[data-theme="dark"] .automation-kpi-grid article,
html[data-theme="dark"] .automation-panel,
html[data-theme="dark"] .source-performance-table>div,
html[data-theme="dark"] .source-performance-table .head,
html[data-theme="dark"] .learning-list>a,
html[data-theme="dark"] .quality-action-list>a,
html[data-theme="dark"] .reason-list>div,
html[data-theme="dark"] .release-policy-summary-cell,
html[data-theme="dark"] .release-policy-detail-panel,
html[data-theme="dark"] .release-policy-lane,
html[data-theme="dark"] .release-policy-risk-block {
  background:#101923!important;
  border-color:#2b3d4b!important;
  color:#edf3f7!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .automation-panel>header,
html[data-theme="dark"] .autonomy-scoreboard .section-head,
html[data-theme="dark"] .release-policy-details,
html[data-theme="dark"] .source-performance-table .head {
  background:#15212d!important;
  border-color:#2b3d4b!important;
}
html[data-theme="dark"] .automation-command-score small,
html[data-theme="dark"] .automation-command-score span,
html[data-theme="dark"] .autonomy-scoreboard small,
html[data-theme="dark"] .automation-panel p,
html[data-theme="dark"] .automation-panel small,
html[data-theme="dark"] .automation-kpi-grid small,
html[data-theme="dark"] .automation-kpi-grid span,
html[data-theme="dark"] .source-performance-table span,
html[data-theme="dark"] .learning-list small,
html[data-theme="dark"] .learning-list em,
html[data-theme="dark"] .quality-action-list small,
html[data-theme="dark"] .quality-action-list em,
html[data-theme="dark"] .release-policy-summary-cell small,
html[data-theme="dark"] .release-policy-summary-cell span {
  color:#b7c7d2!important;
}
html[data-theme="dark"] .automation-command-score strong,
html[data-theme="dark"] .autonomy-scoreboard strong,
html[data-theme="dark"] .automation-kpi-grid strong,
html[data-theme="dark"] .automation-panel h3,
html[data-theme="dark"] .source-performance-table b,
html[data-theme="dark"] .learning-list b,
html[data-theme="dark"] .quality-action-list b,
html[data-theme="dark"] .release-policy-summary-cell b {
  color:#f2f7fa!important;
}
html[data-theme="dark"] .automation-period-bar nav a {
  background:#0d1721!important;
  border-color:#304555!important;
  color:#b9cbd7!important;
}
html[data-theme="dark"] .automation-period-bar nav a.active {
  background:#123a55!important;
  border-color:#2a8fc2!important;
  color:#f4fbff!important;
}

/* Theme control: explicit visual-theme wording avoids confusion with the commercial Light profile. */
.theme-toggle{display:inline-flex;align-items:center;gap:7px;min-width:0}
.theme-toggle-label{font-size:11px;font-weight:800;white-space:nowrap}
.theme-toggle-icon{font-size:15px;line-height:1}
@media(max-width:760px){.theme-toggle-label{display:none}}

/* Quick review filters: independent grid prevents generic inline-form widths from overlapping. */
.quick-review-filters{min-width:0;display:grid;gap:14px}
.quick-review-filter-grid{display:grid;grid-template-columns:minmax(130px,1fr) minmax(115px,1fr) minmax(210px,2fr) auto auto;align-items:end;gap:12px;min-width:0;width:100%}
.quick-review-filter-grid>label,.quick-review-jump>label{display:grid;gap:6px;min-width:0;width:100%;font-size:12px;font-weight:700;color:var(--muted)}
.quick-review-filter-grid input,.quick-review-filter-grid select,.quick-review-jump select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.quick-review-filter-grid>.button,.quick-review-jump>.button{min-width:0;white-space:normal;text-align:center;align-self:end}
.quick-review-jump{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;min-width:0;width:100%;padding-top:12px;border-top:1px solid var(--line)}
.quick-review-jump>input[type=hidden]{display:none}
@media(max-width:1100px){.quick-review-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-review-filter-grid>label:nth-child(3){grid-column:1/-1}.quick-review-filter-grid>.button{justify-self:stretch}}
@media(max-width:560px){.quick-review-filter-grid,.quick-review-jump{grid-template-columns:minmax(0,1fr)}.quick-review-filter-grid>label:nth-child(3){grid-column:auto}.quick-review-filter-grid>.button,.quick-review-jump>.button{width:100%}}

/* Independently laid-out human triage controls; no overlapping inline forms. */
.review-queue-filter-wrap{min-width:0;margin:14px 0 18px}
.review-queue-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;width:100%;min-width:0}
.review-queue-filters>label{display:grid;gap:6px;min-width:0;color:var(--muted);font-size:12px;font-weight:700}
.review-queue-filters input,.review-queue-filters select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.review-queue-filters>.button{width:100%;text-align:center;white-space:normal}
@media(max-width:980px){.review-queue-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.review-queue-filters{grid-template-columns:minmax(0,1fr)}}

/* Learning candidate browsing is a compact, responsive grid instead of a long document. */
.learning-list-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px}
.learning-list-filters>label{min-width:0;display:grid;gap:6px}
.learning-list-filters input,.learning-list-filters select{box-sizing:border-box;width:100%;min-width:0}
.learning-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:10px 0}
@media(max-width:900px){.learning-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.learning-list-filters{grid-template-columns:minmax(0,1fr)}.learning-pagination{flex-wrap:wrap;justify-content:center}}
/* Production report: compact, responsive and printable */
.production-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.production-filters label{display:grid;gap:5px;min-width:0}.production-filters input,.production-filters select{width:100%;min-width:0;box-sizing:border-box}
.production-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:15px 0}
.production-kpis article{display:grid;gap:10px}.production-kpis strong{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.1;color:var(--ink)}
.production-kpis small,.production-kpis article>span{color:var(--muted)}
.production-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}
.production-bar{margin:14px 0}.production-bar>div:first-child{display:flex;justify-content:space-between;gap:12px}
.production-track{height:10px;border-radius:10px;border:1px solid var(--line);background:var(--surface-soft,var(--surface));overflow:hidden;margin-top:5px}
.production-track span{display:block;height:100%;border-radius:10px;background:var(--accent,#2780ac)}
@media(max-width:900px){.production-kpis,.production-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.production-filters,.production-kpis,.production-panels{grid-template-columns:1fr}}
@media print{.sidebar,.production-filters{display:none!important}.production-track{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.learning-impact-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}
.learning-impact-summary article{display:grid;gap:8px;min-width:0}
.learning-impact-summary strong{font-size:clamp(1.5rem,3vw,2.3rem);line-height:1.1;color:var(--ink)}
.learning-impact-summary small,.learning-impact-summary article>span{color:var(--muted)}
@media(max-width:1000px){.learning-impact-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:590px){.learning-impact-summary{grid-template-columns:1fr}}
.production-report-fact{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid var(--line);padding:11px 0}
.production-report-fact>span{overflow-wrap:anywhere}.production-report-fact>b{color:var(--ink)}

/* Single-screen identification: operator decision appears before technical detail. */
.identity-primary-workspace{display:block!important;max-width:100%}
.identity-primary-workspace>article{width:100%;margin-bottom:14px}
.identity-primary-workspace .correction-evidence-grid{grid-template-columns:minmax(280px,.85fr) minmax(380px,1.15fr)}
.identity-primary-workspace .correction-evidence{top:12px}
.identity-inline-agenda{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#f7fafb)}
.identity-inline-agenda .button{justify-self:start;max-width:100%;white-space:normal;text-align:left}
.identity-support-details{margin-top:12px}.identity-support-details>summary{cursor:pointer;font-weight:700;color:var(--ink);padding:8px}
.identity-support-details>section{margin-top:12px}
@media(max-width:1100px){.identity-primary-workspace .correction-evidence-grid{grid-template-columns:1fr}}

/* Identification entry should foreground clinical evidence, not filters or step decoration. */
.compact-review-navigation{padding:10px 16px!important;margin-bottom:8px}.compact-review-navigation>summary{cursor:pointer;color:var(--ink);font-weight:750}.compact-review-navigation[open]>summary{margin-bottom:12px}.review-mode-bar{padding:10px 15px;margin-bottom:8px}.review-mode-bar .decision-lead{font-size:12px;line-height:1.35;margin:4px 0}.review-mode-content .quick-exam-head{margin-bottom:8px}

/* RETA identity evidence: corporate blue for correspondence, warm amber for
   caution and red for disagreement. The percentage never signals approval. */
.identity-equivalence{--equivalence-blue:var(--forest,#0c5fa5);--equivalence-warn:var(--amber,#a85b00);--equivalence-error:var(--red,#bf3636);margin-top:12px;padding:12px;border:1px solid #c9deeb;border-radius:11px;background:#f4f9fd;max-width:100%;min-width:0}
.identity-equivalence-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#173e5d;font-size:12px}
.identity-equivalence-head b{font-size:16px;color:var(--equivalence-blue);font-variant-numeric:tabular-nums;text-align:right}
.identity-equivalence.unmeasured .identity-equivalence-head b{font-size:12px;color:var(--equivalence-warn)}
.identity-equivalence-track{height:9px;overflow:hidden;border-radius:20px;background:#dce9f2;margin:9px 0 7px}
.identity-equivalence-fill{display:block;height:100%;border-radius:20px;background:var(--equivalence-blue)}
.identity-equivalence-fill.has-divergence{background:var(--equivalence-warn)}
.identity-equivalence-track.is-unknown{background:repeating-linear-gradient(110deg,#d7e3ed 0 10px,#ecf3f8 10px 20px)}
.identity-equivalence>small{display:block;font-size:11px;line-height:1.4;color:#536b80}
.identity-equivalence-fields{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.equivalence-field{display:inline-flex;align-items:center;padding:3px 7px;border-radius:7px;font-size:10px;font-weight:700;line-height:1.35}
.equivalence-field.agrees{color:#014a7d;background:#e0eef9}
.equivalence-field.differs{color:#a12e2e;background:#fdecec}
.equivalence-field.unknown{color:#695e49;background:#f3eee4}
html[data-theme="dark"] .identity-equivalence{background:#152838;border-color:#35566c}
html[data-theme="dark"] .identity-equivalence-head,html[data-theme="dark"] .identity-equivalence>small{color:#d5e4ef!important}
html[data-theme="dark"] .identity-equivalence-head b{color:#8ccaff!important}
html[data-theme="dark"] .identity-equivalence.unmeasured .identity-equivalence-head b{color:#ffd28b!important}
html[data-theme="dark"] .identity-equivalence-track{background:#304758}
html[data-theme="dark"] .identity-equivalence-track.is-unknown{background:repeating-linear-gradient(110deg,#314656 0 10px,#233747 10px 20px)}
html[data-theme="dark"] .equivalence-field.agrees{color:#a8d9ff;background:#1d4565}
html[data-theme="dark"] .equivalence-field.differs{color:#ffc5be;background:#592d32}
html[data-theme="dark"] .equivalence-field.unknown{color:#ded2b8;background:#453e31}

/* Persistent, evidence-driven status panel. Never animate invented progress. */
.review-activity-panel{position:relative;z-index:19;margin:8px 0 12px;padding:14px 16px;border:1px solid #a7cbe3;border-radius:14px;background:#eff7fd;color:#173c59;box-shadow:0 5px 14px rgba(16,71,112,.07)}
.review-activity-panel[hidden]{display:none!important}.review-activity-panel>b{font-size:14px}.review-activity-panel p{margin:4px 0 10px;font-size:12px;line-height:1.5}
.review-activity-steps{display:flex;gap:6px;flex-wrap:wrap}.review-activity-steps span{border:1px solid #c9dce9;background:#fff;color:#526d81;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:750}
.review-activity-steps span[data-phase="active"]{color:#014a7d;border-color:#0c5fa5;background:#e0eff9}.review-activity-steps span[data-phase="done"]{color:#014a7d;border-color:#9cc4dd;background:#cfe8f8}.review-activity-steps span[data-phase="error"]{color:#bf3636;border-color:#bf3636;background:#fdecec}
.quick-secondary-consultation{margin:8px 0;padding:8px 12px;border:1px solid #d8e5ec;border-radius:10px}.quick-secondary-consultation summary{cursor:pointer;color:#014a7d;font-size:12px;font-weight:700}.quick-secondary-consultation p{font-size:11px;line-height:1.5;color:var(--muted)}
html[data-theme="dark"] .review-activity-panel{background:#142b40;border-color:#355d78;color:#e1eff8}html[data-theme="dark"] .review-activity-steps span{background:#1b3245;border-color:#35536c;color:#cedfea}html[data-theme="dark"] .review-activity-steps span[data-phase="active"],html[data-theme="dark"] .review-activity-steps span[data-phase="done"]{background:#214b67;color:#b5e2ff}html[data-theme="dark"] .quick-secondary-consultation{border-color:#35536c}html[data-theme="dark"] .quick-secondary-consultation summary{color:#a3d6f8}

/* Shared correction workspace: evidence and form before suggestions/history. */
.review-mode-content .clinical-history-secondary{grid-column:1/-1;align-self:start;margin-top:3px}
.review-mode-content .recurring-operator-hint{grid-column:1/-1;border:1px solid #dae7ef;border-radius:10px;padding:9px;margin-bottom:8px}
.review-mode-content .recurring-operator-hint>summary{cursor:pointer;color:#014a7d;font-size:12px;font-weight:700}
.review-mode-content .recurring-operator-hint>.operation-notice{margin-top:9px}
.review-mode-content>.quick-exam>.review-purpose{grid-column:1/-1}
@media(min-width:1050px){.review-mode-content .quick-preview-section{grid-row:auto / span 4}}
html[data-theme="dark"] .review-mode-content .recurring-operator-hint{border-color:#345164}
html[data-theme="dark"] .review-mode-content .recurring-operator-hint>summary{color:#a3d6f8}
.quick-identification-choices{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 11px}
.quick-identification-choices .button{flex:1 1 auto;min-width:128px;white-space:normal;text-align:center;justify-content:center;font-size:11px}
.quick-identification-choices .button:disabled{opacity:.56;cursor:not-allowed}
html[data-theme="dark"] .quick-identification-choices .button{background:#1e3d56;color:#d4ecff;border-color:#416780}
/* First-viewport candidate summaries: source, agreement and decision stay beside image. */
.quick-top-evidence{display:flex;gap:8px;overflow-x:auto;padding:2px 0 9px;scrollbar-width:thin;max-width:100%}
.quick-top-source{min-width:192px;flex:1 0 192px;max-width:280px;display:flex;flex-direction:column;gap:4px;padding:9px;border:1px solid #cbdfe9;background:#f4f9fc;border-radius:10px}
.quick-top-source .source-name{color:#0c5fa5;text-transform:uppercase;font-weight:800;font-size:10px;letter-spacing:.03em}
.quick-top-source b{font-size:12px;line-height:1.3;color:#173e5d;overflow-wrap:anywhere}.quick-top-source small{font-size:10px;color:#526b80;line-height:1.4}
.quick-top-source .source-equivalence{font-size:11px;color:#0c5fa5;font-weight:700}
.quick-top-source .button{font-size:11px;white-space:normal;margin-top:auto}
html[data-theme="dark"] .quick-top-source{background:#172c3d;border-color:#36586d}
html[data-theme="dark"] .quick-top-source b{color:#d9eaf5}html[data-theme="dark"] .quick-top-source .source-name,html[data-theme="dark"] .quick-top-source .source-equivalence{color:#93cfff}html[data-theme="dark"] .quick-top-source small{color:#b5c8d5}

/* On the shared clinical review, show the actual page at a readable scale;
   the tiny overview tile was wasting most of the evidence column. */
@media(min-width:1050px){
  .review-mode-content .quick-preview-section .quick-page-card{flex:0 0 clamp(320px,54%,530px)}
  .review-mode-content .quick-preview-section .quick-page-card>a{height:min(66vh,620px)}
  .review-mode-content .quick-preview-section .quick-page-card img{object-fit:contain}
}
@media(max-width:1049px){
  .review-mode-content .quick-preview-section .quick-page-card{flex:0 0 min(78vw,360px)}
  .review-mode-content .quick-preview-section .quick-page-card>a{height:min(54vh,460px)}
}

/* 2026-10-12 Desktop correction: one continuous right-hand column.
   A grid row-span on the sticky preview created large empty tracks below it. */
.review-mode-content .quick-decision-column{display:grid;gap:12px;min-width:0;align-content:start}
.review-mode-content .quick-decision-column>.quick-correction,
.review-mode-content .quick-decision-column>.quick-candidates{grid-column:auto;min-width:0}
@media(min-width:1050px){
  .review-mode-content>.quick-exam>.quick-preview-section{grid-column:1;grid-row:auto;align-self:start;min-width:0}
  .review-mode-content>.quick-exam>.quick-decision-column{grid-column:2;grid-row:auto;align-self:start;min-width:0}
  .review-mode-content>.quick-exam>.clinical-history-secondary,
  .review-mode-content>.quick-exam>.review-purpose{grid-column:1/-1}
}
@media(max-width:1049px){
  .review-mode-content>.quick-exam>.quick-preview-section{position:relative;top:auto;max-height:none;overflow:visible}
  .review-mode-content>.quick-exam>.quick-decision-column{width:100%}
}

/* Clinical review feedback stays at the operator's action point in both
   fullscreen quick review and the Central dashboard drawer. */
.quick-correction .quick-inline-result,
.quick-drawer-feedback{display:block;margin:8px 0 10px;padding:12px 14px;border-radius:10px;background:#e9f4fd;color:#07548b;border:1px solid #accfe8;font-size:13px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.quick-inline-result[hidden]{display:none!important}
.quick-correction .quick-inline-result.error{background:#fff1ee;color:#9c322b;border-color:#e9aaa2}
html[data-theme="dark"] .quick-correction .quick-inline-result{background:#163c56;border-color:#437691;color:#c1e6ff}
html[data-theme="dark"] .quick-correction .quick-inline-result.error{background:#4c272c;border-color:#a65459;color:#ffd4cd}

/* A single clinical explanation shared by all entry points. */
.quick-reading-overview{border:1px solid #bdd9ec;background:#f3f9fc;border-radius:12px;padding:12px;margin:8px 0 12px;color:#173e5d}
.quick-reading-summary{display:grid;gap:3px}.quick-reading-summary small{color:#587287;font-size:11px}
.quick-reading-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.quick-reading-field{display:grid;gap:2px;padding:8px 10px;border-radius:8px;border:1px solid #c9e0ed;min-width:0}
.quick-reading-field span{font-size:10px;font-weight:700;color:#4c657a}.quick-reading-field strong{font-size:12px;overflow-wrap:anywhere}
.quick-reading-field.missing{background:#fff8e9;border-color:#edc98a}.quick-reading-field.missing strong{color:#8c5909}
.quick-reading-field.observed{background:#e9f4fc;color:#123e60}
.quick-next-action,.quick-blocker-reason{padding:9px 11px;border-left:3px solid #0c6aa7;background:#eff7fc;border-radius:5px;margin:9px 0;font-size:12px;line-height:1.45}
.quick-equivalence-empty{display:grid;gap:3px;margin-top:8px;padding:9px;background:#e8f2fa;border-radius:7px;font-size:11px}.quick-equivalence-empty b{font-size:12px}.quick-equivalence-empty small{color:#547086}
@media(max-width:560px){.quick-reading-fields{grid-template-columns:1fr}}
html[data-theme="dark"] .quick-reading-overview{background:#193245;color:#d5eafb;border-color:#42657d}
html[data-theme="dark"] .quick-reading-summary small,html[data-theme="dark"] .quick-reading-field span,html[data-theme="dark"] .quick-equivalence-empty small{color:#b8cbdc}
html[data-theme="dark"] .quick-reading-field.observed,html[data-theme="dark"] .quick-equivalence-empty{background:#214660;color:#e3f1fc}
html[data-theme="dark"] .quick-reading-field.missing{background:#4d3a25;border-color:#8e7041}
html[data-theme="dark"] .quick-reading-field.missing strong{color:#ffe0a9}
html[data-theme="dark"] .quick-next-action,html[data-theme="dark"] .quick-blocker-reason{background:#183b52;color:#daeefd}

/* Source-first identification: evidence shown before asking the operator to search. */
.quick-candidates-found{grid-column:1/-1;display:grid;gap:3px;border-left:3px solid #0c6aa7;padding:7px 10px;background:#eaf5fc;border-radius:6px;color:#173e5d}
.quick-candidates-found b{font-size:14px}.quick-candidates-found small{font-size:11px;color:#47667e}
html[data-theme="dark"] .quick-candidates-found{background:#1e415b;color:#d9eeff}html[data-theme="dark"] .quick-candidates-found small{color:#bdd5e7}

/* Elegant, audited learning funnel; restrained RETA palette, no false ROI claims. */
.learning-impact-surface{margin:16px 0;padding:21px!important;border-radius:16px;background:linear-gradient(115deg,#f4f9fd,#eaf3fb);border:1px solid #bfd8e9}
.learning-impact-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px}.learning-impact-head h3{font-size:19px;color:#153e5d;margin:3px 0 5px}.learning-impact-head p{color:#536d83;font-size:12px;margin:0}
.learning-impact-rate{display:grid;gap:3px;text-align:right}.learning-impact-rate small,.learning-impact-rate span{font-size:11px;color:#55748c}.learning-impact-rate strong{font-size:31px;font-weight:800;color:#075c94;font-variant-numeric:tabular-nums}
.learning-impact-track{height:12px;background:#d3e5f2;border-radius:22px;overflow:hidden;margin:19px 0}.learning-impact-track span{display:block;height:100%;background:linear-gradient(90deg,#0b5990,#2784ba);border-radius:22px}
.learning-impact-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.learning-impact-metrics>div{display:grid;gap:4px;padding:12px;background:#fff;border:1px solid #cfdfeb;border-radius:11px}.learning-impact-metrics small,.learning-impact-metrics span{font-size:11px;color:#5a7186}.learning-impact-metrics strong{font-size:23px;color:#154c73;font-variant-numeric:tabular-nums}
.learning-impact-caption{font-size:11px!important;color:#5c7181!important;margin:14px 0 0!important;line-height:1.5}
@media(max-width:720px){.learning-impact-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-impact-rate{text-align:left}}
html[data-theme="dark"] .learning-impact-surface{background:linear-gradient(115deg,#172e42,#213f55);border-color:#3b627c}html[data-theme="dark"] .learning-impact-head h3,html[data-theme="dark"] .learning-impact-rate strong{color:#b6e1ff}html[data-theme="dark"] .learning-impact-head p,html[data-theme="dark"] .learning-impact-rate small,html[data-theme="dark"] .learning-impact-rate span,html[data-theme="dark"] .learning-impact-caption{color:#bdccdc!important}html[data-theme="dark"] .learning-impact-metrics>div{background:#1b3449;border-color:#3b5c75}html[data-theme="dark"] .learning-impact-metrics strong{color:#c0e7ff}html[data-theme="dark"] .learning-impact-metrics small,html[data-theme="dark"] .learning-impact-metrics span{color:#baccdc}

/* Executive learning funnel: auditable stages, calm corporate aesthetic. */
.learning-funnel{padding:22px!important;margin:16px 0;border:1px solid #c5ddeb;border-radius:16px;background:linear-gradient(130deg,#ffffff,#f3f9fd)}
.learning-funnel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.learning-funnel-heading h3{font-size:19px;color:#174663;margin:2px 0 5px}.learning-funnel-heading p{font-size:12px;color:#536d80;margin:0}.learning-funnel-stamp{padding:6px 10px;border:1px solid #b7d8ed;color:#22618b;border-radius:30px;font-size:11px;font-weight:700}
.learning-funnel-flow,.learning-funnel-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.learning-funnel-step{padding:14px;border:1px solid #c9dfec;border-radius:12px;background:#f7fbfe}.learning-step-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.learning-step-head span{font-size:12px;font-weight:700;color:#315f7b}.learning-step-head strong{font-size:28px;color:#125d91;font-variant-numeric:tabular-nums}.learning-step-track{height:9px;border-radius:9px;background:#d8e9f4;overflow:hidden;margin:12px 0}.learning-step-track span{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#156497,#39a0d2)}.learning-funnel-step small{font-size:11px;line-height:1.5;color:#536b7e}
.learning-funnel-results article{display:grid;gap:6px;border-top:3px solid #1975a9;padding:12px;background:#edf6fc;border-radius:0 0 10px 10px}.learning-funnel-results small{font-size:11px;font-weight:700;color:#396785}.learning-funnel-results strong{font-size:31px;color:#0b5f93;line-height:1.1;font-variant-numeric:tabular-nums}.learning-funnel-results span,.learning-funnel-footnote{font-size:11px;color:#526c7f;line-height:1.5}.learning-funnel-footnote{margin:14px 0 0}
@media(max-width:800px){.learning-funnel-flow,.learning-funnel-results{grid-template-columns:1fr}}
html[data-theme="dark"] .learning-funnel{background:linear-gradient(135deg,#192f42,#213c50);border-color:#49677d}html[data-theme="dark"] .learning-funnel-step{background:#1d3a50;border-color:#476981}html[data-theme="dark"] .learning-funnel-results article{background:#1c405b}html[data-theme="dark"] .learning-funnel-heading h3,html[data-theme="dark"] .learning-step-head strong,html[data-theme="dark"] .learning-funnel-results strong{color:#c2e5ff}html[data-theme="dark"] .learning-funnel-heading p,html[data-theme="dark"] .learning-funnel-step small,html[data-theme="dark"] .learning-funnel-results span,html[data-theme="dark"] .learning-funnel-footnote,html[data-theme="dark"] .learning-funnel-results small,html[data-theme="dark"] .learning-step-head span{color:#c2d6e6}

/* Historical supplier invoice is observational evidence, never assumed ROI. */
.roi-invoice-benchmark{padding:20px!important;margin:16px 0;border:1px solid #bdd8ea;border-radius:16px;background:linear-gradient(125deg,#f3f9fe,#fff)}
.roi-invoice-benchmark h3{margin:2px 0 5px;color:#194e70}.roi-invoice-period{font-size:12px;color:#56738a;margin:5px 0 12px}
.roi-invoice-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.roi-invoice-figures article{display:grid;gap:7px;background:#fff;border:1px solid #cce0ed;border-radius:12px;padding:14px}.roi-invoice-figures small,.roi-invoice-figures span{color:#536d83;font-size:11px}.roi-invoice-figures strong{color:#0b6098;font-size:clamp(20px,2vw,29px);font-variant-numeric:tabular-nums}
.roi-invoice-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;font-size:12px}.roi-invoice-breakdown span{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #d7e4ee;padding:8px 0}.roi-invoice-disclaimer{background:#e9f3fa;border-left:3px solid #236d9e;border-radius:6px;padding:12px;font-size:12px;line-height:1.5;color:#31536f}.roi-invoice-entry{margin-top:14px}.roi-invoice-entry summary{cursor:pointer;font-weight:700;color:#155b86}
@media(max-width:780px){.roi-invoice-figures,.roi-invoice-breakdown{grid-template-columns:1fr}}
html[data-theme="dark"] .roi-invoice-benchmark{background:linear-gradient(125deg,#152e42,#203d50);border-color:#476a83}html[data-theme="dark"] .roi-invoice-benchmark h3,html[data-theme="dark"] .roi-invoice-figures strong{color:#c6e8ff}html[data-theme="dark"] .roi-invoice-figures article{background:#18394f;border-color:#426783}html[data-theme="dark"] .roi-invoice-figures small,html[data-theme="dark"] .roi-invoice-figures span,html[data-theme="dark"] .roi-invoice-period{color:#c2d7e6}html[data-theme="dark"] .roi-invoice-disclaimer{background:#183b54;color:#d7ebff}html[data-theme="dark"] .roi-invoice-entry summary{color:#b6dfff}

/* Candidate review: readable, responsive cards without percentage wrapping. */
.quick-top-evidence{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible;align-items:stretch}
.quick-top-evidence>.quick-candidates-found{grid-column:1/-1}
.quick-top-evidence>.quick-top-source{box-sizing:border-box;min-width:0;max-width:none;width:100%;flex:none;padding:14px;gap:8px}
.quick-top-source .identity-equivalence-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.quick-top-source .identity-equivalence-head strong{min-width:0}
.quick-top-source .identity-equivalence-head b{white-space:nowrap;word-break:normal;overflow-wrap:normal;min-width:3.5ch;text-align:right;font-size:16px}
.quick-top-source .identity-equivalence{margin-top:6px}
@media(max-width:720px){.quick-top-evidence{grid-template-columns:minmax(0,1fr)}.quick-top-evidence>.quick-candidates-found{grid-column:1}}

/* Keep numeric match percentages together in narrow candidate cards. */
.quick-top-evidence .quick-top-source .identity-equivalence-head>b{display:inline-block!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important;min-width:4ch!important;flex-shrink:0!important;text-align:right!important}
.quick-top-evidence .quick-top-source .identity-equivalence-head{grid-template-columns:minmax(0,1fr) max-content!important}

/* Quick review: separate identity confirmation from optional receipt closure. */
.quick-correction-form .quick-decision-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.quick-correction-form .quick-decision-state{display:grid;align-content:start;gap:6px;min-width:0;padding:13px 15px;border:1px solid #d5e2e9;border-radius:12px;background:#f5f9fc}
.quick-correction-form .quick-decision-state b{font-size:13px;line-height:1.35;color:#203e55;overflow-wrap:anywhere}
.quick-correction-form .quick-decision-state span{font-size:12px;line-height:1.5;color:#486276;overflow-wrap:anywhere}
.quick-correction-form label.quick-checkbox-choice{display:flex!important;align-items:flex-start!important;gap:12px!important;padding:13px 15px!important;min-width:0;max-width:100%;white-space:normal}
.quick-correction-form label.quick-checkbox-choice>input[type=checkbox]{flex:0 0 19px!important;width:19px!important;height:19px!important;margin:3px 0 0!important}
.quick-correction-form label.quick-checkbox-choice>span{display:grid;gap:5px;flex:1 1 0;min-width:0;white-space:normal;overflow-wrap:anywhere}
.quick-correction-form label.quick-checkbox-choice b{display:block;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.quick-correction-form label.quick-checkbox-choice small{display:block;font-size:12px;line-height:1.5;font-weight:500;white-space:normal;overflow-wrap:anywhere}
.quick-correction-form label.quick-batch-choice{background:#f1f8fc;border:1px solid #b7d8e9;border-radius:12px}
.quick-correction-form label.quick-batch-choice b{color:#174768}
.quick-correction-form .quick-decision-help{margin:0;padding:10px 0;font-size:12px;line-height:1.6;color:#506a7a;overflow-wrap:anywhere}
html[data-theme="dark"] .quick-correction-form .quick-decision-state,html[data-theme="dark"] .quick-correction-form label.quick-batch-choice{background:#142633;border-color:#35556b}
html[data-theme="dark"] .quick-correction-form .quick-decision-state b,html[data-theme="dark"] .quick-correction-form label.quick-batch-choice b{color:#e6f2f8}
html[data-theme="dark"] .quick-correction-form .quick-decision-state span,html[data-theme="dark"] .quick-correction-form .quick-decision-help{color:#b4cbd8}
@media(max-width:800px){.quick-correction-form .quick-decision-overview{grid-template-columns:1fr}}

/* Admin: policy toggle must not inherit the generic grid label layout. */
.incomplete-receipt-policy .incomplete-wait-form>label.incomplete-auto-close-choice{display:flex!important;align-items:flex-start!important;justify-content:flex-start;gap:12px!important;min-width:0;max-width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#f8fbfd);white-space:normal!important}
.incomplete-receipt-policy .incomplete-auto-close-choice>input[type="checkbox"]{display:block!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;height:20px!important;margin:3px 0 0!important;padding:0!important;align-self:flex-start}
.incomplete-receipt-policy .incomplete-auto-close-copy{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px;flex:1 1 0;min-width:0;width:auto!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
.incomplete-receipt-policy .incomplete-auto-close-copy>b{display:block;font-size:13px;line-height:1.4;font-weight:800;color:var(--ink);white-space:normal!important;overflow-wrap:anywhere}
.incomplete-receipt-policy .incomplete-auto-close-copy>small{display:block;font-size:12px;line-height:1.55;font-weight:500;color:var(--muted);white-space:normal!important;overflow-wrap:anywhere}
html[data-theme="dark"] .incomplete-receipt-policy .incomplete-auto-close-choice{background:var(--dark-row)!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .incomplete-receipt-policy .incomplete-auto-close-copy>b{color:var(--dark-text)!important}
html[data-theme="dark"] .incomplete-receipt-policy .incomplete-auto-close-copy>small{color:#b8c8d5!important}
/* Profile governance cards are informative: no full-row create-profile link. */
.recurring-profile-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
.recurring-profile-row>span{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
.recurring-profile-row>span small{line-height:1.5;overflow-wrap:anywhere}
.recurring-profile-row>a{flex:0 0 auto;white-space:normal;text-align:right;max-width:38%;font-weight:800}
@media(max-width:760px){.recurring-profile-row{align-items:flex-start;flex-direction:column}.recurring-profile-row>a{max-width:100%;text-align:left}}
.profile-overlap-review .profile-overlap-item{border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:8px 0;overflow-wrap:anywhere}
.profile-overlap-review .profile-overlap-item>summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;cursor:pointer}
.profile-overlap-review .profile-overlap-item>summary b{font-weight:800}
.profile-overlap-review .profile-overlap-item>summary span{flex:1 1 240px;min-width:0;font-size:12px}
.profile-overlap-review .profile-overlap-item>summary strong{font-size:12px;color:var(--muted)}
.profile-overlap-review .profile-overlap-profile{padding:10px 0;border-top:1px solid var(--line);display:grid;gap:4px;font-size:12px}
.profile-overlap-review .profile-overlap-profile span{color:var(--muted)}

/* Operational queue: names and document totals must remain readable at any zoom.
   Keep actions bounded and let the card's own width decide when they move below. */
.work-command-recent{container-type:inline-size}
.work-command-recent .work-recent-row{grid-template-columns:44px minmax(0,1fr) 320px!important}
.work-command-recent .work-recent-main{grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:start;gap:5px 12px;padding-right:8px}
.work-command-recent .work-recent-main>.recent-preview-thumb,
.work-command-recent .work-recent-main>.preview-tile{grid-column:1;grid-row:1 / span 2}
.work-command-recent .work-recent-identity{grid-column:2;grid-row:1;overflow:visible;padding-right:0}
.work-command-recent .work-recent-identity>b,
.work-command-recent .work-recent-identity>small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.work-command-recent .work-recent-identity>b{line-height:1.3}
.work-command-recent .work-recent-meta{grid-column:2;grid-row:2;display:flex!important;align-items:center;flex-wrap:wrap;gap:5px 10px;min-width:0;padding:0;text-align:left}
.work-command-recent .work-recent-meta .confidence{margin:0}
.work-command-recent .work-recent-meta>small{display:block!important;margin:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:11px}
.work-command-recent .work-recent-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:0!important;width:100%}
.work-command-recent .work-recent-actions .recent-action small{white-space:normal!important;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.2}
@container (max-width:760px){
  .work-command-recent .work-recent-row{grid-template-columns:44px minmax(0,1fr)!important}
  .work-command-recent .work-recent-actions{grid-column:2;padding:0 12px 13px 0!important}
}
@container (max-width:480px){
  .work-command-recent .work-recent-main{grid-template-columns:38px minmax(0,1fr)}
  .work-command-recent .work-recent-main>.recent-preview-thumb,
  .work-command-recent .work-recent-main>.preview-tile{width:38px;height:38px}
}

/* Menu de entrega manual — visível apenas para canais habilitados. */
.manual-delivery-menu{position:relative;align-self:center;flex:0 0 auto;z-index:2}.manual-delivery-menu[open]{z-index:30}
.manual-delivery-menu>summary{list-style:none;cursor:pointer;display:grid;place-items:center;min-width:36px;min-height:36px;border:1px solid #cbdde8;border-radius:9px;font-size:23px;font-weight:700;background:var(--card-bg,#fff);color:var(--text,#24445c)}
.manual-delivery-menu>summary::-webkit-details-marker{display:none}
.manual-delivery-options{position:absolute;right:0;top:calc(100% + 3px);min-width:185px;background:var(--card-bg,#fff);border:1px solid #cbdde8;border-radius:10px;box-shadow:0 12px 26px rgba(0,0,0,.13);padding:6px;z-index:31}
.manual-delivery-options a{display:block;padding:10px 12px;white-space:nowrap;border-radius:6px;text-decoration:none;font-size:12px;font-weight:700;color:inherit}
.manual-delivery-options a:hover{background:rgba(55,135,200,.12)}

/* Compact, accessible printer cue in the shared-exam dispatch status. */
.print-dispatch-icon{display:inline-flex;flex:0 0 auto;width:12px;height:12px;align-items:center;justify-content:center}
.print-dispatch-icon svg{display:block;width:100%;height:100%;fill:currentColor}

/* Laudo: estado legível em todas as listas sem ampliar o card. */
.report-state{gap:5px;align-items:center;white-space:nowrap}.report-state.report-ready{color:#146a46;background:#def5e8}.report-state.report-pending{color:#895c08;background:#fff2d2}.recent-report-actions .recent-action{display:inline-flex;align-items:center;justify-content:center;gap:5px}.recent-report-actions .recent-action svg{flex-shrink:0}.ris-report-status [data-report-label]{display:flex;gap:8px;align-items:center}.ris-report-status [data-report-label] span{font-size:19px}.ris-report-status [data-report-links][hidden]{display:none!important}

.ris-report-status [data-report-links] .button{display:inline-flex;align-items:center;gap:7px}.ris-report-status [data-report-links] .button svg{flex-shrink:0}

/* Exames recebidos: menu compacto de laudo, sem depender da abertura do detalhe. */
.jobs-report-menu{position:relative;display:inline-block}.jobs-report-menu>summary{list-style:none;cursor:pointer;min-width:36px;text-align:center;font-size:21px;line-height:1}.jobs-report-menu>summary::-webkit-details-marker{display:none}.jobs-report-menu>div{position:absolute;z-index:30;right:0;top:100%;min-width:185px;background:var(--surface,#fff);border:1px solid #b7c4cc;border-radius:8px;box-shadow:0 8px 22px #132c3c24;padding:7px}.jobs-report-menu>div a{display:block;padding:9px 10px;white-space:nowrap;text-decoration:none}.jobs-report-menu>div a:hover{background:#e8f1f7}.ris-report-status [data-report-check][hidden]{display:none!important}

/* Um menu de ações por exame: visível mesmo quando canais ainda não estão habilitados. */
.exam-actions-menu{display:block;flex-shrink:0;position:relative}.exam-actions-menu>summary{display:inline-flex;align-items:center;justify-content:center;min-width:35px;min-height:35px;border:1px solid #bccbd7;border-radius:8px;background:var(--surface,#fff);cursor:pointer;font-size:23px;line-height:1;list-style:none}.exam-actions-menu>summary::-webkit-details-marker{display:none}.exam-actions-menu .manual-delivery-options{position:absolute;z-index:60;right:0;top:100%;min-width:235px;border:1px solid #b7c4cc;border-radius:8px;background:var(--surface,#fff);box-shadow:0 8px 22px #132c3c24;padding:7px}.exam-actions-menu .manual-delivery-options>a{display:block;padding:9px 10px;white-space:nowrap}.exam-actions-menu .menu-unavailable{display:block;padding:8px 10px;font-size:12px;opacity:.75;max-width:240px}

/* Evita bolinhas pretas sem legenda na lista: estados usam texto e destaque cromático. */
.selectable-row .report-state{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;padding:3px 7px;border-radius:6px}.selectable-row .report-state.report-ready{border:1px solid #a1d8bb}.selectable-row .report-state.report-pending{border:1px solid #e4c884}

/* Menu de acoes com contraste explícito e abertura acima da linha quando necessario. */
.selectable-row .exam-actions-menu>summary{background:#eff6fb!important;color:#163f60!important;border:2px solid #487b9c!important;font-size:30px!important;font-weight:900!important;opacity:1!important;box-shadow:0 1px 4px #15384c20;min-width:39px;min-height:39px}
.selectable-row .exam-actions-menu>summary:hover,.selectable-row .exam-actions-menu[open]>summary{background:#d8eaf7!important;color:#063352!important}
.selectable-row .exam-actions-menu .manual-delivery-options{background:#fff!important;color:#183d58!important;border:1px solid #819dad!important;min-width:250px;z-index:999;padding:7px;max-height:min(70vh,360px);overflow-y:auto}
.selectable-row .exam-actions-menu .manual-delivery-options>a{color:#13476d!important;display:block!important;white-space:normal!important;font-size:13px!important;font-weight:700!important}
html[data-theme="dark"] .selectable-row .exam-actions-menu .manual-delivery-options{background:#1d2f3b!important;color:#f0f7fc!important}
html[data-theme="dark"] .selectable-row .exam-actions-menu .manual-delivery-options>a{color:#e6f2fd!important}

/* Acoes: botao real, painel transferido para body para evitar corte pela tabela. */
.exam-actions-menu .exam-actions-trigger{display:inline-flex!important;justify-content:center;align-items:center;min-width:40px;min-height:40px;font-size:29px;font-weight:900;color:#0d4263!important;background:#e9f3fa!important;border:2px solid #356786!important;border-radius:8px;cursor:pointer;opacity:1!important}
.exam-actions-menu .exam-actions-trigger[aria-expanded="true"]{background:#cde5f5!important}
.manual-delivery-options[hidden]{display:none!important}
body>.manual-delivery-options{background:#fff;color:#123c58;border:1px solid #859ba9;box-shadow:0 10px 28px #0003;padding:7px;min-width:230px;border-radius:9px}
body>.manual-delivery-options>a{display:block;padding:10px;color:#13476d;text-decoration:none;font-weight:700}
body>.manual-delivery-options>a:hover{background:#e9f3fa}
body>.manual-delivery-options .menu-unavailable{display:block;padding:9px;color:#576a79;font-size:12px}
html[data-theme="dark"] body>.manual-delivery-options{background:#233645;color:#fff}html[data-theme="dark"] body>.manual-delivery-options>a{color:#e8f4ff}


body>.manual-delivery-options>a{display:flex!important;align-items:center;gap:9px;min-height:37px}body>.manual-delivery-options>a svg{flex:0 0 17px;stroke:currentColor}

.ris-report-status .ris-report-indicator{display:inline-flex;align-items:center;justify-content:center;font-size:14px!important;font-weight:800;border-radius:50%;width:23px;height:23px;background:#dcefe6;color:#146a46}.ris-report-status [data-report-label]{align-items:center}

/* Menu compacto: dimensão coerente com a tabela e foco acessível. */
.selectable-row .exam-actions-menu .exam-actions-trigger{min-width:30px!important;width:30px!important;min-height:32px!important;height:32px!important;padding:0!important;font-size:20px!important;font-weight:700!important;line-height:1!important;border:1px solid #a9becb!important;border-radius:7px!important;box-shadow:none!important;background:transparent!important;color:#244d66!important}
.selectable-row .exam-actions-menu .exam-actions-trigger:hover,.selectable-row .exam-actions-menu .exam-actions-trigger[aria-expanded="true"]{background:#e4f0f8!important;border-color:#5082a1!important}
.selectable-row .exam-actions-menu .exam-actions-trigger:focus-visible{outline:2px solid #14669b;outline-offset:2px}

/* Consulta pontual do laudo na fila: independente do link do exame. */
.queue-operation-state .queue-operation-link{display:block;color:inherit;text-decoration:none}
.report-inline-refresh{display:inline-flex;margin:4px 0 0 5px;vertical-align:middle}
.report-inline-refresh button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:30px;border:1px solid #b7c7d0;border-radius:7px;background:transparent;color:inherit;cursor:pointer}
.report-inline-refresh button:hover{background:#e8f1f7}
.report-inline-refresh button:disabled{opacity:.6;cursor:wait}
.report-inline-refresh .report-refresh-busy svg{animation:report-inline-spin 1s linear infinite}
@keyframes report-inline-spin{to{transform:rotate(360deg)}}
.report-inline-feedback{display:inline-block;margin-left:6px;font-size:12px}

.report-inline-refresh[hidden]{display:none!important}

/* Situação operacional em primeiro plano; laudo é informação secundária. */
.queue-operation-state .queue-state-badges{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.queue-operation-state .queue-next-step{display:block;margin-top:4px;line-height:1.35}
.queue-operation-state .queue-report-check{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:7px;min-width:0}
.queue-operation-state .queue-report-check .report-inline-refresh{margin:0}
.queue-operation-state .queue-report-check .report-inline-feedback{margin:0;flex-basis:100%}
