:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #5d6a63;
  --line: #d9e0dc;
  --accent: #2f7d4f;
  --accent-text: #ffffff;
  --danger: #c0392b;
  --field: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #171c23;
    --text: #e8ece9;
    --muted: #9aa7a0;
    --line: #2a313a;
    --accent: #3b8f5c;
    --accent-text: #ffffff;
    --danger: #ef8a7c;
    --field: #12161c;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(47, 125, 79, .18), transparent 60%), var(--bg);
}
.wrap { max-width: 440px; margin: 0 auto; padding: 32px 16px 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 20px; display: grid; gap: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
.head { display: flex; gap: 12px; align-items: flex-start; }
.mark {
  flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #3d9a63, #2a6b44); color: #fff;
}
h1 { margin: 0; font-size: 20px; font-weight: 650; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.hint { color: var(--muted); font-size: 12.5px; }
.hint.bad { color: var(--danger); }
.hint.good { color: var(--accent); }
.input {
  width: 100%; font: inherit; color: var(--text); background: var(--field);
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; min-height: 46px;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.slug { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 11px; background: var(--field); overflow: hidden; }
.slug .input { border: 0; border-radius: 0; min-width: 0; flex: 1 1 auto; }
.slug .input:focus { outline: none; }
.slug:focus-within { outline: 2px solid var(--accent); border-color: transparent; }
.suffix { display: flex; align-items: center; padding: 0 12px 0 2px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px;
  border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; padding: 0 16px;
}
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn:disabled { opacity: .6; cursor: default; }
.error { color: var(--danger); font-size: 14px; font-weight: 500; min-height: 20px; }
.url { font-weight: 650; word-break: break-all; font-size: 17px; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
@media (max-width: 380px) { .suffix { font-size: 11.5px; padding-right: 8px; } }
