:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #172033;
  background: #f5f7fb;
}
body { margin: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: white;
  border-bottom: 1px solid #e0e4ef;
}
.topbar span { color: #6b7280; margin-left: 12px; }
.container { max-width: 1180px; margin: 28px auto; padding: 0 18px; }
.card {
  background: white;
  border: 1px solid #e0e4ef;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card {
  width: min(420px, calc(100vw - 40px));
  background: white;
  border: 1px solid #e0e4ef;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input, select {
  width: 100%; box-sizing: border-box; padding: 11px 12px;
  border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px;
}
button, .button {
  display: inline-block;
  background: #1f2937;
  color: white;
  border: none;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
button:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: #64748b; }
.danger { background: #991b1b; padding: 7px 10px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
th { background: #f8fafc; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid-form button { align-self: end; }
.muted { color: #64748b; }
.error { background: #fee2e2; color: #7f1d1d; padding: 10px; border-radius: 10px; }
.warning { background: #fff7ed; color: #7c2d12; padding: 12px; border-radius: 10px; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; border: 1px solid #d8dee9; background: white; }
.notice.ok { background: #ecfdf5; color: #064e3b; border-color: #a7f3d0; }
.notice.error { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.status-grid div { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #f8fafc; }
.status-grid .label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #eef2ff; font-size: 12px; font-weight: 700; }
.badge.write { background: #dcfce7; }
.badge.read { background: #e0f2fe; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.small { font-size: 12px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
code { background: #f1f5f9; padding: 2px 5px; border-radius: 6px; }
@media (max-width: 900px) { .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-form { grid-template-columns: 1fr; } .status-grid { grid-template-columns: 1fr; } }
.hero { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.status-pill { padding: 8px 12px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.status-pill.ok { background: #dcfce7; color: #14532d; }
.status-pill.warn { background: #fef3c7; color: #92400e; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #eef2ff; font-size: 12px; font-weight: 700; }
.tag.write { background: #dcfce7; color: #14532d; }
.message { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #ecfdf5; color: #064e3b; border: 1px solid #a7f3d0; }
.message.error { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; }
@media (max-width: 760px) { .hero { align-items: flex-start; flex-direction: column; } }
.status-pill { padding: 8px 12px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.status-pill.ok { background: #dcfce7; color: #166534; }
.status-pill.warn { background: #fef3c7; color: #92400e; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #eef2ff; font-size: 12px; font-weight: 700; }
.tag.write { background: #dcfce7; }
.message { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; }
@media (max-width: 760px) { .hero { display: block; } .status-pill { display: inline-block; margin-top: 10px; } }
