body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #17202a;
}

a {
  color: #0b66ff;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #101625;
  color: #fff;
  padding: 24px 18px;
}

.sidebar h1 {
  font-size: 20px;
  margin: 0 0 24px;
}

.sidebar nav a {
  display: block;
  color: #d4d9e6;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #1b2438;
  color: #fff;
}

.content {
  padding: 28px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(16, 22, 37, 0.08);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
  background: linear-gradient(135deg, #0b66ff, #0fd0b0);
  color: white;
  border-radius: 18px;
  padding: 18px;
}

.stat .label {
  font-size: 13px;
  opacity: 0.9;
}

.stat .value {
  font-size: 30px;
  font-weight: 700;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eceff5;
  text-align: left;
  vertical-align: top;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dce8;
  border-radius: 10px;
  box-sizing: border-box;
  font: inherit;
}

textarea {
  min-height: 140px;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0b66ff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn.secondary {
  background: #eef3ff;
  color: #0b66ff;
}

.btn.danger {
  background: #ff5f5f;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef3ff;
  color: #0b66ff;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mode {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.mode.test {
  background: #fff2d8;
  color: #8a5a00;
}

.mode.live {
  background: #dff7eb;
  color: #066b3f;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(420px, calc(100vw - 32px));
}

.error {
  color: #b10026;
  margin-bottom: 12px;
}

.hint {
  color: #64748b;
  font-size: 14px;
}
