:root {
  color-scheme: light;
  --navy: #101b35;
  --navy-2: #18294c;
  --mint: #5ee0b5;
  --green: #147d62;
  --ink: #1b2540;
  --muted: #6f7890;
  --line: #e4e8f0;
  --surface: #ffffff;
  --bg: #f5f7fb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.topbar {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); margin-bottom: 38px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand b { color: var(--green); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--navy); color: var(--mint); font-weight: 800; font-size: 18px;
}
.top-actions { display: flex; align-items: center; gap: 14px; }
.pill { border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.pill.neutral { color: #69738a; background: #e9edf4; }
.pill.good { color: #12694f; background: #d9f8ed; }
.pill.warn { color: #8b5a11; background: #fff1d7; }
.hero-card {
  max-width: 760px; margin: 70px auto 100px; padding: 58px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 26px; color: white; box-shadow: 0 18px 50px #101b3520;
}
.hero-card h1 { max-width: 590px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.045em; margin: 14px 0; }
.hero-card p { max-width: 600px; color: #d1d9e8; margin-bottom: 28px; }
.eyebrow { color: var(--green); font-size: 11px; letter-spacing: .15em; font-weight: 800; }
.hero-card .eyebrow { color: var(--mint); }
.small-note { font-size: 12px; margin-top: 18px !important; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
h1 { margin: 5px 0; font-size: 34px; letter-spacing: -.04em; color: var(--navy); }
h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; color: var(--navy); }
p { margin: 5px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.two-col { grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
.stat-card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: 0 5px 20px #18294c08;
}
.stat-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.stat-card strong { display: block; font-size: 19px; color: var(--navy); overflow-wrap: anywhere; margin-bottom: 5px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
label { display: block; font-size: 12px; font-weight: 700; color: #56617a; margin: 13px 0 6px; }
input {
  width: 100%; min-width: 0; border: 1px solid #dce2ec; border-radius: 10px;
  padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; outline: none;
}
input:focus { border-color: #43b997; box-shadow: 0 0 0 3px #43b99720; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button {
  border: 0; border-radius: 10px; padding: 10px 15px; font: inherit; font-size: 13px;
  font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 7px;
}
.button-primary { color: var(--navy); background: var(--mint); }
.button-primary:hover { filter: brightness(.96); }
.button-secondary { color: #fff; background: var(--navy); }
.button-quiet { color: #53607a; background: #edf1f6; }
.button-small { padding: 6px 9px; font-size: 11px; }
.result { white-space: pre-wrap; min-height: 50px; font-size: 13px; }
.token-box { margin-top: 14px; border: 1px solid #c7eadc; background: #effbf6; padding: 12px; border-radius: 12px; }
.token-box p { font-size: 12px; color: #286b54; margin: 0 0 8px; }
.token-box code { display: block; overflow-wrap: anywhere; padding: 8px; background: white; border-radius: 7px; margin-bottom: 8px; }
.token-list { display: grid; gap: 8px; margin-top: 16px; font-size: 12px; }
.token-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 9px; }
.endpoint { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; }
.endpoint code { display: block; color: var(--green); overflow-wrap: anywhere; }
.output {
  min-height: 120px; max-height: 430px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  background: #101b35; color: #d7f7eb; border-radius: 12px; padding: 16px; font-size: 12px;
}
footer { text-align: center; padding: 34px 0; color: #8992a5; font-size: 12px; }
footer span { padding: 0 6px; }
.hidden { display: none !important; }
@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { padding: 0 15px; }
  .topbar { margin-bottom: 22px; height: 66px; }
  .brand { font-size: 13px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .hero-card { margin: 24px auto 50px; padding: 30px 24px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card, .panel { padding: 16px; }
  .stat-card strong { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
