:root {
  color-scheme: dark;
  --bg: #060b18;
  --panel: #101b33;
  --panel-soft: #0c1528;
  --line: #274168;
  --line-soft: #213653;
  --text: #e8eeff;
  --text-soft: #98acd0;
  --accent: #60a5fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(1000px 460px at 50% -10%, rgba(96, 165, 250, .22), transparent 70%),
    radial-gradient(900px 500px at 100% 100%, rgba(167, 139, 250, .13), transparent 65%),
    var(--bg);
  color: var(--text);
}

main {
  width: min(900px, 94vw);
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(16, 28, 52, .95), rgba(10, 18, 35, .98));
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

p {
  color: var(--text-soft);
  margin-top: 9px;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

label {
  font-size: .9rem;
  color: #cbd5e1;
}

input, select, textarea, button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #0a1324;
  color: var(--text);
  padding: 10px;
  font-size: .95rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

button {
  cursor: pointer;
  background: linear-gradient(180deg, #22385d, #192947);
  font-weight: 600;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #294470, #1c3154);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, #111d36, #0c1528);
  white-space: pre-wrap;
}

.canvas-wrap {
  margin-top: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(170deg, #111d36, #0c1528);
}

.preview-box {
  width: 100%;
  min-height: 80px;
  border-radius: 10px;
  border: 1px dashed #475569;
}

a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }

.seo-content {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(170deg, #101b32, #0b1426);
}

.seo-content h2 { margin: 0 0 8px; font-size: 1rem; color: #cbd5e1; }
.seo-content p { margin: 6px 0; color: var(--text-soft); line-height: 1.6; }

@import "../base64-tools/styles.css";