:root {
  --bg: #f4f8ff;
  --card: #ffffff;
  --ink: #102a43;
  --muted: #5f6f89;
  --line: #cfe0f5;
  --accent: #006699;
  --accent-dark: #004f7c;
  --accent-soft: #e6f3fb;
  --secondary: #334e68;
  --danger: #b42318;
  --success: #087443;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #ffffff 0, var(--bg) 44%, #eaf3ff 100%);
  color: var(--ink);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #0000ff; text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 52px; }
.hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 16px;
}
.lysebrand { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.lysebrand:hover { text-decoration: none; }
.lyse { color: var(--accent); font-weight: 900; letter-spacing: .08em; font-size: 24px; line-height: 1; }
.service { color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: 14px; justify-self: center; }
.rocket { font-size: 38px; filter: drop-shadow(0 4px 8px rgba(0, 102, 153, .18)); }
h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1; letter-spacing: -0.05em; color: var(--accent-dark); }
.brand p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }
.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 8px 13px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 14px 35px rgba(0, 75, 125, 0.10);
  margin-bottom: 22px;
}
.card h2 { margin-top: 0; color: var(--accent-dark); font-size: clamp(25px, 4vw, 39px); line-height: 1.12; letter-spacing: -0.035em; }
.card h3 { color: var(--accent-dark); margin-bottom: 8px; }
.lead { font-size: clamp(17px, 2.3vw, 23px); color: var(--muted); margin-top: -6px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fbfdff;
}
.step strong { display: block; margin-bottom: 6px; color: var(--accent-dark); }
label { display: block; font-weight: 800; margin: 20px 0 7px; color: var(--ink); }
textarea, input[type=text], input[type=hidden] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea:focus, input[type=text]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 102, 153, .13);
}
textarea.code {
  min-height: 190px;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: 13px;
  white-space: pre;
}
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.notice {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 14px;
  padding: 13px 15px;
  margin-top: 16px;
}
.checkrow { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; }
.checkrow input { margin-top: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.btn, button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 21px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  box-shadow: 0 10px 18px rgba(0, 102, 153, .24);
}
.btn.secondary { background: var(--secondary); box-shadow: none; }
.btn.success { background: var(--success); box-shadow: 0 10px 18px rgba(8, 116, 67, .18); }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.small { min-height: 38px; padding: 8px 12px; font-size: 12px; }
button:hover, .btn:hover { filter: brightness(.96); text-decoration: none; color: #fff; }
button[disabled] { opacity: .65; cursor: wait; }
.alert {
  padding: 15px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid;
  background: #fff;
}
.alert.error { color: var(--danger); border-color: #f3c8c3; background: #fff8f7; }
.alert.success { color: var(--success); border-color: #b7ebce; background: #f3fff8; }
.warning {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
  border-radius: 14px;
  padding: 14px 16px;
}
.table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: top; }
.table th { color: var(--accent-dark); background: #f2f8fc; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.token { font-family: Consolas, Menlo, Monaco, monospace; overflow-wrap: anywhere; font-size: 13px; }
.url { overflow-wrap: anywhere; }
.status { font-weight: 900; }
.status.valid { color: var(--success); }
.status.pending, .status.processing { color: #9a3412; }
.status.invalid { color: var(--danger); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; color: var(--muted); }
.kv strong { color: var(--ink); }
.footer { color: var(--muted); font-size: 12px; padding: 8px 6px; }
.adbox { margin: 14px 0 22px; min-height: 90px; border: 1px dashed var(--line); border-radius: 12px; background: rgba(255,255,255,.6); }
.local-key-wait { color: var(--muted); font-style: italic; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-items: flex-start; }
  .brand { justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .table, .table thead, .table tbody, .table tr, .table th, .table td { display: block; }
  .table th { display: none; }
  .table td { padding: 9px 0; }
  .kv { grid-template-columns: 1fr; }
}
