:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #182230;
  --muted: #556274;
  --border: #d9e1ea;
  --accent: #1f6feb;
  --accent-hover: #195fcb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.hero, .tool-shell, .content-card, .tool-list, .faq, .footer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}
.hero, .tool-list, .faq, .footer, .content-card { padding: 24px; }
.hero { margin-bottom: 24px; }
.breadcrumbs { margin: 0 0 12px; font-size: 14px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
h1 { margin: 0 0 10px; font-size: 2rem; line-height: 1.15; }
.subtitle { margin: 0; color: var(--muted); max-width: 780px; }
.tool-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}
.panel { display: flex; flex-direction: column; }
.panel label { font-weight: 700; margin-bottom: 8px; }
textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea:focus { outline: 2px solid rgba(31,111,235,.15); border-color: var(--accent); }
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}
button {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}
button:hover { background: var(--accent-hover); }
button.secondary {
  background: #edf2fb;
  color: var(--text);
  border: 1px solid var(--border);
}
button.secondary:hover { background: #e3ebf8; }
.status { margin-top: 10px; min-height: 22px; color: var(--muted); font-size: 14px; }
.section-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.content-card h2, .tool-list h2, .faq h2 { margin-top: 0; }
.tool-list ul, .footer ul { margin: 0; padding-left: 20px; }
.tool-list li, .footer li { margin: 8px 0; }
.tool-list a, .footer a { color: var(--accent); text-decoration: none; }
.tool-list a:hover, .footer a:hover { text-decoration: underline; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.faq details:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.footer { margin-top: 24px; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer h3 { margin-top: 0; font-size: 1rem; }
.notice { color: var(--muted); font-size: 14px; margin-top: 16px; }
@media (max-width: 860px) {
  .tool-shell, .section-grid, .footer-links { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  textarea { min-height: 220px; }
}
