
.tool-error,
.alert {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #e4a7a1;
  border-left: 5px solid var(--danger);
  border-radius: 12px;
  background: #fff0ee;
}

.tool-error h3,
.tool-error p {
  margin-bottom: 7px;
}

.error-actions,
.save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.result-heading h2,
.result-summary p {
  margin-bottom: 8px;
}

.result-summary {
  color: var(--muted);
}

.caption-details {
  margin: 12px 0;
  border-block: 1px solid var(--line);
  padding-block: 7px;
}

.caption-details summary,
.faq summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 760;
}

.media-list {
  display: grid;
  gap: 14px;
  margin: 19px 0;
  padding: 0;
  list-style: none;
  counter-reset: media;
}

.media-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.media-preview {
  display: grid;
  min-height: 148px;
  overflow: hidden;
  place-items: center;
  border-radius: 11px;
  background: #e9ece8;
  color: var(--muted);
  font-size: 0.86rem;
}

.media-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-copy {
  min-width: 0;
}

.media-copy h3 {
  margin-bottom: 8px;
}

.media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 0.83rem;
  list-style: none;
}

.save-status {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.missing-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warning);
  color: #65460d;
}

.support-strip {
  display: grid;
  gap: 3px;
  margin: 0 0 44px;
  padding: 15px 18px;
  border: 1px solid #99c8b6;
  border-radius: 13px;
  background: var(--mint);
}

.content-shell {
  padding-block: 46px;
}

.content-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.section-heading {
  max-width: 680px;
}

.section-heading h2 {
  margin-bottom: 24px;
}

.steps,
.feature-grid {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.feature-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.steps li {
  display: flex;
  gap: 14px;
}

.steps li > span,
.feature-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--mint-dark);
  font-weight: 850;
}

.steps h3,
.feature-grid h3,
.steps p,
.feature-grid p {
  margin-bottom: 5px;
}

.steps p,
.feature-grid p,
.prose {
  color: var(--muted);
}

.notice,
.contact-card {
  padding: 21px;
  border-left: 6px solid var(--coral);
  border-radius: 13px;
  background: #f1e9db;
}

.notice p,
.contact-card p {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 74ch;
  margin: 7px 0 9px;
  color: var(--muted);
}

.page-shell {
  padding-block: 34px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.page-head {
  max-width: 780px;
  padding: 34px 0 18px;
}

.page-head h1 {
  max-width: 17ch;
}

.page-head > p:last-child {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-card {
  max-width: 720px;
}

.contact-card .button {
  margin-top: 14px;
}

.contact-unready {
  border-color: #9a6b10;
  background: var(--warning);
}

.site-footer {
  padding: 38px 0 24px;
  border-top: 1px solid var(--line);
  background: #eae5da;
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.footer-grid p {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 17px;
}

.footer-grid nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink);
}

.copyright {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.ga-wrap {
  margin-top: 20px;
}

[hidden] {
  display: none !important;
}

@media (min-width: 680px) {
  .steps,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-card {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
    align-items: start;
  }
}

@media (min-width: 860px) {
  .hero {
    padding-block: 72px 62px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.93fr) minmax(410px, 0.87fr);
    gap: 54px;
  }

  .content-section {
    display: grid;
    grid-template-columns: minmax(200px, 0.38fr) minmax(0, 1fr);
    gap: 44px;
  }

  .content-section .section-heading + * {
    min-width: 0;
  }
}

@media (max-width: 440px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .main-nav > a {
    display: none;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 36px;
  }

  .tool-card {
    border-radius: 18px;
  }

  .tool-heading {
    align-items: flex-start;
  }

  .url-field input {
    padding-right: 78px;
    font-size: 0.94rem;
  }

  .button-quiet {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
