.recap-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(0, 2.2fr);
  gap: 18px;
  align-items: start;
}
.recap-layout > .panel { margin: 0; }
.recap-list { display: grid; margin: 15px 0 0; padding: 0; list-style: none; }
.recap-list > li + li { border-top: 1px solid #eceef1; }
.recap-select {
  background: none;
  border: 0;
  width: 100%;
  padding: 12px 8px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  align-items: center;
}
.recap-select img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f3f6;
}
.recap-select:hover,.recap-select[aria-current] { background: #edf4fe; }
.recap-list-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.recap-list-copy small,.recap-list-empty { color: var(--muted); }
.recap-list-empty { padding: 8px 2px; }
.recap-state { font-weight: 600; }
.recap-state[data-published="true"] { color: #267048; }
.recap-editor-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.recap-editor-set > section { display: grid; gap: 12px; border-top: 1px solid #e5e8ed; padding-top: 16px; }
.recap-editor-set h3 { font-size: 16px; }
.recap-main-header { align-items: baseline; }
.recap-main-header .hint { font-size: 13px; }
.recap-section-heading { display: flex; align-items: baseline; gap: 9px; }
.recap-section-heading span { font-size: 13px; color: var(--muted); }
.recap-section-toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; align-items: flex-start; }
.recap-input-file { position: relative; cursor: pointer; }
.recap-input-file:focus-within { outline: 2px solid #156ed6; outline-offset: 2px; }
.recap-input-file input,.recap-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.recap-link { color: var(--muted); font-size: 13px; padding-top: 7px; }
.recap-link summary { cursor: pointer; }
.recap-link-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.recap-link-entry input { flex: 1 1 14rem; }
.recap-cover { width: min(100%, 240px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: #f1f3f6; }
.recap-media-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.recap-media-list:empty { display: none; }
.recap-media-card { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 11px; border: 1px solid #e3e6eb; border-radius: 9px; }
.recap-media-top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.recap-media-top img,.recap-media-icon { width: 42px; height: 32px; object-fit: cover; border-radius: 4px; background: #eef3fa; }
.recap-media-icon { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.recap-media-actions { margin-left: auto; display: flex; gap: 2px; }
.recap-icon { border: 0; background: transparent; color: #0059ad; padding: 4px; font-size: 13px; }
.recap-remove { color: #9c3128; }
.recap-media-link { font-size: 13px; width: fit-content; }
.recap-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recap-feedback { margin-bottom: 10px; color: #355c43; font-size: 14px; }
.recap-feedback:empty { display: none; }
.recap-error { color: #a32a20; }
.recap-preview-content { max-width: 32rem; margin: 0 auto; display: grid; gap: 12px; }
.recap-preview-content h3 { font-size: 23px; }
.recap-preview-content figure { margin: 0; }
.recap-preview-content img,.recap-preview-content video { display: block; width: 100%; max-height: 340px; object-fit: contain; background: #f1f3f6; border-radius: 8px; }
.recap-preview-content figcaption { font-size: 13px; color: var(--muted); padding-top: 5px; }
.recap-preview-paragraph,.recap-preview-content figcaption { overflow-wrap: anywhere; white-space: pre-line; }
#recapBodyEditor .word-link-picker {
  padding: 7px 12px;
  border-bottom: 1px solid #dde0e5;
  background: #f7f8fa;
  font-size: 13px;
}
#recapBodyEditor .word-link-picker summary { cursor: pointer; color: #005bbd; width: fit-content; }
#recapBodyEditor .word-link-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 8px; }
#recapBodyEditor .word-link-fields label:has(input) { flex: 1 1 14rem; min-width: 0; }
#recapBodyEditor .word-link-picker [role=status] { margin: 6px 0 0; color: #9c3128; }
#recapBodyEditor .word-link-picker [role=status]:empty { display: none; }
.recap-preview-body .ql-editor { padding: 0; min-height: 0; }
.recap-preview-body .ql-editor .word-asset { cursor: auto; }

@media (max-width: 1020px) {
  .recap-layout { grid-template-columns: minmax(0,1fr); }
  .recap-list { max-height: 18rem; overflow-y: auto; }
}
@media (max-width: 510px) {
  .recap-media-list { grid-template-columns: minmax(0,1fr); }
}
