.proposal-note {
  margin-top: 18px;
  padding: 14px 18px;
  background: #fff;
  border-left: 4px solid #789b88;
  border-radius: 4px;
  color: #385648;
  font-size: .94rem;
  font-weight: 700;
}
.proposal-note span {
  display: inline-block;
  margin-right: 12px;
  color: #a05e49;
  font-size: .8rem;
  letter-spacing: .08em;
}
.source-before {
  padding: 88px 0 94px;
  background: #fbfaf7;
}
.source-before .screen-card {
  margin-top: 0;
}
.source-before .csv-frame {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.source-before .csv-frame img {
  width: 100%;
  min-width: 1500px;
  height: auto;
}
.manual-tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.manual-tasks p {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  background: #f1f4f1;
  border: 1px solid #d1dcd5;
  border-radius: 7px;
  color: #284c3b;
  font-weight: 700;
}
.manual-tasks span {
  display: grid;
  place-items: center;
  flex: none;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #dce9e1;
  color: #284c3b;
  font: 800 .85rem/1 system-ui, sans-serif;
}
.source-before .empty-card { margin-top: 0; }

/* Let the dialogue lead the small comic panels. */
.comic-panel img { height: auto; }
.comic-panel p,
.comic-panel.adviser p {
  width: 51%;
  top: 7%;
  left: 4.5%;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.32;
  letter-spacing: -.015em;
}
.comic-panel:nth-child(4) p,
.comic-panel:nth-child(5) p { top: 6.5%; }
.comic-panel:nth-child(2) p,
.comic-panel:nth-child(3) p { top: 8%; }
.comic-panel:nth-child(8) p,
.comic-panel:nth-child(9) p { width: 53%; }

/* Both views are the same actual worksheet image, always on the page. */
.settings-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 18px;
}
.settings-preview figure { margin: 0; min-width: 0; }
.settings-full img,
.settings-detail img { display: block; max-width: none; }
.settings-full img { width: 100%; min-width: 0; height: auto; }
.settings-preview figcaption {
  margin-top: 10px;
  font-size: .88rem;
  color: #52655b;
  font-weight: 700;
}
.settings-detail-window {
  position: relative;
  width: 100%;
  height: 490px;
  overflow: hidden;
  border: 1px solid #b7c9be;
  background: #fff;
}
.settings-detail-window img {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  min-width: 0;
  height: 100%;
}

/* Give the desktop reading groups their own visual space. The phone layout stays as is. */
@media (min-width: 701px) {
  .proposal-note {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-top: 38px;
    padding: 20px 24px;
    border: 1px solid #d2ddd5;
    border-left: 4px solid #789b88;
    border-radius: 7px;
    line-height: 1.7;
  }
  .proposal-note span { flex: none; margin-right: 0; }
  .resolution { margin-top: 28px; }

  .manual-tasks { gap: 20px; margin: 24px 0; }
  .manual-tasks p {
    min-width: 0;
    gap: 18px;
    padding: 20px 22px;
    line-height: 1.55;
  }
  .manual-tasks span { width: 34px; height: 34px; }

  .automation-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
  }
  .automation-list span {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 11px 15px;
    border: 1px solid #d9e5dc;
    border-radius: 7px;
    background: #f3f6f4;
    font-size: .91rem;
    line-height: 1.5;
  }

  .legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    font-size: .94rem;
  }
  .legend span {
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #d9e3dd;
    border-radius: 7px;
    background: #f8faf9;
    gap: 12px;
  }
  .legend i { flex: none; width: 22px; height: 22px; }

  .application-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .application-grid article {
    min-width: 0;
    min-height: 92px;
    padding: 18px 20px;
  }
  .application-grid span { display: none; }
  .application-grid b {
    font-size: .96rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .automation-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .source-before { padding: 60px 0; }
  .manual-tasks { grid-template-columns: 1fr; }
  .manual-tasks p { padding: 14px 16px; font-size: .94rem; }
  .proposal-note { font-size: .9rem; }
  .proposal-note span { display: block; margin-bottom: 3px; }
  .source-before .csv-frame img { min-width: 1500px; }
  .comic-panel p,
  .comic-panel.adviser p {
    top: 7%;
    left: 5%;
    width: 50%;
    font-size: clamp(1.1rem, 4.9vw, 1.35rem);
    line-height: 1.32;
  }
  .comic-panel:nth-child(8) p,
  .comic-panel:nth-child(9) p { width: 53%; }
  .comic-panel:nth-child(2) p,
  .comic-panel:nth-child(3) p { top: 8%; }
  .settings-preview { grid-template-columns: 1fr; gap: 20px; }
  .settings-detail { order: -1; }
  .settings-detail-window { height: 520px; }
  .settings-preview figcaption { font-size: .84rem; }
}
