:root {
  --bg: #0f1420; --panel: #171e2e; --panel2: #1e2740; --line: #283350;
  --text: #e6ecf7; --muted: #93a0bd; --accent: #4f8cff;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
a { color: inherit; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; font-size: 18px; }
.env { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; align-items: center; }
.logout { color: var(--accent); text-decoration: none; }

.legend {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  padding: 12px 22px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line);
}

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px; padding: 22px; max-width: 1500px; margin: 0 auto;
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.panel-head {
  display: flex; gap: 12px; align-items: center; padding: 16px 18px;
  background: var(--panel2); border-bottom: 1px solid var(--line);
}
.panel-icon { font-size: 22px; }
.panel-head h2 { margin: 0; font-size: 16px; }
.subtitle { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.panel-body { padding: 10px 14px; overflow-y: auto; max-height: 520px; }

.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item-title { font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.45; }
a.item-title:hover { color: var(--accent); }
.item-sum { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.item-meta { margin: 5px 0 0; font-size: 11px; color: #6f7c99; }

.label {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; margin-right: 7px; vertical-align: middle; white-space: nowrap;
}
.label-confirmed { background: rgba(31,157,107,.16); color: #43d39e; border: 1px solid rgba(31,157,107,.4); }
.label-reported { background: rgba(79,140,255,.16); color: #7fb0ff; border: 1px solid rgba(79,140,255,.4); }
.label-opinion { background: rgba(201,138,27,.16); color: #e7b24e; border: 1px solid rgba(201,138,27,.4); }
.label-unverified { background: rgba(138,92,246,.16); color: #b394ff; border: 1px solid rgba(138,92,246,.4); }

.status {
  padding: 16px; border: 1px dashed var(--line); border-radius: 10px;
  margin: 8px 0; background: rgba(255,255,255,.02);
}
.status-name { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.status-msg { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.status-license { border-color: rgba(201,138,27,.4); }
.status-error { border-color: rgba(255,125,125,.4); }
.btn {
  display: inline-block; font-size: 12.5px; background: var(--accent); color: #fff;
  padding: 7px 12px; border-radius: 8px; text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }

.foot { padding: 18px 22px; font-size: 12px; color: #6f7c99; text-align: center; border-top: 1px solid var(--line); }

/* 로그인 */
.login-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 30px; width: 320px; text-align: center;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.login-sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.login-card input {
  width: 100%; padding: 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 15px; margin-bottom: 12px;
}
.login-card button {
  width: 100%; padding: 12px; border: none; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.login-err { color: #ff7d7d; font-size: 13px; margin: 0 0 12px; }
