/* Минимальный, но опрятный стиль MVP. Полноценным дизайном займёмся позже. */
:root {
  --bg: #eef2f8;
  --card: #ffffff;
  --ink: #1f2d3d;
  --muted: #7a8699;
  --line: #e5e9f0;
  --brand: #2d9cdb;
  --brand-d: #2183bd;
  --accent: #27ae60;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  max-width: 680px; margin: 0 auto; padding: 20px 16px 60px;
  color: var(--ink); background: var(--bg); line-height: 1.55;
}
header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; letter-spacing: .2px; }
.status {
  font-size: 13px; font-weight: 600; background: #e6f4ff; color: #0369a1;
  padding: 5px 12px; border-radius: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(20,40,80,.04);
}
.hidden { display: none; }
.muted { color: var(--muted); font-size: 13px; }
p { margin: 0 0 12px; }
textarea, input[type="text"] {
  width: 100%; padding: 12px; border: 1px solid #d6dbe4; border-radius: 10px;
  font: inherit; margin-bottom: 10px; background: #fbfcfe; resize: vertical;
}
textarea:focus, input:focus { outline: none; border-color: var(--brand); background: #fff; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
button {
  font: inherit; font-weight: 600; padding: 11px 18px; border: none;
  border-radius: 10px; background: var(--brand); color: #fff; cursor: pointer;
  transition: background .15s, transform .05s;
}
button:hover { background: var(--brand-d); }
button:active { transform: translateY(1px); }
#gen-btn { background: var(--accent); }
#gen-btn:hover { background: #219a53; }
#rec-btn { background: #eef2f8; color: var(--ink); border: 1px solid var(--line); }
#rec-btn:hover { background: #e3e9f2; }
button.link { background: none; color: var(--muted); padding: 4px 0; text-decoration: underline; font-weight: 400; }
button.link:hover { color: var(--ink); }
button.secondary { background: #eef2f8; color: var(--ink); border: 1px solid var(--line); }
button.secondary:hover { background: #e3e9f2; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 20px; font-weight: 500;
}
.tab:hover { background: #fff; color: var(--ink); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
select {
  width: 100%; padding: 11px; border: 1px solid #d6dbe4; border-radius: 10px;
  font: inherit; margin-bottom: 10px; background: #fbfcfe;
}
#edit-box { margin-top: 10px; }
a { text-decoration: none; }
pre {
  white-space: pre-wrap; word-wrap: break-word; background: #f5f8fc;
  border: 1px solid var(--line); padding: 14px; border-radius: 10px;
  font-family: inherit; font-size: 14.5px; margin: 0 0 12px;
}
.warn { color: #b45309; background: #fff7ed; border: 1px solid #fde4c8;
        padding: 8px 12px; border-radius: 10px; font-size: 13px; margin: 0 0 8px; }
.hist-item { border-bottom: 1px solid #eef1f6; padding: 10px 0; font-size: 13px; color: #47546b; }
.hist-item:last-child { border-bottom: none; }
hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
