/* The ShopBeat brand, as the control panel shows it (shopbeat-next src/lib/theme.ts and the live ShopBeat theme). */
:root {
  --primary: #ec175c;
  --primary-text: #ffffff;
  --secondary: #565e64;
  --header: #13bae0;
  --header-text: #ffffff;
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #16a34a;
  --warn: #ed6c02;
  --bad: #dc2626;
  --radius: 14px;
  --control-radius: 8px;
}
* { box-sizing: border-box; }
/* The display rules below (label, .row) would otherwise show rows the page hides. */
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px;
}
.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; background: var(--header); color: var(--header-text);
}
.logo { height: 34px; width: auto; display: block; }
.topbar h1 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill:empty { display: none; }
.pill { background: rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; }
main { max-width: 1280px; margin: 0 auto; padding: 24px 16px 40px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card-narrow { max-width: 420px; margin: 48px auto; }
h2 {
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
label { display: block; margin: 0 0 14px; font-weight: 500; }
input, textarea {
  display: block; width: 100%; max-width: 28rem; margin-top: 6px; padding: 10px 12px;
  font: inherit; color: inherit; background: #fff; border: 1px solid #d1d5db; border-radius: var(--control-radius);
}
input:focus, textarea:focus { outline: none; border-color: var(--header); box-shadow: 0 0 0 3px rgba(19, 186, 224, 0.2); }
textarea { max-width: 40rem; min-height: 5rem; }
.row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.row label { flex: 0 1 18rem; margin-bottom: 0; }
.turnon .row { margin-bottom: 14px; }
.note { margin: 0 0 14px; color: var(--muted); }
.note:empty, .error:empty { display: none; }
button, .btn {
  font: inherit; cursor: pointer; border: 1px solid transparent; border-radius: var(--control-radius);
  padding: 9px 18px; font-weight: 600; background: #fff; color: var(--primary); border-color: var(--primary);
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-ghost { background: transparent; color: var(--header-text); border-color: rgba(255, 255, 255, 0.7); padding: 6px 14px; }
.btn-block { width: 100%; margin-top: 6px; }
.error { color: var(--bad); margin: 12px 0 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th {
  text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: #fafbfc; }
td button, td a { margin: 0 6px 6px 0; padding: 5px 12px; font-size: 0.85rem; }
td a {
  display: inline-block; color: var(--primary); text-decoration: none; font-weight: 600;
  border: 1px solid var(--primary); border-radius: var(--control-radius);
}
td.error { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: #eef2f7; }
.badge-good { background: #dcfce7; color: #166534; }
.badge-wait { background: #fef3c7; color: #92400e; }
.badge-bad { background: #fee2e2; color: #991b1b; }
pre {
  margin: 0; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: var(--control-radius);
  max-height: 24rem; overflow: auto; font-size: 0.8rem;
}
pre:empty::before { content: "Choose Log tail on a store to see its runtime log."; color: #94a3b8; }
@media (max-width: 700px) {
  .topbar { padding: 10px 16px; }
  .card { padding: 16px; }
  .card-narrow { margin: 24px auto; }
}
