/* NH OpsLens — operations console design system */

@font-face {
  font-family: "Pretendard Variable";
  src: url("/opslens-app/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/opslens-app/fonts/JetBrainsMono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.165 0.012 258);
  --bg-sunken: oklch(0.145 0.011 258);
  --surface: oklch(0.198 0.013 258);
  --surface-2: oklch(0.228 0.014 258);
  --surface-hover: oklch(0.25 0.016 258);
  --line: oklch(0.3 0.015 258);
  --line-soft: oklch(0.255 0.013 258);
  --text: oklch(0.955 0.004 258);
  --text-2: oklch(0.8 0.012 258);
  --text-3: oklch(0.67 0.016 258);
  --accent: oklch(0.72 0.14 266);
  --accent-strong: oklch(0.64 0.17 266);
  --accent-ink: oklch(0.99 0 0);
  --accent-soft: oklch(0.72 0.14 266 / 0.14);
  --ok: oklch(0.79 0.15 155);
  --ok-soft: oklch(0.79 0.15 155 / 0.13);
  --warn: oklch(0.84 0.14 82);
  --warn-soft: oklch(0.84 0.14 82 / 0.13);
  --bad: oklch(0.71 0.18 24);
  --bad-soft: oklch(0.71 0.18 24 / 0.14);
  --info: oklch(0.78 0.1 232);
  --info-soft: oklch(0.78 0.1 232 / 0.13);
  --shadow-1: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-2: 0 10px 30px -12px oklch(0 0 0 / 0.6), 0 2px 6px oklch(0 0 0 / 0.25);
  --scrim: oklch(0.1 0.01 258 / 0.62);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(0.975 0.004 258);
  --bg-sunken: oklch(0.955 0.005 258);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.975 0.004 258);
  --surface-hover: oklch(0.955 0.007 258);
  --line: oklch(0.89 0.008 258);
  --line-soft: oklch(0.93 0.006 258);
  --text: oklch(0.22 0.02 258);
  --text-2: oklch(0.4 0.02 258);
  --text-3: oklch(0.52 0.02 258);
  --accent: oklch(0.53 0.19 266);
  --accent-strong: oklch(0.47 0.2 266);
  --accent-ink: oklch(0.99 0 0);
  --accent-soft: oklch(0.53 0.19 266 / 0.09);
  --ok: oklch(0.52 0.14 155);
  --ok-soft: oklch(0.6 0.14 155 / 0.12);
  --warn: oklch(0.56 0.13 70);
  --warn-soft: oklch(0.75 0.14 80 / 0.18);
  --bad: oklch(0.55 0.2 25);
  --bad-soft: oklch(0.6 0.2 25 / 0.1);
  --info: oklch(0.5 0.13 240);
  --info-soft: oklch(0.6 0.12 240 / 0.1);
  --shadow-1: 0 1px 2px oklch(0.3 0.02 258 / 0.08);
  --shadow-2: 0 12px 32px -14px oklch(0.3 0.03 258 / 0.28), 0 2px 6px oklch(0.3 0.02 258 / 0.08);
  --scrim: oklch(0.25 0.02 258 / 0.38);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 calc(13.5px * var(--fs, 1))/1.55 "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.mono, code, pre, kbd { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: calc(12.5px * var(--fs, 1)); letter-spacing: 0; }
code { background: var(--surface-2); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 5px; }
pre {
  margin: 0; padding: 12px 14px; background: var(--bg-sunken); border: 1px solid var(--line-soft);
  border-radius: 10px; overflow: auto; max-height: 260px; white-space: pre; color: var(--text-2); line-height: 1.6;
}
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.lg { width: 20px; height: 20px; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px; background: var(--bg-sunken); border-right: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-weight: 680; font-size: calc(14.5px * var(--fs, 1)); letter-spacing: -0.02em; line-height: 1.2; }
.brand-sub { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text-2); font: inherit; font-weight: 520; text-align: left; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-soft); }
.nav-item[aria-current="page"] .icon { color: var(--accent); }
.nav-count { margin-left: auto; font-size: calc(11.5px * var(--fs, 1)); font-weight: 650; padding: 0 7px; border-radius: 99px; background: var(--bad-soft); color: var(--bad); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.agent-box { padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.agent-box-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--fs, 1)); }
.agent-box-row + .agent-box-row { margin-top: 6px; }
.agent-box .label { color: var(--text-3); }
.countdown { height: 3px; margin-top: 10px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.countdown > i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.user-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px;
  background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left;
}
.user-btn:hover { background: var(--surface); }
.avatar {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: calc(13px * var(--fs, 1)); text-transform: uppercase;
}
.user-meta { min-width: 0; line-height: 1.3; }
.user-meta b { font-weight: 600; font-size: calc(13px * var(--fs, 1)); }
.user-meta small { display: block; color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 32px; background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line-soft);
}
.page-title { font-size: calc(19px * var(--fs, 1)); font-weight: 680; }
.page-sub { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.content { padding: 24px 32px 64px; width: 100%; max-width: 1480px; }
.view { display: none; }
.view.active { display: block; animation: view-in 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- primitives ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--text); --b-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border: 1px solid var(--b-line); border-radius: 8px; background: var(--b-bg); color: var(--b-fg);
  font: inherit; font-size: calc(13px * var(--fs, 1)); font-weight: 560; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}
.btn:hover { background: var(--surface-hover); }
.btn:active { transform: translateY(0.5px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { --b-bg: var(--accent-strong); --b-fg: var(--accent-ink); --b-line: transparent; box-shadow: var(--shadow-1); }
.btn.primary:hover { background: var(--accent); }
.btn.danger { --b-fg: var(--bad); --b-line: color-mix(in oklch, var(--bad) 45%, var(--line)); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger.solid { --b-bg: var(--bad); --b-fg: oklch(0.99 0 0); --b-line: transparent; }
.btn.ghost { --b-bg: transparent; --b-line: transparent; --b-fg: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: calc(12.5px * var(--fs, 1)); border-radius: 7px; }
.btn.icon-only { width: 34px; padding: 0; }
.btn.sm.icon-only { width: 28px; }
.btn .spinner { width: 14px; height: 14px; }
.spinner { border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--text-2); }
.field > small { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-sunken); color: var(--text); font: inherit; font-size: calc(13.5px * var(--fs, 1));
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; padding: 10px 11px; resize: vertical; font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 15px; }
.input.sm, .select.sm { height: 30px; font-size: calc(13px * var(--fs, 1)); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: calc(13.5px * var(--fs, 1)); }
.check small { display: block; color: var(--text-3); font-size: calc(12px * var(--fs, 1)); }
.switch { appearance: none; width: 34px; height: 20px; flex: none; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; margin-top: 1px; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: oklch(0.98 0 0); box-shadow: var(--shadow-1); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
.switch:checked { background: var(--accent-strong); }
.switch:checked::after { transform: translateX(14px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px;
  font-size: calc(12px * var(--fs, 1)); font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.live .dot { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.seg button {
  height: 26px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: var(--text-3);
  font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-soft); }
.seg button[data-mode="detect"][aria-pressed="true"] { color: var(--info); }
.seg button[data-mode="enforce"][aria-pressed="true"] { color: var(--bad); background: var(--bad-soft); }

.pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.pips i { width: 14px; height: 5px; border-radius: 3px; background: var(--line); }
.pips i.on { background: var(--warn); }
.pips.full i.on { background: var(--bad); }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: calc(15px * var(--fs, 1)); font-weight: 650; }
.panel-desc { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); margin-top: 2px; }
.panel-body { padding: 18px 20px; }
.panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.meta-row { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: calc(13px * var(--fs, 1)); margin: 14px 20px 0; }
.banner .icon { margin-top: 2px; }
.banner b { font-weight: 650; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner p { margin: 2px 0 0; color: var(--text-2); }

/* fleet overview */
.fleet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 20px 22px; margin-bottom: 18px; }
.fleet-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fleet-head h2 { font-size: calc(15px * var(--fs, 1)); font-weight: 650; }
.fleet-bar { display: flex; height: 10px; gap: 2px; margin-top: 14px; border-radius: 6px; overflow: hidden; background: var(--line-soft); }
.fleet-bar > i { display: block; height: 100%; min-width: 4px; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend b { font-weight: 650; color: var(--text); }
.fleet-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 28px; }
.fact dt { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.fact dd { margin: 0; font-size: calc(20px * var(--fs, 1)); font-weight: 680; letter-spacing: -0.02em; }
.c-healthy { background: var(--ok); }
.c-excluded { background: var(--text-3); }
.c-degraded, .c-unknown { background: color-mix(in oklch, var(--warn) 50%, var(--line)); }
.c-suspect { background: var(--warn); }
.c-threshold, .c-tainted { background: var(--bad); }

/* cluster cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 26px 2px 12px; }
.section-head h2 { font-size: calc(15px * var(--fs, 1)); font-weight: 650; }
.section-head h2 .muted { font-weight: 600; margin-left: 4px; }
.section-head p { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.ccard {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 14px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-1);
  color: inherit; text-decoration: none; transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.ccard:hover { border-color: var(--line); background: var(--surface-2); }
.ccard:active { transform: translateY(1px); }
.ccard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ccard.bad { border-color: color-mix(in oklch, var(--bad) 55%, var(--line-soft)); }
.ccard.warn { border-color: color-mix(in oklch, var(--warn) 50%, var(--line-soft)); }
.ccard.off { opacity: 0.66; }
.ccard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccard-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: calc(15px * var(--fs, 1)); font-weight: 650; }
.ccard-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-name .icon { flex: none; color: var(--text-3); }
.ccard-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ccard-total { display: flex; align-items: baseline; gap: 6px; }
.ccard-total b { font-size: calc(28px * var(--fs, 1)); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ccard-total span { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.fleet-bar.sm { height: 7px; margin-top: 0; }
.ccard-legend { margin-top: 0; font-size: calc(12px * var(--fs, 1)); gap: 4px 14px; }
.ccard-alert { display: flex; align-items: center; gap: 7px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--bad); }
.ccard-alert .icon { width: 14px; height: 14px; flex: none; }
.ccard-foot { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line-soft); font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.ccard-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.ccard-foot .icon { width: 13px; height: 13px; }
.ccard-go { margin-left: auto; color: var(--text-2); font-weight: 600; }
.ccard-go .icon { transform: rotate(-90deg); transition: transform 0.15s; }
.ccard:hover .ccard-go { color: var(--accent); }

/* cluster detail */
.crumb { display: flex; align-items: center; gap: 8px; margin: 0 2px 14px; font-size: calc(13px * var(--fs, 1)); color: var(--text-3); }
.crumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; font-weight: 600; padding: 4px 8px 4px 4px; margin-left: -4px; border-radius: 7px; }
.crumb a:hover { background: var(--surface-2); color: var(--text); }
.crumb a .icon { transform: rotate(90deg); width: 15px; height: 15px; }
.crumb b { color: var(--text); font-weight: 650; }
.node-toolbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 20px 4px; }
.search { display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 200px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text-3); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: calc(13px * var(--fs, 1)); }
.search .icon { width: 15px; height: 15px; flex: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: calc(13px * var(--fs, 1)); }
th {
  position: sticky; top: 0; text-align: left; font-size: calc(11.5px * var(--fs, 1)); font-weight: 600; color: var(--text-3);
  padding: 9px 14px; background: var(--surface); border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.12s; }
tbody tr:hover td { background: var(--surface-hover); }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
td.num, th.num { text-align: right; }
td.actions { text-align: right; white-space: nowrap; }
.node-name { font-weight: 600; }
.node-sub { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.status-cell { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: calc(12.5px * var(--fs, 1)); white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 18%, transparent); background: currentColor; }
.st-healthy { color: var(--ok); }
.st-degraded, .st-unknown, .st-suspect { color: var(--warn); }
.st-threshold, .st-tainted { color: var(--bad); }
.st-excluded { color: var(--text-3); }
.signal { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--fs, 1)); white-space: nowrap; }
.signal .icon { width: 14px; height: 14px; }
.signal.ok { color: var(--ok); }
.signal.bad { color: var(--bad); }
.signal.warn { color: var(--warn); }
.signal small { color: var(--text-3); font-size: calc(12px * var(--fs, 1)); }
.role { display: inline-block; font-size: calc(11.5px * var(--fs, 1)); padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--text-2); margin-right: 3px; }

/* ---------- empty / skeleton ---------- */
.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 56px 24px; color: var(--text-3); }
.empty .icon { width: 28px; height: 28px; color: var(--text-3); }
.empty h3 { font-size: calc(15px * var(--fs, 1)); color: var(--text); font-weight: 650; }
.empty p { margin: 0; max-width: 46ch; font-size: calc(13px * var(--fs, 1)); }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-hover) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- clusters page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line-soft); }
.step { display: flex; gap: 10px; align-items: center; padding: 14px 20px; font-size: calc(13px * var(--fs, 1)); color: var(--text-3); }
.step + .step { border-left: 1px solid var(--line-soft); }
.step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: calc(12px * var(--fs, 1)); border: 1px solid var(--line); }
.step.done b { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.step.current { color: var(--text); }
.step.current b { background: var(--accent-strong); color: var(--accent-ink); border-color: transparent; }
.dropzone {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px; border: 1.5px dashed var(--line);
  border-radius: 12px; background: var(--bg-sunken); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon { width: 22px; height: 22px; color: var(--accent); }
.dropzone b { font-weight: 600; }
.dropzone small { display: block; color: var(--text-3); font-size: calc(12px * var(--fs, 1)); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inline-form { display: flex; gap: 6px; align-items: center; }

/* ---------- settings ---------- */
.settings-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 24px 22px; }
.settings-section + .settings-section { border-top: 1px solid var(--line-soft); }
.settings-section h3 { font-size: calc(14px * var(--fs, 1)); font-weight: 650; }
.settings-section p { margin: 4px 0 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.settings-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.settings-fields .wide { grid-column: 1 / -1; }
.savebar {
  position: sticky; bottom: 16px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 10px 12px 10px 18px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: calc(13px * var(--fs, 1));
  transform: translateY(8px); opacity: 0; pointer-events: none; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.savebar.show { transform: none; opacity: 1; pointer-events: auto; }

/* ---------- connectivity ---------- */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kv div { padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.kv dt { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.kv dd { margin: 3px 0 0; font-weight: 600; }
.iface-list { display: grid; gap: 8px; }
.iface { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-soft); }
.iface.match { border-color: color-mix(in oklch, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
details summary { cursor: pointer; color: var(--text-2); font-size: calc(13px * var(--fs, 1)); margin: 14px 0 8px; }
.latency { display: inline-flex; align-items: center; gap: 8px; }
.latency-bar { width: 56px; height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.latency-bar i { display: block; height: 100%; background: var(--ok); }

/* ---------- events ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.filters .input, .filters .select { width: auto; min-width: 160px; }
.ev-action { display: inline-flex; align-items: center; gap: 7px; font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12px * var(--fs, 1)); white-space: nowrap; }
.ev-action::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ev, var(--text-3)); }
.ev-time { white-space: nowrap; }
.ev-time small { display: block; color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); }

/* ---------- overlays ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; gap: 10px; align-items: flex-start; min-width: 280px; max-width: 420px; padding: 12px 14px;
  border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: calc(13px * var(--fs, 1));
  animation: toast-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast .icon { margin-top: 2px; }
.toast.ok .icon { color: var(--ok); }
.toast.bad .icon { color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
dialog.modal {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-2);
}
dialog.modal.wide { width: min(720px, calc(100vw - 32px)); }
dialog.modal[open] { animation: modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
dialog.modal::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-body { padding: 22px 22px 6px; }
.modal-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.modal-icon.bad { background: var(--bad-soft); color: var(--bad); }
.modal-icon.info { background: var(--accent-soft); color: var(--accent); }
.modal h3 { font-size: calc(16.5px * var(--fs, 1)); font-weight: 680; }
.modal p { margin: 8px 0 0; color: var(--text-2); font-size: calc(13.5px * var(--fs, 1)); }
.modal ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); font-size: calc(13px * var(--fs, 1)); }
.modal .field { margin-top: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px 20px; }
.menu {
  position: fixed; z-index: 55; min-width: 200px; padding: 6px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: toast-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: calc(13px * var(--fs, 1)); cursor: pointer; text-align: left; }
.menu button:hover { background: var(--surface-hover); }
.menu hr { border: 0; border-top: 1px solid var(--line-soft); margin: 5px 0; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr); min-height: 100vh; }
.login-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; background: var(--bg-sunken); border-right: 1px solid var(--line-soft); }
.login-visual svg.topology { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-visual .copy { position: relative; max-width: 440px; }
.login-visual h1 { font-size: calc(30px * var(--fs, 1)); line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; }
.login-visual p { color: var(--text-2); font-size: calc(14.5px * var(--fs, 1)); margin: 14px 0 0; }
.login-legend { position: relative; display: flex; gap: 18px; flex-wrap: wrap; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.login-legend span { display: inline-flex; align-items: center; gap: 7px; }
.login-legend i { width: 8px; height: 8px; border-radius: 50%; }
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: min(380px, 100%); }
.login-form h2 { font-size: calc(22px * var(--fs, 1)); font-weight: 700; margin-top: 26px; }
.login-form .lead { color: var(--text-3); font-size: calc(13.5px * var(--fs, 1)); margin: 6px 0 26px; }
.login-form .field + .field { margin-top: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 40px; }
/* 가운데 맞춤을 transform으로 하면 누르는 순간(.btn:active의 transform) 버튼이 아래로 튀어 클릭이 안 된다 → 여백으로 맞춘다 */
.pw-toggle { position: absolute; right: 4px; top: 0; bottom: 0; margin: auto 0; }
.pw-toggle:active { transform: none; }
.pw-wrap .input::-ms-reveal, .pw-wrap .input::-ms-clear { display: none; }   /* Edge 기본 눈 표시와 겹치지 않게 */
.input.lg { height: 42px; font-size: calc(14.5px * var(--fs, 1)); }
.btn.lg { height: 42px; font-size: calc(14px * var(--fs, 1)); width: 100%; margin-top: 22px; }
.form-error { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 10px 12px; border-radius: 9px; background: var(--bad-soft); color: var(--bad); font-size: calc(13px * var(--fs, 1)); }
.form-warn { margin-top: 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--warn); display: flex; gap: 6px; align-items: center; }
.login-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fleet { grid-template-columns: 1fr; }
  .settings-section { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
  .brand { padding: 0 8px 0 0; }
  .brand-text, .sidebar-foot .agent-box, .user-meta { display: none; }
  .nav { flex-direction: row; }
  .nav-item span { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; }
  .topbar { position: static; padding: 14px 16px; flex-wrap: wrap; }
  .content { padding: 16px 16px 48px; }
  .login { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-soft); }
  .grid-2 { grid-template-columns: 1fr; }
  .fleet-facts { grid-template-columns: repeat(3, 1fr); }
  .iface { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

[hidden] { display: none !important; }
td.actions .btn.ghost { opacity: 0; transition: opacity 0.15s; }
tbody tr:hover td.actions .btn.ghost, td.actions .btn.ghost:focus-visible { opacity: 1; }
.page-banner { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: calc(13px * var(--fs, 1)); }
.page-banner p { margin: 2px 0 0; color: var(--text-2); }
.page-banner > div { display: flex; gap: 10px; align-items: flex-start; }
@media (hover: none) { td.actions .btn.ghost { opacity: 1; } }
body { word-break: keep-all; overflow-wrap: anywhere; }
.shell { background: linear-gradient(to right, var(--bg-sunken) 248px, var(--line-soft) 248px, var(--line-soft) 249px, var(--bg) 249px); }
.sidebar { border-right: 0; }
@media (max-width: 860px) { .shell { background: var(--bg); } .sidebar { border-bottom: 1px solid var(--line-soft); } }
.banner.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- insights (cluster checks) ---------- */
.nav-sep { margin: 14px 10px 4px; font-size: calc(11px * var(--fs, 1)); font-weight: 650; color: var(--text-3); letter-spacing: 0.02em; }
.top-search { flex: 0 1 260px; min-width: 180px; height: 32px; }
.top-search kbd { font-size: calc(11px * var(--fs, 1)); padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-3); }
.search.big { height: 48px; flex: none; max-width: none; width: 100%; font-size: calc(15px * var(--fs, 1)); }
.search.big input { font-size: calc(15px * var(--fs, 1)); }
.search-meta { padding: 0 20px 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }

.ix-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 2px 14px; }
.ix-title { display: flex; align-items: center; gap: 10px; font-size: calc(20px * var(--fs, 1)); font-weight: 700; margin-bottom: 6px; }
.ix-title .icon { color: var(--text-3); }
.ix-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 18px; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--text-3); font: inherit; font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab[aria-selected="true"] .icon { color: var(--accent); }
.tab .icon { width: 15px; height: 15px; }
.tab-badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 99px; font-size: calc(11px * var(--fs, 1)); font-weight: 700; display: inline-grid; place-items: center; }
.tab-badge.bad { background: var(--bad-soft); color: var(--bad); }
.tab-badge.warn { background: var(--warn-soft); color: var(--warn); }

.ix-toolbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 20px 10px; }
#ixBody > .ix-toolbar, .ix-toolbar.flat { padding: 0 0 14px; }
.check.sm { align-items: center; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.pad { padding: 0 20px 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--line-soft);
  background: var(--surface-2); color: var(--text-2); font: inherit; font-size: calc(12px * var(--fs, 1)); font-weight: 560; white-space: nowrap;
}
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--line); color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 45%, transparent); color: var(--accent); }
.chip b { font-weight: 700; color: var(--text); }
.chip.on b { color: inherit; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.bad b, .chip.warn b { color: inherit; }
.chip .icon { width: 13px; height: 13px; }
.ccard-ix { display: flex; flex-wrap: wrap; gap: 6px; font-size: calc(12px * var(--fs, 1)); }
.ccard-ix.muted { align-items: center; gap: 6px; }
.ccard-ix .icon { width: 13px; height: 13px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: var(--surface); color: inherit; text-decoration: none; font: inherit; text-align: left; cursor: pointer;
  position: relative; overflow: hidden; transition: border-color 0.15s, background 0.15s, opacity 0.15s;
  border-radius: 8px;
}
.tile.ok { opacity: 0.55; background: transparent; border-style: dashed; }
.tile.ok .tile-num { font-size: calc(18px * var(--fs, 1)); color: var(--text-3); }
.tile.ok .tile-sub { display: none; }
.tile.ok:hover { opacity: 1; }
.tile.bad { background: color-mix(in oklch, var(--bad) 9%, var(--surface)); border-color: color-mix(in oklch, var(--bad) 35%, var(--line-soft)); }
.tile.warn { background: color-mix(in oklch, var(--warn) 8%, var(--surface)); }
.tile:hover { border-color: var(--line); }
.tile-label { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); font-weight: 600; }
.tile-num { font-size: calc(30px * var(--fs, 1)); font-weight: 720; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.tile.bad .tile-num { color: var(--bad); }
.tile.warn .tile-num { color: var(--warn); }
.tile-sub { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.pick-list { display: grid; gap: 6px; margin-top: 14px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.pick:hover { background: var(--surface-2); }
.pick > span:last-child { display: flex; gap: 6px; }

.sev { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs, 1)); font-weight: 650; white-space: nowrap; }
.sev i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 18%, transparent); }
.sev-crit { color: var(--bad); }
.sev-warn { color: var(--warn); }
.sev-info { color: var(--info); }
.sev-ok { color: var(--ok); }
.kind { font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12px * var(--fs, 1)); font-weight: 600; white-space: nowrap; word-break: normal; }
.clip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.clip.wide { max-width: 560px; }
.hint { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); margin-top: 3px; }
.small { font-size: calc(12px * var(--fs, 1)); }
td.small, .mono.small { font-size: calc(11.5px * var(--fs, 1)); }
.empty.sm { padding: 26px 16px; gap: 6px; }
.empty.sm .icon { width: 22px; height: 22px; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
.table-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line-soft); font-size: calc(12.5px * var(--fs, 1)); }
.table-wrap.bordered { border: 1px solid var(--line-soft); border-radius: 10px; }
.sub-h { font-size: calc(13px * var(--fs, 1)); font-weight: 650; margin: 18px 0 8px; color: var(--text-2); }
.sub-h.pad { margin: 16px 20px 6px; }
.sub-h small { font-weight: 500; margin-left: 4px; }
.banner.flush { margin: 0 0 14px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.role.warn { background: var(--warn-soft); color: var(--warn); }
.role.bad { background: var(--bad-soft); color: var(--bad); }
.pad { padding-left: 20px; padding-right: 20px; }

.meter { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; white-space: nowrap; }
.meter-bar { width: 64px; height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; flex: none; }
.meter-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ok); }
.meter.warn .meter-bar i { background: var(--warn); }
.meter.bad .meter-bar i { background: var(--bad); }
.meter b { font-weight: 600; font-size: calc(12.5px * var(--fs, 1)); font-variant-numeric: tabular-nums; }
.meter.bad b { color: var(--bad); }
.res-rows { display: grid; gap: 10px; }
.res-rows > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 10px; font-size: calc(13px * var(--fs, 1)); }
.res-rows > div > span:first-child { color: var(--text-3); }
.res-rows .meter-bar { width: 140px; }
.ix-grid { align-items: start; margin-bottom: 18px; }
.ix-grid > .panel + .panel { margin-top: 0; }
#ixBody > .panel + .panel, #ixBody > .ix-toolbar + .panel { margin-top: 0; }
#ixBody > .panel { margin-bottom: 18px; }
.cp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.cp-item { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-soft); font-size: calc(13px * var(--fs, 1)); }
.cp-item small { display: block; color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); }
.cp-item.ok .icon { color: var(--ok); }
.cp-item.bad { border-color: color-mix(in oklch, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.cp-item.bad .icon { color: var(--bad); }
.spark-wrap { display: grid; gap: 4px; margin-bottom: 12px; font-size: calc(12px * var(--fs, 1)); }
.spark { width: 100%; height: 48px; background: var(--bg-sunken); border-radius: 8px; }
.spark-legend { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: calc(11px * var(--fs, 1)); fill: var(--text-3); font-family: inherit; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.fc { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); font-size: calc(13px * var(--fs, 1)); }
.fc small { font-size: calc(11.5px * var(--fs, 1)); }
.pressure-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.pressure { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-soft); }
.pressure.bad { border-color: color-mix(in oklch, var(--bad) 45%, var(--line)); background: var(--bad-soft); }
.pressure.warn { border-color: color-mix(in oklch, var(--warn) 45%, var(--line)); background: var(--warn-soft); }
.pressure .node-name { display: flex; justify-content: space-between; gap: 8px; }
.pressure ul { margin: 6px 0 0; padding-left: 18px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.quota-list { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); max-width: 520px; }
.quota-list b { font-weight: 600; color: var(--text); }
.q-crit { color: var(--bad); }
.q-warn { color: var(--warn); }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 2px 0; }
.tag-row .tag { min-width: 120px; }
.actions-inline { display: inline-flex; gap: 6px; }

.ai-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.panel-body > .ai-box:first-child { margin-top: 0; }
.ai-head { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: calc(13px * var(--fs, 1)); margin-bottom: 8px; flex-wrap: wrap; }
.ai-head .icon { color: var(--accent); }
.ai-head .muted { font-weight: 500; font-size: calc(11.5px * var(--fs, 1)); }
.md { font-size: calc(13.5px * var(--fs, 1)); line-height: 1.65; color: var(--text); }
.md h4 { font-size: calc(14px * var(--fs, 1)); margin: 14px 0 4px; }
.md h4:first-child { margin-top: 0; }
.md p { margin: 4px 0; }
.md ul, .md ol { margin: 4px 0; padding-left: 20px; }
.md pre { margin: 8px 0; max-height: none; }
.md-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line-soft); font-size: calc(12.5px * var(--fs, 1)); }

.timeline { padding: 4px 20px 20px; }
.tl-day { margin: 14px 0 6px; padding: 4px 0; font-size: calc(12.5px * var(--fs, 1)); font-weight: 650; color: var(--text-2); border-bottom: 1px solid var(--line-soft); }
.tl-item { display: grid; grid-template-columns: 48px 14px minmax(0, 1fr); gap: 10px; padding: 7px 0; }
.tl-item time { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.tl-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--text-3); }
.tl-item.sev-crit .tl-dot { background: var(--bad); }
.tl-item.sev-warn .tl-dot { background: var(--warn); }
.tl-item.tl-rollout .tl-dot { background: var(--accent); }
.tl-item.tl-remediation .tl-dot { background: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.tl-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: calc(13px * var(--fs, 1)); }
.tl-text { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); margin-top: 2px; word-break: break-all; }

.report-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.report-actions p { margin: 4px 0 10px; }
.report-frame { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: #f5f6f8; }
.report-frame iframe { display: block; width: 100%; height: calc(100vh - 230px); min-height: 520px; border: 0; }
@media (max-width: 860px) {
  .nav-sep { display: none; }
  .top-search { display: none; }
  .res-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .ix-head-right { width: 100%; }
}
.panel-head > a.btn .icon { transform: rotate(-90deg); }
td .node-sub.mono, td.mono.small { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tile { padding: 11px 12px; } .tile-num { font-size: calc(22px * var(--fs, 1)); } .tile-sub { font-size: calc(11.5px * var(--fs, 1)); } }

/* ---------- namespace owner chip ---------- */
.owner { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 0 7px; height: 19px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-size: calc(11.5px * var(--fs, 1)); font-weight: 600; white-space: nowrap; font-family: inherit; text-decoration: none; vertical-align: middle; }
.owner .icon { width: 12px; height: 12px; }
.owner.none { background: transparent; color: var(--text-3); border: 1px dashed var(--line); font-weight: 500; }
.owner.none:hover { color: var(--accent); border-color: var(--accent); }
.eff-owner .owner, td > .owner { margin-left: 0; }

/* ---------- link card ---------- */
.link-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 20px;
  color: inherit; text-decoration: none; margin-bottom: 18px; transition: border-color 0.15s, background 0.15s; }
.link-card:hover { border-color: var(--accent); background: var(--surface-2); }
.link-card > div:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.link-card p { margin: 2px 0 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.link-card > .icon { transform: rotate(-90deg); color: var(--text-3); }

/* ---------- efficiency ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); }
.kpi-label { font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--text-2); }
.kpi-big { font-size: calc(28px * var(--fs, 1)); font-weight: 720; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-big small { font-size: calc(14px * var(--fs, 1)); font-weight: 600; margin-left: 2px; color: var(--text-3); }
.kpi-sub { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.kpi.warn .kpi-big { color: var(--warn); }
.kpi.bad .kpi-big { color: var(--bad); }
.kpi.accent .kpi-big { color: var(--accent); }
.kpi.bad { border-color: color-mix(in oklch, var(--bad) 40%, var(--line-soft)); }
.eff-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 2px 16px; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.eff-legend .icon { width: 14px; height: 14px; color: var(--text-3); }
.eff-legend span { display: inline-flex; align-items: center; gap: 6px; }
.eff-legend i { display: inline-block; width: 18px; height: 8px; border-radius: 3px; }
.lg-req { border: 1.5px solid var(--text-3); }
.lg-use { background: var(--accent); }
.lg-rec { width: 3px !important; height: 12px !important; background: var(--ok); border-radius: 1px !important; }

.eb { position: relative; height: 10px; border-radius: 5px; background: transparent; }
.eb-req { position: absolute; left: 0; top: 0; bottom: 0; border: 1.5px solid var(--text-3); border-radius: 5px; opacity: 0.7; }
.eb-use { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 4px; background: var(--accent); }
.eb.low .eb-use { background: var(--warn); }
.eb.over .eb-use { background: var(--bad); }
.eb-rec { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ok); }
.eb-label { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); white-space: nowrap; }
.eb-label b { color: var(--text-2); font-weight: 600; }
.eb-pct { font-weight: 700; color: var(--text-2); }
.eb-pct.low { color: var(--warn); }
.eb-pct.over { color: var(--bad); }

.eff-list { display: grid; }
.eff-row { display: grid; grid-template-columns: 26px minmax(0, 1.05fr) minmax(0, 1.5fr) 96px; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.eff-row:last-child { border-bottom: 0; }
.eff-rank { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: calc(12px * var(--fs, 1)); font-weight: 700; background: var(--warn-soft); color: var(--warn); }
.eff-row.over .eff-rank { background: var(--bad-soft); color: var(--bad); }
.eff-who { min-width: 0; }
.eff-who .node-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eff-owner { margin-top: 5px; }
.eff-bars { display: grid; gap: 8px; min-width: 0; }
.eff-line { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 8px; }
.eff-k { font-size: calc(11.5px * var(--fs, 1)); font-weight: 600; color: var(--text-3); line-height: 10px; }
.eff-bars .hint { margin: 0; padding-left: 46px; color: var(--ok); font-weight: 600; }
.eff-row.over .eff-bars .hint { color: var(--bad); }
.eff-gain { display: grid; justify-items: end; text-align: right; gap: 1px; }
.eff-gain small { font-size: calc(11px * var(--fs, 1)); color: var(--text-3); }
.eff-gain b { font-size: calc(15px * var(--fs, 1)); font-weight: 720; color: var(--ok); font-variant-numeric: tabular-nums; }
.eff-gain.bad b { color: var(--bad); }
details.eff-all { margin-bottom: 18px; }
details.eff-all > summary { display: flex; align-items: center; gap: 8px; padding: 14px 20px; margin: 0; font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; color: var(--text-2); list-style: none; }
details.eff-all > summary::-webkit-details-marker { display: none; }
details.eff-all[open] > summary { border-bottom: 1px solid var(--line-soft); }
.owners-table .input.sm { min-width: 90px; }
.owners-table td { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 860px) {
  .eff-row { grid-template-columns: 24px minmax(0, 1fr); }
  .eff-bars, .eff-gain { grid-column: 2; }
  .eff-gain { justify-items: start; text-align: left; grid-auto-flow: column; gap: 10px; align-items: baseline; }
}

/* ---------- settings tabs ---------- */
.settings-tabs { margin-bottom: 14px; }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.pane-desc { display: flex; align-items: center; gap: 8px; margin: 0 2px 14px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.pane-desc .icon { width: 15px; height: 15px; color: var(--text-3); }
.test-box { margin-top: 14px; }
.test-out { margin-top: 10px; font-size: calc(12.5px * var(--fs, 1)); }

/* ---------- platform switch ---------- */
.platform-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px; margin: 0 4px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); }
.platform-seg button { height: 30px; border: 0; border-radius: 8px; background: none; color: var(--text-3); font: inherit; font-size: calc(11.5px * var(--fs, 1)); padding: 0 2px; white-space: nowrap; font-weight: 650; cursor: pointer; }
.platform-seg button:hover { color: var(--text); }
.platform-seg button[aria-selected="true"] { background: var(--accent-strong); color: var(--accent-ink); box-shadow: var(--shadow-1); }
body[data-platform="k8s"] [data-platform="os"], body[data-platform="os"] [data-platform="k8s"],
body[data-platform="k8s"] [data-platform="elastic"], body[data-platform="os"] [data-platform="elastic"],
body[data-platform="elastic"] [data-platform="k8s"], body[data-platform="elastic"] [data-platform="os"],
body[data-platform="pfx"] [data-platform="k8s"], body[data-platform="pfx"] [data-platform="os"], body[data-platform="pfx"] [data-platform="elastic"],
body[data-platform="k8s"] [data-platform="pfx"], body[data-platform="os"] [data-platform="pfx"], body[data-platform="elastic"] [data-platform="pfx"] { display: none !important; }
body[data-platform="os"] .agent-box, body[data-platform="elastic"] .agent-box, body[data-platform="pfx"] .agent-box { display: none; }
.os-host-link { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs, 1)); font-weight: 600; color: var(--accent); }
.os-host-link .icon { width: 13px; height: 13px; }
.os-card-cap { display: grid; gap: 6px; }
.os-card-cap > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.os-card-cap .meter-bar { width: 90px; }

/* ---------- openstack forms ---------- */
.os-form .settings-fields { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.os-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
#osHostMode { margin-top: 2px; }

/* ---------- components ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.comp { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-sunken); }
.comp.crit { border-color: color-mix(in oklch, var(--bad) 55%, var(--line)); }
.comp.warn { border-color: color-mix(in oklch, var(--warn) 55%, var(--line)); }
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: calc(14px * var(--fs, 1)); }
.comp-meta { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.comp-bad { font-size: calc(12px * var(--fs, 1)); color: var(--bad); font-family: "JetBrains Mono", Consolas, monospace; }
.comp > .btn { justify-self: start; }
.detect { padding: 10px 12px; border-radius: 9px; background: var(--warn-soft); font-size: calc(12.5px * var(--fs, 1)); }
.detect-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--warn); }
.detect-title .icon { width: 14px; height: 14px; }
.detect p { margin: 4px 0; color: var(--text-2); }
.detect ol { margin: 4px 0 0; padding-left: 18px; color: var(--text); }
.detect code { font-size: calc(11.5px * var(--fs, 1)); }
.log-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.log-bar .select.sm { width: auto; max-width: 420px; }
#logHits { display: grid; gap: 8px; margin-bottom: 10px; }
pre.logview { max-height: 460px; padding: 8px 0; font-size: calc(11.5px * var(--fs, 1)); line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
pre.logview span { display: block; padding: 0 12px 0 0; }
pre.logview span i { display: inline-block; width: 46px; margin-right: 10px; text-align: right; color: var(--text-3); font-style: normal; user-select: none; }
pre.logview span.hl { background: var(--bad-soft); color: var(--text); }
dialog.modal.xwide { width: min(1100px, calc(100vw - 32px)); }

/* ---------- IP map ---------- */
.ip-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.ip-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ip-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.ip-block { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-sunken); }
.ip-block.crit { border-color: color-mix(in oklch, var(--bad) 55%, var(--line)); }
.ip-block.warn { border-color: color-mix(in oklch, var(--warn) 55%, var(--line)); }
.ip-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ip-head .meter-bar { width: 70px; }
.ip-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 2px; }
.ipc { display: block; aspect-ratio: 1; border-radius: 2px; cursor: pointer; }
.ip-legend .ipc { width: 11px; height: 11px; cursor: default; }
.ipc.c0 { background: transparent; outline: 1px dashed color-mix(in oklch, var(--line) 60%, transparent); outline-offset: -1px; }
.ipc.c1 { background: color-mix(in oklch, var(--ok) 38%, var(--surface)); }
.ipc.c2 { background: var(--accent); }
.ipc.c3 { background: var(--info); }
.ipc.c4 { background: var(--warn); }
.ipc.c5 { background: color-mix(in oklch, var(--bad) 70%, var(--surface)); }
.ipc:hover, .ipc.sel { outline: 2px solid var(--text); outline-offset: 0; }
.ip-pop { font-size: calc(12.5px * var(--fs, 1)); padding: 6px 8px; border-radius: 7px; background: var(--surface-2); }
.tl-item.tl-os .tl-dot { box-shadow: 0 0 0 3px var(--accent-soft); }
td.wcol { min-width: 230px; }
td.wcol-s { min-width: 150px; }
.mini-caps { display: grid; gap: 4px; min-width: 300px; }
.mini-caps > div { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; align-items: center; gap: 6px; font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.mini-caps .meter { min-width: 0; }
.mini-caps small { font-size: calc(11px * var(--fs, 1)); color: var(--text-3); }
@media (max-width: 860px) { .ip-head { flex-wrap: wrap; } .ip-legend { width: 100%; } .platform-seg { margin: 0 8px 0 0; } }
.grid-2 > *, .ix-grid > * { min-width: 0; }

/* ---- 이슈 보드 · 계정 */
body[data-role="operator"] [data-admin] { display: none; }
body[data-role="admin"] [data-operator-only] { display: none; }
.nav-count.info { background: var(--accent-soft); color: var(--accent); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.modal .textarea { font-family: inherit; font-size: calc(13.5px * var(--fs, 1)); }
.comp-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
td.iss-col { width: 1%; white-space: nowrap; }
.iss-new { color: var(--text-3); }
.iss-new:hover { color: var(--accent); }
.iss-tag, .iss-status { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: calc(12px * var(--fs, 1)); font-weight: 650; white-space: nowrap; text-decoration: none; }
.st-todo { background: var(--bad-soft); color: var(--bad); }
.st-doing { background: var(--warn-soft); color: var(--warn); }
.st-done { background: var(--info-soft); color: var(--info); }
.st-closed { background: var(--ok-soft); color: var(--ok); }
.iss-bar { padding: 0 0 14px; }
.iss-bar .iss-facts { padding: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kb-col { min-width: 0; border-top: 2px solid var(--line); }
.kb-todo { border-top-color: var(--bad); }
.kb-doing { border-top-color: var(--warn); }
.kb-done { border-top-color: var(--info); }
.kb-col header { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 10px; font-size: calc(13px * var(--fs, 1)); }
.kb-col header span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.kb-list { display: grid; gap: 6px; max-height: calc(100vh - 230px); overflow: auto; }
.kb-empty { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); padding: 14px 2px; }
.kc { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface); color: inherit; text-decoration: none; }
.kc:hover { border-color: var(--line); background: var(--surface-hover); }
.kb-closed .kc { background: transparent; }
.kb-closed .kc-title { color: var(--text-2); font-weight: 500; }
.kc-top { display: flex; align-items: baseline; gap: 8px; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); min-width: 0; }
.kc-where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-sev { flex: none; font-weight: 650; }
.kc-sev.crit { color: var(--bad); }
.kc-sev.warn { color: var(--warn); }
.kc-title { font-size: calc(13px * var(--fs, 1)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.kc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.kc-dot { margin: 0 7px; color: var(--text-3); }
.iss-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.iss-tabs button { appearance: none; border: 0; background: none; color: var(--text-3); font: inherit; font-size: calc(13px * var(--fs, 1)); font-weight: 600; padding: 13px 12px 11px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.iss-tabs button span { margin-left: 7px; font-weight: 500; color: var(--text-3); }
.iss-tabs button:hover { color: var(--text); }
.iss-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.iss-tabs button[aria-selected="true"] span { color: var(--text-2); }
.iss-facts { margin-left: auto; padding: 0 0 12px 16px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); white-space: nowrap; }
.iss-tr { cursor: pointer; }
.iss-tr:hover td { background: var(--surface-2); }
.iss-row-title { font-weight: 560; overflow-wrap: anywhere; display: flex; align-items: baseline; gap: 7px; }
.iss-sev { flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--bad); transform: translateY(-1px); }
.iss-st { display: inline-flex; align-items: center; gap: 7px; font-size: calc(12.5px * var(--fs, 1)); white-space: nowrap; }
.iss-st i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.iss-st.st-todo { color: var(--bad); }
.iss-st.st-doing { color: var(--warn); }
.iss-st.st-done { color: var(--info); }
.iss-st.st-closed { color: var(--text-3); }
.iss-st, .iss-st.st-todo, .iss-st.st-doing, .iss-st.st-done, .iss-st.st-closed { background: none; }
.iss-late { color: var(--bad); font-weight: 600; }
.iss-gone { color: var(--ok); }
.iss-chat { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: calc(12.5px * var(--fs, 1)); }
.iss-chat .icon { width: 13px; height: 13px; }
.iss-id { font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-3); }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); text-decoration: none; margin-bottom: 12px; }
.back-link .icon { transform: rotate(90deg); width: 14px; height: 14px; }
.iss-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.iss-main { min-width: 0; }
.iss-detail-top { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.iss-detail-title { font-size: calc(18px * var(--fs, 1)); line-height: 1.35; overflow-wrap: anywhere; }
.iss-desc { white-space: pre-wrap; font-size: calc(13.5px * var(--fs, 1)); line-height: 1.6; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.iss-actions { flex-wrap: wrap; }
.iss-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.iss-events li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.iss-events b { font-weight: 560; font-size: calc(13.5px * var(--fs, 1)); }
.iss-events small { display: block; font-size: calc(12px * var(--fs, 1)); color: var(--text-3); margin-top: 2px; }
.iss-ev-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.iss-ev-icon .icon { width: 14px; height: 14px; }
.ev-closed .iss-ev-icon { background: var(--ok-soft); color: var(--ok); }
.ev-reopened .iss-ev-icon { background: var(--warn-soft); color: var(--warn); }
.iss-chatbox { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 120px); }
.chat-list { flex: 1; min-height: 260px; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { margin: auto; text-align: center; color: var(--text-3); font-size: calc(13px * var(--fs, 1)); }
.chat-empty .icon { width: 26px; height: 26px; }
.chat-day { align-self: center; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); padding: 2px 10px; border-radius: 99px; background: var(--bg-sunken); }
.chat-msg { display: grid; gap: 3px; max-width: 85%; }
.chat-msg.me { align-self: flex-end; justify-items: end; }
.chat-who { font-size: calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-2); }
.chat-who small { font-weight: 400; color: var(--text-3); margin-left: 6px; }
.chat-bubble { white-space: pre-wrap; overflow-wrap: anywhere; font-size: calc(13.5px * var(--fs, 1)); line-height: 1.5; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.chat-msg.me .chat-bubble { background: var(--accent-soft); border-color: transparent; }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft); align-items: flex-end; }
.chat-form .btn .icon { transform: rotate(-90deg); }
.chat-form .textarea { flex: 1; font-family: inherit; font-size: calc(13.5px * var(--fs, 1)); resize: none; }
.chat-closed { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.row-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.temp-pw { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px dashed var(--line); }
.temp-pw code { flex: 1; font-size: calc(17px * var(--fs, 1)); font-weight: 700; letter-spacing: 0.04em; user-select: all; }
@media (max-width: 960px) { .iss-detail { grid-template-columns: 1fr; } .iss-chatbox { position: static; max-height: 70vh; } }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } .iss-facts { display: none; } }
.iss-list table { min-width: 720px; }
@media (max-width: 760px) {
  .iss-list table { min-width: 460px; }
  .iss-list th:nth-child(1), .iss-list td:nth-child(1), .iss-list th:nth-child(6), .iss-list td:nth-child(6),
  .iss-list th:nth-child(7), .iss-list td:nth-child(7), .iss-list th:nth-child(8), .iss-list td:nth-child(8) { display: none; }
  .iss-list th:nth-child(2), .iss-list td:nth-child(2) { padding-left: 16px; }
}
.kc-foot .iss-late.small { margin-left: 5px; }
td.num { white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ==== UI 개선 반영 (2026-10 선택안: 1·2·5·6·7·9·11·12·14·15·18·19·20·22·23·25·27·29·31·32·33·36·37·38·41·45·46·47·48·49) ==== */
/* 1 사이드바 선택 메뉴: 왼쪽 파란 선 + 굵은 글자 */
.nav-item { border-radius: 0; }
.nav-item[aria-current="page"] { background: transparent; box-shadow: inset 2px 0 0 var(--accent); font-weight: 700; }
/* 2 사이드바 그룹 제목: 작은 대문자 + 구분선 */
.nav-sep { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-size: calc(10.5px * var(--fs, 1)); }
.nav-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
/* 5 플랫폼 전환: 밑줄 탭 */
.platform-seg { background: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 0; gap: 0; }
.platform-seg button { background: none; box-shadow: none; border-radius: 0; border-bottom: 2px solid transparent; color: var(--text-3); }
.platform-seg button[aria-selected="true"] { background: none; box-shadow: none; border-bottom-color: var(--accent); color: var(--text); }
/* 6 상단 제목 줄: 설명문 없이 낮게 */
.page-sub { display: none; }
.topbar { padding-top: 12px; padding-bottom: 12px; min-height: 0; }
.page-title { font-size: calc(16px * var(--fs, 1)); }
/* 7 전체 검색창: 작게 + 단축키 강조 */
.top-search { flex: 0 0 200px; min-width: 0; width: 200px; }
.top-search input::placeholder { color: transparent; }
.top-search kbd { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
/* 9 버튼: 각진 모서리, 그림자 없음, 주 버튼은 테두리형 */
.btn { border-radius: 3px; box-shadow: none; }
.btn.sm { border-radius: 3px; }
.btn.primary { --b-bg: transparent; --b-fg: var(--accent); --b-line: var(--accent); box-shadow: none; }
.btn.primary:hover { background: var(--accent-soft); }
.ix-head .btn { color: var(--accent); border-color: var(--accent); }
/* 11 알림: 왼쪽 색선 */
.toast { border-radius: 3px; border-left: 3px solid var(--ok); box-shadow: none; }
.toast.bad { border-left-color: var(--bad); }
.toast.info { border-left-color: var(--info); }
/* 12 대화상자: 아이콘 상자 없이 머리·본문·버튼 줄 구분 */
dialog.modal { border-radius: 6px; }
.modal-icon { display: none; }
.modal h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.modal-foot { border-top: 1px solid var(--line-soft); padding-top: 14px; }
/* 14 전체 노드 요약: 얇은 막대 */
.fleet { padding: 12px 18px; border-radius: 6px; box-shadow: none; }
.fleet-bar { height: 4px; border-radius: 0; }
/* 15·36·37 클러스터·오픈스택 카드: 평면 카드, 배지·칩은 글자로 */
.ccard { border-radius: 4px !important; box-shadow: none !important; border: 1px solid var(--line-soft) !important; outline: 0 !important; background: var(--surface) !important; }
.ccard::before, .ccard::after { display: none !important; }
.ccard-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.ccard .pill { background: none; padding: 0; }
.ccard .meter-bar { height: 4px; border-radius: 0; }
.ccard .chip { background: none; border: 0; padding: 0 8px 0 0; border-radius: 0; }
/* 18 상세 탭: 아이콘 없이, 개수는 회색 숫자 */
.tab .icon { display: none; }
.tab-badge, .tab-badge.bad, .tab-badge.warn { background: none; color: var(--text-3); padding: 0; min-width: 0; }
/* 19 키-값 정보: '이름 ……… 값' 줄 목록 */
.kv { display: block; }
.kv div { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: 8px 0; }
.kv dd { margin: 0; text-align: right; }
/* 20 자원 막대: 얇게, 클러스터 자원 패널은 길게 + 80% 기준선 */
.meter-bar, .meter-bar i { border-radius: 0; height: 5px; }
.res-rows .meter-bar { width: 200px; background-color: var(--surface-2);
  background-image: linear-gradient(to right, transparent calc(80% - 1px), var(--text-3) calc(80% - 1px), var(--text-3) 80%, transparent 80%); }
/* 22 표 머리: 작은 글자 + 아래 굵은 선 */
th { background: none !important; font-size: calc(11px * var(--fs, 1)); letter-spacing: 0.06em; color: var(--text-3); border-bottom: 2px solid var(--line); }
/* 23 표 줄무늬 */
tbody tr:nth-child(even) td { background: var(--surface-hover); }
td { border-bottom-color: transparent; }
/* 25 필터 도구줄: 글자 필터 + 짧은 검색창 */
.ix-toolbar .seg { background: none; border: 0; }
.ix-toolbar .seg button { background: none; box-shadow: none; color: var(--text-3); }
.ix-toolbar .seg button[aria-pressed="true"] { background: none; box-shadow: none; color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.ix-toolbar .search { max-width: 260px; }
/* 27 이슈 등록 버튼: 행에 마우스를 올리면 '+' */
.iss-new { opacity: 0; font-size: 0 !important; width: 26px; padding: 0 !important; justify-content: center; }
.iss-new .icon { display: none; }
.iss-new::before { content: "+"; font-size: calc(16px * var(--fs, 1)); }
tbody tr:hover .iss-new, .iss-new:focus-visible, .comp:hover .iss-new { opacity: 1; }
/* 29 이벤트 시각: 한 줄 '10/16 16:22:30' */
.ev-when { font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12px * var(--fs, 1)); white-space: nowrap; color: var(--text-2); }
/* 31 자원 효율 막대: 얇고 각지게 */
.eff-bars *, .eb, .eb-req, .eb-use { border-radius: 0; }
.eb { height: 5px; }
/* 32 용량 차트: 격자 정리, 80% 기준선 강조 */
.chart line { stroke: var(--line-soft); stroke-dasharray: none; }
.chart line:nth-of-type(3) { stroke: var(--warn); stroke-dasharray: 4 3; }
.chart polyline { stroke-width: 2.4; }
/* 33 용량 예측 요약: 세로선으로만 구분 */
.fc { background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 4px 12px; }
/* 38 담당자 표 입력칸: 평소엔 글자처럼 */
.owners-table .own-in { border-color: transparent; background: transparent; box-shadow: none; }
.owners-table .own-in:hover { border-color: var(--line); }
.owners-table .own-in:focus { border-color: var(--accent); background: var(--bg-sunken); }
/* 41 요약 숫자 카드: 한 줄 통계 바 */
.kpis { display: flex; gap: 0; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface); }
.kpi { border: 0; border-right: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; flex: 1; }
.kpi:last-child { border-right: 0; }
.kpi.bad { border-color: var(--line-soft); }
.kpi-big { font-size: calc(20px * var(--fs, 1)); }
/* 45 칸반 열 머리: 상태색 사각 + 옅은 열 배경 */
.kb-col { border-top: 0; background: var(--bg-sunken); padding: 0 8px 8px; border-radius: 4px; }
.kb-col header b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--line); }
.kb-todo header b::before { background: var(--bad); }
.kb-doing header b::before { background: var(--warn); }
.kb-done header b::before { background: var(--info); }
/* 46·47 보고서: 설명문 없이, 링크는 일반 글자 */
#view-reports .panel-desc, #view-reports .panel-head .icon { display: none; }
#view-reports a { text-decoration: none; }
#view-reports td a { color: var(--text); }
#view-reports td a:hover { color: var(--accent); }
/* 48 설정 화면: 1단 배치 */
.settings-section { display: block; }
.settings-section > :first-child { margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
/* 49 등록 단계: 진행 막대형 */
.step { border-bottom: 3px solid var(--line-soft); }
.step + .step { border-left: 0; }
.step.done { border-bottom-color: color-mix(in oklch, var(--accent) 45%, var(--line-soft)); }
.step.current { border-bottom-color: var(--accent); }
.step b { display: none; }

/* ---- 사용자 페이지 (/user) */
.user-page { min-height: 100vh; }
.u-top { display: flex; align-items: center; gap: 24px; padding: 10px 32px; border-bottom: 1px solid var(--line-soft); background: var(--bg-sunken); position: sticky; top: 0; z-index: 5; }
.u-top .brand { padding: 0; }
.u-nav { display: flex; gap: 4px; flex: 1; }
.u-nav a { padding: 8px 12px; color: var(--text-3); text-decoration: none; font-weight: 600; font-size: calc(13.5px * var(--fs, 1)); border-bottom: 2px solid transparent; }
.u-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.u-me { display: flex; align-items: center; gap: 8px; }
.u-name { font-weight: 600; font-size: calc(13.5px * var(--fs, 1)); margin-right: 6px; }
.u-main { max-width: 1100px; margin: 0 auto; padding: 28px 32px 64px; }
.ldap-try { display: grid; gap: 6px; margin: 10px 0 8px; max-width: 260px; }

/* ---- MCP 토큰 */
.mcp-new { padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent-soft); }
.mcp-new p { margin: 4px 0 8px; }
.mcp-cmd { white-space: pre-wrap; word-break: break-all; font-size: calc(12px * var(--fs, 1)); padding: 10px 12px; margin: 0; background: var(--bg-sunken); border: 1px solid var(--line-soft); border-radius: 3px; user-select: all; }
.mcp-acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.mcp-list { display: grid; gap: 0; }
.mcp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mcp-form { display: flex; gap: 8px; margin-top: 12px; max-width: 460px; }
.mcp-form .input { flex: 1; }

/* ---- GPU */
.gnodes { display: grid; gap: 14px; }
.gnode { border: 1px solid var(--line-soft); border-left: 3px solid var(--line); border-radius: 4px; padding: 12px 14px; background: var(--bg-sunken); }
.gnode.sev-crit { border-left-color: var(--bad); }
.gnode.sev-warn { border-left-color: var(--warn); }
.gnode-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.gnode-cap { text-align: right; font-size: calc(13px * var(--fs, 1)); white-space: nowrap; }
.gcells { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.gcell { padding: 8px 10px; border: 1px solid var(--line-soft); border-left: 3px solid var(--ok); border-radius: 3px; background: var(--surface); font-size: calc(12px * var(--fs, 1)); display: grid; gap: 4px; min-width: 0; }
.gcell.sev-crit { border-left-color: var(--bad); background: color-mix(in oklch, var(--bad) 7%, var(--surface)); }
.gcell.sev-warn { border-left-color: var(--warn); }
.gcell.sev-info { border-left-color: var(--info); }
.gcell-head { display: flex; justify-content: space-between; gap: 6px; }
.gcell-head span { color: var(--text-3); }
.gbar { height: 5px; background: var(--surface-2); }
.gbar i { display: block; height: 100%; background: var(--accent); }
.gcell-meta { display: flex; justify-content: space-between; color: var(--text-2); }
.gcell-pod { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(11.5px * var(--fs, 1)); }
.gcell-idle { color: var(--warn); font-size: calc(11.5px * var(--fs, 1)); }

/* ---- 사용자 페이지: 내 앱 구조 (ArgoCD 느낌) */
.u-main { max-width: 1680px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.dot.big { width: 12px; height: 12px; vertical-align: middle; margin-left: 4px; }
.h-red { --h: var(--bad); } .h-orange { --h: oklch(0.74 0.16 50); } .h-yellow { --h: var(--warn); } .h-green { --h: var(--ok); } .h-gray { --h: var(--text-3); }
.dot.h-red, .dot.h-orange, .dot.h-yellow, .dot.h-green, .dot.h-gray { background: var(--h); }
.s-red { color: var(--bad); } .s-orange { color: oklch(0.74 0.16 50); } .s-yellow { color: var(--warn); } .s-green { color: var(--ok); } .s-gray { color: var(--text-3); }
.ua { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.ua-side { position: sticky; top: 70px; display: grid; gap: 8px; max-height: calc(100vh - 90px); overflow: auto; }
.ua-side-head { font-weight: 700; font-size: calc(13px * var(--fs, 1)); }
.ua-preview { font-size: calc(11.5px * var(--fs, 1)); color: var(--info); display: flex; gap: 6px; align-items: center; }
.ua-preview .icon { width: 13px; height: 13px; }
.ua-list { display: grid; gap: 2px; }
.ua-ns { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-left: 2px solid transparent; color: inherit; text-decoration: none; }
.ua-ns:hover { background: var(--surface-2); }
.ua-ns.on { border-left-color: var(--accent); background: var(--surface); }
.ua-ns-name { flex: 1; min-width: 0; display: grid; }
.ua-ns-name b { font-size: calc(13px * var(--fs, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-ns-name small { font-size: calc(11px * var(--fs, 1)); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ua-ns em { font-style: normal; font-size: calc(11px * var(--fs, 1)); font-weight: 700; padding: 0 6px; border-radius: 3px; color: var(--h); background: color-mix(in oklch, var(--h) 15%, transparent); }
.ua-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.ua-head h2 { font-size: calc(20px * var(--fs, 1)); display: flex; align-items: center; gap: 8px; }
.ua-health { font-size: calc(13px * var(--fs, 1)); font-weight: 600; }
.ua-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ua-legend { display: flex; gap: 12px; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.ua-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ua-sec { margin-bottom: 26px; }
.ua-sec h3 { font-size: calc(13px * var(--fs, 1)); margin-bottom: 10px; color: var(--text-2); }
.tree { display: grid; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.tn { display: flex; align-items: center; }
.tkids { display: flex; flex-direction: column; gap: 6px; margin-left: 26px; padding-left: 14px; border-left: 1px solid var(--line); position: relative; }
.tkids > .tn { position: relative; }
.tkids > .tn::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; border-top: 1px solid var(--line); }
.tn > .tc + .tkids::before { content: ""; position: absolute; left: -27px; top: 50%; width: 13px; border-top: 1px solid var(--line); }
.tc { width: 236px; flex: none; padding: 8px 10px; border: 1px solid var(--line-soft); border-left: 4px solid var(--h); border-radius: 4px; background: var(--surface); cursor: pointer; display: grid; gap: 3px; }
.tc:hover, .tc:focus-visible { border-color: var(--line); background: var(--surface-hover); outline: none; }
.tc.h-red { background: color-mix(in oklch, var(--bad) 7%, var(--surface)); }
.tc-top { display: flex; align-items: center; gap: 6px; }
.tc-kind { font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding: 0 5px; border: 1px solid var(--line-soft); border-radius: 3px; }
.tc-fold { margin-left: auto; border: 1px solid var(--line); background: var(--bg-sunken); color: var(--text-2); font: inherit; font-size: calc(11px * var(--fs, 1)); padding: 0 6px; border-radius: 3px; cursor: pointer; }
.tc-name { font-weight: 650; font-size: calc(12.5px * var(--fs, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-status { font-size: calc(11.5px * var(--fs, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-sum { font-size: calc(11px * var(--fs, 1)); color: var(--text-2); display: flex; gap: 4px; align-items: center; }
.tc-sum .dot { width: 7px; height: 7px; margin-left: 4px; }
.ua-drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(540px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; z-index: 30; overflow: auto; box-shadow: 0 18px 50px -12px oklch(0 0 0 / 0.55); }   /* 화면 끝에 붙지 않게 떠 있는 패널 */
.dr-head { display: flex; justify-content: space-between; gap: 10px; padding: 18px 18px 12px 24px; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.dr-head h3 { font-size: calc(16px * var(--fs, 1)); margin: 6px 0 4px; overflow-wrap: anywhere; }
.dr-hint { display: flex; gap: 10px; margin: 14px 24px 0; padding: 10px 12px; border-left: 3px solid var(--info); background: var(--info-soft); font-size: calc(13px * var(--fs, 1)); }
.dr-hint p { margin: 2px 0 0; }
.dr-body { padding: 14px 24px 30px; }
.dr-body h4 { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); margin: 18px 0 8px; }
.dr-msg { padding: 8px 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.dr-cont { padding: 8px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 3px; }
.dr-ev { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.dr-child { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: calc(12.5px * var(--fs, 1)); }
.man-list { display: grid; }
.man { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.man:hover { background: var(--surface-hover); }
.man-ext { width: 46px; text-align: center; font-size: calc(11px * var(--fs, 1)); font-weight: 700; padding: 6px 0; border: 1px solid var(--line); border-radius: 3px; color: var(--accent); }
.man-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.man-dl { display: flex; gap: 6px; align-items: center; color: var(--accent); font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; }

.grant-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; max-height: 320px; overflow: auto; padding: 8px; border: 1px solid var(--line-soft); border-radius: 3px; margin-top: 6px; }
.man-form { display: grid; grid-template-columns: 110px 1.2fr 1fr 1.4fr auto; gap: 10px; align-items: center; }

/* ---- 사용자 페이지 2 */
.star { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: calc(15px * var(--fs, 1)); line-height: 1; padding: 0 2px; }
.star.on { color: var(--warn); }
.star.big { font-size: calc(20px * var(--fs, 1)); margin-left: 4px; }
.tc .star { margin-left: auto; }
.ua-who { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.ua-who .icon { width: 13px; height: 13px; }
.ua-contact { color: var(--info); }
.ua-subs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; overflow-x: auto; }
.ua-subs button { border: 0; background: none; color: var(--text-3); font: inherit; font-size: calc(13px * var(--fs, 1)); font-weight: 600; padding: 9px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.ua-subs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.ua-subs button span { margin-left: 6px; font-size: calc(11px * var(--fs, 1)); color: var(--warn); }
.ua-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.u-notices { display: grid; gap: 6px; margin-bottom: 16px; }
.u-notice { display: flex; gap: 12px; align-items: baseline; padding: 9px 14px; border-left: 3px solid var(--info); background: var(--info-soft); color: inherit; text-decoration: none; font-size: calc(13px * var(--fs, 1)); }
.u-notice.lv-maint { border-left-color: var(--warn); background: var(--warn-soft); }
.u-notice.lv-warn { border-left-color: var(--bad); background: var(--bad-soft); }
.u-notice small { margin-left: auto; color: var(--text-2); white-space: nowrap; }
.u-list { display: grid; }
.u-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.u-row > .dot { margin-top: 5px; }
.u-when { font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12.5px * var(--fs, 1)); display: grid; }
.u-when small { color: var(--text-3); font-size: calc(11px * var(--fs, 1)); }
.u-table { overflow-x: auto; }
.u-table td, .u-table th { vertical-align: top; }
.u-bar { display: block; position: relative; height: 5px; width: 160px; background: var(--surface-2); margin-top: 4px; }
.u-bar i { display: block; height: 100%; background: var(--accent); }
.u-bar b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--text-2); }
.u-h4 { margin: 20px 0 8px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.u-quota { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.u-kpis { display: flex; gap: 0; border: 1px solid var(--line-soft); border-radius: 4px; }
.u-kpis > div { flex: 1; padding: 12px 16px; border-right: 1px solid var(--line-soft); display: grid; gap: 2px; }
.u-kpis > div:last-child { border-right: 0; }
.u-kpis span { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.u-kpis b { font-size: calc(20px * var(--fs, 1)); }
.u-report { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.u-notice-row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.u-notice-row.lv-maint .pill { color: var(--warn); }
.u-notice-row.lv-warn .pill { color: var(--bad); }
.u-notice-body { white-space: pre-wrap; margin: 6px 0; font-size: calc(13px * var(--fs, 1)); }
.tc-probe { font-size: calc(11px * var(--fs, 1)); color: var(--text-2); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tc-probe .dot { width: 7px; height: 7px; }
.vm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 8px; }
.vm-grid .tc { width: auto; }
.dr-acts { display: flex; gap: 8px; margin-bottom: 12px; }
.ai-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* 오른쪽 상세: 이름 칸 고정 + 값은 남은 너비를 다 쓴다 (전역 .kv 2열 규칙이 좁은 드로어에서 값을 세로로 길게 만들던 문제). 넓히면 2열 */
.ua-drawer { container-type: inline-size; max-width: 100vw; }
.ua-drawer .kv { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin-bottom: 8px; }
.ua-drawer .kv div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; }
.ua-drawer .kv dt { font-size: calc(12.5px * var(--fs, 1)); }
.ua-drawer .kv dd { font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; word-break: keep-all; }
.ua-drawer .kv dd small { display: block; font-weight: 400; margin-top: 1px; }
.ua-drawer .kv dd .mono { overflow-wrap: anywhere; word-break: break-all; }
@container (min-width: 720px) { .ua-drawer .kv { grid-template-columns: 1fr 1fr; } }
.dr-ips { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.dr-grip { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; width: 7px; cursor: col-resize; z-index: 3; }   /* 스크롤해도 왼쪽 끝에 남는다 */
.dr-grip::after { content: ""; position: absolute; top: 50%; left: 2px; width: 3px; height: 44px; margin-top: -22px; border-radius: 3px; background: var(--line); opacity: 0; transition: opacity .15s; }
.ua-drawer:hover .dr-grip::after, .ua-drawer.resizing .dr-grip::after { opacity: 1; }
.ua-drawer.resizing { user-select: none; }
.ua-drawer .log-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.ua-drawer .logview { max-height: 420px; }
.md p { margin: 4px 0; }
.md p.li { padding-left: 6px; }

.guide-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.guide-head b { flex: 1; }
.guide-head .btn .icon { transform: rotate(90deg); }
.guide-frame { width: 100%; height: calc(100vh - 150px); border: 1px solid var(--line-soft); border-radius: 4px; background: #0b0d12; }
.man-ext.page { color: var(--ok); }

/* 이미지 올리기 */
.img-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.img-grid > .panel { margin: 0; }
.img-grid { margin-bottom: 16px; }
.img-up { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.img-up .img-bar, .img-up .img-bar-txt, .img-up .form-error { grid-column: 1 / -1; }
.img-bar, .img-disk-bar { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.img-bar span, .img-disk-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.img-disk-bar { margin-bottom: 6px; }
.img-disk.bad .img-disk-bar span { background: var(--bad); }
.img-form { display: grid; grid-template-columns: 260px 1fr 220px; gap: 12px 14px; align-items: end; }
.img-form .img-preview, .img-form .form-error, .img-form > div:last-child { grid-column: 1 / -1; }
.img-preview { padding: 10px 12px; background: var(--bg-2, rgba(127,127,127,.06)); border: 1px solid var(--line-soft); border-radius: 4px; }
.img-preview #imgDests { margin-top: 4px; line-height: 1.7; }
.img-log { max-height: 420px; overflow: auto; margin-top: 10px; padding: 8px 10px; }

/* 네임스페이스 함께 담당 */
.own-o-list { display: grid; gap: 6px; margin-top: 12px; }
.own-o-row { display: grid; grid-template-columns: 1.3fr 110px 1fr 32px; gap: 6px; }
.owner small { color: var(--text-3); font-size: calc(11px * var(--fs, 1)); }
.ua-who > span { display: inline-flex; align-items: center; gap: 4px; }

.img-form { grid-template-columns: 280px 1fr 240px; align-items: start; }
.img-push .panel-head { flex-wrap: nowrap; }
.img-push .panel-head > div:first-child { flex: 1; min-width: 0; }

/* 링크 버튼 밑줄 없애기 */
a.btn, a.btn:hover, a.btn:visited { text-decoration: none; }

/* 사이드바 그룹 접기 */
button.nav-sep { width: calc(100% - 20px); border: 0; background: none; font-family: inherit; cursor: pointer; text-align: left; padding: 0; }
button.nav-sep:hover { color: var(--text-2); }
button.nav-sep .icon { order: 3; width: 12px; height: 12px; flex: none; transition: transform .15s; transform: rotate(0deg); }
button.nav-sep[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.nav-item.nav-folded:not([aria-current="page"]) { display: none !important; }

/* 이미지 파일 고르기 (끌어다 놓기) */
.img-up { grid-template-columns: 1fr auto; align-items: stretch; }
.drop, .img-drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line); background: var(--bg-sunken); cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.drop:hover, .drop.over, .img-drop:hover, .img-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file, .img-drop.has-file { border-style: solid; border-color: var(--accent); }
.drop input[type=file], .img-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-ic, .img-drop-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid var(--line-soft); color: var(--accent); }
.drop-txt, .img-drop-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.drop-txt b, .img-drop-txt b { font-size: calc(13px * var(--fs, 1)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-txt small, .img-drop-txt small { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.drop .btn, .img-drop .btn { pointer-events: none; }
.img-up .img-go { height: auto; min-height: 34px; padding: 0 18px; }

/* 사용자 페이지 공지 띠 */
.u-strip { position: sticky; top: 57px; z-index: 4; display: grid; }
.u-strip-row { display: flex; align-items: center; gap: 14px; padding: 8px 32px; font-size: calc(13px * var(--fs, 1)); background: var(--info-soft); border-bottom: 1px solid color-mix(in oklch, var(--info) 30%, transparent); }
.u-strip-row.lv-maint { background: var(--warn-soft); border-bottom-color: color-mix(in oklch, var(--warn) 30%, transparent); }
.u-strip-row.lv-warn, .u-strip-row.during { background: var(--bad-soft); border-bottom-color: color-mix(in oklch, var(--bad) 30%, transparent); }
.u-strip-tag { flex: none; font-size: calc(11.5px * var(--fs, 1)); font-weight: 700; padding: 1px 8px; border: 1px solid currentColor; color: var(--info); }
.lv-maint .u-strip-tag { color: var(--warn); }
.lv-warn .u-strip-tag, .during .u-strip-tag { color: var(--bad); }
.u-strip-title { color: var(--text); font-weight: 600; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-strip-title:hover { text-decoration: underline; }
.u-strip-when { color: var(--text-2); font-size: calc(12px * var(--fs, 1)); white-space: nowrap; }
.u-strip-x { margin-left: auto; border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; width: 24px; height: 24px; }
.u-strip-x:hover { color: var(--text); }
.u-strip-x .icon { width: 14px; height: 14px; }

/* 매뉴얼: 페이지 가이드 */
.man-ext.page { display: grid; place-items: center; color: var(--accent); border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.man-open { color: var(--accent); }
.mcp-guide-link { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.support-tabs { margin-bottom: 16px; }

.wiki-text { width: 100%; height: 52vh; margin-top: 10px; font-size: calc(12px * var(--fs, 1)); line-height: 1.55; white-space: pre; }
.man-open .icon { transform: rotate(-90deg); }

/* 표: 이름·상태·시간도 본문 글꼴(Pretendard)로 통일 — 코드 글꼴은 로그·명령에만 */
td .mono, td.mono, td code, td .kind, td .ev-action, .ev-when, .iss-id, .u-when, td time { font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif; font-size: calc(12.5px * var(--fs, 1)); letter-spacing: 0; }
td .mono, td.mono { color: var(--text-2); }

/* 내 앱 트리: 워크로드마다 구획(레인)으로 나누기. 펼친 워크로드는 한 줄 전체, 접힌 것은 옆으로 나란히 */
.tree.lanes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; overflow: visible; }
.lane { flex: none; padding: 10px; border: 1px solid var(--line-soft); border-radius: 4px; background: color-mix(in oklch, var(--surface) 55%, var(--bg)); overflow-x: auto; }
.lane.open { flex-basis: 100%; padding: 14px; background: var(--surface); }
.lane.open + .lane.open { margin-top: 4px; }
.lane:hover { border-color: var(--line); }
.lane .tc { background: var(--bg-sunken); }
.lane .tc.h-red { background: color-mix(in oklch, var(--bad) 8%, var(--bg-sunken)); }

/* AD 찾기 */
.ad-res { display: grid; margin-top: 12px; max-height: 46vh; overflow: auto; border-top: 1px solid var(--line-soft); }
.ad-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.ad-row .role { margin-left: 6px; }
.own-name { display: flex; align-items: center; gap: 4px; }
.own-o-row { grid-template-columns: 1.3fr 110px 1fr 32px 32px; }
.own-o-ad { grid-column: 1 / -1; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); display: flex; gap: 6px; align-items: center; margin-top: -2px; }

/* 매뉴얼 올리기: 파일 상자 + 입력 칸 */
.man-up { display: grid; gap: 12px; }
.man-up-fields { display: grid; grid-template-columns: auto 1fr 1.4fr auto; gap: 12px; align-items: end; }
.man-up-fields .field { margin: 0; }
.man-up .man-go { height: 36px; }
.seg.man-cat { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; height: 36px; }
.seg.man-cat label { display: flex; cursor: pointer; }
.seg.man-cat input { position: absolute; opacity: 0; pointer-events: none; }
.seg.man-cat span { display: grid; place-items: center; padding: 0 16px; font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text-3); }
.seg.man-cat input:checked + span { background: var(--accent-soft); color: var(--accent); }
.seg.man-cat input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 브라우저 기본 모양 다듬기: 파일 버튼·체크박스·날짜 */
input[type=file]::file-selector-button { margin-right: 10px; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--text); font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--surface-hover); }
input[type=checkbox]:not(.switch) { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-sunken); cursor: pointer; display: inline-grid; place-items: center; transition: background .12s, border-color .12s; }
input[type=checkbox]:not(.switch):hover { border-color: var(--accent); }
input[type=checkbox]:not(.switch):checked { background: var(--accent-strong); border-color: var(--accent-strong); }
input[type=checkbox]:not(.switch):checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg); }
input[type=checkbox]:not(.switch):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=date], input[type=datetime-local] { font-variant-numeric: tabular-nums; }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator:hover, input[type=datetime-local]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.mcp-err { margin-bottom: 12px; }

/* 포탈 매뉴얼 */
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 20px 20px; }
.pd-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line-soft); background: var(--bg-sunken); }
.pd-card:hover { border-color: var(--line); }
.pd-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid color-mix(in oklch, var(--accent) 45%, var(--line)); background: var(--accent-soft); color: var(--accent); }
.pd-body { display: grid; gap: 4px; align-content: start; }
.pd-body b { font-size: calc(15px * var(--fs, 1)); }
.pd-who { font-size: calc(12px * var(--fs, 1)); color: var(--accent); font-weight: 600; }
.pd-body p { margin: 4px 0 8px; font-size: calc(13px * var(--fs, 1)); line-height: 1.65; color: var(--text-2); }
.pd-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* 네임스페이스 담당자 · 프로젝트 */
.own-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.own-head .own-tabs { margin: 0; flex: 1; }
.own-tools { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 6px; }
.own-bulk { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--accent-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.own-bulk b { margin-right: 6px; color: var(--accent); }
.owners-table .own-ck { width: 34px; text-align: center; }
.own-proj-row td { background: color-mix(in oklch, var(--accent) 4%, transparent); }
.own-proj-owner { display: flex; align-items: center; gap: 6px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.own-proj-owner .icon { width: 14px; height: 14px; color: var(--accent); }
a.role.accent { cursor: pointer; display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
a.role.accent .icon { width: 11px; height: 11px; }
.own-ns-chips { margin-top: 8px; max-height: 92px; overflow: auto; }
.proj-ns-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; max-height: 300px; overflow: auto; padding: 8px; border: 1px solid var(--line-soft); background: var(--bg-sunken); }
.proj-ns { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; }
.proj-ns .select { width: 130px; flex: none; }
.proj-ns .check { min-width: 0; flex-wrap: wrap; row-gap: 2px; } .proj-ns .check .mono { white-space: nowrap; }
.proj-ns .role.own-was { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-list { display: grid; max-height: 280px; overflow: auto; border: 1px solid var(--line-soft); }
.rt-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.rt-row:hover { background: var(--surface-hover); }
.rt-row input { accent-color: var(--accent); }

/* 대시보드 클러스터 순서 */
.section-head { position: relative; }
.dash-order { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.cgrid.ordering .ord-card { cursor: grab; border-style: dashed; min-height: 80px; }
.cgrid.ordering .ord-card.dragging { opacity: .45; }
.ord-btns { display: flex; gap: 2px; margin-left: auto; }

/* 기본 admin 계정 카드 */
.admin-acct .panel-head { align-items: center; }
.admin-acct .panel-title .pill { margin-left: 8px; }
.admin-acct.off { border-color: color-mix(in oklch, var(--bad) 40%, var(--line)); }
.admin-acct code { font-size: calc(12px * var(--fs, 1)); }

/* 사용자 요청 */
.req-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: calc(13px * var(--fs, 1)); margin: 6px 0 12px; }
.req-body { white-space: pre-wrap; padding: 12px 14px; background: var(--bg-sunken); border: 1px solid var(--line-soft); font-size: calc(13.5px * var(--fs, 1)); line-height: 1.65; }
.req-notes { display: grid; gap: 8px; margin: 14px 0; max-height: 300px; overflow: auto; }
.req-note { padding: 8px 12px; border-left: 3px solid var(--line); background: var(--surface); font-size: calc(13px * var(--fs, 1)); white-space: pre-wrap; }
.req-note.admin { border-left-color: var(--accent); }
.req-note.user { border-left-color: var(--ok); }
.req-note.system { border-left-color: transparent; background: none; color: var(--text-3); font-size: calc(12px * var(--fs, 1)); padding: 2px 12px; }
.req-note-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.req-row { cursor: pointer; text-decoration: none; color: inherit; }
.req-row:hover { background: var(--surface-hover); }

/* ------------------------------------------------------------------ 사이트맵 */
:root { --d-common: var(--accent); --d-openstack: oklch(0.66 0.17 25); --d-k8s: oklch(0.66 0.15 255); --d-elastic: oklch(0.74 0.13 175); }
.sm-fab { position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); font-size: calc(24px * var(--fs, 1)); line-height: 1; cursor: pointer; box-shadow: 0 8px 24px -8px oklch(0 0 0 / .5); transition: transform .15s, border-color .15s; }
.sm-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
body:has(.sm-fab) .toasts { bottom: 86px; }
body.sm-open .sm-fab { display: none; }
.sm-overlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); }
.sm-overlay[hidden] { display: none; }
.sm-bar { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); background: var(--bg-sunken); }
.sm-bar > b { font-size: calc(15px * var(--fs, 1)); }
.sm-search { margin-left: auto; width: 240px; }
.sm-legend { display: flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.sm-legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.sm-legend i.d-common, .sm-admin-h.d-common::before { background: var(--d-common); }
.sm-legend i.d-openstack { background: var(--d-openstack); } .sm-legend i.d-k8s { background: var(--d-k8s); } .sm-legend i.d-elastic { background: var(--d-elastic); }
.sm-stage { position: relative; flex: 1; min-height: 0; }
#smSvg { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; background:
  radial-gradient(circle at 1px 1px, color-mix(in oklch, var(--text-3) 22%, transparent) 1px, transparent 0) 0 0 / 24px 24px; }
#smSvg.panning { cursor: grabbing; }
.sm-area rect { fill: color-mix(in oklch, var(--dc) 6%, transparent); stroke: color-mix(in oklch, var(--dc) 35%, transparent); stroke-dasharray: 6 6; }
.sm-area text { fill: var(--dc); font-size: calc(15px * var(--fs, 1)); font-weight: 700; } .sm-area text tspan { fill: var(--text-3); font-size: calc(12px * var(--fs, 1)); font-weight: 500; }
.d-common { --dc: var(--d-common); } .d-openstack { --dc: var(--d-openstack); } .d-k8s { --dc: var(--d-k8s); } .d-elastic { --dc: var(--d-elastic); }
.sm-edge { fill: none; stroke: color-mix(in oklch, var(--text-3) 60%, transparent); stroke-width: 1.5; transition: opacity .15s, stroke .15s; }
.sm-edge.extra { stroke-dasharray: 5 5; stroke: color-mix(in oklch, var(--accent) 55%, transparent); }
.sm-elabel { fill: var(--text-3); font-size: calc(11px * var(--fs, 1)); text-anchor: middle; }
.sm-node { cursor: pointer; transition: opacity .15s; }
.sm-node rect { fill: var(--surface); stroke: color-mix(in oklch, var(--dc) 45%, var(--line)); stroke-width: 1.2; }
.sm-node.k-hub rect { fill: color-mix(in oklch, var(--dc) 16%, var(--surface)); stroke: var(--dc); stroke-width: 2; }
.sm-node:hover rect, .sm-node.hl rect { stroke: var(--dc); stroke-width: 2; }
.sm-node.sel rect { stroke: var(--accent); stroke-width: 3; }
.sm-node.hit rect { stroke: var(--warn); stroke-width: 3; }
.sm-node.dim { opacity: .35; }
.sm-ic { font-size: calc(18px * var(--fs, 1)); }
.sm-lb { fill: var(--text); font-size: calc(13px * var(--fs, 1)); font-weight: 650; }
.sm-node.k-hub .sm-lb { font-size: calc(15px * var(--fs, 1)); }
.sm-mt { fill: var(--text-3); font-size: calc(11px * var(--fs, 1)); }
.sm-dot { fill: var(--line); } .sm-dot.on { fill: var(--ok); }
.sm-go { fill: var(--accent); font-size: calc(12px * var(--fs, 1)); }
#smSvg.hovering .sm-edge:not(.hl) { opacity: .15; }
#smSvg.hovering .sm-node:not(.hl):not(:hover) { opacity: .45; }
.sm-edge.hl { stroke: var(--accent); stroke-width: 2.5; opacity: 1; }
.sm-drawer { position: absolute; top: 14px; right: 14px; bottom: 14px; width: 340px; overflow: auto; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; box-shadow: -12px 0 30px -18px oklch(0 0 0 / .6); }
.sm-dh { display: flex; align-items: center; gap: 8px; } .sm-dh .btn { margin-left: auto; }
.sm-dh .role { color: var(--dc); border: 1px solid color-mix(in oklch, var(--dc) 45%, transparent); background: color-mix(in oklch, var(--dc) 10%, transparent); }
.sm-drawer h3 { font-size: calc(17px * var(--fs, 1)); margin: 12px 0 8px; }
.sm-drawer h4 { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); margin: 18px 0 8px; }
.sm-meta { margin: 0 0 10px; padding-left: 18px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); line-height: 1.7; }
.sm-note { font-size: calc(13px * var(--fs, 1)); padding: 8px 10px; background: var(--bg-sunken); border-left: 3px solid var(--info); }
.sm-links { display: grid; gap: 6px; }
.sm-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.sm-link .mono { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); }
.sm-link > span:last-child { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--accent); }
.sm-link:hover { border-color: var(--accent); } .sm-link.off { opacity: .75; }
.sm-edit { margin-top: 14px; } .sm-edit summary { cursor: pointer; font-size: calc(13px * var(--fs, 1)); color: var(--accent); display: flex; gap: 6px; align-items: center; }
.sm-edit .field { margin-top: 8px; }
.sm-rels { display: grid; gap: 4px; }
.sm-rel { text-align: left; border: 1px solid var(--line-soft); background: none; color: inherit; font: inherit; font-size: calc(13px * var(--fs, 1)); padding: 6px 10px; cursor: pointer; }
.sm-rel:hover { border-color: var(--accent); }
.sm-admin { padding: 18px 20px 20px; }
.sm-admin-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.sm-admin-head p { margin: 0; color: var(--text-2); font-size: calc(13px * var(--fs, 1)); line-height: 1.6; }
.sm-admin-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: calc(14px * var(--fs, 1)); }
.sm-admin-h[class*="d-"]::before { content: ""; width: 4px; height: 16px; background: var(--dc); }
.sm-admin-t td { vertical-align: top; }
.sm-slot { display: grid; grid-template-columns: 86px 1fr; gap: 8px; align-items: center; margin-bottom: 4px; font-size: calc(12px * var(--fs, 1)); color: var(--text-2); }
.sm-add { display: grid; grid-template-columns: 1.2fr 120px 1fr 150px 1.4fr auto; gap: 8px; }

.owners-table td.actions .btn.ghost { opacity: .65; }
.owners-table tbody tr:hover td.actions .btn.ghost { opacity: 1; }
.sm-link b { white-space: nowrap; } .sm-link.off { grid-template-columns: auto 1fr; } .sm-link.off .muted { text-align: right; }
.field > .search { flex: none; } .field > .btn { align-self: flex-start; }
.sm-admin-t { table-layout: fixed; width: 100%; } .sm-admin-t th:nth-child(1) { width: 26%; } .sm-admin-t th:nth-child(2) { width: 42%; } .sm-admin-t th:nth-child(3) { width: 22%; } .sm-admin-t th:nth-child(4) { width: 10%; }

/* AI 지식 */
.kn-cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; font-size: calc(11px * var(--fs, 1)); background: var(--surface-2); color: var(--text-2); }
.kn-cnt.on { background: var(--accent-soft); color: var(--accent); }
.kn-cycle { display: flex; gap: 6px; align-items: center; margin: -4px 0 14px; }
.kn-cycle .icon { width: 13px; height: 13px; flex: none; }
.kn-drafts { display: grid; gap: 14px; }
.kn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.kn-grid b { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.kn-grid p { margin: 4px 0 0; white-space: pre-wrap; font-size: calc(13px * var(--fs, 1)); line-height: 1.6; }
.kn-grid .chips { grid-column: 1 / -1; }
.kn-guide { padding: 12px 14px; margin: 10px 0 14px; border: 1px dashed color-mix(in oklch, var(--accent) 45%, var(--line)); background: var(--accent-soft); display: grid; gap: 8px; }
.kn-guide .btn { justify-self: start; }
.kn-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.kn-arch { margin-top: 12px; } .kn-arch summary { cursor: pointer; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.kn-arch-body { display: grid; gap: 8px; max-height: 260px; overflow: auto; margin-top: 8px; padding: 10px; background: var(--bg-sunken); font-size: calc(12.5px * var(--fs, 1)); white-space: pre-wrap; }
.chat-msg.ai .chat-bubble { background: color-mix(in oklch, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent); white-space: pre-wrap; }
.chat-msg.ai .chat-who { color: var(--accent); display: flex; gap: 4px; align-items: center; }
.chat-msg.ai .chat-who .icon { width: 13px; height: 13px; }
.chat-msg.ai .chat-bubble.md { white-space: normal; font-size: calc(13px * var(--fs, 1)); }
.chat-msg.ai .chat-bubble.md code { font-size: calc(12px * var(--fs, 1)); word-break: break-all; }

/* 글씨 크기 3단계 (작게 = 기본) */
:root { --fs: 1; }
html[data-fs="m"] { --fs: 1.1; }
html[data-fs="l"] { --fs: 1.2; }
.fs-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.fs-seg button { border: 0; background: none; color: var(--text-2); border-radius: 6px; padding: 3px 9px; cursor: pointer; font-family: inherit; line-height: 1.2; }
.fs-seg button[data-fs="s"] { font-size: 11px; } .fs-seg button[data-fs="m"] { font-size: 13px; } .fs-seg button[data-fs="l"] { font-size: 15px; }
.fs-seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fs-seg button:hover:not(.on) { background: var(--surface-hover); color: var(--text); }
.menu .fs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; font-size: calc(13px * var(--fs, 1)); color: var(--text); }
.menu .fs-row > span { display: flex; align-items: center; gap: 10px; }
.menu .fs-row .fs-seg button { width: auto; padding: 3px 9px; }

/* 넥서스 현황 (설정) */
.nx-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; background: var(--surface); display: grid; gap: 10px; }
.nx-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nx-card-act { display: flex; gap: 6px; flex: none; }
.nx-card-foot { display: flex; gap: 10px; align-items: center; }
.nx-admin-t td { vertical-align: middle; } .nx-admin-t input { min-width: 240px; }
.nx-ing summary { cursor: pointer; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.nx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nx-form-grid .span2 { grid-column: 1 / -1; } .nx-form-grid .check { margin-top: 16px; grid-column: 1 / -1; }
/* 넥서스 이미지 (사용자) */
.nx-search { padding: 16px 18px; margin-bottom: 14px; }
.nx-form-row { display: flex; gap: 12px; align-items: flex-end; }
.nx-form-row .field { min-width: 220px; } .nx-form-row .field.grow { flex: 1; }
.nx-sum { margin: 4px 2px 10px; }
.nx-img { margin-bottom: 14px; padding: 14px 18px; display: grid; gap: 10px; }
.nx-img-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.nx-name { font-size: calc(15px * var(--fs, 1)); font-weight: 700; }
.nx-addr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--bg-sunken); }
.nx-addr code { font-size: calc(12.5px * var(--fs, 1)); }
.nx-tags td { font-size: calc(12.5px * var(--fs, 1)); }
#clusterList .seg { flex-wrap: nowrap; } #clusterList .seg button { white-space: nowrap; }

/* AI 답 쓰는 중 */
.chat-msg.ai.typing .chat-bubble { color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .3; animation: typing-dot 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation: none; opacity: .7; } }

/* 화면 공간 (관제 · 업무 도구 · 관리) */
.space-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 4px 10px; }
.space-seg button { position: relative; height: 34px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); color: var(--text-2);
  font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; cursor: pointer; white-space: nowrap; padding: 0 4px; }
.space-seg button:hover { color: var(--text); border-color: var(--line); }
.space-seg button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in oklch, var(--accent) 45%, transparent); }
.space-count { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--bg-sunken); }
body:not([data-space="monitor"]) .platform-seg { display: none; }
body[data-space="monitor"] #nav [data-space="tools"], body[data-space="monitor"] #nav [data-space="admin"],
body[data-space="tools"] #nav [data-space="monitor"], body[data-space="tools"] #nav [data-space="admin"],
body[data-space="admin"] #nav [data-space="monitor"], body[data-space="admin"] #nav [data-space="tools"] { display: none !important; }
body:not([data-role="admin"]) [data-space-go="admin"] { display: none; }

/* 상황판 */
body.wall-mode .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
body.wall-mode .sidebar, body.wall-mode .topbar, body.wall-mode .sm-fab, body.wall-mode #smFab { display: none; }
body.wall-mode .content { max-width: none; padding: 20px 28px; }
.wall { display: grid; gap: 18px; min-height: calc(100vh - 40px); grid-template-rows: auto 1fr auto; }
.wall-head { display: flex; align-items: center; gap: 20px; }
.wall-brand { display: flex; align-items: center; gap: 12px; } .wall-brand svg { width: 36px; height: 36px; }
.wall-brand b { display: block; font-size: 18px; } .wall-brand small { color: var(--text-3); font-size: 12px; }
.wall-state { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; font-size: 18px; font-weight: 800; }
.wall-state .icon { width: 20px; height: 20px; }
.wall-state.ok { background: var(--ok-soft); color: var(--ok); } .wall-state.warn { background: var(--warn-soft); color: var(--warn); }
.wall-state.crit { background: var(--bad); color: #fff; animation: wall-pulse 2s ease-in-out infinite; }
@keyframes wall-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--bad) 30%, transparent); } }
.wall-clock { margin-left: auto; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.wall-act { display: flex; gap: 6px; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-content: start; }
.wall-tile { text-align: left; font: inherit; color: var(--text); cursor: pointer; display: grid; gap: 8px; align-content: start; min-height: 190px;
  padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--line); }
.wall-tile:hover { border-color: var(--accent); }
.wall-tile.lv-crit { border-left-color: var(--bad); background: color-mix(in oklch, var(--bad) 9%, var(--surface)); }
.wall-tile.lv-warn { border-left-color: var(--warn); } .wall-tile.lv-ok { border-left-color: var(--ok); } .wall-tile.lv-unknown { border-left-color: var(--text-3); }
.wt-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-weight: 650; }
.lv-crit .wt-tone { color: var(--bad); } .lv-warn .wt-tone { color: var(--warn); } .lv-ok .wt-tone { color: var(--ok); }
.wt-name { font-size: 20px; font-weight: 800; }
.wt-nums { display: flex; gap: 14px; align-items: baseline; color: var(--text-3); font-size: 13px; }
.wt-nums b { font-size: 26px; margin-right: 3px; font-variant-numeric: tabular-nums; }
.wt-nums .c b { color: var(--bad); } .wt-nums .w b { color: var(--warn); } .wt-nums .n { margin-left: auto; }
.lv-ok .wt-nums .c b, .lv-ok .wt-nums .w b { color: var(--text-3); }
.wt-err { color: var(--bad); font-size: 13px; display: flex; gap: 6px; align-items: center; } .wt-err .icon { width: 14px; height: 14px; flex: none; }
.wt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.wt-lines li { display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 4px; }
.wt-lines b { margin-left: 8px; } .wt-lines b.c { color: var(--bad); } .wt-lines b.w { color: var(--warn); }
.wt-at { font-size: 12px; color: var(--text-3); margin-top: auto; }
.wall-foot { display: flex; gap: 24px; color: var(--text-3); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .wall-state.crit { animation: none; } }

/* 사용자 페이지 메뉴: 내 서비스 · 도구 */
.u-nav { gap: 18px; align-items: stretch; }
.u-nav-group { display: flex; align-items: center; gap: 2px; padding: 0 0 0 10px; border-left: 1px solid var(--line-soft); }
.u-nav-group:first-child { border-left: 0; padding-left: 0; }
.u-nav-label { font-size: calc(11px * var(--fs, 1)); font-weight: 700; color: var(--text-3); letter-spacing: .02em; padding: 3px 7px; margin-right: 4px; border-radius: 6px; background: var(--surface-2); white-space: nowrap; }
.u-nav a { white-space: nowrap; }

/* 채팅: 작성 중 · AI 생각 중 · 단어 펼치기 · @ 부르기 */
.chat-typing { padding: 6px 16px 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.chat-typing .typing-dots i { background: var(--text-3); }
.chat-msg.ai.thinking .chat-bubble { color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.chat-bubble .tw { opacity: 0; transition: opacity .18s ease-out; }
.chat-bubble .tw.on { opacity: 1; }
.chat-bubble.revealing li::marker { color: transparent; }
.chat-form { position: relative; }
.chat-form .chat-ai-btn { align-self: flex-end; height: 34px; color: var(--accent); }
.chat-form .chat-ai-btn .icon { transform: none; }
.mention-pop { position: absolute; left: 14px; right: 14px; bottom: calc(100% - 6px); z-index: 20; display: grid; gap: 2px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2, 0 8px 24px rgb(0 0 0 / .35)); }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text);
  font: inherit; font-size: calc(13px * var(--fs, 1)); text-align: left; cursor: pointer; }
.mention-pop button .icon { transform: none; color: var(--accent); width: 15px; height: 15px; }
.mention-pop button span { color: var(--text-3); font-size: calc(12px * var(--fs, 1)); }
.mention-pop button[aria-selected="true"], .mention-pop button:hover { background: var(--accent-soft); }

/* API 명세 · 테스트 */
.apid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.apid-side { position: sticky; top: 76px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; }
.apid-side-head { padding: 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.apid-list { overflow: auto; padding: 4px 6px 10px; }
.apid-group { margin: 12px 8px 4px; font-size: calc(11.5px * var(--fs, 1)); font-weight: 700; color: var(--text-3); }
.apid-item { display: flex; gap: 8px; align-items: flex-start; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.apid-item:hover { background: var(--surface-hover); } .apid-item.on { background: var(--accent-soft); }
.apid-p { display: grid; min-width: 0; } .apid-p .mono { font-size: calc(12px * var(--fs, 1)); overflow-wrap: anywhere; }
.apid-p small { color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); }
.apid-m { flex: none; display: inline-block; min-width: 50px; text-align: center; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; font-family: var(--mono, monospace); }
.apid-m.lg { font-size: 13px; padding: 3px 10px; }
.m-GET { background: var(--ok-soft); color: var(--ok); } .m-POST { background: var(--accent-soft); color: var(--accent); }
.m-PUT { background: var(--warn-soft); color: var(--warn); } .m-DELETE { background: var(--bad-soft); color: var(--bad); }
.apid-op { display: grid; gap: 10px; } .apid-op h3 { margin: 4px 0 0; } .apid-op h4 { margin: 14px 0 2px; display: flex; gap: 6px; align-items: center; }
.apid-op-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .apid-op-head code { font-size: calc(15px * var(--fs, 1)); font-weight: 700; }
.apid-schema { width: 100%; } .apid-schema td, .apid-schema th { padding: 6px 10px; font-size: calc(12.5px * var(--fs, 1)); }
.apid-try { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg-sunken); }
.apid-try .apid-body, .apid-try-act { grid-column: 1 / -1; } .apid-try-act { display: flex; gap: 12px; align-items: center; }
.apid-try textarea { font-size: calc(12.5px * var(--fs, 1)); }
.apid-res { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.apid-res-head { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface-2); } .apid-res-head .btn { margin-left: auto; }
.apid-pre { margin: 0; max-height: 520px; overflow: auto; padding: 12px; font-size: calc(12px * var(--fs, 1)); white-space: pre-wrap; word-break: break-all; }
.apid-intro ul { margin: 4px 0 8px; padding-left: 20px; line-height: 1.8; } .apid-intro h4 { margin: 14px 0 4px; }

/* 사이트맵 사용자 공개 */
.sm-pub-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sm-pub-head > .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.sm-pub-head p { margin: 2px 0 0; } .sm-pub-head > div { flex: 1; }
.sm-admin-h .sm-pub-all { margin-left: auto; width: auto; font-weight: 500; }
.sm-admin-h { display: flex; align-items: center; gap: 8px; }
.sm-pub { min-width: 130px; }

/* 사용자 관리: 말로 관리 (AI) */
.own-ai { display: grid; gap: 10px; }
.own-ai h3 { display: flex; gap: 8px; align-items: center; margin: 0; }
.own-ai-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.own-ai-ex .chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
.own-ai-ex .chip:hover { color: var(--text); border-color: var(--accent); }
.own-ai-act { display: flex; gap: 12px; align-items: center; }
.own-ai-thinking { display: flex; gap: 8px; align-items: center; color: var(--text-2); padding: 10px 0; }
.own-ai-sum { margin: 4px 0; display: flex; gap: 6px; align-items: center; }
.own-ai-steps { margin: 4px 0; padding-left: 22px; display: grid; gap: 8px; }
.own-ai-steps small { display: block; color: var(--text-3); } .own-ai-steps .own-ai-warn { color: var(--warn); display: flex; gap: 4px; align-items: center; }
.own-ai-rej summary { cursor: pointer; color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); }
.sm-admin-t [data-note] { width: 150px; min-width: 0; } .sm-admin-t .sm-pub { min-width: 0; width: 132px; } .sm-admin-t td:nth-child(2) input { min-width: 0; }
.sm-admin-t .sm-slot input { width: 230px; min-width: 0; } .sm-admin-t td:first-child { min-width: 180px; }

/* 성능 보고서 */
.perf-form { display: grid; grid-template-columns: auto 200px 1fr; gap: 14px 18px; align-items: start; }
.perf-form .perf-wide { grid-column: 1 / -1; }
.perf-form .perf-go { grid-column: 1 / -1; }
.perf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: calc(12.5px * var(--fs, 1)); }
.perf-chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.perf-preview .panel-head { display: flex; justify-content: space-between; align-items: center; }
.perf-frame { display: block; width: 100%; height: 900px; border: 0; background: #f3f5f8; border-top: 1px solid var(--line-soft); }

/* 지식 종류 고르기 */
.kn-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.kn-kind { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.kn-kind .icon { width: 18px; height: 18px; color: var(--text-3); }
.kn-kind span { color: var(--text-3); font-size: calc(12px * var(--fs, 1)); }
.kn-kind.on { border-color: var(--accent); background: var(--accent-soft); } .kn-kind.on .icon { color: var(--accent); }
.kn-kind:hover:not(.on) { border-color: var(--text-3); }

/* 사용자 페이지: 왼쪽 메뉴 (관리자 화면과 같은 모양) */
.u-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--bg-sunken) 236px, var(--line-soft) 236px, var(--line-soft) 237px, var(--bg) 237px); }
.u-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; }
.u-side .brand { margin-bottom: 14px; }
.u-side .u-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.u-side .u-nav .nav-sep { display: block; margin: 14px 10px 4px; cursor: default; }
.u-side .u-nav .nav-sep:first-child { margin-top: 0; }
.u-side .u-nav a.nav-item { text-decoration: none; border-bottom: 0; padding: 9px 10px; white-space: nowrap; }
.u-side .u-me { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.u-me-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: none; }
.u-me .u-name { display: grid; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-me .u-name .role { justify-self: start; margin-top: 2px; }
.u-me-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.u-me .u-admin { justify-content: center; }
.u-body { min-width: 0; }
.u-body .u-strip { top: 0; }
.u-body .u-strip-row { padding-left: 32px; }

/* 플랫폼 고르기 (점검·성능 보고서 공용) */
.plat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 650; cursor: pointer; transition: border-color .15s, background .15s; }
.plat-opt .icon { width: 16px; height: 16px; }
.plat-opt .plat-check { position: absolute; right: 9px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; }
.plat-opt .plat-check .icon { width: 11px; height: 11px; opacity: 0; }
.plat-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.plat-opt.on .plat-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.plat-opt.on .plat-check .icon { opacity: 1; }
.plat-opt:hover:not(.on) { border-color: var(--text-3); }
/* 성능 보고서: 클러스터·네임스페이스 고르기 */
.perf-form { grid-template-columns: auto 200px 1fr; }
.perf-chip { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; }
.perf-chip small { color: var(--text-3); margin-left: 2px; }
.perf-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
#perfK8s { display: grid; gap: 14px; }
.perf-ns-groups { display: grid; gap: 10px; }
/* 성능 보고서: 여러 개 고르기 (고른 것만 칩 · 고르기는 팝오버) */
.perf-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ms-field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-sunken); }
.ms-field .ms-open { flex: none; }
.ms-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; }
.ms-chip button { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.ms-chip button:hover { background: color-mix(in oklch, var(--accent) 22%, transparent); }
.ms-chip .icon { width: 11px; height: 11px; }
.ms-empty { color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); padding: 0 4px; }
.ms-clear { margin-left: auto; border: 0; background: none; color: var(--text-3); font: inherit; font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
.ms-clear:hover { color: var(--bad); }
.ms-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: min(460px, 92vw); display: flex; flex-direction: column; max-height: 420px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 16px 40px -12px oklch(0 0 0 / 0.5); }
.ms-pop-h { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.ms-pop-h .search { flex: 1; }
.ms-list { overflow-y: auto; padding: 6px; }
.ms-group { position: sticky; top: -6px; padding: 6px 8px 4px; background: var(--surface); color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); font-weight: 700; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: calc(13px * var(--fs, 1)); }
.ms-opt:hover { background: var(--surface-hover); }
.ms-opt small { margin-left: auto; }
.ms-more { padding: 8px; text-align: center; }
.ms-pop-f { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-top: 1px solid var(--line-soft); }
.perf-ns { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-sunken); padding: 10px 12px; display: grid; gap: 8px; }
.perf-ns-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.perf-ns-head .search { margin-left: auto; width: 180px; }
.perf-ns-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow: auto; }
.ns-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-family: var(--mono, monospace); cursor: pointer; }
.ns-chip .icon { width: 12px; height: 12px; }
.ns-chip.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink, #fff); }
.ns-chip:hover:not(.on) { border-color: var(--text-3); color: var(--text); }
.perf-go { display: flex; gap: 12px; align-items: center; }

.apid-export { display: flex; align-items: center; gap: 6px; } .apid-export > span { margin-right: auto; }

/* CVE 점검 */
.cve-form { display: grid; gap: 12px; }
.cve-inv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.cve-inv .icon { width: 16px; height: 16px; color: var(--accent); }
.cve-act { display: flex; gap: 16px; align-items: center; }
.cve-busy { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.cve-res .panel-head { display: flex; justify-content: space-between; align-items: center; }
.cve-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.cve-tile { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; cursor: pointer; }
.cve-tile b { font-size: 22px; color: var(--text); } .cve-tile.bad b { color: var(--bad); } .cve-tile.warn b { color: var(--warn); } .cve-tile.ok b { color: var(--ok); }
.cve-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.cve-item { border: 1px solid var(--line-soft); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 8px; background: var(--surface); }
.cve-item.v-affected { border-left-color: var(--bad); } .cve-item.v-check { border-left-color: var(--warn); } .cve-item.v-safe { border-left-color: var(--ok); }
.cve-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cve-head .pill { margin-left: auto; }
.cve-title { color: var(--text-2); min-width: 0; }
.cve-tbl td { vertical-align: top; }

/* 이슈 보드: 끌어 놓기 */
.kc.kc-drag { cursor: grab; }
.kc.kc-drag:active { cursor: grabbing; }
.kc.kc-dragging { opacity: .45; outline: 1px dashed var(--accent); }
.kanban.kb-dragging .kb-col { transition: background .12s, box-shadow .12s; }
.kanban.kb-dragging .kb-col:not(.kb-can) { opacity: .55; }
.kanban.kb-dragging .kb-col.kb-can { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 45%, transparent); }
.kanban.kb-dragging .kb-col.kb-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.iss-dnd-hint { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.iss-dnd-hint .icon { width: 14px; height: 14px; }
.kb-close-opts { display: grid; gap: 8px; margin: 12px 0 4px; }
.kb-close-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.kb-close-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kb-close-opt span { display: grid; gap: 2px; } .kb-close-opt small { color: var(--text-3); }

/* 이슈 보드: 칸을 화면 아래까지 늘려 빈 곳 어디에 놓아도 옮겨지게 */
.kanban { align-items: stretch; }
.kb-col { display: flex; flex-direction: column; min-height: calc(100vh - 190px); }
.kb-col .kb-list { flex: 1; align-content: start; max-height: none; min-height: 120px; }
.kanban.kb-dragging .kb-col.kb-can .kb-empty, .kanban.kb-dragging .kb-col.kb-over .kb-empty { visibility: hidden; }

/* 채팅 입력: 버튼 높이 맞춤 · 입력칸 자동 늘림 */
.chat-form { align-items: flex-end; gap: 8px; padding: 12px 14px 6px; }
.chat-form .textarea { min-height: 42px; max-height: 50vh; padding: 10px 12px; line-height: 1.5; overflow-y: hidden; resize: none; }
.chat-form .chat-ai-btn, .chat-form .chat-send { height: 42px; min-height: 42px; flex: none; align-self: flex-end; border-radius: 10px; }
.chat-form .chat-ai-btn { padding: 0 12px; gap: 5px; }
.chat-form .chat-send { width: 42px; padding: 0; justify-content: center; }
.chat-form .textarea { border-radius: 10px; }
.chat-help { padding: 0 14px 10px; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }

/* 사이트맵 버튼 안내 (브라우저 기본 말풍선 대신) */
.sm-fab-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: flex; align-items: center; gap: 10px; }
.sm-fab-wrap[hidden] { display: none; }
.sm-fab-wrap .sm-fab { position: static; }
.sm-fab-tip { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; border-radius: 12px; pointer-events: none;
  background: color-mix(in oklch, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: 0 10px 28px -12px oklch(0 0 0 / .55);
  backdrop-filter: blur(10px) saturate(1.3); opacity: 0; transform: translateX(6px); transition: opacity .16s ease-out, transform .16s ease-out; }
.sm-fab-tip-text { display: grid; gap: 1px; white-space: nowrap; }
.sm-fab-tip b { font-size: calc(13px * var(--fs, 1)); }
.sm-fab-tip small { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }
.sm-fab-tip kbd { font: 600 11px/1 var(--mono, monospace); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text-2); background: var(--bg-sunken); }
.sm-fab-wrap:has(.sm-fab:hover) .sm-fab-tip, .sm-fab-wrap:has(.sm-fab:focus-visible) .sm-fab-tip { opacity: 1; transform: none; transition-delay: .12s; }
body.sm-open .sm-fab-wrap, body.wall-mode .sm-fab-wrap { display: none; }
@media (prefers-reduced-motion: reduce) { .sm-fab-tip { transition: none; transform: none; } }

/* 오른쪽 위 도구 버튼 (상황판 · 사이트맵) */
.tb-tools { display: flex; gap: 8px; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line-soft); }
.tb-tool { position: relative; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid transparent; color: var(--text);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(140deg, color-mix(in oklch, var(--accent) 70%, transparent), var(--line) 45%, color-mix(in oklch, var(--accent) 35%, transparent)) border-box;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .06), 0 4px 14px -8px oklch(0 0 0 / .6);
  transition: transform .15s ease-out, box-shadow .15s ease-out; }
.tb-tool::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%); opacity: .55; transition: opacity .15s; }
.tb-tool:hover, .tb-tool:focus-visible { transform: translateY(-1px); outline: none;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / .08), 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent), 0 8px 22px -8px color-mix(in oklch, var(--accent) 70%, transparent); }
.tb-tool:hover::after, .tb-tool:focus-visible::after { opacity: 1; }
.tb-emoji { font-size: 18px; line-height: 1; position: relative; z-index: 1; filter: saturate(1.1); }
.tb-tip { position: absolute; top: calc(100% + 10px); right: -2px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 13px;
  border-radius: 12px; border: 1px solid var(--line); white-space: nowrap; text-align: left; pointer-events: none;
  background: color-mix(in oklch, var(--surface) 94%, transparent); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 12px 30px -12px oklch(0 0 0 / .6); opacity: 0; transform: translateY(-4px); transition: opacity .15s ease-out, transform .15s ease-out; }
.tb-tip::before { content: ""; position: absolute; top: -5px; right: 15px; width: 9px; height: 9px; transform: rotate(45deg);
  background: inherit; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.tb-tip > span { display: grid; gap: 1px; }
.tb-tip b { font-size: calc(13px * var(--fs, 1)); font-weight: 700; }
.tb-tip small { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); font-weight: 500; }
.tb-tip kbd { font: 600 11px/1 var(--mono, monospace); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text-2); background: var(--bg-sunken); }
.tb-tool:hover .tb-tip, .tb-tool:focus-visible .tb-tip { opacity: 1; transform: none; transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .tb-tool, .tb-tip { transition: none; } }

/* AI Agent '구름이' */
.gr-ava { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 1;
  background: color-mix(in oklch, var(--accent) 22%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent); }
.chat-form .chat-ai-btn { gap: 6px; }
.mention-pop .gr-ava { margin-right: 2px; }

/* 정책 · 연동 설정: 설정 홈 (묶음별 카드) */
.st-home { display: grid; gap: 22px; }
.st-group h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: calc(13px * var(--fs, 1)); color: var(--text-3); font-weight: 700; letter-spacing: .02em; }
.st-group h4 .icon { width: 15px; height: 15px; }
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-card { position: relative; display: grid; gap: 8px; align-content: start; min-height: 128px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .15s, transform .15s, box-shadow .15s; }
.st-card:hover { border-color: color-mix(in oklch, var(--accent) 60%, var(--line)); transform: translateY(-1px); box-shadow: 0 10px 26px -16px color-mix(in oklch, var(--accent) 60%, transparent); }
.st-card b { display: flex; align-items: center; gap: 9px; font-size: calc(14.5px * var(--fs, 1)); }
.st-card b .icon { width: 18px; height: 18px; color: var(--accent); }
.st-card b .tab-dot { margin-left: auto; }
.st-card p { margin: 0; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.55; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-state { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.st-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.st-state.on { color: var(--ok); } .st-state.on i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ok) 20%, transparent); }
.st-crumb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.st-crumb .btn .icon { transform: rotate(180deg); }
.st-crumb-path { display: inline-flex; gap: 7px; align-items: center; font-size: calc(14px * var(--fs, 1)); }
.st-sibs { display: inline-flex; gap: 4px; margin-left: auto; padding: 3px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.st-sibs a { padding: 5px 11px; border-radius: 7px; color: var(--text-3); text-decoration: none; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; }
.st-sibs a:hover { color: var(--text); } .st-sibs a.on { background: var(--accent-soft); color: var(--accent); }
.st-crumb .btn .icon { transform: rotate(90deg); }

/* 업무 도구 → 앤서블 */
.ans-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.ans-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-soft); }
.ans-chip .icon { width: 14px; height: 14px; }
.ans-chip.ok .icon { color: var(--ok); } .ans-chip.warn { color: var(--warn); border-color: color-mix(in oklch, var(--warn) 35%, var(--line-soft)); }
.ans-chip.bad { color: var(--bad); background: var(--bad-soft); } .ans-chip.info { color: var(--info); background: var(--info-soft); }
.ans-form { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 12px 14px; align-items: end; }
.ans-form .ans-extra { grid-column: span 1; }
.ans-form .ans-btns { justify-content: flex-end; }
.ans-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ans-pf { overflow: hidden; }
.ans-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ans-tile { display: grid; gap: 3px; padding: 14px 16px; border-radius: 12px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.ans-tile span { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); font-weight: 600; }
.ans-tile b { font-size: calc(22px * var(--fs, 1)); font-weight: 750; letter-spacing: -.01em; }
.ans-tile small { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.ans-tile.bad { background: var(--bad-soft); border-color: color-mix(in oklch, var(--bad) 30%, transparent); } .ans-tile.bad b { color: var(--bad); }
.ans-tile.warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 30%, transparent); } .ans-tile.warn b { color: var(--warn); }
.ans-tile.ok b { color: var(--ok); }
.ans-checks { display: grid; gap: 6px; margin: 14px 0 0; }
.ans-check { display: grid; grid-template-columns: 18px 90px 1fr; gap: 8px; align-items: start; font-size: calc(13px * var(--fs, 1)); }
.ans-check .icon { width: 16px; height: 16px; margin-top: 2px; } .ans-check.ok .icon { color: var(--ok); } .ans-check.bad .icon { color: var(--bad); }
.ans-check span { white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
.ans-warn { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: calc(13px * var(--fs, 1)); }
.ans-warn div { display: flex; gap: 8px; align-items: flex-start; } .ans-warn .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; } .ans-warn span { color: var(--text); }
.ans-gr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed color-mix(in oklch, var(--accent) 40%, var(--line)); background: color-mix(in oklch, var(--accent) 5%, var(--surface)); }
.ans-gr.done { display: block; border-style: solid; }
.ans-gr-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ans-gr .ai-text h3 { font-size: calc(13.5px * var(--fs, 1)); margin: 10px 0 4px; }
.ans-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 18px; }
.ans-h { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 700; }
.ans-h .icon { width: 15px; height: 15px; color: var(--accent); }
.ans-wrap { white-space: normal; word-break: break-all; }
.ans-scroll { max-height: 360px; overflow: auto; }
.ans-tasks { margin-top: 14px; } .ans-tasks summary { cursor: pointer; display: flex; gap: 7px; align-items: center; font-weight: 600; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.ans-tasks summary .icon { width: 15px; height: 15px; }
.ans-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line-soft); background: var(--bg-sunken); }
.ans-go .seg button small { font-weight: 500; color: var(--text-3); margin-left: 4px; }
.ans-go .seg button[data-ans-mode="real"][aria-pressed="true"] { color: var(--bad); background: var(--bad-soft); }
.ans-go #ansRun { margin-left: auto; }
.ans-confirm { display: inline-flex; align-items: center; gap: 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--bad); }
.ans-confirm .icon { width: 15px; height: 15px; } .ans-confirm .input { width: 220px; }
.ans-log { margin: 0; max-height: 520px; overflow: auto; padding: 14px 16px; border-radius: 10px; background: oklch(0.2 0.02 260); color: oklch(0.88 0.01 260);
  font: calc(12.5px * var(--fs, 1))/1.55 "JetBrains Mono", Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.ans-log.sm { max-height: 260px; }
.ans-log .lg-h { color: oklch(0.82 0.1 250); font-weight: 700; } .ans-log .lg-ok { color: oklch(0.8 0.14 150); } .ans-log .lg-warn { color: oklch(0.83 0.14 80); }
.ans-log .lg-bad { color: oklch(0.72 0.17 25); } .ans-log .lg-dim { color: oklch(0.62 0.02 260); }
.ans-log-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ans-log-head b { display: inline-flex; gap: 7px; align-items: center; font-size: calc(13.5px * var(--fs, 1)); } .ans-log-head .icon { width: 15px; height: 15px; color: var(--accent); }
.ans-head-act { display: flex; gap: 8px; align-items: center; }
.ans-recap { border-bottom: 1px solid var(--line-soft); }
.ans-num-bad { color: var(--bad); font-weight: 700; } .ans-num-warn { color: var(--warn); font-weight: 700; }
.ans-coll { border-top: 1px solid var(--line-soft); }
.ans-proj { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.ans-pitems { display: grid; gap: 4px; padding: 10px; }
.ans-pitem { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; cursor: pointer; }
.ans-pitem:hover { background: var(--surface-hover); } .ans-pitem.on { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 30%, transparent); }
.ans-pitem b { font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(13px * var(--fs, 1)); }
.ans-pitem span, .ans-pitem small { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.ans-up { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line-soft); } .ans-up p { margin: 0; }
.ans-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 480px; border-bottom: 1px solid var(--line-soft); }
.ans-tree { display: grid; align-content: start; gap: 1px; padding: 8px; border-right: 1px solid var(--line-soft); max-height: 640px; overflow: auto; }
.ans-file { text-align: left; padding: 6px 9px; border-radius: 7px; border: 0; background: none; color: var(--text-2); cursor: pointer;
  font: calc(12.5px * var(--fs, 1))/1.4 "JetBrains Mono", Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans-file:hover { background: var(--surface-hover); color: var(--text); } .ans-file.on { background: var(--accent-soft); color: var(--accent); }
.ans-file.pb { color: var(--text); font-weight: 600; } .ans-file .role { font-family: Pretendard, sans-serif; font-size: 10.5px; }
.ans-editor { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.ans-ed-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.ans-ed-act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ans-code { border: 0; border-radius: 0; min-height: 440px; resize: vertical; tab-size: 2; white-space: pre; }
.ans-code:focus { box-shadow: inset 0 0 0 2px var(--accent-soft); }
#ansExplainOut .ans-gr { margin: 12px 14px; }
.ans-write-row { display: flex; gap: 8px; margin-top: 8px; } .ans-write-row .input { flex: 1; }
.ans-howto ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.ans-howto { margin-top: 18px; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--surface-hover); }
.ans-mon { display: grid; gap: 6px; max-height: 640px; overflow: auto; }
.ans-mon-item { border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); }
.ans-mon-item summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: calc(13px * var(--fs, 1)); }
.ans-mon-item summary b { font-weight: 600; } .ans-mon-item summary .muted { margin-left: auto; }
.ans-mon-item[open] summary { border-bottom: 1px solid var(--line-soft); }
.ans-mon-item .ans-mon-cmd { padding: 8px 12px 0; color: var(--text-3); word-break: break-all; }
.ans-mon-item .ans-log { margin: 8px 12px 12px; }
.ans-proj > .panel { margin: 0; }
.ans-log, .ans-code, .ans-mon-cmd { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.ans-file { display: flex; align-items: center; gap: 6px; } .ans-file .role { flex: none; margin-left: auto; }
.ans-fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 앤서블: 솔루션 묶음 · 결재 */
.tab .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px;
  font-size: 11px; font-weight: 700; background: var(--bad); color: #fff; }
a.ans-chip { text-decoration: none; } a.ans-chip:hover { border-color: var(--accent); }
.ans-sol { display: grid; gap: 2px; padding: 6px 0 8px; border-bottom: 1px dashed var(--line-soft); }
.ans-sol:last-child { border-bottom: 0; }
.ans-sol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; }
.ans-sol-head b { font-size: calc(13px * var(--fs, 1)); }
.ans-sol-head .mono { font-size: 11px; color: var(--text-3); }
.ans-sol-head .btn { margin-left: auto; width: 26px; height: 26px; }
.ans-sol-desc { padding: 0 6px 4px; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }
.ans-sol-empty { padding: 4px 12px; font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.ans-reason { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; flex-basis: 100%; }
.ans-reason .textarea { grid-column: 1 / -1; font-family: inherit; }
.ans-reason .pill .icon { width: 13px; height: 13px; }
.ans-appr-body { display: grid; gap: 10px; padding: 18px 20px; }
.ans-appr-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: calc(13.5px * var(--fs, 1)); }
.ans-appr-row > span { color: var(--text-3); font-weight: 600; }
.ans-appr-row p { margin: 0; white-space: pre-wrap; }
.ans-appr-row > div { display: grid; gap: 4px; }
.ans-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 18px 20px 6px; }
.ans-step { position: relative; display: grid; gap: 3px; padding-top: 18px; }
.ans-step::before { content: ""; position: absolute; top: 6px; left: 12px; right: 0; height: 2px; background: var(--line); }
.ans-step:last-child::before { display: none; }
.ans-step i { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.ans-step.done i { background: var(--ok); border-color: var(--ok); } .ans-step.done::before { background: var(--ok); }
.ans-step.on i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ans-step b { font-size: calc(13.5px * var(--fs, 1)); } .ans-step span { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.ans-appr-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: calc(13px * var(--fs, 1)); border-bottom: 1px solid var(--line-soft); background: var(--ok-soft); }
.ans-appr-mini .icon { width: 15px; height: 15px; color: var(--ok); }

/* 앤서블 편집기: 폴더 묶음 · 이어진 파일 · 구름이 도우미 · 나란히 비교 */
.ans-dir { margin: 2px 0; }
.ans-dir summary { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; cursor: pointer; list-style: none;
  font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; color: var(--text-2); }
.ans-dir summary::-webkit-details-marker { display: none; }
.ans-dir summary:hover { background: var(--surface-hover); }
.ans-dir summary .icon { width: 14px; height: 14px; color: var(--accent); }
.ans-dir summary small { margin-left: auto; color: var(--text-3); font-weight: 500; }
.ans-dir .ans-file { padding-left: 26px; }
.ans-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); background: var(--bg-sunken);
  font-size: calc(12.5px * var(--fs, 1)); }
.ans-links > .icon { width: 14px; height: 14px; color: var(--accent); } .ans-links > b { margin-right: 4px; }
.ans-link-g { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; } .ans-link-g i { font-style: normal; font-weight: 700; color: var(--text-2); margin-right: 2px; }
.ans-link { border: 1px solid var(--line-soft); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 2px 9px; cursor: pointer;
  font: calc(11.5px * var(--fs, 1)) "JetBrains Mono", Consolas, monospace; }
.ans-link:hover { border-color: var(--accent); color: var(--accent); }
.ans-link-sep { margin-left: 8px; color: var(--text-3); }
.ans-dirty { font-size: 11.5px; font-weight: 700; color: var(--warn); }
.ans-ed-wrap { display: flex; min-height: 440px; min-width: 0; }
.ans-ed-wrap .ans-code { flex: 1; min-width: 0; }
.ans-assist { width: 360px; flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-left: 1px solid var(--line-soft); background: var(--bg-sunken); }
.ans-assist[hidden] { display: none; }
.ans-assist-head { display: flex; align-items: center; gap: 8px; } .ans-assist-head .btn { margin-left: auto; }
.ans-assist p { margin: 0; }
.ans-assist-log { flex: 1; min-height: 120px; max-height: 420px; overflow: auto; display: grid; align-content: start; gap: 8px; }
.ans-msg { padding: 8px 11px; border-radius: 10px; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.55; }
.ans-msg.me { justify-self: end; max-width: 85%; background: var(--accent-soft); color: var(--text); }
.ans-msg.ai { background: var(--surface); border: 1px solid var(--line-soft); }
.ans-msg .md pre { font-size: 11.5px; }
.ans-msg-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ans-assist-quick { display: flex; flex-wrap: wrap; gap: 5px; }
.ans-q { border: 1px dashed var(--line); background: none; color: var(--text-3); border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 11.5px; cursor: pointer; }
.ans-q:hover { color: var(--accent); border-color: var(--accent); }
.ans-assist-in { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; } .ans-assist-in .textarea { font-family: inherit; }
.ans-noai { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.ans-saved { display: flex; align-items: center; gap: 10px; margin: 10px 14px; padding: 9px 12px; border-radius: 10px; background: var(--ok-soft); font-size: calc(13px * var(--fs, 1)); }
.ans-saved > .icon { width: 15px; height: 15px; color: var(--ok); } .ans-saved .btn { margin-left: auto; }
dialog.modal.ans-diff-dlg { width: min(1320px, 96vw); max-width: none; }
.ans-diff-m { display: grid; gap: 10px; text-align: left; }
.ans-diff-top { display: flex; align-items: center; gap: 12px; } .ans-diff-top h3 { margin: 0; display: flex; gap: 8px; align-items: center; }
.ans-diff-top .check { margin-left: auto; }
.ans-diff-note { border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line)); border-radius: 10px; padding: 8px 12px; background: color-mix(in oklch, var(--accent) 5%, var(--surface)); }
.ans-diff-note summary { cursor: pointer; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.ans-diff-note .md { max-height: 180px; overflow: auto; margin-top: 6px; }
.ans-diff-tabs { display: flex; gap: 4px; } .ans-diff-tabs button { border: 1px solid var(--line-soft); background: var(--surface); color: var(--text-3); border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ans-diff-tabs button.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.ans-diff-wrap { max-height: 56vh; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.ans-diff { width: 100%; border-collapse: collapse; table-layout: fixed; font: calc(12px * var(--fs, 1))/1.5 "JetBrains Mono", Consolas, monospace; font-variant-ligatures: none; }
.ans-diff th { position: sticky; top: 0; z-index: 1; background: var(--surface-2, var(--surface)); padding: 6px 10px; text-align: left; font-family: Pretendard, sans-serif; border-bottom: 1px solid var(--line-soft); }
.ans-diff td { padding: 0 8px; vertical-align: top; white-space: pre-wrap; word-break: break-all; border: 0; }
.ans-diff td.ln { width: 44px; text-align: right; color: var(--text-3); user-select: none; background: var(--bg-sunken); }
.ans-diff td.tx { width: calc(50% - 44px); }
.ans-diff td.del { background: color-mix(in oklch, var(--bad) 16%, transparent); }
.ans-diff td.add { background: color-mix(in oklch, var(--ok) 16%, transparent); }
.ans-diff td.gap { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line-soft) 5px 6px); }
.ans-diff tr td:nth-child(3) { border-left: 1px solid var(--line-soft); }
#ansDiffEdit { min-height: 56vh; border-radius: 10px; }

/* 앤서블 파일 트리 (폴더 계층) */
.ans-tree { gap: 0; }
.ans-tree-tools { display: flex; gap: 4px; padding: 0 0 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.ans-tree-tools .btn { height: 24px; font-size: 11.5px; padding: 0 8px; }
.ans-dir summary { padding-left: calc(6px + var(--d, 0) * 14px); font-weight: 600; font-family: "JetBrains Mono", Consolas, monospace; font-size: calc(12.5px * var(--fs, 1)); }
.ans-dir summary .role, .ans-file .role { font-family: Pretendard, sans-serif; font-size: 10.5px; }
.ans-caret { width: 0; height: 0; border-left: 5px solid var(--text-3); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; flex: none; }
.ans-dir[open] > summary .ans-caret { transform: rotate(90deg); }
.ans-dir summary .icon { width: 14px; height: 14px; }
.ans-tree .ans-file, .ans-dir .ans-file { padding-left: calc(25px + var(--d, 0) * 14px); }
.ans-file .icon { width: 13px; height: 13px; flex: none; color: var(--text-3); }
.ans-file.pb .icon { color: var(--accent); }
.ans-dir .ans-dir { position: relative; }
.ans-dir summary, .ans-diff-note summary, .ans-tasks summary { margin: 0; }
.ans-dir { margin: 0; }
.ans-split { grid-template-columns: 250px minmax(0, 1fr); }
.ans-assist { min-width: 0; width: 380px; }
.ans-assist-log > * { min-width: 0; }
.ans-msg { overflow-wrap: anywhere; min-width: 0; }
.ans-msg pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.ans-diff-wrap { max-height: 44vh; }
.ans-diff-note .md { max-height: 130px; }
.ans-diff-dlg .modal-body { max-height: calc(100vh - 150px); overflow: auto; }
.ans-diff col.ln { width: 46px; }
.ans-msg pre, .ans-msg code, .ans-diff-note pre, .ans-diff-note code, .ans-links, .ans-file, .ans-dir summary { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }

/* 앤서블: 솔루션 패널 · 파일 목록 접기 */
.ans-proj { transition: grid-template-columns .2s; }
.ans-proj.fold-plist { grid-template-columns: 44px minmax(0, 1fr); }
.ans-split.fold-tree { grid-template-columns: 40px minmax(0, 1fr); }
.ans-rail { display: none; }
.fold-plist .ans-plist > :not(.ans-rail), .fold-tree > .ans-tree { display: none; }
.fold-plist .ans-plist > .ans-rail, .fold-tree > .ans-rail { display: flex; }
.ans-rail { flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; background: none; color: var(--text-3);
  cursor: pointer; font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; border-radius: 14px; }
.ans-split > .ans-rail { border-right: 1px solid var(--line-soft); border-radius: 0; min-height: 100%; }
.ans-rail:hover { color: var(--accent); background: var(--surface-hover); }
.ans-rail span { writing-mode: vertical-rl; letter-spacing: .08em; }
.ans-rail .icon { width: 15px; height: 15px; transform: rotate(-90deg); }
.ans-fold-act { display: flex; align-items: center; gap: 4px; }
.ans-fold-btn .icon { transform: rotate(90deg); }
.ans-tree-tools .ans-fold-btn { margin-left: auto; width: 24px; height: 24px; }

.ans-dir-add { display: none; margin-left: 4px; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--accent); font: 700 13px/1 Pretendard, sans-serif; cursor: pointer; }
.ans-dir summary:hover .ans-dir-add { display: inline-grid; place-items: center; }
.ans-tree-tools { flex-wrap: wrap; }

/* ================================================================ 테크 매거진 (AX Cloud Magazine) */
:root, :root[data-theme="dark"] {
  --mag-ai: oklch(0.75 0.15 295); --mag-cloud: oklch(0.78 0.12 240); --mag-container: oklch(0.8 0.12 200); --mag-observability: oklch(0.79 0.14 160);
  --mag-paper: oklch(0.185 0.012 258); --mag-ink: oklch(0.97 0.004 258); --mag-rule: oklch(0.42 0.015 258);
}
:root[data-theme="light"] {
  --mag-ai: oklch(0.52 0.19 295); --mag-cloud: oklch(0.52 0.15 245); --mag-container: oklch(0.55 0.12 205); --mag-observability: oklch(0.52 0.13 160);
  --mag-paper: oklch(0.995 0.003 90); --mag-ink: oklch(0.18 0.015 258); --mag-rule: oklch(0.3 0.015 258);
}
.d-ai { --dc: var(--mag-ai); } .d-cloud { --dc: var(--mag-cloud); } .d-container { --dc: var(--mag-container); } .d-observability { --dc: var(--mag-observability); }
.mag-tabs { display: flex; align-items: center; gap: 6px; margin: 0 auto 16px; max-width: 1240px; }
.mag-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--text-3); font: inherit; font-weight: 600; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.mag-tabs button .icon { width: 15px; height: 15px; }
.mag-tabs button.on { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.mag-state { margin-left: auto; font-size: calc(12.5px * var(--fs, 1)); color: var(--warn); font-weight: 600; }
.mag-state.pub { color: var(--ok); }

.mag { max-width: 1240px; margin: 0 auto; color: var(--mag-ink); }
.mag .mono, .mag-reader .mono { font-family: "JetBrains Mono", Consolas, monospace; font-variant-ligatures: none; }
.mag-empty { padding: 80px 20px; text-align: center; color: var(--text-3); }
.mag-name { font-weight: 900; font-size: clamp(44px, 5.6vw, 76px); line-height: .95; letter-spacing: -.045em; color: var(--mag-ink); }
.mag-name em { font-style: normal; font-weight: 250; letter-spacing: -.03em; color: var(--accent); }
.mag-name.sm { font-size: 17px; letter-spacing: -.02em; }

/* 명판 */
.mag-mast { padding: 18px 0 0; border-top: 4px solid var(--mag-rule); }
.mag-mast-top { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 14px; border-bottom: 1px solid var(--mag-rule);
  font: 600 11.5px/1 "JetBrains Mono", Consolas, monospace; letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.mag-mast-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px 0 18px; }
.mag-tagline { margin-top: 12px; font-size: calc(14px * var(--fs, 1)); color: var(--text-2); }
.mag-pick { display: grid; gap: 4px; font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .04em; }
.mag-pick .select { min-width: 170px; }
.mag-index { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 10px 0; border-top: 3px double var(--mag-rule); border-bottom: 1px solid var(--line-soft); }
.mag-ix { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none;
  font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; }
.mag-ix:hover { background: var(--surface-hover); color: var(--text); }
.mag-ix i { width: 8px; height: 8px; border-radius: 50%; background: var(--dc, var(--accent)); }
.mag-ix b { font: 600 11px "JetBrains Mono", Consolas, monospace; color: var(--text-3); }
.mag-ix.ops i { background: var(--warn); }
.mag-ix-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }

/* 1면: 커버 + 차례 */
.mag-front { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.mag-cover { position: relative; overflow: hidden; padding: 34px 36px 28px; border-radius: 18px; cursor: pointer; isolation: isolate;
  background: linear-gradient(160deg, color-mix(in oklch, var(--dc) 16%, var(--mag-paper)) 0%, var(--mag-paper) 62%);
  border: 1px solid color-mix(in oklch, var(--dc) 30%, var(--line-soft)); transition: border-color .2s, transform .2s; }
.mag-cover:hover { border-color: var(--dc); transform: translateY(-2px); }
.mag-cover-art { position: absolute; inset: 0 0 0 auto; width: 46%; z-index: -1; opacity: .55;
  background-image: radial-gradient(color-mix(in oklch, var(--dc) 70%, transparent) 1.2px, transparent 1.4px);
  background-size: 14px 14px; -webkit-mask-image: linear-gradient(110deg, transparent 8%, #000 70%); mask-image: linear-gradient(110deg, transparent 8%, #000 70%); }
.mag-kicker { font: 700 11.5px/1.2 "JetBrains Mono", Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dc, var(--accent)); }
.mag-cover h1 { margin: 16px 0 14px; max-width: 18ch; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; font-weight: 850; letter-spacing: -.035em; text-wrap: balance; }
.mag-dek { margin: 0; max-width: 54ch; font-size: calc(16.5px * var(--fs, 1)); line-height: 1.6; color: var(--text-2); }
.mag-tldr { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 60ch; counter-reset: t; }
.mag-tldr li { position: relative; padding-left: 30px; font-size: calc(14px * var(--fs, 1)); line-height: 1.55; color: var(--text); counter-increment: t; }
.mag-tldr li::before { content: "0" counter(t); position: absolute; left: 0; top: 1px; font: 700 11.5px "JetBrains Mono", Consolas, monospace; color: var(--dc, var(--accent)); }
.mag-tldr.sm li { font-size: calc(13px * var(--fs, 1)); }
.mag-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; font-size: 12px; color: var(--text-3); }
.mag-tag { color: var(--text-3); font-size: 12px; }
.mag-more { margin-left: auto; color: var(--dc, var(--accent)); font-weight: 700; font-size: 13px; }
.mag-toc { padding: 4px 0 0; }
.mag-toc-h { padding-bottom: 10px; border-bottom: 2px solid var(--mag-rule); font: 700 12px "JetBrains Mono", Consolas, monospace; letter-spacing: .16em; color: var(--text-3); }
.mag-toc ol { margin: 0; padding: 0; list-style: none; }
.mag-toc li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.mag-toc li:hover b { color: var(--accent); }
.mag-toc li > .mono { font-size: 20px; font-weight: 300; color: var(--text-3); line-height: 1.1; }
.mag-toc li small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--dc, var(--warn)); }
.mag-toc li b { display: block; margin-top: 3px; font-size: calc(14px * var(--fs, 1)); line-height: 1.4; font-weight: 650; }

/* 편집자의 말 */
.mag-note { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.mag-note-h { font-size: calc(13px * var(--fs, 1)); font-weight: 800; letter-spacing: .02em; }
.mag-note-h em { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--accent); }
.mag-note-body { columns: 2 320px; column-gap: 36px; column-rule: 1px solid var(--line-soft); }
.mag-note-body p { margin: 0 0 12px; font-size: calc(15px * var(--fs, 1)); line-height: 1.85; color: var(--text-2); }
.mag-note-body p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font-size: 3.4em; line-height: .8; font-weight: 900; color: var(--accent); }
.mag-note-sign { grid-column: 2; font-size: 12.5px; color: var(--text-3); text-align: right; }

/* 파트 */
.mag-part { padding: 40px 0 10px; }
.mag-part-h { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--mag-rule); }
.mag-part-h .mono { grid-row: span 2; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--accent); padding-top: 8px; }
.mag-part.ops .mag-part-h .mono { color: var(--warn); }
.mag-part-h h2 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 850; letter-spacing: -.03em; }
.mag-part-h p { margin: 0; font-size: calc(13.5px * var(--fs, 1)); color: var(--text-3); }
.mag-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mag-col { display: grid; gap: 14px; align-content: start; }
.mag-col-h { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--text-2); }
.mag-col-h i { width: 9px; height: 9px; border-radius: 2px; background: var(--dc); }
.mag-col-h i:last-of-type { margin-right: 4px; }
.mag-card { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface); cursor: pointer; position: relative;
  transition: border-color .15s, transform .15s; }
.mag-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--dc); }
.mag-card:hover { border-color: color-mix(in oklch, var(--dc) 55%, var(--line)); transform: translateY(-1px); }
.mag-card h3 { margin: 8px 0 6px; font-size: calc(17px * var(--fs, 1)); line-height: 1.35; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; }
.mag-card p { margin: 0; font-size: calc(13.5px * var(--fs, 1)); line-height: 1.6; color: var(--text-2); }
.mag-card.big { padding: 24px 24px 20px; background: linear-gradient(170deg, color-mix(in oklch, var(--dc) 9%, var(--surface)), var(--surface) 60%); }
.mag-card.big h3 { font-size: calc(22px * var(--fs, 1)); }
.mag-card .mag-byline { margin-top: 14px; }
.mag-none { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* 운영 리포트 */
.mag-nums { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.mag-nums > div { display: grid; gap: 6px; padding: 18px 18px 16px; border-left: 1px solid var(--line-soft); }
.mag-nums > div:first-child { border-left: 0; padding-left: 0; }
.mag-nums span { font-size: 12px; font-weight: 700; color: var(--text-3); }
.mag-nums b { font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--mag-ink); }
.mag-nums b small { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.mag-nums em { font-style: normal; font-size: 12px; color: var(--text-3); }
.mag-ops { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
.mag-h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: calc(15px * var(--fs, 1)); font-weight: 800; }
.mag-h3 small { font-size: 12px; font-weight: 500; color: var(--text-3); }
.mag-h3:not(:first-child) { margin-top: 26px; }
.mag-pm { padding: 18px 20px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface); }
.mag-pm .mag-kicker { color: var(--warn); }
.mag-pm h4 { margin: 8px 0 12px; font-size: calc(16px * var(--fs, 1)); font-weight: 750; }
.mag-pm ol { margin: 0; padding: 0; list-style: none; display: grid; }
.mag-pm li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 0 0 12px 18px; }
.mag-pm li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mag-pm li::after { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.mag-pm li:last-child::after { display: none; }
.mag-pm li.s { --c: var(--bad); } .mag-pm li.c { --c: var(--warn); } .mag-pm li.a { --c: var(--accent); } .mag-pm li.p { --c: var(--ok); }
.mag-pm li b { font-size: 12.5px; color: var(--text-2); }
.mag-pm li p { margin: 0; font-size: calc(13.5px * var(--fs, 1)); line-height: 1.6; }
.mag-tl { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.mag-tl li { position: relative; padding: 0 0 14px 16px; }
.mag-tl li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--warn); }
.mag-tl .mono { font-size: 11.5px; color: var(--text-3); } .mag-tl b { display: block; margin: 2px 0; font-size: 13.5px; }
.mag-tl p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.mag-bars { display: grid; gap: 8px; }
.mag-bars div { display: grid; grid-template-columns: 110px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; }
.mag-bars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--warn) var(--w), var(--line-soft) var(--w)); }
.mag-bars b { text-align: right; font-weight: 600; }
.mag-issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mag-issues li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-size: 13.5px; }
.mag-issues small { grid-column: 2; color: var(--text-3); font-size: 12px; }
.mag-colophon { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 18px 0 8px; border-top: 4px solid var(--mag-rule);
  font-size: 12px; color: var(--text-3); }

/* 기사 읽기 */
.mag-reading { overflow: hidden; }
.mag-reader { position: fixed; inset: 0; z-index: 900; display: flex; justify-content: center; padding: 28px 16px;
  background: color-mix(in oklch, var(--bg) 70%, transparent); backdrop-filter: blur(6px); animation: magIn .18s ease-out; }
@keyframes magIn { from { opacity: 0; } to { opacity: 1; } }
.mag-reader-in { width: min(820px, 100%); max-height: 100%; overflow: auto; border-radius: 18px; background: var(--mag-paper); color: var(--mag-ink);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-2); outline: none; }
.mag-reader-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklch, var(--mag-paper) 92%, transparent); backdrop-filter: blur(8px); font-size: 12px; color: var(--text-3); }
.mag-reader-bar .btn { margin-left: auto; }
.mag-article { padding: 40px 56px 20px; }
.mag-article h1 { margin: 14px 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; font-weight: 850; letter-spacing: -.035em; text-wrap: balance; }
.mag-box { margin: 26px 0; padding: 18px 22px; border-radius: 12px; background: color-mix(in oklch, var(--dc) 9%, transparent); border-left: 3px solid var(--dc); }
.mag-box b { font-size: 12.5px; letter-spacing: .06em; color: var(--dc); }
.mag-box ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.6; }
.mag-body p { margin: 0 0 18px; font-size: calc(16.5px * var(--fs, 1)); line-height: 1.95; color: var(--text); word-break: keep-all; }
.mag-body p:first-child::first-letter { float: left; margin: 7px 10px 0 0; font-size: 3.3em; line-height: .8; font-weight: 900; color: var(--dc); }
.mag-why { margin: 28px 0 18px; padding: 18px 22px; border-radius: 12px; border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.mag-why b { font-size: 13px; color: var(--accent); } .mag-why p { margin: 6px 0 0; font-size: calc(15px * var(--fs, 1)); line-height: 1.7; }
.mag-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-3); }
.mag-src .icon { width: 14px; height: 14px; } .mag-src .mono { color: var(--text-2); word-break: break-all; }
.mag-ai-note { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
.mag-pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); }
.mag-pn button { display: grid; gap: 4px; padding: 18px 24px; border: 0; background: none; text-align: left; color: var(--text); cursor: pointer; font: inherit; }
.mag-pn button.nx { text-align: right; border-left: 1px solid var(--line-soft); }
.mag-pn button:hover { background: var(--surface-hover); }
.mag-pn small { font-size: 11.5px; color: var(--text-3); } .mag-pn b { font-size: 14px; }

/* 편집실 */
.mag-ed { display: grid; gap: 18px; }
.mag-ed-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mag-ed-grid .panel, .mag-ed > .panel { margin: 0; }
.mag-ed-form { display: grid; gap: 12px; }
.mag-ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mag-ed-form #magText { font-family: inherit; font-size: calc(13.5px * var(--fs, 1)); }
.mag-ed-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mag-ed-act .check { margin-right: auto; }
.mag-pub { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; }
.mag-pub.on { background: var(--ok-soft); } .mag-pub span { flex: 1; } .mag-pub .icon { width: 14px; height: 14px; }
.mag-move { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; font-size: 12.5px; color: var(--text-2); }
.mag-move span { flex: 1 1 260px; } .mag-move b { color: var(--text); } .mag-move .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.mag-balance { font: 600 12.5px "JetBrains Mono", Consolas, monospace; color: var(--text-3); }
.mag-dom { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mag-dom i { width: 8px; height: 8px; border-radius: 50%; background: var(--dc); }
.mag-ed-t { cursor: pointer; } .mag-ed-t:hover { color: var(--accent); }
.mag-ed-tbl tr.off td { opacity: .5; }

.mag-note-body p:first-child::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
.mag-note-body p:first-child { font-size: calc(16.5px * var(--fs, 1)); color: var(--text); }
.mag-tl li.taint::before { border-color: var(--bad); }
.mag-x { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 700; }
.mag-body p:first-child::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
.mag-body p:first-child { font-size: calc(18px * var(--fs, 1)); line-height: 1.85; font-weight: 500; }
:root[data-theme="light"] { --mag-paper: oklch(0.995 0.002 258); }
.mag-tabs { position: sticky; top: 64px; z-index: 4; padding: 8px 0; background: var(--bg); }

/* 운영 모드 (AI 없는 운영망): AI 기능·메뉴·버튼을 통째로 숨긴다 */
body.ops-mode .ai-only, body.ops-mode [data-stab="ai"], body.ops-mode .settings-pane[data-pane="ai"], body.ops-mode a[href="#/settings/ai"],
body.ops-mode [data-stab="gitlab"], body.ops-mode .settings-pane[data-pane="gitlab"], body.ops-mode a[href="#/settings/gitlab"] { display: none !important; }

/* 앤서블 결재 설정 (결재 탭) */
.ans-appr-set { display: grid; gap: 16px; }
.ans-appr-set-top { display: flex; align-items: end; gap: 18px 28px; flex-wrap: wrap; }
.ans-appr-set-top .field { min-width: 180px; }
.ans-hrs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .ans-hrs .input { width: 80px; }
.ans-pps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ans-pp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; background: var(--surface); }
.ans-pp:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ans-pp.off { opacity: .55; }
.ans-pp span:nth-child(2) { display: grid; gap: 1px; flex: 1; min-width: 0; } .ans-pp small { font-size: 11.5px; color: var(--text-3); }
.ans-appr-set-act { display: flex; align-items: center; gap: 12px; } .ans-appr-set-act .btn { margin-left: auto; }

.mag-sched { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft);
  font-size: calc(13px * var(--fs, 1)); line-height: 1.6; color: var(--text-2); }
.mag-sched.on { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 35%, transparent); }
.mag-sched .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
.mag-sched-set { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.mag-sched-set .input { width: 64px; display: inline-block; }
.mag-sched-set .btn { margin-left: auto; }

/* 설정 · 운영 모드: 숨기는 기능 칩 미리보기 (흐리게, 마우스를 올리면 선명해지고 설명이 뜬다) */
.field-after { display: grid; gap: 8px; }
.ops-scope { display: grid; gap: 8px; padding-left: 48px; }
.ops-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: calc(12px * var(--fs, 1));
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-soft); opacity: .55; cursor: default; transition: opacity .15s, border-color .15s, color .15s; }
.ops-chip .icon { width: 13px; height: 13px; }
.ops-chip:hover, .ops-chip:focus-visible { opacity: 1; color: var(--text); border-color: var(--accent); outline: none; }
.ops-chip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); z-index: 30; width: max-content; max-width: 280px;
  padding: 7px 10px; border-radius: 8px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  font-size: 12px; line-height: 1.45; color: var(--text); white-space: normal; text-align: left; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; }
.ops-chip:hover::after, .ops-chip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.ops-keep { display: flex; align-items: center; gap: 6px; margin: 0; font-size: calc(12px * var(--fs, 1)); color: var(--ok); }
.ops-keep .icon { width: 13px; height: 13px; }
/* 운영 모드를 켜면 칩이 '꺼짐'으로 보이게 */
.field-after:has(.switch:checked) .ops-chip { text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--bad) 55%, transparent); }
.ops-chip::after { bottom: auto; top: calc(100% + 8px); transform: translate(-50%, -4px); }
.ops-chip:hover::after, .ops-chip:focus-visible::after { transform: translate(-50%, 0); }

/* 이슈 채팅: 구름이 답변이 길거나 코드·표가 넓어도 채팅창 안에서 줄바꿈 (넓은 코드·표는 말풍선 안에서만 가로 스크롤) */
.chat-list { overflow-x: hidden; }
.chat-msg { min-width: 0; }
.chat-msg.ai { max-width: 92%; }
.chat-bubble { min-width: 0; max-width: 100%; box-sizing: border-box; }
.chat-bubble.md > * { max-width: 100%; }
.chat-bubble.md pre { overflow-x: auto; white-space: pre; }
.chat-bubble.md table { display: block; overflow-x: auto; }
.chat-bubble.md :not(pre) > code, .chat-bubble.md a { overflow-wrap: anywhere; word-break: break-word; }
.iss-chatbox, .iss-chatbox .chat-list { min-width: 0; max-width: 100%; }

/* 사이트맵: 접속 주소가 있는 항목은 초록 테두리가 은은하게 반짝인다 (누르면 '연결하시겠습니까?') */
.sm-node.has-link rect { stroke: var(--ok); stroke-width: 2; animation: smLinkGlow 2.2s ease-in-out infinite; }
.sm-node.has-link.sel rect { stroke: var(--accent); animation: none; }
.sm-node.has-link .sm-dot.on { animation: smDotPulse 2.2s ease-in-out infinite; }
@keyframes smLinkGlow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); stroke-opacity: .7; } 50% { filter: drop-shadow(0 0 6px color-mix(in oklch, var(--ok) 70%, transparent)); stroke-opacity: 1; } }
@keyframes smDotPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sm-node.has-link rect, .sm-node.has-link .sm-dot.on { animation: none; } }
.sm-legend .sm-lg-link { width: 14px; height: 10px; margin-left: 12px; border-radius: 3px; border: 2px solid var(--ok); box-shadow: 0 0 5px color-mix(in oklch, var(--ok) 60%, transparent); }
.sm-ask { width: min(460px, 92vw); }
.sm-ask-list { display: grid; gap: 6px; margin: 10px 0 6px; }
.sm-ask-item { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; }
.sm-ask-item:has(input:checked) { border-color: var(--ok); background: color-mix(in oklch, var(--ok) 8%, var(--surface)); }
.sm-ask-item > span { display: grid; gap: 2px; min-width: 0; } .sm-ask-item .mono { color: var(--accent); overflow-wrap: anywhere; }
.modal-icon.ok { background: var(--ok-soft); color: var(--ok); }
.sm-legend { white-space: nowrap; flex-shrink: 0; }

/* 이슈 채팅 · 조치 모드 */
.act-new { margin-left: auto; }
.chat-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 92%; padding: 4px 12px; border-radius: 999px;
  background: var(--bg-sunken); border: 1px solid var(--line-soft); color: var(--text-2); font-size: calc(12px * var(--fs, 1)); overflow-wrap: anywhere; }
.chat-sys .icon { width: 13px; height: 13px; color: var(--accent); flex: none; } .chat-sys small { color: var(--text-3); flex: none; }
.chat-act { align-self: stretch; border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line)); border-radius: 12px; background: var(--surface);
  padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.chat-act.st-done { border-color: color-mix(in oklch, var(--ok) 45%, var(--line)); }
.chat-act.st-rejected, .chat-act.st-failed { border-color: color-mix(in oklch, var(--bad) 45%, var(--line)); }
.chat-act.st-withdrawn { opacity: .7; }
.act-h { display: flex; align-items: center; gap: 7px; font-size: calc(13px * var(--fs, 1)); }
.act-h .icon { width: 15px; height: 15px; color: var(--accent); } .act-h small { margin-left: auto; color: var(--text-3); }
.act-pill { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.st-done .act-pill, .st-approved .act-pill { background: var(--ok-soft); color: var(--ok); }
.st-rejected .act-pill, .st-failed .act-pill { background: var(--bad-soft); color: var(--bad); }
.act-steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.act-steps li { flex: 1; font-size: 11px; color: var(--text-3); padding-top: 6px; border-top: 3px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-steps li.ok { border-color: var(--ok); color: var(--text-2); } .act-steps li.now { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.act-steps li.bad { border-color: var(--bad); color: var(--bad); font-weight: 700; }
.act-kv { display: grid; gap: 4px; margin: 0; font-size: calc(12.5px * var(--fs, 1)); }
.act-kv > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; min-width: 0; }
.act-kv dt { color: var(--text-3); } .act-kv dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.act-kv dd.mono { font-size: calc(11.5px * var(--fs, 1)); background: var(--bg-sunken); padding: 6px 8px; border-radius: 8px; }
.act-sum { margin: 0; font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text); display: flex; gap: 6px; align-items: flex-start; }
.act-sum .icon { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 3px; }
.act-by-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.act-risk { font-size: calc(12.5px * var(--fs, 1)); background: var(--bg-sunken); border-radius: 8px; padding: 6px 10px; max-width: none; }
.act-risk h3 { font-size: calc(12.5px * var(--fs, 1)); margin: 4px 0 2px; }
.act-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--line-soft); }
.act-note { font-size: calc(12px * var(--fs, 1)); color: var(--text-2); margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.act-note.ok { color: var(--ok); } .act-note.bad { color: var(--bad); }
.field .req { color: var(--bad); }
.iss-chatbox .panel-head { display: flex; align-items: flex-start; gap: 12px; } .iss-chatbox .panel-head .act-new { flex: none; margin-top: 2px; }

/* 감시 모드 안내 — '등록된 클러스터' 제목 줄 오른쪽 빈 곳에 마우스를 올리면 모드별 설명 카드 */
.mode-help { position: relative; flex: 1; align-self: stretch; display: flex; justify-content: flex-end; align-items: center; min-height: 36px; outline: none; }
.mode-help-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--text-3);
  font-size: calc(12px * var(--fs, 1)); transition: color .15s, border-color .15s; }
.mode-help-chip .icon { width: 14px; height: 14px; }
.mode-help:hover .mode-help-chip, .mode-help:focus-visible .mode-help-chip { color: var(--accent); border-color: var(--accent); }
.mode-help-card { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 560px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 16px 36px -14px oklch(0 0 0 / .6); text-align: left; pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity .15s ease-out, transform .15s ease-out; }
.mode-help:hover .mode-help-card, .mode-help:focus-visible .mode-help-card { opacity: 1; transform: none; transition-delay: .12s; }
.mode-help-t { font-weight: 700; font-size: calc(13px * var(--fs, 1)); margin-bottom: 10px; }
.mode-help-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: calc(12.5px * var(--fs, 1)); }
.mode-help-row b { display: block; margin-bottom: 3px; color: var(--text); }
.mode-help-row p { margin: 2px 0; color: var(--text-2); line-height: 1.55; }
.mode-help-row .mode-help-when { color: var(--text-3); display: flex; gap: 5px; align-items: flex-start; }
.mode-help-row .mode-help-when .icon { width: 13px; height: 13px; margin-top: 3px; flex: none; }
.mode-help-tag { align-self: start; text-align: center; padding: 2px 0; border-radius: 6px; font-weight: 700; font-size: calc(11.5px * var(--fs, 1)); background: var(--bg-sunken); color: var(--text-2); }
.m-detect .mode-help-tag { background: var(--accent-soft); color: var(--accent); }
.m-enforce .mode-help-tag { background: color-mix(in oklch, var(--bad) 16%, transparent); color: var(--bad); }
.mode-help-foot { padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--text-3); font-size: calc(12px * var(--fs, 1)); }
@media (prefers-reduced-motion: reduce) { .mode-help-card, .mode-help-chip { transition: none; } }

/* 채팅: 내가 보낸 메시지 고치기 · 구름이에게 다시 보내기 (마우스를 올리면 보인다) */
.chat-tools { display: inline-flex; gap: 2px; margin-left: 6px; opacity: 0; transition: opacity .12s; }
.chat-msg:hover .chat-tools, .chat-tools:focus-within { opacity: 1; }
.chat-tool { display: inline-flex; align-items: center; gap: 3px; border: 0; background: none; color: var(--text-3); font: inherit; font-size: calc(11.5px * var(--fs, 1)); font-weight: 500; padding: 1px 6px; border-radius: 6px; cursor: pointer; }
.chat-tool:hover, .chat-tool:focus-visible { color: var(--accent); background: var(--accent-soft); }
.chat-tool .icon { width: 12px; height: 12px; }
.chat-tool .gr-ava { font-size: 11px; }

/* 설정 → 메뉴 숨기기 */
#nav .menu-off, .platform-seg .menu-off, .space-seg .menu-off { display: none !important; }
.menu-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.menu-pick fieldset { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line-soft); border-radius: 12px; display: grid; gap: 10px; align-content: start; }
.menu-pick legend { padding: 0 6px; font-size: calc(12px * var(--fs, 1)); font-weight: 650; color: var(--text-2); }
.menu-pick .check span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-pick .check .icon { width: 15px; height: 15px; color: var(--text-3); }
.menu-pick .check small { flex-basis: 100%; }
.menu-pick .check:has(input:not(:checked)) span { color: var(--text-3); text-decoration: line-through; }

/* Elastic › 관측 · 인사이트 */
.obs-top { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: stretch; }
.obs-top > .panel { margin: 0; }
body.ops-mode .obs-top { grid-template-columns: minmax(300px, 380px); }
.obs-score .panel-body { display: grid; gap: 14px; }
.obs-score-num { display: flex; align-items: baseline; gap: 8px; }
.obs-score-num b { font-size: calc(44px * var(--fs, 1)); font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.obs-score-num span { color: var(--text-3); font-weight: 600; }
.obs-score-num.tone-ok b { color: var(--ok); } .obs-score-num.tone-info b { color: var(--accent); }
.obs-score-num.tone-warn b { color: var(--warn); } .obs-score-num.tone-bad b { color: var(--bad); }
.obs-score-why { display: grid; gap: 4px; font-size: calc(12.5px * var(--fs, 1)); }
.obs-score-why div { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); border-bottom: 1px dashed var(--line-soft); padding-bottom: 3px; }
.obs-score-why b { color: var(--bad); font-variant-numeric: tabular-nums; }
.obs-spark, .obs-sparks > div { display: grid; gap: 4px; }
.obs-sparks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; align-items: end; }
.obs-ai-text { white-space: pre-wrap; line-height: 1.65; font-size: calc(13.5px * var(--fs, 1)); }
.obs-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 16px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.obs-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.obs-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.obs-kv > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.obs-kv span { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.obs-kv b { font-size: calc(17px * var(--fs, 1)); font-variant-numeric: tabular-nums; }
.obs-kv small { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }
.obs-act { margin-top: 6px; font-size: calc(12.5px * var(--fs, 1)); }
.obs-act summary { cursor: pointer; color: var(--accent); width: fit-content; }
.obs-act ol { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 2px; }
.obs-act li { overflow-wrap: anywhere; }
.obs-more { margin: 4px 20px 12px; }
.obs-more > summary { cursor: pointer; font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text-2); padding: 6px 0; }
.obs-new { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.obs-line { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
/* 이슈 › 지난 로그 (Elastic) */
.iss-logs-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.log-list { max-height: 52vh; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.log-row { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.log-lv { font-size: calc(11px * var(--fs, 1)); font-weight: 700; text-transform: uppercase; color: var(--text-3); }
.log-row.lv-error .log-lv, .log-row.lv-fatal .log-lv, .log-row.lv-critical .log-lv { color: var(--bad); }
.log-row.lv-warn .log-lv, .log-row.lv-warning .log-lv { color: var(--warn); }
.log-msg { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; word-break: break-all; font-family: var(--mono, ui-monospace, monospace); font-size: calc(12px * var(--fs, 1)); color: var(--text-2); max-height: 320px; overflow: auto; }
.obs-sparks > div.small { display: block; align-self: center; line-height: 1.7; }
.iss-logs-bar .select { width: auto; min-width: 140px; }
.obs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Prometheus 연동 테스트 · 안내 */
.prom-test { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.prom-feats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0 22px; font-size: calc(12px * var(--fs, 1)); }
.prom-gate ul { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 2px; }
.test-lines { display: grid; gap: 4px; justify-items: start; }

/* 설정 › Prometheus 연동 — 클러스터 카드 */
.pm-panel { overflow: visible; }
.pm-admin { padding: 20px; display: grid; gap: 16px; }
.pm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pm-top h3 { margin: 0 0 4px; font-size: calc(15px * var(--fs, 1)); }
.pm-top p { margin: 0; color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); max-width: 680px; }
.pm-add { display: flex; gap: 8px; align-items: center; }
.pm-add .select { min-width: 220px; }
.pm-list { display: grid; gap: 12px; }
.pm-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 14px 16px 16px; display: grid; gap: 12px;
  transition: border-color .15s, box-shadow .15s; }
.pm-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pm-title { display: flex; align-items: center; gap: 8px; font-size: calc(14.5px * var(--fs, 1)); }
.pm-title .icon { width: 17px; height: 17px; color: var(--text-3); }
.pm-actions { display: flex; gap: 6px; align-items: center; }
.pm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: calc(11.5px * var(--fs, 1)); font-weight: 600;
  background: var(--bg-sunken); color: var(--text-3); border: 1px solid var(--line-soft); }
.pm-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pm-chip.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.pm-chip.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.pm-fields { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 12px; align-items: end; }
.pm-auth { display: grid; grid-template-columns: auto minmax(180px, 1fr) minmax(180px, 1fr); gap: 12px; align-items: end; }
.pm-auth .field { margin: 0; }
.pm-auth .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.pm-auth .seg button { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 6px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.pm-auth .seg button[aria-checked="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-1); }
.pm-auth .pm-a-bearer, .pm-auth .pm-a-basic, .pm-auth .pm-a-none { display: none; }
.pm-auth[data-auth="bearer"] .pm-a-bearer { display: flex; grid-column: span 2; }
.pm-auth[data-auth="basic"] .pm-a-basic { display: flex; }
.pm-auth[data-auth="none"] .pm-a-none { display: block; grid-column: span 2; margin: 0 0 9px; }
.pm-fields .field { margin: 0; }
.pm-tls { padding-bottom: 8px; white-space: nowrap; }
.pm-hint { margin: 0; color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); }
.pm-result { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: calc(12.5px * var(--fs, 1)); }
.pm-result > .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pm-result p { margin: 2px 0 0; }
.pm-result small { color: var(--text-3); }
.pm-result.ok { background: var(--ok-soft); } .pm-result.ok > .icon { color: var(--ok); }
.pm-result.bad { background: var(--bad-soft); } .pm-result.bad > .icon { color: var(--bad); }
.pm-feats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pm-feat { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--surface); color: var(--text-3);
  border: 1px solid var(--line-soft); font-size: calc(11.5px * var(--fs, 1)); }
.pm-feat .icon { width: 12px; height: 12px; }
.pm-feat.on { color: var(--text); } .pm-feat.on .icon { color: var(--ok); }

/* 상황판 v2: 플랫폼 탭 · 그림 중심 타일 · 대상 상세 (1.0.9) */
.wl-plats { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg-sunken); border: 1px solid var(--line-soft); }
.wl-plat { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.wl-plat .icon { width: 17px; height: 17px; }
.wl-plat > i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.wl-plat b { font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--text-3); }
.wl-plat[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.wl-plat:disabled { opacity: .4; cursor: default; }
.wl-plat.lv-crit > i { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in oklch, var(--bad) 30%, transparent); animation: wall-pulse 2s ease-in-out infinite; }
.wl-plat.lv-crit b { background: var(--bad); color: #fff; }
.wl-plat.lv-warn > i { background: var(--warn); } .wl-plat.lv-warn b { color: var(--warn); }
.wl-plat.lv-ok > i { background: var(--ok); } .wl-plat.lv-ok b { color: var(--ok); }

.wl-summary { display: grid; grid-template-columns: repeat(3, minmax(130px, 170px)) 1fr; gap: 12px; align-items: stretch; }
.wl-big { display: grid; align-content: center; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.wl-big b { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text-3); }
.wl-big b small { font-size: 18px; color: var(--text-3); }
.wl-big span { font-size: 13px; color: var(--text-3); font-weight: 650; margin-top: 4px; }
.wl-big.crit.on { background: var(--bad); border-color: transparent; } .wl-big.crit.on b, .wl-big.crit.on span { color: #fff; }
.wl-big.warn.on b { color: var(--warn); } .wl-big.ok b { color: var(--ok); }

.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-content: start; }
.wl-tile { text-align: left; font: inherit; color: var(--text); cursor: pointer; display: grid; gap: 10px; align-content: start; padding: 14px 16px 12px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--text-3); transition: transform .12s, border-color .12s; }
.wl-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.wl-tile.lv-crit { border-top-color: var(--bad); background: color-mix(in oklch, var(--bad) 10%, var(--surface)); }
.wl-tile.lv-warn { border-top-color: var(--warn); } .wl-tile.lv-ok { border-top-color: var(--ok); }
.wl-tile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wl-tone { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); }
.lv-crit .wl-tone { color: var(--bad); } .lv-warn .wl-tone { color: var(--warn); } .lv-ok .wl-tone { color: var(--ok); }
.wl-name { font-size: 20px; font-weight: 800; }
.wl-tile-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wl-count { display: grid; grid-template-columns: auto auto auto auto; align-items: baseline; gap: 2px 6px; }
.wl-count b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--text-3); font-variant-numeric: tabular-nums; }
.wl-count b.c { color: var(--bad); } .wl-count b.w { color: var(--warn); }
.wl-count span { font-size: 12.5px; color: var(--text-3); margin-right: 8px; }
.wl-count.big b { font-size: 44px; }
.wl-ring { flex: none; } .wl-ring .bg { fill: none; stroke: var(--line); stroke-width: 5; }
.wl-ring .fg { fill: none; stroke-width: 5; stroke-linecap: round; }
.wl-ring text { font-size: 12px; font-weight: 800; text-anchor: middle; fill: var(--text); font-family: inherit; }
.wl-ring.t-ok .fg { stroke: var(--ok); } .wl-ring.t-info .fg { stroke: var(--accent); } .wl-ring.t-warn .fg { stroke: var(--warn); } .wl-ring.t-crit .fg { stroke: var(--bad); }
.wl-donut { display: grid; justify-items: center; gap: 2px; }
.wl-donut .ok { fill: none; stroke: var(--ok); stroke-width: 6; } .wl-donut .bad { fill: none; stroke: var(--bad); stroke-width: 6; }
.wl-donut text { font-size: 11px; font-weight: 800; text-anchor: middle; fill: var(--text); font-family: inherit; }
.wl-donut small { font-size: 11.5px; color: var(--text-3); } .wl-donut small b { color: var(--bad); }
.wl-es { flex: none; min-width: 84px; text-align: center; padding: 10px 12px; border-radius: 12px; font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.wl-es.es-green { background: var(--ok-soft); color: var(--ok); } .wl-es.es-yellow { background: var(--warn-soft); color: var(--warn); }
.wl-es.es-red { background: var(--bad); color: #fff; animation: wall-pulse 2s ease-in-out infinite; }
.wl-meters { display: grid; gap: 5px; }
.wl-meter { display: grid; grid-template-columns: 78px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.wl-meter i { height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.wl-meter em { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.wl-meter.t-warn em { background: var(--warn); } .wl-meter.t-crit em { background: var(--bad); }
.wl-meter b { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; } .wl-meter.t-crit b { color: var(--bad); }
.wl-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; }
.wl-cell { display: grid; justify-items: center; gap: 1px; padding: 5px 2px 4px; border-radius: 7px; background: color-mix(in oklch, var(--ok) 14%, var(--surface)); }
.wl-cell b { font-size: 15px; font-weight: 800; min-height: 18px; line-height: 18px; color: #fff; }
.wl-cell small { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wl-cell.crit { background: var(--bad); } .wl-cell.crit small { color: #fff; }
.wl-cell.warn { background: var(--warn); } .wl-cell.warn small { color: color-mix(in oklch, #000 70%, var(--warn)); } .wl-cell.warn b { color: #1a1300; }

.wl-detail { display: grid; gap: 14px; align-content: start; }
.wl-dbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wl-dbar > .btn .icon { transform: rotate(90deg); }
.wl-over { display: grid; gap: 14px; align-content: start; }
.wl-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.wl-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wl-switch button i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.wl-switch button.lv-crit i { background: var(--bad); } .wl-switch button.lv-warn i { background: var(--warn); } .wl-switch button.lv-unknown i { background: var(--text-3); }
.wl-switch button b { color: var(--bad); }
.wl-switch button.on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.wl-dhead { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto minmax(220px, 300px) auto; align-items: center; gap: 20px; padding: 16px 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--text-3); }
.wl-dhead.lv-crit { border-left-color: var(--bad); background: color-mix(in oklch, var(--bad) 10%, var(--surface)); }
.wl-dhead.lv-warn { border-left-color: var(--warn); } .wl-dhead.lv-ok { border-left-color: var(--ok); }
.wl-dname b { display: block; font-size: 26px; font-weight: 800; } .wl-dname small { color: var(--text-3); }
.wl-dbody { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; align-items: start; }
.wl-card { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.wl-card h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wl-card h4 .icon { width: 17px; height: 17px; color: var(--text-3); }
.wl-card h4 small { margin-left: auto; font-weight: 600; color: var(--text-3); font-size: 12.5px; }
.wl-card h4 b.c { color: var(--bad); } .wl-card h4 b.w { color: var(--warn); }
.wl-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.wl-unit { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in oklch, var(--ok) 13%, var(--surface)); border-left: 4px solid var(--ok); }
.wl-unit b { font-size: 13px; } .wl-unit small { font-size: 11px; color: var(--text-3); line-height: 1.35; }
.wl-unit.sev-crit { background: var(--bad); border-left-color: color-mix(in oklch, #000 25%, var(--bad)); } .wl-unit.sev-crit b, .wl-unit.sev-crit small { color: #fff; }
.wl-unit.sev-warn { background: color-mix(in oklch, var(--warn) 22%, var(--surface)); border-left-color: var(--warn); }
.wl-unit.sev-info { background: var(--surface-2); border-left-color: var(--text-3); }
.wl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wl-items li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.wl-items li i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--warn); }
.wl-items li.sev-crit { background: color-mix(in oklch, var(--bad) 14%, var(--surface)); } .wl-items li.sev-crit i { background: var(--bad); }
.wl-items b { display: block; font-size: 13.5px; }
.wl-items small { font-size: 12px; color: var(--text-3); margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wl-clear { display: flex; align-items: center; gap: 8px; padding: 16px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.wl-clear .icon { width: 18px; height: 18px; }

.wl-more { font-size: 12.5px; color: var(--text-3); padding: 2px 4px; }

/* 상황판 샘플 보기 (1.0.9) */

/* 상황판 요약 줄 오른쪽 (1.0.9) */
.wl-side { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); min-width: 0; }
.wl-side h5 { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.wl-side h5 .icon { width: 15px; height: 15px; } .wl-side h5 small { margin-left: auto; color: var(--text-3); font-weight: 600; }
.wl-urgent ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.wl-urgent li button { width: 100%; display: grid; grid-template-columns: 9px auto 1fr auto; align-items: center; gap: 8px; padding: 5px 8px; border: 0; border-radius: 8px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.wl-urgent li button:hover { outline: 1px solid var(--accent); }
.wl-urgent li i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); } .wl-urgent li.sev-unknown i { background: var(--text-3); } .wl-urgent li.sev-warn i { background: var(--warn); }
.wl-urgent li span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-urgent li em { font-style: normal; font-weight: 800; color: #fff; background: var(--bad); border-radius: 6px; padding: 0 7px; }
.wl-urgent li.sev-warn em { background: var(--warn); color: #1a1300; }
.wl-urgent .wl-more, .wl-urgent .wl-clear { margin-top: 4px; }

/* 사람 · 권한 (1.0.9) */
.own-gaps { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.own-gaps > div { display: grid; gap: 2px; } .own-gaps .btn { margin-left: auto; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .chip.warn .icon { width: 13px; height: 13px; }
.own-gap-list { margin: 8px 0 0; padding-left: 18px; max-height: 260px; overflow: auto; font-size: 13px; }

/* PVC 실사용량 (1.0.9) */
.pvc-use { display: grid; grid-template-columns: 90px 44px; align-items: center; gap: 8px; }
.pvc-use i { height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.pvc-use em { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.pvc-use.t-warn em { background: var(--warn); } .pvc-use.t-crit em { background: var(--bad); }
.pvc-use b { font-variant-numeric: tabular-nums; font-size: 12.5px; text-align: right; } .pvc-use.t-crit b { color: var(--bad); }

/* PowerFlex (1.0.9) */
.pfx-map { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); text-decoration: none; }
.pfx-map .icon { width: 14px; height: 14px; color: var(--text-3); } .pfx-map:hover b { color: var(--accent); }
.pfx-map.none { color: var(--text-3); font-size: 12.5px; } .pfx-map.warn { color: var(--warn); font-size: 12.5px; }
.pfx-io { display: grid; justify-items: end; } .pfx-io b { font-variant-numeric: tabular-nums; } .pfx-io small { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.pfx-pools { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pfx-pool { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); border-top: 4px solid var(--ok); color: var(--text); text-decoration: none; }
.pfx-pool.sev-warn { border-top-color: var(--warn); } .pfx-pool.sev-crit { border-top-color: var(--bad); background: color-mix(in oklch, var(--bad) 8%, var(--surface)); }
.pfx-pool-head { display: flex; align-items: center; gap: 8px; } .pfx-pool-head .sev { margin-left: auto; }
.pfx-pool-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-3); }
.pfx-pool-note { font-size: 12.5px; color: var(--bad); font-weight: 600; } .pfx-pool.sev-warn .pfx-pool-note { color: var(--warn); }
.pfx-tops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pfx-top { list-style: none; margin: 0; padding: 4px 16px 12px; display: grid; gap: 4px; }
.pfx-top li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.pfx-top li:last-child { border-bottom: 0; } .pfx-top .node-sub .icon { width: 12px; height: 12px; vertical-align: -2px; }
.pfx-top-r { min-width: 150px; display: flex; justify-content: flex-end; }
.pfx-health { padding: 0 16px 14px; }
a.pvc-use { text-decoration: none; color: inherit; }

/* 추이 그래프 마우스 값 (1.0.11) */
.spark-cursor { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0; }
.spark.hover .spark-cursor { opacity: 1; }
.spark-tip { position: fixed; z-index: 9999; pointer-events: none; padding: 4px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart.hover .spark-cursor { opacity: 1; } .chart .spark-cursor { stroke: var(--text-3); stroke-dasharray: 3 3; }
.spark-tip div { font-weight: 500; color: var(--text-2); }

/* 상황판 자동 전환 (1.0.11) */
.wl-rot { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface); }
.wl-rot .input { width: 64px; } .wl-rot .select { width: auto; }
.wl-rot-bar { position: absolute; left: 8px; right: 8px; bottom: 1px; height: 2px; border-radius: 2px; overflow: hidden; }
.wl-rot-bar em { display: block; height: 100%; width: 0; background: var(--accent); transition: width .9s linear; }

/* PowerFlex 순수 가용 · Noisy Neighbor (1.0.11) */
.pfx-pool-cap { font-size: 13px; color: var(--text-2); } .pfx-pool-cap b { color: var(--text); }
.pfx-provbar { display: grid; grid-template-columns: 34px 1fr 44px; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.pfx-provbar i { position: relative; height: 6px; border-radius: 99px; background: var(--bg-sunken); }
.pfx-provbar em { display: block; height: 100%; border-radius: 99px; background: var(--accent); opacity: .6; }
.pfx-provbar s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-2); }
.pfx-provbar b { text-align: right; color: var(--text-2); }
.pfx-noisy-panel.surge { border-color: var(--bad); }
.pfx-noisy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 16px 14px; }
.pfx-noisy-cols h5 { margin: 4px 0 8px; font-size: 13px; color: var(--text-2); }
.pfx-noisy { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pfx-noisy li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 200px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.pfx-rank { font-weight: 800; color: var(--text-3); text-align: center; } .pfx-noisy li:first-child .pfx-rank { color: var(--bad); }
.pfx-noisy-who { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pfx-noisy-who .icon { width: 13px; height: 13px; vertical-align: -2px; }
.pfx-share { display: grid; grid-template-columns: 1fr 48px; gap: 2px 8px; align-items: center; }
.pfx-share i { height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; } .pfx-share em { display: block; height: 100%; background: var(--warn); border-radius: 99px; }
.pfx-share b { text-align: right; font-variant-numeric: tabular-nums; } .pfx-share small { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); }

/* 작업 공지 대상 (1.0.11) */
.nt-box { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); background: var(--surface-2); }
.nt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; max-height: 220px; overflow: auto; }
.nt-cluster details summary { font-size: 12px; color: var(--text-3); cursor: pointer; margin: 2px 0 2px 24px; }
.nt-nodes { display: grid; gap: 2px; margin-left: 24px; }
.nt-opts { display: flex; gap: 18px; margin-top: 8px; }

/* 설정 변경 Diff (1.0.11) */
.diff-view { max-height: 60vh; overflow: auto; padding: 12px; border-radius: 10px; background: var(--bg-sunken); font-size: 12.5px; line-height: 1.5; white-space: pre; }
.diff-view .d-add { color: var(--ok); background: color-mix(in oklch, var(--ok) 12%, transparent); display: inline-block; width: 100%; }
.diff-view .d-del { color: var(--bad); background: color-mix(in oklch, var(--bad) 12%, transparent); display: inline-block; width: 100%; }
.diff-view .d-hunk { color: var(--accent); }
.tl-config .tl-dot { background: var(--accent); }

/* 통합 타임라인 (1.0.11) */
.corr-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.corr-wrap { overflow-x: auto; margin: 10px 0; }
.corr-svg { width: 100%; min-width: 760px; height: auto; font-family: inherit; }
.corr-svg text { font-size: 11px; fill: var(--text-3); }
.corr-svg .corr-label { font-size: 12.5px; font-weight: 700; fill: var(--text-2); }
.corr-lane { fill: var(--surface-2); } .corr-lane.odd { fill: var(--surface); }
.corr-grid { stroke: var(--line-soft); stroke-dasharray: 2 4; }
.corr-center { stroke: var(--accent); stroke-width: 2; }
.corr-dot { fill: var(--text-3); stroke: var(--surface); stroke-width: 1.5; }
.corr-dot.sev-warn { fill: var(--warn); } .corr-dot.sev-crit { fill: var(--bad); }
.corr-first { font-size: 10.5px; fill: var(--bad); font-weight: 700; }
.corr-list { display: grid; gap: 2px; max-height: 420px; overflow: auto; }

/* 채팅 이미지 첨부 (1.0.11) */
.chat-form { flex-wrap: wrap; } .chat-form.drop { outline: 2px dashed var(--accent); outline-offset: 2px; }
.chat-attach { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.chat-thumb { position: relative; } .chat-thumb img { height: 56px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.chat-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.chat-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .chat-imgs img { max-width: 260px; max-height: 180px; border-radius: 8px; border: 1px solid var(--line); }
.chat-img-btn { align-self: flex-end; }

/* 업무 메모 (1.0.12): 태그 색 · 책꽂이 · 큰 편집 창 · 질문형 다듬기 · 정리 · 인수인계 */
.tc-blue { --tc-h: 258; } .tc-green { --tc-h: 150; } .tc-amber { --tc-h: 75; } .tc-red { --tc-h: 25; }
.tc-violet { --tc-h: 300; } .tc-teal { --tc-h: 195; } .tc-pink { --tc-h: 350; } .tc-gray { --tc-h: 258; --tc-c: 0.015; }
:root { --tc-l: 0.5; --tc-bg: 0.93; }
:root[data-theme="dark"] { --tc-l: 0.82; --tc-bg: 0.3; }
.mtag, .memo-tag, .memo-card, .memo-shelf-h, .mswatch { --tc-fg: oklch(var(--tc-l) var(--tc-c, 0.13) var(--tc-h, 258)); --tc-soft: oklch(var(--tc-bg) calc(var(--tc-c, 0.13) * 0.45) var(--tc-h, 258)); --tc-solid: oklch(0.62 var(--tc-c, 0.15) var(--tc-h, 258)); }
.mtag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; color: var(--tc-fg); background: var(--tc-soft);
  border: 1px solid color-mix(in oklch, var(--tc-solid) 30%, transparent); white-space: nowrap; }
.mtag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc-solid); flex: none; }

.memo-wrap { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; align-items: start; }
.memo-side { position: sticky; top: 76px; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.memo-new, .memo-ask-btn { width: 100%; justify-content: center; }
.memo-side-list { display: grid; gap: 2px; margin-top: 4px; }
.memo-side-item { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border: 0; border-radius: 9px; background: none;
  color: var(--text-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.memo-side-item .icon { width: 16px; height: 16px; } .memo-side-item b { font-size: 12px; color: var(--text-3); }
.memo-side-item:hover { background: var(--surface-2); } .memo-side-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.memo-side-item b.memo-unread { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; text-align: center; }
.memo-tags-head { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; }
.memo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.memo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.memo-tag b { font-size: 11px; color: var(--text-3); }
.memo-tag:hover { border-color: var(--tc-solid); }
.memo-tag.on { background: var(--tc-soft); border-color: var(--tc-solid); color: var(--tc-fg); font-weight: 650; } .memo-tag.on b { color: inherit; opacity: .8; }

.memo-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .memo-top .search { flex: 1 1 260px; max-width: 420px; }
.memo-arrange, .memo-scope { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.memo-arrange button, .memo-scope button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 8px; background: none; color: var(--text-2);
  font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.memo-arrange button .icon, .memo-scope button .icon { width: 15px; height: 15px; }
.memo-arrange button.on, .memo-scope button.on { background: var(--surface); color: var(--accent); font-weight: 650; box-shadow: var(--shadow-1); }
.memo-selbar { position: sticky; top: 64px; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent); backdrop-filter: blur(6px); }

/* 책꽂이: 칸마다 이름표 · 책(카드) · 선반 */
.memo-shelf { margin-bottom: 26px; }
.memo-shelf-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 14px; }
.memo-shelf-h .icon { width: 16px; height: 16px; color: var(--tc-fg); } .memo-shelf-h b { color: var(--tc-fg); }
.memo-shelf-h > span { font-size: 12px; color: var(--text-3); padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.memo-shelf-board { height: 7px; margin-top: 12px; border-radius: 3px; background: linear-gradient(var(--line), var(--line-soft)); box-shadow: 0 4px 10px -6px oklch(0 0 0 / .35); }
.memo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.memo-card { position: relative; display: grid; gap: 8px; align-content: start; min-height: 176px; padding: 16px 18px 14px 22px; border-radius: 6px 14px 14px 6px; background: var(--surface);
  border: 1px solid var(--line-soft); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; overflow: hidden; }
.memo-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--tc-solid); opacity: .9; }   /* 책등 */
.memo-card:hover, .memo-card:focus-visible { transform: translateY(-3px); border-color: var(--tc-solid); box-shadow: var(--shadow-1); outline: none; }
.memo-card.pinned { box-shadow: inset 0 3px 0 var(--accent); }
.memo-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.memo-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.memo-card.selected .memo-check { background: var(--accent); border-color: var(--accent); } .memo-check .icon { width: 14px; height: 14px; color: #fff; }
.memo-card header { display: flex; align-items: flex-start; gap: 6px; }
.memo-time { flex: none; margin-top: 2px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-3); white-space: nowrap; }
.memo-card.selected .memo-time, .memo-card:has(.memo-check) .memo-time { margin-right: 26px; } .memo-card h4 { margin: 0; font-size: 15.5px; line-height: 1.35; flex: 1; }
.memo-pin .icon, .memo-lock .icon { width: 15px; height: 15px; color: var(--accent); } .memo-lock .icon { color: var(--text-3); }
.memo-card p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.memo-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.memo-card footer { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin-top: auto; } .memo-card footer .icon { width: 13px; height: 13px; }
.memo-coached { color: var(--accent); }
.memo-sum { display: flex; gap: 6px; align-items: baseline; margin: 2px -18px -14px -22px; padding: 8px 18px 9px 22px; font-size: 12.5px; color: var(--text-2);
  background: var(--surface-2); border-top: 1px dashed var(--line); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.memo-sum > span { flex: none; } .memo-sum .memo-sum-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.memo-hov .memo-sum { margin: 6px 0; border-radius: 8px; border: 1px dashed var(--line); white-space: normal; }

/* 편집 창: 왼쪽 메뉴 옆 본문 영역을 꽉 채운다 */
dialog.modal.memo-modal { position: fixed; inset: 16px 16px 16px 264px; width: auto; height: auto; max-width: none; max-height: none; margin: 0; }
dialog.modal.memo-modal[open] { display: flex; flex-direction: column; }
.memo-editor { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 34%); }
.memo-ed-main { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; min-height: 0; overflow: auto; }
.memo-title-in { font-size: 21px; font-weight: 750; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 0 10px; background: transparent; }
.memo-title-in:focus { border-bottom-color: var(--accent); box-shadow: none; }
.memo-body-in { flex: 1; min-height: 260px; resize: none; font-size: 14.5px; line-height: 1.7; }
.memo-ed-opts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.memo-coach { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; padding: 20px; background: var(--surface-2); border-left: 1px solid var(--line-soft); }
.memo-coach-head { position: sticky; top: -20px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: -20px -20px 0; padding: 16px 20px 12px; font-size: 15px;
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.memo-coach-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.memo-c-lead { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.memo-c-msg { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); font-size: 13px; }
.memo-c-type { display: grid; gap: 6px; justify-items: start; } .memo-c-type .small { color: var(--text-2); line-height: 1.5; }

/* 태그 고르기 */
.memo-tp { display: grid; gap: 8px; }
.mtp-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mtp-chip { padding: 3px 6px 3px 6px; font-size: 12.5px; gap: 5px; }
.mtp-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--tc-solid); background: var(--tc-solid); cursor: pointer; padding: 0; }
.mtp-x { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; } .mtp-x:hover { opacity: 1; }
.mtp-add { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--accent); background: none; color: var(--accent);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; } .mtp-add .icon { width: 13px; height: 13px; } .mtp-add:hover { background: var(--accent-soft); }
.mtp-pop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.mtp-new .input { width: 220px; } .mtp-sw { display: inline-flex; gap: 5px; }
.mswatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--tc-solid); cursor: pointer; padding: 0; }
.mswatch.on { box-shadow: 0 0 0 2px var(--text); }
.mtp-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .mtp-pool-h { font-size: 12px; color: var(--text-3); margin-right: 2px; }
.mtp-opt { cursor: pointer; font: inherit; font-size: 12px; opacity: .78; } .mtp-opt:hover { opacity: 1; }

/* 질문형 다듬기 */
.mq-list { display: grid; gap: 10px; }
.mq { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .15s; }
.mq.answered { border-color: color-mix(in oklch, var(--accent) 55%, transparent); }
.mq-head { display: flex; align-items: center; gap: 8px; }
.mq-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--accent-soft); color: var(--accent); }
.mq-kind { font-size: 11px; font-weight: 700; color: var(--text-3); }
.mq-q { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; } .mq-hint { margin: -4px 0 0; font-size: 12px; color: var(--text-3); }
.mq-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mq-seg button, .mq-opt { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.mq-seg button .icon { width: 14px; height: 14px; }
.mq-seg button.on.yes, .mq-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
.mq-seg button.on.no { background: var(--surface); border-color: var(--text-2); color: var(--text); font-weight: 650; }
.mq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-note-btn { justify-self: start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--text-3); font: inherit; font-size: 12.5px; cursor: pointer; }
.mq-note-btn .icon { width: 13px; height: 13px; } .mq-note-btn:hover { color: var(--accent); }
.mq-note { border-style: dashed; }
.mq-all { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.mq-foot { position: sticky; bottom: -20px; display: grid; gap: 8px; margin: 0 -20px -20px; padding: 12px 20px 16px; background: var(--surface-2); border-top: 1px solid var(--line-soft); }
.mq-foot .btn.primary { justify-content: center; }
.memo-sugg { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--accent); box-shadow: var(--shadow-1); }
.memo-sugg.done { border-color: var(--ok); } .memo-sugg p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; }
.memo-changes { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.memo-sugg-kind { display: inline-block; font-size: 11px; font-weight: 800; color: var(--accent); padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); }
.memo-preview { font-size: 12.5px; } .memo-preview summary { cursor: pointer; color: var(--text-3); margin-bottom: 6px; }
.memo-preview .md { max-height: 42vh; overflow: auto; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); }
.memo-preview .md h3 { margin-top: 0; }
.memo-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* 구름이에게 묻기 */
dialog.modal.memo-ask-modal { width: min(820px, calc(100vw - 32px)); }
.memo-ask-hero { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; } .memo-ask-hero h3 { margin: 0 0 2px; }
.memo-ask-hero p { margin: 0; }
.gr-ava.lg { width: 40px; height: 40px; font-size: 20px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); }
.memo-ask-opts { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; flex-wrap: wrap; }
.memo-ask-opts .btn.primary { margin-left: auto; min-width: 96px; justify-content: center; }
.memo-ask-tag { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface-2); }
.memo-ask-tag .icon { width: 15px; height: 15px; color: var(--text-3); } .memo-ask-tag .select { border: 0; background-color: transparent; min-width: 130px; }
.memo-answer { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.memo-used { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.memo-used-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.memo-used-chip:hover { border-color: var(--accent); }

/* 전체 메모 정리 */
dialog.modal.memo-org-modal { width: min(980px, calc(100vw - 32px)); }
.memo-org-opts { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; } .memo-org-opts .btn.primary { margin-left: auto; }
.org-sec { margin-top: 16px; } .org-sec h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; } .org-sec h4 .icon { width: 16px; height: 16px; }
.org-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--line-soft); cursor: pointer; }
.org-row.del { border-color: color-mix(in oklch, var(--bad) 40%, transparent); }
.org-from { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; } .org-from span { padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-soft); }
.org-from i { color: var(--text-3); font-style: normal; }
.org-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; font-size: 13px; }
.org-md { max-height: 260px; overflow: auto; padding: 10px; margin-top: 6px; border-radius: 8px; background: var(--surface); }

/* 인수인계 */
.memo-ho .field { margin-top: 10px; }
.memo-ho-list { display: grid; gap: 4px; max-height: 220px; overflow: auto; margin: 12px 0 4px; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.memo-ho-list > div { display: flex; align-items: center; gap: 8px; font-size: 13px; } .memo-ho-list .muted { margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 45%; }
.memo-hobox h4 { margin: 14px 0 6px; font-size: 13.5px; }
.memo-ho-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px;
  border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.memo-ho-row:hover { border-color: var(--accent); } .memo-ho-row div { display: grid; gap: 2px; }
.memo-ho-row.unread { border-color: var(--accent); background: var(--accent-soft); }
.memo-ho-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.memo-ho-ic .icon { width: 16px; height: 16px; } .memo-ho-ic.lg { width: 44px; height: 44px; } .memo-ho-ic.lg .icon { width: 22px; height: 22px; }
.memo-ho-st { font-size: 12px; color: var(--text-3); white-space: nowrap; } .memo-ho-row.unread .memo-ho-st { color: var(--accent); font-weight: 700; }
dialog.modal.memo-hov-modal { width: min(960px, calc(100vw - 32px)); }
.memo-hov-head { display: flex; gap: 12px; align-items: center; } .memo-hov-head h3 { margin: 0 0 2px; } .memo-hov-head p { margin: 0; }
.memo-hov-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 13.5px; white-space: pre-wrap; }
.memo-hov-intro { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent); background: var(--surface); }
.memo-hov-items { display: grid; gap: 6px; margin-top: 14px; max-height: 52vh; overflow: auto; }
.memo-hov-items details { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.memo-hov-items summary { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.memo-hov-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--surface); }

/* 보안 감사 증적 (1.0.11) */
.audit-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; } .audit-quick { display: flex; gap: 6px; }
.audit-dl { display: flex; gap: 8px; margin-top: 10px; }

/* 사용자 · 내 대시보드 만들기 (AI 가이드, 1.0.12) */
.dg-hero .pill { margin-left: 6px; font-size: 11px; }
.dg-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.dg-side { position: sticky; top: 16px; display: grid; gap: 6px; padding: 14px; max-height: calc(100vh - 140px); overflow: auto; }
.dg-side-h { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.dg-past { display: grid; gap: 2px; padding: 9px 11px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dg-past b { font-size: 13.5px; } .dg-past span { font-size: 12px; color: var(--text-3); }
.dg-past:hover { background: var(--surface-2); } .dg-past.on { background: var(--accent-soft); border-color: var(--accent); }
.dg-wiz { padding: 0; overflow: hidden; }
.dg-steps { display: flex; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.dg-steps li { flex: 1; }
.dg-steps button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-3); font: inherit; font-size: 13.5px; cursor: pointer; }
.dg-steps button span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 750; background: var(--surface); border: 1px solid var(--line); }
.dg-steps button span .icon { width: 13px; height: 13px; }
.dg-steps li.on button { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); } .dg-steps li.on button span { background: var(--accent); border-color: var(--accent); color: #fff; }
.dg-steps li.done button { color: var(--text-2); } .dg-steps li.done button span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.dg-steps button:disabled { cursor: default; opacity: .6; }
.dg-stepbody { display: grid; gap: 14px; padding: 22px 24px; min-height: 300px; align-content: start; }
.dg-stepbody h3 { margin: 0; font-size: 17px; }
.dg-ns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dg-card { display: grid; gap: 4px; justify-items: start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.dg-card b { font-size: 15px; } .dg-card span { font-size: 12.5px; color: var(--text-3); }
.dg-card:hover { border-color: var(--accent); } .dg-card.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.dg-space { display: inline-flex; align-items: center; gap: 4px; } .dg-space .icon { width: 13px; height: 13px; }
.dg-purpose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dg-card.big { padding: 20px; gap: 6px; } .dg-card.big > .icon { width: 26px; height: 26px; color: var(--accent); } .dg-card.big b { font-size: 16px; }
.dg-card em { font-style: normal; font-size: 11.5px; color: var(--warn); }
.dg-det { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line); }
.dg-det.warn { border-color: var(--warn); color: var(--text-2); display: flex; align-items: center; gap: 6px; } .dg-det .icon { width: 15px; height: 15px; color: var(--warn); }
.dg-ds { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-dsc { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); font-family: var(--mono, monospace); }
.dg-dsc b { font-family: inherit; color: var(--text-2); margin-left: 4px; } .dg-dsc.log { border-color: color-mix(in oklch, var(--info) 50%, transparent); } .dg-dsc.met { border-color: color-mix(in oklch, var(--ok) 50%, transparent); }
.dg-group { display: grid; gap: 8px; } .dg-gl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); } .dg-gl .icon { width: 15px; height: 15px; }
.dg-chips, .dg-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.dg-chip .icon { width: 14px; height: 14px; } .dg-chip:hover { border-color: var(--accent); }
.dg-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 650; }
.dg-kw { max-width: 460px; }
.dg-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-exb { padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); background: none; color: var(--text-3); font: inherit; font-size: 12.5px; cursor: pointer; } .dg-exb:hover { color: var(--accent); border-color: var(--accent); }
.dg-sum { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--text-2); } .dg-sum b { color: var(--text); }
.dg-nav { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line-soft); }
.dg-fb .dg-nav { padding: 10px 0 0; border: 0; }
.dg-guide { padding: 18px 22px; }
.dg-gh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .dg-gh h3 { margin: 0 0 2px; font-size: 17px; }
.dg-turns { display: grid; gap: 10px; }
.dg-turn.me { justify-self: end; max-width: 78%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); font-size: 13.5px; }
.dg-turn.me.first { justify-self: stretch; max-width: none; border-radius: 12px; background: var(--surface-2); }
.dg-turn.me p { margin: 4px 0 0; line-height: 1.6; }
.dg-who { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); } .dg-who .icon { width: 13px; height: 13px; }
.dg-turn.ai { padding: 4px 16px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface); }
.dg-turn.ai[open] { border-color: var(--accent); }
.dg-turn.ai summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; }
.dg-md { font-size: 14px; line-height: 1.7; }
.dg-md p { margin: 4px 0; } .dg-md code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }
.dg-h2 { margin: 18px 0 6px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 16px; color: var(--accent); }
.dg-md > .dg-h2:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }
.dg-h3 { margin: 14px 0 4px; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.dg-li { position: relative; padding-left: 16px; } .dg-li::before { content: "•"; position: absolute; left: 3px; color: var(--accent); } .dg-li.sub { margin-left: 16px; }
.dg-ol { display: flex; gap: 8px; } .dg-ol > span { flex: none; width: 21px; height: 21px; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 750; background: var(--accent-soft); color: var(--accent); }
.dg-code { position: relative; margin: 6px 0 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line-soft); overflow: auto; }
.dg-code code { background: none; padding: 0; font-size: 12.5px; white-space: pre; }
.dg-copy { position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); font: inherit; font-size: 11.5px; cursor: pointer; }
.dg-copy:hover { color: var(--accent); border-color: var(--accent); }
.dg-fb { margin-top: 12px; padding: 14px 18px; display: grid; gap: 8px; border: 1px solid var(--accent); }
.dg-fb-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* PowerFlex 100% 볼륨 확인 (1.0.12) */
.pfx-ack-btn { display: flex; margin-top: 6px; white-space: nowrap; } .pfx-ack-btn .icon { width: 13px; height: 13px; }
.pfx-ack { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; } .pfx-ack .icon { width: 12px; height: 12px; color: var(--ok); }
.dg-ai { margin-bottom: 12px; } .dg-ai a { color: var(--accent); font-weight: 650; }
.pfx-map.vmware { color: var(--text-2); } .pfx-map.vmware .icon { color: oklch(0.7 0.12 300); }

/* 1.0.13 VM 담당자 (메타코드) */
.role.accent-soft { background: var(--accent-soft); color: var(--accent); }
.vm-mine { margin-top: 4px; color: var(--accent); font-weight: 600; }

/* 1.0.13 코드블록(코드 상자 + 복사) · 메모 보기/편집 · 한 줄 요약 전체 보기 */
.code-blk { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.code-blk-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11.5px; color: var(--text-3); text-transform: lowercase; }
.code-copy { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: none;
  color: var(--text-2); font: inherit; font-family: var(--font-sans, inherit); font-size: 12px; cursor: pointer; text-transform: none; }
.code-copy:hover { border-color: var(--line); color: var(--accent); background: var(--surface); }
.code-copy.done { color: var(--ok); } .code-copy .icon { width: 13px; height: 13px; }
.code-blk pre { margin: 0 !important; padding: 10px 12px; max-height: 420px; overflow: auto; white-space: pre; background: none; border: 0; border-radius: 0;
  font-size: 12.5px; line-height: 1.55; }
.code-blk code { background: none; padding: 0; font-size: inherit; }
.memo-mode { display: flex; align-items: center; gap: 4px; margin: 2px 0 -2px; }
.memo-mode button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.memo-mode button[aria-selected="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.memo-mode button .icon { width: 14px; height: 14px; } .memo-mode .muted { margin-left: 8px; }
.memo-view { flex: 1; min-height: 240px; overflow: auto; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1.65; }
.memo-view .md p { margin: 4px 0; } .memo-code-hint { margin: 0; }
.memo-card { grid-template-columns: minmax(0, 1fr); }
.memo-sum { position: relative; overflow: visible; min-width: 0; }
.memo-sum-full { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 18px 11px 22px; background: var(--surface-2);
  border-top: 1px dashed var(--line); white-space: normal; line-height: 1.55; color: var(--text); box-shadow: 0 -8px 16px -10px rgb(0 0 0 / .35); }
.memo-sum-full b { display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--accent); }
.memo-sum:hover .memo-sum-full { display: block; }
.memo-ho-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.memo-ho-people label[hidden] { display: none; }
.memo-shared { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-top: 1px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px;
  color: var(--accent); background: var(--accent-soft); } .memo-shared .icon { width: 12px; height: 12px; }

/* 1.0.13 VM 콘솔 (보기만) */
.vc { display: grid; gap: 12px; }
.vc-pane, .vc-read { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.vc-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line-soft); }
.vc-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; } .vc-h b .icon { width: 14px; height: 14px; }
.vc-read .vc-h { border-bottom: 0; }
.vc-log { margin: 0; padding: 10px 12px; max-height: 300px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; line-height: 1.5;
  background: #0b0d12; color: #d6dae3; border: 0; border-radius: 0; }
.vc-wait { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; padding: 6px 2px; }
.vc-err { color: var(--bad); }
#vcRead:not(:empty) { padding: 0 12px 12px; }
.vc-read-out { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.vc-h b, #vcLogAt { white-space: nowrap; } .vc-h .select { width: auto; flex: none; }

/* 1.0.13 AI 게시판 (구름이 에이전트) */
.bd-ava { --tc-solid: oklch(0.62 var(--tc-c, 0.15) var(--tc-h, 258)); --tc-soft: oklch(var(--tc-bg) calc(var(--tc-c, 0.13) * 0.45) var(--tc-h, 258));
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; line-height: 1;
  background: var(--tc-soft); box-shadow: inset 0 0 0 2px var(--tc-solid); }
.bd-ava.sm { width: 24px; height: 24px; font-size: 12.5px; box-shadow: inset 0 0 0 1.5px var(--tc-solid); }
.bd-ava.human { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14px; font-weight: 700; }
.bd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.bd-list { display: grid; }
.bd-row { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-soft); color: inherit; text-decoration: none; }
.bd-row:hover { background: var(--surface-2); }
.bd-row-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bd-row-t { display: flex; align-items: center; gap: 8px; } .bd-row-t b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row-x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row-m { display: flex; align-items: center; gap: 4px; } .bd-row-m .icon { width: 13px; height: 13px; }
.bd-row-ag { display: flex; } .bd-row-ag .bd-ava + .bd-ava { margin-left: -6px; }
.bd-typing { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.bd-roster { position: sticky; top: 12px; }
.bd-ag-list { display: grid; gap: 2px; padding: 4px 12px 14px; }
.bd-ag { display: flex; gap: 10px; padding: 8px; border-radius: 10px; } .bd-ag:hover { background: var(--surface-2); }
.bd-ag-x { margin-top: 2px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.bd-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.bd-post { display: grid; gap: 14px; max-width: 1100px; }
.bd-back { justify-self: start; } .bd-back .icon { transform: rotate(90deg); }
.bd-p-head { display: flex; align-items: flex-start; gap: 8px; padding: 18px 22px 6px; }
.bd-p-head h2 { margin: 8px 0 4px; font-size: 20px; line-height: 1.35; }
.bd-p-body { padding: 6px 22px 16px; font-size: 14px; line-height: 1.7; }
.bd-p-agents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--line-soft); background: var(--surface-2); border-radius: 0 0 12px 12px; }
.bd-part { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; } .bd-p-agents .select { width: auto; }
.bd-thread { display: grid; gap: 12px; }
.bd-group { display: grid; gap: 8px; }
.bd-c { display: flex; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface); }
.bd-c.agent { --tc-solid: oklch(0.62 var(--tc-c, 0.15) var(--tc-h, 258)); border-left: 3px solid var(--tc-solid); }
.bd-c.reply { margin-left: 46px; }
.bd-to { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); text-decoration: none; padding: 0 6px; border-radius: 5px; background: var(--bg-sunken); }
.bd-to:hover { color: var(--accent); }
.bd-c.bd-flash { box-shadow: 0 0 0 2px var(--accent); transition: box-shadow .3s; }
.bd-c-body { flex: 1; min-width: 0; }
.bd-c-h { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.bd-ag-name { color: oklch(var(--tc-l) var(--tc-c, 0.13) var(--tc-h, 258)); }
.bd-c-text { font-size: 13.5px; line-height: 1.65; } .bd-c-text .md p { margin: 4px 0; } .bd-c-text h4 { margin: 10px 0 4px; font-size: 13.5px; }
.bd-reply-box { margin-top: 10px; display: grid; gap: 6px; }
.bd-reply-foot, .bd-compose-foot { display: flex; align-items: center; gap: 8px; }
.bd-busy { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px; border: 1px dashed var(--line); color: var(--text-2); font-size: 13px; }
.bd-busy .typing-dots { margin-left: 6px; }
.bd-compose { padding: 14px 16px; display: grid; gap: 10px; }
.bd-wrap > .panel + .panel { margin-top: 0; }
.bd-mentions { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.bd-mention { border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 2px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.bd-mention:hover { color: var(--accent); border-color: var(--accent); }
/* 메모 카드: 한 줄 요약은 평소에 숨기고, 카드에 마우스를 올리면 카드 아래쪽에 떠오른다 */
.memo-card .memo-sum { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0; border: 0; background: none; display: block;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s, transform .15s; }
.memo-card .memo-sum > span[aria-hidden="true"]:first-child, .memo-card .memo-sum-t { display: none; }
.memo-card .memo-sum-full { display: block; position: static; }
.memo-card:hover .memo-sum, .memo-card:focus-visible .memo-sum { opacity: 1; transform: none; }

/* AI 게시판: 새 답글 · 직접 조회 · 에이전트 관리 */
.bd-head-btns { display: flex; gap: 8px; }
.bd-new { flex: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 7px; }
.bd-row.unread .bd-row-t b { color: var(--accent); }
.bd-tools { margin: 4px 0 6px; font-size: 12.5px; }
.bd-tools summary { cursor: pointer; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; } .bd-tools summary .icon { width: 13px; height: 13px; }
.bd-tools ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.bd-tool-res { margin: 4px 0 0; max-height: 120px; overflow: auto; padding: 6px 8px; font-size: 11.5px; white-space: pre-wrap; word-break: break-all; background: var(--surface-2); border-radius: 6px; }
.bd-am-list { display: grid; gap: 8px; max-height: 56vh; overflow: auto; padding-right: 4px; }
.bd-am-row { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; }
.bd-am-row.off { opacity: .55; }
.bd-am-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.bd-am-h { display: flex; align-items: center; gap: 6px; }
.bd-am-form { margin-top: 12px; padding: 12px; border: 1px dashed var(--accent); border-radius: 10px; display: grid; gap: 8px; }
.bd-am-form h4 { margin: 0; }
.bd-am-scopes { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }

/* AI 게시판: 구름이 순회 · 에이전트 제안 · 전용 지식 */
.bd-new-how { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.bd-new-how p { margin: 0; line-height: 1.6; }
.bd-next { white-space: nowrap; }
.bd-am-props { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; border-radius: 10px; border: 1px dashed var(--accent); background: var(--accent-soft); }
.bd-am-prop { display: flex; gap: 10px; align-items: center; }
.bd-am-common { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--surface-2); }
.bd-am-common .icon { width: 14px; height: 14px; }
.bd-doc { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 6px; }

/* 1.0.14 장애 노드 근거 수집 */
.ev-policy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 20px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.ev-policy .icon { width: 14px; height: 14px; }
.ev-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.ev-prof { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ev-prof.on { border-color: var(--accent); background: var(--accent-soft); }
.ev-prof input { margin-right: 6px; }
.ev-cmds { margin: 6px 0 0; padding-left: 16px; font-size: 11.5px; display: grid; gap: 2px; }
.ev-detail h3 .pill { margin-left: 6px; }
.ev-modal { width: min(1100px, 96vw); }
.ev-tabs { margin: 10px 0; }
.ev-item { border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; }
.ev-item summary { cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev-out { margin: 6px 0 0; max-height: 360px; overflow: auto; padding: 8px 10px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all;
  background: #0b0d12; color: #d6dae3; border-radius: 6px; }
.ev-diff .add, .ev-add { color: #7ee2a8; } .ev-diff .del, .ev-del { color: #ff9b9b; }

/* 1.0.14 넥서스 모니터링 */
.nxm-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.nxm-head h2 { margin: 0; font-size: 18px; }
.nxm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin: 16px 0; }
.nxm-two > .panel + .panel { margin-top: 0; }
/* 1.0.14 상황판 머리줄: 글자가 한 글자씩 줄바꿈되지 않게 */
.wall-brand b, .wl-plat span, .wl-plat b, .wl-rot span, .wall-act .btn { white-space: nowrap; }
.wall-brand { flex-shrink: 0; }
.nxm-img { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.nxm-img:hover, .nxm-img:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ==== UI 점검 반영 (2026-11-16 선택안: 1A 2A 3A 4B 5A 6B 7B 8B 9A 10B 12A 13B 14B 15B 16B 17B 18B 19A 20B 21B 22B 23A 24A 25B 26A 27A 28A 29A 30B 31A 32A 33B 34A 36A 37B 38A 39A 40A 41A 42A 43A 44A 45B 46A 47A 48A 49A 50A) ==== */
/* 47A 패널 경계 · 48A 보조 글자 */
:root:not([data-theme="light"]) { --line-soft: rgba(255, 255, 255, 0.10); --text-3: #9aa3b2; }
.panel, .tile, .kpi { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.35); }
:root[data-theme="light"] .panel, :root[data-theme="light"] .tile, :root[data-theme="light"] .kpi { box-shadow: var(--shadow-1); }
.node-sub, .muted.small, .hint, th { font-size: calc(12.5px * var(--fs, 1)); }
/* 49A 버튼 규칙: 주 버튼은 기존 파랑 테두리 그대로(채우지 않음), 나머지는 회색 테두리, 위험은 빨강 글자 */
.btn { --b-line: var(--line); --b-fg: var(--text-2); }
.btn.primary { --b-fg: var(--accent); --b-line: var(--accent); }
.btn.ghost { --b-line: transparent; }
.btn.danger { --b-fg: var(--bad); }
/* 1A 노드 감시 한 줄 */
.agent-box { padding: 10px 12px; }
.agent-line { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; text-align: left; }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.agent-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.agent-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.agent-next { margin-left: auto; color: var(--text-3); }
.agent-next b { color: var(--text-2); font-weight: 650; }
.agent-more { margin-top: 8px; }
.agent-box .countdown { margin-top: 8px; }
/* 2A 공간은 꽉 찬 세그먼트, 플랫폼은 밑줄 탭 */
.space-seg { background: var(--bg-sunken); padding: 3px; border-radius: 12px; gap: 2px; }
.space-seg button { border: 0; border-radius: 9px; height: 30px; background: none; }
.space-seg button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.platform-seg { margin-top: 4px; }
.platform-seg button { font-weight: 650; }
.platform-seg button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
/* 45B 공간 탭 숫자 → 빨간 점 (마우스 올리면 건수) */
.space-count { font-size: 0 !important; width: 8px; height: 8px; min-width: 0; padding: 0; top: 5px; right: 7px; border: 0; }
/* 3A 상단바: 경로 + 큰 제목 + 한 줄 설명 */
.page-crumb { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); margin-bottom: 1px; }
.page-crumb:empty { display: none; }
.page-title { font-size: calc(19px * var(--fs, 1)); }
.page-sub { display: block; }
/* 46A 도구 버튼 이름 */
.tb-tool { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; }
.tb-label { font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--text-2); }
/* 10B 초기 비밀번호: 아바타 빨간 점 + 메뉴 맨 위 */
.avatar { position: relative; }
.avatar-dot { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }
.menu .menu-warn { color: var(--bad); font-weight: 650; }
/* 4B 패널 설명은 제목 옆 ⓘ, 마우스를 올리면 말풍선 */
.panel-head > div:has(> .panel-desc) { position: relative; }
.panel-head .panel-title:has(+ .panel-desc)::after { content: "i"; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 8px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--text-3); font-style: italic; vertical-align: 1px; }
.panel-head .panel-desc { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(620px, 80vw); padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-2); color: var(--text-2); line-height: 1.6; font-size: calc(12.5px * var(--fs, 1)); }
.panel-head > div:hover > .panel-desc, .panel-head > div:focus-within > .panel-desc { display: block; }
/* 5A 0건 패널은 '✓ 이상 없음' 한 줄 (제목을 누르면 펼침) */
.panel.is-empty:not(.open) > :not(.panel-head) { display: none; }
.panel.is-empty > .panel-head { cursor: pointer; padding-top: 12px; padding-bottom: 12px; }
.panel.is-empty:not(.open) > .panel-head { border-bottom: 0; }
.empty-ok { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ok); font-size: calc(12.5px * var(--fs, 1)); font-weight: 650; }
.empty-ok .icon { width: 14px; height: 14px; }
.empty-ok small { color: var(--accent); font-weight: 500; margin-left: 10px; }
/* 6B 경고 배너 묶음 */
.banner-bundle { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.banner-bundle .pill { cursor: pointer; border: 0; font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 650; padding: 4px 12px; height: auto; }
.banner-bundle-list { margin-bottom: 12px; }
/* 7B 이상 없음 타일 → 체크 칩 */
.tile-oks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.tile-oks.all-ok { margin-top: 0; }
.ok-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font: inherit;
  font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; border: 0; text-decoration: none; cursor: pointer; min-height: 0; }
.ok-chip .icon { width: 13px; height: 13px; }
/* 8B 표: 촘촘하게 + 날짜 머리줄 */
td { padding-top: 8px; padding-bottom: 8px; }
tbody tr:nth-child(even) td { background: none; }
tbody tr:hover td { background: var(--surface-hover); }
tr.day-head td { background: var(--bg-sunken) !important; font-size: calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-3); padding: 6px 20px; }
.ev-time-1 { white-space: nowrap; }
.ev-time-1 small { display: inline; color: var(--text-3); margin-left: 4px; }
/* 9A 판정: 채운 알약 */
.sev { padding: 2px 10px 2px 8px; border-radius: 99px; }
.sev.sev-crit { background: var(--bad-soft); }
.sev.sev-warn { background: var(--warn-soft); }
.sev.sev-info { background: var(--info-soft); }
.sev.sev-ok { background: var(--ok-soft); }
.sev i { box-shadow: none; width: 6px; height: 6px; }
/* 12A 오픈스택 호스트 배지 */
.ccard { position: relative; }
.ccard-os { position: absolute; top: -9px; right: 14px; height: 20px; font-size: 11px; }
/* 13B 상세 머리: ← + 제목 · 큰 심각 · 주의 */
.ix-head { align-items: center; }
.ix-head-main { display: flex; align-items: center; gap: 14px; }
.ix-back { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line-soft); color: var(--text-2); text-decoration: none; font-size: 16px; }
.ix-back:hover { background: var(--surface-2); color: var(--text); }
.ix-head-main .ix-title { margin-bottom: 4px; }
.ix-counts { display: flex; gap: 18px; margin-right: 10px; }
.ix-counts > div { text-align: right; line-height: 1.1; }
.ix-counts b { display: block; font-size: calc(24px * var(--fs, 1)); font-weight: 800; color: var(--text-3); }
.ix-counts span { font-size: calc(11.5px * var(--fs, 1)); color: var(--text-3); }
.ix-counts .bad b { color: var(--bad); }
.ix-counts .warn b { color: var(--warn); }
/* 14B 탭 묶음 + 하위 칩 */
.tabs.grouped .tab { padding-left: 18px; padding-right: 18px; font-weight: 650; }
.tabs.grouped .tab-badge.bad { background: var(--bad-soft); color: var(--bad); padding: 0 6px; min-width: 18px; }
.tabs.grouped .tab-badge.warn { background: var(--warn-soft); color: var(--warn); padding: 0 6px; min-width: 18px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 16px; }
.subtabs:empty { display: none; }
.subtab { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line-soft); color: var(--text-2); text-decoration: none; font-size: calc(12.5px * var(--fs, 1)); }
.subtab:hover { color: var(--text); border-color: var(--line); }
.subtab[aria-selected="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.subtab .tab-badge { height: 16px; min-width: 16px; font-size: 10.5px; }
.subtab .tab-badge.bad { background: var(--bad-soft); color: var(--bad); padding: 0 5px; }
.subtab .tab-badge.warn { background: var(--warn-soft); color: var(--warn); padding: 0 5px; }
/* 15B 관측 패널 접기 */
.panel.obs-fold > .panel-head { cursor: pointer; }
.panel.obs-fold:not(.open) > :not(.panel-head) { display: none; }
.panel.obs-fold:not(.open) > .panel-head { border-bottom: 0; }
.panel.obs-fold { margin-bottom: 8px; }
.obs-chev::before { content: "▸"; color: var(--text-3); margin-right: 2px; }
.panel.obs-fold.open .obs-chev::before { content: "▾"; }
.obs-fold-sum { margin-left: auto; }
/* 16B 구름이 할 일 체크리스트 */
.ai-todo-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 9px; background: var(--bg-sunken); }
.ai-todo-row label { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.ai-todo-row input { margin-top: 3px; }
.ai-todo-row span { min-width: 0; }
.ai-todo-row small { display: block; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.ai-todo-row.done b { text-decoration: line-through; color: var(--text-3); }
.ai-todo-tail { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); margin: 6px 2px 0; }
/* 17B 발견 사항 펼침 */
.fd-toggle { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.fd-chev { color: var(--text-3); width: 10px; }
.fd-act-n { font-size: calc(11.5px * var(--fs, 1)); color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 99px; }
.fd-more { margin: 6px 0 2px 18px; }
.obs-act-list { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: calc(12.5px * var(--fs, 1)); line-height: 1.7; }
/* 18B Kube-API 실패 배너 + 할 일 버튼 */
.banner.banner-act { align-items: center; }
.banner-btns { margin-left: auto; display: flex; gap: 8px; flex: none; }
/* 19A 예약 + 실사용 겹친 막대 */
.dmeter { min-width: 220px; }
.dmeter-bar { position: relative; display: block; height: 8px; border-radius: 9px; background: var(--bg-sunken); max-width: 240px; }
.dmeter-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; }
.dmeter-bar .req { background: var(--accent-soft); outline: 1px solid color-mix(in oklch, var(--accent) 60%, transparent); }
.dmeter-bar .use { background: var(--accent); height: 100%; }
.dmeter.warn .use { background: var(--warn); } .dmeter.bad .use { background: var(--bad); }
.dmeter-txt { display: block; font-size: calc(12px * var(--fs, 1)); margin-top: 4px; color: var(--text-2); }
/* 20B 타임라인 한 줄 (누르면 본문) */
.timeline .tl-item { padding-top: 5px; padding-bottom: 5px; cursor: pointer; }
.timeline .tl-item .tl-text { display: none; }
.timeline .tl-item.open .tl-text { display: block; }
.timeline .tl-item:hover { background: var(--surface-hover); border-radius: 8px; }
.timeline .tl-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 21B 얇은 안내 배너 */
.banner.banner-thin { padding: 6px 12px; font-size: calc(12px * var(--fs, 1)); align-items: center; }
.banner.banner-thin .icon { width: 14px; height: 14px; }
/* 22B 오픈스택 개요: 큰 요약 + 문제 목록 */
.os-sum { display: grid; grid-template-columns: 260px 1fr; gap: 14px; margin-bottom: 18px; }
.os-sum-big { padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.os-sum-big > span { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); }
.os-sum-big b { font-size: 46px; font-weight: 800; line-height: 1; }
.os-sum-big b.bad { color: var(--bad); } .os-sum-big b.ok { color: var(--ok); }
.os-sum-big div { color: var(--text-2); font-weight: 600; }
.os-sum-big small { color: var(--text-3); }
.os-sum-list { display: grid; grid-template-columns: 1fr 1fr; padding: 6px 0; }
.os-sum-row { display: grid; grid-template-columns: 10px auto 1fr auto; align-items: center; gap: 10px; padding: 8px 20px; color: var(--text); text-decoration: none; }
.os-sum-row:hover { background: var(--surface-hover); }
.os-sum-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.os-sum-row.tone-bad i { background: var(--bad); } .os-sum-row.tone-warn i { background: var(--warn); } .os-sum-row.tone-info i { background: var(--info); }
.os-sum-row small { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-sum-row.tone-ok, .os-sum-row.tone-ok b { color: var(--text-3); }
.os-sum-row.tone-bad b { color: var(--bad); } .os-sum-row.tone-warn b { color: var(--warn); }
/* 23A 행 버튼: 아이콘만 가로 한 줄 (이름은 마우스 올리면) */
#view-os .row-acts { display: flex; flex-direction: row; gap: 4px; }
#view-os .row-acts .btn { width: 30px; padding: 0; justify-content: center; font-size: 0; }
#view-os .row-acts .btn .icon, #view-os .row-acts .btn svg { width: 15px; height: 15px; margin: 0; }
/* 24A 연동 전 3단계 안내 */
.onboard { padding: 32px 36px; }
.onboard h3 { font-size: calc(18px * var(--fs, 1)); margin: 0; }
.onboard > p { margin: 6px 0 22px; }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.onboard-steps > div { padding: 18px; border-radius: 12px; background: var(--bg-sunken); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.onboard-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.onboard-steps small { color: var(--text-3); }
.onboard-act { margin-top: 22px; }
/* 26A PowerFlex 볼륨 분류 밑줄 탭 */
.kind-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-soft); margin: 0 0 6px; }
.kind-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; }
.kind-tabs button b { font-size: calc(12px * var(--fs, 1)); color: var(--text-3); font-weight: 600; }
.kind-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.kind-tabs button[aria-selected="true"] b { color: var(--accent); }
/* 27A Nexus 블롭 저장소 카드 */
.nxm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 16px; }
.nxm-cards > .panel { margin: 0; }
/* Nexus 이미지 트리 (저장소 → 경로 → 이미지, 기본 접힘) */
.nxt-bar { display: flex; align-items: center; gap: 12px; padding: 0 20px 12px; }
.nxt-search { display: flex; align-items: center; gap: 8px; width: min(520px, 100%); padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-sunken); }
.nxt-search .icon { color: var(--text-3); flex: none; }
.nxt-search .input { border: 0; background: none; box-shadow: none; padding-left: 0; }
.nxt { padding: 0 12px 14px; max-height: 70vh; overflow-y: auto; }
.nxt-dir > summary { display: flex; align-items: center; gap: 8px; height: 34px; margin: 0; padding: 0 8px; color: var(--text); border-radius: 6px; cursor: pointer; list-style: none; font-size: calc(13.5px * var(--fs, 1)); }
.nxt-dir > summary::-webkit-details-marker { display: none; }
.nxt-dir > summary:hover { background: var(--surface-hover); }
.nxt-dir > summary > .icon { color: var(--text-3); width: 15px; height: 15px; }
.nxt-dir > summary b { font-weight: 600; }
.nxt-caret { display: inline-grid; place-items: center; width: 16px; color: var(--text-3); }
.nxt-caret .icon { width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .15s; }   /* 접힘 ▸ · 펼침 ▾ */
.nxt-dir[open] > summary .nxt-caret .icon { transform: none; }
.nxt-n { margin-left: 2px; padding: 0 7px; border-radius: 99px; background: var(--bg-sunken); color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); font-variant-numeric: tabular-nums; }
.nxt-kids { margin-left: 15px; padding-left: 10px; border-left: 1px solid var(--line-soft); }
.nxt-img { display: grid; grid-template-columns: minmax(0, 1fr) 70px 90px 110px 80px; gap: 12px; align-items: center; min-height: 32px; padding: 0 8px 0 32px; border-radius: 6px; }
.nxt-img:hover { background: var(--surface-hover); }
.nxt-name { display: flex; align-items: baseline; gap: 2px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nxt-size { text-align: right; font-variant-numeric: tabular-nums; }
.nxt mark { background: color-mix(in oklch, var(--warn) 35%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.nxm-cards { grid-auto-rows: 1fr; }   /* 줄이 바뀌어도 그래프 카드 · 이미지/태그 카드 높이를 같게 */   /* 일반 .panel + .panel 위 여백이 격자 안에서 카드를 어긋나게 함 */
.nxm-card { padding: 18px 20px; display: flex; gap: 18px; align-items: center; }
.nxm-ring { --c: var(--ok); width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 77% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-sunken) 0); }
.nxm-card.tone-warn .nxm-ring { --c: var(--warn); } .nxm-card.tone-bad .nxm-ring { --c: var(--bad); }
.nxm-ring b { font-size: 20px; font-weight: 800; } .nxm-ring small { font-size: 11px; color: var(--text-3); }
.nxm-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.nxm-card-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nxm-card-name b { font-size: calc(16px * var(--fs, 1)); }
.nxm-card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); }
.nxm-card-body { container-type: inline-size; }
.nxm-kv { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }   /* 이름 · 값은 글자 중간에서 끊지 않는다 */
.nxm-kv b { color: var(--text); font-weight: 650; }
@container (max-width: 380px) {   /* 카드가 좁으면 이름 위 · 값 아래 (각각 한 줄) */
  .nxm-card-row { gap: 8px 14px; }
  .nxm-kv { flex-direction: column; align-items: flex-start; gap: 1px; }
}
.nxm-card-sum { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
/* 28A · 29A 클러스터 화면 */
#view-clusters .panel + .panel { margin-top: 16px; }
#clusterList tr:not(.editing) .inline-form, #clusterList tr:not(.editing) .seg { display: none; }
#clusterList tr.editing .cl-ro { display: none; }
#clusterList .cl-ro.mono { font-size: calc(12.5px * var(--fs, 1)); }
#clusterList tr.editing td { background: var(--surface-hover); }
/* 30B 이름-값 목록: 이름 칸 고정 + 2열 */
.kv { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.kv div { display: grid; grid-template-columns: 160px 1fr; justify-content: start; }
.kv dd { text-align: left; }
/* 31A 빈 이슈 보드: 칸 높이는 내용만큼 + 안내 */
#view-issues .kanban:not(:has(.kc)) { min-height: 0; height: auto; align-items: start; }
#view-issues .kanban:not(:has(.kc)) .kb-col { min-height: 140px; height: auto; }
.kb-guide { padding: 26px; }
.kb-guide b { color: var(--text); }
/* 32A 앤서블 정상 칩 접기 */
.ans-strip:not(.open) .ans-ok-chip { display: none; }
.ans-more { cursor: pointer; font: inherit; border: 0; }
/* 33B 담당 지정 칩 */
.own-assign { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 99px; border: 1px dashed var(--accent); background: none; color: var(--accent); font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; }
.own-assign:hover { background: var(--accent-soft); }
/* 34A · 38A 작은 메뉴 */
details.mini-menu { position: relative; display: inline-block; }
details.mini-menu > summary { list-style: none; cursor: pointer; }
details.mini-menu > summary::-webkit-details-marker { display: none; }
.mini-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; padding: 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.mini-menu-list > * { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: calc(13px * var(--fs, 1)); text-decoration: none; cursor: pointer; text-align: left; }
.mini-menu-list > *:hover { background: var(--surface-hover); }
/* 36A CVE 2단 */
#view-cve.active { display: grid; grid-template-columns: minmax(420px, 520px) 1fr; gap: 16px; align-items: start; }
#view-cve.active > section.panel:first-child { grid-row: 1 / 3; }
#view-cve.active > #cveOut:empty { display: none; }
#view-cve.active > * { margin: 0 !important; min-width: 0; }
/* 37B 보고서 만들기 한 줄 */
#view-reports > section.panel:first-child { display: flex; flex-wrap: wrap; align-items: center; }
#view-reports > section.panel:first-child > .panel-head { border-bottom: 0; flex: none; }
#view-reports > section.panel:first-child > .panel-body { padding-top: 12px; padding-bottom: 12px; }
#view-reports > section.panel:first-child .field > span small { display: none; }
#view-reports .report-actions { display: flex; gap: 28px; align-items: center; }
#view-reports .report-actions > div > b { display: inline; margin-right: 8px; }
#view-reports .report-actions > div { display: flex; align-items: center; gap: 8px; }
#view-reports .report-actions p.muted { display: none; }
/* 39A 게시판 에이전트 목록: 2열 칩 */
.bd-roster { align-self: start; height: auto; }
.bd-ag-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
.bd-ag-list .bd-ag { padding: 6px 8px; margin: 0; align-items: center; }
.bd-ag-list .bd-ag p, .bd-ag-list .bd-ag small, .bd-ag-list .bd-ag .muted { display: none; }
/* 40A · 41A 최근 · 범위 칩 */
.recent-chips, .scope-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.recent-chips { margin: 12px 2px 0; }
#nxRecent .recent-chips { margin: 10px 0 14px; }
.recent-chips .chip, .scope-chips .chip { cursor: pointer; border: 1px solid var(--line-soft); background: none; color: var(--text-2); font: inherit; font-size: calc(12.5px * var(--fs, 1)); padding: 3px 11px; border-radius: 99px; }
.scope-chips .chip.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.search-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* 42A 이미지: 저장 공간 한 줄 + 얇은 업로드 칸 */
.img-disk-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.img-disk-line .img-disk-bar { flex: 1; min-width: 160px; max-width: 360px; height: 6px; }
.img-disk-line.bad > b { color: var(--bad); }
.img-grid.one { grid-template-columns: 1fr; }
.img-up { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.img-up .img-drop { flex: 1; min-width: 360px; min-height: 0; padding: 10px 14px; flex-direction: row; gap: 12px; }
.img-up .img-drop-ic .icon { width: 20px; height: 20px; }
.img-up .img-bar, .img-up .img-bar-txt, .img-up .form-error { flex-basis: 100%; }
/* 43A 감사: 기간 세그먼트 먼저 + 큰 숫자 */
#view-audit .audit-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
#view-audit .audit-quick { align-self: flex-end; }
#view-audit .kpi-big { font-size: calc(30px * var(--fs, 1)); }
/* 44A 인벤토리: 버전이 갈리는 줄 강조, 같은 건 흐리게 */
#view-inventory table:has(.inv-diff) tr:has(.inv-same) td { opacity: 0.6; }
#view-inventory tr:has(.inv-diff) td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.ix-head .btn.primary { color: var(--accent); }
.ix-head .btn:not(.primary) { color: var(--text-2); border-color: var(--line); }
#view-owners tr:has(.own-assign) .own-save { display: none; }
.tl-all-bar { display: flex; justify-content: flex-end; padding: 0 16px; }
.chips .tl-all { margin-left: auto; }

/* ==== GitLab 이슈 보드 (1.0.14) ==== */
dialog.modal.gl-xl { width: min(1240px, calc(100vw - 48px)); max-height: calc(100vh - 48px); }
.gl-connect .gl-token-form { display: flex; gap: 8px; margin-top: 18px; max-width: 620px; }
.gl-connect .gl-token-form .input { flex: 1; }
.gl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gl-group { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; height: 32px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }
.gl-group .select { height: 26px; border: 0; background: none; padding-left: 4px; }
.gl-search { position: relative; display: inline-flex; align-items: center; }
.gl-search .icon { position: absolute; left: 9px; width: 14px; height: 14px; color: var(--text-3); }
.gl-search .input { padding-left: 30px; width: 175px; }
.gl-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(228px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: stretch; }
.gl-col { background: var(--bg-sunken); border: 1px solid var(--line-soft); border-radius: 12px; min-height: max(260px, calc(100vh - 260px)); display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.gl-col > header { display: flex; align-items: center; gap: 8px; padding: 11px 12px 9px; font-size: calc(13px * var(--fs, 1)); }
.gl-col > header i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.gl-col > header .muted { margin-left: auto; font-variant-numeric: tabular-nums; }
.gl-col-body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 10px; overflow-y: auto; flex: 1; min-height: 120px; }
.gl-col-empty { color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); text-align: center; margin: 18px 0; }
.gl-card { display: flex; flex-direction: column; gap: 7px; text-align: left; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.gl-card:hover { border-color: var(--line); background: var(--surface-hover); }
.gl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gl-card.closed .gl-card-t { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }
.gl-card-t { font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gl-card-lbs { display: flex; flex-wrap: wrap; gap: 4px; }
.gl-lb { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 99px; border: 1px solid var(--line-soft); font-size: calc(11.5px * var(--fs, 1)); color: var(--text-2); }
.gl-lb i, .gl-lb-chip i { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.gl-card-meta { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); white-space: nowrap; min-width: 0; }
.gl-card-meta > .mono { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; display: block; }
.gl-card-meta > span:not(.mono) { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.gl-card-meta .icon { width: 12px; height: 12px; }
.gl-when { margin-left: auto; }
.gl-due { color: var(--text-2); }
.gl-due.soon { color: var(--warn); }
.gl-due.late { color: var(--bad); font-weight: 600; }
.gl-avs { display: inline-flex; }
.gl-av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; flex: none; }
.gl-avs .gl-av + .gl-av { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.gl-issue-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.gl-issue-head > div { flex: 1; min-width: 0; }
.gl-issue-head h3 { margin: 2px 0 4px; }
.gl-issue-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; padding: 16px 22px 20px; max-height: calc(100vh - 170px); overflow-y: auto; }
.gl-sec { margin: 22px 0 8px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.gl-notes { display: flex; flex-direction: column; gap: 12px; }
.gl-note { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.gl-note .md { margin-top: 2px; }
.gl-reply { margin-top: 14px; }
.gl-reply textarea { width: 100%; resize: vertical; }
.gl-reply-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.gl-side { display: flex; flex-direction: column; gap: 12px; font-size: calc(13px * var(--fs, 1)); }
.gl-side .field { margin: 0; }
.gl-move { display: flex; gap: 6px; }
.gl-move .select { flex: 1; }
.gl-side-row { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; }
.gl-side-row > span { color: var(--text-3); }
.gl-side-row > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.gl-hist div { margin-top: 6px; line-height: 1.5; }
.gl-sum { display: flex; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--accent-soft); font-size: calc(13px * var(--fs, 1)); }
.gl-sum ol { margin: 0; padding-left: 18px; }
.gl-md h3.gl-h, .gl-md h4.gl-h, .gl-md h5.gl-h, .gl-md h6.gl-h { margin: 16px 0 6px; font-size: calc(14px * var(--fs, 1)); font-weight: 700; }
.gl-md h3.gl-h:first-child, .gl-md h4.gl-h:first-child { margin-top: 0; }
.gl-md ul.gl-tasks { list-style: none; padding-left: 2px; }
.gl-md ul.gl-tasks li { display: flex; align-items: baseline; gap: 8px; }
.gl-box { display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid var(--text-3); border-radius: 4px; font-size: 10px; flex: none; transform: translateY(2px); }
.gl-tasks li.done .gl-box { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.gl-tasks li.done { color: var(--text-2); }
.gl-md-table { border-collapse: collapse; margin: 8px 0; font-size: calc(12.5px * var(--fs, 1)); }
.gl-md-table th, .gl-md-table td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
.gl-md-table th { background: var(--bg-sunken); font-weight: 650; }
.gl-md blockquote { margin: 6px 0; padding: 2px 12px; border-left: 3px solid var(--line); color: var(--text-2); }
.gl-at { color: var(--accent); font-weight: 600; }
.gl-ref { color: var(--accent); }
.gl-compose { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.gl-compose > :not(.gl-issue-head):not(.modal-foot) { margin-left: 22px; margin-right: 22px; }
.gl-compose .modal-foot { border-top: 1px solid var(--line-soft); padding-top: 14px; padding-bottom: 14px; }
.gl-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.gl-tpl { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.gl-tpl b { font-size: calc(13px * var(--fs, 1)); }
.gl-tpl small { color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); line-height: 1.35; }
.gl-tpl:hover { border-color: var(--line); }
.gl-tpl[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.gl-tpl[aria-selected="true"] b { color: var(--accent); }
.gl-ask { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 6px 6px 12px; border: 1px dashed color-mix(in oklch, var(--accent) 55%, transparent); border-radius: 10px; }
.gl-ask > .icon { color: var(--accent); }
.gl-ask .input { flex: 1; border: 0; background: none; box-shadow: none; }
.gl-ask-note { margin-top: 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); display: flex; gap: 6px; align-items: center; }
.gl-ask-note .icon { color: var(--accent); }
.gl-fields { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr; gap: 12px; margin-top: 4px; }
.gl-compose .field { margin-top: 12px; }
.gl-flabel { display: block; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.gl-lb-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 72px; overflow-y: auto; }
.gl-lb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--line-soft); border-radius: 99px; background: none; color: var(--text-2); font: inherit; font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
.gl-lb-chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.gl-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; min-height: 0; }
.gl-ed-left { display: flex; flex-direction: column; min-width: 0; }
.gl-ed-left textarea { flex: 1; min-height: 300px; height: 34vh; resize: vertical; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.6; border-top-left-radius: 0; border-top-right-radius: 0; }
.gl-tools { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--bg-sunken); }
.gl-tools button { height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: inherit; font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
.gl-tools button:hover { background: var(--surface-hover); color: var(--text); }
.gl-tools .select { margin-left: auto; height: 26px; width: 130px; }
.gl-ed-right { border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 14px; overflow-y: auto; height: calc(34vh + 35px); min-height: 335px; background: var(--surface); }
.gl-prev-h { margin-bottom: 8px; }
.gl-lint { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: calc(12.5px * var(--fs, 1)); min-height: 20px; }
.gl-lint > div { display: flex; align-items: center; gap: 6px; }
.gl-lint .icon { width: 14px; height: 14px; flex: none; }
.gl-lint-e { color: var(--bad); }
.gl-lint-w { color: var(--warn); }
.gl-lint-i { color: var(--text-2); }
.gl-lint-ok { color: var(--ok); }
.gl-tadmin { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-top: 14px; overflow-y: auto; }
.gl-tlist { display: flex; flex-direction: column; gap: 6px; }
/* GitLab: 올린 이슈 고치기 (직접 · 구름이) */
.gl-side-acts { display: flex; flex-direction: column; gap: 6px; }
.gl-side-acts .btn { justify-content: flex-start; }
.gl-ed-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gl-ed-chips .chip { cursor: pointer; }
.gl-ed-changes { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.gl-ed-changes > .icon { color: var(--accent); flex: none; margin-top: 2px; }
.gl-ed-changes ul { margin: 4px 0 0; padding-left: 18px; }
.gl-ed-tabs { display: flex; gap: 2px; margin: -4px 0 10px; border-bottom: 1px solid var(--line-soft); }
.gl-ed-tabs button { height: 30px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--text-3); font: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
.gl-ed-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.gl-diff { font-size: calc(12px * var(--fs, 1)); line-height: 1.6; border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; }
.gl-diff > div { display: grid; grid-template-columns: 18px 1fr; padding: 0 8px 0 4px; white-space: pre-wrap; word-break: break-word; }
.gl-diff i { font-style: normal; color: var(--text-3); text-align: center; }
.gl-diff-add { background: color-mix(in oklch, var(--ok) 14%, transparent); }
.gl-diff-del { background: color-mix(in oklch, var(--bad) 13%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--bad) 55%, transparent); }
.gl-diff-ctx { color: var(--text-3); }
.gl-diff-gap { display: block !important; text-align: center; color: var(--text-3); background: var(--bg-sunken); }
/* GitLab: 구름이 주간 보고 (보고용 텍스트) */
.gl-rep-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.gl-rep-bar .gl-ask { flex: 1; margin-top: 0; }
.gl-rep-body { margin-top: 14px; margin-bottom: 14px; min-height: 260px; }
.gl-rep-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px; color: var(--text-2); }
.gl-rep-wait > .icon { color: var(--accent); width: 22px; height: 22px; animation: pulse 1.4s ease-in-out infinite; }
.gl-rep-doc { max-width: 820px; margin: 0 auto; padding: 28px 36px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-sunken); }
.gl-rep-doc h2 { margin: 0; font-size: calc(19px * var(--fs, 1)); letter-spacing: -0.01em; }
.gl-rep-meta { margin: 6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: calc(12.5px * var(--fs, 1)); }
.gl-rep-doc section + section { margin-top: 18px; }
.gl-rep-doc h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: calc(14.5px * var(--fs, 1)); }
.gl-rep-doc h4 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: calc(12px * var(--fs, 1)); }
.gl-rep-doc ul { margin: 0; padding-left: 30px; display: grid; gap: 5px; }
.gl-rep-doc li { font-size: calc(13.5px * var(--fs, 1)); line-height: 1.65; color: var(--text); }
.gl-rep-doc li::marker { color: var(--text-3); }
.gl-rep-doc section p { margin: 0 0 0 30px; font-size: calc(13px * var(--fs, 1)); }
.gl-rep-tag { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 5px; font-style: normal; font-size: calc(11.5px * var(--fs, 1)); font-weight: 650; vertical-align: 1px; }
.gl-rep-tag.done { background: color-mix(in oklch, var(--ok) 16%, transparent); color: var(--ok); }
.gl-rep-tag.doing { background: color-mix(in oklch, var(--info) 16%, transparent); color: var(--info); }
.gl-compose { overflow-y: auto; }
.gl-compose > * { flex: none; }
.gl-compose > .gl-issue-head, .gl-compose > .modal-foot { position: sticky; z-index: 2; background: var(--surface); }
.gl-compose > .gl-issue-head { top: 0; }
.gl-compose > .modal-foot { bottom: 0; }
.gl-ed-left textarea { height: 30vh; }
.gl-ed-right { height: calc(30vh + 35px); }
.gl-issue-head h3 { padding-bottom: 0; border-bottom: 0; }
.gl-card-lbs { align-items: center; }
.gl-proj { color: var(--text-3); font-size: calc(11.5px * var(--fs, 1)); margin-right: 2px; }
.btn.tl-all { height: 30px; padding: 0 14px; gap: 6px; font-weight: 650; background: var(--accent-soft); }
.btn.tl-all:hover { background: color-mix(in oklch, var(--accent) 22%, transparent); }
.btn.tl-all[aria-pressed="true"] { background: none; }
.tl-all-ic { display: inline-grid; place-items: center; }
.tl-all-ic .icon { width: 18px; height: 18px; stroke-width: 2.6; transition: transform 0.2s; }
.btn.tl-all[aria-pressed="true"] .tl-all-ic .icon { transform: rotate(180deg); }   /* 펼친 뒤에는 위쪽 화살표 */
.chips:has(> .tl-all) { align-items: center; }

/* ==== 라이트 모드 다듬기 (2026-11-16): 바탕 · 패널 · 사이드바 층을 나누고, 선 · 보조 글자를 또렷하게, 흰 화면 눈부심을 줄임 (다크 모드는 그대로) ==== */
:root[data-theme="light"] {
  --bg: oklch(0.958 0.007 258);           /* 바탕: 옅은 회청색 — 흰 패널이 떠 보이게 */
  --bg-sunken: oklch(0.938 0.009 258);    /* 사이드바 · 칸반 칸 · 우물 */
  --surface: oklch(0.993 0 0);            /* 패널: 완전한 흰색보다 한 단계 낮춰 눈부심 줄임 (색조 없음 — 빨강 · 노랑 color-mix가 보라로 틀어지지 않게) */
  --surface-2: oklch(0.968 0.006 258);
  --surface-hover: oklch(0.952 0.012 262);
  --line: oklch(0.855 0.011 258);
  --line-soft: oklch(0.9 0.009 258);
  --text: oklch(0.2 0.02 258);
  --text-2: oklch(0.36 0.022 258);
  --text-3: oklch(0.47 0.022 258);
  --accent-soft: oklch(0.53 0.19 266 / 0.11);
  --shadow-1: 0 1px 2px oklch(0.3 0.03 258 / 0.07), 0 1px 3px -1px oklch(0.3 0.03 258 / 0.06);
}
:root[data-theme="light"] .sidebar { border-right-color: var(--line); }
:root[data-theme="light"] .topbar { background: color-mix(in oklch, var(--surface) 82%, transparent); }
:root[data-theme="light"] .panel, :root[data-theme="light"] .tile, :root[data-theme="light"] .kpi:not(.kpis .kpi) { border-color: var(--line-soft); }
:root[data-theme="light"] .panel-head { border-bottom-color: var(--line-soft); }
/* 표: 머리줄은 옅은 띠 + 진한 글자, 줄 구분은 얇은 선 (줄무늬 대신) */
:root[data-theme="light"] th { background: var(--surface-2) !important; color: var(--text-2); border-bottom: 1px solid var(--line); }
:root[data-theme="light"] tbody tr:nth-child(even) td { background: none; }
:root[data-theme="light"] td { border-bottom: 1px solid var(--line-soft); }
:root[data-theme="light"] tbody tr:last-child td { border-bottom: 0; }
:root[data-theme="light"] tbody tr:hover td { background: var(--surface-hover); }
/* 입력칸은 흰 바탕 + 테두리 (회색 칸이 패널 안에서 흐려 보이던 것) */
:root[data-theme="light"] :is(.input, .select, .textarea) { background-color: var(--surface); }
/* 사이드바 공간 전환 · 칩 · 버튼 테두리 */
:root[data-theme="light"] .space-seg { background: oklch(0.905 0.012 258); }
:root[data-theme="light"] .space-seg button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-1); }
:root[data-theme="light"] .chip { border-color: var(--line); }
:root[data-theme="light"] .btn:not(.primary):not(.ghost):not(.danger) { --b-line: var(--line); }
:root[data-theme="light"] .nav-item[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-1); }
:root[data-theme="light"] .gl-col { background: var(--bg-sunken); border-color: var(--line-soft); }

/* ==== 헬름 차트 만들기 (1.0.14, 사용자 페이지) ==== */
.hm-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.hm-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface-2); color: var(--text-3); font-size: calc(13px * var(--fs, 1)); }
.hm-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--line); color: var(--text-2); font-size: 12px; }
.hm-steps span.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.hm-steps span.on b { background: var(--accent); color: #fff; }
.hm-steps span.done { color: var(--text-2); }
.hm-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 20px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; background: var(--surface-2); }
.hm-drop .icon { width: 30px; height: 30px; color: var(--accent); }
.hm-drop:hover, .hm-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.hm-drop.busy { opacity: 0.7; pointer-events: none; }
.hm-tips { margin: 14px 0 0; padding-left: 18px; line-height: 1.8; }
.hm-ana .panel-body { display: flex; flex-direction: column; gap: 12px; }
.hm-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-kind { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-soft); border-radius: 10px; font-size: calc(13px * var(--fs, 1)); color: var(--text-2); }
.hm-kind b { font-size: calc(16px * var(--fs, 1)); color: var(--text); }
.hm-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-warns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: calc(12.5px * var(--fs, 1)); color: var(--text-2); }
.hm-warns li { display: flex; gap: 6px; align-items: flex-start; }
.hm-warns .icon { width: 14px; height: 14px; color: var(--warn); flex: none; margin-top: 3px; }
.hm-notes ul { margin: 6px 0 0; padding-left: 18px; }
.hm-form { display: flex; flex-direction: column; gap: 4px; }
.hm-q { display: grid; grid-template-columns: 30px 1fr; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.hm-q-h { display: contents; }
.hm-q-h > div b { font-size: calc(14.5px * var(--fs, 1)); }
.hm-q-h > div p { margin: 2px 0 0; }
.hm-q-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.hm-q-b { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hm-q-b > .hm-sec, .hm-q-b > .hm-grid, .hm-q-b > .hm-inline, .hm-q-b > textarea, .hm-q-b > .hm-ex, .hm-q-b > p { flex-basis: 100%; }
.hm-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hm-inline .input { width: auto; min-width: 220px; flex: 0 1 280px; }
.hm-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.6fr; gap: 10px; }
.hm-grid .field { margin: 0; }
.hm-extra { width: 100%; }
.hm-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-sec { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: calc(13px * var(--fs, 1)); }
.hm-sec > .icon { flex: none; margin-top: 2px; }
.hm-sec p { margin: 4px 0 0; color: var(--text-2); }
.hm-sec.ok { background: var(--ok-soft); }
.hm-sec.ok > .icon { color: var(--ok); }
.hm-sec.bad { background: var(--bad-soft); }
.hm-sec.bad > .icon { color: var(--bad); }
.hm-sec.warn { background: var(--warn-soft); }
.hm-sec.warn > .icon { color: var(--warn); }
.hm-sec .hm-inline { margin-top: 8px; }
.hm-go { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.hm-res-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; flex-wrap: wrap; }
.hm-res-t { display: flex; align-items: center; gap: 8px; font-size: calc(16px * var(--fs, 1)); }
.hm-res-h .select { width: 210px; }
.hm-tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.hm-tabs button { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; }
.hm-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.hm-dot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--bad); margin-right: 6px; vertical-align: middle; }
.hm-split { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 560px; }
.hm-tree { border-right: 1px solid var(--line-soft); padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; background: var(--surface-2); }
.hm-dir { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: calc(13px * var(--fs, 1)); }
.hm-dir .icon { width: 14px; height: 14px; color: var(--accent); }
.hm-dir.sub { margin-top: 6px; padding-left: 20px; }
.hm-file { display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 22px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font: inherit; font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px; text-align: left; cursor: pointer; }
.hm-file.deep { padding-left: 40px; }
.hm-file .icon { width: 13px; height: 13px; flex: none; opacity: 0.7; }
.hm-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-file:hover { background: var(--surface-hover); color: var(--text); }
.hm-file.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.hm-badge, .hm-new { margin-left: auto; font-style: normal; font-family: "Pretendard Variable", sans-serif; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); flex: none; }
.hm-new { background: var(--ok-soft); color: var(--ok); }
.hm-view { min-width: 0; display: flex; flex-direction: column; }
.hm-view-h { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.hm-view-h > div { flex: 1; }
.hm-view-h p { margin: 2px 0 0; }
.hm-code { overflow: auto; max-height: 640px; padding: 8px 0; font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.65; }
.hm-ln { display: grid; grid-template-columns: 48px 1fr; padding-right: 16px; }
.hm-ln i { font-style: normal; text-align: right; padding-right: 12px; color: var(--text-3); user-select: none; }
.hm-ln code { background: none; border: 0; padding: 0; white-space: pre; color: var(--text); }
.hm-ln.edit { background: color-mix(in oklch, var(--warn) 9%, transparent); }
.hm-ln.must { background: color-mix(in oklch, var(--warn) 15%, transparent); box-shadow: inset 3px 0 0 var(--warn); }
.hm-ln.focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.hm-c { color: var(--text-3); }
.hm-k { color: var(--accent); }
.hm-t { color: var(--ok); }
.hm-guide { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.hm-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.hm-step:last-child { border-bottom: 0; }
.hm-step h4 { margin: 2px 0 6px; font-size: calc(14.5px * var(--fs, 1)); }
.hm-step p { margin: 0 0 8px; color: var(--text-2); }
.hm-step .dg-code { margin: 6px 0 8px; }
.hm-edits { width: 100%; margin: 6px 0; }
.hm-edits tr[data-hm-goto] { cursor: pointer; }
.hm-edits td { vertical-align: top; }
.hm-ai { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.hm-ai-box { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.hm-ai-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-ai-h b { display: inline-flex; align-items: center; gap: 6px; }
.hm-ai-box textarea { width: 100%; }
.hm-ai-box .btn.primary { align-self: flex-start; }
.hm-aq .hm-q-b .input { flex: 1 1 220px; }
.hm-turn { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.hm-turn:first-of-type { border-top: 0; }
.hm-turn > span { font-size: 12px; color: var(--text-3); }
.hm-turn p { margin: 2px 0 6px; white-space: pre-wrap; font-size: calc(13px * var(--fs, 1)); }
.hm-turn.ai p { color: var(--text); }
.hm-turn.user p { color: var(--text-2); }
.hm-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.hm-mode-b { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.hm-mode-b small { color: var(--text-3); }
.hm-mode-b[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hm-mode-b[aria-selected="true"] b { color: var(--accent); }
.hm-app { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.hm-app-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hm-grid-app { grid-template-columns: 1fr 1.6fr 0.8fr; margin-top: 8px; }
.hm-grid-app textarea { width: 100%; resize: vertical; }

/* ---- 헬름 차트 만들기 다듬기 (2026-11-16): 칸 높이 36px로 통일 · 글 칸 안쪽 여백 · 보조 라벨 폭 · 고른 칩은 연한 파랑 */
.hm-q-b .dg-chip, .hm-aq .dg-chip { height: 36px; padding: 0 14px; line-height: 1; }
.hm-q-b .dg-chip.on, .hm-aq .dg-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hm-inline .btn, .hm-q-b > .hm-inline > .input { height: 36px; }
.hm-inline > .muted.small:first-child { min-width: 84px; }
textarea.hm-auto { min-height: 36px; padding: 7px 11px; line-height: 20px; resize: none; overflow: hidden; }
textarea.hm-auto-lg { min-height: 62px; }
.hm-app ::placeholder, .hm-q-b ::placeholder, .hm-ai ::placeholder { color: color-mix(in oklch, var(--text-3) 62%, transparent); }
.hm-grid-app { align-items: start; }
.hm-sec code { white-space: nowrap; }
.hm-ai-box > p { margin: 0; }
.hm-ai-h { min-height: 34px; }
.hm-mode-b { flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; }
.hm-mode-b > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hm-mode-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-3); flex: none; }
.hm-mode-b[aria-selected="true"] .hm-mode-ic { background: var(--accent-soft); color: var(--accent); }
.hm-q-n { margin-top: -2px; }

/* ---- 헬름 차트 만들기: 이미지 풀 시크릿 고르기 · 기타 입력 · 인증서 */
.hm-sec.info { background: var(--accent-soft); }
.hm-sec.info > .icon { color: var(--accent); }
.hm-pick { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.hm-pick .dg-chip { height: 36px; padding: 0 14px; }
.hm-pick .dg-chip .icon { width: 14px; height: 14px; }
.hm-pick .dg-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hm-note { display: flex; gap: 6px; align-items: center; margin: 0; color: var(--warn); flex-basis: 100%; }
.hm-note .icon { width: 14px; height: 14px; flex: none; }
.hm-wait .icon { width: 13px; height: 13px; animation: spin 1.2s linear infinite; vertical-align: -2px; }
.hm-grid-res { grid-template-columns: repeat(4, minmax(0, 1fr)); flex-basis: 100%; }
.hm-tls { display: flex; flex-direction: column; gap: 8px; flex-basis: 100%; }
.hm-tls-note { margin: 0 0 0 92px; }
.hm-q-b > .hm-pick, .hm-q-b > .hm-tls, .hm-q-b > .hm-grid-res, .hm-q-b > .hm-note { flex-basis: 100%; }
.hm-cmd { display: table; margin-top: 6px; white-space: nowrap; }   /* 명령은 자기 줄에, 중간에서 끊기지 않게 */


/* ==== GitLab 실제 수정 기능 보강 (보드 드래그 · 인라인 수정 · 댓글 수정/삭제 · 멀티 담당자 · 마일스톤 · 비공개) ==== */
.btn.xs { height: 24px; padding: 0 8px; font-size: calc(11.5px * var(--fs, 1)); border-radius: 6px; }
.btn.xs .icon { width: 12px; height: 12px; }
.gl-card[draggable="true"] { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-user-drag: element; }
.gl-card[draggable="true"] * { -webkit-user-drag: none; }
.gl-card[draggable="true"]:active { cursor: grabbing; }
.gl-card.gl-card-dragging { opacity: 0.45; outline: 1px dashed var(--accent); }
.gl-board.gl-dragging .gl-col { transition: background 0.12s, box-shadow 0.12s; }
.gl-board.gl-dragging .gl-col:not(.gl-can) { opacity: 0.55; }
.gl-board.gl-dragging .gl-col.gl-can { box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 45%, transparent); }
.gl-board.gl-dragging .gl-col.gl-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.gl-board.gl-dragging .gl-card:not(.gl-card-dragging),
.gl-board.gl-dragging .gl-col-empty { pointer-events: none; }
.gl-board.gl-dragging .gl-col.gl-over .gl-col-empty { color: var(--accent); font-weight: 600; }
.gl-drag-ghost { position: fixed; z-index: 9999; pointer-events: none; opacity: 0.9; box-shadow: var(--shadow-2); transform: rotate(1.5deg); }
.gl-card-lock { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--warn); }
.gl-card-lock .icon { width: 13px; height: 13px; }
.gl-card-ms { padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--text-3); font-size: calc(11px * var(--fs, 1)); }
.gl-dnd-hint { white-space: nowrap; }
@media (max-width: 1720px) { .gl-dnd-hint { display: none; } }
.gl-head-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gl-head-meta .pill .icon { width: 11px; height: 11px; }
.gl-head-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: none; }
.gl-task-cb { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; transform: translateY(2px); }
.gl-task-cb:disabled { cursor: wait; opacity: 0.6; }
.gl-side-sec { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.gl-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3); font-size: calc(12px * var(--fs, 1)); font-weight: 600; }
.gl-side-head > div { display: flex; gap: 8px; align-items: center; }
.gl-link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-size: calc(12px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
.gl-link-btn:hover { text-decoration: underline; }
.gl-link-btn:disabled { opacity: 0.5; cursor: wait; }
.gl-side-val { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.gl-person { display: inline-flex; align-items: center; gap: 5px; font-size: calc(12.5px * var(--fs, 1)); }
.gl-av.sm { width: 18px; height: 18px; font-size: 10px; }
.gl-conf-on { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 600; }
.gl-conf-on .icon { width: 13px; height: 13px; }
.gl-side-edit { display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-sunken); }
.gl-side-ed-foot { display: flex; justify-content: flex-end; gap: 6px; }
.gl-pick-list { display: flex; flex-direction: column; gap: 3px; max-height: 150px; overflow-y: auto; }
.gl-pick-item { display: flex; align-items: center; gap: 7px; padding: 3px 5px; border-radius: 6px; cursor: pointer; font-size: calc(12.5px * var(--fs, 1)); }
.gl-pick-item:hover { background: var(--surface-hover); }
.gl-pick-item input { margin: 0; accent-color: var(--accent); }
.gl-me-tag { font-style: normal; padding: 0 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 650; }
.gl-fields-new, .gl-fields-edit { grid-template-columns: 1.3fr 1.4fr 0.9fr 1fr 0.75fr; align-items: start; }
.gl-fields .field > .gl-flabel { margin-bottom: 0; }
.gl-due-in { display: flex; gap: 4px; align-items: center; }
.gl-due-in .input { min-width: 0; }
.gl-conf-chk { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-sunken); cursor: pointer; font-size: calc(13px * var(--fs, 1)); white-space: nowrap; }
.gl-conf-chk input { margin: 0; accent-color: var(--accent); }
.gl-msel-wrap { display: flex; gap: 4px; align-items: center; }
.gl-msel { position: relative; flex: 1; min-width: 0; }
.gl-msel-btn { list-style: none; display: flex; align-items: center; cursor: pointer; overflow: hidden; }
.gl-msel-btn::-webkit-details-marker { display: none; }
.gl-msel-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-msel-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); display: flex; flex-direction: column; gap: 6px; }
.gl-msel-top { display: flex; gap: 6px; align-items: center; }
.gl-notes { position: relative; display: flex; flex-direction: column; gap: 14px; }
.gl-notes.has-items::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 0; width: 2px; background: var(--line-soft); pointer-events: none; }
.gl-note { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.gl-av.gl-note-av { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 3px var(--surface); position: relative; z-index: 1; }
.gl-note-card { min-width: 0; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); overflow: hidden; transition: border-color 0.15s; }
.gl-note-card:hover { border-color: var(--line); }
.gl-note-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 14px; background: color-mix(in oklch, var(--bg-sunken) 65%, var(--surface)); border-bottom: 1px solid var(--line-soft); }
.gl-note-head .btn.xs { opacity: 0.72; transition: opacity 0.15s; }
.gl-note-card:hover .gl-note-head .btn.xs, .gl-note-head .btn.xs:focus-visible { opacity: 1; }
.gl-role-tag { padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 650; }
.gl-note-body { padding: 11px 14px; }
.gl-note-body .md > :first-child { margin-top: 0; }
.gl-note-body .md > :last-child { margin-bottom: 0; }
.gl-notes-empty { padding: 10px 0 2px; margin: 0; }
.gl-note-edit { margin-top: 2px; }
.gl-reply { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; margin-top: 16px; }
.gl-cmt-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-sunken); transition: border-color 0.15s, box-shadow 0.15s; }
.gl-cmt-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gl-cmt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line-soft); background: color-mix(in oklch, var(--surface) 55%, var(--bg-sunken)); border-radius: 11px 11px 0 0; }
.gl-cmt-tools { display: flex; align-items: center; gap: 2px; }
.gl-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 26px; min-width: 28px; padding: 0 7px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font: inherit; font-size: calc(12px * var(--fs, 1)); font-weight: 600; cursor: pointer; transition: background 0.12s, color 0.12s; }
.gl-tbtn:hover { background: var(--surface-2); color: var(--text); }
.gl-tbtn .icon { width: 13px; height: 13px; }
.gl-at-btn { color: var(--accent); background: var(--accent-soft); padding: 0 9px; margin-left: 4px; }
.gl-at-btn:hover { background: color-mix(in oklch, var(--accent) 22%, transparent); color: var(--accent); }
.gl-at-wrap { position: relative; }
.gl-at-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 230px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 12px 28px -8px oklch(0 0 0 / 0.45); display: flex; flex-direction: column; gap: 6px; }
.gl-at-list { display: flex; flex-direction: column; gap: 2px; max-height: 170px; overflow-y: auto; }
.gl-at-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: calc(12.5px * var(--fs, 1)); text-align: left; cursor: pointer; }
.gl-at-item:hover, .gl-at-item.active { background: var(--accent-soft); color: var(--text); }
.gl-at-item small { margin-left: auto; }
.gl-cmt-body { position: relative; }
textarea.gl-cmt-ta { width: 100%; height: auto; min-height: 76px; max-height: 260px; padding: 11px 14px; border: 0; border-radius: 0; background: transparent; resize: none; overflow-y: auto; line-height: 1.6; font-size: calc(13px * var(--fs, 1)); }
.gl-cmt-ta:focus { outline: none; box-shadow: none; }
.gl-cmt-ac { position: absolute; left: 12px; bottom: calc(100% + 4px); z-index: 30; min-width: 230px; max-width: 320px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 12px 28px -8px oklch(0 0 0 / 0.48); display: flex; flex-direction: column; gap: 2px; }
.gl-cmt-prev { padding: 12px 14px; min-height: 76px; max-height: 280px; overflow-y: auto; background: var(--surface); }
.gl-cmt-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line-soft); background: color-mix(in oklch, var(--surface) 45%, var(--bg-sunken)); border-radius: 0 0 11px 11px; }
.gl-cmt-mentions { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); }
.gl-cmt-mentions .icon { width: 13px; height: 13px; }
.gl-inl-title { font-size: calc(16px * var(--fs, 1)); font-weight: 700; margin-top: 4px; }
.gl-inl-ed { display: flex; flex-direction: column; gap: 8px; }
.gl-inl-ed .gl-ask { margin-top: 0; }
.gl-inl-ta { width: 100%; min-height: 260px; resize: vertical; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.6; border-top-left-radius: 0; border-top-right-radius: 0; }
.gl-inl-view { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; padding: 12px 14px; min-height: 220px; max-height: 420px; overflow-y: auto; background: var(--surface); }
.gl-inl-foot { display: flex; align-items: center; gap: 8px; }
.gl-diff-meta { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); font-size: calc(12.5px * var(--fs, 1)); display: flex; flex-direction: column; gap: 2px; }
.gl-facts { font-size: calc(12.5px * var(--fs, 1)); color: var(--text-3); white-space: nowrap; }
.gl-tabs { padding: 4px 12px 0; }
.gl-tool-up { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
.gl-tool-up:hover { border-color: var(--accent); color: var(--accent); }
.gl-tool-up .icon { width: 13px; height: 13px; }
.gl-upload-btn, .gl-ai-btn { position: relative; }
.gl-ai-btn { gap: 4px; padding: 0 8px; color: var(--accent); }
.gl-ai-btn:hover { background: var(--accent-soft); }
.gl-cmt-card.drop, .gl-ed-left.drop, .gl-inl-ed.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.gl-md-img-link { display: inline-block; margin: 6px 0; }
.gl-md-img { display: block; max-width: 100%; max-height: 280px; border-radius: 8px; border: 1px solid var(--line-soft); object-fit: contain; }
@media (max-width: 900px) { .gl-fields-new, .gl-fields-edit { grid-template-columns: 1fr 1fr; } .gl-issue-grid { grid-template-columns: 1fr; } }

/* 1.0.17 AI 게시판 — 게시판 표 · 분류 · 쪽 번호 */
.bd-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 20px 12px; }
.bd-cats button { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px; height: 30px; padding: 0 12px;
  font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.bd-cats button b { font-weight: 600; color: var(--text-3); font-size: 12px; }
.bd-cats button:hover { border-color: var(--accent); color: var(--accent); }
.bd-cats button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bd-cats button[aria-selected="true"] b { color: var(--accent); }
.bd-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.bd-table col.c-no { width: 64px; } .bd-table col.c-cat { width: 104px; } .bd-table col.c-who { width: 150px; }
.bd-table col.c-ag { width: 92px; } .bd-table col.c-day { width: 84px; } .bd-table col.c-st { width: 64px; }
.bd-table th { padding: 10px 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-align: center; background: var(--surface-2);
  border-top: 2px solid var(--text-2); border-bottom: 1px solid var(--line); }
.bd-table th:nth-child(3) { text-align: left; padding-left: 14px; }
.bd-table td { padding: 11px 8px; border-bottom: 1px solid var(--line-soft); text-align: center; vertical-align: middle; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-table td.no, .bd-table td.day { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bd-table td.t { text-align: left; padding-left: 14px; }
.bd-table td.t a { color: var(--text); text-decoration: none; } .bd-table td.t a b { font-weight: 500; }
.bd-table td.who { font-size: 13px; }
.bd-tr { cursor: pointer; } .bd-tr:hover td { background: var(--surface-2); } .bd-tr:hover td.t a { text-decoration: underline; text-underline-offset: 3px; }
.bd-tr.unread td.t a b { color: var(--accent); font-weight: 600; }
.bd-tr .bd-new { margin-left: 6px; padding: 0 5px; font-size: 10.5px; vertical-align: 1px; }
.bd-cc { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.bd-tr .bd-typing { margin-left: 8px; }
.bd-tr .bd-row-ag { display: inline-flex; justify-content: center; }
.bd-st { font-size: 12px; color: var(--info); font-weight: 600; } .bd-st.ok { color: var(--ok); }
.bd-cat { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--bg-sunken); color: var(--text-2); border: 1px solid var(--line-soft); }
.bd-cat.cat-incident { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.bd-cat.cat-security { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.bd-cat.cat-perf, .bd-cat.cat-change, .bd-cat.cat-tech { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.bd-cat.cat-idea, .bd-cat.cat-share { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.bd-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 20px 18px; }
.bd-pager { display: flex; gap: 4px; }
.bd-pg { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.bd-pg:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.bd-pg:disabled { opacity: .35; cursor: default; }
.bd-pg[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.bd-p-tags { display: flex; align-items: center; gap: 8px; } .bd-cat-sel { width: auto; }

/* 1.0.17 이미지 보안 검사 (Trivy, 준비 중) */
.tv-ready { padding: 28px 30px; display: grid; gap: 22px; max-width: 1100px; }
.tv-hero { display: flex; gap: 16px; align-items: flex-start; } .tv-hero > .icon { width: 40px; height: 40px; color: var(--accent); flex: none; }
.tv-hero h2 { margin: 2px 0 6px; font-size: 20px; } .tv-hero p { margin: 0; line-height: 1.65; max-width: 760px; }
.tv-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tv-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px; display: grid; gap: 6px; align-content: start; background: var(--surface-2); }
.tv-card .icon { width: 20px; height: 20px; color: var(--text-3); } .tv-card p { margin: 0; line-height: 1.55; }
.tv-admin { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
/* 1.0.17 이미지 보안 검사 — 대시보드 · 상세 */
.tv-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tv-st { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 13px; color: var(--text-2); }
.tv-st .icon { width: 14px; height: 14px; } .tv-st.ok .icon { color: var(--ok); } .tv-st.warn { color: var(--warn); border-color: var(--warn); } .tv-st.bad { color: var(--bad); border-color: var(--bad); }
.tv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tv-kpi { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.tv-kpi span { font-size: 12.5px; color: var(--text-3); font-weight: 600; } .tv-kpi b { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; } .tv-kpi small { font-size: 12px; color: var(--text-3); }
.tv-kpi.bad b { color: var(--bad); } .tv-kpi.warn b { color: var(--warn); }
.tv-fresh { padding: 12px 18px; display: grid; gap: 6px; border-color: var(--warn); margin-bottom: 14px; }
.tv-fresh-h { display: flex; align-items: center; gap: 8px; color: var(--warn); } .tv-fresh-h b { color: var(--text); }
.tv-fresh-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; } .tv-fresh-row:hover { background: var(--surface-2); }
.tv-sev { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 7px; border-radius: 5px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-sev.c { color: #fff; background: var(--bad); } .tv-sev.h { color: var(--bad); background: var(--bad-soft); } .tv-sev.m { color: var(--warn); background: var(--warn-soft); }
.tv-sev.l, .tv-sev.u { color: var(--text-3); background: var(--bg-sunken); } .tv-sev.none { color: var(--ok); font-weight: 600; } .tv-sev.none .icon { width: 12px; height: 12px; }
.tv-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.tv-table th { padding: 10px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-align: left; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tv-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.tv-table th:first-child, .tv-table td:first-child { padding-left: 20px; }
.tv-table col.c-where { width: 190px; } .tv-table col.c-sev { width: 250px; } .tv-table col.c-fix { width: 130px; } .tv-table col.c-run { width: 90px; } .tv-table col.c-at { width: 100px; }
.tv-table td.t a { color: var(--text); text-decoration: none; } .tv-tr { cursor: pointer; } .tv-tr:hover td { background: var(--surface-2); } .tv-tr:hover td.t a { text-decoration: underline; text-underline-offset: 3px; }
.tv-where { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.pill.sm { font-size: 11px; padding: 0 6px; }
.tv-jobs { display: grid; padding: 0 0 8px; }
.tv-job { display: grid; grid-template-columns: 74px 130px minmax(0, 1.4fr) minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 8px 20px; border-top: 1px solid var(--line-soft); }
.tv-job-t, .tv-job-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tv-job-k { font-size: 13px; } .bad-text { color: var(--bad); }
.tv-detail { display: grid; gap: 14px; }
.tv-d-head { display: flex; align-items: flex-start; gap: 8px; padding: 18px 22px 8px; } .tv-d-head h2 { margin: 0 0 4px; font-size: 20px; } .tv-d-head > div { display: grid; gap: 3px; min-width: 0; }
.tv-d-where { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 12px 22px 16px; border-top: 1px solid var(--line-soft); }
.tv-d-where > div { display: grid; gap: 5px; align-content: start; } .tv-loc { display: flex; align-items: center; gap: 8px; min-width: 0; } .tv-loc .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-vtable col.c-cve { width: 170px; } .tv-vtable col.c-sev1 { width: 76px; } .tv-vtable col.c-pkg { width: 170px; } .tv-vtable col.c-ver { width: 150px; }
.tv-vtable td { white-space: nowrap; } .tv-vt { color: var(--text-2); }
.tv-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.tv-mini { text-decoration: none; } .img-scan-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; } .img-scan-line > .icon { width: 15px; height: 15px; color: var(--accent); }
#tvNexus { width: auto; flex: none; }
.tv-table col.c-own { width: 150px; } .tv-own { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-use { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 4px 20px 18px; }
.tv-use-h { font-size: 13px; font-weight: 700; margin: 6px 0 8px; } .tv-use-h .muted { font-weight: 500; }
.tv-mini-t { font-size: 13px; } .tv-mini-t th:first-child, .tv-mini-t td:first-child { padding-left: 10px; } .tv-mini-t td { white-space: nowrap; }
/* 이미지 상세 심각도 요약: 비율 막대 + 범례 (범례 = 아래 목록 거르기) */
.tv-sum { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; padding: 8px 22px 18px; }
.tv-sum-total b { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; } .tv-sum-total span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.tv-sum-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg-sunken); }
.tv-sum-bar i { display: block; height: 100%; }
.tv-sum-leg { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; margin-left: -8px; }
.tv-sum-leg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; }
.tv-sum-leg button:hover { background: var(--surface-2); } .tv-sum-leg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.tv-sum-leg b { color: var(--text); font-variant-numeric: tabular-nums; } .tv-sum-leg small { color: var(--text-3); font-size: 12px; }
.tv-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sv-c { background: var(--bad); } .sv-h { background: oklch(0.7 0.16 45); } .sv-m { background: var(--warn); } .sv-l { background: oklch(0.65 0.02 258); }
.tv-sev.h { color: oklch(0.74 0.16 45); background: oklch(0.72 0.16 45 / 0.15); }
/* 1.0.17 훈련소 */
.tr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
@media (max-width: 1380px) { .tr-wrap { grid-template-columns: minmax(0, 1fr); } }
.tr-me { display: grid; justify-items: end; } .tr-me b { font-size: 26px; }
.tr-rank { padding: 4px 16px 14px; } .tr-rank-row { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; padding: 7px 4px; border-top: 1px solid var(--line-soft); } .tr-rank-row.me { color: var(--accent); }
.tr-play { display: grid; gap: 12px; } .tr-bar { display: flex; align-items: center; gap: 10px; }
.tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.tr-left { padding: 18px 20px; display: grid; gap: 14px; } .tr-story { line-height: 1.7; color: var(--text-2); }
.tr-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; } .tr-steps li.locked { color: var(--text-3); } .tr-steps li.cur { font-weight: 600; }
.tr-hint { margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--warn); }
.tr-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tr-act .input { flex: 1; min-width: 200px; } .tr-opt { text-align: left; white-space: normal; height: auto; padding: 8px 12px; width: 100%; justify-content: flex-start; }
.tr-done { padding: 14px 16px; border-radius: 10px; background: var(--ok-soft); } .tr-done h3 { margin: 0 0 6px; }
.tr-right { padding: 12px; display: grid; gap: 10px; }
.tr-term { background: #0b0f17; color: #d6deeb; font-family: var(--mono, monospace); font-size: 13px; border-radius: 10px; padding: 12px 14px; height: 460px; overflow: auto; }
.tr-term > div { white-space: pre-wrap; word-break: break-all; } .tr-term .cmd { color: #7fb4ff; margin-top: 6px; } .tr-term .warn { color: #ffb86b; }
.tr-in { display: flex; gap: 8px; margin-top: 6px; } .tr-in span { color: #7fe0a3; white-space: nowrap; } .tr-in input { flex: 1; background: none; border: 0; outline: none; color: inherit; font: inherit; }
.tr-screen { display: grid; gap: 4px; } .tr-log { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 12.5px; white-space: pre-wrap; }
.tr-lobby col.w1 { width: 92px; } .tr-lobby col.w2 { width: 58px; } .tr-lobby col.w3 { width: 104px; }
.tr-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-head-r { display: flex; align-items: center; gap: 16px; }
.tr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 20px 12px; } .tr-filters .select { width: auto; } .tr-filters .search { margin-left: auto; }
.tr-size { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-size: 12.5px; color: var(--text-3); } .tr-size .select { width: auto; }
.tr-tabs { display: flex; align-items: center; gap: 12px; }
.tr-term { user-select: text; cursor: text; } .tr-term ::selection { background: #3b5bdb; color: #fff; }
.ok-text { color: var(--ok); }
.tr-ed { display: grid; gap: 10px; } .tr-ed-grid { display: grid; grid-template-columns: 180px 1fr 150px 100px 100px; gap: 10px; }
.tr-ed-steps { display: grid; gap: 10px; } .tr-ed-step { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface-2); }
.tr-ed-row { display: flex; align-items: center; gap: 10px; } .tr-ed-row .select { width: auto; }
.tr-head-r { display: flex; align-items: center; gap: 16px; }
.tr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 20px 12px; } .tr-filters .select { width: auto; } .tr-filters .search { margin-left: auto; }
.tr-size { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-size: 12.5px; color: var(--text-3); } .tr-size .select { width: auto; }
.tr-tabs { display: flex; align-items: center; gap: 12px; }
.tr-term { user-select: text; cursor: text; } .tr-term ::selection { background: #3b5bdb; color: #fff; }
.ok-text { color: var(--ok); }
.tr-ed { display: grid; gap: 10px; } .tr-ed-grid { display: grid; grid-template-columns: 180px 1fr 150px 100px 100px; gap: 10px; }
.tr-ed-steps { display: grid; gap: 10px; } .tr-ed-step { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface-2); }
.tr-ed-row { display: flex; align-items: center; gap: 10px; } .tr-ed-row .select { width: auto; }
.tr-ed textarea[name="commands"], .tr-ed textarea[data-k="solve"], .tr-ed textarea[data-k="accept"] { white-space: pre; overflow-x: auto; font-size: 12.5px; }
.bd-pg.txt { padding: 0 10px; font-size: 12.5px; white-space: nowrap; }
.tr-ai { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; } .tr-ai .input { flex: 1; }
