@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --steel: #e6e9ec;      /* 앱 바탕 */
  --paper: #ffffff;      /* 패널 */
  --sub: #f5f6f7;        /* 표 머리, 보조 면 */
  --line: #d3d8dd;
  --line-2: #e4e7ea;
  --ink: #1a2229;
  --ink-2: #4f5a64;
  --ink-3: #85909a;
  --console: #18212a;    /* 왼쪽 레일 */
  --sea: #0e6670;        /* 주 색: 선택·주 버튼 */
  --sea-2: #e1eff0;
  --amber: #a8650a;      /* 신뢰도 낮음 */
  --amber-2: #fcefd6;
  --red: #b3261e;        /* 오류 */
  --red-2: #fbe8e6;
  --green: #2b7547;      /* 승인 */
  --green-2: #e3f1e8;
  --slate-2: #eceef1;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Pretendard', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--steel); }
body { font-family: var(--sans); color: var(--ink); font-size: 13px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.num { font-variant-numeric: tabular-nums; }

/* 앱 틀 */
.app { width: 1440px; height: 900px; display: grid; grid-template-columns: 56px 1fr; position: relative; overflow: hidden; }
.rail { background: var(--console); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 4px; }
.rail .logo { width: 32px; height: 32px; border: 1.5px solid #6fa9ae; border-radius: 3px; display: grid; place-items: center; color: #cfe5e6; font: 600 11px var(--mono); margin-bottom: 14px; }
.rail a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; color: #8d99a5; }
.rail a.on { background: #26323d; color: #fff; box-shadow: inset 2px 0 0 #5fb3b9; }
.rail svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.rail .bottom { margin-top: auto; }

.main { display: flex; flex-direction: column; min-width: 0; }
.top { height: 48px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 16px; flex: none; }
.crumb { color: var(--ink-3); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.crumb b { color: var(--ink); font-weight: 600; }
.crumb i { font-style: normal; color: #b6bdc4; }
.top .sp { flex: 1; }
.search { width: 280px; height: 30px; border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; padding: 0 10px; color: var(--ink-3); gap: 8px; font-size: 12px; background: var(--sub); }
.search kbd { margin-left: auto; font: 11px var(--mono); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; background: #fff; }
.user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.user .av { width: 26px; height: 26px; border-radius: 50%; background: #c9d3da; color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 11px; }

/* 버튼 */
.btn { height: 30px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 12.5px var(--sans); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn.pri { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.danger { color: var(--red); border-color: #e5b9b5; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* 배지 */
.bd { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 3px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.bd::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bd.ok { color: var(--green); background: var(--green-2); }
.bd.edit { color: var(--sea); background: var(--sea-2); }
.bd.warn { color: var(--amber); background: var(--amber-2); }
.bd.err { color: var(--red); background: var(--red-2); }
.bd.idle { color: var(--ink-2); background: var(--slate-2); }
.bd.run { color: #285b8f; background: #e4edf7; }

/* 표 */
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid th { background: var(--sub); color: var(--ink-2); font-weight: 600; font-size: 11.5px; text-align: left; padding: 0 10px; height: 30px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 0 10px; height: 34px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.grid tr.sel td { background: #eef6f6; }
.grid tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--sea); }
.grid td.r, .grid th.r { text-align: right; }

/* 샘플 표기 */
.stamp { position: absolute; right: 14px; bottom: 8px; font-size: 10.5px; color: #8b959e; background: rgba(255,255,255,.85); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 3px; z-index: 50; }
