* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #10131a; color: #e6e8ee;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px; min-height: 100vh;
}
.hidden { display: none !important; }

.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.box { background: #171a21; border: 1px solid #333a48; border-radius: 12px; padding: 28px; width: 320px; }
.box h1 { font-size: 20px; margin-bottom: 4px; }
.box .sub { color: #8b93a7; margin-bottom: 16px; }
input[type="password"] {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  background: #1d222d; border: 1px solid #333a48; border-radius: 8px; color: #e6e8ee; font-size: 14px;
}
button {
  background: #2b6cb0; color: #fff; border: 0; border-radius: 8px;
  padding: 10px 16px; font-size: 14px; cursor: pointer;
}
button:disabled { opacity: 0.4; cursor: default; }
button.ghost { background: transparent; border: 1px solid #333a48; color: #aab2c5; }
.error { color: #ff6b6b; margin-top: 10px; min-height: 18px; }

#main { flex-direction: column; align-items: stretch; min-height: 100vh; }
header {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: #171a21; border-bottom: 1px solid #333a48;
  position: sticky; top: 0;
}
header .title { font-size: 18px; font-weight: 600; }
header nav { display: flex; gap: 8px; flex: 1; }
header .tab { background: transparent; border: 1px solid #333a48; color: #aab2c5; }
header .tab.active { background: #2b6cb0; color: #fff; border-color: #2b6cb0; }

.tabpage { padding: 20px; max-width: 1100px; width: 100%; margin: 0 auto; }
.badges { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
  background: #171a21; border: 1px solid #333a48; border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #c8cdd9;
}
table.grid { width: 100%; border-collapse: collapse; background: #171a21; border: 1px solid #333a48; border-radius: 8px; overflow: hidden; }
table.grid th, table.grid td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #232a38; }
table.grid th { background: #1d222d; color: #8b93a7; font-weight: 600; font-size: 12px; text-transform: uppercase; }
.hint { color: #8b93a7; margin-top: 12px; font-size: 13px; }

.logview {
  background: #0c0f14; border: 1px solid #333a48; border-radius: 8px;
  padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all;
  max-height: 70vh; overflow: auto; color: #b9c0cf;
}
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.toolbar select {
  background: #1d222d; border: 1px solid #333a48; border-radius: 8px;
  color: #e6e8ee; padding: 8px 10px; font-size: 14px; flex: 1; max-width: 400px;
}
.toolbar span { color: #8b93a7; font-size: 13px; }
