.card-route {
  --route-ink:var(--ai-ink,#343058);
  --route-wash:var(--ai-wash,#f1f0fa);
  --route-edge:var(--ai-edge,#c9c4e3);
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;
  margin:.35rem 0;padding:.38rem .65rem;background:white;
  border:1px solid var(--route-edge);border-radius:11px;color:#252a2f;
  text-align:right;font-size:.875rem;line-height:1.45;
}
.card-route .route-head {display:flex;align-items:baseline;flex-wrap:wrap;gap:0 .55rem}
.card-route .route-heading {font-size:.9rem;color:var(--route-ink);margin-inline-end:auto}
.card-route .route-percent {color:var(--route-ink);font-size:.94rem;font-variant-numeric:tabular-nums}
.card-route .route-meter {height:3px;margin:.22rem 0 .32rem;background:var(--route-wash);border-radius:5px;overflow:hidden}
.card-route .route-fill {display:block;height:100%;background:linear-gradient(90deg,var(--ai-pair-ink,#27685e),var(--ai-accent,#7542a6));border-radius:inherit}
.card-route .route-count {font-size:.8125rem;color:#47505a}
.card-route .route-line {display:flex;align-items:stretch;list-style:none;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%;margin:0;padding:0;gap:0}
.card-route .route-step {display:flex;align-items:center;flex:0 0 auto;margin:0;padding:0;background:none;border:0}
.card-route .route-chip {display:inline-flex;align-items:center;gap:.3rem;min-height:1.7rem;max-width:min(16rem,65vw);padding:.12rem .44rem;border:1px dashed #aab0b6;border-radius:7px;background:#fafbfc;color:#474e57;line-height:1.4}
.card-route .route-name {font-size:.875rem;overflow-wrap:anywhere}
.card-route .route-icon {flex:none;font-size:.8125rem;font-weight:700}
.card-route .route-done .route-chip {background:var(--ai-pair-wash,#eaf5ef);color:var(--ai-pair-ink,#17563b);border:1px solid var(--ai-pair-mid,#b1d5bd)}
.card-route .route-current .route-chip {border:2px solid var(--route-ink);background:var(--route-wash);color:var(--route-ink);font-weight:700}
.card-route .route-arrow {padding:0 .25rem;font:1.05rem/1 sans-serif;color:#69727b}
.workcard > .card-route {grid-column:1/-1;flex-basis:100%}
.route-confirm {display:flex;align-items:center;gap:.5rem;margin:.5rem 0}
.route-confirm input[type=checkbox] {width:1.2rem;height:1.2rem;flex:none}
.card-route button.route-chip {
  margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;text-align:start;
  box-shadow:none;cursor:pointer;
}
.card-route button.route-chip:is(:hover,[aria-expanded=true]) .route-name {text-decoration:underline;text-underline-offset:.2em}
.card-route button.route-chip:focus-visible {outline:2px solid var(--route-ink);outline-offset:-3px}
.card-route .route-task-detail {display:flex;align-items:baseline;gap:.6rem;margin-top:.35rem;padding:.25rem .55rem;background:var(--route-wash);border-radius:6px;overflow-wrap:anywhere}
.card-route .route-task-detail strong {flex:none;color:var(--route-ink)}

.dependency-origin,.link-choice,.link-matches,.route-outputs {display:grid;gap:.4rem;min-width:0}
.dependency-origin {padding:.55rem .65rem;border-inline-start:3px solid var(--ai-pair-ink,#27685e)}
.dependency-origin p {margin:0}
.link-matches button {text-align:start}
.route-outputs:empty {display:none}

.card-route.route-full-path .route-line {flex-wrap:wrap;row-gap:.32rem;overflow:visible}
.card-route.route-full-path .route-chip {max-width:min(19rem,68vw)}
.card-route.route-full-path .route-step {max-width:100%;min-width:0}
.card-route.route-full-path .route-chip {box-sizing:border-box;min-width:0;flex:0 1 auto}
.card-route.route-full-path .route-name {min-width:0}
.card-route.route-full-path .route-arrow {flex:none}

.note-receipt{margin:.65rem 0;padding:.65rem .85rem;border-inline-start:3px solid #267e74;background:#f0f8f5;color:#1c3632;border-radius:.55rem}
.note-receipt ul{padding-inline-start:1.15rem}.note-receipt li{margin:.4rem 0}.note-receipt li>span{font-size:.875rem;margin-inline-end:.55rem}.note-receipt button{margin:.2rem}
.card-flow-fields .ownership-members label:has(input:checked){background:#d6eee5;color:#173e34}
