.outreach-page {
  max-width: 1440px;
  margin: auto;
  color: #18343a;
}
.outreach-page > header,
.outreach-toolbar,
.outreach-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.outreach-page h2 {
  margin: 0;
  font-size: 26px;
}
.outreach-page h3 {
  margin: 20px 0 12px;
}
.outreach-page p {
  line-height: 1.7;
}
.outreach-page label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outreach-page input,
.outreach-page select,
.outreach-page textarea {
  padding: 10px;
  border: 1px solid #cbdad9;
  border-radius: 8px;
  background: #fff;
  color: #18343a;
  font: inherit;
  max-width: 100%;
  box-sizing: border-box;
}
.outreach-page button {
  background: #f1f7f6;
  color: #185f57;
  border: 1px solid #bdd4cf;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  font: inherit;
}
.outreach-page button.active,
.outreach-page button[type="submit"] {
  background: #176b5c;
  color: #fff;
}
.outreach-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.outreach-warning,
.outreach-error,
.outreach-notice {
  padding: 12px 16px;
  border-radius: 10px;
}
.outreach-warning {
  background: #fff3d9;
  color: #795410;
}
.outreach-error {
  background: #ffebe9;
  color: #a52c27;
}
.outreach-notice {
  background: #e4f5ed;
  color: #176b5c;
}
.outreach-muted,
.outreach-page small {
  color: #647a7e;
  font-size: 13px;
}
.outreach-editor,
.outreach-summary {
  background: #fff;
  border: 1px solid #dce7e5;
  border-radius: 14px;
  padding: 20px;
  margin: 16px 0;
}
.outreach-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.outreach-metrics > div {
  background: #f0f7f5;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.outreach-metrics strong {
  font-size: 28px;
}
.outreach-metrics span {
  font-size: 13px;
  color: #54706e;
}
.outreach-hours {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  overflow-x: auto;
  padding: 12px 0;
}
.outreach-hours > div {
  flex: 1;
  min-width: 22px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}
.outreach-hours i {
  display: block;
  min-width: 12px;
  width: 75%;
  background: #31957f;
  border-radius: 3px;
}
.outreach-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.outreach-ages > span {
  background: #edf3f6;
  padding: 10px;
  border-radius: 8px;
}
.outreach-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.outreach-review {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.outreach-review img {
  max-width: 100%;
  max-height: 850px;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f6f5;
}
.outreach-review form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.outreach-page .outreach-check {
  flex-direction: row;
  align-items: center;
}
.outreach-page .outreach-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
}
.outreach-upload {
  padding: 20px;
  border: 2px dashed #98c8b9;
  border-radius: 12px;
  background: #f4faf7;
}
.outreach-intervals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.outreach-hours > .outreach-chart { display: block; min-width: 0; width: 100%; }
.outreach-chart { width: 100%; min-width: 0; }
.outreach-chart svg { display: block; width: 100%; }
.outreach-chart text { fill: #54706e; font: 12px system-ui, sans-serif; }
.outreach-chart line { stroke: #dbe5e4; }
.outreach-chart rect { fill: #3979db; }
.outreach-chart rect.selected { fill: #2356a1; }
.outreach-chart rect.burst { fill: #c47c20; }
.outreach-chart rect.hit { fill: transparent; }
.outreach-chart-mark { cursor: pointer; }
.outreach-burst-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.outreach-burst-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.outreach-burst-metrics > div { display: flex; flex-direction: column; gap: 8px; background: #f2f6f5; padding: 14px; border-radius: 8px; }
.outreach-burst-metrics strong { font-size: 20px; }
.outreach-burst-metrics small, .outreach-burst-metrics span { color: #54706e; }
.outreach-chart-detail { color: #2356a1; }
.outreach-page .outreach-age-toggle { display: flex; flex-direction: row; gap: 8px; align-items: center; margin: 14px 0; }
.outreach-age-toggle input { width: 18px; height: 18px; }
.outreach-ages.outreach-age-chart { display: block; }
.outreach-age-row { display: grid; grid-template-columns: 120px minmax(30px, 1fr) 120px; gap: 12px; align-items: center; padding: 7px 0; }
.outreach-age-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.outreach-age-track { height: 12px; background: #edf2f1; border-radius: 3px; overflow: hidden; }
.outreach-age-track i { display: block; height: 100%; }
@media (max-width: 600px) {
  .outreach-burst-metrics { grid-template-columns: 1fr; }
  .outreach-age-row { grid-template-columns: 90px minmax(20px, 1fr) 100px; gap: 6px; font-size: 12px; }
}
.outreach-intervals span {
  background: #f4f6f8;
  border-radius: 6px;
  padding: 6px;
}
.outreach-count-form {
  max-width: 800px;
}
.outreach-count-form > label {
  max-width: 300px;
}
.outreach-wechat-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.outreach-wechat-row select {
  flex: 1;
  min-width: 0;
}
.outreach-wechat-row input {
  width: 110px;
}
.outreach-table {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.outreach-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.outreach-table td,
.outreach-table th {
  padding: 12px;
  border-bottom: 1px solid #e4ecea;
  white-space: nowrap;
}
.outreach-history {
  margin-top: 24px;
}
.outreach-page .outreach-thumbnail-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 84px;
  padding: 5px;
  white-space: normal;
  font-size: 12px;
}
.outreach-thumbnail {
  display: block;
  width: 64px;
  height: 88px;
  object-fit: contain;
  background: #e9efed;
  border-radius: 4px;
}
.outreach-image-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 0;
  border: 1px solid #bdd4cf;
  border-radius: 12px;
  color: #18343a;
}
.outreach-image-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.outreach-image-preview { padding: 16px; }
.outreach-image-preview header {
  position: sticky;
  top: -16px;
  z-index: 1;
  padding: 8px 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.outreach-image-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}
.outreach-history > div {
  padding: 10px;
  border-bottom: 1px solid #e4ecea;
}
.outreach-history pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
}
.outreach-page summary {
  cursor: pointer;
  padding: 8px 0;
}
@media (max-width: 700px) {
  .outreach-review {
    grid-template-columns: 1fr;
  }
  .outreach-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .outreach-editor,
  .outreach-summary {
    padding: 12px;
  }
  .outreach-toolbar > label {
    width: 100%;
  }
  .outreach-wechat-row {
    flex-wrap: wrap;
  }
  .outreach-page > header {
    align-items: flex-start;
  }
  .outreach-steps button {
    flex: 1;
    font-size: 13px;
  }
}
