﻿body {
  --ezwk-theme:        var(--ezwk-workroute);
  --ezwk-theme-deep:   var(--ezwk-workroute-deep);
  --ezwk-theme-bright: var(--ezwk-workroute-bright);
  --ezwk-theme-rgb:    var(--ezwk-workroute-rgb);
}
.abstract-core {
  width: 132px;
  height: 132px;
  border-radius: 999px;
}
.abstract-core::before,
.abstract-core::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 230px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgb(var(--ezwk-theme-rgb) / .54), transparent);
  transform-origin: left center;
}
.abstract-core::before { top: 32px; transform: rotate(-18deg); }
.abstract-core::after { bottom: 32px; transform: rotate(18deg); }
.abstract-piece { border-radius: 999px; }
.abstract-piece.piece-b,
.abstract-piece.piece-c { width: 36px; height: 36px; }
.abstract-link {
  height: 5px;
  background: linear-gradient(90deg, transparent, rgb(var(--ezwk-theme-rgb) / .66), rgb(var(--c-success) / .48), transparent);
  animation-name: route-flow;
}
.abstract-core { animation-name: route-hub; }

.product-flow-section > h2 + .product-faq-list {
  margin-top: calc(clamp(16px, 2.2vw, 28px) * -0.52);
}
.eyebrow { text-transform: uppercase; }
.panel-kicker { color: var(--ezwk-theme); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.flow-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(19px, 4vw, 42px) 68px;
}
.flow-preview {
  margin: 0;
  padding: 23px;
  border: 1px solid var(--ezwk-success-soft);
  border-radius: var(--ezwk-radius-lg);
  background: var(--ezwk-surface);
  box-shadow: var(--shadow);
}
.flow-preview figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 21px;
}
.flow-preview figcaption small {
  color: var(--ezwk-theme);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}
.flow-preview figcaption strong { font-size: 18px; letter-spacing: -.035em; }
.preview-lanes {
  min-height: 232px;
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr;
  align-items: start;
  gap: 4px;
  padding: 12px 0;
}
.preview-lanes > div:not(.links) {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.preview-lanes span {
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.preview-lanes b {
  min-height: 47px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--ezwk-success-soft);
  border-radius: 10px;
  color: var(--ezwk-theme-deep);
  background: var(--ezwk-surface-soft);
  font-size: 12px;
  letter-spacing: -.01em;
}
.preview-lanes b.alert {
  border-color: var(--ezwk-line);
  color: var(--ezwk-danger);
  background: var(--ezwk-danger-soft);
}
.preview-lanes .links {
  padding-top: 47px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.preview-lanes i {
  position: relative;
  height: 12px;
  display: block;
  border-bottom: 2px solid var(--ezwk-quiet);
}
.preview-lanes i::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  border: 4px solid transparent;
  border-left-color: var(--ezwk-quiet);
}
.preview-lanes i.warn { border-color: var(--ezwk-slideshift); }
.preview-lanes i.warn::after { border-left-color: var(--ezwk-slideshift); }
.preview-lanes i.risk { border-color: var(--ezwk-danger); border-bottom-style: dashed; }
.preview-lanes i.risk::after { border-left-color: var(--ezwk-danger); }
.preview-alert {
  padding: 12px 14px;
  color: var(--ezwk-danger);
  background: var(--ezwk-danger-soft);
  border-radius: 10px;
  font-size: 12px;
}
.scope-notice {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 17px 21px;
  border: 1px solid var(--ezwk-line);
  border-radius: var(--ezwk-radius-lg);
  color: var(--ezwk-theme-deep);
  background: var(--ezwk-line-soft);
}
.scope-notice strong {
  flex: none;
  font-size: 13px;
  letter-spacing: .03em;
}
.scope-notice p {
  color: var(--ezwk-app-muted);
  font-size: 13px;
  line-height: 1.8;
}
.workspace {
  padding: clamp(52px, 7vw, 72px) 0 55px;
}
.workspace-layout {
  display: block;
  width: 100%;
}
.setup-head, .subheading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.panel-kicker { margin-bottom: 7px; font-size: 10px; }
.setup-group, .pipeline-builder, .registered-flows {
  padding-top: 18px;
  margin-top: 17px;
  border-top: 1px solid var(--ezwk-app-line);
}
.map-editor-dialog h4 {
  margin-bottom: 10px;
  color: var(--ezwk-app-muted);
}
.asset-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.asset-choice {
  position: relative;
}
.asset-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.asset-choice span {
  min-height: 33px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 17px;
  color: var(--ezwk-app-muted);
  background: var(--ezwk-surface-soft);
  font-size: 11px;
  font-weight: 650;
}
.asset-choice input:checked + span {
  border-color: var(--ezwk-line);
  color: var(--ezwk-theme-deep);
  background: var(--ezwk-theme-soft);
}
.pipeline-builder {
  display: grid;
  gap: 9px;
}
.pipeline-builder h4 { margin-bottom: 1px; }
.pipeline-builder label {
  display: grid;
  gap: 4px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  font-weight: 700;
}
.pipeline-builder select {
  width: 100%;
  min-height: 37px;
  padding: 0 9px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 8px;
  color: var(--ezwk-app-ink);
  background: var(--ezwk-surface);
  font-size: 12px;
}
.builder-message {
  min-height: 18px;
  color: var(--ezwk-danger);
  font-size: 11px;
}
.pipeline-list {
  max-height: 258px;
  overflow: auto;
  display: grid;
  gap: 7px;
}
.pipeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
  padding: 8px 8px 8px 10px;
  border-radius: 9px;
  background: var(--ezwk-app-surface-soft);
}
.pipeline-row button:first-child {
  min-width: 0;
  text-align: left;
  background: transparent;
}
.pipeline-row strong {
  display: block;
  color: var(--ezwk-app-ink);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-row span {
  display: block;
  margin-top: 3px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
}
.pipeline-delete {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--ezwk-app-muted);
  background: transparent;
}
.pipeline-delete:hover { color: var(--ezwk-danger); background: var(--ezwk-danger-soft); }
.result-column { min-width: 0; display: grid; gap: 14px; }
.sample-label {
  margin-top: 6px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}



.map-legend {
  display: grid;
  grid-template-columns: minmax(260px, auto) minmax(340px, auto) 1fr;
  align-items: end;
  gap: 10px 22px;
  margin: 7px 0 13px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
}
.legend-group { display: grid; gap: 6px; }
.legend-title {
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.legend-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend-route { flex: none; width: 56px; height: 16px; overflow: visible; }
.legend-route .route-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.legend-route .route-tip { stroke: none; }
.legend-route .route-particle { stroke: var(--ezwk-surface); stroke-width: 1; }
.legend-badge {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.legend-badge.master-legend { color: var(--ezwk-surface); background: var(--ezwk-theme); }
.legend-badge.candidate-legend {
  color: var(--ezwk-slideshift);
  border: 1px dashed var(--ezwk-slideshift);
  background: var(--ezwk-slideshift-soft);
}
.legend-note { color: var(--ezwk-app-muted); font-size: 10px; line-height: 1.55; }
@media (max-width: 1100px) {
  .map-legend { grid-template-columns: 1fr; }
}
.map-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  border-radius: 14px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.map-scroll:focus-visible {
  outline: 2px solid rgb(var(--c-success) / .34);
  outline-offset: 3px;
}
.map-canvas {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 585px;
  border: 1px solid var(--ezwk-line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ezwk-surface-soft);
}
.workroute-map-panel { overflow: visible; }
#mapZones {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--lane-count, 1), 1fr);
  padding: 8px 0;
  pointer-events: none;
  overflow: hidden;
}
.map-lane-zone {
  border-radius: 18px;
  pointer-events: none;
  transition: background .16s ease, opacity .16s ease;
}
.map-lane-zone.tone-base { background: rgb(var(--c-success) / .06); }
.map-lane-zone.tone-alt { background: rgb(var(--c-ink) / .06); }
.map-canvas.is-card-dragging .map-lane-zone { opacity: .36; }
#mapNodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}
#mapEdges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-lane-label {
  position: absolute;
  top: 15px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  white-space: nowrap;
}
.map-lane-group-label {
  position: absolute;
  top: 11px;
  color: var(--ezwk-theme-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.map-canvas.system-overview .overview-lane-label {
  top: 35px;
  font-size: 9px;
  letter-spacing: .08em;
}
.map-node {
  position: absolute;
  width: 158px;
  min-height: 57px;
  padding: 9px 9px 8px;
  border: 1px solid var(--ezwk-success-soft);
  border-radius: 10px;
  background: var(--ezwk-surface);
  text-align: left;
  box-shadow: 0 2px 8px rgb(var(--c-ink) / .06);
}

.map-canvas.is-card-dragging {
  cursor: grabbing;
  user-select: none;
}
.map-node {
  cursor: grab;
  touch-action: none;
}
.map-node.is-dragging {
  cursor: grabbing;
  z-index: 5;
  transform: scale(1.015);
  box-shadow: 0 18px 34px rgb(var(--c-ink) / .14), 0 0 0 3px rgb(var(--c-success) / .18);
}
.map-node.is-dragging::before {
  content: "SNAP";
  position: absolute;
  right: 8px;
  top: -18px;
  color: var(--ezwk-theme-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  pointer-events: none;
}
.map-node.is-dragging * {
  pointer-events: none;
}
.map-node:hover, .map-node.selected {
  border-color: var(--ezwk-quiet);
  box-shadow: 0 0 0 2px rgb(var(--c-success) / .1);
}
.map-node.form { background: var(--ezwk-line-soft); }
.map-node.storage, .map-node.location { background: var(--ezwk-line-soft); }
.map-node.risk {
  border-color: var(--ezwk-accent-deep);
  background: var(--ezwk-page-background);
}
.map-node.warn { border-color: var(--ezwk-line); }
.map-node small {
  display: block;
  color: var(--ezwk-app-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.map-node strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}
.map-node em {
  display: block;
  margin-top: 3px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-style: normal;
}
.selection-detail {
  min-height: 62px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  color: var(--ezwk-app-muted);
  background: var(--ezwk-app-surface-soft);
  font-size: 12px;
  line-height: 1.7;
}
.selection-detail strong { color: var(--ezwk-app-ink); }
.detail-pill {
  display: inline-flex;
  padding: 3px 7px;
  margin-left: 8px;
  border-radius: 13px;
  color: var(--ezwk-theme-deep);
  background: var(--ezwk-theme-soft);
  font-size: 10px;
  font-weight: 700;
}
.detail-pill.risk { color: var(--ezwk-danger); background: var(--ezwk-danger-soft); }
.diagnosis-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
}
.diagnosis-grid > .c-panel { padding: 18px; }
.duplicate-list { display: grid; gap: 9px; }
.duplicate-domain {
  padding: 10px 11px;
  border: 1px solid var(--ezwk-line);
  border-radius: 10px;
  background: var(--ezwk-page-background);
}
.duplicate-domain strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ezwk-slideshift);
  font-size: 13px;
}
.duplicate-domain p {
  margin-top: 5px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  line-height: 1.55;
}

.priority-list {
  padding-left: 22px;
  display: grid;
  gap: 13px;
}
.priority-list li { padding-left: 4px; color: var(--ezwk-theme); }
.priority-list strong {
  display: block;
  color: var(--ezwk-app-ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.priority-list p {
  color: var(--ezwk-app-muted);
  font-size: 11px;
  line-height: 1.6;
}
.diagnostic-axes {
  display: grid;
  grid-template-columns: minmax(290px, .85fr) minmax(420px, 1.15fr);
  gap: 48px;
  padding: 50px 0 0;
  border-top: 1px solid var(--ezwk-app-line);
}
.diagnostic-axes .eyebrow { margin-bottom: 12px; }
.diagnostic-axes dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
.diagnostic-axes dl div {
  padding: 17px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: var(--ezwk-radius-md);
  background: var(--ezwk-surface);
}
.diagnostic-axes dt {
  margin-bottom: 6px;
  color: var(--ezwk-theme);
  font-size: 15px;
  font-weight: 700;
}
.diagnostic-axes dd {
  color: var(--ezwk-app-muted);
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 1110px) {
  .hero, .workspace-layout, .diagnostic-axes { grid-template-columns: 1fr; }
  .flow-preview { max-width: 650px; }
}
@media (max-width: 800px) {
  .flow-page { padding-inline: 15px; }
  .hero { min-height: 0; padding-top: 39px; }
  .map-header, .scope-notice { flex-direction: column; }
  .workroute-metrics, .diagnosis-grid, .diagnostic-axes dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .preview-lanes { min-width: 560px; }
  .flow-preview { overflow-x: auto; }
  .workroute-metrics, .diagnosis-grid, .diagnostic-axes dl { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: start; }
}


/* WorkRoute v2: information-domain ownership and judgement */
.domain-current {
  display:inline-flex; min-height:27px; align-items:center; padding:0 9px; border-radius:14px;
  color:var(--ezwk-theme-deep); background:var(--ezwk-theme-soft); font-size:11px;
}
.domain-hint { color:var(--ezwk-app-muted); font-size:11px; line-height:1.65; }
.domain-control label, .pipeline-builder label {
  display:grid; gap:4px; color:var(--ezwk-app-muted); font-size:11px; font-weight:700;
}
.domain-control select, .domain-control input, .pipeline-builder input {
  width:100%; min-height:37px; padding:0 9px; border:1px solid var(--ezwk-app-line);
  border-radius:8px; color:var(--ezwk-app-ink); background:var(--ezwk-surface); font-size:12px;
}
#domainSettings { margin-top:12px; display:grid; gap:9px; }
#domainSettings[hidden] { display:none; }
.roles-heading { margin-top:5px; }
.roles-heading h4 { margin:0; }
.role-editor { display:grid; gap:6px; }
.role-row { display:grid; grid-template-columns:minmax(0,1fr) 110px; align-items:center; gap:6px; }
.role-row span {
  overflow:hidden; color:var(--ezwk-app-muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap;
}
.role-row select { min-height:31px; font-size:11px; }
.board-filter em { width:7px; height:7px; border-radius:50%; background:var(--ezwk-slideshift); font-style:normal; }
.board-filter em.high { background:var(--ezwk-danger); }
/* MASTER legend style is defined by .legend-badge.master-legend. */
.map-node { min-height:68px; }
.map-node .node-role {
  display:inline-flex; margin-top:5px; padding:2px 6px; border-radius:10px; color:var(--ezwk-app-muted);
  background:var(--gray-soft); font-size:9px; font-weight:800; letter-spacing:.06em;
}
.map-node.master { border-color:var(--ezwk-theme); background:var(--ezwk-line-soft); }
.map-node.master .node-role { color:var(--ezwk-surface); background:var(--ezwk-theme); }
.map-node.unmanaged .node-role { color:var(--ezwk-danger); background:var(--ezwk-danger-soft); }
.map-node.temporary .node-role { color:var(--ezwk-slideshift); background:var(--ezwk-slideshift-soft); }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:11px; }
.detail-grid label { display:grid; gap:4px; color:var(--ezwk-app-muted); font-size:10px; font-weight:700; }
.detail-grid select {
  min-height:35px; padding:0 8px; border:1px solid var(--ezwk-app-line); border-radius:7px; background:var(--ezwk-surface); font-size:11px;
}
.collection-editor { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:5px; }
.collection-editor label {
  display:inline-flex; align-items:center; gap:4px; padding:5px 7px;
  border:1px solid var(--ezwk-app-line); border-radius:14px; background:var(--ezwk-surface);
}
.collection-editor input { margin:0; }
.domain-summary {
  padding:12px; margin-bottom:12px; border:1px solid var(--ezwk-success-soft); border-radius:11px; background:var(--ezwk-line-soft);
}
.domain-summary strong { display:block; margin-bottom:5px; color:var(--ezwk-theme-deep); font-size:14px; }
.domain-summary p { color:var(--ezwk-app-muted); font-size:11px; line-height:1.65; }
.domain-summary .warning-text { color:var(--ezwk-danger); font-weight:700; }
.diagnosis-grid.v2 { grid-template-columns:.85fr 1.15fr; }
.diagnosis-grid .full { grid-column:1 / -1; }
.judgement-columns { display:grid; gap:9px; }
.judgement-group { padding:11px; border:1px solid var(--ezwk-app-line); border-radius:11px; }
.judgement-group h4 { margin:0 0 8px; }
.judgement-group.healthy { background:var(--ezwk-surface-soft); border-color:var(--ezwk-success-soft); }
.judgement-group.healthy h4 { color:var(--ezwk-theme); }
.judgement-group.review { background:var(--ezwk-page-background); border-color:var(--ezwk-line); }
.judgement-group.review h4 { color:var(--ezwk-slideshift); }
.judgement-group.high { background:var(--ezwk-page-background); border-color:var(--ezwk-line); }
.judgement-group.high h4 { color:var(--ezwk-danger); }
.judgement-item { padding:7px 0; border-top:1px solid rgb(var(--c-muted) / .1); }
.judgement-item:first-child { padding-top:0; border-top:0; }
.judgement-item strong { display:block; color:var(--ezwk-app-ink); font-size:11px; }
.judgement-item p { margin-top:3px; color:var(--ezwk-app-muted); font-size:10px; line-height:1.55; }
.priority-list { grid-template-columns:repeat(3,minmax(0,1fr)); padding-left:0; list-style:none; }
.priority-list li {
  padding:12px; border:1px solid var(--ezwk-app-line); border-radius:11px; background:var(--ezwk-app-surface-soft);
}
.priority-list li.high { border-color:var(--ezwk-line); background:var(--ezwk-danger-soft); }
.priority-list li.review { border-color:var(--ezwk-line); background:var(--ezwk-slideshift-soft); }
.priority-list li::before {
  display:block; margin-bottom:6px; color:var(--ezwk-theme); content:attr(data-index);
  font-size:10px; font-weight:800; letter-spacing:.15em;
}
.priority-list li.high::before { color:var(--ezwk-danger); }
.priority-list li.review::before { color:var(--ezwk-slideshift); }
@media (max-width:800px) {
  .detail-grid, .priority-list { grid-template-columns:1fr; }
  .diagnosis-grid.v2 { grid-template-columns:1fr; }
}


.workspace-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 999px;
  background: var(--ezwk-line-soft);
}
.workspace-tab {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--ezwk-app-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.workspace-tab.active {
  color: var(--ezwk-theme-deep);
  background: var(--ezwk-surface);
  box-shadow: 0 1px 4px rgb(var(--c-ink) / .06);
}
.tab-badge {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 11px;
  color: var(--ezwk-slideshift);
  background: var(--ezwk-slideshift-soft);
  font-size: 10px;
  text-align: center;
}
.tab-badge.risk { color: var(--ezwk-danger); background: var(--ezwk-danger-soft); }
.workspace-view {
  display: grid;
  gap: 14px;
}
.workspace-view[hidden] { display: none; }
/* MASTER ? legend style is defined by .legend-badge.candidate-legend. */
.map-node.master-candidate {
  border-color: var(--ezwk-line);
  border-style: dashed;
  background: var(--ezwk-page-background);
}
.map-node.master-candidate .node-role {
  color: var(--ezwk-slideshift);
  background: var(--ezwk-slideshift-soft);
}
.map-node.confirmed {
  box-shadow: inset 0 0 0 1px rgb(var(--c-success) / .14);
}
#boardView > .c-panel { padding: 21px; }
#boardView .c-panel-head p:not(.panel-kicker) {
  margin-top: 8px;
  max-width: 550px;
  color: var(--ezwk-app-muted);
  font-size: 12px;
  line-height: 1.8;
}

.board-metrics { gap: 8px; margin-bottom: 17px; }
.board-metrics .c-metric { padding: 10px 12px; }
.board-metrics .c-metric__label { font-size: 10px; }
.board-metrics .c-metric__value { font-size: 24px; margin-top: 4px; }
.board-layout {
  display: grid;
  grid-template-columns: minmax(330px, .94fr) minmax(360px, 1.06fr);
  gap: 12px;
  align-items: start;
}
.task-list {
  display: grid;
  gap: 8px;
}
.task-card {
  width: 100%;
  padding: 13px 13px 12px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 11px;
  color: var(--ezwk-app-ink);
  background: var(--ezwk-surface);
  text-align: left;
}
.task-card:hover,
.task-card.selected { border-color: var(--ezwk-quiet); }
.task-card.high { border-left: 4px solid var(--ezwk-danger); }
.task-card.review { border-left: 4px solid var(--ezwk-slideshift); }
.task-card.resolved { border-left: 4px solid var(--ezwk-theme); }
.task-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.task-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}
.task-card p {
  margin-top: 6px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  line-height: 1.55;
}
.status-pill {
  flex: none;
  align-self: start;
  padding: 4px 8px;
  border-radius: 13px;
  color: var(--ezwk-app-muted);
  background: var(--gray-soft);
  font-size: 10px;
  font-weight: 700;
}
.status-pill.requested,
.status-pill.answered { color: var(--ezwk-slideshift); background: var(--ezwk-slideshift-soft); }
.status-pill.conflict { color: var(--ezwk-danger); background: var(--ezwk-danger-soft); }
.status-pill.confirmed { color: var(--ezwk-theme); background: var(--ezwk-theme-soft); }
.status-pill.retire { color: var(--ezwk-muted); background: var(--ezwk-line-soft); }
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.task-meta span {
  padding: 3px 7px;
  border-radius: 13px;
  color: var(--ezwk-app-muted);
  background: var(--ezwk-app-surface-soft);
  font-size: 10px;
}
.task-editor {
  position: sticky;
  top: 94px;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 12px;
  background: var(--ezwk-surface-soft);
}
.task-editor h4 {
  margin: 0 0 6px;
}
.task-editor-copy {
  margin-bottom: 14px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  line-height: 1.65;
}
.task-question-list {
  margin: 0 0 15px;
  padding: 11px 12px 11px 27px;
  border-radius: 9px;
  color: var(--ezwk-app-muted);
  background: var(--ezwk-surface);
  font-size: 11px;
  line-height: 1.7;
}
.task-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}
.task-editor label {
  display: grid;
  gap: 4px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-weight: 700;
}
.task-editor label.full { grid-column: 1 / -1; }
.task-editor input,
.task-editor select,
.task-editor textarea {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 7px;
  color: var(--ezwk-app-ink);
  background: var(--ezwk-surface);
  font-size: 12px;
}
.task-editor textarea {
  min-height: 63px;
  padding: 8px 9px;
  resize: vertical;
}
.task-editor-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}
.task-editor-actions .button { min-height: 40px; font-size: 12px; }
.response-list {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ezwk-app-line);
}
.response-list h5 {
  margin: 0 0 3px;
  color: var(--ezwk-app-muted);
}
.response-card {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--ezwk-surface);
}
.response-card strong {
  font-size: 11px;
}
.response-card p {
  color: var(--ezwk-app-muted);
  font-size: 10px;
  line-height: 1.6;
}
.conflict-list {
  display: grid;
  gap: 13px;
}
.conflict-card {
  padding: 16px;
  border: 1px solid var(--ezwk-line);
  border-radius: 12px;
  background: var(--ezwk-page-background);
}
.conflict-card h4 {
  margin: 0 0 5px;
  color: var(--ezwk-danger);
}
.conflict-card > p {
  color: var(--ezwk-app-muted);
  font-size: 11px;
  line-height: 1.65;
}
.conflict-responses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
  margin-top: 12px;
}
.conflict-response {
  padding: 10px;
  border-radius: 9px;
  background: var(--ezwk-surface);
}
.conflict-response strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}
.conflict-response span {
  display: block;
  color: var(--ezwk-danger);
  font-size: 11px;
  font-weight: 700;
}
.conflict-response p {
  margin-top: 4px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
  line-height: 1.55;
}
.agreement-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ezwk-app-line);
}
.agreement-panel h3 {
  margin: 6px 0 14px;
}
.agreement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.agreement-card {
  padding: 12px;
  border: 1px solid var(--ezwk-success-soft);
  border-radius: 10px;
  background: var(--ezwk-line-soft);
}
.agreement-card strong {
  display: block;
  color: var(--ezwk-theme-deep);
  font-size: 13px;
}
.agreement-card p {
  margin-top: 5px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  line-height: 1.55;
}
@media (max-width: 940px) {
  .board-layout,
  .conflict-responses,
  .agreement-list { grid-template-columns: 1fr; }
  .task-editor { position: static; }
  .board-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .workspace-tabs { flex-direction: column; }
  .workspace-tab { justify-content: space-between; }
  .board-metrics,
  .task-editor-grid { grid-template-columns: 1fr; }
}

/* WorkRoute v4 Public Beta / local-only app shell */
.app-start { max-width:860px; margin:0 auto; padding:clamp(55px,8vw,86px) 0 70px; }
.app-start .eyebrow { margin-bottom:15px; }
.app-start h1 { margin:0 0 17px; }
.start-lead { max-width:670px; color:var(--ezwk-app-muted); font-size:16px; line-height:1.9; }
.start-safety { display:flex; gap:16px; margin:30px 0; padding:15px 18px; border:1px solid var(--ezwk-line); border-radius:13px; background:var(--ezwk-line-soft); }
.start-safety strong { flex:none; color:var(--ezwk-theme-deep); font-size:13px; }
.start-safety p { color:var(--ezwk-app-muted); font-size:12px; line-height:1.65; }
.app-start-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.app-start-options button { display:grid; gap:10px; padding:25px; border:1px solid var(--ezwk-app-line); border-radius:17px; background:var(--ezwk-surface); text-align:left; }
.app-start-options button:hover { border-color:var(--ezwk-quiet); }
.app-start-options strong { color:var(--ezwk-theme-deep); font-size:21px; letter-spacing:-.045em; }
.app-start-options span { color:var(--ezwk-app-muted); font-size:13px; line-height:1.75; }
.back-link { display:inline-flex; margin-top:28px; color:var(--ezwk-theme); font-size:13px; font-weight:700; }
.public-workspace { padding:41px 0 0; }
.public-workspace[hidden] { display:none; }
.workspace-public-header { display:flex; justify-content:space-between; gap:32px; align-items:end; margin-bottom:20px; }
.workspace-public-header .eyebrow { margin-bottom:9px; }
.workspace-public-header h1 { margin:0 0 7px; }
.workspace-public-header p:not(.eyebrow) { color:var(--ezwk-app-muted); font-size:13px; }
.workspace-header-actions { display:flex; gap:8px; }
.safe-use-notice { display:flex; gap:16px; align-items:start; padding:13px 16px; margin-bottom:20px; border:1px solid var(--ezwk-line); border-radius:12px; background:var(--ezwk-line-soft); }
.safe-use-notice strong { flex:none; color:var(--ezwk-theme-deep); font-size:12px; }
.safe-use-notice span { color:var(--ezwk-app-muted); font-size:11px; line-height:1.7; }
.add-form { display:grid; gap:8px; }
.add-form h4 { margin-bottom:1px; }
.add-form label { display:grid; gap:4px; color:var(--ezwk-app-muted); font-size:11px; font-weight:700; }
.add-form input,.add-form select { width:100%; min-height:36px; padding:0 9px; border:1px solid var(--ezwk-app-line); border-radius:8px; background:var(--ezwk-surface); color:var(--ezwk-app-ink); font-size:12px; }
.two-fields { display:grid; grid-template-columns:112px minmax(0,1fr); gap:7px; }
.asset-choice.custom span { border-style:dashed; }
.export-report-template { display:none; }
body.workroute-print-report .export-report-template { display:block !important; }
.report-sheet { padding:clamp(26px,5vw,45px); border:1px solid var(--ezwk-app-line); border-radius:18px; background:var(--ezwk-surface); }
.report-header { padding-bottom:20px; border-bottom:1px solid var(--ezwk-app-line); }
.report-header p { margin:0 0 9px; color:var(--ezwk-theme); font-size:10px; font-weight:800; letter-spacing:.17em; }
.report-header h2 { margin:0 0 7px; }
.report-header span { color:var(--ezwk-app-muted); font-size:12px; }
.report-notice { margin:19px 0; padding:12px 14px; border:1px solid var(--ezwk-line); border-radius:9px; color:var(--ezwk-theme-deep); background:var(--ezwk-line-soft); font-size:12px; line-height:1.7; } .report-notice small { display:block; margin-top:5px; color:var(--ezwk-app-muted); font-size:10px; }
.report-section { margin-top:23px; }
.report-section h3 { margin:0 0 12px; }
.report-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.report-stat { padding:12px; border:1px solid var(--ezwk-app-line); border-radius:8px; }
.report-stat span { display:block; color:var(--ezwk-app-muted); font-size:10px; }
.report-stat strong { display:block; margin-top:5px; font-size:25px; }
.report-priorities { margin:0; padding-left:21px; display:grid; gap:9px; }
.report-priorities li { color:var(--ezwk-app-muted); font-size:12px; line-height:1.65; }
.report-priorities strong { color:var(--ezwk-app-ink); display:block; }
.report-domains { display:grid; gap:7px; }
.report-domain { display:grid; grid-template-columns:130px 150px minmax(0,1fr); gap:13px; padding:10px 0; border-top:1px solid var(--ezwk-app-line); font-size:11px; }
.report-domain strong { color:var(--ezwk-app-ink); }
.report-domain span { color:var(--ezwk-app-muted); }
.report-domain .alert { color:var(--ezwk-danger); font-weight:700; }
.report-footer { margin-top:25px; padding-top:14px; border-top:1px solid var(--ezwk-app-line); color:var(--ezwk-app-muted); font-size:10px; }
.report-actions { display:flex; gap:13px; align-items:center; }
.report-actions p { color:var(--ezwk-app-muted); font-size:11px; }
@media(max-width:760px){ .app-start-options,.report-summary{grid-template-columns:1fr;} .workspace-public-header,.safe-use-notice,.start-safety,.report-actions{flex-direction:column;align-items:start;} .two-fields{grid-template-columns:1fr;} .report-domain{grid-template-columns:1fr;gap:4px;} }
@media print {
  @page { margin:14mm; size:A4 portrait; }
  body.workroute-print-report { background:var(--ezwk-surface)!important; }
  body.workroute-print-report .shell-header,body.workroute-print-report .shell-footer,body.workroute-print-report .workspace-public-header,body.workroute-print-report .safe-use-notice,body.workroute-print-report .workroute-metrics,body.workroute-print-report .workspace-tabs,body.workroute-print-report #mapView,body.workroute-print-report #boardView,body.workroute-print-report #conflictsView,body.workroute-print-report .no-print { display:none!important; }
  body.workroute-print-report .public-workspace,body.workroute-print-report .workspace-layout,body.workroute-print-report .result-column,body.workroute-print-report #exportReportTemplate { display:block!important; width:auto!important; margin:0!important; padding:0!important; }
  body.workroute-print-report .report-sheet { border:0!important; padding:0!important; box-shadow:none!important; }
}

/* WorkRoute v10: internal-system overview mode */
.inventory-scoreboard div:nth-child(3) {
  background: var(--ezwk-line-soft);
}
.map-canvas.system-overview {
  background: var(--ezwk-surface-soft);
}
.map-canvas.system-overview .map-node {
  min-height: 80px;
  padding: 8px 9px 7px;
  border-radius: 9px;
}
.map-canvas.system-overview .map-node strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.map-canvas.system-overview .map-node small { font-size: 8px; }
.map-node .node-owner {
  display: block;
  margin-top: 5px;
  color: var(--ezwk-app-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}
.map-canvas.system-overview .map-node.storage .node-owner,
.map-canvas.system-overview .map-node.location .node-owner {
  color: var(--ezwk-slideshift);
}

/* WorkRoute v13: ERP / core-system diagnostic templates */
.template-library .subheading { align-items: baseline; }
.template-count { color: var(--ezwk-theme); font-size: 11px; font-weight: 700; }
.template-note { margin: -2px 0 10px; color: var(--ezwk-app-muted); font-size: 10px; line-height: 1.6; }
.template-filters { display: grid; gap: 7px; margin-bottom: 11px; }
.template-filters label { display: grid; gap: 4px; color: var(--ezwk-app-muted); font-size: 10px; font-weight: 700; }
.template-filters input, .template-filters select { width: 100%; min-height: 35px; padding: 0 9px; border: 1px solid var(--ezwk-app-line); border-radius: 8px; color: var(--ezwk-app-ink); background: var(--ezwk-surface); font-size: 12px; }
.asset-choice span { gap: 6px; flex-wrap: wrap; height: auto; padding-block: 7px; }
.asset-choice b { font-size: 11px; font-weight: 700; }
.asset-choice small { padding: 2px 5px; border-radius: 8px; color: var(--ezwk-app-muted); background: var(--ezwk-line-soft); font-size: 9px; font-weight: 700; }
.asset-choice input:checked + span small { color: var(--ezwk-theme-deep); background: var(--ezwk-success-soft); }
.erp-scoreboard { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.erp-scoreboard .core { border-color: var(--ezwk-line); background: var(--ezwk-line-soft); }
.erp-scoreboard .core strong { color: var(--ezwk-theme); }
.map-node.risk { box-shadow: 0 13px 28px rgb(var(--c-danger) / .14); }

.map-node.erp { border-color: var(--ezwk-line-strong); background: var(--ezwk-line-soft); }
.map-node.erp small { color: var(--ezwk-theme-deep); }
@media (max-width: 900px) { .erp-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* WorkRoute v14: runtime map-edge alignment and visibility */
.map-canvas svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  overflow: visible;
}
.map-canvas svg[hidden] { display: none !important; }
.map-node,
.map-lane-label,
.map-lane-group-label { z-index: 2; }
.map-edge {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: .95;
  pointer-events: stroke;
  cursor: pointer;
}
.map-edge.api { stroke: var(--ezwk-gridshift-deep); }
.map-edge.csv { stroke: var(--ezwk-slideshift); }
.map-edge.manual { stroke: var(--ezwk-accent-deep); }
.map-edge.unknown { stroke: var(--ezwk-quiet); }
.map-edge.risk { stroke: var(--ezwk-accent-deep); stroke-width: 2.6; }
.edge-label {
  font-family: var(--ezwk-font-sans);
  fill: var(--ezwk-muted);
  font-size: 10px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--ezwk-surface-soft);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-canvas.system-overview .edge-label {
  opacity: 0;
  pointer-events: none;
}


/* WorkRoute v17: all-system overview connections */
.map-arrow { stroke: none; }
.map-arrow.api { fill: var(--ezwk-gridshift-deep); }
.map-arrow.csv { fill: var(--ezwk-slideshift); }
.map-arrow.manual,
.map-arrow.risk { fill: var(--ezwk-accent-deep); }
.map-arrow.unknown { fill: var(--ezwk-quiet); }
.map-canvas.system-overview .map-edge {
  opacity: .68;
  stroke-width: 1.85;
}
.map-canvas.system-overview .map-edge.edit-read {
  opacity: .54;
  stroke-width: 1.45;
}
.map-canvas.system-overview .map-edge.edit-update {
  opacity: .82;
  stroke-width: 2.35;
}
.map-canvas.system-overview .map-edge.edit-unknown {
  opacity: .50;
}
.map-canvas.system-overview .map-edge.risk {
  opacity: .92;
  stroke-width: 2.25;
}
.map-canvas.flow-drilldown .map-edge {
  opacity: 1;
}


/* WorkRoute v18: report map snapshot + local export buttons */
.report-map-section .report-map-caption { margin-top:10px; }
.report-map-snapshot {
  overflow:auto;
  padding:14px;
  border:1px solid var(--ezwk-app-line);
  border-radius:14px;
  background:var(--ezwk-surface-soft);
}
.report-map-snapshot .map-canvas {
  margin:0 auto;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.report-map-snapshot .map-node { cursor:default; pointer-events:none; }
.report-map-snapshot .map-node:focus { outline:none; }
.report-map-snapshot .map-node:hover { transform:none; box-shadow:var(--ezwk-shadow-card); }
.report-map-snapshot .map-lane-label,
.report-map-snapshot .map-lane-group-label { pointer-events:none; }
.report-map-caption {
  margin:10px 0 0;
  color:var(--ezwk-app-muted);
  font-size:11px;
  line-height:1.7;
}


/* WorkRoute v19: PDF-safe report map fitting */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.workroute-print-report .report-sheet {
    width: 100% !important;
    max-width: none !important;
  }
  body.workroute-print-report .report-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  body.workroute-print-report .report-section,
  body.workroute-print-report .report-map-snapshot {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.workroute-print-report .report-map-snapshot {
    width: 100% !important;
    overflow: hidden !important;
    padding: 8px !important;
    background: var(--ezwk-surface) !important;
  }
  body.workroute-print-report .report-map-canvas {
    margin: 0 !important;
    transform-origin: top left !important;
  }
}


/* WorkRoute v21: map-first card editor and storage-location layer */
.result-column { width: 100%; min-width: 0; }
.result-column > *,
.workspace-view,
.workspace-view > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.result-column > .product-action-row {
  width: 100%;
  margin-inline: 0;
}
.workroute-map-panel { width: 100%; }
.map-toolbar { display:flex; flex-direction:column; align-items:end; gap:10px; }
.map-add-button { padding-inline:11px 17px; font-size:12px; }
.map-add-button span {
  display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%;
  color:var(--ezwk-theme); background:var(--ezwk-surface); font-size:18px; line-height: 1.45;
}
.map-editor-modal[hidden] { display:none !important; }
.map-editor-modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:clamp(12px,3vw,26px); }
.map-editor-backdrop { position:absolute; inset:0; border:0; background:rgb(var(--c-ink) / .48); }
.map-editor-dialog {
  position:relative; z-index:1; display:flex; flex-direction:column;
  width:min(790px,100%); max-height:min(90vh,920px); overflow:hidden;
  border:1px solid var(--ezwk-line); border-radius:20px; background:var(--ezwk-surface);
  box-shadow:0 28px 80px rgb(var(--c-ink) / .24);
}
.map-editor-head { display:flex; justify-content:space-between; gap:20px; padding:20px 22px 15px; border-bottom:1px solid var(--ezwk-app-line); }
.map-editor-head p:not(.panel-kicker) { margin-top:5px; color:var(--ezwk-app-muted); font-size:12px; }
.editor-close { flex:none; width:38px; height:38px; border:1px solid var(--ezwk-app-line); border-radius:50%; color:var(--ezwk-app-muted); background:var(--ezwk-surface); font-size:23px; line-height: 1.45; }
.editor-close:hover { color:var(--ezwk-theme-deep); background:var(--ezwk-theme-soft); }
.map-editor-tabs { display:flex; gap:5px; padding:12px 22px 0; }
.map-editor-tab { min-height:37px; padding:0 14px; border-radius:999px; color:var(--ezwk-app-muted); background:var(--ezwk-app-surface-soft); font-size:12px; font-weight:700; }
.map-editor-tab.active { color:var(--ezwk-surface); background:var(--ezwk-theme); }
.map-editor-scroll { flex:1; overflow-y:auto; padding:4px 22px 20px; }
.map-editor-panel { display:grid; gap:16px; }
.map-editor-panel[hidden] { display:none !important; }
.editor-section { padding:17px; border:1px solid var(--ezwk-app-line); border-radius:14px; background:var(--ezwk-surface); }
.editor-section:first-child { margin-top:15px; }
.editor-section h4 { margin-bottom:10px; color:var(--ezwk-app-muted); }
.form-template-list { margin-top:8px; }
.repository-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:10px; border:1px solid var(--ezwk-line); border-radius:10px; background:var(--ezwk-page-background); }
.repository-fields[hidden] { display:none !important; }
.map-editor-foot { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:12px 22px 15px; border-top:1px solid var(--ezwk-app-line); color:var(--ezwk-app-muted); font-size:11px; }
body.map-editor-open { overflow:hidden; }
.map-node.location { border-color:var(--ezwk-line); }
.map-node .node-storage-state { display:block; margin-top:4px; color:var(--ezwk-muted); font-size:9px; font-weight:700; }
.map-node .node-storage-state.risk { color:var(--ezwk-danger); }
.repository-editor { margin-top:9px; }
@media(max-width:760px) {
  .map-toolbar { width:100%; align-items:start; }

  .map-editor-dialog { max-height:94vh; border-radius:16px; }
  .repository-fields { grid-template-columns:1fr; }
  .map-editor-foot { flex-direction:column; align-items:start; }
}
@media print { body.workroute-print-report .map-editor-modal { display:none !important; } }


/* WorkRoute v23: unified diagnosis screen and export menu */
.map-primary-actions { display:flex; align-items:center; gap:9px; }
.export-menu { position:relative; }
.export-menu summary { cursor:pointer; list-style:none; font-size:12px; }
.export-menu summary::-webkit-details-marker { display:none; }
.export-menu summary::after { content:"?"; margin-left:8px; color:var(--ezwk-app-muted); font-size:13px; }
.export-menu[open] summary { border-color:var(--ezwk-line); background:var(--ezwk-theme-soft); }
.export-popover {
  position:absolute; top:calc(100% + 8px); right:0; z-index:20; display:grid; gap:7px;
  width:232px; padding:12px; border:1px solid var(--ezwk-line); border-radius:13px;
  background:var(--ezwk-surface); box-shadow:0 18px 45px rgb(var(--c-ink) / .14);
}
.export-popover strong { margin-bottom:3px; color:var(--ezwk-app-muted); font-size:11px; letter-spacing:.06em; }
.export-popover .button {
  width:100%;
  justify-content:flex-start;
  text-align:left;
}
.export-popover small { display:block; margin-top:3px; color:var(--ezwk-app-muted); font-size:10px; line-height:1.6; }
@media(max-width:760px) {
  .map-primary-actions { width:100%; flex-wrap:wrap; }
  .export-menu { flex:1; }
  .export-menu summary { justify-content:center; width:100%; }
  .export-popover { left:0; right:auto; width:min(272px, calc(100vw - 34px)); }
}
@media print { body.workroute-print-report .export-menu { display:none !important; } }


/* WorkRoute: button shape is owned by assets/buttons.css. */
.export-popover .button.compact { min-height: 38px; }


/* WorkRoute v24: compact system map, routed edges and motion indicator */
.map-canvas.system-overview .node-owner {
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.map-canvas.system-overview .node-storage-state {
  overflow: hidden;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.map-canvas .map-edge { stroke-linejoin: round; }
.flow-motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0;
  color: var(--ezwk-app-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.flow-motion-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.flow-motion-toggle span::before { display: none; }
.flow-motion-track {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: var(--ezwk-line);
  transition: background .18s ease;
}
.flow-motion-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ezwk-surface);
  transition: transform .18s ease;
}
.flow-motion-toggle input:checked + .flow-motion-track { background: var(--ezwk-action); }
.flow-motion-toggle input:checked + .flow-motion-track::after { transform: translateX(14px); }
.flow-motion-toggle input:focus-visible + .flow-motion-track { outline: 2px solid var(--ezwk-action); outline-offset: 2px; }
.map-canvas.flow-drilldown {
  background: var(--ezwk-surface-soft);
}
.map-canvas.flow-drilldown .map-edge { stroke-linejoin: round; }
.map-canvas.flow-drilldown.flow-motion-active .edge-label { font-weight: 800; }
.flow-particle { opacity: .95; pointer-events: none; }
.flow-particle.api { fill: var(--ezwk-gridshift-deep); }
.flow-particle.csv { fill: var(--ezwk-slideshift); }
.flow-particle.manual, .flow-particle.risk { fill: var(--ezwk-accent-deep); }
.flow-particle.unknown { fill: var(--ezwk-quiet); }
.report-map-snapshot .flow-particle,
body.workroute-print-report .flow-particle { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .flow-particle { display: none !important; }
}

@media (max-width: 760px) {
  .map-scroll { margin-inline: -6px; padding-inline: 6px; }
  .map-canvas { min-height: 560px; }
}
@media (max-width: 760px) {
  .flow-motion-toggle { margin-left: 0; }
}


/* WorkRoute v25: product-category template catalogue */
.template-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1px 0 12px;
}
.template-category {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 999px;
  color: var(--ezwk-app-muted);
  background: var(--ezwk-surface);
  font-size: 10px;
  font-weight: 700;
}
.template-category:hover { border-color: var(--ezwk-action-line); color: var(--ezwk-action-deep); }
.template-category.active { border-color: var(--ezwk-action); color: var(--ezwk-surface); background: var(--ezwk-action); }
.asset-choice span { align-items: center; }
.asset-choice small.asset-category { color: var(--ezwk-theme-deep); background: var(--ezwk-line-soft); }
.asset-choice input:checked + span small.asset-category { color: var(--ezwk-surface); background: var(--ezwk-action); }
.asset-domain-suggestions {
  flex-basis: 100%;
  padding-top: 1px;
  color: var(--ezwk-app-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}
.asset-choice input:checked + span .asset-domain-suggestions { color: var(--ezwk-muted); }


/* WorkRoute v27: editable JSON map storage */
.map-file-management {
  display: grid;
  grid-template-columns: minmax(230px, 1.18fr) minmax(280px, .96fr) auto;
  align-items: end;
  gap: 16px 20px;
  margin: 0 0 18px;
  padding: 16px 18px;
}
.map-file-management-heading .panel-kicker { margin: 0 0 6px; }
.map-file-management-heading h2 { margin: 0 0 5px; }
.map-file-management-heading p:last-child { margin: 0; color: var(--ezwk-app-muted); font-size: 12px; line-height: 1.65; }
.map-file-fields { display: grid; grid-template-columns: repeat(2, minmax(128px, 1fr)); gap: 9px; }
.map-file-fields label { display: grid; gap: 5px; color: var(--ezwk-app-muted); font-size: 11px; font-weight: 700; }
.map-file-fields input {
  min-width: 0;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 10px;
  color: var(--ezwk-app-ink);
  background: var(--ezwk-surface);
}
.map-file-fields input:focus-visible { outline: 2px solid var(--ezwk-focus-ring); outline-offset: 1px; border-color: var(--ezwk-action); }
.map-file-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.map-file-actions .button { white-space: nowrap; }
.save-state { flex-basis: 100%; justify-self: end; margin-top: 2px; font-size: 11px; font-weight: 700; text-align: right; }
.save-state.dirty { color: var(--ezwk-slideshift); }
.save-state.saved { color: var(--ezwk-theme); }
.json-message {
  grid-column: 1 / -1;
  min-height: 0;
  margin: -7px 0 0;
  color: var(--ezwk-app-muted);
  font-size: 12px;
}
.json-message:empty { display: none; }
.json-message.error { color: var(--ezwk-danger); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
@media (max-width: 980px) {
  .map-file-management { grid-template-columns: 1fr; align-items: start; }
  .map-file-actions { justify-content: flex-start; }
  .save-state { flex-basis: auto; text-align: left; }
}
@media (max-width: 560px) { .map-file-fields { grid-template-columns: 1fr; } }

/* WorkRoute v009: intuitive category visuals */
.map-node {
  overflow: hidden;
  isolation: isolate;
}
.map-node > :not(.node-visual) {
  position: relative;
  z-index: 1;
}
.map-node .node-visual {
  position: absolute;
  z-index: 0;
  inset: auto -5px -4px auto;
  width: 56px;
  height: 56px;
  color: var(--ezwk-success-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .72;
  pointer-events: none;
}
.map-node .node-category {
  color: var(--ezwk-theme-deep);
  letter-spacing: .08em;
}
.node-form-exposure,
.asset-exposure {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ezwk-line-soft);
  color: var(--ezwk-theme-deep);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.node-form-exposure.exposure-public,
.asset-exposure.exposure-public,
.node-form-exposure.exposure-partner,
.asset-exposure.exposure-partner {
  background: var(--ezwk-danger-soft);
  color: var(--ezwk-formrecast-deep);
}
.node-form-exposure.exposure-internal,
.asset-exposure.exposure-internal,
.node-form-exposure.exposure-field,
.asset-exposure.exposure-field {
  background: var(--ezwk-surface-accent);
  color: var(--ezwk-muted);
}
.node-form-exposure.exposure-unknown,
.asset-exposure.exposure-unknown {
  background: var(--ezwk-line-soft);
  color: var(--ezwk-muted);
}
.map-node strong,
.map-node em,
.map-node .node-owner {
  max-width: calc(100% - 43px);
}
.map-node.risk .node-visual { color: var(--ezwk-line); }
.map-node.warn .node-visual { color: var(--ezwk-line); }
.map-node.storage .node-visual,
.map-node.location .node-visual { color: var(--ezwk-line); }
.map-node.erp .node-visual { color: var(--ezwk-line); }
.map-canvas.system-overview .map-node .node-visual {
  inset: auto -5px -3px auto;
  width: 44px;
  height: 44px;
  opacity: .8;
}
.map-canvas.system-overview .map-node strong,
.map-canvas.system-overview .map-node .node-owner {
  max-width: calc(100% - 32px);
}
.asset-choice span {
  min-height: 47px;
}
.asset-choice .asset-visual {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: var(--ezwk-line);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.asset-choice input:checked + span .asset-visual { color: var(--ezwk-quiet); }
.asset-choice b { max-width: calc(100% - 40px); }
.asset-choice .asset-domain-suggestions { margin-left: 36px; }
.report-map-snapshot .node-visual { opacity: .72; }



/* WorkRoute v012: connected focus and card editing controls */
.map-node,
.map-edge,
.edge-label,
.flow-particle,
.map-lane-label {
  transition: opacity .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.map-canvas.map-focus-active .map-lane-label,
.map-canvas.map-focus-active .map-lane-group-label { opacity: .42; }
.map-canvas.map-focus-active .map-node.is-dimmed {
  opacity: .23;
  filter: grayscale(1);
}
.map-canvas.map-focus-active .map-node.is-connected {
  opacity: .86;
  border-color: var(--ezwk-line);
  box-shadow: 0 2px 10px rgb(var(--c-ink) / .06);
}
.map-canvas.map-focus-active .map-node.is-sender {
  border-color: var(--ezwk-gridshift-deep);
  box-shadow: inset 3px 0 0 var(--ezwk-gridshift-deep), 0 4px 13px rgb(var(--c-success) / .06);
}
.map-canvas.map-focus-active .map-node.is-receiver {
  border-color: var(--ezwk-gridshift-deep);
  box-shadow: inset -3px 0 0 var(--ezwk-gridshift-deep), 0 4px 13px rgb(var(--c-muted) / .06);
}
.map-canvas.map-focus-active .map-node.is-sender::after,
.map-canvas.map-focus-active .map-node.is-receiver::after {
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ezwk-surface);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}
.map-canvas.map-focus-active .map-node.is-sender::after {
  content: "SEND";
  background: var(--ezwk-gridshift-deep);
}
.map-canvas.map-focus-active .map-node.is-receiver::after {
  content: "RECEIVE";
  background: var(--ezwk-gridshift-deep);
}
.map-canvas.map-focus-active .map-node.is-sender.is-receiver::after {
  content: "SYNC";
  background: var(--ezwk-muted);
}
.map-canvas.map-focus-active .map-node.is-focused {
  opacity: 1;
  filter: none;
  border-color: var(--ezwk-quiet);
  box-shadow: 0 0 0 3px rgb(var(--c-success) / .14), 0 7px 18px rgb(var(--c-ink) / .06);
  transform: translateY(-1px);
}
.map-canvas.map-focus-active .map-edge.is-dimmed,
.map-canvas.map-focus-active .edge-label.is-dimmed,
.map-canvas.map-focus-active .flow-particle.is-dimmed { opacity: .07; }
.map-canvas.map-focus-active .map-edge.is-connected { opacity: 1; stroke-width: 2.8; }
.map-canvas.map-focus-active .map-edge.is-connected.risk { stroke-width: 3.2; }
.map-canvas.map-focus-active .edge-label.is-connected { opacity: 1; font-weight: 800; }
.map-canvas.system-overview.map-focus-active .edge-label.is-connected {
  font-size: 9px;
  fill: var(--ezwk-muted);
  stroke-width: 4px;
}
.map-canvas.map-focus-active .flow-particle.is-connected { opacity: 1; }
.report-map-snapshot .map-focus-active .map-node,
.report-map-snapshot .map-focus-active .map-edge,
.report-map-snapshot .map-focus-active .edge-label { opacity: 1; filter: none; transform: none; }
.selection-detail.is-editor {
  padding: 16px;
  border: 1px solid var(--ezwk-success-soft);
  background: var(--ezwk-surface);
}
.node-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}
.node-editor-identity { display: flex; align-items: center; gap: 11px; color: var(--ezwk-theme-deep); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.node-editor-identity strong { display: block; margin-top: 3px; color: var(--ezwk-app-ink); font-size: 17px; letter-spacing: -.03em; }
.node-editor-identity span { display: block; color: var(--ezwk-app-muted); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.node-editor-visual {
  flex: none;
  width: 45px;
  height: 45px;
  padding: 7px;
  border-radius: 12px;
  color: var(--ezwk-quiet);
  background: var(--ezwk-line-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node-editor-actions { display: flex; gap: 7px; }
.node-editor { display: grid; gap: 13px; }
.node-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.node-editor-grid label { display: grid; gap: 4px; color: var(--ezwk-app-muted); font-size: 10px; font-weight: 700; }
.node-editor-grid label.wide { grid-column: span 2; }
.node-editor-grid input,
.node-editor-grid select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 10px;
  color: var(--ezwk-app-ink);
  background: var(--ezwk-surface);
  font-size: 12px;
}
.node-editor-grid input:focus-visible,
.node-editor-grid select:focus-visible { outline: 2px solid var(--ezwk-focus-ring); outline-offset: 1px; border-color: var(--ezwk-action); }
.node-editor-specific > [hidden] { display: none !important; }
.repository-card-editor,
.form-card-editor {
  padding: 11px;
  border: 1px solid var(--ezwk-line-soft);
  border-radius: 12px;
  background: var(--ezwk-surface);
}
.node-editor-collected {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.node-editor-collected > span { margin-right: 4px; color: var(--ezwk-app-muted); font-size: 10px; font-weight: 700; }
.node-editor-collected label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 999px;
  background: var(--ezwk-surface);
}
.node-editor-collected input { width: auto; min-height: 0; padding: 0; }
.node-editor-submit { display: flex; align-items: center; gap: 8px; }
.node-editor-message { min-height: 17px; margin: -4px 0 0; color: var(--ezwk-theme-deep); font-size: 11px; font-weight: 700; }
.node-connections {
  display: grid;
  gap: 7px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--ezwk-app-line);
}
.node-connections-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.node-connections-head h4 { margin: 0; color: var(--ezwk-app-ink); }
.node-connections-head span { padding: 2px 8px; border-radius: 999px; color: var(--ezwk-theme-deep); background: var(--ezwk-theme-soft); font-size: 10px; font-weight: 700; }
.node-connection {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--ezwk-line-soft);
  border-radius: 10px;
  color: var(--ezwk-app-ink);
  background: var(--ezwk-surface);
  text-align: left;
}
.node-connection:hover { border-color: var(--ezwk-line); background: var(--ezwk-surface-soft); }
.node-connection strong { font-size: 11px; }
.node-connection span { color: var(--ezwk-app-muted); font-size: 10px; }
.node-connection-group {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--ezwk-line-soft);
  border-radius: 12px;
  background: var(--ezwk-surface);
}
.node-connection-group-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ezwk-app-muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.node-connection-group-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ezwk-quiet);
}
.node-connection-group.outgoing .node-connection-group-title::before { background: var(--ezwk-gridshift-deep); }
.node-connection-group.incoming .node-connection-group-title::before { background: var(--ezwk-gridshift-deep); }
.node-connection-group .node-connection {
  border-color: var(--ezwk-line-soft);
  background: var(--ezwk-surface);
}
.node-connections > .button { justify-self: start; margin-top: 4px; }
@media (max-width: 900px) {
  .node-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .node-editor-head { flex-direction: column; }
  .node-editor-grid { grid-template-columns: 1fr; }
  .node-editor-grid label.wide { grid-column: auto; }
  .node-editor-submit { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .map-node, .map-edge, .edge-label, .flow-particle, .map-lane-label, .map-lane-group-label { transition: none; }
}


/* WorkRoute v013: card editing modal aligned with card creation */
.card-edit-dialog {
  width: min(760px, 100%);
  max-height: min(92vh, 860px);
}
.card-edit-scroll { padding-top: 16px; }
.card-edit-detail.selection-detail,
.card-edit-detail.selection-detail.is-editor {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.card-edit-dialog .node-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-edit-dialog .node-editor-grid label.wide { grid-column: 1 / -1; }
.card-edit-dialog .node-connections { margin-bottom: 2px; }
@media (max-width: 560px) {
  .card-edit-dialog .node-editor-grid { grid-template-columns: 1fr; }
  .card-edit-dialog .node-editor-grid label.wide { grid-column: auto; }
}


/* WorkRoute v014: balanced two-column asset choices in the add-flow modal */
.asset-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 9px;
}
.asset-choice-grid .asset-checklist {
  display: contents;
}
.asset-choice-grid .asset-choice {
  min-width: 0;
  width: 100%;
}
.asset-choice-grid .asset-choice span {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 78px;
  align-content: center;
  padding: 10px 12px;
  border-radius: 14px;
}
.asset-choice-grid .asset-choice b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.asset-choice-grid .asset-choice .asset-domain-suggestions {
  margin-left: 36px;
}
@media (max-width: 680px) {
  .asset-choice-grid {
    grid-template-columns: 1fr;
  }
}

/* WorkRoute v022: shape-only card connection edges */
.map-legend {
  grid-template-columns: minmax(240px, auto) minmax(300px, auto) minmax(260px, auto) 1fr;
}
.legend-port {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 16px;
  flex: 0 0 28px;
  border: 1px solid var(--ezwk-success-soft);
  border-radius: 7px;
  background: rgb(var(--c-surface) / .78);
  box-shadow: inset 0 0 0 1px rgb(var(--c-surface) / .48);
  font-size: 0;
  line-height: 1.45;
}
.legend-port::before,
.legend-port::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  transform: translateY(-50%);
}
.legend-port-in::before {
  left: -1px;
  width: 7px;
  height: 11px;
  border: 1px solid rgb(var(--c-muted) / .48);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: var(--ezwk-surface-soft);
}
.legend-port-in::after { display: none; }
.legend-port-out::before {
  right: -5px;
  width: 8px;
  height: 11px;
  border: 1px solid rgb(var(--c-success) / .48);
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: rgb(var(--c-surface) / .88);
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}
.legend-port-out::after { display: none; }
.connection-rule-legend .legend-note { display: block; margin-top: 1px; }
.map-node {
  padding-left: 10px;
  padding-right: 11px;
}
.map-node .node-port {
  position: absolute;
  z-index: 4;
  top: 0;
  display: inline-flex;
  width: 34px;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1.45;
  cursor: crosshair;
  user-select: none;
  pointer-events: auto;
  background: transparent;
  opacity: 1;
}
.map-node .node-port::before,
.map-node .node-port::after {
  content: "";
  position: absolute;
  top: 50%;
  display: block;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.map-node .node-port::after { display: none; }
.map-node .node-port-in { left: -10px; }
.map-node .node-port-out { right: -12px; }
.map-node .node-port-in::before {
  left: 8px;
  width: 7px;
  height: 22px;
  border: 1px solid rgb(var(--c-muted) / .24);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: rgb(var(--c-ink) / .88);
  box-shadow: inset -1px 0 0 rgb(var(--c-muted) / .06);
  opacity: .42;
}
.map-node .node-port-out::before {
  right: 7px;
  width: 8px;
  height: 22px;
  border: 1px solid rgb(var(--c-success) / .24);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: rgb(var(--c-surface) / .88);
  clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%);
  box-shadow: 1px 0 0 rgb(var(--c-success) / .06);
  opacity: .42;
}
.map-node:hover .node-port::before,
.map-node.selected .node-port::before,
.map-canvas.is-connecting .map-node .node-port::before {
  opacity: .72;
}
.map-node .node-port:hover::before,
.map-node .node-port.is-active::before,
.map-node .node-port.is-candidate::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
}
.map-node .node-port-in:hover::before,
.map-node .node-port-in.is-active::before,
.map-node .node-port-in.is-candidate::before {
  border-color: var(--ezwk-gridshift-deep);
  background: rgb(var(--c-ink) / .94);
  box-shadow: 0 0 0 3px rgb(var(--c-muted) / .1), inset -1px 0 0 rgb(var(--c-muted) / .06);
}
.map-node .node-port-out:hover::before,
.map-node .node-port-out.is-active::before,
.map-node .node-port-out.is-candidate::before {
  border-color: var(--ezwk-gridshift-deep);
  background: rgb(var(--c-ink) / .94);
  box-shadow: 0 0 0 3px rgb(var(--c-success) / .1), 1px 0 0 rgb(var(--c-success) / .06);
}
.map-node .node-port.is-candidate::before {
  animation: workroute-port-pulse 1.1s ease-in-out infinite;
}
.map-node.connection-start {
  border-color: var(--ezwk-gridshift-deep);
  box-shadow: 0 0 0 3px rgb(var(--c-success) / .14), 0 10px 26px rgb(var(--c-ink) / .06);
  z-index: 3;
}
.map-node.connection-candidate {
  border-color: var(--ezwk-quiet);
  box-shadow: 0 0 0 2px rgb(var(--c-success) / .1), 0 8px 20px rgb(var(--c-ink) / .06);
  z-index: 2;
}
.map-canvas.is-connecting .map-node:not(.connection-start):not(.connection-candidate) {
  opacity: .34;
  filter: grayscale(.72);
}
.node-connect-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -18px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--ezwk-gridshift-deep);
  background: var(--ezwk-surface);
  border: 1px solid rgb(var(--c-success) / .18);
  box-shadow: 0 6px 14px rgb(var(--c-ink) / .06);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}
@keyframes workroute-port-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgb(var(--c-success) / .14); }
  50% { box-shadow: 0 0 0 6px rgb(var(--c-success) / .06); }
}

/* WorkRoute v021: constrained drag and click-first map operations */
.map-action-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -3px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgb(var(--c-success) / .14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(var(--c-ink) / .94), rgb(var(--c-surface) / .94));
  color: var(--ezwk-app-muted);
  box-shadow: 0 8px 20px rgb(var(--c-ink) / .06);
  font-size: 11px;
}
.map-action-strip strong {
  color: var(--ezwk-app-ink);
  font-size: 11px;
}
.map-action-cancel,
.map-method-chip {
  appearance: none;
  border: 1px solid rgb(var(--c-success) / .18);
  border-radius: 999px;
  background: var(--ezwk-surface);
  color: var(--ezwk-theme-deep);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 5px 10px;
}
.map-action-cancel:hover,
.map-method-chip:hover {
  border-color: rgb(var(--c-success) / .34);
  background: var(--ezwk-theme-soft);
}
.map-method-chip.method-api { color: var(--ezwk-gridshift-deep); }
.map-method-chip.method-csv { color: var(--ezwk-formrecast-deep); }
.map-method-chip.method-manual { color: var(--ezwk-formrecast-deep); }
.map-method-chip.method-unknown { color: var(--ezwk-muted); }
.map-drop-zone {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  pointer-events: none;
  opacity: .92;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.map-drop-zone span {
  position: sticky;
  top: 8px;
  display: inline-flex;
  margin: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(var(--c-surface) / .88);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.map-drop-zone.is-allowed {
  border-color: rgb(var(--c-success) / .24);
  background: rgb(var(--c-success) / .14);
}
.map-drop-zone.is-allowed span { color: var(--ezwk-gridshift-deep); }
.map-drop-zone.is-blocked {
  border-color: rgb(var(--c-danger) / .18);
  background: rgb(var(--c-danger) / .06);
  opacity: .55;
}
.map-drop-zone.is-blocked span { color: var(--ezwk-accent-deep); }
.map-drop-zone.is-current.is-allowed {
  border-color: rgb(var(--c-success) / .48);
  box-shadow: inset 0 0 0 2px rgb(var(--c-success) / .14), 0 10px 22px rgb(var(--c-ink) / .06);
  background: rgb(var(--c-success) / .1);
}
.map-drop-zone.is-current.is-blocked {
  border-color: rgb(var(--c-danger) / .48);
  box-shadow: inset 0 0 0 2px rgb(var(--c-danger) / .14);
  background: rgb(var(--c-danger) / .06);
}
.map-drag-guidance {
  position: absolute;
  z-index: 8;
  max-width: 260px;
  padding: 5px 9px;
  border: 1px solid rgb(var(--c-success) / .18);
  border-radius: 999px;
  background: rgb(var(--c-surface) / .94);
  box-shadow: 0 8px 18px rgb(var(--c-ink) / .06);
  color: var(--ezwk-theme-deep);
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}
.map-node.is-drop-blocked {
  border-color: var(--ezwk-accent-deep) !important;
  box-shadow: 0 18px 34px rgb(var(--c-danger) / .14), 0 0 0 3px rgb(var(--c-danger) / .14) !important;
}
.map-node.is-drop-blocked::after {
  content: "ﾚ都";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  padding: 2px 7px;
  border: 1px solid rgb(var(--c-danger) / .24);
  border-radius: 999px;
  background: var(--ezwk-surface);
  color: var(--ezwk-accent-deep);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.map-canvas.is-card-dragging .map-edge,
.map-canvas.is-card-dragging .edge-label {
  opacity: .24;
}
@media (max-width: 760px) {
  .map-action-strip { align-items: flex-start; }
  .map-action-strip strong,
  .map-action-strip span { width: 100%; }
}
.workroute-hidden-start { display: none !important; }
.workroute-tool.workspace {
  position: relative;
  z-index: 2;
  padding: 0;
}
.workroute-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  padding: 0;
}
.workroute-title h1 {
  margin: 7px 0 8px;
}
.workroute-title p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ezwk-app-muted);
  font-size: 14px;
  line-height: 1.75;
}
.workroute-start-actions {
  display: flex;
  justify-content: flex-end;
}
.workroute-start-actions .button {
  min-height: 38px;
  padding-inline: 16px;
}
.workroute-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.workroute-metrics div {
  min-width: 96px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 12px;
}
.workroute-metrics span {
  font-size: 10px;
  letter-spacing: .04em;
}
.workroute-metrics strong {
  margin-top: 2px;
  font-size: 24px;
}
.workroute-tabs {
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 999px;
}
.workroute-tabs .workspace-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
}
.workroute-map-panel {
  padding: clamp(16px, 2vw, 24px);
  border-radius: 18px;
}
.workroute-map-panel .c-panel-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 8px;
}
.workroute-map-panel .c-panel-head h3 {
  margin-top: 4px;
}
.map-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  flex-wrap: wrap;
}
.domain-filters {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 999px;
  background: var(--ezwk-surface-soft);
}
.domain-filter {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--ezwk-app-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.domain-filter.active {
  color: var(--ezwk-surface);
  background: var(--ezwk-theme);
}
.workroute-map-panel .guide-next-action {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-left: none;
  border-bottom: 1px solid rgb(var(--c-ink) / .06);
  border-radius: 0;
  color: var(--ezwk-app-muted);
  background: transparent;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.6;
}
.workroute-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}
.workroute-legend .legend-group {
  display: flex;
  align-items: center;
  gap: 7px;
}
.workroute-legend .legend-title {
  color: var(--ezwk-app-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.workroute-legend .legend-note,
.workroute-legend .connection-rule-legend {
  display: none;
}
.workroute-legend .legend-items {
  gap: 5px;
}
.workroute-legend .legend-item {
  gap: 5px;
  padding: 2px 0;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  font-weight: 800;
}
.workroute-legend .legend-route {
  width: 38px;
  height: 12px;
}
.workroute-legend .legend-badge {
  min-height: 20px;
  padding-inline: 7px;
  font-size: 9px;
}
.legend-motion {
  margin-left: 0;
}
.workroute-diagnosis {
  margin-top: 14px;
}
.workroute-diagnosis .diagnosis-panel {
  padding: 16px;
  border-radius: 14px;
  box-shadow: none;
}
@media (max-width: 800px) {
  .workroute-map-panel .c-panel-head {
    grid-template-columns: 1fr;
  }
  .map-actions {
    justify-content: start;
  }
  .legend-motion {
    margin-left: 0;
  }
}
.product-action-buttons .export-popover {
  right: 0;
  bottom: calc(100% + 8px);
  top: auto;
}
@media (max-width: 1100px) {
  .workroute-map-header {
    grid-template-columns: 1fr;
  }
  .workroute-map-toolbar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .workroute-topbar {
    align-items: start;
    flex-direction: column;
  }
  .workroute-tabs {
    border-radius: 16px;
  }
  .workroute-tabs .workspace-tab {
    width: 100%;
  }
}

/* Compact controls are exempt from the text line-height floor. */
:where(button, .button, [role="button"], [class*="chip"], [class*="tab"], [class*="badge"], [class*="pill"], [class*="tag"], [class*="close"], [class*="port"], .strip-card) {
  line-height: 1.15;
}

