:root {
  --bg: #fff;
  --text: #16181d;
  --muted: #44474e;
  --border: #e6e7ea;
  --yellow: #f5c518;
  --yellow-dim: rgba(245, 197, 24, 0.14);
  --err: #b42318;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Jost, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 20px 16px 48px;
  line-height: 1.55;
}

.wrap { max-width: 720px; margin: 0 auto; }

.badge {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

h1 { font-size: 1.15rem; letter-spacing: 0.06em; margin-bottom: 6px; }
.lead { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

.flow {
  background: var(--yellow-dim);
  border-left: 3px solid var(--yellow);
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.flow ol { margin: 8px 0 0 18px; }
.flow li { margin-bottom: 5px; }
.flow strong { color: var(--text); }

section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  margin: 12px 0 5px;
  letter-spacing: 0.04em;
}
label:first-child { margin-top: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.82em; }

input, select, textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; cursor: pointer; user-select: none;
}
.chip input { width: auto; margin: 0; }
.chip.active { border-color: var(--yellow); background: var(--yellow-dim); }

.file-list { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.file-list li { margin-bottom: 4px; }
.file-list .ok { color: #1a7f37; }
.file-list .bad { color: var(--err); }

.media-limit {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--yellow-dim);
  border-radius: 8px;
}
.media-limit strong { color: var(--text); }

.attach-budget {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}
.attach-budget-bar {
  height: 12px;
  background: #d8dbe0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.attach-budget-bar span {
  display: block;
  height: 100%;
  background: var(--yellow);
  border-radius: 999px;
  transition: width 0.25s ease;
  min-width: 2%;
}
.attach-budget.warn .attach-budget-bar span { background: #b8860b; }
.attach-budget.bad .attach-budget-bar span { background: var(--err); }
.attach-budget-text { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.attach-budget-text strong { color: var(--text); }
.attach-budget.bad .attach-budget-text { color: var(--err); }
.attach-budget.warn .attach-budget-text strong:first-child { color: #b8860b; }

.err { color: var(--err); font-size: 0.82rem; margin-top: 8px; min-height: 1.2em; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
button {
  background: #111; color: #fff; border: none; padding: 12px 18px;
  border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  font-size: 0.84rem; letter-spacing: 0.03em;
}
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.note {
  font-size: 0.78rem; color: var(--muted);
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
}
.links { margin-top: 20px; font-size: 0.84rem; }
.links a { color: inherit; }

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}
