
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #1d2330;
  --muted: #5b6475;
  --border: #d8deea;
  --accent: #5a44ff;
  --accent-soft: #ece9ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.hero {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #ffffff, #eef1ff);
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin: 0 0 6px; font-size: 21px; }
.hero p { margin: 0; color: var(--muted); line-height: 1.45; }
.statusbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fafbff;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 16px;
  padding: 16px 20px 24px;
}
main, aside { min-width: 0; }
details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px 14px;
  margin-bottom: 14px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 6px 2px 12px;
}
.grid {
  display: grid;
  gap: 12px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.one { grid-template-columns: minmax(0, 1fr); }
.checks {
  align-items: end;
  margin-top: 8px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
input[type="text"], input:not([type]), select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  line-height: 1.4;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 16px;
}
button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: #6f7787;
}
button.accent2 {
  background: #0ea87a;
}
button:hover { opacity: 0.96; }
h2 {
  font-size: 15px;
  margin: 12px 0 8px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.5;
}
.muted { color: var(--muted); }
.preview {
  min-height: 340px;
  background: #0f1220;
  color: #f4f7ff;
  border-radius: 14px;
  border: 1px solid #262d48;
  font-family: Consolas, monospace;
}
.tips {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .statusbar { flex-direction: column; }
}
