/* v252 · /desk showcase, AX SIMULATOR example screen (.rfm-csim), shown inside the monitor frame (.dvx-mon, v246.css).
   One crowd of virtual customers fills the field as a grid of person icons; a simulation chip lights its 소규모 집행 대상 cohort
   in red, a pointer or the cohort list lights another cohort in ink, and a bubble on the crowd shows that cohort's size,
   prediction and traits. Red #fd4533 only for the 소규모 집행 대상.
   The monitor screen has a fixed aspect ratio and hides overflow, so this screen is laid out in real pixels to fill it exactly:
   the card is shown at zoom 1 (the other monitor scenes are zoomed down) so every label stays at 12 px or more.
   Wide screens (≥ 450 px): crowd on the left, chips and cohort list on the right.
   Narrow screens (1180 side column, phones): chips on top, the crowd, and a strip with the bubble's content under it.
   Every rule is scoped under .rfm-csim (v246.css has its own .cs-a, .cs-q, .cs-list, .cs-note). */
#app .rfm-csim{container:csim/inline-size;color:#111}
#app .dvx-mon .dvx-body>.rfm-csim{zoom:1;height:100%}
#app .rfm-csim p,#app .rfm-csim ul,#app .rfm-csim ol{margin:0;padding:0}
#app .rfm-csim .cs-in{height:100%;display:grid;grid-template-columns:minmax(0,1fr) clamp(170px,36%,212px);column-gap:14px}
#app .rfm-csim .cs-l{display:flex;flex-direction:column;min-width:0;min-height:0}
#app .rfm-csim .cs-r{display:flex;flex-direction:column;min-width:0;min-height:0;padding-left:14px;border-left:1px solid rgba(0,0,0,.08)}
/* header: panel name, size, running state; then what this simulation tests */
#app .rfm-csim .cs-head{display:flex;align-items:center;gap:8px;min-width:0}
#app .rfm-csim .cs-t{font:700 13px/1.3 var(--kr);letter-spacing:-.02em;color:#111;white-space:nowrap}
#app .rfm-csim .cs-tsub{font:500 12px/1.3 var(--kr);color:#666;white-space:nowrap}
#app .rfm-csim .cs-state{flex:none;display:flex;align-items:center;gap:5px;margin-left:auto;padding:3px 8px;border-radius:999px;background:#f2f2f4;font:600 12px/1.2 var(--kr);color:#333;white-space:nowrap}
#app .rfm-csim .cs-state i{width:6px;height:6px;border-radius:50%;background:#2b2d33}
#app .rfm-csim.is-run .cs-state i{animation:csBlink .45s ease-in-out infinite alternate}
#app .rfm-csim .cs-test{display:flex;gap:8px;margin-top:5px;font:700 12px/1.35 var(--kr);color:#111;white-space:nowrap}
#app .rfm-csim .cs-tl{font-weight:500;color:#777}
/* the crowd: one svg, one group of <use> icons per cohort */
#app .rfm-csim .cs-viz{position:relative;flex:1;min-height:0;margin-top:8px}
#app .rfm-csim .cs-field{position:absolute;inset:0;border-radius:10px;background:#f8f8fa;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#app .rfm-csim .cs-crowd{position:absolute;inset:0;display:block;width:100%;height:100%}
#app .rfm-csim .cs-grp{fill:#c8cbd2;transition:fill .32s ease}
#app .rfm-csim .cs-grp.is-alt{fill:#dfe1e6}
#app .rfm-csim .cs-grp.is-top{fill:#fd4533}
#app .rfm-csim .has-hl .cs-grp{fill:#e3e5e9}
#app .rfm-csim .has-hl .cs-grp.is-top{fill:#f8bdb5}
#app .rfm-csim .has-hl .cs-grp.is-hl{fill:#1f2228}
#app .rfm-csim .cs-ring{fill:none;stroke:#fd4533;stroke-width:1.5;opacity:0;transition:opacity .25s}
#app .rfm-csim .cs-ring.on{opacity:1}
#app .rfm-csim .cs-ring.is-hl{stroke:#1f2228}
/* the bubble on the crowd (placed by v252-sim.js; never covers the chips or the list, which sit outside the field) */
#app .rfm-csim .cs-bub{position:absolute;left:0;top:0;z-index:2;width:max-content;max-width:min(214px,calc(100% - 12px));padding:7px 10px 9px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.11),0 10px 22px -12px rgba(0,0,0,.4);pointer-events:none;transition:opacity .2s ease}
#app .rfm-csim .cs-bub.is-out{opacity:0}
#app .rfm-csim .cs-btail{position:absolute;z-index:-1;width:10px;height:10px;margin:-5px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.11);transform:rotate(45deg)}
#app .rfm-csim .cs-bub[data-side=right] .cs-btail{left:0}
#app .rfm-csim .cs-bub[data-side=left] .cs-btail{left:100%}
#app .rfm-csim .cs-bub[data-side=above] .cs-btail{top:100%}
#app .rfm-csim .cs-bub[data-side=below] .cs-btail{top:0}
#app .rfm-csim .cs-bt{display:none;margin-bottom:1px;font:700 12px/1.3 var(--kr);color:#e0301f}
#app .rfm-csim .cs-bub.is-top .cs-bt{display:block}
#app .rfm-csim .cs-bh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;white-space:nowrap}
#app .rfm-csim .cs-bn{font:700 13px/1.35 var(--kr);letter-spacing:-.01em;color:#111}
#app .rfm-csim .cs-bs{font-size:12px;font-weight:500;color:#666}
#app .rfm-csim .cs-bv{font:700 13px/1.35 var(--kr);font-variant-numeric:tabular-nums;color:#111}
#app .rfm-csim .cs-bm{font-size:12px;font-weight:500;color:#666}
#app .rfm-csim .cs-bub.is-top .cs-bv{color:#e0301f}
#app .rfm-csim .cs-btr{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
#app .rfm-csim .cs-btl{display:contents}
#app .rfm-csim .cs-btl>span,#app .rfm-csim .cs-btp{padding:2px 7px;border-radius:999px;background:#f1f2f4;font:500 12px/1.35 var(--kr);color:#333;white-space:nowrap}
#app .rfm-csim .cs-btp{display:none;background:#fff0ee;font-weight:700;color:#e0301f}
#app .rfm-csim .cs-bq{display:none;margin-top:7px;padding-top:6px;border-top:1px solid #eee;font:500 12px/1.45 var(--kr);color:#222}
#app .rfm-csim .cs-bub.has-q .cs-bq{display:block}
#app .rfm-csim .cs-bql{display:block;font-weight:600;color:#777}
/* the loop after the prediction, under the crowd */
#app .rfm-csim .cs-loop{list-style:none;display:flex;align-items:center;gap:6px;margin-top:8px;font:600 12px/1.3 var(--kr);color:#333;white-space:nowrap}
#app .rfm-csim .cs-loop li:not(:first-child):not(.cs-rep)::before{content:'→';margin-right:6px;font-weight:500;color:#a3a6ad}
#app .rfm-csim .cs-rep{padding:1px 8px;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);color:#555}
#app .rfm-csim .cs-rep::before{content:'↻';margin-right:4px}
/* right: the simulations, then each cohort's prediction */
#app .rfm-csim .cs-chips{position:relative;display:flex;flex-wrap:wrap;gap:5px}
#app .rfm-csim .cs-chip{appearance:none;flex:none;margin:0;border:0;padding:5px 9px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.16);font:600 12px/1.15 var(--kr);letter-spacing:-.01em;color:#333;cursor:pointer;white-space:nowrap;transition:background .25s,color .25s,box-shadow .25s}
#app .rfm-csim .cs-chip:hover{box-shadow:inset 0 0 0 1px rgba(0,0,0,.4);color:#111}
#app .rfm-csim .cs-chip.on{background:#111;box-shadow:none;color:#fff}
#app .rfm-csim .cs-chip:focus-visible,#app .rfm-csim .cs-lb:focus-visible{outline:2px solid #fd4533;outline-offset:1px}
#app .rfm-csim .cs-bar{flex:none;height:1px;margin:10px 0 9px;background:rgba(0,0,0,.1);overflow:hidden}
#app .rfm-csim .cs-bar i{display:block;height:100%;background:#111;transform-origin:0 50%;opacity:0;transition:opacity .4s}
#app .rfm-csim.is-run .cs-bar i{opacity:1;transition:none;animation:csRun .9s cubic-bezier(.3,.6,.4,1) both}
#app .rfm-csim.bar-reset .cs-bar i{animation:none}
#app .rfm-csim .cs-lh{margin-bottom:3px;padding-left:6px;font:600 12px/1.3 var(--kr);color:#666}
#app .rfm-csim .cs-ll{list-style:none}
#app .rfm-csim .cs-lb{appearance:none;display:flex;align-items:center;gap:6px;width:100%;margin:0;border:0;padding:2px 6px;border-radius:6px;background:transparent;font:600 12.5px/1.3 var(--kr);color:#222;text-align:left;cursor:default;transition:background .25s}
#app .rfm-csim .cs-ld{flex:none;width:7px;height:7px;border-radius:50%;background:#c6c9d0;transition:background .3s}
#app .rfm-csim .cs-ln{white-space:nowrap}
#app .rfm-csim .cs-lz{margin-left:auto;font:500 12px/1.3 var(--kr);font-variant-numeric:tabular-nums;color:#8a8d94;white-space:nowrap}
#app .rfm-csim .cs-lv{flex:none;min-width:30px;text-align:right;font:700 12.5px/1.3 var(--kr);font-variant-numeric:tabular-nums;color:#111}
#app .rfm-csim .cs-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#app .rfm-csim .cs-lb:not(.is-top) .cs-vh{display:none}
#app .rfm-csim .cs-lb.is-top{background:#fff1ef}
#app .rfm-csim .cs-lb.is-top .cs-ld{background:#fd4533}
#app .rfm-csim .cs-lb.is-top .cs-lv{color:#e0301f}
#app .rfm-csim .cs-lb.is-hl{background:#eff0f2}
#app .rfm-csim .cs-lb.is-hl .cs-ld{background:#1f2228}
#app .rfm-csim .cs-key{display:flex;align-items:center;gap:6px;margin-top:6px;padding-left:6px;font:600 12px/1.3 var(--kr);color:#e0301f}
#app .rfm-csim .cs-key i{flex:none;width:7px;height:7px;border-radius:50%;background:#fd4533}
#app .rfm-csim.no-tr *{transition:none !important}
@keyframes csRun{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes csBlink{from{opacity:1}to{opacity:.25}}
/* 1366: a little less room on the right; sizes step back so the list keeps one line per cohort */
@container csim (max-width:520px){
 #app .rfm-csim .cs-in{column-gap:12px}
 #app .rfm-csim .cs-r{padding-left:12px}
 #app .rfm-csim .cs-bar{margin:8px 0 7px}
 #app .rfm-csim .cs-lb{padding:1px 6px}
 #app .rfm-csim .cs-lz{display:none}
 #app .rfm-csim .cs-lv{margin-left:auto}
 #app .rfm-csim .cs-tsub{display:none}
}
/* narrow screens: chips on top (one row that scrolls sideways), the crowd, and the bubble's content as a strip under it */
@container csim (max-width:449px){
 #app .rfm-csim .cs-in{display:flex;flex-direction:column}
 #app .rfm-csim .cs-r{order:-1;flex:none;padding:0;border:0}
 #app .rfm-csim .cs-head,#app .rfm-csim .cs-test,#app .rfm-csim .cs-loop,#app .rfm-csim .cs-bar,#app .rfm-csim .cs-lg{display:none}
 #app .rfm-csim .cs-l{flex:1}
 #app .rfm-csim .cs-chips{flex-wrap:nowrap;margin:0;padding:2px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-mask:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}
 #app .rfm-csim .cs-chips::-webkit-scrollbar{display:none}
 #app .rfm-csim .cs-chips.at-end{-webkit-mask:none;mask:none}
 #app .rfm-csim .cs-chip:focus-visible{outline-offset:-2px}
 #app .rfm-csim .cs-viz{display:flex;flex-direction:column;margin-top:6px}
 #app .rfm-csim .cs-field{position:relative;inset:auto;flex:1;min-height:0}
 #app .rfm-csim .cs-bub{position:static;z-index:auto;width:auto;max-width:none;margin-top:6px;padding:5px 9px 6px;border-radius:8px;background:#fafafb;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);transform:none !important;transition:none}
 #app .rfm-csim .cs-btail,#app .rfm-csim .cs-bub.is-top .cs-bt,#app .rfm-csim .cs-bub.has-q .cs-bq{display:none}
 #app .rfm-csim .cs-btr{flex-wrap:wrap;height:20px;margin-top:3px;overflow:hidden}
 #app .rfm-csim .cs-bub.is-top .cs-btp{display:inline-block}
}
@media (prefers-reduced-motion:reduce){
 #app .rfm-csim *,#app .rfm-csim.is-run *{transition:none !important;animation:none !important}
}
