/* Copyright (c) 2026 Uno Kim / AMEVA Foundation. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0 OR Commercial-License
 * 공개 화면 스타일: AMV 콘솔 계열(순흑 바탕, 단계형 표면, 옅은 구분선, 단일 강조색).
 */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-display: swap;
}
:root {
  --bg: #000; --bg-1: #08090b; --bg-2: #0e1013; --bg-3: #15171b;
  --line: rgba(255, 255, 255, 0.06); --line-2: rgba(255, 255, 255, 0.1);
  --tx: #f2f3f5; --tx-2: #a9adb6; --tx-3: #737883;
  --acc: #7aa7ff; --acc-bg: rgba(122, 167, 255, 0.1);
  --ok: #45d39a; --warn: #f2b450; --warn-bg: rgba(242, 180, 80, 0.1); --bad: #ff6f6f; --bad-bg: rgba(255, 111, 111, 0.1);
  --sans: "Pretendard Variable", -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--tx); font: 13px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--bg-1); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 14px; }
.brand { font-weight: 700; font-size: 13px; padding: 0 8px; }
.brand small { display: block; color: var(--tx-3); font-weight: 500; font-size: 11px; }
#nav { display: flex; flex-direction: column; gap: 2px; }
#nav a { color: var(--tx-2); padding: 7px 8px; border-radius: 7px; }
#nav a:hover { background: var(--bg-3); text-decoration: none; }
#nav a[aria-current="page"] { background: var(--acc-bg); color: var(--tx); }
.rail-note { margin-top: auto; color: var(--tx-3); font-size: 11px; padding: 0 8px; }
main { padding: 0 20px 40px; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
h1 { font-size: 16px; font-weight: 650; }
.chip { border: 1px solid var(--line-2); border-radius: 7px; padding: 2px 8px; font-size: 11px; color: var(--tx-2); white-space: nowrap; }
.chip.warn { color: var(--warn); border-color: var(--warn); }
.notice { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; color: var(--tx-2); }
.notice.warn { border-color: rgba(242, 180, 80, 0.4); background: var(--warn-bg); color: var(--tx); }
.notice.bad { border-color: rgba(255, 111, 111, 0.4); background: var(--bad-bg); color: var(--tx); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: block; color: inherit; }
a.stat:hover { border-color: var(--line-2); text-decoration: none; }
.stat b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.stat span { color: var(--tx-2); font-size: 11.5px; }
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.card h2 { font-size: 12.5px; font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.card .body { padding: 12px 14px; }
.scroll { overflow: auto; max-height: 68vh; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--bg-2); color: var(--tx-2); font-size: 11px; font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; }
td { white-space: nowrap; }
td.wide, td.mid, td[colspan] { white-space: normal; overflow-wrap: anywhere; }
td.wide { min-width: 280px; }
td.mid { min-width: 190px; }
.sub { color: var(--tx-3); font-size: 11px; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
input, select, button { background: var(--bg-3); color: var(--tx); border: 1px solid var(--line-2); border-radius: 7px; height: 32px; padding: 0 10px; font: inherit; }
input { min-width: 260px; }
button { cursor: pointer; }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 3px 0; }
.bar .track { background: var(--bg-3); border-radius: 3px; height: 8px; overflow: hidden; }
.bar .fill { background: var(--acc); height: 100%; }
.bar .v { text-align: right; color: var(--tx-2); }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  #nav { flex-direction: row; flex-wrap: wrap; }
  .rail-note { display: none; }
  main { padding: 0 12px 32px; }
  input { min-width: 0; width: 100%; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 64px; }
}
