:root { color-scheme: light dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f4f6fa; color: #162033; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 820px; margin: auto; padding: 28px 18px calc(32px + env(safe-area-inset-bottom)); }
header { padding: 4px 0 18px; }
.eyebrow { color: #52617a; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
h1 { font-size: clamp(27px, 5vw, 38px); letter-spacing: -.04em; margin: 12px 0; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { line-height: 1.5; font-size: 14px; margin: 12px 0; }
section, details { background: #fff; border: 1px solid #dae0eb; border-radius: 16px; padding: 20px; margin-bottom: 16px; }
#status { background: #e7edff; padding: 12px 16px; border-radius: 10px; font-weight: 600; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
button { border: 0; border-radius: 10px; background: #2855d9; color: white; min-height: 44px; padding: 11px 16px; font: inherit; font-size: 14px; cursor: pointer; }
button:disabled { background: #d9dfeb; color: #52617a; cursor: default; }
button.secondary { background: #edf0f6; color: #293750; }
button:focus-visible, summary:focus-visible, input:focus-visible, pre:focus-visible { outline: 3px solid #7695ff; outline-offset: 3px; }
label { display: block; font-size: 14px; margin: 12px 0 8px; }
input { width: 100%; border: 1px solid #bec8dc; border-radius: 9px; padding: 12px; font: inherit; background: #fff; color: inherit; }
small, .privacy { display: block; font-size: 12px; line-height: 1.6; color: #56647a; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
#log { background: #10192c; color: #d4e0fa; padding: 16px; border-radius: 10px; max-height: 480px; overflow: auto; min-height: 120px; }
.log-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#count { color: #56647a; font-size: 12px; }
summary { cursor: pointer; font-weight: 600; min-height: 28px; }
@media (max-width: 440px) { section, details { padding: 16px; } .actions button { flex: 1 1 100%; } }
@media (prefers-color-scheme: dark) {
  :root { background: #0e1522; color: #e0e7f5; }
  section, details { background: #182234; border-color: #303d52; }
  #status { background: #233763; }
  input { background: #10192c; border-color: #52617a; }
  small, .privacy, .eyebrow, #count { color: #a8b6cc; }
  button:disabled { background: #303d52; color: #a8b6cc; }
  button.secondary { background: #303d52; color: #e0e7f5; }
}
