﻿:root {
  --bg: #f4efe7;
  --ink: #162025;
  --muted: #516169;
  --card: #fffaf3;
  --line: #d6c8b6;
  --accent: #05668d;
  --accent-2: #028090;
  --warm: #f59e0b;
  --success: #1d7a39;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffe7b2 0, #ffe7b200 25%),
    radial-gradient(circle at 80% 20%, #8be1d033 0, #8be1d000 35%),
    linear-gradient(145deg, #f6f0e6 0%, #efe7dc 100%);
  min-height: 100vh;
}

.shell {
  width: min(1020px, 92vw);
  margin: 40px auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--muted);
}

.card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
  box-shadow: 0 12px 24px #8c7a5a1a;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-height: 220px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #12212a;
  background: #fff;
  overflow: auto;
}

.editor:focus,
input[type="range"]:focus {
  outline: 2px solid #66b9d1;
  outline-offset: 2px;
}

.editor:empty::before {
  content: attr(data-placeholder);
  color: #8b97a1;
}

.editor.output {
  background: #fffcf8;
}

.editor :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 0.8em;
  margin-bottom: 0.4em;
}

.changed {
  background: #ffe38d;
  color: #4d2e00;
  border-radius: 4px;
  padding: 0 1px;
}

.controls {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.keyword-box {
  min-height: 88px;
}

.control-group label {
  margin-bottom: 6px;
}

input[type="range"] {
  width: 100%;
}


.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1d2c33;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.status-pill.pending {
  background: #eef2f7;
  color: #34495e;
}

.status-pill.ok {
  background: #e7f8ef;
  color: #1b7f46;
}

.status-pill.error {
  background: #ffecec;
  color: #a12222;
}

button {
  border: 1px solid #0b7aa8;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px #05668d44;
}

button.ghost {
  background: transparent;
  color: var(--accent);
}

.meta {
  margin: 12px 0 0;
  color: var(--success);
  font-weight: 600;
}

.note {
  margin: 8px 0 0;
  color: #5f6770;
  font-size: 13px;
}

@media (max-width: 700px) {
  .shell {
    width: min(1020px, 95vw);
    margin: 18px auto;
  }

  .card {
    padding: 14px;
  }

  .editor {
    min-height: 180px;
  }
}
