:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #101622; color: #edf3ff; }
* { box-sizing: border-box; }
html { min-width: 280px; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 10% 0%, #1b3151, transparent 42%), #101622; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.hero { padding: 16px 0 28px; }
.eyebrow { color: #6ed6c4; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; margin: 8px 0 12px; }
h2 { margin: 0 0 10px; font-size: 20px; }
h3 { margin: 24px 0 10px; font-size: 14px; color: #aebbd0; text-transform: uppercase; letter-spacing: .08em; }
.subtitle, .muted { color: #aebbd0; line-height: 1.5; }
.subtitle { max-width: 680px; }
.card { margin: 18px 0; padding: 22px; border: 1px solid #2d3b53; border-radius: 18px; background: rgba(20, 30, 47, .86); box-shadow: 0 14px 35px rgba(0,0,0,.18); }
.grid { display: grid; gap: 14px; min-width: 0; } .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: #dbe5f6; font-size: 14px; }
input, textarea, select { min-width: 0; width: 100%; border: 1px solid #3a4a67; border-radius: 10px; background: #111b2c; color: #f4f7ff; padding: 11px 12px; font: inherit; }
textarea { resize: vertical; }
.button { min-height: 44px; border: 0; border-radius: 10px; cursor: pointer; padding: 11px 15px; color: #09121f; background: #6ed6c4; font: inherit; font-weight: 750; line-height: 1.2; transition: transform .15s, filter .15s; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); } .button:disabled { opacity: .45; cursor: wait; transform: none; }
.button.secondary { background: #a7c7ff; } .button.primary { background: #f3c969; } .button.ghost { background: transparent; border: 1px solid #465a7b; color: #dbe5f6; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.actions .button { flex: 1 1 170px; }
.section-heading { display: flex; gap: 12px; justify-content: space-between; align-items: start; }
.section-heading > div { min-width: 0; }
.status { display: inline-block; padding: 8px 11px; border-radius: 99px; font-size: 13px; margin-top: 8px; } .status-ok { color: #081a16; background: #6ed6c4; } .status-warn { color: #261c05; background: #f3c969; }
.output { min-height: 120px; max-width: 100%; margin-top: 18px; border-radius: 12px; padding: 15px; background: #0b1220; color: #c8d5e9; white-space: pre-wrap; overflow: auto; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
code { color: #9ed8ff; overflow-wrap: anywhere; } footer { color: #8290a8; font-size: 12px; line-height: 1.6; padding: 18px 0; overflow-wrap: anywhere; }
.page-header { display: flex; align-items: center; gap: 18px; padding: 14px 0 8px; }
.page-header h1 { margin-top: 4px; }
.back-link { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #465a7b; border-radius: 10px; color: #dbe5f6; text-decoration: none; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card { display: grid; align-content: start; gap: 10px; min-height: 180px; padding: 22px; border: 1px solid #2d3b53; border-radius: 18px; background: rgba(20,30,47,.86); color: #edf3ff; text-decoration: none; box-shadow: 0 14px 35px rgba(0,0,0,.18); }
.feature-card strong { font-size: 21px; line-height: 1.25; }
.feature-card > span:last-child { color: #aebbd0; line-height: 1.5; }
.feature-kicker { color: #6ed6c4; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.compact-actions { margin-top: 12px; }
.operation-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 8px; }
.operation-tab { min-height: 42px; padding: 9px 13px; border: 1px solid #3a4a67; border-radius: 10px; background: #111b2c; color: #dbe5f6; font: inherit; cursor: pointer; }
.operation-tab.active { border-color: #6ed6c4; background: #6ed6c4; color: #09121f; font-weight: 750; }
.operation-uri { display: block; margin: 4px 0 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.field-help { color: #8290a8; font-size: 11px; line-height: 1.4; }
.compact-output { min-height: 80px; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 980px); padding: 24px 0 44px; }
  .hero { padding: 10px 2px 20px; }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .card { margin: 14px 0; padding: 18px; border-radius: 15px; }
  .section-heading { align-items: center; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 20px); padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .hero { padding-inline: 4px; }
  h1 { font-size: clamp(28px, 11vw, 38px); overflow-wrap: anywhere; }
  h2 { font-size: 18px; }
  .subtitle, .muted { font-size: 14px; }
  .card { padding: 16px; border-radius: 14px; }
  .section-heading { display: grid; }
  .section-heading .button { width: 100%; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .actions .button, .card > .button { width: 100%; }
  input, textarea { font-size: 16px; }
  .status { max-width: 100%; line-height: 1.35; white-space: normal; }
  .output { min-height: 100px; padding: 13px; font-size: 11px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { min-height: 150px; }
  .page-header { align-items: flex-start; }
}

@media (max-width: 340px) {
  .shell { width: calc(100% - 14px); }
  .card { padding: 13px; }
  .button { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
