.posting-plan-row,
.plan-preview-button {
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
}
.plan-shot-caption h3[hidden] + p {
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.35;
}
.posting-plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 5px;
  border-bottom: 1px solid var(--line);
}
.posting-plan-row:hover {
  background: var(--pale);
}
.posting-plan-row strong,
.posting-plan-row small,
.plan-destination small,
.plan-identity small,
.plan-preview-button small,
.plan-state small,
.plan-heading small {
  display: block;
}
.posting-plan-row small,
.plan-preview-button small,
.plan-destination small,
.plan-state small,
.plan-heading small,
.plan-identity small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.plan-target,
.intake-audience {
  padding: 13px 16px;
  border-inline-start: 3px solid var(--accent);
  background: var(--pale);
  border-radius: 0 7px 7px 0;
}
.plan-target p,
.intake-audience p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.intake-audience {
  display: grid;
  gap: 9px;
  font-size: 13px;
}
.intake-audience a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
}
.campaign-format-options,
.plan-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.plan-heading strong {
  font: 650 23px/1.1 var(--display);
}
.posting-preview {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.posting-preview video {
  width: 100%;
  height: 235px;
  display: block;
  object-fit: contain;
  background: #18201c;
}
.plan-shot-caption {
  padding: clamp(16px, 3vw, 26px);
  align-self: center;
  min-width: 0;
}
.plan-shot-caption small {
  color: var(--muted);
  font-size: 12px;
}
.plan-shot-caption h3 {
  margin: 7px 0;
  font: 600 23px/1.12 var(--display);
  overflow-wrap: anywhere;
}
.plan-shot-caption p {
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  color: var(--muted);
  max-height: 105px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.plan-slots {
  margin: 0;
  padding: 0 6px;
  max-height: 26rem;
  overflow: auto;
  border-block: 1px solid var(--line);
  list-style: none;
}
dialog:has([data-plan-results]),
[data-plan-results] .plan-slots {
  overflow-anchor: none;
}
.plan-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.plan-slot:last-child {
  border: 0;
}
.plan-slot input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex: none;
}
.plan-preview-button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.plan-preview-button:hover strong {
  text-decoration: underline;
}
.plan-preview-image {
  position: relative;
  flex: none;
  width: 35px;
  height: 45px;
}
.plan-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.plan-preview-image svg {
  position: absolute;
  bottom: 2px;
  right: 2px;
  color: white;
  filter: drop-shadow(0 0 2px black);
}
.plan-destination {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 32%;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.plan-destination svg {
  flex: none;
}
.plan-state {
  max-width: 27%;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}
.plan-state:empty {
  display: none;
}
.plan-state a {
  display: block;
  margin-top: 4px;
}
.plan-replacements {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (max-width: 620px) {
  .posting-preview {
    grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  }
  .posting-preview video {
    height: 186px;
  }
  .plan-shot-caption {
    padding: 10px;
  }
  .plan-shot-caption h3 {
    font-size: 17px;
  }
  .plan-slot {
    flex-wrap: wrap;
    gap: 7px;
  }
  .plan-slot .plan-state:not(:empty) {
    max-width: none;
    width: 100%;
    text-align: left;
  }
  .plan-state small,
  .plan-state a {
    display: inline;
    margin-left: 6px;
  }
  .plan-preview-button {
    font-size: 12px;
  }
  .plan-destination {
    font-size: 12px;
  }
  .plan-destination svg {
    width: 14px;
  }
}
