:root {
  --bg: #0b0d10; --card: #14181d; --text: #e7ebef; --muted: #98a3ad; --line: #26303a;
  --accent: #34d399; --warn-bg: #3a2c0b; --warn-line: #a16207; --err: #f87171; --tag: #1f2a33;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f6f8; --card: #ffffff; --text: #111827; --muted: #5b6670; --line: #d8dee4;
    --accent: #047857; --warn-bg: #fff7e6; --warn-line: #d97706; --err: #b91c1c; --tag: #eef2f5; 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: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.logo { width: 22px; height: 22px; }
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: .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:first-of-type { 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 { 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); }
