.coo-workspace{padding-block:clamp(2rem,5vw,4rem)}.coo-content{display:grid;gap:1.5rem;margin-top:1.5rem}.coo-section{padding:clamp(1.25rem,3vw,2rem);border:1px solid rgba(223,227,232,.9);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 18px 44px rgba(7,26,51,.24)}.coo-heading{display:flex;justify-content:space-between;gap:1rem;align-items:end}.coo-guide-card{display:flex;justify-content:space-between;gap:1.5rem;align-items:center;margin-top:1rem;padding:1.4rem;border:1px solid var(--line);border-radius:14px;background:#fff}.coo-guide-card>div{max-width:760px}.coo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1rem}.coo-card,.coo-empty{padding:1rem;border:1px solid var(--line);border-radius:12px;background:#fff}.coo-card p{overflow-wrap:anywhere}.coo-card small{color:var(--muted)}.coo-recent{display:grid;margin-top:1rem}.coo-history-row{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--line);color:var(--navy);text-decoration:none}.operations-guide{padding-block:clamp(2rem,5vw,4rem)}.ocr-panel{margin:1.25rem 0;padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.97)}.operations-guide textarea,.operations-guide input{width:100%;min-height:48px;padding:.8rem;border:1px solid #9da9b7;border-radius:8px;background:#fff}.operations-guide textarea{min-height:110px;resize:vertical}.ocr-measures{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.ocr-measure-head,.ocr-measure-row{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin:.55rem 0}.ocr-measure-head{font-size:.78rem;font-weight:800;color:var(--muted)}.ocr-check{display:flex;gap:.75rem;align-items:flex-start;padding:.8rem 0}.ocr-check input{width:20px;min-height:20px;flex:none}.ocr-check span{display:grid;gap:.2rem}.ocr-watch{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:10px}.ocr-state{border-left:5px solid var(--orange)}body.coo-environment-active{background-color:#071a33;background-image:linear-gradient(rgba(7,26,51,.5),rgba(7,26,51,.62)),url("images/cpbackground.png");background-position:center top;background-repeat:no-repeat;background-size:cover;background-attachment:fixed}body.coo-environment-active .coo-workspace>.page-title h1,body.coo-environment-active .coo-workspace>.page-title p{color:#fff}body.coo-environment-active .coo-workspace>.page-title .eyebrow,body.coo-environment-active .coo-workspace>.page-title .text-link{color:#f47b20}@media(max-width:700px){.coo-heading,.coo-guide-card,.coo-history-row{align-items:flex-start;flex-direction:column}.ocr-measures{grid-template-columns:1fr}body.coo-environment-active{background-attachment:scroll}}
.coo-section-intro{max-width:760px;margin:.65rem 0 0;color:var(--muted)}
.coo-process-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1.25rem}
.coo-process-card{padding:1.2rem;border:1px solid var(--line);border-radius:14px;background:#fff}
.coo-process-card-top{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}
.coo-process-card-top h3{margin:.25rem 0 0}
.coo-process-meta{white-space:nowrap;font-size:.82rem;font-weight:800;color:var(--muted)}
.coo-process-boundary{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}
.coo-process-boundary div{padding:.85rem;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.coo-process-boundary dt{margin-bottom:.25rem;font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.coo-process-boundary dd{margin:0;color:var(--navy)}
.coo-process-empty{margin-top:1rem}
.coo-process-empty h3{margin-top:0}
.coo-builder{border-left:5px solid var(--orange)}
.coo-builder form{display:grid;gap:.75rem;margin-top:1.25rem}
.coo-builder label{font-weight:800;color:var(--navy)}
.coo-builder textarea{width:100%;min-height:110px;padding:.85rem;border:1px solid #9da9b7;border-radius:8px;background:#fff;resize:vertical}
.coo-builder-boundary{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.25rem 0}
.coo-builder-boundary>div{padding:1rem;border:1px solid var(--line);border-radius:10px;background:#fff}
.coo-builder-boundary p{margin-bottom:0}
.coo-process-flow{display:grid;gap:.65rem;margin:1rem 0;padding:0;list-style:none}
.coo-process-flow li{display:grid;grid-template-columns:36px 1fr;gap:.75rem;align-items:center}
.coo-process-flow li>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;font-weight:800}
.coo-process-flow li p{margin:0;padding:.8rem 1rem;border:1px solid var(--line);border-radius:10px;background:#fff}
.coo-builder-note{padding:.9rem 1rem;border-radius:10px;background:#f8fafc;color:var(--muted)}
.coo-builder-status{margin-top:1rem}

@media(max-width:700px){
  .coo-process-card-top,
  .coo-process-boundary,
  .coo-builder-boundary{
    grid-template-columns:1fr;
  }
  .coo-process-card-top{
    display:grid;
  }
}

/* Operations process builder */
.ocr-entry-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.25rem;
  margin:1.5rem 0;
}

.ocr-entry-card{
  display:grid;
  gap:.65rem;
  min-height:220px;
  padding:1.5rem;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.97);
  color:#17283f;
  text-align:left;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(7,26,51,.16);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}

.ocr-entry-card:hover,
.ocr-entry-card:focus-visible{
  transform:translateY(-2px);
  border-color:var(--orange);
  box-shadow:0 18px 40px rgba(7,26,51,.22);
}

.ocr-entry-card h2,
.ocr-entry-card p{
  margin:0;
  color:inherit;
}

.ocr-entry-action{
  align-self:end;
  margin-top:auto;
  font-weight:800;
  color:var(--navy);
}

.ocr-builder-layout{
  display:grid;
  grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr);
  gap:1.25rem;
  align-items:start;
}

.ocr-builder-layout .ocr-panel{
  margin:0;
}

.ocr-builder-controls{
  position:relative;
}

.ocr-live-map{
  min-height:560px;
  overflow:hidden;
}

.ocr-builder-section-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1rem;
}

.ocr-builder-section-head h2{
  margin:.2rem 0 0;
}

.ocr-builder-controls .field{
  display:grid;
  gap:.4rem;
  margin:1rem 0;
}

.ocr-builder-controls label{
  font-weight:800;
  color:var(--navy);
}

.ocr-builder-controls small{
  color:var(--muted);
}

.ocr-builder-divider{
  height:1px;
  margin:1.5rem 0;
  background:var(--line);
}

.ocr-term-help{
  display:inline-grid;
  place-items:center;
  width:22px;
  height:22px;
  margin-left:.35rem;
  padding:0;
  border:1px solid #9da9b7;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:.75rem;
  font-weight:900;
  line-height:1;
  vertical-align:middle;
  cursor:help;
}

.ocr-term-help:hover,
.ocr-term-help:focus-visible{
  border-color:var(--orange);
  color:var(--orange);
}

.ocr-timing-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}

.ocr-takt-placeholder{
  margin:1rem 0;
  padding:.85rem 1rem;
  border:1px dashed #9da9b7;
  border-radius:10px;
  background:#f8fafc;
}

.ocr-takt-placeholder>div{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:center;
}

.ocr-takt-placeholder small{
  font-weight:800;
}

.ocr-step-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1.25rem;
}

.ocr-exception-note{
  margin-top:1rem;
  padding:1rem;
  border-left:4px solid var(--orange);
  border-radius:10px;
  background:#fff7ed;
}

.ocr-exception-note p{
  margin:.35rem 0 0;
}

.ocr-map-trigger{
  display:grid;
  gap:.3rem;
  margin-bottom:1.25rem;
  padding:1rem 1.1rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
}

.ocr-swimlane-empty{
  display:grid;
  place-items:center;
  min-height:320px;
  padding:2rem;
  border:2px dashed #cbd5df;
  border-radius:14px;
  color:var(--muted);
  text-align:center;
}

.ocr-swimlane{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  min-height:330px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.ocr-swimlane-label{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:1.25rem .9rem;
  border-right:1px solid var(--line);
  background:#f2f5f8;
  color:var(--navy);
  font-weight:900;
  text-align:center;
}

.ocr-swimlane-track{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
  padding:2rem;
  background-image:
    linear-gradient(to right,rgba(203,213,223,.24) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(203,213,223,.18) 1px,transparent 1px);
  background-size:32px 32px;
}

.ocr-process-node{
  position:relative;
  display:grid;
  gap:.65rem;
  width:min(280px,100%);
  padding:1rem 1.15rem;
  border:2px solid var(--navy);
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 24px rgba(7,26,51,.12);
}

.ocr-process-node::before{
  content:"";
  position:absolute;
  left:-2rem;
  top:50%;
  width:2rem;
  height:2px;
  background:var(--navy);
}

.ocr-node-times{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem .75rem;
  font-size:.78rem;
  color:var(--muted);
}

.ocr-node-times span{
  padding:.25rem .45rem;
  border-radius:6px;
  background:#f2f5f8;
}

.ocr-exception-route{
  position:absolute;
  left:2rem;
  bottom:1.25rem;
  padding:.45rem .65rem;
  border:1px dashed var(--orange);
  border-radius:8px;
  background:#fff7ed;
  color:#8a430c;
  font-size:.78rem;
  font-weight:800;
}

@media(max-width:900px){
  .ocr-builder-layout{
    grid-template-columns:1fr;
  }

  .ocr-live-map{
    min-height:auto;
  }
}

@media(max-width:700px){
  .ocr-entry-grid,
  .ocr-timing-grid{
    grid-template-columns:1fr;
  }

  .ocr-entry-card{
    min-height:auto;
  }

  .ocr-swimlane{
    grid-template-columns:1fr;
  }

  .ocr-swimlane-label{
    justify-content:flex-start;
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .ocr-swimlane-track{
    min-height:250px;
    padding:1.5rem;
  }

  .ocr-process-node::before{
    display:none;
  }

  .ocr-takt-placeholder>div{
    align-items:flex-start;
    flex-direction:column;
    gap:.35rem;
  }
}


/* Multi-step operations process builder */
.ocr-swimlane-board{
  display:grid;
  gap:0;
  min-width:max(100%,720px);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}

.ocr-live-map{
  overflow-x:auto;
}

.ocr-swimlane-sequence-head,
.ocr-swimlane-row{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
}

.ocr-swimlane-corner,
.ocr-swimlane-label{
  padding:.85rem;
  border-right:1px solid var(--line);
  background:#f2f5f8;
  color:var(--navy);
  font-weight:900;
}

.ocr-swimlane-corner{
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.ocr-sequence-track,
.ocr-swimlane-track{
  display:grid;
  grid-template-columns:repeat(
    var(--ocr-step-count),
    minmax(190px,1fr)
  );
  gap:1rem;
  min-width:0;
}

.ocr-sequence-track{
  padding:.7rem 1rem;
  border-bottom:1px solid var(--line);
  background:#f8fafc;
}

.ocr-sequence-track span{
  text-align:center;
  font-size:.72rem;
  font-weight:900;
  color:var(--muted);
}

.ocr-swimlane-row + .ocr-swimlane-row{
  border-top:1px solid var(--line);
}

.ocr-swimlane-row .ocr-swimlane-label{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.ocr-swimlane-row .ocr-swimlane-track{
  align-items:center;
  min-height:170px;
  padding:1rem;
  background-image:
    linear-gradient(
      to right,
      rgba(203,213,223,.24) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(203,213,223,.18) 1px,
      transparent 1px
    );
  background-size:32px 32px;
}

.ocr-swimlane-row .ocr-process-node{
  width:auto;
  min-width:0;
}

.ocr-swimlane-row .ocr-process-node::before{
  display:none;
}

.ocr-process-node.is-current{
  border-color:var(--orange);
  box-shadow:
    0 0 0 3px rgba(244,123,32,.12),
    0 10px 24px rgba(7,26,51,.12);
}

.ocr-node-step{
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.05em;
  color:var(--muted);
}

.ocr-node-exception{
  padding:.45rem .55rem;
  border:1px dashed var(--orange);
  border-radius:7px;
  background:#fff7ed;
  color:#8a430c;
  font-size:.75rem;
  font-weight:800;
}

.ocr-step-actions .is-active{
  border-color:var(--orange);
  background:#fff7ed;
  color:#8a430c;
}

.ocr-builder-message{
  min-height:1.4em;
  margin-top:.85rem;
  color:#9a3412;
  font-weight:700;
}

.ocr-path-complete{
  margin-top:1.5rem;
  padding:1.25rem;
  border-left:5px solid var(--orange);
  border-radius:12px;
  background:#f8fafc;
}

.ocr-path-complete h2{
  margin:.25rem 0 .5rem;
}

.ocr-path-complete p{
  margin-bottom:0;
}

@media(max-width:700px){
  .ocr-swimlane-sequence-head,
  .ocr-swimlane-row{
    grid-template-columns:120px minmax(0,1fr);
  }

  .ocr-swimlane-board{
    min-width:640px;
  }
}


/* Vertical operations process map */
.ocr-live-map{
  overflow-x:visible;
}

.ocr-flow-map{
  display:grid;
  justify-items:stretch;
  gap:0;
  width:100%;
  padding:1rem 0 1.5rem;
}

.ocr-flow-item{
  display:grid;
  grid-template-columns:
    minmax(24px,1fr)
    minmax(230px,340px)
    minmax(120px,1fr);
  align-items:center;
  width:100%;
}

.ocr-flow-node{
  grid-column:2;
  display:grid;
  gap:.75rem;
  width:100%;
  padding:1rem 1.1rem;
  border:2px solid var(--navy);
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 24px rgba(7,26,51,.12);
  z-index:2;
}

.ocr-flow-node.is-current{
  border-color:var(--orange);
  box-shadow:
    0 0 0 3px rgba(244,123,32,.12),
    0 10px 24px rgba(7,26,51,.12);
}

.ocr-flow-node-head{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  align-items:center;
}

.ocr-owner-badge{
  display:inline-flex;
  align-items:center;
  max-width:65%;
  padding:.28rem .55rem;
  border-radius:999px;
  background:#eef2f6;
  color:var(--navy);
  font-size:.72rem;
  font-weight:900;
  line-height:1.2;
  text-align:right;
}

.ocr-flow-activity{
  color:var(--navy);
  font-size:1rem;
  line-height:1.35;
}

.ocr-flow-exception{
  grid-column:3;
  display:flex;
  gap:.45rem;
  align-items:center;
  justify-self:start;
  margin-left:1rem;
  padding:.5rem .7rem;
  border:1px dashed var(--orange);
  border-radius:8px;
  background:#fff7ed;
  color:#8a430c;
  font-size:.76rem;
}

.ocr-flow-connector{
  grid-column:2;
  position:relative;
  justify-self:center;
  width:2px;
  height:42px;
  background:var(--navy);
}

.ocr-flow-connector::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-1px;
  width:8px;
  height:8px;
  border-right:2px solid var(--navy);
  border-bottom:2px solid var(--navy);
  transform:translateX(-50%) rotate(45deg);
  background:#fff;
}

.ocr-flow-end{
  display:grid;
  place-items:center;
  width:86px;
  min-height:44px;
  margin:.4rem auto 0;
  border:2px solid var(--navy);
  border-radius:999px;
  background:#f2f5f8;
  color:var(--navy);
  font-size:.76rem;
  font-weight:900;
  letter-spacing:.06em;
}

@media(max-width:900px){
  .ocr-flow-item{
    grid-template-columns:
      minmax(18px,1fr)
      minmax(220px,360px)
      minmax(100px,1fr);
  }
}

@media(max-width:700px){
  .ocr-flow-item{
    grid-template-columns:1fr;
    justify-items:center;
  }

  .ocr-flow-node,
  .ocr-flow-connector{
    grid-column:1;
  }

  .ocr-flow-node{
    width:min(100%,360px);
  }

  .ocr-flow-exception{
    grid-column:1;
    justify-self:center;
    margin:.7rem 0 0;
  }

  .ocr-flow-connector{
    height:36px;
  }

  .ocr-flow-node-head{
    align-items:flex-start;
  }

  .ocr-owner-badge{
    max-width:70%;
  }
}


/* Task-first vertical process map */
.ocr-live-map{
  overflow:visible;
}

.ocr-task-flow{
  display:grid;
  justify-items:center;
  width:100%;
  padding:1rem 0 1.5rem;
}

.ocr-task-flow-item{
  position:relative;
  display:grid;
  justify-items:center;
  width:min(100%,460px);
}

.ocr-role-context{
  margin-bottom:.35rem;
  padding:.18rem .5rem;
  border-radius:999px;
  background:#eef2f6;
  color:var(--muted);
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.ocr-task-node{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.75rem;
  align-items:center;
  width:min(100%,280px);
  min-height:64px;
  padding:.85rem 1rem;
  border:2px solid var(--navy);
  border-radius:10px;
  background:#fff;
  color:var(--navy);
  text-align:left;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(7,26,51,.10);
}

.ocr-task-node:hover,
.ocr-task-node:focus-visible{
  border-color:var(--orange);
}

.ocr-task-node.is-current{
  border-color:var(--orange);
  box-shadow:
    0 0 0 3px rgba(244,123,32,.12),
    0 8px 20px rgba(7,26,51,.10);
}

.ocr-task-label{
  font-weight:900;
  line-height:1.25;
}

.ocr-task-expand{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#f2f5f8;
  color:var(--navy);
  font-size:1rem;
  font-weight:900;
}

.ocr-task-details{
  width:min(100%,320px);
  margin-top:.45rem;
  padding:.85rem 1rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8fafc;
  box-shadow:0 8px 18px rgba(7,26,51,.08);
}

.ocr-task-details dl{
  display:grid;
  gap:.65rem;
  margin:0;
}

.ocr-task-details dl>div{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:.75rem;
}

.ocr-task-details dt{
  color:var(--muted);
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
}

.ocr-task-details dd{
  margin:0;
  color:var(--navy);
  font-weight:700;
}

.ocr-task-exception{
  margin-top:.8rem;
  padding:.5rem .65rem;
  border-left:3px solid var(--orange);
  background:#fff7ed;
  color:#8a430c;
  font-size:.78rem;
  font-weight:800;
}

.ocr-task-connector{
  position:relative;
  width:2px;
  height:36px;
  background:var(--navy);
}

.ocr-task-connector::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-1px;
  width:8px;
  height:8px;
  border-right:2px solid var(--navy);
  border-bottom:2px solid var(--navy);
  transform:translateX(-50%) rotate(45deg);
  background:#fff;
}

.ocr-exception-stub{
  position:absolute;
  left:calc(50% + 145px);
  top:36px;
  display:flex;
  align-items:center;
  gap:.35rem;
  color:#8a430c;
  font-size:.7rem;
}

.ocr-exception-stub span{
  width:28px;
  border-top:2px dashed var(--orange);
}

.ocr-exception-stub strong{
  white-space:nowrap;
}

.ocr-task-end{
  display:grid;
  place-items:center;
  min-width:78px;
  min-height:38px;
  padding:.35rem .8rem;
  border:2px solid var(--navy);
  border-radius:999px;
  background:#f2f5f8;
  color:var(--navy);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.06em;
}

@media(max-width:700px){
  .ocr-task-node{
    width:min(100%,320px);
  }

  .ocr-exception-stub{
    position:static;
    margin:.45rem 0 0;
  }
}


/* Linked exception process mapper */
.ocr-exception-branches{
  position:absolute;
  left:calc(50% + 145px);
  top:30px;
  display:grid;
  grid-template-columns:28px auto;
  gap:.35rem;
  align-items:center;
}

.ocr-exception-line{
  width:28px;
  border-top:2px dashed var(--orange);
}

.ocr-exception-branch{
  display:inline-flex;
  gap:.35rem;
  align-items:center;
  min-height:32px;
  padding:.35rem .55rem;
  border:1px solid var(--orange);
  border-radius:999px;
  background:#fff7ed;
  color:#8a430c;
  font-size:.7rem;
  font-weight:900;
  cursor:pointer;
}

.ocr-exception-branch:hover,
.ocr-exception-branch:focus-visible{
  background:#ffedd5;
}

.ocr-exception-editor{
  margin-top:1.5rem;
  padding:1.1rem;
  border:1px solid #f3b27e;
  border-radius:14px;
  background:#fffaf5;
}

.ocr-exception-editor-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1rem;
}

.ocr-exception-editor-head h3{
  margin:.2rem 0 0;
}

.ocr-exception-editor .field{
  display:grid;
  gap:.35rem;
  margin:.9rem 0;
}

.ocr-exception-editor label{
  font-weight:800;
  color:var(--navy);
}

.ocr-exception-editor input,
.ocr-exception-editor select{
  width:100%;
  min-height:44px;
  padding:.7rem .8rem;
  border:1px solid #9da9b7;
  border-radius:8px;
  background:#fff;
}

.ocr-exception-editor-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);
  gap:1rem;
  align-items:start;
}

.ocr-exception-map{
  padding:1rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}

.ocr-exception-map-empty{
  margin-top:.75rem;
  padding:1.25rem;
  border:1px dashed #cbd5df;
  border-radius:10px;
  color:var(--muted);
  text-align:center;
}

.ocr-exception-mini-flow{
  display:grid;
  justify-items:center;
  margin-top:.8rem;
}

.ocr-exception-mini-item{
  display:grid;
  justify-items:center;
  width:100%;
}

.ocr-exception-mini-owner{
  margin-bottom:.25rem;
  color:var(--muted);
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
}

.ocr-exception-mini-node{
  width:min(100%,220px);
  padding:.7rem .8rem;
  border:1.5px solid var(--navy);
  border-radius:8px;
  background:#fff;
  color:var(--navy);
  font-size:.8rem;
  font-weight:800;
  text-align:center;
}

.ocr-exception-mini-node.is-current{
  border-color:var(--orange);
}

.ocr-exception-mini-connector{
  width:2px;
  height:24px;
  background:var(--navy);
}

.ocr-exception-resolution{
  margin-top:1.25rem;
}

.ocr-exception-complete{
  display:grid;
  gap:.25rem;
  margin-bottom:1rem;
  padding:1rem;
  border-left:4px solid var(--orange);
  border-radius:9px;
  background:#fff;
}

@media(max-width:900px){
  .ocr-exception-editor-layout{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .ocr-exception-branches{
    position:static;
    grid-template-columns:auto auto;
    margin:.45rem 0 0;
  }

  .ocr-exception-editor-head{
    flex-direction:column;
  }
}


/* Collapsible exception branch */
.ocr-exception-group{
  position:absolute;
  left:calc(50% + 145px);
  top:30px;
  display:grid;
  grid-template-columns:28px minmax(120px,190px);
  gap:.35rem;
  align-items:start;
  z-index:4;
}

.ocr-exception-group .ocr-exception-line{
  margin-top:16px;
}

.ocr-exception-group-content{
  display:grid;
  gap:.35rem;
}

.ocr-exception-toggle{
  display:flex;
  justify-content:space-between;
  gap:.5rem;
  align-items:center;
  min-height:34px;
  padding:.35rem .65rem;
  border:1px solid var(--orange);
  border-radius:999px;
  background:#fff7ed;
  color:#8a430c;
  font-size:.72rem;
  font-weight:900;
  cursor:pointer;
}

.ocr-exception-toggle:hover,
.ocr-exception-toggle:focus-visible{
  background:#ffedd5;
}

.ocr-exception-menu{
  display:grid;
  gap:.25rem;
  min-width:190px;
  padding:.35rem;
  border:1px solid #f3b27e;
  border-radius:10px;
  background:#fff;
  box-shadow:0 8px 18px rgba(7,26,51,.12);
}

.ocr-exception-menu-item,
.ocr-exception-menu-add{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  align-items:center;
  width:100%;
  min-height:36px;
  padding:.45rem .55rem;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--navy);
  font-size:.74rem;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.ocr-exception-menu-item:hover,
.ocr-exception-menu-item:focus-visible,
.ocr-exception-menu-add:hover,
.ocr-exception-menu-add:focus-visible{
  background:#f8fafc;
}

.ocr-exception-menu-add{
  justify-content:flex-start;
  border-top:1px solid var(--line);
  border-radius:0 0 7px 7px;
  color:#8a430c;
}

@media(max-width:700px){
  .ocr-exception-group{
    position:static;
    grid-template-columns:28px minmax(0,1fr);
    width:min(100%,280px);
    margin:.45rem 0 0;
  }

  .ocr-exception-menu{
    min-width:0;
    width:100%;
  }
}


/* Exception path drawer */
.ocr-exception-drawer-shell{
  position:fixed;
  inset:0;
  z-index:80;
  pointer-events:none;
}

.ocr-exception-drawer-backdrop{
  position:absolute;
  inset:0;
  padding:0;
  border:0;
  background:rgba(7,26,51,.05);
  cursor:default;
  pointer-events:auto;
}

.ocr-exception-drawer{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:75vw;
  max-width:1180px;
  min-width:680px;
  background:#fffaf5;
  border-left:1px solid #f3b27e;
  box-shadow:-18px 0 48px rgba(7,26,51,.18);
  overflow:auto;
  pointer-events:auto;
}

.ocr-exception-inspector{
  display:grid;
  gap:1rem;
  min-height:100%;
  padding:clamp(1.25rem,2vw,2rem);
  background:#fffaf5;
}

.ocr-exception-inspector-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
}

.ocr-exception-inspector-head h3{
  margin:.2rem 0 0;
}

.ocr-exception-parent-context{
  display:grid;
  gap:.2rem;
  margin:.7rem 0 0;
  color:var(--navy);
}

.ocr-exception-parent-context span{
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}

.ocr-exception-parent-context strong{
  font-size:1rem;
}

.ocr-inspector-close{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:none;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
}

.ocr-inspector-close:hover,
.ocr-inspector-close:focus-visible{
  border-color:var(--orange);
  color:var(--orange);
}

.ocr-exception-inspector .field{
  display:grid;
  gap:.35rem;
  margin:0;
}

.ocr-exception-inspector label{
  font-weight:800;
  color:var(--navy);
}

.ocr-exception-inspector input,
.ocr-exception-inspector select{
  width:100%;
  min-height:42px;
  padding:.65rem .75rem;
  border:1px solid #9da9b7;
  border-radius:8px;
  background:#fff;
}

.ocr-exception-inspector .ocr-timing-grid{
  gap:.65rem;
}

.ocr-inspector-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:.75rem;
}

.ocr-inspector-actions .button{
  min-height:40px;
  padding:.6rem .8rem;
}

.ocr-exception-inspector-map{
  padding:1rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
}

.ocr-exception-inspector-map .ocr-exception-mini-node{
  width:min(100%,260px);
}

.ocr-return-normal{
  display:flex;
  justify-content:flex-start;
  width:100%;
  padding:.75rem 0 0;
  border:0;
  border-top:1px solid var(--line);
  background:transparent;
  color:var(--navy);
  font-weight:800;
  cursor:pointer;
}

.ocr-return-normal:hover,
.ocr-return-normal:focus-visible{
  color:var(--orange);
}

@media(max-width:900px){
  .ocr-exception-drawer{
    width:100vw;
    max-width:none;
    min-width:0;
    border-left:0;
  }

  .ocr-exception-drawer-backdrop{
    display:none;
  }

  .ocr-exception-inspector{
    padding:1rem;
  }
}
