/* 리디자인 트랙 RM5 (리디자인 명세 8.10, 8.15, 9.1): LLM Gateway › 개요, 보호 › 가드레일, 보호 › 탐지 내역.
   The parts are RF1's (lx-*, redesign-rf1.css): here are only these screens' own layout rules, under names no older
   sheet holds (gwo-: 개요, gd-: 탐지 내역, gr-: 가드레일; gw-period: the Gateway screens' shared period control).
   Text in a status colour uses the -text tokens; nothing here names an older variable. */

/* ---- The Gateway screens' period (gw-console-common.js periodControl) ---------------------------------------- */
.gw-period{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px}
.gw-period-at{display:inline-flex;align-items:center;gap:6px;color:var(--ds-text-3);font-size:13px}
/* The two instants are the common one-line input (36px); 기간 적용 is the common button (34px, 14px). */
.gw-period-at .lx-in{width:auto}
/* The response-source mark kept with the dot before it (gw-console-common dotted, .gw-keep: narrower than its line by the
   dot's room) wraps its own words inside its edge: the shared badge's nowrap would leave the words of a long source
   (모의 응답과 출처를 확인하지 못한 기록) beyond the narrowed mark, out of a figure's card (W1A/W1B gw-ops 1280-1920). */
.gw-keep>.gw-source{white-space:normal}
.gwc-first{align-items:flex-start;flex-wrap:wrap;row-gap:8px}
.gwc-first .lx-lede{flex:1 1 15em;min-width:min(100%,15em);margin:0}

/* ---- LLM Gateway › 개요 (gw-console-overview.js) -------------------------------------------------------------- */
#gw-overview-root,[data-gwc-overview]{display:flex;flex-direction:column;gap:20px;min-width:0}
[data-gwc-overview][hidden],[data-gwc-risk][hidden]{display:none}
[data-gwc-raise]:empty{display:none}
/* The first line's pieces stand one 32px high on one middle, as a screen's first line does (redesign-rf1.css
   data-insights-first): the period's joined control is 32px, so 이번 달, 기간 적용, the two instants and 가드레일 설정
   검토 are too -- the button stood 34px and 이번 달 28px beside it (PC2 FB-008, 명세 8.10 구성 2). */
.gwo-controls .gw-period{max-width:100%}
.gwo-controls :is(.gw-period,[data-gwc-raise])>.lx-btn,.gwo-controls .gw-period-at .lx-in{height:32px}
/* Under the three figures, what they were read over: one quiet line. A state in it is a dot and its word, a caution
   its words in the caution's text colour -- no filled piece beside the figures. The collection's state is the shared
   dot and word itself (gw-console-common collectionLine, .lx-st); the rules below are for the partial and short-sample
   chips, which are still .state. */
#gw-overview-root [data-gwc-envelope]{gap:2px 0;margin:0;padding:0;color:var(--ds-text-3);font-size:13px;line-height:1.5}
#gw-overview-root [data-gwc-envelope] small{color:inherit;font-size:inherit}
#gw-overview-root [data-gwc-envelope] .state{display:inline;padding:0;border:0;border-radius:0;background:none;color:var(--ds-text-2);font-size:inherit;font-weight:500;white-space:normal}
#gw-overview-root [data-gwc-envelope] .state:is(.warning,.critical){color:var(--ds-caution-text)}
/* (PC 눈 대조 10-13 recheck-4 eye 04: 20px under the figures and 20px over the first card the line stood as a thin
   strip of its own. It is the figures' footnote: 8px under them, the page's 20px before the card.) */
#gw-overview-root .gwo-stats+[data-gwc-envelope]{margin-top:-12px}
/* The kinds under the figures and their footnote: 12px under them, not the page's 20px. A chip without a list to
   open is said, not pressed. */
.gwo-kinds{gap:8px;margin:-8px 0 0}
.gwo-kinds>span.lx-chip,.gwo-kinds>span.lx-chip:hover{border-color:var(--ds-line);cursor:default}
.gwo-figure-link{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:none;cursor:pointer}
.gwo-figure-link:hover,.gwo-figure-link:focus-visible{color:var(--ds-accent-text);text-decoration:underline;text-underline-offset:3px}
.gwo-stats{gap:8px 28px}
/* 처리 단계's first part (UR20-2): the figures, their line and the kinds. v24 Gateway.html draws the six steps alone in this
   card (Air v24 10-20 08:07: the figures over them, their line and the kinds took 158 px and put the two columns under
   it out of the first screen), and the steps say the same counts large: here each figure is its name and its count on
   one line, small, and the line and the kinds follow them, wrapping where the card is narrow. */
.gwo-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;min-width:0;margin-bottom:16px}
.gwo-order>.lx-card-h .gwo-head{margin:0;flex-wrap:nowrap;gap:6px 16px}
.gwo-stats .lx-stat{padding-left:0}
.gwo-head .gwo-stats{gap:6px 20px}
.gwo-head .gwo-stats .lx-stat{flex-direction:row;align-items:baseline;gap:6px;padding:0}
.gwo-head .gwo-stats .lx-fig-s{font-size:16px;font-weight:600;letter-spacing:0;line-height:24px}
#gw-overview-root .gwo-head .gwo-stats+[data-gwc-envelope]{margin-top:0}
.gwo-head .gwo-kinds{margin:0}
.gwo-pipeline{margin:0;padding:0;list-style:none}
/* The six steps stand in one row or in two even rows, never five and one (auto-fit left '6 기록' alone on a second line: X166). */
.gwo-pipeline{grid-template-columns:repeat(6,minmax(0,1fr))}
@media (max-width:1280px){.gwo-pipeline{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:520px){.gwo-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gwo-pipeline .lx-step>a{text-decoration:none}
.gwo-pipeline .lx-step>a:hover,.gwo-pipeline .lx-step>a:focus-visible{color:var(--ds-accent-text);text-decoration:underline}
.gwo-step-figures{display:flex;flex-direction:column;gap:2px;min-width:0}
.gwo-step-lead{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
.gwo-more{margin-top:14px}
.gwo-more>summary{width:fit-content;color:var(--ds-accent-text);font-size:13px;font-weight:500;cursor:pointer}
/* (display: an older sheet makes every table a block on a phone, and the two columns then stand at its left.) */
.gwo-table{display:table;width:100%;max-width:520px;margin-top:8px;border-collapse:collapse;font-size:14px}
/* (A row's name is a head cell: an older sheet fills every th grey and writes it small.) */
.gwo-table th,.gwo-table td{box-sizing:border-box;height:46px;padding:8px 6px;border-bottom:1px solid var(--ds-line);background:transparent;color:var(--ds-text);font-size:14px;font-weight:400;text-align:left}
.gwo-table thead th{color:var(--ds-text-3);font-size:13px;font-weight:500}
.gwo-table td,.gwo-table thead th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.gwo-table tr:last-child>*{border-bottom:0}
.gwo-table .gwo-sub>*{padding-top:4px;padding-bottom:4px;color:var(--ds-text-3);font-size:13px}
.gwo-table .gwo-sub>th{padding-left:20px}
.gwo-unlinked{display:flex;flex-direction:column;gap:12px}
.gwo-unlinked .lx-card-h{margin-bottom:0}
.gwo-unlinked>p{margin:0}
.gwo-unlinked-figure{align-items:baseline;gap:8px}
.gwo-unlinked-figure a{text-decoration:none}
.gwo-unlinked-figure a:hover,.gwo-unlinked-figure a:focus-visible{text-decoration:underline;text-underline-offset:4px}
.gwo-reasons{display:flex;flex-direction:column}
.gwo-top-row{grid-template-columns:minmax(0,1fr) 104px 80px}
.gwo-top[hidden]{display:none}
.gwo-top>p{margin:8px 0 0}
.gwo-side{display:flex;flex-direction:column;gap:20px;min-width:0}
.gwo-lower .lx-li:last-child{border-bottom:0}
.gwo-lower .lx-li:hover>.lx-grow{text-decoration:underline;text-underline-offset:3px}
.gwo-lines{display:flex;flex-direction:column;gap:6px;margin:8px 0 0;padding-left:18px}
.gwo-start{display:flex;flex-direction:column;gap:16px}
.gwo-start-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.gwo-start-steps>li{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1px solid var(--ds-line);border-radius:10px;background:var(--ds-surface)}
.gwo-trend>.lx-h2{margin:0 0 10px}

/* ---- LLM Gateway › 보호 › 탐지 내역 (gw-detections.js) ---------------------------------------------------------- */
#gw-detections-root{display:flex;flex-direction:column;gap:16px;min-width:0}
.gd-first .lx-lede{margin:0}
.gd-body{min-width:0}
[data-gd-view]{display:flex;flex-direction:column;gap:12px;min-width:0}
[data-gd-view][hidden]{display:none}
.gd-filters{gap:8px}
.gd-chips{gap:6px}
.gd-narrow{position:relative}
.gd-narrow>summary{list-style:none;cursor:pointer}
.gd-narrow>summary::-webkit-details-marker{display:none}
.gd-narrow-body{position:absolute;z-index:5;top:calc(100% + 6px);left:0;display:flex;flex-direction:column;gap:10px;min-width:220px;padding:12px;border:1px solid var(--ds-line);border-radius:10px;background:var(--ds-surface);box-shadow:var(--ds-shadow)}
.gd-narrow-body label{display:flex;flex-direction:column;gap:4px}
.gd-find{flex:0 1 280px;min-width:160px}
/* 9.1: the period stays in the one filter line -- the chips wrap inside their own span first, where the line was the
   one to wrap and put the period alone under it (T19-4 B 17). 900 and under the line wraps as before. */
@media(min-width:901px){.gd-filters[data-gd-filters]{flex-wrap:nowrap}.gd-filters[data-gd-filters]>.gd-chips{flex:0 1 auto;min-width:0}.gd-filters[data-gd-filters]>:is(.gd-narrow,.lx-seg){flex:none}}
.gd-condition{gap:6px;margin:0}
.gd-drop{padding:0 2px;border:0;background:none;color:inherit;font:inherit;line-height:1;cursor:pointer}
.gd-table-wrap{position:relative;overflow-x:auto}
.gd-table{min-width:660px}
@media(max-width:1440px){.lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) .gd-table{min-width:0}}
.gd-table tr.lx-hl{cursor:pointer}
.gd-table td:first-child{white-space:nowrap}
.gd-table td>.lx-nm,.gd-table td>.lx-lbl,.gd-allow-table td>.lx-nm,.gd-allow-table td>.lx-lbl{display:block;max-width:280px}
.gd-allow-table td>.lx-nm{overflow-wrap:anywhere}
.gd-head{all:unset;font:inherit;color:inherit;cursor:pointer}
.gd-head:hover{background:none}
.gd-head:focus-visible{outline:2px solid var(--ds-accent);outline-offset:2px;border-radius:4px}
.gd-open{font-variant-numeric:tabular-nums;white-space:nowrap}
.gd-allow-act{text-align:right;white-space:nowrap}
.gd-detail{display:flex;flex-direction:column;gap:16px;overflow-wrap:anywhere}
.gd-detail .lx-nm,.gd-detail .lx-nm+.lx-lbl{display:block}
.gd-actions,.gd-mark,.gd-allow{gap:8px}
.gd-mark,.gd-allow{margin:0}
.gd-mark label,.gd-allow label{display:inline-flex;align-items:center;gap:6px}
.gd-mark .lx-in,.gd-allow .lx-in{width:auto}
.gd-pattern{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.gd-pattern>.lx-h2{margin:0}
.gd-pattern>.lx-row{align-items:flex-end}
.gd-pattern label{display:flex;flex-direction:column;flex:1 1 180px;gap:4px;min-width:0}
/* 예외 (U80): the form in the panel (one field under another; a list of choices scrolls in its own box), the ended
   lines folded under the table. Placement only: the parts are click-parts'. */
.gd-x{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
.gd-x [hidden]{display:none}
.gd-x-shapes{display:flex;flex-direction:column;gap:var(--sp-2)}
.gd-x-choice{overflow-wrap:anywhere}
.gd-x-picks{display:flex;flex-direction:column;gap:var(--sp-2);max-height:calc(var(--ctl-h) * 6);overflow-y:auto}
.gd-x-foot{justify-content:flex-end}
.gd-allow-ended{margin-top:var(--sp-3)}
.gd-allow-ended>.gd-table-wrap{margin-top:var(--sp-3)}
.gd-allow-table td>.lx-tags{max-width:280px}
.gd-allow-table td:is([data-gd-col="end"],[data-gd-col="by"]){white-space:nowrap}
.gd-allow-table td[data-gd-col="rule"]>:is(.lx-nm,.lx-lbl){max-width:170px}
.gd-allow-table td[data-gd-col="value"]>.lx-lbl{max-width:160px}
.gd-allow-table td[data-gd-col="by"]>.lx-nm{max-width:140px}
.gd-allow-table td[data-gd-col="tools"]>.lx-lbl{max-width:96px}
.gd-allow-table td:is([data-gd-col="rule"],[data-gd-col="value"]){min-width:120px}
.gd-allow-table td:is([data-gd-col="tools"],[data-gd-col="who"]){min-width:88px}
.gd-allow-act>.lx-btn+.lx-btn{margin-inline-start:var(--sp-2)}

/* ---- LLM Gateway › 보호 › 가드레일 (guardui-screen.js, guard-parts.js, guard-detail.js, guard-check.js,
   guardrail-rules.js; 리디자인 명세 8.15) -------------------------------------------------------------------------
   The parts are RF1's (lx-*): here are the screen's own layout rules only. gr-: the screen and its panels,
   gp-: the guardrail parts both this screen and 탐지 내역 draw. Quiet text is --ds-text-3; a state's dot keeps the
   palette's plain token; no text here is in a status colour. */
#gw-guardrails-root{display:flex;flex-direction:column;gap:16px;min-width:0}
.gr-first{align-items:flex-start}
.gr-first .lx-lede{margin:0}
.gr-pick:empty{display:none}
/* Over the table, the read application state precedes the scope choice; refresh stays at the right. */
.gr-scope{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0;padding:var(--sp-4);border:1px solid var(--ds-line);border-radius:var(--ds-radius);background:var(--ds-surface)}
.gr-scope-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--sp-3) var(--sp-4);min-width:0}
.gr-scope-pick{grid-column:1/-1;grid-row:2;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);min-width:0}
.gr-version{grid-column:1;grid-row:1;display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);min-width:0;color:var(--ds-text)}
.gr-deployment-label{font-size:var(--ds-fs-md);font-weight:var(--fw-semibold)}
.gr-refresh{grid-column:2;grid-row:1}
.gr-week{margin-left:auto}
.gr-week:empty+.gr-refresh{margin-left:auto}
/* (The picker's name and list are a label: an older sheet gives every label 18px over it and 7px under.) */
.gr-scope-pick>label{margin:0}
.gr-refresh{flex:none}
/* A field of this screen is the common one: no margin of its own, its name 6px over its control. */
#gw-guardrails-root .gr-field,.lx-aside .gr-field,#guardrail-rules-panel .gr-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;color:var(--ds-text-3);font-size:13px}
.gr-field .lx-in{min-width:180px}
.gr-check{display:inline-flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}
[data-gu-scope-found]{gap:6px}
:is([data-gu-scope-found],[data-gu-scopes-cut],[data-gu-status],[data-gu-readiness],[data-gu-estimate])[hidden]{display:none}
:is([data-gu-version],[data-gu-week]):empty{display:none}
.gr-main{display:flex;flex-direction:column;gap:20px;min-width:0}
[data-gu-body]{display:flex;flex-direction:column;gap:14px;min-width:0}
:is([data-gu-result],[data-gu-check-host]):empty{display:none}
[data-gu-body]>.lx-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0}

/* Each governed rule keeps its table row and its links. The body lays those rows out as
   cards so policy state, detected count, and the existing control stay together. */
.gr-guards{display:flex;flex-direction:column;gap:12px;min-width:0;container:gr-guards/inline-size}
/* Overview uses the same row renderer but keeps the compact table presentation. */
.gwo-guards{min-width:0;overflow-x:auto}
.gwo-guards .gp-table{width:100%}
.gwo-guards table.lx-t.gp-table tbody th[scope="row"]{padding:9px 6px;color:var(--ds-text);font-size:var(--fs-body);font-weight:400;text-align:left;white-space:normal}
.gwo-guards .gp-table :is(.lx-nm,.lx-sub){display:block}
.gwo-guards .gp-table td{vertical-align:middle}
.gwo-guards table.lx-t.gp-table tbody tr:last-child>th{border-bottom:0}
.gwo-guards table.lx-t.gp-table :is(th,td).lx-r{text-align:left}
.gwo-guards table.lx-t.gp-table tr[aria-selected="true"]>*{border-bottom-color:transparent;background:var(--ds-accent-soft)}
.gwo-guards table.lx-t.gp-table tr[aria-selected="true"]>th{border-radius:var(--r-ctl) 0 0 var(--r-ctl)}
.gr-card-guide{display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--ds-text-3);font-size:var(--fs-2xs)}
.gr-card-guide-item{cursor:help;border-radius:var(--r-xs)}
.gr-card-guide-item:focus-visible{outline:2px solid var(--ds-accent);outline-offset:2px}
.gr-guards table.lx-t.gp-table{display:block;width:100%;min-width:0;border:0;background:transparent}
.gr-guards table.lx-t.gp-table thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.gr-guards table.lx-t.gp-table tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gr-guards table.lx-t.gp-table tbody tr{display:flex;flex-direction:column;min-width:0;min-height:250px;border:1px solid var(--ds-line);border-radius:var(--r-card);background:var(--ds-surface);overflow:hidden}
.gr-guards table.lx-t.gp-table tbody :is(th,td){display:block;box-sizing:border-box;width:100%;height:auto;min-width:0;border:0;background:transparent;text-align:left;white-space:normal}
.gr-guards table.lx-t.gp-table tbody th[scope="row"]{padding:16px 16px 8px;color:var(--ds-text);font-size:var(--fs-body);font-weight:500;line-height:1.45}
.gr-guards .gp-table :is(.lx-nm,.lx-sub){display:block}
.gr-guards .gp-table .lx-sub{white-space:normal;overflow:visible;text-overflow:clip}
.gr-guards .gp-table .gr-rule-meta{margin-top:8px}
.gr-guards table.lx-t.gp-table tbody td.lx-r{padding:10px 16px;min-height:48px;overflow-wrap:anywhere;font-size:var(--fs-figure-cell);font-weight:600}
.gr-guards table.lx-t.gp-table tbody td.lx-r:not([data-figure]){display:none}
.gr-guards table.lx-t.gp-table tbody td.lx-r[data-figure]::before{content:attr(data-figure-label);display:block;margin-bottom:4px;color:var(--ds-text-3);font-size:var(--fs-2xs);font-weight:500}
.gr-guards table.lx-t.gp-table tbody td:last-child{margin-top:auto;padding:14px 16px;border-top:1px solid var(--ds-line);min-height:60px;overflow-wrap:anywhere}
.gr-guards table.lx-t.gp-table tbody tr[aria-selected="true"]{border-color:var(--ds-accent);background:var(--ds-accent-soft)}
.gr-guards table.lx-t.gp-table tbody tr[aria-selected="true"]>:is(th,td){background:transparent}
.gr-guards table.lx-t.gp-table tbody tr:focus-within{outline:2px solid var(--ds-accent);outline-offset:2px}
.gr-act{display:inline-flex;align-items:center;gap:8px}
.gr-act::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ds-muted)}
.gr-act:is([data-state="detect"],[data-state="mask"])::before{background:var(--ds-caution)}
.gr-act[data-state="block"]::before{background:var(--ds-blocked)}
.gr-sel{width:auto;min-width:112px;height:30px}
.gr-under{align-items:center;gap:8px 12px}
.gr-under>p{margin:0}
/* 웹 AI에도 적용 (K04 6-1): its own part under the LLM context leak check's row, set apart by a line. */
.gr-web-ai{display:grid;gap:var(--sp-3);margin-top:var(--sp-3);padding-top:var(--sp-3);border-top:1px solid var(--divider-soft)}
.gp-elsewhere{margin:0}
.gp-elsewhere b{color:var(--ds-text);font-weight:600}

/* A folded part (시험 사례 결과, a panel's sections, 지원하지 않는 정규식). */
/* AI 오탐 검증 under the table is folded to its head line (T19-4 B 11). */
.gr-review>summary{margin-bottom:0;cursor:pointer}
.gr-review[open]>summary{margin-bottom:14px}
.gp-fold{min-width:0}
.gp-fold>summary{width:fit-content;color:var(--ds-accent-text);font-size:13px;font-weight:500;cursor:pointer}
.gp-fold>summary .lx-lbl{margin-left:8px;font-weight:400}
.gp-fold[open]>summary{margin-bottom:8px}
.gp-fold>p{margin:0 0 8px}
.gp-scroll{max-width:100%;overflow-x:auto}
.gr-results>.lx-btn{margin-top:10px}

/* The right panel: a guardrail's settings over its counts, 적용 상태, 바꾼 내용, 회사 규칙. */
.gr-panel{display:flex;flex-direction:column;gap:16px;min-width:0}
.gr-panel>[data-guard-detail-settings]:empty{display:none}
.gr-set{display:flex;flex-direction:column;gap:12px;min-width:0}
.gr-set>p{margin:0}
.gr-set-row{align-items:flex-end;gap:8px 16px}
.gr-set .lx-li{display:flex;align-items:center;gap:10px;min-width:0}
.gr-set .lx-li>.lx-grow{min-width:0}
.gr-set .lx-sect-h{display:flex;align-items:baseline;gap:8px}
/* A step's or an item's choice in the panel is the design's small one (28px, 13px), no wider than its longest
   word: the names keep the row, the choices stand as one quiet column at its end. */
.gr-set .lx-li>select.lx-in.gr-sel{flex:none;width:auto;min-width:0;height:28px;padding:0 26px 0 8px;font-size:13px;background-position:right 8px center}
/* (PC 눈 대조 10-13 recheck-4 eye 06: a long item's name ended in … beside a choice that read heavier than the name.
   A name is whole, on a second line where it must; the names are the row's weight and a choice is the words' own;
   one that follows the default is quiet until the pointer or the keys are on it.) */
.gr-set .lx-li>.lx-grow{font-weight:500}
.gr-set .lx-li>.lx-grow.lx-ell,.gr-set .lx-li>.lx-grow>.lx-sub.lx-ell{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.gr-set .lx-li>select.lx-in.gr-sel{font-weight:400}
.gr-set .lx-li>select.lx-in.gr-sel:has(>option[value=""]:checked):not(:hover,:focus-visible,:disabled){border-color:var(--ds-line);color:var(--ds-text-2)}
.gr-n{flex:none;min-width:48px;color:var(--ds-text-3);font-size:13px;font-variant-numeric:tabular-nums;text-align:right}
.gr-n:empty{display:none}
.gr-sub{padding-left:16px;color:var(--ds-text-3);font-size:13px}
.gr-facts,.gr-estimate{margin:0}
.gr-steps{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.gr-steps>li{display:flex;flex-direction:column;gap:2px;min-width:0}
.gr-changes{margin:0;padding-left:18px}
.gr-changes>li{margin:2px 0}
.gp-detail{display:flex;flex-direction:column;gap:12px;min-width:0}
.gp-detail-first,.gp-detail-raise{margin:0}
.gp-detail-table{width:100%}

/* 회사 규칙 (the rules panel's node, mounted in the right panel). Its own heading and standing note are the panel's
   title and the list's first line now: hidden until index.html's node is reduced to its parts (RF2). */
#guardrail-rules-panel{display:flex;flex-direction:column;gap:12px;min-width:0}
#guardrail-rules-panel>.section-title,#guardrail-rules-panel>.inventory-note:not(#gr-status){display:none}
#guardrail-rules-panel>:empty{display:none}
#gr-rules{display:flex;flex-direction:column;gap:8px;min-width:0}
#gr-rules>p{margin:0}
.gr-tools{align-items:flex-end;gap:8px 12px}
.gr-rule{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:10px 0;border-top:1px solid var(--ds-line)}
.gr-rule>.lx-grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.gr-rule .lx-sub{overflow-wrap:anywhere}
.gr-rule-act{flex:none;gap:6px}
.gr-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
/* The pattern and the reason take the form's width; the pattern's two flags stand as one line under it. */
.gr-form>:is(.lx-row,p,.lx-note,button),.gr-form>.gr-field:has(textarea,#gr-pattern,#gr-reason){grid-column:1/-1}
.gr-form>.gr-check{align-self:end;padding-bottom:8px}
.gr-form>.gr-check:has(#gr-flag-i,#gr-flag-m){align-self:center;margin-top:-4px;padding-bottom:0}
.gr-form .lx-in{min-width:0;width:100%}
.gr-form>button{justify-self:start}

/* 문장 검사해 보기 (guard-check.js). */
.gp-check{display:flex;flex-direction:column;gap:10px;min-width:0}
.gp-check-text,.gp-check-stage{display:flex;flex-direction:column;gap:4px;min-width:0}
.gp-check-text>textarea{width:100%;min-height:88px;resize:vertical}
.gp-check-tools{align-items:flex-end;gap:8px 12px}
.gp-check-stage>select{width:auto}
.gp-check-verdict{align-items:center;gap:8px;margin:0}

@media(max-width:900px){
  .gr-form{grid-template-columns:1fr}
  .gr-rule{flex-direction:column}
}
@container gr-guards (max-width:900px){
  .gr-guards table.lx-t.gp-table tbody{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container gr-guards (max-width:560px){
  .gr-guards table.lx-t.gp-table tbody{grid-template-columns:minmax(0,1fr)}
  .gr-guards table.lx-t.gp-table tbody tr{min-height:0}
  .gr-sel{min-width:0;width:auto;max-width:100%}
}

/* U44: shared counts and settings parts in the existing Gateway table. */
.gr-rule-setting{display:flex;flex-direction:column;gap:var(--sp-2)}
.gr-rule-meta{gap:var(--sp-2);flex-wrap:wrap}
.gr-first{align-items:flex-start}
.gr-first>[data-gu-week]{flex-basis:100%;margin:0}
[data-gu-week] .lx-row{gap:var(--sp-2)}
[data-gu-protection-summary]{gap:var(--sp-3)}
[data-gu-protection-summary]>.lx-row{gap:var(--sp-2)}
.gr-rule>.lx-grow{display:flex;flex-direction:column;gap:var(--sp-2)}

/* U44: 사용 한도 and 개요 -- facts apart, not strung with dots; layout only. */
.lx-lede>.lx-lede-sub.lim-sub{display:flex;flex-wrap:wrap;column-gap:var(--sp-4);row-gap:var(--sp-1)}
.lim-ways{flex-wrap:wrap;gap:var(--sp-1) var(--sp-4)}
.lim-state{flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3)}
.lim-empty{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--sp-3)}
.lim-empty .lx-btn{margin-top:0}
[data-gwc-kpi-sub] .lx-counts{gap:var(--sp-1) var(--sp-3)}
.gu-cols{display:inline-flex;align-items:center;gap:var(--sp-6)}
/* U44: a key's pieces (its date, what the Gateway said, its use, a history row's when and who) stand apart, not strung by dots. */
.gwk-parts>:not(.gwk-narrow){display:inline-block;max-width:100%}
.gwk-key-status.gwk-parts>*,.lx-dropsum.gwk-parts>*{white-space:nowrap}
.gwk-parts>:not(:last-child){margin-inline-end:var(--sp-3)}
/* U44: a connection's pieces (who may use it, each limit, the budget's parts, the next key) stand apart, not strung by dots. */
.mcx-part:not(:last-child),[data-mc-quota-use]:not(:last-child),.mcx-whole:not(:last-child){margin-inline-end:var(--sp-3)}
[data-mc-next]:not(:first-child){margin-inline-start:var(--sp-3)}
/* U44: a sender's device and model under its name stand apart, not strung by a dot. */
[data-gd-sender-line]>.gd-part:not(:last-child){margin-inline-end:var(--sp-2)}
/* U44: a verification's figures (checked, released, kept, unavailable) stand apart, not strung by dots. */
.gu-parts>span:not(:last-child){margin-inline-end:var(--sp-3)}
/* U44: a guardrail part's lines are a list (the default, each item, each detector), not loose rows. */
.gr-lines{list-style:none;margin:0;padding:0}
/* U44: what another screen decides stands as separate links with their counts, not strung by dots. */
.gp-elsewhere>span:not(:last-child){margin-inline-end:var(--sp-4)}
/* U44: one verification reading's facts (when, part, rule, what the request got, what it came to) stand apart. */
.gu-case{display:flex;flex-wrap:wrap;column-gap:var(--sp-3);row-gap:var(--sp-1)}
/* U44: a guardrail's test-case report is its name and counts chips on one row. */
.gp-quality{flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3)}
/* U44: a detection row's rule, stage and app under its guardrail stand apart (beside an open panel), not run together. */
[data-gd-dropsum]>.lx-tags{column-gap:var(--sp-3)}
/* U44 round 2 (R3): a figure read as 0 is quiet -- grey, body size, regular weight -- never the size of a real count. */
.gwo-kpi .lx-fig-s .lx-na,.gwo-step-lead .lx-fig-s .lx-na{font-size:var(--fs-body);font-weight:var(--fw-regular)}
.lx-na .gwo-figure-link{color:inherit}
/* U44 round 2: a detection's number is a reference (small muted mono); its panel's facts are label beside value, as
   the asset panel's (.lx-kv: label column, the rest), and a tile read as 0 is quiet. */
.gd-id{font-family:var(--font-mono);font-size:var(--fs-mono)}
.gd-id,.gd-id .lx-lk{color:var(--muted)}
.gd-detail .detail-facts{display:grid;grid-template-columns:calc(var(--subnav-w) / 2) minmax(0,1fr);gap:var(--sp-2) var(--sp-4);margin:0;padding:0;border:0}
.gd-detail .detail-fact{display:contents}
.gd-detail .detail-fact>dt{margin:0;padding:0;border:0;color:var(--muted);font-size:var(--fs-sm);font-weight:var(--fw-regular)}
.gd-detail .detail-fact>dd{margin:0;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
:is(.gd-detail,.br-detail,.gwk-detail,[data-br-panel],[data-gwk-panel]) .lx-mtile[data-zero]>b{font-size:var(--fs-body);font-weight:var(--fw-regular)}
/* U44 round 2: the guardrails head is the noun, its badge, then the analysis choice on the same row; the week's counts
   are the line under it. The sent requests are a quiet link after the badge. */
.gr-first{flex-wrap:wrap}
.gr-first>.gr-pick{order:1}
.gr-first>[data-gu-week]{order:2;flex-basis:100%}
[data-gu-lede] .lx-bdg{vertical-align:middle;margin-inline-start:var(--sp-2)}
[data-gu-lede] .gr-sent{margin-inline-start:var(--sp-3)}
.gr-mask-note{gap:var(--sp-2);flex-wrap:wrap;align-items:center}
/* U44 round 2: a key's cell is two lines at most -- when its grey line of the dropped columns shows (panel open or a
   narrow window, rf1 .lx-dropsum), the app line gives way to it (the app stays in the panel and the filter). */
.lx-split:has(>.lx-aside):where(:not([data-lx-roomy])) .lx-t .gwk-app{display:none}
@media (max-width:1100px){.lx-t .gwk-app{display:none}}
/* U44 round 2: the limits panel's ways are a link list; its inputs are setting rows (name left, control right). */
ul.lim-ways{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4);margin:0;padding:0;list-style:none}
[data-br-panel] .lx-setrow{grid-template-columns:minmax(0,1fr) auto;align-items:center}
[data-br-panel] .lx-setrow-c>.lx-in,[data-br-panel] .lx-setrow-c>select{width:auto;min-width:calc(var(--ctl-h) * 4)}
[data-v4-waiting]>.lx-tags{vertical-align:middle}
/* U44 round 2: the connections headline's counts are chips on its quiet line. */
.mcx-first-counts{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
.mcx-first-counts>.mcx-figure{text-decoration:none}
.lx-lede .mcx-count{vertical-align:middle;font-size:var(--fs-sm);font-weight:var(--fw-regular)}
/* U44 round 2: a target budget's amount and its period are one line; the stage under it. */
.lim-amt{display:inline-flex;align-items:baseline;gap:var(--sp-2);white-space:nowrap}
.lim-amt>.lx-sub{display:inline;margin:0}
.lim-sub b.lx-na,.lim-sub .lx-na b{color:var(--muted);font-weight:var(--fw-regular)}
.lim-amt+.lx-sub{white-space:nowrap}
:is(.gr-panel,.gp-detail) .lx-mtile[data-zero]>b{font-size:var(--fs-body);font-weight:var(--fw-regular)}
/* U44 R3 (connections): the panel's 사용 한도 and 비용 통제 rows stand in a wrapper that keeps their marks for the screen's
   own reads; the rows lay out as the section's own (the wrapper draws nothing). */
.mcx-detail .mcx-kvs{display:contents}
/* U44 R3 (gw-limits headline): the refusals chip is a press (it opens 이력 at the refusals) drawn as the other chips. */
.lim-sub button.lx-count{margin:0;padding:0;border:0;background:none;font-family:inherit;cursor:pointer}
.lim-sub button.lx-count:hover>span{text-decoration:underline}
/* U44 R4: the list's head row (사용 한도 보기, CSV) stands a row's gap above its table, not on the table's edge. */
.lx-row[data-mc-csv-row]{margin-bottom:var(--sp-2)}
