:root {
  color-scheme: dark;
  --background: #09101c;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f5f7fa;
  --muted: rgba(245, 247, 250, 0.68);
  --accent: #5cdbba;
  --accent-ink: #071713;
  --danger: #ff8a80;
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(92, 219, 186, 0.18), transparent 32rem),
    var(--background);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
}

code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.92em;
  word-break: break-all;
}

.shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  padding: 48px 0 20px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 12px 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.button.primary {
  border-color: transparent;
  color: var(--accent-ink);
  background: var(--accent);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.card,
.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  padding: clamp(20px, 4vw, 32px);
}

.panel {
  margin: 24px 0;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.subscribe-url {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.subscribe-url code {
  flex: 1 1 260px;
  background: transparent;
  padding: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 0.85rem;
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

input[type="text"],
input[type="password"],
textarea {
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  resize: vertical;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.readonly-field {
  color: var(--text);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.status-banner {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.status-banner.error {
  color: var(--danger);
  border-color: rgba(255, 138, 128, 0.4);
  background: rgba(255, 138, 128, 0.08);
}

.status-banner.warning {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.08);
}

.status-banner.success {
  color: var(--accent);
  border-color: rgba(92, 219, 186, 0.4);
  background: rgba(92, 219, 186, 0.08);
}

.hidden {
  display: none !important;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

footer {
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }
}
