/* WeConfirm dashboard — reuses the app/site identity: emerald on near-black, Sora + Public Sans. */
:root {
  --bg: #06100D;
  --bg2: #0b1a15;
  --card: #0e1f19;
  --line: #1c3a30;
  --ink: #eaf5f0;
  --muted: #9fb8ad;
  --emerald: #19D191;
  --emerald-ink: #06281d;
  --amber: #f3c969;
  --red: #ff6b6b;
  --radius: 14px;
  --maxw: 460px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
html { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--emerald); }
.top { border-top: 3px solid var(--emerald); }
header.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 40px); border-bottom: 1px solid var(--line);
}
.wordmark { font-family: "Sora", system-ui, sans-serif; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark b { color: var(--emerald); font-weight: 700; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 6vw, 48px) 16px 48px; flex: 1; }
h1 { font-family: "Sora", system-ui, sans-serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; }
.card h2 { font-family: "Sora", system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; }
label { display: block; font-size: 0.88rem; color: var(--muted); margin: 14px 0 6px; }
input {
  width: 100%; padding: 12px 14px; font-size: 1rem; color: var(--ink);
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; outline: none;
}
input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(25,209,145,0.18); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; margin-top: 20px; font-size: 1rem; font-weight: 600;
  font-family: inherit; color: var(--emerald-ink); background: var(--emerald);
  border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--emerald); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--emerald); filter: none; }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 16px; text-align: center; }
.msg { margin-top: 16px; padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4); color: #ffb3b3; }
.msg.ok { background: rgba(25,209,145,0.12); border: 1px solid rgba(25,209,145,0.4); color: #9fe9cd; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--emerald); background: rgba(25,209,145,0.12); }
.pill.warn { color: var(--amber); background: rgba(243,201,105,0.12); }
.pill.off { color: var(--red); background: rgba(255,107,107,0.12); }
.rowline { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.rowline:last-child { border-bottom: 0; }
.rowline span:first-child { color: var(--muted); }
.big { font-family: "Sora", system-ui, sans-serif; font-size: 1.5rem; font-weight: 600; }
.note { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.momo { font-family: "Sora", system-ui, monospace; font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.linkrow { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
footer { padding: 20px; text-align: center; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 4px; }
.linkrow { flex-wrap: wrap; gap: 12px; }
.note, .sub, .momo, .rowline { overflow-wrap: anywhere; }
.wordmark { min-height: 44px; display: inline-flex; align-items: center; }
