:root {
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e8e8e5;
  --text: #1d232b;
  --muted: #69707d;
  --off: #f8f9f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Geist", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2f3844;
  font-size: 13px;
}

.top-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-text {
  height: 18px;
  width: auto;
}

.login-brand {
  margin-bottom: 10px;
}

.admin-shell {
  padding: 22px 28px 32px;
}

.admin-hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(165deg, #ffffff, #f7fbfa);
  margin-bottom: 14px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #68707b;
}

.admin-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.admin-hero p {
  margin: 0;
  color: #555f6c;
  font-size: 15px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 21, 31, 0.03);
}

.card.wide {
  grid-column: 1 / -1;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats p {
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.row {
  display: flex;
  gap: 8px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 8px;
}

.btn {
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

.btn.ghost {
  background: #f2f4f5;
  color: #26323f;
  text-decoration: none;
}

.mono {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

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

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
}

.table th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.message-cell {
  min-width: 260px;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  background: #fff;
}

.login-wrap {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
}

.login-wrap.split {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 460px);
  gap: 22px;
  align-items: center;
}

.login-side {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--off);
  min-height: 560px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  align-self: center;
}

.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hint {
  margin-top: 10px;
  color: #b42318;
  font-size: 13px;
}

.login-side h1 {
  margin: 4px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 300;
}

.login-side > p {
  margin: 0;
  color: #525d6b;
  font-size: 15px;
  line-height: 1.7;
  max-width: 52ch;
}

.login-side .brand-mark {
  width: 34px;
  height: 34px;
}

.login-side .brand-text {
  height: 20px;
}

@media (max-width: 980px) {
  .top { padding: 10px 16px; }
  .admin-shell {
    padding: 16px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .login-wrap.split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .login-side {
    min-height: 0;
    padding: 24px;
  }
  .login-side h1 {
    font-size: 34px;
  }
  .admin-logo span { display: none; }
}
