/* Safe presentation-only polish. Does not change stored data or routes. */
:root {
  --radius: 14px;
  --radius-sm: 10px;
  --focus: rgba(120, 184, 255, 0.32);
}

html { color-scheme: dark; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0.01em;
}

.header {
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(120, 184, 255, 0.18) !important;
}

.brand-title { letter-spacing: -0.02em !important; }
.brand-sub { font-size: 13px !important; }
.wrap { max-width: 1440px !important; padding: 22px !important; }

.top-nav { gap: 8px !important; }
.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.top-nav a:hover,
.top-nav a.is-active {
  background: rgba(120, 184, 255, 0.10);
  border-color: rgba(120, 184, 255, 0.18);
  color: var(--text) !important;
}

.card,
.panel {
  border-radius: var(--radius) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.22) !important;
}
.card-value,
td:last-child,
th:last-child {
  font-variant-numeric: tabular-nums;
}
.card-value { letter-spacing: -0.03em; }

.section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.section h2 { letter-spacing: -0.02em; }
.muted, .footer-note { line-height: 1.45; }

table {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #d9e5f4;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 12px !important;
}
th, td { border-left: 0 !important; border-right: 0 !important; }
td { line-height: 1.35; }
tr:hover { background: rgba(120, 184, 255, 0.08) !important; }

.item-cell img {
  width: 28px !important;
  height: 28px !important;
  padding: 2px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
}

.header-search input[type="text"],
.toolbar-form input,
.toolbar-form select,
.table-filter-input {
  background: rgba(9, 12, 17, 0.88) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
}
.header-search input[type="text"]:focus,
.toolbar-form input:focus,
.toolbar-form select:focus,
.table-filter-input:focus {
  outline: 3px solid var(--focus) !important;
  border-color: rgba(120, 184, 255, 0.70) !important;
}

button,
.button-link {
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}
.button-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: #1d2530;
  color: var(--text);
  font-weight: 600;
}
.button-link:hover { background: #253140; text-decoration: none; }

.toolbar-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.toolbar-form input { min-width: min(360px, 100%); padding: 10px 12px; }
.toolbar-form select { padding: 10px 12px; }
.toolbar-form button { padding: 10px 14px; cursor: pointer; }

.table-filter-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px 0;
}
.table-filter-input {
  width: min(360px, 100%);
  padding: 10px 12px;
}

.refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(120, 184, 255, 0.09);
  color: var(--muted);
  border: 1px solid rgba(120, 184, 255, 0.14);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .wrap { padding: 14px !important; }
  .header { position: static !important; }
  .top-nav a { padding: 6px 8px; }
  .panel { overflow-x: auto; }
  table { min-width: 680px; }
  .section { align-items: stretch; }
  .toolbar-form, .header-search form { width: 100%; }
  .toolbar-form input, .toolbar-form select, .toolbar-form button, .button-link { width: 100%; justify-content: center; }
}
