/* Three decisions share a persistent authorization summary. */
.operation-workflow-scrim {padding:0;--modal-height:100dvh;background:var(--bg);}
.operation-workflow.operations-modal.dossier-modal {width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;box-shadow:none;animation:none;}
.operation-workflow.operations-modal .dossier-header {display:flex;align-items:center;gap:16px;min-height:52px;padding:8px 24px;background:var(--panel);}
.operation-workflow.operations-modal .dossier-header>div {display:flex;align-items:baseline;gap:16px;flex:1;min-width:0;padding:0;}
.operation-workflow.operations-modal .dossier-header h2 {order:-1;font-size:calc(19px * var(--ui-scale,1));line-height:1.25;margin:0;}
.operation-workflow.operations-modal .dossier-header .eyebrow {font-size:calc(12px * var(--ui-scale,1));letter-spacing:.5px;flex:none;}
.operation-workflow.operations-modal .dossier-header .close-modal {position:static;align-self:center;flex:none;}
.operation-workflow.operations-modal .dossier-body {display:flex;flex-direction:column;flex:1;min-height:0;padding:0;overflow:hidden;}
.operation-workflow.operations-modal .dossier-footer {display:flex;align-items:center;gap:12px;flex:none;padding:10px 24px;margin:0;border-top:1px solid var(--line);background:var(--panel);}
.operation-workflow .dossier-footer .command {min-height:42px;flex:none;font-size:calc(12px * var(--ui-scale,1));white-space:nowrap;}
.operation-workflow [data-workflow-back] {margin-left:auto;}
.operation-workflow .workflow-status {flex:1;min-width:0;margin:0;color:var(--muted);font-size:calc(12px * var(--ui-scale,1));line-height:1.4;letter-spacing:0;}
.operation-workflow [hidden] {display:none!important;}
.operation-workflow button:focus-visible,.operation-workflow summary:focus-visible,.operation-workflow input:focus-visible,.operation-workflow select:focus-visible {outline:2px solid var(--cyan);outline-offset:3px;}
.workflow-steps {display:flex;flex:none;padding:0 24px;border-bottom:1px solid var(--line);gap:28px;background:var(--bg);}
.workflow-steps button {display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;color:var(--muted);background:none;border:0;border-bottom:3px solid transparent;cursor:pointer;font:inherit;font-size:calc(12px * var(--ui-scale,1));text-align:left;}
.workflow-steps button[aria-current] {color:var(--paper);border-bottom-color:var(--red);}
.workflow-steps button:disabled {opacity:.5;cursor:default;}
.workflow-step-number {display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--line);font-size:calc(12px * var(--ui-scale,1));}
.workflow-steps [aria-current] .workflow-step-number {background:var(--paper);color:var(--bg);border-color:var(--paper);}
.workflow-steps [data-complete] .workflow-step-number {border-color:var(--cyan);color:var(--cyan);}
.workflow-workspace {display:grid;grid-template-columns:minmax(0,1fr) 310px;flex:1;min-height:0;width:100%;max-width:1600px;margin:0 auto;}
.workflow-content {min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px 28px;}
.workflow-panel {max-width:1080px;margin:auto;outline:none;}
.operation-workflow[data-step="0"] .workflow-workspace {grid-template-columns:1fr;}
.workflow-overview {display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px 24px;align-items:start;}
.workflow-scene {margin:0;position:relative;overflow:hidden;background:var(--panel);aspect-ratio:16/10;}
.workflow-scene img {display:block;width:100%;height:100%;object-fit:cover;filter:sepia(.18);}
.workflow-scene figcaption {position:absolute;inset:auto 0 0;padding:28px 14px 13px;display:flex;justify-content:space-between;gap:10px;background:linear-gradient(transparent,#151a18ed);color:var(--paper);font-size:calc(13px * var(--ui-scale,1));}
.workflow-mission h3 {font-size:calc(20px * var(--ui-scale,1));line-height:1.35;margin:0 0 10px;font-weight:400;}
.workflow-mission .planning-brief-copy {font-size:calc(12px * var(--ui-scale,1));line-height:1.6;margin:0 0 12px;max-width:none;}
.workflow-facts {display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0;padding-top:10px;border-top:1px solid var(--line);}
.workflow-facts dt {font-size:calc(12px * var(--ui-scale,1));color:var(--muted);margin-bottom:4px;text-transform:uppercase;}
.workflow-facts dd {font-size:calc(15px * var(--ui-scale,1));margin:0;line-height:1.4;}
.workflow-facts small {display:block;font-size:calc(12px * var(--ui-scale,1));color:var(--muted);}
.workflow-stakes,.workflow-requirements {border-top:1px solid var(--line);padding-top:14px;}
.workflow-stakes {grid-column:1/-1;}.workflow-requirements {grid-column:1/-1;}
.workflow-requirements ul {display:grid;grid-template-columns:1fr 1fr;gap:0 24px;}
.workflow-stakes h3,.workflow-requirements h3 {font-size:calc(15px * var(--ui-scale,1));margin:0 0 14px;}
.workflow-stakes>div {display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.operation-workflow .workflow-stakes h4 {color:var(--muted);font-size:calc(12px * var(--ui-scale,1));letter-spacing:.5px;margin:0 0 8px;text-transform:uppercase;}
.workflow-stakes ul {margin:0;padding-left:16px;font-size:calc(12px * var(--ui-scale,1));line-height:1.6;}
.workflow-stakes li+li {margin-top:7px;}
.workflow-obstacle {border-left:2px solid var(--red);padding:7px 10px;font-size:calc(12px * var(--ui-scale,1));line-height:1.5;margin:16px 0 0;}
.workflow-obstacle b {display:block;margin-bottom:4px;}
.workflow-requirements p {font-size:calc(12px * var(--ui-scale,1));margin:0 0 12px;}
.workflow-requirements ul {padding:0;margin:0;list-style:none;}
.workflow-requirements li {display:flex;gap:12px;padding:7px 0;border-top:1px solid var(--line);font-size:calc(12px * var(--ui-scale,1));line-height:1.45;}
.workflow-requirements li strong {flex:0 0 110px;}
.workflow-requirements li span {color:var(--muted);}
.workflow-case {grid-column:1/-1;}
.operation-workflow .planning-details {margin-top:16px;}
.operation-workflow .planning-details>summary {font-size:calc(12px * var(--ui-scale,1));min-height:32px;}
.operation-workflow .planning-details p {font-size:calc(12px * var(--ui-scale,1));line-height:1.6;}
.workflow-note {font-size:calc(12px * var(--ui-scale,1));line-height:1.55;color:var(--muted);margin:8px 0;}
.workflow-summary {border-left:1px solid var(--line);background:color-mix(in srgb,var(--panel) 62%,var(--bg));padding:16px 20px;min-height:0;overflow:auto;scrollbar-gutter:stable;}
.workflow-summary-details>summary {display:flex;align-items:center;justify-content:space-between;gap:6px;list-style:none;cursor:pointer;}
.workflow-summary-details>summary::-webkit-details-marker {display:none;}
.workflow-summary-details>summary>span:first-child {font-size:calc(12px * var(--ui-scale,1));letter-spacing:1px;color:var(--muted);}
.workflow-summary-details>summary>strong {display:none;font-size:calc(13px * var(--ui-scale,1));font-weight:400;}
.workflow-summary-toggle {display:block;font-size:calc(12px * var(--ui-scale,1));color:var(--muted);}
.workflow-summary-body>section {margin:14px 0;}
.workflow-summary h4 {display:flex;justify-content:space-between;color:var(--muted);font-size:calc(12px * var(--ui-scale,1));}
.operation-workflow .team-assessment {display:grid;grid-template-columns:1fr 1fr;margin:14px 0 0;padding:12px 0;border-block:1px solid var(--line);gap:12px;}
.operation-workflow .team-assessment>div>span {font-size:calc(12px * var(--ui-scale,1));letter-spacing:.3px;}
.operation-workflow .team-assessment>div>strong {font-size:calc(25px * var(--ui-scale,1));line-height:1.5;}
.operation-workflow .team-assessment>small {grid-column:1/-1;font-size:calc(12px * var(--ui-scale,1));line-height:1.5;color:var(--muted);}
.workflow-effect {font-size:calc(12px * var(--ui-scale,1));line-height:1.6;color:var(--muted);}
.workflow-effect:empty,[data-workflow-compact-forecast] {display:none;}
.workflow-selected {display:flex;flex-direction:column;gap:6px;}
.workflow-selected button {display:flex;align-items:center;gap:8px;min-height:36px;padding:4px 6px;background:var(--bg);border:1px solid var(--line);font:inherit;font-size:calc(12px * var(--ui-scale,1));color:var(--paper);cursor:pointer;text-align:left;}
.workflow-selected img {width:25px;height:30px;object-fit:cover;}
.workflow-selected span {flex:1;}
.workflow-selected button>b {font-size:calc(17px * var(--ui-scale,1));color:var(--muted);}
.workflow-ledger {margin:0;border-top:1px solid var(--line);}
.workflow-ledger>div {display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:calc(12px * var(--ui-scale,1));line-height:1.4;}
.workflow-ledger dt {color:var(--muted);}
.workflow-ledger dd {margin:0;max-width:60%;text-align:right;}
.workflow-costs {padding-top:16px;}
.workflow-costs p {font-size:calc(12px * var(--ui-scale,1));margin:5px 0;}
.workflow-team-context {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;}
.workflow-team-scene {display:none;}
@media (min-width:1100px) and (min-height:650px) {.workflow-team-scene {display:block;width:clamp(220px,28%,300px);flex:none;aspect-ratio:16/9;}}
.workflow-team-context .planning-criteria {flex:1;min-width:0;}
.operation-workflow .criterion {font-size:calc(12px * var(--ui-scale,1));padding:6px 8px;}
.workflow-coverage {width:220px;flex:none;}
.workflow-coverage h4 {margin:0;text-align:center;font-size:calc(12px * var(--ui-scale,1));color:var(--muted);font-weight:400;}
.workflow-coverage .skill-radar {margin:4px 0 0;}
.operation-workflow .workflow-coverage .radar-label,.operation-workflow .workflow-roster .radar-label {font-size:calc(18px * var(--ui-scale,1));}
.operation-workflow .workflow-coverage .radar-value,.operation-workflow .workflow-roster .radar-value {font-size:calc(17px * var(--ui-scale,1));}
.workflow-roster-tools {display:flex;gap:16px;align-items:end;margin-bottom:16px;flex-wrap:wrap;}
.workflow-roster-tools>label:first-child {display:grid;gap:6px;flex:1;min-width:150px;font-size:calc(12px * var(--ui-scale,1));color:var(--muted);}
.workflow-roster-tools input[type=search] {width:100%;padding:10px;background:var(--panel);border:1px solid var(--line);color:var(--paper);font:inherit;font-size:calc(12px * var(--ui-scale,1));}
.workflow-filter {display:flex;gap:5px;align-items:center;font-size:calc(12px * var(--ui-scale,1));min-height:36px;}
.workflow-roster-tools>span {font-size:calc(12px * var(--ui-scale,1));color:var(--muted);padding-bottom:10px;}
.operation-workflow .workflow-roster {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:none;overflow:visible;margin:0;}
.operation-workflow .workflow-roster .operative-match {display:grid;grid-template-columns:minmax(0,1fr) 46px 200px;grid-template-rows:auto auto auto;gap:8px;padding:14px;border:1px solid var(--line);border-left:3px solid transparent;position:relative;}
.operation-workflow .workflow-roster .operative-match.selected {border-color:var(--cyan);border-left-color:var(--cyan);background:color-mix(in srgb,var(--cyan) 7%,var(--bg));}
.operation-workflow .workflow-roster .agent-assignment {grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;align-items:start;min-width:0;padding:0;margin:0;}
.operation-workflow .workflow-roster .agent-assignment img {width:38px;height:48px;flex:none;}
.operation-workflow .workflow-roster .agent-assignment strong {font-size:calc(12px * var(--ui-scale,1));}
.operation-workflow .workflow-roster .agent-assignment input {accent-color:var(--cyan);}
.operation-workflow .workflow-roster .operative-identity {min-width:0;}
.operation-workflow .workflow-roster .operative-fit {display:flex;flex-direction:column;grid-column:2;grid-row:1;text-align:right;padding:0;border:0;}
.operation-workflow .workflow-roster .operative-fit>b {font-size:calc(22px * var(--ui-scale,1));}
.operation-workflow .workflow-roster .operative-fit-label {display:block;font-size:calc(12px * var(--ui-scale,1));color:var(--muted);}
.operation-workflow .workflow-roster .operative-fatigue {display:flex;grid-column:2;grid-row:2;align-items:center;gap:3px;font-size:calc(12px * var(--ui-scale,1));}
.operation-workflow .workflow-roster .operative-fatigue:before {content:'Fatigue';font-size:calc(12px * var(--ui-scale,1));color:var(--muted);}
.operation-workflow .workflow-roster .operative-fatigue i {display:none;}
.operation-workflow .workflow-roster .operative-key-skills {display:flex;flex-wrap:wrap;grid-column:1;grid-row:2;gap:4px 9px;padding:0;font-size:calc(12px * var(--ui-scale,1));}
.operation-workflow .workflow-roster .operative-key-skills>span {display:flex;gap:4px;}
.operation-workflow .workflow-roster .operative-key-skills i {display:none;}
.operation-workflow .workflow-roster .operative-flags {grid-column:1/3;grid-row:3;padding:0;font-size:calc(12px * var(--ui-scale,1));}
.operation-workflow .workflow-roster .skill-radar {display:block;grid-column:3;grid-row:1/4;align-self:center;margin:0;}
.operation-workflow .workflow-roster .skill-radar svg {width:100%;max-width:200px;margin:auto;}
.workflow-empty {padding:30px 0;font-size:calc(13px * var(--ui-scale,1));color:var(--muted);}
.operation-workflow .authorization-plan {margin:0;border:0;padding:0;}
.operation-workflow .authorization-plan>h4 {display:none;}
.operation-workflow .authorization-plan fieldset {border:0;padding:0;margin:0;}
.operation-workflow .authorization-plan legend {font-size:calc(15px * var(--ui-scale,1));margin:0 0 12px;padding:0;font-weight:600;}
.operation-workflow .execution-methods {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px;}
.operation-workflow .execution-method {padding:14px;border:1px solid var(--line);min-height:110px;background:var(--panel);}
.operation-workflow .execution-method:has(input:checked) {border-color:var(--cyan);background:color-mix(in srgb,var(--cyan) 7%,var(--bg));}
.operation-workflow .execution-method strong {font-size:calc(13px * var(--ui-scale,1));line-height:1.4;}
.operation-workflow .execution-method small {font-size:calc(12px * var(--ui-scale,1));line-height:1.55;}
.operation-workflow .funding-label {font-size:calc(15px * var(--ui-scale,1));gap:12px;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;}
.operation-workflow .funding-label input {font-size:calc(18px * var(--ui-scale,1));padding:9px 12px;width:140px;}
.operation-workflow .authorization-plan fieldset>small {display:block;font-size:calc(12px * var(--ui-scale,1));line-height:1.6;color:var(--muted);max-width:680px;margin:8px 0 18px;}
.operation-workflow .influence-commitments {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px;}
.operation-workflow .influence-commitments label {grid-template-columns:1fr;gap:8px;align-content:start;}
.operation-workflow .influence-commitments label>span {font-size:calc(13px * var(--ui-scale,1));}
.operation-workflow .influence-commitments select {min-height:40px;font-size:calc(12px * var(--ui-scale,1));}
.operation-workflow .influence-commitments small {font-size:calc(12px * var(--ui-scale,1));line-height:1.6;}
.operation-workflow .commitment-ledger {margin-top:20px;padding-top:14px;}
.operation-workflow .commitment-ledger dd {font-size:calc(13px * var(--ui-scale,1));}
.operation-workflow .commitment-note {font-size:calc(12px * var(--ui-scale,1));line-height:1.65;}
.workflow-existing-support {margin-top:24px;border-top:1px solid var(--line);padding-top:16px;}
.workflow-existing-support>summary {font-size:calc(13px * var(--ui-scale,1));cursor:pointer;}
.workflow-support-resource {display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);cursor:default;}
.funding-presets {display:flex;gap:8px;margin:12px 0;}
.operation-workflow .funding-presets .command {min-height:36px;padding:7px 14px;font-size:calc(12px * var(--ui-scale,1));}
.funding-presets [aria-pressed=true] {border-color:var(--cyan);color:var(--cyan);}
@media (min-width:1800px) {.workflow-content {padding-top:24px;}.workflow-workspace {grid-template-columns:minmax(0,1fr) 330px;}}
@media (max-width:1300px) {.operation-workflow .workflow-roster {grid-template-columns:1fr;}}
@media (max-width:1100px) {
  .workflow-workspace {grid-template-columns:minmax(0,1fr) 270px;}.workflow-content {padding:22px 20px 28px;}.workflow-summary {padding:20px 14px;}
  .operation-workflow .workflow-roster {grid-template-columns:1fr;}.workflow-overview {grid-template-columns:240px minmax(0,1fr);gap:18px;}
  .workflow-team-context {align-items:center;}.workflow-coverage {width:200px;}
  .operation-workflow .execution-methods {gap:8px;}.operation-workflow .execution-method {padding:10px;}
}
@media (max-width:760px) {
  .operation-workflow.operations-modal .dossier-header {padding:10px 16px;gap:10px;min-height:48px;}.operation-workflow.operations-modal .dossier-header h2 {font-size:calc(15px * var(--ui-scale,1));}.operation-workflow.operations-modal .dossier-header>div {gap:4px;flex-direction:column;align-items:start;}.operation-workflow.operations-modal .dossier-header .eyebrow {font-size:calc(12px * var(--ui-scale,1));}
  .workflow-steps {padding:0 12px;gap:0;justify-content:space-between;}.workflow-steps button {min-height:42px;gap:6px;font-size:calc(12px * var(--ui-scale,1));padding:6px 4px;}.workflow-step-number {width:21px;height:21px;font-size:calc(12px * var(--ui-scale,1));}
  .workflow-workspace {display:flex;flex-direction:column;}.workflow-summary {order:-1;flex:none;border-left:0;border-bottom:1px solid var(--line);padding:10px 16px;max-height:36dvh;}
  .workflow-summary-details>summary {display:grid;grid-template-columns:1fr auto;gap:4px;cursor:pointer;}.workflow-summary-details>summary>span:first-child {grid-column:1;font-size:calc(12px * var(--ui-scale,1));}.workflow-summary-details>summary>strong {display:block;grid-column:1;font-size:calc(12px * var(--ui-scale,1));}
  .workflow-summary-toggle {display:block;grid-column:2;grid-row:1/3;align-self:center;}.workflow-summary-body {padding:0 0 10px;}.workflow-content {flex:1;padding:20px 16px 28px;}
  [data-workflow-compact-forecast] {display:block;grid-column:1/-1;font-size:calc(12px * var(--ui-scale,1));color:var(--muted);line-height:1.5;}
  .workflow-overview {display:flex;flex-direction:column;gap:20px;}.workflow-overview>* {width:100%;}
  .workflow-scene {aspect-ratio:3.2;} .workflow-requirements ul {grid-template-columns:1fr;}.workflow-mission h3 {font-size:calc(18px * var(--ui-scale,1));}.workflow-stakes>div {gap:16px;}
  .operation-workflow.operations-modal .dossier-footer {padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap;}
  .operation-workflow .workflow-status {flex-basis:100%;order:-1;font-size:calc(12px * var(--ui-scale,1));}
  .operation-workflow .dossier-footer .workflow-cancel {margin-right:auto;}.operation-workflow .dossier-footer .command {min-height:40px;font-size:calc(12px * var(--ui-scale,1));padding:9px;}
  .workflow-coverage {width:160px;}
  .operation-workflow .workflow-roster .operative-match {grid-template-columns:minmax(0,1fr) 46px;}.operation-workflow .workflow-roster .skill-radar {grid-column:1/-1;grid-row:4;}.operation-workflow .workflow-roster .skill-radar svg {max-width:250px;}
  .operation-workflow .execution-methods,.operation-workflow .influence-commitments {grid-template-columns:1fr;}.operation-workflow .execution-method {min-height:0;padding:12px;}.operation-workflow .influence-commitments {gap:18px;}.workflow-roster-tools {gap:6px 12px;}
}
@media (max-height:600px) and (min-width:761px) {.operation-workflow.operations-modal .dossier-header {padding-block:8px;}.workflow-steps button {min-height:40px;}.workflow-content {padding-top:16px;}}

/* Keep the commitment and its consequences on the same reading line. */
#modal-root .operation-workflow .workflow-overview.field-briefing {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px;
}
.field-briefing>section {min-width:0;overflow-wrap:anywhere;}
.field-briefing .workflow-mission h3 {font-family:var(--display);font-size:var(--ui-title);}
.field-briefing .workflow-facts {gap:12px 16px;margin-top:12px;}
.brief-stakes h3,.brief-team h3,.case-next-order h3 {font-family:var(--display);margin:0 0 8px;}
.brief-team h3 {display:flex;align-items:center;gap:8px;}
.brief-results {margin:0;}
.brief-results>div {display:grid;grid-template-columns:minmax(4.6em,auto) 1fr;gap:12px;border-top:1px solid var(--line);padding:9px 0;}
.brief-results dt {font-weight:700;color:var(--positive);}
.brief-results>div:nth-child(2) dt {color:var(--warning);}
.brief-results>div:last-child dt {color:var(--danger);}
.brief-results dd {margin:0;line-height:1.5;}
.brief-note,.case-file-reading>span {color:var(--muted);font-size:var(--ui-caption);line-height:1.45;}
.brief-team,.brief-records {border-top:1px solid var(--line);padding-top:12px;}
.brief-records>.planning-details:first-child {margin-top:0;}
.field-briefing .workflow-requirements {grid-column:auto;}
.field-briefing .workflow-requirements ul {display:block;}
.field-briefing .workflow-requirements li {display:block;}
.brief-team p {margin:0 0 8px;}
.field-briefing .political-outcomes {display:grid;grid-template-columns:1fr;gap:6px;}
.field-briefing .brief-stakes>h4 {display:none;}
@media(max-width:760px) {
  #modal-root .operation-workflow .workflow-overview.field-briefing {grid-template-columns:minmax(0,1fr);gap:16px;}
}
