/* Agent Flow's 5단 보기 and 발표 모드 (universe-lanes.js, universe-present.js; U104). The parts are click-parts.css 22절
   (.lx-lanes, .lx-lane-card, .lx-lane-edge, .lx-lane-legend; .lx-stage and its pieces, .lx-stage-dot); this sheet only
   places them, says what a pointed-at or chosen line is, and draws the two pictures of the board the parts hold no
   piece for (the tools by kind, the people by department) from the board's own tokens. No value here is a hex, a px
   type size, a radius or a shadow of its own. */

/* ---- 5단 보기 -------------------------------------------------------------------------------------------------- */
/* Every line is the reference's one curve (U104 R9); a line pressed for its evidence, pointed at or tabbed to is drawn
   in ink so the one the drawer is of stays found. */
.ul-board{position:relative;min-width:0}
.ul-board .lx-lanes-svg{pointer-events:none}
.ul-board [data-edge]{pointer-events:auto;cursor:pointer}
.ul-board [data-edge]:focus{outline:none}
.ul-board [data-edge]:focus-visible .lx-lane-edge,.ul-board [data-edge]:hover .lx-lane-edge,
.ul-board .lx-lane-edge[data-selected="true"]{stroke:var(--ink);stroke-width:2.2}
.ul-board div.lx-lane-card{cursor:default}
.ul-board a.lx-lane-card{text-decoration:none}
.ul-board .lx-lane-card[data-kind="unknown"] .lx-lane-ic{background:var(--st-review-bg);color:var(--st-review-fg)}
.ul-s{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* The evidence drawer's basis: its badge. */
.ul-ev-mark{display:flex;align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-3)}
.ul-ev-item+.ul-ev-item{margin-top:var(--sp-4)}
.ul-ev-none{padding:0}

/* ---- 발표 모드 ------------------------------------------------------------------------------------------------- */
/* (the page's own entrance animation would move the fixed board with it) */
.app-view[data-page="universe-present"].active{animation:none}
.up-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;overflow:hidden;border:0;background:var(--stage-bg)}
.up-dialog::backdrop{background:var(--stage-bg)}
.up-dialog:focus{outline:none}
.up-dialog>.up-frame{position:absolute;inset:0}
.up-dialog [hidden]{display:none}
.up-home{display:inline-flex;align-items:center;gap:var(--sp-3);color:inherit;text-decoration:none}
.up-home:hover{color:inherit}
.up-home:focus-visible,.up-dialog button:focus-visible{outline:2px solid var(--brand-yellow);outline-offset:2px}
.up-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-3);padding:var(--sp-8);color:var(--stage-muted);font-size:var(--fs-body);text-align:center}
.up-state>b{color:var(--stage-ink);font-size:var(--fs-title)}
.up-state-i{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--stage-line);border-radius:var(--r-card);background:var(--stage-btn);color:var(--stage-ink-2)}
.up-state-i .ck-i{width:var(--icon-lg);height:var(--icon-lg)}
.lx-stage[data-tone] .up-state>.lx-stage-exit{margin-top:var(--sp-2)}
.up-dialog[data-uf-state="loading"] .up-state-i .ck-i{animation:up-turn 1s linear infinite}
/* A step's headline on one line where the stage is wide, as the 시안's 1920 ('Gateway 미연동', judge-sbs0149 F17), in a
   text column of one width for every step so the map stands in one place from step to step (judge-sbs0223 F18); a
   longer one (the English page's) is cut short with its whole on the title (B2-디자인 N1 of bb99c5cf). */
@media (min-width:1600px){
  .up-dialog .lx-stage-text{width:400px}
  .up-dialog .lx-stage-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* The flow map, drawn smaller where it is taller than the room (the screen sets the size and the scale). */
.up-fit{position:relative;flex:none}
.up-fit>.up-flow{position:absolute;top:0;left:0}
/* (the board's column heads are names alone, as the reference's: the page's map says how many blocks a column holds) */
.up-flow .lx-flow-h>span{display:none}
/* 도구: a kind a row -- its name, its bar, its count -- then the legend and where the tools reach. A bar's height and
   the room between rows follow the board's height as the reference's do (universe-present.js --up-bar-h, --up-gap). */
.up-tools,.up-people{max-height:100%;overflow:auto}
.up-tools{display:flex;flex-direction:column;gap:var(--up-gap,26px);width:min(100%,920px)}
.up-people{width:min(100%,980px)}
.up-bars{display:flex;flex-direction:column;gap:var(--up-gap,26px)}
.up-bar{display:grid;grid-template-columns:110px minmax(0,1fr) 84px;align-items:center;gap:var(--sp-5)}
.up-bar-k{color:var(--stage-ink-3);font-size:var(--fs-title);font-weight:var(--fw-bold);line-height:var(--lh-tight)}
.up-bar-tr{display:block;height:var(--up-bar-h,27px);overflow:hidden;border-radius:var(--r-ctl);background:var(--stage-node-line-off)}
.up-bar-fill{display:flex;gap:2px;height:100%;transform-origin:left;animation:up-grow 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * .12s) both}
.up-bar-fill>i[data-part="unset"]{background:var(--brand-yellow);box-shadow:var(--stage-glow-soft)}
.up-bar-fill>i:is([data-part="rest"],[data-part="all"]){background:var(--stage-dim)}
.up-bar-n{color:var(--stage-ink);font-size:var(--fs-kpi);font-weight:var(--fw-heavy);line-height:var(--lh-tight);text-align:right;font-variant-numeric:tabular-nums}
.up-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px var(--sp-5);margin-top:var(--sp-5);color:var(--stage-muted);font-size:var(--fs-sm);line-height:var(--lh-tight)}
.up-tools>.up-foot{margin-top:6px}
.up-key{display:inline-flex;align-items:center;gap:var(--sp-2)}
.up-key>i{width:14px;height:10px;border-radius:var(--r-xs);background:var(--stage-dim)}
.up-key[data-part="unset"]>i{background:var(--brand-yellow)}
.up-chip{display:inline-flex;align-items:center;gap:var(--sp-2);height:30px;padding:0 var(--sp-3);border:1px solid var(--stage-node-line);border-radius:var(--r-pill);background:var(--stage-btn);color:var(--stage-ink-3);font-weight:var(--fw-semibold)}
.up-chip>i{width:7px;height:7px;border-radius:var(--r-pill);background:var(--brand-yellow);box-shadow:var(--stage-glow-dot)}
.up-chip>small{color:var(--stage-muted);font-size:inherit;font-weight:var(--fw-medium)}
/* 보이지 않는 곳: a department a row -- its name, its people as dots, how many have no Sensor of how many. */
.up-people-rows{display:flex;flex-direction:column;gap:var(--sp-4)}
.up-person-row{display:grid;grid-template-columns:170px minmax(0,1fr) 70px;align-items:center;gap:18px}
.up-person-k{overflow:hidden;color:var(--stage-ink-3);font-size:var(--fs-figure-tab);font-weight:var(--fw-semibold);line-height:var(--lh-tight);text-overflow:ellipsis;white-space:nowrap}
.up-person-n{color:var(--stage-ink);font-size:var(--fs-figure-tab);font-weight:var(--fw-bold);line-height:var(--lh-tight);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.up-person-n>small{color:var(--stage-faint);font-size:inherit;font-weight:var(--fw-medium)}
@keyframes up-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes up-turn{to{transform:rotate(360deg)}}
@media (max-width:760px){
  .up-bar{grid-template-columns:64px minmax(0,1fr) 56px;gap:var(--sp-3)}
  .up-person-row{grid-template-columns:96px minmax(0,1fr) 56px;gap:10px}
}
@media (prefers-reduced-motion:reduce){.up-bar-fill,.up-dialog[data-uf-state="loading"] .up-state-i .ck-i{animation:none}}
