/* Shared by index.html and history.html. */
:root {
  --bg: #0b0e14;
  --panel: #141925;
  --panel-2: #1b2130;
  --border: #283143;
  --text: #e6e9ef;
  --muted: #8b95a7;
  --accent: #5b8cff;
  --accent-2: #3f6fe0;
  --ok: #3ecf8e;
  --warn: #f2b347;
  --err: #ff6b6b;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #18203250, transparent), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}
.wrap { width: 100%; max-width: 720px; }
h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.02em; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
input[type='text'], input[type='password'], select, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
  transition: border-color 0.15s;
}
input[type='text']:focus, input[type='password']:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 64px; }
select { appearance: none; cursor: pointer; }
.row { display: flex; gap: 10px; margin-top: 14px; }
button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
button:hover { background: var(--accent-2); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
button.ghost:hover { background: var(--panel-2); }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--err); }
.hidden { display: none !important; }
#result { margin-top: 4px; }
.msg { border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.5; border: 1px solid var(--border); }
.msg.ok { background: #11271d; border-color: #1f6f4a; }
.msg.warn { background: #2a2310; border-color: #6b561c; }
.msg.err { background: #2a1414; border-color: #6b2424; }
.msg .title { font-weight: 600; margin-bottom: 6px; }
pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  overflow: auto;
  font-size: 12.5px;
  margin: 12px 0 0;
  color: #c8d0de;
}
.meta { font-size: 11.5px; color: var(--muted); margin-top: 10px; font-family: ui-monospace, monospace; }
.tokenbox { margin-top: 14px; }
a.dl { color: var(--accent); font-weight: 600; text-decoration: none; }
