/*! © grepboard.com — https://tools.grepboard.com */
@font-face{font-family:'Roboto Flex Variable';font-style:normal;font-weight:100 1000;font-stretch:25% 151%;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;src:url(/fonts/roboto-flex-latin-standard-normal.woff2) format('woff2-variations')}
@font-face{font-family:'GB Sans';font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;src:url(/fonts/ibm-plex-sans-kr-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'GB Sans';font-style:normal;font-weight:600;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;src:url(/fonts/ibm-plex-sans-kr-latin-600-normal.woff2) format('woff2')}
/* ── 출처: log/web/styles/base.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 기본 = 글로우 HUD 토큰(워크스페이스 펄스) + 키네틱 타이포. 효과(data-fx)는 하나도 가져오지 않는다 */
:root {
  color-scheme: dark;
  --bg: #0f1217; --surface: #161b23; --surface-2: #1d232d; --surface-3: #242b37; --line: #2a3140; --line-2: #343c4c;
  --ink: #e8ebf1; --ink-2: #aab2c0; --muted: #8b94a4;
  --accent: #3987e5; --accent-ink: #fff; --accent-soft: rgba(57,135,229,.16); --acc2: #7c6cff; --s3: #199e70; --s4: #c98500;
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b;
  /* 상태 의미 색 — 스타일이 바뀌어도 계열은 같다: 5xx 빨강 · 4xx 주황(+빗금) · 3xx 회청 · 2xx 무채색 */
  --c5xx: #ef5350; --c4xx: #f0913a; --c3xx: #7f93b0; --c2xx: #566070; --c2xx-line: #8a94a5;
  /* 글꼴 정책(개인정보): 내려받는 글꼴은 라틴 UI 용 3개뿐이고 페이지를 열 때 전부 미리 받는다.
     로그에서 온 글자는 시스템 글꼴(--sys · --mono)로만 그린다 → 로그 내용에 따라 글꼴 요청이 달라지지 않는다 */
  --sys: -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font: "GB Sans", -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --kfont: "Roboto Flex Variable", "GB Sans", -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --maxw: 1440px; --radius: 16px; --radius-s: 8px;
  --glow: rgba(57,135,229,.55); --glow2: rgba(124,108,255,.45);
  --glass: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  --glass-line: rgba(255,255,255,.09); --glass-hi: rgba(255,255,255,.06);
  --bg-aura: radial-gradient(1100px 520px at 12% -8%, rgba(57,135,229,.20), transparent 60%), radial-gradient(900px 480px at 92% 4%, rgba(124,108,255,.16), transparent 60%), radial-gradient(700px 400px at 55% 110%, rgba(25,158,112,.10), transparent 60%);
  --bg-grid: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 44px);
  --card-glow: .35;
}
@media (min-width: 1800px) { :root { --maxw: 1720px; } }
@media (min-width: 2300px) { :root { --maxw: 1840px; } body { zoom: 1.2; } }
@media (min-width: 3200px) { :root { --maxw: 2000px; } body { zoom: 1.5; } }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eef1f5; --surface-3: #e4e8ee; --line: #dde2ea; --line-2: #cfd6e0;
    --ink: #111827; --ink-2: #4b5563; --muted: #5f6877;
    --accent: #1f6fcf; --accent-soft: rgba(42,120,214,.12); --acc2: #6b5ce7; --s3: #13895f; --s4: #b07400;
    --c5xx: #d03b3b; --c4xx: #c8711a; --c3xx: #6b7e9b; --c2xx: #c3c9d2; --c2xx-line: #8c95a3;
    --shadow: 0 18px 50px rgba(17,24,39,.18);
    --glow: rgba(42,120,214,.18); --glow2: rgba(107,92,231,.14);
    --glass: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
    --glass-line: rgba(17,24,39,.10); --glass-hi: rgba(255,255,255,.9);
    --bg-aura: radial-gradient(1100px 520px at 12% -8%, rgba(42,120,214,.12), transparent 60%), radial-gradient(900px 480px at 92% 4%, rgba(107,92,231,.10), transparent 60%);
    --bg-grid: none; --card-glow: .12;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eef1f5; --surface-3: #e4e8ee; --line: #dde2ea; --line-2: #cfd6e0;
  --ink: #111827; --ink-2: #4b5563; --muted: #5f6877;
  --accent: #1f6fcf; --accent-soft: rgba(42,120,214,.12); --acc2: #6b5ce7; --s3: #13895f; --s4: #b07400;
  --c5xx: #d03b3b; --c4xx: #c8711a; --c3xx: #6b7e9b; --c2xx: #c3c9d2; --c2xx-line: #8c95a3;
  --shadow: 0 18px 50px rgba(17,24,39,.18);
  --glow: rgba(42,120,214,.18); --glow2: rgba(107,92,231,.14);
  --glass: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  --glass-line: rgba(17,24,39,.10); --glass-hi: rgba(255,255,255,.9);
  --bg-aura: radial-gradient(1100px 520px at 12% -8%, rgba(42,120,214,.12), transparent 60%), radial-gradient(900px 480px at 92% 4%, rgba(107,92,231,.10), transparent 60%);
  --bg-grid: none; --card-glow: .12;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-aura), var(--bg-grid); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -40px; z-index: 100; background: var(--accent); color: #fff; padding: 6px 10px; border-radius: 6px; }
.skip:focus { top: 8px; }

/* ── 머리줄 ── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 6px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--kfont); font-size: 18px; font-weight: 800; font-stretch: 120%; letter-spacing: -.02em; }
.brand span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.brand span::before { content: "/ "; }
.mock-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #1a1300; background: var(--warn); border-radius: 4px; padding: 2px 6px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 11px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-s); font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.icon { padding: 5px 9px; min-width: 34px; justify-content: center; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.sent { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); min-height: 30px; }
.sent .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.sent:hover { border-color: var(--good); color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); }
.seg > * { border: 0; background: transparent; padding: 5px 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 30px; }
.seg > * + * { border-left: 1px solid var(--line); }
.seg > [aria-current="page"], .seg > [aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--ink); }
.menu button:hover, .menu button:focus-visible { background: var(--surface-2); }
.menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }

/* ── 본문 ── */
main { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 18px; min-width: 0; }
.app { display: grid; gap: 16px; min-width: 0; }
section > h2, .h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.h2 .mono { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.card { background: var(--glass), var(--surface); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; box-shadow: inset 0 1px 0 var(--glass-hi), 0 12px 32px rgba(0,0,0,.22); position: relative; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px 180px at 0% 0%, var(--glow), transparent 70%); opacity: var(--card-glow); }
.card > * { position: relative; }

/* ── 빈 화면: 놓는 곳 ── */
.empty { display: grid; place-items: center; min-height: 58vh; text-align: center; padding: 28px 16px; border: 2px dashed var(--line-2); border-radius: 20px; background: var(--glass), color-mix(in srgb, var(--surface) 70%, transparent); }
.empty h1, .empty .drop-title { margin: 0 0 8px; font-family: var(--kfont); font-size: clamp(26px, 5vw, 48px); font-weight: 300; font-stretch: 100%; letter-spacing: -.03em; line-height: 1.1; transition: font-weight .45s cubic-bezier(.2,.7,.2,1), font-stretch .45s cubic-bezier(.2,.7,.2,1); }
.empty h1:hover, .empty .drop-title:hover { font-weight: 800; font-stretch: 120%; }
.empty p { margin: 0 0 18px; color: var(--ink-2); }
.empty .row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.empty .samples { margin-top: 18px; color: var(--muted); font-size: 13px; }
.empty .samples button { font-family: var(--mono); }
.paste { margin-top: 14px; width: min(720px, 100%); display: grid; gap: 8px; text-align: left; }
.paste textarea { width: 100%; min-height: 160px; resize: vertical; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; font-family: var(--mono); font-size: 12.5px; }
.drop-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 78%, transparent); border: 3px dashed var(--accent); pointer-events: none; }
.drop-overlay p { font-family: var(--kfont); font-size: clamp(22px, 4vw, 40px); font-weight: 700; margin: 0; padding: 0 16px; text-align: center; }
.progress { display: grid; gap: 8px; max-width: 640px; margin: 18vh auto; text-align: center; }
.progress .track { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.progress .big { font-family: var(--kfont); font-size: 44px; font-weight: 250; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ── 입력줄 · 필터줄 ── */
.inbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.inbar .what { font-family: var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.inbar .sep { color: var(--line-2); }
.inbar .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.inbar select, .shell-in input, .fmt select, .fmt input[type="text"] { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 5px 8px; min-height: 32px; max-width: 100%; }
.fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grep { display: flex; align-items: center; flex: 1 1 320px; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding-left: 10px; }
.grep:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grep label { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.grep input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px; font-family: var(--mono); font-size: 13px; outline: none; }
.grep input[aria-invalid="true"] { color: var(--c5xx); }
.grep .tog { border: 0; border-left: 1px solid var(--line); background: transparent; font-family: var(--mono); font-size: 12px; padding: 0 10px; align-self: stretch; color: var(--muted); min-width: 36px; }
.grep .tog[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; padding: 3px 4px 3px 9px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--ink); max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.chip button { border: 0; background: transparent; border-radius: 50%; width: 22px; height: 22px; color: var(--ink-2); display: inline-grid; place-items: center; }
.chip button:hover { background: var(--surface-3); color: var(--ink); }
.selcount { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── 탭 ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; font-size: 13.5px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

/* ── 수치 띠 (키네틱 타이포: 크고 가는 숫자, 올리면 굵고 넓게) ── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--glass), var(--surface); border: 1px solid var(--glass-line); border-radius: 14px; padding: 12px 14px 14px; min-width: 0; box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 26px rgba(0,0,0,.2); }
.kpi .l { font-family: var(--kfont); text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { display: block; margin-top: 6px; font-family: var(--kfont); font-size: 44px; line-height: 1; letter-spacing: -.035em; font-weight: 250; font-stretch: 100%; font-variation-settings: "opsz" 144; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: font-weight .45s cubic-bezier(.2,.7,.2,1), font-stretch .45s cubic-bezier(.2,.7,.2,1), letter-spacing .45s, color .3s; }
.kpi .v small { font-size: .42em; font-weight: 400; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.kpi:hover .v { font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; color: var(--accent); }
.kpi.alert .v { color: var(--c5xx); }

/* ── 시간축 ── */
.tl .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.tl .head h2 { margin: 0; }
.tl .legend { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.tl .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.tl .chart { position: relative; touch-action: none; user-select: none; }
.tl svg { display: block; width: 100%; height: 170px; overflow: visible; }
.tl .hint { font-size: 12px; color: var(--muted); }
.axis text, .chart-text { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.axis line, .gridline { stroke: var(--line); stroke-width: 1; }
.brush { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.cursor { stroke: var(--ink-2); stroke-dasharray: 3 3; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font-family: var(--mono); font-size: 11.5px; box-shadow: var(--shadow); white-space: nowrap; }
.tip b { font-weight: 600; }

/* 계열 색 (영역 · 막대 · 범례 공용) */
.sk-2xx, .sk-INFO, .sk-ok, .sk-queries { fill: var(--c2xx); background: var(--c2xx); stroke: var(--c2xx-line); }
.sk-3xx, .sk-DEBUG, .sk-TRACE { fill: var(--c3xx); background: var(--c3xx); stroke: var(--c3xx); }
.sk-4xx, .sk-WARN, .sk-WARNING { fill: url(#gb-hatch); background: repeating-linear-gradient(135deg, var(--c4xx) 0 2px, color-mix(in srgb, var(--c4xx) 45%, transparent) 2px 5px); stroke: var(--c4xx); }
.sk-5xx, .sk-ERROR, .sk-FATAL, .sk-CRITICAL, .sk-fail { fill: var(--c5xx); background: var(--c5xx); stroke: var(--c5xx); }
.sk-0 { fill: var(--accent); background: var(--accent); stroke: var(--accent); }
.sk-1 { fill: var(--acc2); background: var(--acc2); stroke: var(--acc2); }
.sk-2 { fill: var(--s3); background: var(--s3); stroke: var(--s3); }
.sk-3 { fill: var(--s4); background: var(--s4); stroke: var(--s4); }
.area { stroke-width: 1; stroke-opacity: .9; }
.hatch-bg { fill: color-mix(in srgb, var(--c4xx) 38%, transparent); }
.hatch-line { stroke: var(--c4xx); stroke-width: 2.2; }

/* ── 먼저 볼 것 ── */
.insights ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: ins; }
.insights li { counter-increment: ins; }
.insights button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--ink); font-size: 14px; }
.insights button::before { content: counter(ins); font-family: var(--kfont); font-weight: 700; font-size: 16px; color: var(--muted); min-width: 16px; }
.insights button:hover { border-color: var(--line-2); background: var(--surface-2); }
.insights li:first-child button { border-color: var(--accent); background: var(--accent-soft); }
.insights li:first-child button::before { color: var(--accent); }
.insights .sev { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.insights .sev3 { color: var(--c5xx); }
.insights .none { color: var(--muted); }

/* ── 카드 격자 ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.grid .card.wide { grid-column: 1 / -1; }
.ch { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.ch .tt { flex: 1; min-width: 0; }
.ch .nm { font-family: var(--kfont); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ch h3 { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ch .acts { display: flex; gap: 4px; flex-shrink: 0; }
.ch .acts .btn { min-height: 28px; padding: 3px 8px; font-size: 12px; }
.card .chart { min-width: 0; overflow: hidden; }
.card svg { display: block; width: 100%; overflow: visible; }
.card .empty-note { color: var(--muted); font-size: 13px; padding: 12px 0; }
.term { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); display: flex; align-items: flex-start; gap: 6px; padding: 8px 8px 8px 12px; }
.term pre { margin: 0; flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.term pre::before { content: "$ "; color: var(--accent); }
.term .btn { min-height: 26px; padding: 2px 8px; font-size: 11.5px; }

/* 막대 */
.bar-row { cursor: pointer; }
.bar-row .bg { fill: transparent; }
.bar-row:hover .bg, .bar-row:focus-visible .bg { fill: var(--surface-2); }
.bar-row:focus { outline: none; }
.bar-row:focus-visible .bg { stroke: var(--accent); stroke-width: 1.5; }
.bar-row.static { cursor: default; }
.bar { fill: var(--ink-2); fill-opacity: .55; }
.bar.focus { fill: var(--accent); fill-opacity: 1; }
.bar.st-2 { fill: var(--c2xx); fill-opacity: 1; }
.bar.st-3 { fill: var(--c3xx); fill-opacity: 1; }
.bar.st-4 { fill: url(#gb-hatch); fill-opacity: 1; stroke: var(--c4xx); stroke-width: 1; }
.bar.st-5 { fill: var(--c5xx); fill-opacity: 1; }
.bar-label { font-family: var(--mono); font-size: 11.5px; fill: var(--ink); }
.bar-sub { font-family: var(--font); font-size: 10.5px; fill: var(--muted); }
.bar-val { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 막대(데이터가 바뀔 때만 움직임) */
@media (prefers-reduced-motion: no-preference) {
  .bar, .hist-bar { transition: width .35s ease, height .35s ease, y .35s ease; }
}
/* 분포 */
.hist-bar { fill: var(--ink-2); fill-opacity: .5; }
.hist-bar.tail { fill: var(--c5xx); fill-opacity: .8; }
.mark line { stroke: var(--ink); stroke-dasharray: 3 3; stroke-width: 1; }
.mark text { font-family: var(--mono); font-size: 10.5px; fill: var(--ink); }
.mark.p99 line { stroke: var(--c5xx); }
.mark.p99 text { fill: var(--c5xx); }
/* 열지도 */
.heat-cell { stroke: var(--bg); stroke-width: 1; }
/* 해부 막대 */
.part-TR { fill: var(--c3xx); } .part-Tw { fill: var(--c4xx); } .part-Tc { fill: var(--acc2); } .part-Tr { fill: var(--accent); } .part-Ta { fill: var(--s3); }
/* 구성도 */
.topo-edge { fill: none; stroke: var(--ink-2); stroke-opacity: .35; }
.topo-edge.err { stroke: var(--c5xx); stroke-opacity: .85; }
.topo-node rect { fill: var(--surface-2); stroke: var(--line-2); }
.topo-node.err rect { stroke: var(--c5xx); stroke-width: 2; }
.topo-node.focus rect { stroke: var(--accent); stroke-width: 2; }
.topo-node text { font-family: var(--mono); font-size: 11px; fill: var(--ink); }
.topo-node .sub { fill: var(--muted); font-size: 10px; }
.topo-node { cursor: pointer; }
.topo-node:focus { outline: none; }
.topo-node:focus-visible rect { stroke: var(--accent); stroke-width: 2.5; }
/* 파레토 */
.cum-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.cum-dot { fill: var(--accent); }
/* 순서(seq) */
.seq-line { stroke: var(--line-2); }
.seq-ok { fill: var(--s3); }
.seq-fail { fill: var(--c5xx); }
/* 표 */
.tbl-wrap { overflow-x: auto; max-width: 100%; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line-2); padding: 5px 8px; }
.tbl td { border-bottom: 1px solid var(--line); padding: 5px 8px; font-family: var(--mono); overflow-wrap: anywhere; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }

/* ── 원문 줄: 오른쪽 서랍 / 모바일 아래 시트 ── */
.drawer { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: min(560px, 46vw); background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .drawer { animation: slidein .22s ease-out; } }
@keyframes slidein { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer .dh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.drawer .dh h2 { margin: 0; font-size: 14px; }
.drawer .dh .mono { color: var(--muted); font-size: 12px; }
.drawer .dh .btn { margin-left: auto; }
.vlist { flex: 1; overflow: auto; position: relative; font-family: var(--mono); font-size: 12px; }
.vlist .spacer { position: relative; }
.vline { position: absolute; left: 0; right: 0; height: 20px; line-height: 20px; white-space: pre; padding: 0 10px 0 0; display: flex; }
.vline .n { flex: 0 0 64px; text-align: right; padding-right: 10px; color: var(--muted); user-select: none; }
.vline .tx { flex: 1; }
.vline:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
mark { background: color-mix(in srgb, var(--warn) 45%, transparent); color: inherit; border-radius: 2px; }
.drawer .none { padding: 16px; color: var(--muted); }

/* ── 셸 · 형식 탭 ── */
.shell-in { display: flex; gap: 8px; }
.shell-in .grep { flex: 1; }
.shell-out { margin-top: 10px; }
.shell-out pre { margin: 0; max-height: 50vh; overflow: auto; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; white-space: pre; }
.shell-stats { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.shell-err { margin-top: 10px; border: 1px solid color-mix(in srgb, var(--c4xx) 60%, transparent); background: color-mix(in srgb, var(--c4xx) 10%, var(--surface)); border-radius: 10px; padding: 10px 12px; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.examples button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; color: var(--ink); }
.examples button:hover { border-color: var(--accent); }
.examples .d { display: block; font-family: var(--font); color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.fmt { display: grid; gap: 14px; }
.cands { display: flex; flex-wrap: wrap; gap: 6px; }
.tokens { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--mono); font-size: 12.5px; }
.tok { display: inline-grid; gap: 2px; border: 0; padding: 0; background: transparent; text-align: left; max-width: 100%; }
.tok .v { padding: 3px 6px; border-radius: 6px 6px 0 0; background: var(--surface-2); overflow-wrap: anywhere; }
.tok .r { height: 18px; line-height: 18px; padding: 0 6px; font-size: 10.5px; border-radius: 0 0 6px 6px; color: #fff; font-family: var(--font); font-weight: 600; }
.tok:focus-visible { outline: 2px solid var(--accent); }
/* 역할 색 — 띠(.tok .r) · 역할 단추의 작은 네모가 같은 색 */
.role-Time { --rc: #2a78d6; } .role-Status { --rc: #b33b3b; } .role-Level { --rc: #9c4fd1; } .role-Method { --rc: #5a6475; }
.role-Path { --rc: #13795a; } .role-Ip { --rc: #9a6200; } .role-Bytes { --rc: #4a6a8a; } .role-Latency { --rc: #c0392b; }
.role-Upstream { --rc: #a5480f; } .role-UserAgent { --rc: #6b5ce7; } .role-Referer { --rc: #5b6b7f; } .role-User { --rc: #8a5a00; } .role-Session { --rc: #b0306e; }
.role-Host { --rc: #2f6f8f; } .role-Message { --rc: #4b5563; } .role-Category { --rc: #3e7a3e; } .role-Number { --rc: #6d4c8f; } .role-Ignore { --rc: transparent; }
.tok .r { background: var(--rc); }
.tok.role-Ignore .r { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.role-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }
.recipes { display: grid; gap: 6px; }
.recipes li { display: flex; gap: 8px; align-items: center; }
.soon { color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; }

/* ── 대화상자 ── */
dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,8,12,.6); }
dialog .dl { padding: 22px 22px 18px; display: grid; gap: 12px; }
dialog h2 { margin: 0; font-family: var(--kfont); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
dialog p, dialog li { margin: 0; color: var(--ink-2); }
dialog ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
dialog code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); overflow-wrap: anywhere; }
dialog .foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
dialog label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
dialog input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.keys dt { font-family: var(--mono); }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.skip-note { border: 1px dashed var(--line-2); background: var(--surface); border-radius: 12px; padding: 10px 14px; display: grid; gap: 6px; min-width: 0; }
.skip-note p { margin: 0; overflow-wrap: anywhere; }
.skip-note .skip-lines ol { margin: 6px 0 0; padding-left: 3.5em; max-height: 240px; overflow: auto; font-size: 12px; color: var(--ink-2); }
.skip-note .skip-lines li { overflow-wrap: anywhere; white-space: pre-wrap; }
.err-banner { border: 1px solid var(--c5xx); background: color-mix(in srgb, var(--c5xx) 10%, var(--surface)); border-radius: 12px; padding: 10px 14px; }

/* ── 검색용 본문 ── */
.seo { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); color: var(--ink-2); }
.seo h2 { margin: 0 0 6px; font-size: 16px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.seo p, .seo li { margin: 0 0 8px; line-height: 1.65; }
.seo ol, .seo ul { margin: 0; padding-left: 18px; }
.seo code { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.foot-note { color: var(--muted); font-size: 12px; text-align: center; padding: 16px; }

/* ── 모바일 ── */
@media (max-width: 720px) {
  .top-in { gap: 6px; padding: 8px 12px; }
  .brand b { font-size: 16px; }
  .sent { font-size: 11px; padding: 3px 8px; }
  main { padding: 12px 12px 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi .v { font-size: 32px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .inbar .right { margin-left: 0; }
  .drawer { top: auto; left: 0; width: 100%; height: 72vh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; }
  @media (prefers-reduced-motion: no-preference) { .drawer { animation: sheetin .22s ease-out; } }
  .vline .n { flex-basis: 48px; }
}
@keyframes sheetin { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ── 샘플 메뉴(묶음) ── */
.empty .samples { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; }
.samples .samples-l { flex-basis: 100%; }
.samples .sg { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.samples .sg b { font-family: var(--kfont); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.recipe-ready { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; color: var(--ink) !important; }

/* ── 형식 탭 ── */
.fmt-current { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.fmt-status { margin: 0; }
.fmt-status.bad { color: var(--c5xx); }
.cands .cand { display: inline-flex; gap: 8px; }
.cands .cand.on { border-color: var(--accent); background: var(--accent-soft); }
.fmt-sec { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; min-width: 0; }
.fmt-sec h3 { margin: 0; font-size: 14px; font-weight: 600; }
.fmt-sec p { margin: 0; }
.fmt .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fmt textarea { width: 100%; min-height: 64px; resize: vertical; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-family: var(--mono); font-size: 12.5px; }
.fmt-re-msg { color: var(--c5xx); font-size: 12.5px; }
.fmt-re-msg:empty { display: none; }
.save-row { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.save-row input { width: 12em; max-width: 100%; }
.chk { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.fld { display: grid; gap: 3px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.fld.inline { display: inline-flex; align-items: center; gap: 6px; }
.fld input, .fld select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 5px 8px; min-height: 32px; max-width: 100%; font-family: var(--mono); font-size: 12.5px; }
.fld small { font-size: 11.5px; }
.role-block .fld input { width: min(100%, 30em); }
.tokline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 2px; font-family: var(--mono); font-size: 12.5px; min-width: 0; }
.tokline .gap { white-space: pre; color: var(--muted); padding-bottom: 20px; }
.tok.on .v { outline: 2px solid var(--accent); outline-offset: -2px; }
.tok.low .r { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 3px, transparent 3px 6px); }
.tok .r em { font-style: normal; font-weight: 400; opacity: .85; }
.role-menu { display: grid; gap: 10px; grid-template-columns: none; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; }
.role-block { display: grid; gap: 8px; min-width: 0; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); gap: 4px; }
.roles .btn { justify-content: flex-start; }
.roles .btn::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--rc, var(--muted)); flex-shrink: 0; }
.recipes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.recipes li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.recipes .nm { overflow-wrap: anywhere; }
.recipes .acts { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
#link-out { width: 100%; font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; color: var(--ink); }

/* ── 보고서 보기 ── */
.report-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid color-mix(in srgb, var(--good) 70%, transparent); background: color-mix(in srgb, var(--good) 10%, var(--surface)); border-radius: 12px; padding: 10px 14px; }
.report-banner > div { flex: 1 1 240px; min-width: 0; }
.report-banner b { font-weight: 600; }
.report-banner .lock { font-size: 18px; }
.tag-ro { font-family: var(--kfont); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; color: var(--ink-2); }
.insights .ins-ro { display: flex; gap: 10px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.insights .ins-ro::before { content: counter(ins); font-family: var(--kfont); font-weight: 700; font-size: 16px; color: var(--muted); min-width: 16px; }
.insights li:first-child .ins-ro { border-color: var(--accent); background: var(--accent-soft); }

/* ── 비교 ── */
.cmp-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.cmp-head .h2 { margin: 0; }
.cmp-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-name { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.cmp-drop { min-height: 40vh; }
.cmp-sec { display: grid; gap: 10px; }
.cmp-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.cmp-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); min-width: 0; }
.cmp-kpi .l { font-family: var(--kfont); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.cmp-kpi .ab { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; margin-top: 4px; font-family: var(--kfont); font-variant-numeric: tabular-nums; min-width: 0; }
.cmp-kpi .a { color: var(--muted); font-size: 14px; }
.cmp-kpi .arrow { color: var(--muted); }
.cmp-kpi .b { font-size: 22px; font-weight: 300; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cmp-kpi .d { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.cmp-kpi.worse { border-color: color-mix(in srgb, var(--c5xx) 60%, transparent); }
.cmp-kpi.worse .d, .cmp-class.worse .d { color: var(--c5xx); font-weight: 600; }
.cmp-kpi.better .d, .cmp-class.better .d { color: var(--s3); font-weight: 600; }
.cmp-classes { display: grid; gap: 6px; }
.cmp-class { display: grid; grid-template-columns: minmax(48px, 80px) minmax(0, 1fr) minmax(0, 1fr) 76px; gap: 8px; align-items: center; font-size: 12.5px; }
.cmp-class .side { display: flex; gap: 6px; align-items: center; min-width: 0; }
.cmp-class .side b { font-size: 11px; color: var(--muted); }
.cmp-class .bar-wrap { flex: 1; min-width: 20px; height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.cmp-class .sw { display: block; height: 100%; }
.cmp-class .d { text-align: right; }
.cmp-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.cmp-top h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.cmp-top .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cmp-top .side-h { font-family: var(--kfont); font-size: 11px; font-weight: 700; color: var(--muted); }
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cmp-list li { display: flex; gap: 6px; align-items: baseline; font-size: 12px; min-width: 0; }
.cmp-list .n { color: var(--muted); min-width: 1.4em; text-align: right; }
.cmp-list .lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-list .v { color: var(--ink-2); white-space: nowrap; }
.rk { font-family: var(--mono); font-size: 11px; white-space: nowrap; min-width: 2.6em; text-align: right; }
.rk.up { color: var(--s3); } .rk.down { color: var(--c5xx); } .rk.new { color: var(--accent); font-weight: 600; } .rk.same { color: var(--muted); }
.cmp-unique { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ── 재생 ── */
.tl .replay-btn { min-height: 28px; padding: 3px 10px; font-size: 12px; }
.replay { display: grid; gap: 8px; }
.rp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.rp-row .btn { min-height: 30px; }
.rp-speeds > button { cursor: pointer; }
.rp-scrub { flex: 1 1 180px; min-width: 0; accent-color: var(--accent); }
.rp-time { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.rp-stop { margin-left: auto; }
.rp-tiles { gap: 8px 18px; }
.rp-tile b { font-family: var(--kfont); font-size: 20px; font-weight: 300; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rp-tile.alert b { color: var(--c5xx); }
.rp-note { margin: 0; font-size: 12px; }
.rp-note:empty { display: none; }
.replay-played { fill: var(--accent-soft); }
.replay-cursor { stroke: var(--accent); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) { .card[data-replay="1"] .topo-edge { transition: stroke-width .2s linear; } }
@media (max-width: 720px) {
  .cmp-class { grid-template-columns: minmax(44px, 60px) minmax(0, 1fr) 64px; }
  .cmp-class .side:nth-of-type(2) { grid-column: 2; }
  .cmp-class .side:nth-of-type(3) { grid-column: 2; }
  .cmp-class .d { grid-column: 3; grid-row: 1 / span 2; }
  .cmp-top .cols { grid-template-columns: minmax(0, 1fr); }
  .rp-stop { margin-left: 0; }
}
.wm { margin: 0; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
main > *, .app > * { min-width: 0; }
.inbar select { min-width: 0; width: auto; max-width: 100%; text-overflow: ellipsis; }
.dyn, .chip, .vline, .shell-out, .tokens, .tbl td, .inbar .what, .tip, .examples button, .term pre, .grep input, .paste textarea { font-family: var(--mono); }
.dyn { font-family: var(--sys); }

/* ── 출처: log/web/styles/pages.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 안내 글(정적 HTML) · 사이트 메뉴 · 바닥글 */
.doc { border-top: 1px solid var(--line); padding-top: 24px; max-width: 920px; color: var(--ink-2); line-height: 1.7; min-width: 0; }
body[data-kind="info"] .doc { border-top: 0; padding-top: 4px; }
.page-h1 { margin: 0 0 14px; color: var(--ink); font-family: var(--kfont); font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.doc section { margin-top: 28px; }
.doc h2 { margin: 0 0 10px; font-size: 20px; color: var(--ink); line-height: 1.3; }
.doc h3 { margin: 18px 0 8px; font-size: 16px; color: var(--ink); }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 1px 4px; overflow-wrap: anywhere; color: var(--ink); }
.doc pre { margin: 0 0 12px; overflow-x: auto; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.doc pre code { background: none; padding: 0; white-space: pre; overflow-wrap: normal; font-size: 12.5px; line-height: 1.5; }
.doc-table { overflow-x: auto; margin: 0 0 14px; max-width: 100%; }
.doc-table table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.doc-table th { text-align: left; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); padding: 6px 10px; white-space: nowrap; }
.doc-table td { border-bottom: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.oneliners { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.oneliners li { margin: 0; }
.oneliners p { margin: 0 0 4px; color: var(--ink); }
.ol-cmd { display: flex; gap: 8px; align-items: flex-start; }
.ol-cmd pre { flex: 1; min-width: 0; margin: 0; }
.ol-cmd .btn { flex-shrink: 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: var(--surface); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.faq details p { margin: 8px 0 2px; }
.related ul { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.site-nav { position: relative; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: " ▾"; color: var(--muted); }
.site-nav nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-nav a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-2); }
.site-foot { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.site-foot ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--ink-2); }
/* 보드를 띄우면 안내 글은 아래로 물러나 있다(검색용으로 DOM 에는 남는다) */
html[data-loaded="1"] .doc { opacity: .9; }
@media (max-width: 720px) {
  .site-nav nav { position: fixed; left: 12px; right: 12px; top: 56px; }
  .doc-table table { font-size: 12.5px; }
}
/* 좁은 화면: 격자 · 가변 상자 안의 긴 명령이 페이지를 넓히지 않게 */
.oneliners { grid-template-columns: minmax(0, 1fr); }
.oneliners li, .ol-cmd, .doc section, .doc-intro { min-width: 0; }
.doc p, .doc li, .doc td { overflow-wrap: anywhere; }

/* ── 출처: log/web/styles/style-flat.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 평면 계열 공통(HUD 외 5종) — 오라 · 격자 · 빛을 걷어 낸다 */
:root:is([data-style="terminal"], [data-style="mono"], [data-style="blueprint"], [data-style="editorial"], [data-style="contrast"]) { --glow: transparent; --glow2: transparent; --bg-aura: none; --bg-grid: none; --card-glow: 0; }
:root:is([data-style="terminal"], [data-style="mono"], [data-style="blueprint"], [data-style="editorial"], [data-style="contrast"]) .card::before { display: none; }
:root:is([data-style="terminal"], [data-style="mono"], [data-style="blueprint"], [data-style="editorial"], [data-style="contrast"]) .top { backdrop-filter: none; background: var(--bg); }

/* ── 출처: log/web/styles/style-terminal.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 터미널 — 고정폭 한 글꼴 · 각진 괘선 · 그림자 0 · 인광 녹색 하나와 상태색. 다크는 CRT, 화이트는 종이 출력 */
:root[data-style="terminal"] {
  color-scheme: dark;
  --font: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, "Malgun Gothic", monospace; --sys: var(--font); --kfont: var(--font);
  --bg: #0a0d0a; --surface: #0e120e; --surface-2: #121812; --surface-3: #1b241b; --line: #1f3a1f; --line-2: #2c5a2c;
  --ink: #c8f7c5; --ink-2: #8fcf8a; --muted: #6f9f6a; --accent: #4ade80; --accent-ink: #062b12; --accent-soft: rgba(74,222,128,.12); --acc2: #22c55e;
  --c2xx: #2f4a30; --c2xx-line: #6f9f6a; --c3xx: #6f8fa0;
}
@media (prefers-color-scheme: light) {
  :root[data-style="terminal"]:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f7f2; --surface: #fbfbf7; --surface-2: #f1f1ea; --surface-3: #e2e2d8; --line: #cfcfc2; --line-2: #9e9e90;
    --ink: #1a1a1a; --ink-2: #3c3c3c; --muted: #5d5d52; --accent: #0a7d2c; --accent-ink: #fff; --accent-soft: rgba(10,125,44,.10); --acc2: #15803d;
    --c2xx: #c9cfc0; --c2xx-line: #7d8573;
  }
}
:root[data-style="terminal"][data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f2; --surface: #fbfbf7; --surface-2: #f1f1ea; --surface-3: #e2e2d8; --line: #cfcfc2; --line-2: #9e9e90;
  --ink: #1a1a1a; --ink-2: #3c3c3c; --muted: #5d5d52; --accent: #0a7d2c; --accent-ink: #fff; --accent-soft: rgba(10,125,44,.10); --acc2: #15803d;
  --c2xx: #c9cfc0; --c2xx-line: #7d8573;
}
:root[data-style="terminal"] { --radius: 0; --radius-s: 0; }
:root[data-style="terminal"] :is(.card, .kpi, .btn, .seg, .chip, .sent, .grep, .term, .insights button, .empty, dialog, .menu, .examples button, .shell-out pre) { border-radius: 0; box-shadow: none; }
:root[data-style="terminal"] :is(.card, .kpi) { background: var(--surface); border: 1px solid var(--line); }
:root[data-style="terminal"] .kpi:hover { border-color: var(--accent); }
:root[data-style="terminal"] .kpi .v { font-weight: 400; font-size: 36px; letter-spacing: -.02em; }
:root[data-style="terminal"] .kpi:hover .v { font-weight: 700; }
:root[data-style="terminal"] .h2 { color: var(--accent); text-transform: none; letter-spacing: 0; }
:root[data-style="terminal"] .h2::before { content: "$ "; color: var(--muted); }
:root[data-style="terminal"] .ch h3::before { content: "▍"; color: var(--accent); }
:root[data-style="terminal"] .brand b { font-weight: 700; font-stretch: 100%; }

/* ── 출처: log/web/styles/style-mono.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 미니멀 모노 — 무채색 · 가는 선 · 그림자 없음 · 작은 모서리. 색은 상태와 강조 하나에만 */
:root[data-style="mono"] {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #111111; --surface-2: #161616; --surface-3: #222222; --line: #262626; --line-2: #333333;
  --ink: #ededed; --ink-2: #a1a1a1; --muted: #8a8a8a; --accent: #ededed; --accent-ink: #0a0a0a; --accent-soft: rgba(255,255,255,.08); --acc2: #a1a1a1;
  --c2xx: #3a3a3a; --c2xx-line: #8a8a8a; --c3xx: #6f7c8c;
}
@media (prefers-color-scheme: light) {
  :root[data-style="mono"]:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff; --surface: #ffffff; --surface-2: #fafafa; --surface-3: #efefef; --line: #ebebeb; --line-2: #dcdcdc;
    --ink: #0a0a0a; --ink-2: #525252; --muted: #6b6b6b; --accent: #0a0a0a; --accent-ink: #fff; --accent-soft: rgba(0,0,0,.05); --acc2: #525252;
    --c2xx: #d4d4d4; --c2xx-line: #8a8a8a;
  }
}
:root[data-style="mono"][data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #fafafa; --surface-3: #efefef; --line: #ebebeb; --line-2: #dcdcdc;
  --ink: #0a0a0a; --ink-2: #525252; --muted: #6b6b6b; --accent: #0a0a0a; --accent-ink: #fff; --accent-soft: rgba(0,0,0,.05); --acc2: #525252;
  --c2xx: #d4d4d4; --c2xx-line: #8a8a8a;
}
:root[data-style="mono"] { --radius: 10px; }
:root[data-style="mono"] :is(.card, .kpi) { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
:root[data-style="mono"] .kpi .v { font-family: var(--font); font-weight: 500; font-size: 34px; letter-spacing: -.03em; }
:root[data-style="mono"] .kpi:hover .v { font-weight: 700; font-stretch: 100%; color: var(--ink); }
:root[data-style="mono"] .h2 { letter-spacing: .02em; text-transform: none; font-weight: 500; }
:root[data-style="mono"] .insights li:first-child button { background: var(--surface-2); border-color: var(--ink); }

/* ── 출처: log/web/styles/style-blueprint.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 블루프린트 — 청사진 파랑 위 흰 선, 20px 보조격자 · 100px 주격자, 고정폭 주석. 화이트는 흰 종이에 파란 잉크 */
:root[data-style="blueprint"] {
  color-scheme: dark;
  --bg: #0e3a6e; --surface: #11427a; --surface-2: #164b87; --surface-3: #1c5596; --line: rgba(255,255,255,.45); --line-2: #fff;
  --ink: #f4f8ff; --ink-2: #d6e5f8; --muted: #b3cbea; --accent: #ffffff; --accent-ink: #0e3a6e; --accent-soft: rgba(255,255,255,.14); --s3: #8ee6ff; --s4: #ffd36b; --acc2: #8ee6ff;
  --c5xx: #ff8a80; --c4xx: #ffc46b; --c3xx: #a9c4e6; --c2xx: rgba(255,255,255,.28); --c2xx-line: rgba(255,255,255,.7);
  --bp: rgba(255,255,255,.08); --bp2: rgba(255,255,255,.18);
}
@media (prefers-color-scheme: light) {
  :root[data-style="blueprint"]:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f7f9fc; --surface: #ffffff; --surface-2: #eef3fa; --surface-3: #e0e9f5; --line: rgba(30,79,160,.45); --line-2: #1e4fa0;
    --ink: #12305f; --ink-2: #2b4c80; --muted: #4c6894; --accent: #1e4fa0; --accent-ink: #fff; --accent-soft: rgba(30,79,160,.10); --s3: #0f8aa8; --s4: #c7781a; --acc2: #0f8aa8;
    --c5xx: #c62828; --c4xx: #c26a12; --c3xx: #5c7aa8; --c2xx: rgba(30,79,160,.18); --c2xx-line: rgba(30,79,160,.6);
    --bp: rgba(30,79,160,.07); --bp2: rgba(30,79,160,.16);
  }
}
:root[data-style="blueprint"][data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc; --surface: #ffffff; --surface-2: #eef3fa; --surface-3: #e0e9f5; --line: rgba(30,79,160,.45); --line-2: #1e4fa0;
  --ink: #12305f; --ink-2: #2b4c80; --muted: #4c6894; --accent: #1e4fa0; --accent-ink: #fff; --accent-soft: rgba(30,79,160,.10); --s3: #0f8aa8; --s4: #c7781a; --acc2: #0f8aa8;
  --c5xx: #c62828; --c4xx: #c26a12; --c3xx: #5c7aa8; --c2xx: rgba(30,79,160,.18); --c2xx-line: rgba(30,79,160,.6);
  --bp: rgba(30,79,160,.07); --bp2: rgba(30,79,160,.16);
}
:root[data-style="blueprint"] { --radius: 0; --radius-s: 0;
  --bg-grid: linear-gradient(var(--bp2) 1px, transparent 1px) 0 0 / 100px 100px, linear-gradient(90deg, var(--bp2) 1px, transparent 1px) 0 0 / 100px 100px,
    linear-gradient(var(--bp) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--bp) 1px, transparent 1px) 0 0 / 20px 20px; }
:root[data-style="blueprint"] :is(.card, .kpi) { background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
:root[data-style="blueprint"] :is(.btn, .seg, .chip, .sent, .grep, .term, .insights button, .empty, dialog, .menu) { border-radius: 0; }
:root[data-style="blueprint"] :is(.h2, .ch h3, .kpi .l, .kpi .v, .brand b) { font-family: var(--mono); }
:root[data-style="blueprint"] .kpi .v { font-weight: 400; font-size: 34px; }
:root[data-style="blueprint"] .kpi:hover .v { font-weight: 700; font-stretch: 100%; color: var(--ink); }
:root[data-style="blueprint"] .h2 { text-transform: uppercase; letter-spacing: .14em; color: var(--ink); border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
:root[data-style="blueprint"] .ch h3::before { content: "◇ "; color: var(--accent); }
:root[data-style="blueprint"] .topo-edge { stroke-dasharray: 4 3; }

/* ── 출처: log/web/styles/style-editorial.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 에디토리얼 — 면을 없애고 굵은 괘선으로만 구획 · 명조 큰 제목 · 아주 큰 숫자 · 강조는 빨강 하나 */
:root[data-style="editorial"] {
  color-scheme: dark;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif; --kfont: var(--serif);
  --bg: #0e0e0e; --surface: #0e0e0e; --surface-2: #181818; --surface-3: #262626; --line: rgba(242,242,242,.2); --line-2: #f2f2f2;
  --ink: #f2f2f2; --ink-2: #c4c4c4; --muted: #949494; --accent: #ff5a4f; --accent-ink: #fff; --accent-soft: rgba(255,69,58,.12);
  --c2xx: #3c3c3c; --c2xx-line: #9a9a9a; --c3xx: #7e8a99;
}
@media (prefers-color-scheme: light) {
  :root[data-style="editorial"]:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f6f6; --surface-3: #e6e6e6; --line: rgba(17,17,17,.16); --line-2: #111111;
    --ink: #111111; --ink-2: #3a3a3a; --muted: #616161; --accent: #d00512; --accent-ink: #fff; --accent-soft: rgba(227,6,19,.07);
    --c2xx: #d6d6d6; --c2xx-line: #8a8a8a;
  }
}
:root[data-style="editorial"][data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f6f6; --surface-3: #e6e6e6; --line: rgba(17,17,17,.16); --line-2: #111111;
  --ink: #111111; --ink-2: #3a3a3a; --muted: #616161; --accent: #d00512; --accent-ink: #fff; --accent-soft: rgba(227,6,19,.07);
  --c2xx: #d6d6d6; --c2xx-line: #8a8a8a;
}
:root[data-style="editorial"] :is(.card, .kpi) { background: transparent; border: 0; border-top: 3px solid var(--ink); border-radius: 0; box-shadow: none; padding-top: 12px; }
:root[data-style="editorial"] .kpi:hover { border-top-color: var(--accent); }
:root[data-style="editorial"] .kpi .v { font-family: var(--serif); font-weight: 900; font-size: 42px; letter-spacing: -.02em; }
:root[data-style="editorial"] .kpi:hover .v { font-stretch: 100%; }
:root[data-style="editorial"] .kpi .l { letter-spacing: .12em; font-size: 11px; }
:root[data-style="editorial"] .h2 { font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--ink); text-transform: none; letter-spacing: -.01em; }
:root[data-style="editorial"] .ch h3 { font-family: var(--serif); font-size: 18px; font-weight: 900; }
:root[data-style="editorial"] .brand b { font-family: var(--serif); font-weight: 900; font-size: 21px; font-stretch: 100%; }
:root[data-style="editorial"] :is(.btn, .seg, .chip, .sent, .grep, .term, .insights button, .empty, dialog, .menu) { border-radius: 0; }
:root[data-style="editorial"] .top { border-bottom: 3px double var(--line-2); }

/* ── 출처: log/web/styles/style-contrast.css (log.grepboard.com) 를 2026-10-19 그대로 복사. 고치지 말고 log 쪽을 고친 뒤 다시 복사한다 — tools 전용은 src/styles/tools.css ── */
/* 고대비 — 접근성(WCAG AAA 7:1) 판본. 순흑 · 순백, 노랑/진파랑 강조, 2px 테두리, 굵은 글자, 링크 밑줄, 굵은 포커스 고리 */
:root[data-style="contrast"] {
  color-scheme: dark;
  --bg: #000; --surface: #000; --surface-2: #111; --surface-3: #1c1c1c; --line: #fff; --line-2: #fff;
  --ink: #fff; --ink-2: #fff; --muted: #e6e6e6; --accent: #ffea00; --accent-ink: #000; --accent-soft: rgba(255,234,0,.18); --s3: #7cff6b; --s4: #ff8ad8; --acc2: #00e5ff;
  --good: #7cff6b; --warn: #ffea00; --c5xx: #ff6b6b; --c4xx: #ffa64d; --c3xx: #9ec9ff; --c2xx: #6a6a6a; --c2xx-line: #fff;
}
@media (prefers-color-scheme: light) {
  :root[data-style="contrast"]:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fff; --surface: #fff; --surface-2: #f0f0f0; --surface-3: #e4e4e4; --line: #000; --line-2: #000;
    --ink: #000; --ink-2: #000; --muted: #262626; --accent: #0000c8; --accent-ink: #fff; --accent-soft: rgba(0,0,200,.10); --s3: #005c00; --s4: #6b00a3; --acc2: #a30000;
    --good: #005c00; --warn: #7a5200; --c5xx: #a30000; --c4xx: #a34400; --c3xx: #1f3f7a; --c2xx: #9a9a9a; --c2xx-line: #000;
  }
}
:root[data-style="contrast"][data-theme="light"] {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-2: #f0f0f0; --surface-3: #e4e4e4; --line: #000; --line-2: #000;
  --ink: #000; --ink-2: #000; --muted: #262626; --accent: #0000c8; --accent-ink: #fff; --accent-soft: rgba(0,0,200,.10); --s3: #005c00; --s4: #6b00a3; --acc2: #a30000;
  --good: #005c00; --warn: #7a5200; --c5xx: #a30000; --c4xx: #a34400; --c3xx: #1f3f7a; --c2xx: #9a9a9a; --c2xx-line: #000;
}
:root[data-style="contrast"] body { font-size: 15px; }
:root[data-style="contrast"] :is(.card, .kpi) { background: var(--surface); border: 2px solid var(--line); border-radius: 6px; box-shadow: none; }
:root[data-style="contrast"] :is(.muted, .kpi .l, .ch .nm, .h2) { color: var(--ink) !important; }
:root[data-style="contrast"] :is(.h2, .ch h3) { font-weight: 800; }
:root[data-style="contrast"] .kpi .v { font-weight: 700; }
:root[data-style="contrast"] a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:root[data-style="contrast"] :focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }
:root[data-style="contrast"] :is(.btn, .seg, .chip, .sent, .grep, .insights button) { border: 2px solid var(--line); font-weight: 700; }
:root[data-style="contrast"] .seg > [aria-current="page"], :root[data-style="contrast"] [aria-pressed="true"], :root[data-style="contrast"] [aria-selected="true"] { background: var(--ink) !important; color: var(--bg) !important; }
:root[data-style="contrast"] .top { border-bottom: 2px solid var(--line); }
:root[data-style="contrast"] .bar { fill-opacity: .85; }

/* tools.grepboard.com 전용 — log 에서 복사한 base.css · style-*.css 의 변수(--bg --surface --ink --line --accent …)만 써서
   6스타일 × 다크/화이트 12조합에서 같이 바뀐다. 색 값을 여기서 새로 정하지 않는다(상태 색은 log 의 --warn · --c5xx · --good) */

/* ── 머리줄 추가분 ── */
.top .ext { font-size: 13px; }
.nav-btn { display: none; }
.nav-btn::after { content: " ▾"; color: var(--muted); }

/* ── 3단: 왼쪽 목록 · 가운데 도구 · 오른쪽 광고(광고가 있을 때만 칸을 만든다) ── */
.layout { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 48px; display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 28px; align-items: start; }
.layout.has-rail { grid-template-columns: 228px minmax(0, 1fr) 300px; }
.layout > main { max-width: none; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.side { position: sticky; top: 68px; max-height: calc(100vh - 84px); overflow: auto; font-size: 13.5px; padding-right: 4px; }
.side .side-h { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side details { margin-bottom: 10px; }
.side summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: var(--radius-s); color: var(--ink); font-weight: 600; }
.side summary::-webkit-details-marker { display: none; }
.side summary::before { content: "▸"; color: var(--muted); margin-right: 2px; }
.side details[open] > summary::before { content: "▾"; }
.side summary .n { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.side ul { list-style: none; margin: 2px 0 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); margin-left: 12px; display: grid; gap: 1px; }
.side a { display: block; padding: 4px 8px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 var(--accent); }
.side .home-link { margin-bottom: 12px; }
.rail { position: sticky; top: 68px; display: grid; gap: 16px; min-width: 0; }

/* ── 가운데 ── */
.page-h1 { margin: 0; }
.lede { margin: -8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 820px; }
.lede code, .promise code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.promise { margin: -10px 0 0; color: var(--muted); font-size: 12.5px; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 -8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }

/* 도구 상자(.card 이므로 스타일마다 겉모양이 log 의 카드처럼 바뀐다) */
.tool { display: grid; gap: 10px; }
.tool .modes { margin: -4px -4px 4px; }
.expr { width: 100%; font-family: var(--mono); font-size: 18px; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.expr:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inrow { display: flex; gap: 8px; align-items: stretch; }
.inrow .expr { flex: 1; }
.exrow, .optrow { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.exrow .lbl { margin-right: 2px; color: var(--muted); }
.exs { display: contents; }
.ex { font-family: var(--mono); font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px 9px; color: var(--ink); }
.ex:hover { border-color: var(--accent); }
.tool select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 5px 8px; min-height: 32px; max-width: 100%; color: var(--ink); }
.optrow .share { margin-left: auto; }
#result, #ts-out, #date-out { display: grid; gap: 14px; min-width: 0; }
.res { min-width: 0; margin-top: 4px; }
.res > h2.res-h { margin-bottom: 8px; }
.say { margin: 0 0 10px; font-family: var(--kfont); font-size: 21px; font-weight: 650; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.res-sub { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }
.res-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.res-note code, .res-sub code, .warns code, .err code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 0 4px; color: var(--ink); }
.runs { margin: 0; padding: 0 0 0 2.6em; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.runs li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.runs li::marker { color: var(--muted); }
.runs time { color: var(--ink); }
.runs .rel { color: var(--muted); font-size: 12px; margin-left: 12px; }
.warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.warns li { border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--line)); border-left-width: 3px; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-radius: var(--radius-s); padding: 8px 12px; font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.err { border: 1px solid var(--c5xx); background: color-mix(in srgb, var(--c5xx) 10%, var(--surface)); border-radius: var(--radius-s); padding: 9px 12px; margin: 0; color: var(--ink); }
.err p { margin: 0; }
.err .hint { margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.err .btn { min-height: 26px; padding: 2px 9px; font-size: 12px; margin-left: 6px; }
/* 결과 코드 블록 — log 의 .term 과 같은 면 */
figure.code { margin: 0; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); overflow: hidden; min-width: 0; }
figure.code figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
figure.code .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
figure.code pre { margin: 0; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); }
figure.code .out { color: var(--muted); }
figure.code .cmd { color: var(--ink); font-weight: 700; }
.btn.copy { min-height: 26px; padding: 2px 9px; font-size: 11.5px; font-family: var(--mono); }
.btn.copy.done { border-color: var(--good); color: var(--good); }
/* 이름-값 표(epoch) */
table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; width: 1%; }
.kv td { padding: 5px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); overflow-wrap: anywhere; }
.kv td code { color: var(--ink); }

/* ── 첫 화면 도구 목록 ── */
.cat-block { display: grid; gap: 10px; }
.cat-block h2 { margin: 0; }
.tool-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.tool-cards a { display: block; height: 100%; text-decoration: none; color: var(--ink); }
.tool-cards .card { height: 100%; }
.tool-cards a:hover .card { border-color: var(--accent); }
.tool-cards .tn { display: block; font-family: var(--kfont); font-size: 17px; font-weight: 700; color: var(--ink); }
.tool-cards .tp { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin: 3px 0 6px; overflow-wrap: anywhere; }
.tool-cards .td { display: block; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

/* ── 설명 · 매뉴얼 링크(log 의 pages.css .doc · .faq · .related 를 그대로 쓴다) ── */
.doc > section:first-child { margin-top: 0; }
.related li a::after { content: " ↗"; color: var(--muted); }

/* ── 광고 — 오른쪽 칸 1 · 설명 끝 1. 단위 ID 가 없으면 빌드가 마크업을 만들지 않는다 ── */
.ad { min-width: 0; }
.ad-label { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.ad-end { border-top: 1px solid var(--line); padding-top: 14px; max-width: 920px; }

/* ── 바닥 ── */
.site-foot .promise-foot { margin: 0; }

/* ── 스타일별 다듬기(log 의 각진·고대비 규칙을 도구 요소에도) ── */
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) :is(.expr, .ex, .tool select, figure.code, .warns li, .err, .side a, .side summary, html[data-nav-open] .side) { border-radius: 0; }
:root[data-style="contrast"] :is(.expr, .ex, .tool select, figure.code, .warns li, .err) { border: 2px solid var(--line); }
:root[data-style="contrast"] .warns li { border-left-width: 6px; }
:root[data-style="contrast"] :is(.res-sub, .res-note, .runs .rel, .side .side-h, .side summary .n, .promise) { color: var(--ink); }
:root[data-style="terminal"] .res > h2.res-h::before { content: "$ "; color: var(--muted); }
:root[data-style="editorial"] .say { font-family: var(--serif); font-weight: 900; }
:root[data-style="blueprint"] :is(.say, .tool-cards .tn) { font-family: var(--mono); font-weight: 600; }

/* ── 중간 폭: 광고 칸은 가운데 아래로 ── */
@media (max-width: 1180px) {
  .layout.has-rail { grid-template-columns: 210px minmax(0, 1fr); }
  .layout.has-rail .rail { grid-column: 2; position: static; }
}
/* ── 휴대폰: 왼쪽 목록은 머리의 「도구」 단추로 접히고, 광고는 아래로 ── */
@media (max-width: 720px) {
  .layout, .layout.has-rail { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 12px 12px 40px; }
  .layout .rail, .layout.has-rail .rail { grid-column: 1; position: static; }
  .nav-btn { display: inline-flex; padding: 5px 9px; }
  .top-in { flex-wrap: nowrap; }
  .top-in .seg > * { padding: 5px 7px; }
  .brand { min-width: 0; overflow: hidden; white-space: nowrap; }
  .top .ext { display: none; }
  .side { display: none; }
  html[data-nav-open="1"] .side { display: block; position: fixed; top: 54px; left: 12px; right: 12px; z-index: 40; max-height: 72vh; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
  .say { font-size: 18px; }
  .expr { font-size: 16px; }
  .runs .rel { display: block; margin-left: 0; }
  .optrow .share { margin-left: 0; }
}

/* ── tools/cidr/style.css ── */
/* cidr 도구 — log 변수만 쓴다 */
.expr.small { font-size: 15px; padding: 8px 10px; }
.cidr-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.cidr-blocks li { border-bottom: 1px solid var(--line); padding: 4px 0 6px; line-height: 1.6; }
.cidr-blocks code { font-family: var(--mono); color: var(--ink); }
.cidr-blocks .tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cidr-blocks .flag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 6px; white-space: nowrap; }
.cidr-blocks .flag.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, var(--line)); }
.say.ok { color: var(--good); }
.say.no { color: var(--c5xx); }
.cidr-split { max-height: 420px; overflow: auto; }
.cidr-split li.gap { color: var(--muted); list-style: none; font-size: 12.5px; }
.cidr-split li.nonum { list-style: none; }

/* ── tools/cron/style.css ── */
/* cron 도구 — 칸별 표(log 의 .tbl 과 같은 결) */
.fields { overflow-x: auto; margin-top: 2px; }
.fields table { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.fields th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line-2); padding: 5px 10px 5px 0; white-space: nowrap; }
.fields td { border-bottom: 1px solid var(--line); padding: 5px 10px 5px 0; font-family: var(--mono); vertical-align: top; }
.fields .ftext { font-weight: 700; color: var(--accent); }
.fields .fvals { color: var(--ink-2); word-break: break-all; }

/* ── tools/nginx-conf/style.css ── */
/* nginx-conf 도구 — 칸 묶음 */
.ng-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ng-g { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.ng-g legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.ng-f { display: grid; gap: 3px; min-width: 0; }
.ng-f > label { font-size: 13px; color: var(--ink); }
.ng-f code { font-family: var(--mono); font-size: 12.5px; }
.ng-f input[type=text], .ng-f textarea { width: 100%; font-family: var(--mono); font-size: 14px; padding: 6px 9px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-s); min-width: 0; resize: vertical; }
.ng-f input:focus, .ng-f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ng-f [aria-invalid] { border-color: var(--c5xx); }
.ng-chk label { display: flex; gap: 6px; align-items: center; }
.ng-chk input { width: 17px; height: 17px; accent-color: var(--accent); }
.ng-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.ng-err { margin: 0; font-size: 12px; color: var(--c5xx); font-weight: 600; }
.ng-f[hidden] { display: none; }
.ng-f select { justify-self: start; }
.ng-f select { max-width: 100%; min-width: 0; }

/* ── tools/regex/style.css ── */
/* regex 도구 — 엔진 셋 나란히 · 줄별 표(log 변수만) */
.rx-in { align-items: center; }
.rx-slash { font-family: var(--mono); font-size: 20px; color: var(--muted); }
.rx-lbl { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.rx-text { width: 100%; min-height: 9em; resize: vertical; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; }
.rx-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#rx-out { display: grid; gap: 14px; min-width: 0; }
.rx-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rx-eng { min-width: 0; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.rx-eng .res-h { margin: 0; font-size: 13px; }
.rx-st { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.rx-st[data-st="same"] { color: var(--good); }
.rx-st[data-st="diff"], .rx-st[data-st="error"] { color: var(--c5xx); }
.rx-st[data-st="unknown"] { color: var(--s4); }
.rx-eng .res-sub { margin: 0; }
.rx-table { overflow-x: auto; }
.rx-table table { border-collapse: collapse; width: 100%; font-size: 13px; }
.rx-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line-2); padding: 5px 8px 5px 0; white-space: nowrap; }
.rx-table td { border-bottom: 1px solid var(--line); padding: 4px 8px 4px 0; vertical-align: top; }
.rx-n { font-family: var(--mono); color: var(--muted); width: 1%; text-align: right; }
.rx-line { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
tr.hit .rx-line { color: var(--ink); }
.rx-line mark { background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 -2px var(--accent); border-radius: 2px; }
.rx-c { font-family: var(--mono); text-align: center; width: 1%; white-space: nowrap; color: var(--ink); }
.rx-c.unk { color: var(--s4); }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) :is(.rx-text, .rx-eng) { border-radius: 0; }
:root[data-style="contrast"] :is(.rx-text, .rx-eng) { border: 2px solid var(--line); }
@media (max-width: 900px) { .rx-engines { grid-template-columns: minmax(0, 1fr); } }

/* ── tools/curl/style.css ── */
/* curl 도구 — log 변수만 쓴다 */
.curl-pane { display: grid; gap: 12px; }
.curl-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.curl-grid > label, .curl-grid > .lbl { color: var(--muted); }
.curl-grid [hidden] { display: none !important; }
.expr.small { font-size: 15px; padding: 8px 10px; }
.expr.area { font-size: 13px; padding: 8px 10px; resize: vertical; min-height: 44px; line-height: 1.5; }
.expr.tiny { font-size: 13px; padding: 5px 8px; width: 11em; }
.expr.tiny.wide { width: 22em; max-width: 100%; }
.expr.num { font-size: 13px; padding: 5px 8px; width: 5em; }
.curl-opts { gap: 6px 14px; }
#pane-parse .expr.area { min-height: 120px; }
#c-out { white-space: pre-wrap; overflow-wrap: anywhere; }
.curl-ex { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13.5px; }
.curl-ex dt { margin: 0; }
.curl-ex dt code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--surface-2); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.curl-ex dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.curl-ex dd code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 0 4px; color: var(--ink); }
.curl-ex dd.unk { color: var(--warn); }
.warns li.bad { border-color: var(--c5xx); background: color-mix(in srgb, var(--c5xx) 10%, var(--surface)); }
#p-out .kv td code { white-space: pre-wrap; }
#p-out .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 720px) {
  .curl-grid { grid-template-columns: minmax(0, 1fr); }
  .curl-ex { grid-template-columns: minmax(0, 1fr); }
  .curl-ex dd { margin-bottom: 6px; }
}

/* ── tools/decode/style.css ── */
/* decode 도구 — log 변수만 */
.dec-text { width: 100%; resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.5; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; overflow-wrap: anywhere; }
.dec-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dec-local { margin: -2px 0 0; font-size: 12.5px; color: var(--ink-2); }
#dec-out { display: grid; gap: 12px; min-width: 0; }
#dec-out figure.code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.warns-one { margin: 0; border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--line)); border-left-width: 3px; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-radius: var(--radius-s); padding: 8px 12px; font-size: 13.5px; color: var(--ink); }
.dec-status { margin: 0; }
.dec-status[data-st="bad"] { color: var(--c5xx); }
.dec-status[data-st="good"] { color: var(--good); }
.dec-times th { width: auto; }
.dec-times td { padding-right: 12px; }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) :is(.dec-text, .warns-one) { border-radius: 0; }
:root[data-style="contrast"] :is(.dec-text, .warns-one) { border: 2px solid var(--line); }

/* ── tools/rsync/style.css ── */
/* rsync 도구 — 칸 묶음 · --delete 경고 */
.rs-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.rs-g { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.rs-g legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.rs-f { display: grid; gap: 3px; min-width: 0; }
.rs-f > label { font-size: 13px; color: var(--ink); }
.rs-f input[type=text], .rs-f textarea { width: 100%; font-family: var(--mono); font-size: 14px; padding: 6px 9px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-s); min-width: 0; resize: vertical; }
.rs-f input:focus, .rs-f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rs-f [aria-invalid] { border-color: var(--c5xx); }
.rs-f[hidden] { display: none; }
.rs-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.rs-err { margin: 0; font-size: 12px; color: var(--c5xx); font-weight: 600; }
.rs-chk { display: grid; grid-template-columns: auto auto 1fr; gap: 6px; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.rs-chk input { width: 17px; height: 17px; accent-color: var(--accent); align-self: center; }
.rs-chk code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.rs-del code { color: var(--c5xx); font-weight: 700; }
.rs-danger { border: 2px solid var(--c5xx); background: color-mix(in srgb, var(--c5xx) 12%, var(--surface)); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.rs-danger > p { margin: 0; font-weight: 650; color: var(--ink); font-size: 15px; line-height: 1.5; }
.rs-slash { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.rs-slash code, .rs-opts code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 0 4px; color: var(--ink); }
.rs-opts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13.5px; }
.rs-opts dt { font-family: var(--mono); color: var(--ink); }
.rs-opts dd { margin: 0; color: var(--ink-2); }
.rs-f select { width: 100%; min-width: 0; text-overflow: ellipsis; }

/* ── tools/http-status/style.css ── */
/* http-status 도구 — log 변수만 쓴다 */
.hs-list { display: grid; gap: 18px; }
.hs-group { display: grid; gap: 0; }
.hs-group > h2.res-h { margin-bottom: 4px; }
.hs { border-bottom: 1px solid var(--line); padding: 10px 0 12px; scroll-margin-top: 72px; }
.hs.hit { box-shadow: inset 3px 0 var(--accent); padding-left: 10px; }
.hs h3 { margin: 0 0 4px; font-size: 16px; font-weight: 650; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.hs-code { font-family: var(--mono); font-weight: 700; color: var(--accent); min-width: 2.6em; }
.hs-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 6px; }
.hs-tag.v { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.hs p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.hs-desc { color: var(--ink) !important; }
.hs-cause strong { font-weight: 600; color: var(--muted); font-size: 12px; margin-right: 4px; }
.hs code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: 0 4px; color: var(--ink); overflow-wrap: anywhere; }
.hs-src { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 10px; margin: 6px 0 0; font-size: 13px; }
.hs-src dt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.hs-src dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.hs-ref { font-family: var(--mono); font-size: 11.5px !important; color: var(--muted) !important; }
.hs-ref a { font-family: var(--kfont, inherit); font-size: 12.5px; }
.hs-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
#hs-count { margin-left: auto; font-size: 12px; }
@media (max-width: 720px) {
  .hs-src { grid-template-columns: minmax(0, 1fr); }
  .hs-src dd { margin-bottom: 4px; }
  #hs-count { margin-left: 0; }
}

/* ── tools/json-yaml/style.css ── */
/* json-yaml 도구 — log 변수만 */
.jy-opts label { display: inline-flex; gap: 6px; align-items: center; }
.jy-text { width: 100%; min-height: 12em; resize: vertical; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; tab-size: 4; }
.jy-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#jy-outbox { display: grid; gap: 12px; min-width: 0; }
#jy-outbox figure.code pre { max-height: 70vh; }
.jy-where pre { color: var(--ink-2); }
.jy-diff { overflow-x: auto; }
.jy-diff table { border-collapse: collapse; width: 100%; font-size: 13px; font-family: var(--mono); }
.jy-diff th { text-align: left; font-family: var(--sans, inherit); font-weight: 600; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line-2); padding: 5px 10px 5px 0; }
.jy-diff td { border-bottom: 1px solid var(--line); padding: 4px 10px 4px 0; vertical-align: top; overflow-wrap: anywhere; color: var(--ink); }
.jy-diff .jy-path { color: var(--accent); }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) .jy-text { border-radius: 0; }
:root[data-style="contrast"] .jy-text { border: 2px solid var(--line); }

/* ── tools/ssh-config/style.css ── */
/* ssh-config 도구 — 칸 묶음 */
.sc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.sc-g { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.sc-g legend { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.sc-f { display: grid; gap: 3px; min-width: 0; }
.sc-f > label { font-size: 13px; color: var(--ink); }
.sc-f code { font-family: var(--mono); font-size: 12.5px; }
.sc-f input[type=text], .sc-f textarea { width: 100%; font-family: var(--mono); font-size: 14px; padding: 6px 9px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-s); min-width: 0; resize: vertical; }
.sc-f input:focus, .sc-f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sc-f [aria-invalid] { border-color: var(--c5xx); }
.sc-chk label { display: flex; gap: 6px; align-items: center; }
.sc-chk input { width: 17px; height: 17px; accent-color: var(--accent); }
.sc-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sc-err { margin: 0; font-size: 12px; color: var(--c5xx); font-weight: 600; }

/* ── tools/chmod/style.css ── */
/* chmod 도구 — 입력 두세 칸 나란히 · 권한 표 */
.cm-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.cm-l { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cm-short { max-width: 200px; }
.cm-bits { overflow-x: auto; }
.cm-bits table { border-collapse: collapse; font-size: 13.5px; }
.cm-bits th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 5px 14px 5px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.cm-bits td { padding: 5px 14px 5px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cm-bits tbody th { color: var(--ink); }
.cm-bits input { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; }
.cm-mean { margin: 0 0 4px; padding-left: 1.2em; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 3px; }
.cm-mean strong { color: var(--ink); font-weight: 600; }

/* ── tools/hash/style.css ── */
/* hash 도구 — log 변수만 */
.hs-text { width: 100%; resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.5; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; overflow-wrap: anywhere; }
.hs-key { flex: 1 1 200px; min-width: 0; font-family: var(--mono); font-size: 13.5px; padding: 6px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-s); }
:is(.hs-text, .hs-key):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hs-drop { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; min-height: 96px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: 14px; cursor: pointer; text-align: center; }
.hs-drop.on, .hs-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.hs-drop input { max-width: 100%; font-size: 13px; }
#hs-file-pane .res-note { margin: 6px 0 0; overflow-wrap: anywhere; }
.hs-local { margin: -2px 0 0; font-size: 12.5px; color: var(--ink-2); }
#hs-out, #hs-verdict { display: grid; gap: 10px; min-width: 0; }
.hs-table th { white-space: nowrap; width: 1%; vertical-align: top; }
.hs-table td code { overflow-wrap: anywhere; word-break: break-all; }
.hs-acts { width: 1%; white-space: nowrap; text-align: right; padding-left: 10px !important; vertical-align: top; }
.hs-acts .btn + .btn { margin-left: 4px; }
.hs-weak { display: block; font-weight: 400; font-size: 11px; color: var(--warn); }
.hs-h { margin: 6px 0 0; font-size: 14px; }
.hs-check { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.hs-say { margin: 0; }
.hs-say[data-st="bad"] { color: var(--c5xx); }
.hs-say[data-st="good"] { color: var(--good); }
@media (max-width: 640px) {
  .hs-table tr { display: grid; grid-template-columns: 1fr; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .hs-table th, .hs-table td { border: 0; width: auto; padding: 2px 0; }
  .hs-acts { text-align: left; padding-left: 0 !important; white-space: normal; }
}
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) :is(.hs-text, .hs-key, .hs-drop) { border-radius: 0; }
:root[data-style="contrast"] :is(.hs-text, .hs-key, .hs-drop) { border: 2px solid var(--line); }

/* ── tools/x509/style.css ── */
/* x509 도구 — log 변수만 */
.x5-text { width: 100%; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.45; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; overflow-wrap: anywhere; }
.x5-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.x5-file { cursor: pointer; }
.x5-local { margin: -2px 0 0; font-size: 12.5px; color: var(--ink-2); }
#x5-out { display: grid; gap: 14px; min-width: 0; }
.x5-cert { min-width: 0; }
.x5-badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); margin: 0 0 8px; }
.x5-badge[data-st="valid"] { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, var(--line)); }
.x5-badge[data-st="soon"], .x5-badge[data-st="notYet"] { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.x5-badge[data-st="expired"] { color: var(--c5xx); border-color: color-mix(in srgb, var(--c5xx) 55%, var(--line)); }
.x5-kv { width: 100%; table-layout: fixed; }
.x5-kv th { width: 22%; vertical-align: top; }
.x5-cn { text-transform: none; letter-spacing: normal; }
.x5-kv td { overflow-wrap: anywhere; min-width: 0; }
.x5-kv td code { overflow-wrap: anywhere; word-break: break-all; }
.x5-san { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.x5-tag { margin-left: 8px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.x5-warn { color: var(--warn); font-size: 13px; font-weight: 600; }
.x5-dim { color: var(--ink-2); font-size: 13px; }
.x5-chain { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.x5-chain li[data-ok="true"] { color: var(--good); }
.x5-chain li[data-ok="false"] { color: var(--c5xx); }
.x5-pk p { margin: 0 0 6px; }
@media (max-width: 720px) { .x5-kv th { width: 34%; } }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) :is(.x5-text, .x5-badge, .x5-tag) { border-radius: 0; }
:root[data-style="contrast"] .x5-text { border: 2px solid var(--line); }

/* ── tools/diff/style.css ── */
/* diff 도구 — log 변수만 */
.df-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.df-col { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; align-items: center; min-width: 0; font-size: 13px; color: var(--ink-2); }
.df-col .df-text { grid-column: 1 / -1; }
.df-name { min-width: 0; font-family: var(--mono); font-size: 12px; padding: 3px 8px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-s); }
.df-text { width: 100%; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.5; padding: 8px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; white-space: pre; overflow: auto; tab-size: 4; }
:is(.df-text, .df-name):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.df-local { margin: -2px 0 0; font-size: 12.5px; color: var(--ink-2); }
#df-out { display: grid; gap: 10px; min-width: 0; }
.df-say { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.df-plus { color: var(--good); font-family: var(--mono); }
.df-minus { color: var(--c5xx); font-family: var(--mono); }
.df-say .res-sub { margin: 0; font-family: inherit; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.df-sidebox { display: grid; gap: 6px; min-width: 0; }
.df-bar { display: flex; justify-content: flex-end; }
.df-side-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.df-side { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; min-width: 640px; }
.df-side col.df-n { width: 3.6em; }
.df-side td { padding: 1px 8px; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.df-side .df-num { color: var(--muted); text-align: right; user-select: none; font-variant-numeric: tabular-nums; border-right: 1px solid var(--line); }
.df-side .df-txt code { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; color: var(--ink); }
.df-side .df-del { background: color-mix(in srgb, var(--c5xx) 12%, transparent); }
.df-side .df-add { background: color-mix(in srgb, var(--good) 13%, transparent); }
.df-side .df-empty { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 45%, transparent) 6px 7px); }
.df-skip td { text-align: center; color: var(--muted); font-size: 11.5px; background: var(--surface-2); padding: 3px; }
.df-ch { color: inherit; border-radius: 2px; padding: 0; }
.df-del .df-ch, .df-l.df-del .df-ch { background: color-mix(in srgb, var(--c5xx) 38%, transparent); }
.df-add .df-ch, .df-l.df-add .df-ch { background: color-mix(in srgb, var(--good) 40%, transparent); }
.df-u pre { white-space: pre; tab-size: 4; }
.df-l { display: inline-block; min-width: 100%; }
.df-l.df-del { background: color-mix(in srgb, var(--c5xx) 12%, transparent); color: var(--ink); }
.df-l.df-add { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--ink); }
.df-l.df-hh { color: var(--accent); }
.df-l.df-ne, .df-l.df-ctx { color: var(--ink-2); }
@media (max-width: 720px) { .df-pair { grid-template-columns: minmax(0, 1fr); } }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) :is(.df-text, .df-name, .df-side-wrap) { border-radius: 0; }
:root[data-style="contrast"] :is(.df-text, .df-side-wrap) { border: 2px solid var(--line); }
:root[data-style="contrast"] .df-ch { outline: 1px solid currentColor; }

/* ── tools/htpasswd/style.css ── */
/* htpasswd 도구 — log 변수만 */
.hp-local { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.hp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px 14px; align-items: start; }
.hp-f { display: grid; gap: 4px; min-width: 0; }
.hp-f[hidden] { display: none; }
.hp-wide { grid-column: 1 / -1; }
.hp-f > label { font-size: 13px; color: var(--ink); }
.hp-f input[type=text], .hp-f input[type=password], .hp-f textarea { width: 100%; min-width: 0; font-family: var(--mono); font-size: 14px; padding: 6px 9px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-s); resize: vertical; }
.hp-f textarea { overflow-wrap: anywhere; }
.hp-f :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp-f [aria-invalid] { border-color: var(--c5xx); }
.hp-f select { justify-self: start; max-width: 100%; min-width: 0; }
.hp-pw { display: flex; gap: 8px; align-items: center; }
.hp-pw input[type=password], .hp-pw input[type=text] { flex: 1; }
.hp-show { display: flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.hp-show input { accent-color: var(--accent); }
.hp-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.hp-err { margin: 0; font-size: 12px; color: var(--c5xx); font-weight: 600; }
.hp-act { grid-column: 1 / -1; }
#hp-out, #hp-vout { display: grid; gap: 12px; min-width: 0; }
#hp-out:empty, #hp-vout:empty { display: none; }
#hp-out figure.code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-more { margin-top: 10px; }
.hp-more > summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; }
.hp-more[open] > summary { margin-bottom: 8px; }
.hp-more > * + * { margin-top: 8px; }
.hp-vt th { overflow-wrap: anywhere; }
.hp-st[data-st="yes"] { color: var(--good); }
.hp-st[data-st="no"] { color: var(--c5xx); }
.hp-st:is([data-st="unsupported"], [data-st="bad"]) { color: var(--warn); }
.hp-note { color: var(--ink-2); font-size: 13px; }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) .hp-f :is(input, textarea) { border-radius: 0; }
:root[data-style="contrast"] .hp-f :is(input, textarea) { border: 2px solid var(--line); }

/* ── tools/uuid/style.css ── */
/* uuid 도구 — log 변수만 */
.ud-num { width: 6.5em; font-family: var(--mono); font-size: 13px; padding: 5px 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s); }
.ud-num:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#ud-uopts, #ud-topts { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
#ud-uopts[hidden], #ud-topts[hidden] { display: none; }
#ud-out, #ud-dec { display: grid; gap: 8px; min-width: 0; margin-top: 8px; }
.ud-list pre { max-height: 320px; overflow: auto; }
.ud-list code { white-space: pre; }
#ud-dec .kv th { width: 12em; }
#ud-dec .res-note { margin: 0; }
:root:is([data-style="terminal"], [data-style="blueprint"], [data-style="editorial"]) .ud-num { border-radius: 0; }
@media (max-width: 640px) { #ud-dec .kv th { width: 7.5em; } }
