:root {
  --bg: #080b14; --card: #111827; --text: #e5e7eb; --muted: #9ca3af; --line: #1f2937;
  --accent: #34d399; --warn-bg: #3b2806; --warn-line: #d97706; --err: #f87171; --tag: #1e293b;
  --badge-sbx-bg: #1e293b; --badge-sbx-fg: #93c5fd;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f8; --card: #ffffff; --text: #111827; --muted: #4b5563; --line: #d1d5db;
    --accent: #047857; --warn-bg: #fff7e6; --warn-line: #d97706; --err: #b91c1c; --tag: #eef2f5;
    --badge-sbx-bg: #dbeafe; --badge-sbx-fg: #1e40af;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px;
}
.card {
  width: 100%; max-width: 580px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px;
}
.brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.brand-left { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.logo { width: 22px; height: 22px; }
.sandbox-pill {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--badge-sbx-bg); color: var(--badge-sbx-fg);
}
h1 { font-size: 20px; margin: 0 0 6px; line-height: 1.3; }
.app { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font-size: 13px; background: var(--tag); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 16px 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.warn {
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 12px 0;
}
.error { color: var(--err); font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 4px; margin: 16px 0; }
legend { padding: 0 6px; color: var(--muted); font-size: 13px; }
.scope {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.scope:last-child { border-bottom: 0; }
.scope input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.scope.off { opacity: 0.55; cursor: default; }
.tag {
  font-style: normal; font-size: 11px; background: var(--tag); color: var(--muted);
  border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap;
}
.sensitive .tag.sens { color: var(--warn-line); }
.ack { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-weight: 600; }
.ack input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
button, .btn {
  display: inline-block; text-decoration: none; font: inherit; font-weight: 600;
  border-radius: 10px; padding: 10px 18px; border: 1px solid var(--accent);
  background: var(--accent); color: #04130d; cursor: pointer; min-height: 44px;
}
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
footer { margin-top: 16px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
