:root {
  color-scheme: dark;
  --bg: #0b1728;
  --card: #132842;
  --text: #eaf3ff;
  --muted: #9db3d4;
  --line: #2b466d;
  --accent: #2f9ddf;
  --danger: #cc4b58;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at -20% -20%, #1f3a5d 0%, var(--bg) 45%);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 19, 34, 0.6);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand h1 {
  margin: 0;
  font-size: 16px;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kv span {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.usage-track {
  margin-top: 10px;
  height: 9px;
  border-radius: 999px;
  background: #0e1d31;
  border: 1px solid var(--line);
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

#usageChart {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1d32;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td:last-child, th:last-child {
  white-space: normal;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  border: 1px solid var(--line);
  background: #1f3b5f;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  border-color: #7b2631;
  background: #4d1d24;
}

.danger-zone {
  border-color: #7b2631;
}

.status {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(10, 20, 34, 0.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 20;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

