/* v0.8.0 Digital Artery Map: fixed five-endpoint geometry with low-frequency static projection. */
.system-head-actions{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.artery-entry{
  display:grid;
  justify-items:end;
  gap:1px;
  padding:0 13px 5px 0;
  border:0;
  border-right:var(--hair-width,1.5px) solid var(--hair);
  background:transparent;
  color:var(--ink);
  text-align:right;
  cursor:pointer;
}
.artery-entry small{
  color:var(--blue);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.artery-entry strong{
  font-size:13px;
  line-height:1.15;
}
.artery-entry:hover strong,
.artery-entry:focus-visible strong{color:var(--blue)}
.artery-entry:focus-visible{outline:1px solid var(--blue);outline-offset:4px}

.artery-page{
  position:relative;
  min-height:calc(100vh - 80px);
  padding:0 0 30px;
  color:var(--ink);
}
.artery-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:16px 0 17px;
  border-bottom:var(--line-width,2px) solid var(--line);
}
.artery-title-wrap h2{
  margin:4px 0 5px;
  font-size:30px;
  letter-spacing:-.035em;
}
.artery-intro{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.artery-review{
  display:grid;
  justify-items:end;
  gap:2px;
  padding-top:4px;
}
.artery-review small{
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em;
}
.artery-review strong{
  color:var(--blue);
  font-size:13px;
}
.artery-flow-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:13px 0;
  border-bottom:var(--hair-width,1.5px) solid var(--hair);
}
.artery-flow-button{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 12px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}
.artery-flow-button:hover,
.artery-flow-button:focus-visible{
  color:var(--blue);
  border-color:rgba(6,118,191,.28);
  outline:none;
}
.artery-flow-button.is-active{
  color:var(--ink);
  border-color:var(--line);
  background:rgba(255,255,255,.38);
}
.artery-flow-index{
  color:var(--blue);
  font-size:10px;
  font-weight:900;
}
.artery-stage{
  position:relative;
  min-height:720px;
  margin-top:12px;
  overflow:hidden;
  border:var(--hair-width,1.5px) solid var(--hair);
  background:
    radial-gradient(circle at 50% 49%,rgba(255,255,255,.58),transparent 31%),
    linear-gradient(145deg,rgba(255,255,255,.28),rgba(219,222,231,.12));
}
.artery-geometry{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}
.artery-geometry marker path{fill:currentColor}
#arrow-red path{fill:#e73535}
#arrow-black path{fill:#17202b}
#arrow-green path{fill:#43aa63}
#arrow-gray path{fill:#52606d}
#arrow-blue path{fill:#0676BF}
.artery-relation{
  stroke-width:3;
  vector-effect:non-scaling-stroke;
  opacity:.88;
}
.artery-relation--red{stroke:#e73535;color:#e73535}
.artery-relation--black{stroke:#17202b;color:#17202b;stroke-width:2}
.artery-relation--green{stroke:#43aa63;color:#43aa63}
.artery-relation--gray{stroke:#52606d;color:#52606d;stroke-width:2}
.artery-flow-path{
  stroke:var(--blue);
  color:var(--blue);
  stroke-width:2.6;
  stroke-dasharray:6 5;
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 0 3px rgba(6,118,191,.28));
}
.artery-root{
  position:absolute;
  z-index:6;
  display:grid;
  min-width:116px;
  transform:translate(-50%,-50%);
  padding:10px 13px;
  border:var(--line-width,2px) solid var(--line);
  border-radius:16px;
  background:rgba(248,249,252,.96);
  color:var(--ink);
  box-shadow:0 8px 22px rgba(16,36,58,.08);
  cursor:pointer;
}
.artery-root .artery-node-label{
  font-size:18px;
  font-weight:880;
  line-height:1.1;
}
.artery-root-role{
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.artery-root:hover,
.artery-root:focus-visible,
.artery-root.is-expanded{
  border-color:var(--blue);
  outline:none;
}
.artery-root--cloud{border-color:#e73535}
.artery-root--git{border-color:#43aa63}
.artery-root--notion{border-color:#52606d}

.artery-branch{
  position:absolute;
  z-index:4;
  display:grid;
  align-content:start;
  gap:0;
  padding:8px 10px;
  border:var(--hair-width,1.5px) solid rgba(201,71,85,.26);
  background:rgba(248,249,252,.82);
  backdrop-filter:blur(6px);
}
.artery-branch--cloud{
  top:1.5%;
  left:30%;
  width:40%;
  max-height:145px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:12px;
  overflow:auto;
}
.artery-branch--git{
  left:31%;
  bottom:1.5%;
  width:38%;
  max-height:136px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:12px;
  overflow:auto;
}
.artery-branch--xs-codex{
  left:1.5%;
  top:28%;
  width:21%;
  max-height:315px;
  overflow:auto;
}
.artery-branch--ai-account{
  right:1.5%;
  top:28%;
  width:21%;
  max-height:315px;
  overflow:auto;
}
.artery-branch--notion{
  left:39%;
  width:22%;
}
.artery-branch--notion-top{top:27%}
.artery-branch--notion-bottom{top:58%}

.artery-branch-row{
  min-width:0;
  border-bottom:var(--hair-width,1.5px) solid var(--hair);
}
.artery-branch-row:last-child{border-bottom:0}
.artery-node-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  min-height:31px;
  padding:6px 2px;
  border:0;
  background:transparent;
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.artery-node-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:760;
}
.artery-node-state{
  flex:0 0 auto;
  color:var(--red);
  font-size:8px;
  font-weight:850;
}
.artery-node-item:hover .artery-node-label,
.artery-node-item:focus-visible .artery-node-label{
  color:var(--blue);
}
.artery-node-item:focus-visible{outline:none}
.artery-nested-list{
  display:none;
  margin:0 0 6px 10px;
  padding-left:8px;
  border-left:1px solid rgba(6,118,191,.28);
}
.artery-branch.is-expanded .artery-nested-list{display:grid}
.artery-node-item--nested{
  min-height:25px;
  padding:3px 1px;
}
.artery-nested-list--depth-2,
.artery-nested-list--depth-3{
  margin-left:7px;
  padding-left:7px;
}
.artery-node-item--nested .artery-node-label{
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  white-space:normal;
  line-height:1.28;
}
.artery-page.has-active-flow [data-node-id].is-dimmed{
  opacity:.22;
  filter:grayscale(.45);
}
.artery-page.has-active-flow [data-node-id].is-highlighted{
  opacity:1;
  filter:none;
}
.artery-node-item.is-highlighted .artery-node-label,
.artery-root.is-highlighted .artery-node-label{
  color:var(--blue);
}
.artery-node-item.is-highlighted{
  background:rgba(6,118,191,.08);
}

.artery-detail{
  position:absolute;
  z-index:12;
  top:18px;
  right:18px;
  width:clamp(260px,22vw,320px);
  max-height:calc(100% - 36px);
  overflow:auto;
  padding:15px 16px;
  border:var(--line-width,2px) solid var(--line);
  background:rgba(248,249,252,.97);
  box-shadow:0 18px 44px rgba(16,36,58,.18);
}
.artery-detail[hidden]{display:none}
.artery-detail-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding-bottom:10px;
  border-bottom:var(--hair-width,1.5px) solid var(--hair);
}
.artery-detail-head h3{
  margin:4px 0 0;
  font-size:19px;
}
.artery-detail-close{
  align-self:flex-start;
  border:0;
  background:transparent;
  color:var(--red);
  font-size:21px;
  cursor:pointer;
}
.artery-detail-body{display:grid;gap:11px;padding-top:11px}
.artery-detail-row small{
  display:block;
  color:var(--blue);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}
.artery-detail-row p{
  margin:3px 0 0;
  color:var(--ink);
  font-size:12px;
  line-height:1.48;
}
.artery-detail-link{
  display:inline-block;
  justify-self:start;
  margin-top:3px;
  color:var(--blue);
  font-size:12px;
  font-weight:850;
  text-decoration:none;
}
.artery-footer{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:12px 0 0;
}
.artery-legend{
  display:flex;
  flex-wrap:wrap;
  gap:9px 15px;
}
.artery-legend-item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:10px;
}
.artery-legend-line{
  width:22px;
  border-top:2px solid;
}
.artery-legend-line--red{border-color:#e73535}
.artery-legend-line--black{border-color:#17202b}
.artery-legend-line--green{border-color:#43aa63}
.artery-legend-line--gray{border-color:#52606d}
.artery-legend-line--blue{border-color:var(--blue);border-top-style:dashed}
.artery-status-copy{
  max-width:46%;
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  text-align:right;
}
.artery-loading,
.artery-error{
  margin:40px 24px;
}
.artery-error p{color:var(--muted)}

@media(max-width:980px){
  .artery-stage{min-height:920px;overflow:auto}
  .artery-branch--cloud{left:24%;width:52%}
  .artery-branch--git{left:24%;width:52%}
  .artery-branch--xs-codex,.artery-branch--ai-account{width:25%}
  .artery-branch--notion{left:37%;width:26%}
  .artery-detail{width:min(300px,calc(100% - 36px))}
}
@media(max-width:720px){
  .system-head-actions{gap:8px}
  .artery-entry{padding-right:8px}
  .artery-page{min-height:auto}
  .artery-header{display:grid}
  .artery-review{justify-items:start}
  .artery-flow-toolbar{overflow-x:auto;flex-wrap:nowrap}
  .artery-flow-button{flex:0 0 auto}
  .artery-stage{
    min-width:820px;
    min-height:900px;
  }
  .artery-footer{display:grid}
  .artery-status-copy{max-width:none;text-align:left}
  .artery-detail{
    position:fixed;
    top:auto;
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
    max-height:46vh;
  }
}
@media(prefers-reduced-motion:reduce){
  .artery-flow-path{stroke-dasharray:none}
  .artery-root,.artery-node-item{transition:none}
}
