body {
  font-family: -apple-system, system-ui, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #1a1c1f;
}

.gate-nav {
  background: #0f172a;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.gate-brand {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  margin-right: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gate-nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.gate-nav a.active,
.gate-nav a:hover {
  background: #2563eb;
  color: #fff;
}

.gate-nav-btn {
  margin-left: auto;
  background: #dc2626;
  color: #fff;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.gate-nav-btn:hover {
  background: #b91c1c;
}

.gate-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
  z-index: 1000;
}

.gate-toast[hidden] {
  display: none;
}

.gate-main {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.gate-main h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.card h2 {
  font-size: 17px;
  margin-top: 0;
}

.muted {
  color: #64748b;
}

.ok {
  color: #16a34a;
}

.bad {
  color: #dc2626;
}

.btn {
  background: #2563eb;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn.secondary {
  background: #64748b;
}

.btn.danger {
  background: #dc2626;
}

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

table.data th,
table.data td {
  border-bottom: 1px solid #e5e9f0;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.toggle-row label {
  flex: 1;
  cursor: pointer;
}

textarea.json-editor {
  width: 100%;
  min-height: 200px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
}

input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.store-shell {
  position: relative;
  min-height: 420px;
  background: linear-gradient(180deg, #fafafa 0%, #eef2ff 100%);
  border-radius: 12px;
  overflow: hidden;
}

.store-content {
  padding: 48px 24px 120px;
  text-align: center;
}

.mock-fixed-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  z-index: 2;
}

.mock-widget {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: #2563eb;
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  z-index: 2;
}

.decision-panel {
  font-size: 13px;
}

.decision-panel pre {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  font-size: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.show {
  background: #dcfce7;
  color: #166534;
}

.badge.hide {
  background: #fee2e2;
  color: #991b1b;
}

.badge.off {
  background: #f1f5f9;
  color: #475569;
}

.flash {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lab-card {
  border: 1px dashed #94a3b8;
  background: #f8fafc;
}
