.extension-page main {
  padding-block: clamp(25px, 4vw, 64px);
}
.extension-page {
  background: linear-gradient(140deg, #fbfcff, #edf6fa);
  color: #2e435b;
}
.feature-intro {
  max-width: 860px;
  margin: 0 0 26px;
}
.feature-intro h1,
.film-cover h1 {
  font-size: clamp(34px, 4.8vw, 78px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 12px 0;
}
.feature-intro p:not(.overline),
.editorial p,
.plugin-card p,
.contact-sheet p {
  color: #526477;
  line-height: 1.8;
}
.contact-sheet,
.generator,
.film-cover,
.editorial,
.download-list {
  border-radius: 26px;
  border: 1px solid #dae5ed;
  padding: clamp(19px, 3vw, 44px);
  background: #ffffffc9;
}
.contact-sheet,
.editorial,
.generator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 4vw, 60px);
  align-items: start;
}
.contact-sheet figure {
  justify-self: center;
  text-align: center;
}
.contact-sheet img {
  width: min(220px, 100%);
  border-radius: 20px;
}
.contact-sheet h3 {
  margin-top: 22px;
}
.phone {
  display: block;
  font-size: clamp(25px, 3vw, 47px);
  font-weight: 700;
  color: #42668e;
}
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}
.plugin-card {
  border: 1px solid #d7e2ed;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 22px;
  gap: 10px;
}
.plugin-card h3 {
  font-size: 20px;
  margin: 0;
}
.plugin-card .quiet {
  margin-top: auto;
}
.download-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.download-list h2 {
  grid-column: 1 / -1;
  margin: 0 0 6px;
}
.download-list > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid #d7e2ed;
  border-radius: 16px;
  background: #fff;
}
.download-list .package {
  margin-top: auto;
}
.download-list small:empty {
  display: none;
}
@media (max-width: 960px) {
  .download-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .download-list { grid-template-columns: minmax(0, 1fr); }
}
.film-cover {
  color: white;
  background:
    linear-gradient(90deg, #242d4df2, #373957af),
    url("assets/light.jpg") center 45% / cover;
  padding-block: clamp(42px, 8vw, 120px);
}
.film-cover .cta {
  margin-top: 20px;
  background: #fff;
  color: #384963;
}
.editorial {
  grid-template-columns: 0.72fr 1.28fr;
  margin-top: 20px;
}
.editorial h3,
.editorial summary {
  color: #4d477b;
}
.editorial h3 {
  margin: 16px 0 4px;
}
.editorial details {
  padding: 12px 0;
  border-bottom: 1px solid #dddfea;
}
.editorial summary {
  cursor: pointer;
}
.theme-ai-image {
  background:
    radial-gradient(ellipse at 85% 12%, #e4dffc, transparent 50%),
    linear-gradient(130deg, #fcfbff, #e2f6f6);
}
.generator {
  background: #ffffffb8;
  box-shadow: 0 15px 38px #52658515;
}
.generator label,
.generator legend {
  font-weight: 700;
}
.generator fieldset {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
}
.generator fieldset label {
  display: inline-flex;
  gap: 7px;
  margin: 6px 18px 0 0;
  align-items: center;
}
.generator textarea,
.generator select {
  display: block;
  font: inherit;
  color: inherit;
  border: 1px solid #c5d4e1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
}
.generator textarea {
  resize: vertical;
  margin: 6px 0 16px;
}
.generator button.cta {
  background: #485987;
  color: white;
}
.generator :disabled {
  opacity: 0.62;
  cursor: wait;
}
.format-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.result-area {
  min-height: 230px;
  background: linear-gradient(145deg, #f5f3fc, #e7f4f5);
  border: 1px solid #d7e2e8;
  border-radius: 20px;
  padding: 22px;
}
.result-area img,
.result-area video {
  max-width: 100%;
  max-height: 480px;
  display: block;
  border-radius: 13px;
  margin: 12px 0;
}
.result-area [hidden] {
  display: none;
}
.result-area button {
  background: transparent;
  cursor: pointer;
}
.result-area p {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .plugin-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .plugin-grid,
  .contact-sheet,
  .generator,
  .editorial {
    grid-template-columns: minmax(0, 1fr);
  }
  .extension-page main {
    padding-top: 25px;
  }
  .plugin-card {
    padding: 16px;
  }
  .contact-sheet img {
    max-width: 180px;
  }
}

.reference-field { margin: 0 0 18px; padding: 14px 16px; background: #f4f7fc; border-radius: 14px; }
.reference-field small { color: #58677d; font-weight: 500; }
.reference-field p { font-size: .88rem; line-height: 1.5; margin: 4px 0 10px; }
.reference-field input { max-width: 100%; font: inherit; font-size: .85rem; }
.reference-field input::file-selector-button { color: #354563; border-radius: 9px; background: white; border: 1px solid #c5d4e1; padding: 6px 12px; cursor: pointer; }
#reference-selection:not([hidden]) { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
#reference-preview { width: 80px; height: 68px; object-fit: contain; background: white; border-radius: 8px; }
