.social-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e0e4dc);
}
.social-account > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.social-account strong {
  overflow-wrap: anywhere;
}
.social-accounts:not(:empty) {
  margin-bottom: 20px;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.scene-editor > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.scene-editor > summary > span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.scene-editor[open] > summary {
  margin-bottom: 24px;
}
.scene-list {
  display: grid;
  gap: 20px;
}
.scene {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line, #e0e4dc);
  border-radius: 12px;
  padding: 16px;
  margin: 0;
  min-width: 0;
}
.scene legend {
  padding: 0 6px;
  color: #647169;
  font-size: 12px;
}
.scene img {
  width: 86px;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 8px;
}
.scene > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.scene input,
.scene select {
  padding: 9px;
  min-width: 0;
}
.publish-preview {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #10261f;
  border-radius: 12px;
}
.reel-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.reel-library-item {
  display: flex;
  gap: 16px;
  align-items: center;
}
.reel-library-item img {
  width: 70px;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 8px;
}
.reel-library-item > div {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.reel-library-item strong {
  font-size: 13px;
}
.publish-job {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, #e0e4dc);
}
.publish-job small {
  display: block;
  color: #65736b;
  margin: 6px 0 12px;
}
.publish-job > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#reel-studio {
  margin: 32px 0;
}
@media (max-width: 760px) {
  .studio-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .publish-job {
    align-items: start;
    flex-direction: column;
  }
  .scene {
    padding: 12px;
    gap: 10px;
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .scene img {
    width: 60px;
  }
}
/* Shared record lists, editors and asset pickers. */
.record-dialog {
  border: 1px solid #dce4dd;
  border-radius: 18px;
  padding: 0;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: 90dvh;
  background: #fafbf8;
  box-shadow: 0 28px 100px #10291f40;
}
.record-dialog.wide {
  width: min(920px, calc(100% - 32px));
}
.record-dialog::backdrop {
  background: #0c201bad;
  backdrop-filter: blur(3px);
}
.record-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid #dfe6dd;
  position: sticky;
  top: 0;
  background: #fafbf8;
  z-index: 2;
}
.record-dialog-header h2 {
  font-size: 24px;
  margin: 0;
}
.record-dialog-body {
  padding: 28px;
}
.record-dialog-notice {
  margin: 0 28px 24px;
}
.record-dialog-body .integration-config {
  padding: 0;
  border: 0;
}
.record-dialog-body > .form-stack {
  margin: 0;
}
.record-dialog-body .account-list {
  margin-bottom: 20px;
}
.record-row {
  border: 0;
  border-bottom: 1px solid #e1e7df;
  background: transparent;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 8px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.record-row:hover,
.record-table tr:hover {
  background: #f0f4ed;
}
.record-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
}
.record-row small,
.record-name small {
  display: block;
  margin-top: 6px;
  color: #6b776e;
  font-size: 12px;
  font-weight: 400;
}
.record-name {
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.record-name img {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}
.record-name strong {
  font-weight: 600;
}
.record-name:focus-visible,
.record-row:focus-visible,
.media-tile:focus-visible,
.scene-media:focus-visible {
  outline: 2px solid #245b46;
  outline-offset: 3px;
}
.record-table td {
  vertical-align: middle;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 18px;
}
.media-tile {
  background: #fff;
  padding: 0 0 12px;
  border: 1px solid #dfe6dd;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.media-tile:hover {
  box-shadow: 0 6px 24px #163b2212;
  transform: translateY(-2px);
}
.media-tile > img,
.media-video-thumbnail {
  display: flex;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e5ede3;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #46604c;
}
.media-video-thumbnail span {
  font-size: 11px;
  letter-spacing: 0.12em;
}
.media-tile strong,
.media-tile small {
  display: block;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-tile strong {
  margin-top: 12px;
  font-size: 13px;
}
.media-tile small {
  margin-top: 5px;
  color: #72816e;
  font-size: 11px;
}
.media-detail-preview {
  width: 100%;
  max-height: 55dvh;
  object-fit: contain;
  border-radius: 10px;
  background: #e8ece3;
}
.upload-drop {
  border: 1px dashed #98af9a;
  padding: 28px;
  background: #f1f5ee;
  border-radius: 12px;
  gap: 18px;
}
.upload-drop input {
  width: 100%;
  padding: 8px;
}
.reel-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.reel-detail-video {
  max-height: 520px;
  background: #10261f;
}
.reel-detail-layout .actions {
  margin-top: 16px;
}
.reel-detail-layout hr {
  border: 0;
  border-top: 1px solid #dce5d9;
  margin: 28px 0;
}
.reel-processing {
  min-height: 260px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  background: #eaf0e6;
}
.scene-media {
  width: 100%;
  padding: 0;
  background: #e6eee2;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  align-self: start;
  cursor: pointer;
  color: #244533;
}
.scene-media img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: auto;
}
.scene-media > span:last-child {
  display: block;
  padding: 8px 4px;
  font-size: 10px;
}
.scene-media .media-video-thumbnail {
  min-height: 120px;
}
.scene {
  grid-template-columns: 120px minmax(0, 1fr);
}
.draft-caption {
  white-space: pre-wrap;
}
.calendar-overview > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.calendar-overview[open] > summary {
  margin-bottom: 24px;
}
@media (max-width: 650px) {
  .record-dialog-header {
    padding: 18px;
  }
  .record-dialog-body {
    padding: 18px;
  }
  .reel-detail-layout {
    grid-template-columns: 1fr;
  }
  .reel-detail-video {
    max-height: 320px;
  }
  .scene {
    grid-template-columns: 85px minmax(0, 1fr);
  }
  .scene-media img {
    height: 110px;
  }
  .record-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .record-dialog-header h2 {
    font-size: 21px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .media-tile {
    transition: none;
  }
  .media-tile:hover {
    transform: none;
  }
}
