*, *::before, *::after { box-sizing: border-box; }

:root {
  --fg: #0f172a;
  --muted: #64748b;
  --bg: #fbfbfc;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --radius: 10px;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

main { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 6rem; }

h1 { font-size: 2rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem;
}
pre {
  background: #0b1020;
  color: #f1f5f9;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  overflow: auto;
}
code:not(pre code) {
  background: #f1f5f9;
  padding: .1rem .35rem;
  border-radius: 4px;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #0b1020; color: #fff;
  padding: .25rem .55rem; border-radius: 6px;
  display: inline-block; word-break: break-all;
}

.notice {
  background: #ecfdf5; color: #065f46;
  border: 1px solid #a7f3d0;
  padding: .6rem 1rem; border-radius: var(--radius);
  margin-bottom: 1rem;
}

button, .btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 8px;
  padding: .55rem 1rem; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-dark); color: #fff; }

input[type=email], input[type=text] {
  width: 100%; padding: .6rem .8rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; background: #fff;
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
th { font-weight: 600; background: #f8fafc; }

footer { margin-top: 4rem; color: var(--muted); font-size: .85rem; }

.success { color: #047857; font-weight: 600; }
.warn    { color: #b45309; font-weight: 600; }

.copyable {
  cursor: pointer;
  transition: transform .05s ease, box-shadow .15s ease;
  user-select: all;
}
.copyable:hover  { box-shadow: 0 0 0 2px var(--accent) inset; }
.copyable:active { transform: translateY(1px); }
.copyable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toast {
  position: fixed;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0f172a; color: #fff;
  padding: .55rem 1rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 100;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
