/* Agent Flow (universe-flow.js; U104, 사용자 11-14 Click-AgentFlow-design.html) and 발표 모드 (universe-present.js).
   The page is the parts' (click-parts.css 20·21·22절): the lens row (.lx-lhead), the seven figures (.lx-scard), the flow
   map (.lx-flow, its blocks .lx-fnode and ribbons .lx-rib), the cards whose rows run to their edges (.lx-mcard), the
   drawer (portalUi.panel drawer:true) and its sections. These lines only place them, by the page's width (the
   reference R:L415~459: seven figures on a line from 1100px, four from 640, two under it; the cards under the map one,
   two from 900 and three from 1400). Sizes, colours and type are the parts' tokens.
   The five lanes (universe-lanes.js, the parts' .lx-lanes) stand in one card under their head. */
.uf{
  display:block;min-width:0;max-width:1760px;margin:0 auto;font-variant-numeric:tabular-nums;container:uf / inline-size}
/* The reference sets no line height: its rows are as tall as their words at the face's own (normal) line, not the
   portal's body 1.5 (U104 F1~F3, measured: 먼저 볼 것 58px, a place without Sensor 39px). The drawer too. */
.uf,.uf-dr{line-height:normal}
.uf-low .lx-mcard-h>.lx-h2{line-height:normal}
/* The lenses 14 in from their edges, and the reference's 36px buttons (발표 모드; a drawer's two), the dark one 14 in */
.uf [data-uf-lenses]>button{padding-inline:14px}
:is(.uf-head,.uf-dr .lx-dr-acts) .lx-btn{height:36px}
:is(.uf-head,.uf-dr .lx-dr-acts) .lx-btn-p{padding-inline:14px}
/* 모두 펼치기 / 접기 (R:L60): 30 tall, its icon 4 from its word */
.uf .lx-flow-top .lx-btn-s{height:var(--pill-h);gap:var(--sp-1)}
.uf [hidden]{display:none}
.uf-view{display:flex;flex-direction:column;gap:var(--sp-5);min-width:0}
.uf-view[hidden]{display:none}
.uf-view>:empty{display:none}
/* the first read's placeholders: the figures' row and the map card in their own places (U104 8절) */
.uf-wait{display:flex;flex-direction:column;gap:var(--sp-5)}
.uf-wait>.uf-scard,.uf-wait>.uf-mapcard{padding:var(--sp-5)}
/* (the figures' placeholders stand as the seven do: one line of seven, four and two a line in narrower rooms) */
.uf-wait .ui-skeleton[data-skeleton="tiles"]{grid-template-columns:repeat(7,minmax(0,1fr))}
@container uf (max-width:1099px){.uf-wait .ui-skeleton[data-skeleton="tiles"]{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container uf (max-width:639px){.uf-wait .ui-skeleton[data-skeleton="tiles"]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* the seven figures: one line of seven, then four and two a line, the last one filling its line */
.uf-cells.lx-scells{grid-template-columns:repeat(7,minmax(0,1fr))}
@container uf (max-width:1099px){
  .uf-cells.lx-scells{grid-template-columns:repeat(4,minmax(0,1fr))}
  .uf-cells>.lx-scell,.uf-cells>.lx-scell:first-child{border-left:0;box-shadow:-1px 0 0 var(--divider-soft),0 1px 0 var(--divider-soft)}
  .uf-cells>.lx-scell:last-child{grid-column:span 2}
}
@container uf (max-width:639px){.uf-cells.lx-scells{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* the cards under the map: 먼저 볼 것, 도구, 에이전트가 보이지 않는 곳 */
.uf-low{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"f" "t" "s";gap:var(--sp-5);align-items:start}
.uf-first{grid-area:f}
.uf-tools{grid-area:t}
.uf-unseen{grid-area:s}
@container uf (min-width:900px){.uf-low{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"f f" "t s"}}
@container uf (min-width:1400px){.uf-low{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);grid-template-areas:"f t s"}}
/* The three cards as the reference draws them (R:L82~124, measured, U104 F1~F3): a head 18px over its title and 10
   (먼저 볼 것) or 12 under it, every row and the body 22px in from the card's edges. (Spacing in px as the reference's;
   type, colours and corners stay the tokens': 13px words stand at 13.5, the 14px card corner at 12.) */
.uf-low .lx-mcard-h{padding:18px 22px 12px}
.uf-first .lx-mcard-h{padding-bottom:10px}
.uf-low :is(.lx-crow,.lx-krow){padding-inline:22px}
/* 먼저 볼 것's row (R:L85~90): 12px over and under, its second line 12.5, the tag 24 tall in ink-2, the count 15 with
   its unit 12 */
.uf-frow.lx-crow{padding-block:var(--sp-3)}
.uf-frow .lx-crow-s{font-size:var(--fs-xs)}
.uf-frow>.lx-tag{flex:none;max-width:40%;height:var(--pill-st-h);overflow:hidden;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap}
.uf-frow>.lx-crow-n{min-width:40px;font-size:var(--fs-section);text-align:right}
.uf-frow>.lx-crow-n>.lx-u{font-size:var(--fs-2xs)}
/* 도구 (R:L95~110): the figure and its unit, the bar, the four kinds two a line 26 tall (not the overview's legend
   presses), 정책 미지정 one line 12 over and under with its figure 15, the systems' head and each system on its 28px tile */
.uf-tools-b{display:flex;flex-direction:column;gap:var(--sp-3);padding:0 22px var(--sp-4)}
.uf-tools-b>.lx-kpi-fig{flex-wrap:wrap;column-gap:3px}
.uf-tools-b .lx-kpi-u{font-size:var(--fs-sm);font-weight:var(--fw-regular)}
.uf-tools-spec{display:flex}
.uf-tools-leg.lx-legend{gap:4px var(--sp-4)}
.uf-tools-leg .lx-leg{gap:7px;height:26px;margin:0;padding:0;font-size:var(--fs-sm)}
.uf-tools-leg .lx-leg:hover{background:transparent}
.uf-tools-leg .lx-leg-n{font-size:var(--fs-sm)}
.uf-policy.lx-crow{gap:10px;padding-block:var(--sp-3)}
.uf-policy>.lx-crow-n{font-size:var(--fs-section)}
.uf-band{display:flex;align-items:baseline;gap:var(--sp-2);padding:10px 22px 6px;border-top:1px solid var(--divider-soft);color:var(--muted);font-size:var(--fs-2xs);font-weight:var(--fw-semibold)}
.uf-sys.lx-crow{gap:10px;padding-block:9px 11px;border-top:0}
.uf-sys>.lx-ava{width:28px;height:28px}
.uf-sys>.lx-ava .ck-i{width:var(--icon);height:var(--icon)}
.uf-policy-t,.uf-sys-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uf-sys-t{font-weight:var(--fw-regular)}
.uf-sys-n{flex:none;color:var(--muted);font-size:var(--fs-xs);white-space:nowrap}
.uf-warn-n{color:var(--st-review-fg)}
.uf-none{margin:0;padding:var(--sp-2) var(--sp-5) var(--sp-4);color:var(--muted);font-size:var(--fs-sm)}
/* 에이전트가 보이지 않는 곳 (R:L112~123): a department's row 11 over and under its name, its bar 6 tall, the figure's
   column 64 */
.uf-unseen-key{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:var(--muted);font-size:var(--fs-2xs)}
.uf-urow.lx-krow{grid-template-columns:minmax(0,1fr) minmax(80px,1fr) 64px;padding-block:11px}
.uf-urow-bar{display:flex}
.uf-urow-n{color:var(--ink-3);font-size:var(--fs-xs);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.uf-urow-wide{grid-column:2 / -1}
.uf-urow-n>b{color:var(--ink);font-weight:var(--fw-bold)}
.uf-urow-n>b.lx-c-bad{color:var(--danger-ink)}

/* ---- the drawer's sections, as the reference's (R:L186~256, measured) ---- */
.uf-dr .lx-dr-top{padding-bottom:var(--sp-5)}
.uf-dr .lx-dr-acts>.lx-btn{gap:6px}
.uf-nears{display:flex;flex-direction:column;gap:var(--sp-3)}
/* the mix's words under its bar: each a 10px swatch, its word and its count, 6 and 16 apart */
.uf-mix-key.lx-flow-legend{gap:6px var(--sp-4);margin-top:10px}
.uf-mix-key .lx-flow-key{gap:6px;color:var(--ink-3);font-size:var(--fs-sm)}
.uf-mix-key .lx-flow-key>i{width:10px;margin-right:0}
/* 사유 · 판정 근거: a reason a line, 9 over and under, ruled under it -- its name, the bar 90 wide and its count 36 */
[data-uf-sec="reasons"] .lx-dr-sec-h,[data-uf-sec="why"] .lx-dr-sec-h,[data-uf-sec="basic"] .lx-dr-sec-h{margin-bottom:6px}
.uf-reasons>.lx-reason{display:grid;grid-template-columns:minmax(0,1fr) 90px 36px;gap:var(--sp-3);padding:9px 0;border-top:0;border-bottom:1px solid var(--divider-soft);font-size:var(--fs-sm)}
.uf-reasons .lx-reason-name{gap:var(--sp-2)}
.uf-reasons .lx-reason-count{display:contents}
.uf-reasons .lx-reason-nm{overflow:hidden;font-size:var(--fs-sm);font-weight:var(--fw-regular);text-overflow:ellipsis;white-space:nowrap}
.uf-reasons .lx-reason-bar{height:var(--bar-h);border-radius:var(--r-pill);background:var(--divider-soft)}
.uf-reasons .lx-reason-bar>i{border-radius:var(--r-pill)}
.uf-reasons .lx-reason-n{min-width:0;font-size:var(--fs-sm)}
.uf-rs-i{display:grid;place-items:center;flex:none;color:var(--st-review)}
.uf-rs-i[data-tone="bad"]{color:var(--st-unmanaged)}
.uf-rs-i .ck-i{width:var(--icon-md);height:var(--icon-md)}
/* 사유's mark (U104 2절): the 시안's filled orange disc and its '!' */
.uf-rs-bang{width:16px;height:16px;border-radius:var(--r-pill);background:var(--st-review);color:var(--surface);font-size:var(--fs-3xs);font-weight:var(--fw-bold);line-height:1}
/* 판정 근거's mark (U104 judge 5): the 시안's filled red disc and its white ✕ */
.uf-rs-x{width:16px;height:16px;border-radius:var(--r-pill);background:var(--st-unmanaged);color:var(--surface)}
.uf-rs-i.uf-rs-x .ck-i{width:12px;height:12px}
/* 에이전트: one ruled box of rows, each 10 over and under its 30px tile, its state the agent's own */
.uf-dr [data-uf-sec="agents"] .lx-rels,.uf-dr [data-uf-sec="products"] .lx-rels{gap:0;border:1px solid var(--divider);border-radius:var(--r-card);overflow:hidden}
.uf-dr :is([data-uf-sec="agents"],[data-uf-sec="products"]) .lx-rel{padding:var(--row-pad) var(--row-pad-x);border:0;border-radius:0}
.uf-dr :is([data-uf-sec="agents"],[data-uf-sec="products"]) li+li>.lx-rel{border-top:1px solid var(--divider-soft)}
.uf-dr :is([data-uf-sec="agents"],[data-uf-sec="products"]) .lx-rel:hover{background:var(--bg-hover)}
.uf-dr :is([data-uf-sec="agents"],[data-uf-sec="products"]) .lx-rel>.lx-ava{width:var(--ico-tile);height:var(--ico-tile)}
.uf-dr :is([data-uf-sec="agents"],[data-uf-sec="products"]) .lx-rel-s{font-size:var(--fs-2xs)}
.uf-dr [data-uf-sec="agents"] .lx-dr-sec-h{justify-content:flex-start;gap:var(--sp-2)}
.uf-dr [data-uf-sec="agents"] .lx-dr-sec-h>.lx-dr-sum{margin-left:0;color:var(--faint)}
/* 기본 정보 closes the drawer 32 under its last line */
.uf-dr [data-uf-sec="basic"]:last-child{padding-bottom:var(--sp-8)}
.uf-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:var(--sp-3)}
.uf-models .lx-tag .ck-i{width:var(--icon-sm);height:var(--icon-sm);color:var(--muted)}
.uf-dr-empty{padding:var(--sp-6) 0}
.uf-more{width:100%;margin-top:10px}
.uf-dr .lx-rels+.uf-more{align-self:stretch}

/* ---- one thing's five lanes: one card, its head (흐름 지도 back, the name and its state, 상세 at the right) over
   the lanes, which bring their own scroll box (universe-lanes.js .lx-lanes-box) and grow with the card ---- */
.uf-lanes-card{padding:0;overflow:hidden}
/* (R:L131: 14 over and under, 20 in from the card's edges, ruled in divider-soft) */
.uf-lanes-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-4);padding:14px var(--sp-5);border-bottom:1px solid var(--divider-soft)}
/* (R:L132~136: 흐름 지도 8 in on its arrow's side, 4 between; the name and its state 10 apart, the name drawn tight) */
.uf-lanes-head>[data-uf-lanes-back]{gap:var(--sp-1);padding-left:var(--sp-2)}
.uf-lanes-name{display:flex;flex:1;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
.uf-lanes-t{margin:0;min-width:0;font-size:var(--fs-drawer-title);font-weight:var(--fw-bold);letter-spacing:var(--ls-tight);overflow-wrap:anywhere}
.uf-lanes-r{margin-left:auto}
.uf-lanes-r:empty{display:none}

/* (발표 모드's taller blocks say a second line) */
.uf-node-m{overflow:hidden;color:var(--muted);font-size:var(--fs-2xs);white-space:nowrap;text-overflow:ellipsis}
.uf-piece+.uf-piece{margin-left:10px}

/* ---- one thing's five lanes ---- */
.uv-lanes{position:relative}
/* (room held while the lanes are read; drawn, the section is as tall as its lanes, as the reference's) */
.uv-lanes:not(:has(.ul-board)){min-height:320px}

@media (prefers-reduced-motion:reduce){.uf-node,.uf-rib{transition:none}}

