/* ==========================================================================
   AILO Dashboard D11 — 게임옵스 (게임 라이브 운영 콘솔)
   원형: 아이콘 레일 + 12열 고밀도 HUD 패널 / 타이포: Chakra Petch(숫자·라틴) + Pretendard
   컬러: 딥퍼플 다크 + 네온 시안·마젠타, 차트 범주 4색은 다크 표면 기준 검증
   ========================================================================== */

:root {
  color-scheme: dark;
  --ailo-bg: #0b0719;
  --ailo-fg: #ece8ff;
  --ailo-muted: #a49bcc;
  --ailo-line: rgba(150, 120, 255, .17);
  --ailo-accent: #22e5ff;
  --ailo-accent-ink: #051219;

  --d11-font: "Chakra Petch", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --d11-surface: #150d2b;
  --d11-surface-2: #1c1238;
  --d11-rail: #0e0922;
  --d11-neon: #22e5ff;
  --d11-mag: #ff3fd8;
  --d11-ghost: #6f6597;
  --d11-grid: rgba(160, 140, 255, .10);
  --d11-axis: rgba(160, 140, 255, .28);

  /* 범주(상품군·플랫폼) — 다크 표면 #160e2c 기준 검증 순서 */
  --d11-s1: #0aa6c4;
  --d11-s2: #8070f0;
  --d11-s3: #c98500;
  --d11-s4: #d43fbf;

  /* 상태 */
  --d11-good: #0ca30c;
  --d11-warn: #fab219;
  --d11-crit: #d03b3b;
  --d11-good-ink: #6be38f;
  --d11-warn-ink: #ffcc5c;
  --d11-crit-ink: #ff8585;

  --d11-rail-w: 76px;
  --d11-rail-wide: 228px;
  --d11-gap: clamp(12px, 1.2vw, 16px);
  --d11-cut: 14px;
}

body {
  font-size: 14px;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 63, 216, .13), transparent 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(34, 229, 255, .10), transparent 60%),
    var(--ailo-bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(150, 120, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 120, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
::selection { background: rgba(255, 63, 216, .45); color: #fff; }
.num, time { font-family: var(--d11-font); font-variant-numeric: tabular-nums; }

/* ===== Shell ===== */
.ops { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.ops__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main { flex: 1; padding: clamp(14px, 1.8vw, 24px); display: flex; flex-direction: column; gap: var(--d11-gap); }

/* ===== Rail ===== */
.rail {
  position: sticky; top: 0; height: 100vh; flex: 0 0 var(--d11-rail-w); width: var(--d11-rail-w);
  background: linear-gradient(180deg, #120b2a, var(--d11-rail)); border-right: 1px solid var(--ailo-line);
  display: flex; flex-direction: column; align-items: stretch; padding: 14px 12px; gap: 10px; z-index: 40;
  transition: width .3s var(--ailo-ease), flex-basis .3s var(--ailo-ease);
}
.rail__logo { display: flex; align-items: center; gap: 12px; height: 48px; padding-left: 2px; overflow: hidden; }
.rail__mark {
  flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center;
  font: 700 17px var(--d11-font); color: #0b0719; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--d11-neon), #8f7bff 55%, var(--d11-mag));
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.rail__brand { font: 700 17px var(--d11-font); letter-spacing: .08em; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.rail__brand b { color: var(--d11-neon); font-weight: 700; }
.rail__close { display: none; }
.rail__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.rail__nav a {
  position: relative; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 15px; border-radius: 4px;
  color: var(--ailo-muted); white-space: nowrap; transition: background .2s, color .2s;
}
.rail__nav a i { flex: 0 0 20px; width: 20px; text-align: center; font-size: 16px; }
.rail__nav a span { opacity: 0; transition: opacity .2s; font-weight: 500; }
.rail__nav a em {
  position: absolute; top: 6px; left: 32px; font: 700 10px var(--d11-font); font-style: normal; min-width: 18px; height: 16px; padding: 0 4px;
  border-radius: 8px; display: grid; place-items: center; background: #2d2152; color: var(--ailo-fg); border: 1px solid var(--d11-surface);
}
.rail__nav a em.is-hot { background: var(--d11-mag); color: #1a0716; }
.rail__nav a:hover { background: rgba(150, 120, 255, .10); color: var(--ailo-fg); }
.rail__nav a.is-active { color: var(--d11-neon); background: linear-gradient(90deg, rgba(34, 229, 255, .16), rgba(34, 229, 255, .02)); }
.rail__nav a.is-active i { filter: drop-shadow(0 0 6px rgba(34, 229, 255, .8)); }
.rail__nav a.is-active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; background: var(--d11-mag); box-shadow: 0 0 10px var(--d11-mag); }
/* 툴팁 (좁은 레일일 때만) */
@media (min-width: 992px) {
  .ops:not(.rail-wide) .rail__nav a::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; translate: -4px -50%;
    background: #0b0618; color: var(--ailo-fg); border: 1px solid rgba(34, 229, 255, .4); padding: 5px 10px; font-size: 12px; border-radius: 3px;
    opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; white-space: nowrap; z-index: 60;
  }
  .ops:not(.rail-wide) .rail__nav a:hover::after,
  .ops:not(.rail-wide) .rail__nav a:focus-visible::after { opacity: 1; translate: 0 -50%; }
  .ops.rail-wide .rail { flex-basis: var(--d11-rail-wide); width: var(--d11-rail-wide); }
  .ops.rail-wide .rail__brand,
  .ops.rail-wide .rail__nav a span,
  .ops.rail-wide .rail__toggle span { opacity: 1; }
  .ops.rail-wide .rail__nav a em { position: static; margin-left: auto; }
  .ops.rail-wide .rail__toggle i { rotate: 180deg; }
}
.rail__toggle {
  margin-top: auto; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 15px; border: 1px dashed var(--ailo-line);
  background: transparent; border-radius: 4px; color: var(--ailo-muted); white-space: nowrap; overflow: hidden;
}
.rail__toggle i { flex: 0 0 20px; transition: rotate .3s var(--ailo-ease); }
.rail__toggle span { opacity: 0; transition: opacity .2s; font-size: 13px; }
.rail__toggle:hover { color: var(--d11-neon); border-color: rgba(34, 229, 255, .5); }
.rail-dim { display: none; }

/* ===== HUD topbar ===== */
.hud {
  position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 1.8vw, 24px); background: rgba(11, 7, 25, .78); backdrop-filter: blur(12px);
}
.hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--d11-neon), var(--d11-mag) 40%, transparent 85%); opacity: .55; }
.hud__burger { color: var(--ailo-fg); margin-left: -8px; }
.hud__game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hud__cover {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(140deg, #5b2bd6, #c21f9c); clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.hud__crumb { display: flex; gap: 6px; font-size: 12px; color: var(--ailo-muted); white-space: nowrap; }
.hud__crumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.hud__crumb li:first-child { color: var(--ailo-fg); font-weight: 700; }
.hud__crumb a:hover { color: var(--d11-neon); }
.hud__build { font-size: 12px; color: var(--ailo-muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.hud__build b { font-family: var(--d11-font); color: var(--ailo-fg); font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--d11-good); box-shadow: 0 0 0 0 rgba(12, 163, 12, .7); animation: d11-pulse 1.8s infinite; display: inline-block; }
@keyframes d11-pulse { 70% { box-shadow: 0 0 0 7px rgba(12, 163, 12, 0); } 100% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0); } }
.hud__search { position: relative; flex: 1; max-width: 400px; margin-left: auto; }
.hud__search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 13px; }
.hud__search input {
  width: 100%; height: 38px; padding: 0 14px 0 38px; font-size: 13px; color: var(--ailo-fg);
  background: rgba(28, 18, 56, .8); border: 1px solid var(--ailo-line); border-radius: 3px;
}
.hud__search input::placeholder { color: #7f76a8; }
.hud__search input:focus { outline: none; border-color: var(--d11-neon); box-shadow: 0 0 0 3px rgba(34, 229, 255, .15), 0 0 18px -6px var(--d11-neon); }
.hud__actions { display: flex; align-items: center; gap: 10px; }
.hud__icon { position: relative; width: 40px; height: 40px; border: 1px solid var(--ailo-line); background: rgba(28, 18, 56, .8); color: var(--ailo-fg); border-radius: 3px; }
.hud__icon:hover { border-color: var(--d11-neon); color: var(--d11-neon); }
.hud__badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--d11-mag); color: #1a0716; font: 700 10.5px var(--d11-font); display: grid; place-items: center; box-shadow: 0 0 10px var(--d11-mag); }
.hud__profile { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 2px; text-align: left; }
.hud__who b { display: block; font-size: 13px; line-height: 1.2; }
.hud__who small { font-size: 11.5px; color: var(--ailo-muted); white-space: nowrap; }
.ava {
  width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #0b0719;
  background: linear-gradient(135deg, var(--d11-neon), var(--d11-mag)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.dd { position: relative; }
.dd__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 350px; z-index: 60; background: #120a26; border: 1px solid rgba(34, 229, 255, .35);
  box-shadow: 0 20px 50px -20px #000, 0 0 30px -12px rgba(34, 229, 255, .35); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.dd__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ailo-line); font-size: 12px; color: var(--ailo-muted); }
.dd__head b { font-size: 13px; color: var(--ailo-fg); }
.dd__list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 11px 16px; border-bottom: 1px solid rgba(150, 120, 255, .08); }
.dd__list li:last-child { border-bottom: 0; }
.dd__list li:hover { background: rgba(150, 120, 255, .08); }
.dd__list li > i { margin-top: 3px; font-size: 13px; }
.dd__list b { font-size: 13px; display: block; font-weight: 600; }
.dd__list p { font-size: 12px; color: var(--ailo-muted); }
.dd__list time { font-size: 11px; color: #7f76a8; white-space: nowrap; }
.t-crit > i { color: var(--d11-crit-ink); }
.t-warn > i { color: var(--d11-warn-ink); }
.t-info > i { color: var(--d11-neon); }
.t-ok > i { color: var(--d11-good-ink); }

/* ===== Page head ===== */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ph__eyebrow { font: 600 12px var(--d11-font); letter-spacing: .14em; color: var(--d11-neon); display: flex; align-items: center; gap: 8px; }
.ph__eyebrow time { letter-spacing: .06em; }
.ph__t { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.ph__t::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 10px; background: var(--d11-mag); box-shadow: 0 0 12px var(--d11-mag); clip-path: polygon(0 0, 100% 0, 0 100%); vertical-align: top; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: rgba(21, 13, 43, .9); border: 1px solid var(--ailo-line); }
.seg button {
  border: 0; background: transparent; color: var(--ailo-muted); font: 600 13px var(--d11-font); padding: 7px 18px; letter-spacing: .02em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: background .2s, color .2s;
}
.seg button:hover { color: var(--ailo-fg); background: rgba(150, 120, 255, .12); }
.seg button[aria-pressed="true"] { background: var(--d11-neon); color: var(--ailo-accent-ink); box-shadow: 0 0 20px rgba(34, 229, 255, .45); }

/* ===== KPI ===== */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--d11-gap); }
.kpi {
  position: relative; padding: 14px 16px 12px; background: linear-gradient(160deg, rgba(34, 229, 255, .06), transparent 45%), var(--d11-surface);
  border: 1px solid var(--ailo-line); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); min-width: 0;
  transition: border-color .2s;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-left: 2px solid var(--d11-neon); border-top: 2px solid var(--d11-neon); }
.kpi:hover { border-color: rgba(34, 229, 255, .45); }
.kpi__l { font-size: 12px; color: var(--ailo-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__l i { color: var(--d11-mag); width: 14px; font-size: 11px; }
.kpi__v { font: 700 clamp(21px, 1.8vw, 27px) var(--d11-font); letter-spacing: -.01em; line-height: 1.15; margin-top: 6px; white-space: nowrap; }
.kpi__d { font-size: 11.5px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 0 4px; align-items: baseline; }
.kpi__d b { font-family: var(--d11-font); font-weight: 600; }
.kpi__d small { color: #7f76a8; font-size: 11px; }
.kpi__d.is-up { color: var(--d11-good-ink); }
.kpi__d.is-down { color: var(--d11-crit-ink); }
.kpi__sp { position: relative; margin-top: 8px; height: 30px; }
.spark { width: 100%; height: 30px; display: block; }
.spark__l { fill: none; stroke: rgba(34, 229, 255, .5); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark__a { fill: rgba(34, 229, 255, .08); }
.spark__dot { position: absolute; right: -4px; top: var(--y); width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--d11-neon); box-shadow: 0 0 0 2px var(--d11-surface), 0 0 8px var(--d11-neon); }

/* ===== Panels / grid ===== */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--d11-gap); }
.g-ccu { grid-column: span 8; }
.g-srv { grid-column: span 4; }
.g-rev { grid-column: span 7; }
.g-ret { grid-column: span 5; }
.g-evt { grid-column: span 8; }
.g-log { grid-column: span 4; }
.panel {
  position: relative; min-width: 0; padding: clamp(14px, 1.4vw, 20px);
  background: linear-gradient(180deg, rgba(150, 120, 255, .05), transparent 30%), var(--d11-surface);
  border: 1px solid var(--ailo-line);
  clip-path: polygon(0 0, calc(100% - var(--d11-cut)) 0, 100% var(--d11-cut), 100% 100%, 0 100%);
}
.panel::before { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 2px; background: var(--d11-neon); box-shadow: 0 0 10px var(--d11-neon); }
.panel__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.panel__h--wrap { flex-wrap: wrap; }
.panel__t { font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel__t i { color: var(--d11-neon); font-size: 13px; }
.panel__s { font-size: 12px; color: var(--ailo-muted); margin-top: 2px; }
.more { font-size: 12px; color: var(--d11-neon); font-weight: 600; }
.more:hover { text-decoration: underline; color: var(--d11-neon); }
.tag-live { font: 600 11px var(--d11-font); letter-spacing: .06em; color: var(--d11-neon); border: 1px solid rgba(34, 229, 255, .4); padding: 3px 8px; white-space: nowrap; }

.chart { position: relative; }
.chart--ccu { height: 290px; }
.chart--rev { height: 280px; }

.ccu-now { text-align: right; line-height: 1.2; }
.ccu-now span { font-size: 11px; color: var(--ailo-muted); display: block; letter-spacing: .1em; }
.ccu-now b { font: 700 clamp(26px, 2.6vw, 36px) var(--d11-font); color: var(--d11-neon); text-shadow: 0 0 18px rgba(34, 229, 255, .55); }
.ccu-now small { display: block; font-size: 11.5px; color: var(--ailo-muted); }

/* platform segmented bar (tall) */
.plat { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ailo-line); }
.plat__t { font-size: 12px; color: var(--ailo-muted); font-weight: 600; margin-bottom: 8px; }
.plat__bar { display: flex; gap: 2px; height: 28px; }
.plat__bar span {
  flex: 0 0 calc(var(--w) - 2px); background: var(--c); border-radius: 4px; display: flex; align-items: center; padding: 0 10px;
  font: 600 12px var(--d11-font); color: #06121a; white-space: nowrap; overflow: hidden; min-width: 0;
}
.plat__bar span:nth-child(2) { color: #fff; }
.plat__lg { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--ailo-muted); flex-wrap: wrap; }
.plat__lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: -1px; }

/* server channels */
.srv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-bottom: 12px; color: var(--ailo-fg); }
.srv-legend i { margin-right: 3px; }
.st-ok i { color: var(--d11-good-ink); }
.st-warn i { color: var(--d11-warn-ink); }
.st-crit i { color: var(--d11-crit-ink); }
.st-off i { color: var(--ailo-muted); }
.srv { display: flex; flex-direction: column; gap: 14px; }
.srv__name { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; }
.srv__name b { font-weight: 700; }
.srv__name span { font-family: var(--d11-font); color: var(--ailo-muted); }
.srv__chs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ch {
  position: relative; height: 52px; padding: 6px 8px; background: var(--d11-surface-2); border: 1px solid var(--ailo-line);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; cursor: default;
  transition: border-color .2s, box-shadow .2s;
}
.ch:hover, .ch:focus-visible { border-color: var(--d11-neon); box-shadow: 0 0 14px -4px rgba(34, 229, 255, .6); outline: none; }
.ch__no { font: 600 10.5px var(--d11-font); color: var(--ailo-muted); display: flex; justify-content: space-between; align-items: center; }
.ch__no i { font-size: 10px; }
.ch__v { font: 700 15px var(--d11-font); line-height: 1; }
.ch__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--l); background: var(--d11-good); transition: width .6s var(--ailo-ease); }
.ch--ok .ch__no i { color: var(--d11-good-ink); }
.ch--warn .ch__bar { background: var(--d11-warn); }
.ch--warn .ch__no i { color: var(--d11-warn-ink); }
.ch--crit { border-color: rgba(208, 59, 59, .7); background: linear-gradient(180deg, rgba(208, 59, 59, .18), var(--d11-surface-2)); animation: d11-alarm 1.6s ease-in-out infinite; }
.ch--crit .ch__bar { background: var(--d11-crit); }
.ch--crit .ch__no i { color: var(--d11-crit-ink); }
.ch--off { background: repeating-linear-gradient(135deg, var(--d11-surface-2) 0 6px, #241a42 6px 9px); }
.ch--off .ch__v { font-size: 12px; color: var(--ailo-muted); }
@keyframes d11-alarm { 50% { box-shadow: inset 0 0 0 1px rgba(255, 133, 133, .6), 0 0 16px -4px rgba(208, 59, 59, .8); } }

/* retention heatmap */
.heat-scroll { overflow-x: auto; }
.heat { width: 100%; min-width: 300px; border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.heat th { font-weight: 600; color: var(--ailo-muted); font-size: 11.5px; padding: 4px 6px; text-align: center; }
.heat thead th:first-child, .heat tbody th { text-align: left; }
.heat tbody th { font-family: var(--d11-font); color: var(--ailo-fg); white-space: nowrap; }
.heat td {
  text-align: center; height: 34px; font: 600 12.5px var(--d11-font); font-variant-numeric: tabular-nums; color: var(--ailo-fg);
  background: color-mix(in srgb, var(--d11-neon) var(--t, 0%), #1c1238); border-radius: 3px;
}
.heat td.is-hi { color: #051219; }
.heat td.heat__n { background: transparent; color: var(--ailo-muted); font-weight: 500; text-align: right; padding-right: 8px; }
.heat td.heat__na { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(150, 120, 255, .08) 5px 7px); }
.heat td:not(.heat__n):not(.heat__na):hover { outline: 1px solid #fff; outline-offset: -1px; }
.heat-scale { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font: 500 11px var(--d11-font); color: var(--ailo-muted); margin-top: 10px; }
.heat-scale i { width: 140px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #1c1238, var(--d11-neon)); }

/* table */
.tsearch { position: relative; }
.tsearch i { position: absolute; left: 11px; top: 50%; translate: 0 -50%; font-size: 12px; color: var(--ailo-muted); }
.tsearch input { height: 34px; width: 220px; max-width: 100%; padding: 0 12px 0 32px; font-size: 12.5px; color: var(--ailo-fg); background: var(--d11-surface-2); border: 1px solid var(--ailo-line); border-radius: 3px; }
.tsearch input::placeholder { color: #7f76a8; }
.tsearch input:focus { outline: none; border-color: var(--d11-neon); }
.tbl-scroll { overflow-x: auto; }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 0; border-bottom: 1px solid rgba(34, 229, 255, .35); }
.tbl th button { width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; font: 600 11.5px var(--ailo-font); letter-spacing: .04em; color: var(--ailo-muted); white-space: nowrap; }
.tbl th.r button { text-align: right; }
.tbl th button i { font-size: 10px; margin-left: 4px; opacity: .5; }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--d11-neon); }
.tbl th[aria-sort] button i { opacity: 1; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid rgba(150, 120, 255, .09); white-space: nowrap; vertical-align: middle; }
.tbl td b { font-weight: 600; display: block; }
.tbl td small { font: 500 11px var(--d11-font); color: #7f76a8; letter-spacing: .03em; }
.tbl td.r { text-align: right; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(34, 229, 255, .05); }
.tbl tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--d11-neon); }
.bdg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border: 1px solid; white-space: nowrap; }
.bdg i { font-size: 9.5px; }
.bdg--live { color: var(--d11-neon); border-color: rgba(34, 229, 255, .5); background: rgba(34, 229, 255, .08); }
.bdg--soon { color: #c3b9ff; border-color: rgba(128, 112, 240, .6); background: rgba(128, 112, 240, .12); }
.bdg--warn { color: var(--d11-warn-ink); border-color: rgba(250, 178, 25, .55); background: rgba(250, 178, 25, .10); }
.bdg--end { color: var(--ailo-muted); border-color: var(--ailo-line); }
.tbl-empty { text-align: center; color: var(--ailo-muted); padding: 24px 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pager p { font-size: 12px; color: var(--ailo-muted); }
.pager ul { display: flex; gap: 4px; }
.pager nav a { min-width: 30px; height: 30px; display: grid; place-items: center; font: 600 12px var(--d11-font); color: var(--ailo-muted); border: 1px solid var(--ailo-line); }
.pager nav a:hover { color: var(--d11-neon); border-color: var(--d11-neon); }
.pager nav a.is-on { background: var(--d11-neon); color: var(--ailo-accent-ink); border-color: var(--d11-neon); }

/* ops log */
.log { position: relative; display: flex; flex-direction: column; }
.log::before { content: ""; position: absolute; left: 45px; top: 6px; bottom: 6px; width: 1px; background: var(--ailo-line); }
.log li { position: relative; display: grid; grid-template-columns: 38px auto 1fr; gap: 0 14px; align-items: start; padding: 8px 0; }
.log time { font-size: 12px; color: var(--ailo-muted); padding-top: 1px; }
.log li::before { content: ""; position: absolute; left: 42px; top: 14px; width: 7px; height: 7px; background: var(--ailo-bg); border: 1px solid var(--d11-neon); rotate: 45deg; }
.log .lt { grid-column: 2; font-size: 11px; font-weight: 700; padding: 1px 7px; border: 1px solid; margin-left: 10px; white-space: nowrap; color: var(--ailo-fg); }
.log p { grid-column: 3; font-size: 12.5px; line-height: 1.5; color: #d6d0f5; }
.lt--srv { border-color: var(--d11-s1); }
.lt--pay { border-color: var(--d11-s3); }
.lt--ban { border-color: var(--d11-s4); }
.lt--ntc { border-color: var(--d11-s2); }
.lt--evt { border-color: var(--ailo-muted); }

/* footer */
.ft { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 16px clamp(14px, 1.8vw, 24px) 22px; font-size: 12px; color: #7f76a8; border-top: 1px solid var(--ailo-line); }
.ft__links { display: flex; gap: 16px; }
.ft__links a:hover { color: var(--d11-neon); }
.ft b { color: var(--ailo-fg); }

/* ===== Responsive ===== */
@media (max-width: 1399.98px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .g-ccu, .g-srv, .g-rev, .g-ret, .g-evt, .g-log { grid-column: 1 / -1; }
  .srv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 991.98px) {
  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(270px, 84vw); z-index: 200;
    transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ailo-ease), visibility .3s;
    box-shadow: 0 0 60px -10px rgba(255, 63, 216, .35);
  }
  .ops.rail-open .rail { transform: none; visibility: visible; transition: transform .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .rail__brand, .rail__nav a span { opacity: 1; }
  .rail__nav a em { position: static; margin-left: auto; }
  .rail__toggle { display: none; }
  .rail__close {
    display: grid; place-items: center; position: absolute; top: 18px; right: 12px; width: 38px; height: 38px;
    border: 1px solid var(--ailo-line); background: transparent; color: var(--ailo-fg);
  }
  .rail-dim { display: block; position: fixed; inset: 0; z-index: 190; background: rgba(5, 2, 14, .66); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .ops.rail-open .rail-dim { opacity: 1; visibility: visible; }
  .hud { gap: 12px; }
}
@media (max-width: 767.98px) {
  .hud__search { display: none; }
  .hud__actions { margin-left: auto; }
  .srv { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .hud { height: 58px; }
  .hud__who, .hud__cover { display: none; }
  .hud__build { font-size: 11px; }
  .dd__panel { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
  .ph { align-items: stretch; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 7px 4px; }
  .kpi { padding: 12px 12px 10px; }
  .kpi__d small { display: block; width: 100%; }
  .panel__h { flex-wrap: wrap; }
  .ccu-now { text-align: left; width: 100%; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .ccu-now span { display: inline; }
  .chart--ccu { height: 240px; }
  .chart--rev { height: 250px; }
  .tsearch, .tsearch input { width: 100%; }
  .heat th:nth-child(2), .heat td.heat__n { display: none; }
  .log::before, .log li::before { display: none; }
  .log li { grid-template-columns: 38px 1fr; gap: 4px 10px; }
  .log .lt { grid-column: 2; justify-self: start; margin-left: 0; }
  .log p { grid-column: 2; }
  .pager { justify-content: center; }
  .ft { justify-content: center; text-align: center; }
}
