:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #17201c;
  background: #f5f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #838b87;
  --line: #e6e9e7;
  --green: #197450;
  --green-dark: #125b3e;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
}

button, textarea { font: inherit; }
button { cursor: pointer; }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 34px;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ecea;
}

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: #18231e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.25px;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #1d7954;
  font-size: 16px;
}

.brand-light { color: #8b938f; font-weight: 500; }
.doc-link { color: #727b76; font-size: 13px; text-decoration: none; }
.doc-link:hover { color: var(--green); }
.fullscreen-button { min-height: 32px; padding: 0 10px; }
.intro { max-width: 760px; padding: 65px 0 29px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font: 500 11px var(--mono);
  letter-spacing: 1.05px;
}

.pulse { width: 7px; height: 7px; border-radius: 50%; background: #47a87a; box-shadow: 0 0 0 4px #e2f2e9; }

h1 {
  margin: 17px 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.24;
  letter-spacing: -1.7px;
  font-weight: 600;
}

h1 span { color: var(--green); }
.intro-copy { max-width: 670px; margin: 0; color: #747c78; font-size: 15px; line-height: 1.8; }

.warning {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 2px 0 25px;
  padding: 15px 18px;
  border: 1px solid #f0dfb5;
  border-radius: 10px;
  background: #fffbf1;
  color: #806329;
  font-size: 12px;
  line-height: 1.75;
}

.warning strong { color: #6d511a; font-weight: 600; }
.warning-icon { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #f4e7c8; font-size: 12px; font-weight: 700; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: stretch; }

.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e5e9e6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(32 48 39 / 3%);
}

.panel-heading, .panel-heading > div, .key-card-head, .key-card-head > div { display: flex; align-items: center; }
.panel-heading { justify-content: space-between; margin-bottom: 23px; }
.panel-heading > div { gap: 10px; }
.step { color: #5f9a7a; font: 500 11px var(--mono); }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-caption { color: #9aa19d; font: 11px var(--mono); }
.field-label { display: block; margin-bottom: 8px; color: #777f7b; font: 11px var(--mono); }
.code-input { width: 100%; resize: vertical; border: 1px solid #e8ebe9; border-radius: 8px; outline: none; background: #fafbfa; color: #34413a; font: 11px/1.72 var(--mono); transition: border-color .15s, box-shadow .15s; }
.code-input:focus { border-color: #88b59c; box-shadow: 0 0 0 3px rgb(49 132 89 / 9%); }
.code-input::placeholder { color: #abb1ae; }
.payload-input { height: 274px; padding: 13px 14px; }
.license-input { height: 362px; padding: 13px 14px; }
.key-card { margin-top: 24px; padding: 14px; border: 1px solid #e9edea; border-radius: 9px; background: #fcfdfc; }
.key-card-head { justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.key-card-head > div { gap: 8px; }
.key-dot { width: 7px; height: 7px; border-radius: 50%; background: #76aa8d; }
.key-input { min-height: 62px; padding: 9px 10px; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: #43815e; font-size: 11px; }
.text-button:disabled { color: #b7bfba; cursor: default; }
.hint { margin: 8px 0 0; color: #9ba29e; font-size: 10px; line-height: 1.5; }
.action-row { display: flex; gap: 9px; align-items: center; margin-top: 13px; }
.button { min-height: 37px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 600; transition: background .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-quiet { color: #6f7973; border-color: #e7eae8; background: #fff; }
.button-quiet:hover { background: #f7f8f7; }
.verify-row { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.button-secondary { color: #236b49; border-color: #dcebe1; background: #f0f7f2; }
.button-secondary:hover { background: #e5f2e9; }
.verify-caption { color: #9aa19d; font-size: 10px; }

.result { min-height: 66px; display: flex; align-items: flex-start; gap: 10px; margin-top: 21px; padding: 13px; border: 1px solid #e9ecea; border-radius: 8px; background: #fafbfa; }
.result-indicator { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 4px; border-radius: 50%; background: #b4bcb7; }
.result strong { display: block; font-size: 12px; font-weight: 600; }
.result p { margin: 3px 0 0; color: #8c9490; font-size: 10px; line-height: 1.5; }
.result-success { border-color: #d4eadc; background: #f3faf5; color: #236b49; }
.result-success .result-indicator { background: #319565; }
.result-error { border-color: #f0d9d6; background: #fff7f6; color: #a34a41; }
.result-error .result-indicator { background: #c35f54; }

footer { display: flex; justify-content: space-between; padding: 24px 2px 35px; color: #9ba29e; font: 10px var(--mono); }
.footer-lock { margin-left: 3px; color: #6a9a7c; font-size: 8px; }

@media (max-width: 760px) {
  .page { padding: 0 19px; }
  .topbar { height: 64px; }
  .topbar-actions { gap: 9px; }
  .doc-link { font-size: 11px; }
  .intro { padding: 48px 0 25px; }
  h1 { letter-spacing: -1.1px; }
  .workspace { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  footer { gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
