:root {
  color-scheme: light;
  --bg: #eef2e6;
  --panel: rgba(255, 252, 245, 0.95);
  --ink: #1d2318;
  --muted: #5d6655;
  --line: rgba(29, 35, 24, 0.12);
  --accent: #0f6c5c;
  --danger: #922f24;
  --warn: #9f6b11;
  --shadow: 0 18px 50px rgba(44, 56, 35, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 108, 92, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(159, 107, 17, 0.12), transparent 28%),
    linear-gradient(180deg, #f4f7ef 0%, #e7eee0 100%);
}

.page { width: min(1200px, calc(100vw - 32px)); margin: 24px auto 40px; display: grid; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.lede { max-width: 640px; color: var(--muted); font-size: 16px; }
.auth-box, .stack, .edit-grid { display: grid; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(29, 35, 24, 0.18); background: rgba(255, 255, 255, 0.9); color: var(--ink); }
textarea { resize: vertical; }
button { border: none; border-radius: 999px; padding: 12px 18px; background: var(--ink); color: #fff; cursor: pointer; transition: transform 120ms ease, opacity 120ms ease; }
button:hover { transform: translateY(-1px); }
button.secondary { background: rgba(29, 35, 24, 0.08); color: var(--ink); }
button.warn { background: var(--warn); }
button.danger { background: var(--danger); }
.muted { color: var(--muted); }
.hidden { display: none; }
.result-card { padding: 16px; border-radius: 16px; background: rgba(15, 108, 92, 0.08); border: 1px solid rgba(15, 108, 92, 0.14); white-space: pre-wrap; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.license-list { display: grid; gap: 18px; }
.license-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: rgba(255, 255, 255, 0.75); display: grid; gap: 14px; }
.license-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.serial { margin-bottom: 4px; font-size: 24px; font-weight: 700; letter-spacing: 0.04em; }
.meta { margin: 0; color: var(--muted); }
.badge { padding: 7px 12px; border-radius: 999px; background: rgba(15, 108, 92, 0.12); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.badge.blacklisted { background: rgba(146, 47, 36, 0.12); color: var(--danger); }
.license-body { display: grid; gap: 6px; color: var(--muted); }
.edit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notes-block { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.activations { display: grid; gap: 10px; }
.activation-row { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(29, 35, 24, 0.04); }
.activation-row strong { display: block; }
.activation-actions { display: flex; gap: 10px; margin-top: 8px; }

@media (max-width: 900px) {
  .hero, .two-col, .edit-grid { grid-template-columns: 1fr; }
}
