.ve-tabs {
  display: flex;
  gap: 6px;
  background: #eaf1f9;
  padding: 5px;
  border-radius: 14px;
  margin: 0 0 20px;
  max-width: 470px;
}
.ve-tabs button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 12px;
  background: transparent;
  color: #5d7291;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ve-tabs button[aria-pressed="true"] {
  background: #fff;
  color: #087df5;
  box-shadow: 0 2px 7px #17355512;
}
.ve-tabs span {
  font-size: 10px;
  color: #098779;
  margin-left: 5px;
}
.video-editor[hidden],
#videoPage .video-workspace[hidden],
#videoPage .video-inspiration[hidden] {
  display: none !important;
}
.ve-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 24px 0;
}
.ve-intro h2 {
  font-size: 26px;
  margin: 8px 0;
  color: #163452;
}
.ve-intro p {
  color: #758aa1;
  margin: 0;
}
.ve-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.ve-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.ve-card {
  background: #fff;
  border: 1px solid #e1eaf6;
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.ve-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ve-heading h3 {
  font-size: 17px;
  color: #254565;
  margin: 0;
}
.ve-heading select {
  max-width: 180px;
  font-size: 12px;
  padding: 8px;
}
.ve-chip {
  font-size: 12px;
  color: #527b9d;
  background: #eef7ff;
  border-radius: 8px;
  padding: 5px 8px;
}
.ve-drop {
  border: 1px dashed #afd1f7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  gap: 5px;
  cursor: pointer;
  background: #f8fbff;
  color: #47769d;
  text-align: center;
}
.ve-drop > span {
  font-size: 26px;
  color: #1688ff;
}
.ve-drop small,
.ve-help {
  font-size: 12px;
  color: #8091a8;
  line-height: 1.7;
}
.ve-drop input,
.ve-attachments input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.ve-drop:focus-within,
.ve-attachments label:focus-within {
  outline: 2px solid #0787ff;
  outline-offset: 3px;
}
.ve-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}
.ve-attachments label {
  font-size: 13px;
  cursor: pointer;
}
.ve-assets {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.ve-asset {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f6faff;
  border: 1px solid #e6eef9;
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
}
.ve-asset img {
  width: 64px;
  height: 44px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
}
.ve-asset > div {
  flex: 1;
  min-width: 0;
}
.ve-asset strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.ve-asset small {
  font-size: 11px;
  color: #7890a9;
}
.ve-asset button {
  flex: none;
  border: 0;
  background: transparent;
  color: #a87575;
  cursor: pointer;
  font-size: 18px;
  min-width: 32px;
  min-height: 36px;
}
.ve-conversation {
  max-height: 300px;
  overflow: auto;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  overscroll-behavior: contain;
}
.ve-bubble {
  padding: 12px 15px;
  background: #f6f9fd;
  border: 1px solid #e5edf8;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  border-radius: 14px 14px 14px 3px;
  overflow-wrap: anywhere;
}
.ve-bubble.user {
  background: #ebf5ff;
  border-color: #dfedff;
  margin-left: 24px;
  border-radius: 14px 14px 3px 14px;
}
.ve-label {
  font-weight: 700;
  color: #2f5273;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.video-editor textarea,
.video-editor select,
.video-editor input[type="number"] {
  box-sizing: border-box;
  border: 1px solid #dfe8f5;
  border-radius: 11px;
  background: #f8fbff;
  color: #244562;
  padding: 11px;
  font: inherit;
  max-width: 100%;
  min-width: 0;
}
.video-editor textarea {
  width: 100%;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}
.video-editor button {
  font: inherit;
}
.video-editor button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ve-compose-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.ve-compose-actions button {
  font-size: 13px;
}
.ve-status {
  font-size: 13px;
  color: #5b7b99;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.ve-status.error {
  color: #b05f30;
}
.ve-preview {
  position: sticky;
  top: 18px;
}
.ve-empty {
  min-height: 240px;
  border: 1px dashed #d1e3f5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #8295aa;
  text-align: center;
  background: linear-gradient(145deg, #f0f8ff, #f9fbff);
}
.ve-empty > span {
  font-size: 38px;
  color: #68a9e8;
  margin-bottom: 16px;
}
.ve-empty p {
  font-size: 13px;
  line-height: 1.8;
}
.ve-preview video {
  width: 100%;
  max-height: 500px;
  display: block;
  border-radius: 14px;
  background: #14283c;
}
.ve-preview video[hidden],
.ve-empty[hidden] {
  display: none;
}
.ve-downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.ve-downloads a {
  font-size: 13px;
  text-align: center;
}
.ve-timeline {
  padding: 0;
  list-style: none;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ve-timeline li {
  border: 1px solid #e1ebf7;
  border-radius: 13px;
  padding: 12px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.ve-timeline img {
  width: 60px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}
.ve-timeline strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ve-trim {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  color: #6b849d;
}
.ve-trim input[type="number"] {
  width: 76px;
  padding: 6px;
  font-size: 12px;
}
.ve-move {
  display: grid;
  gap: 5px;
}
.ve-move button {
  border: 1px solid #dfe8f6;
  background: #f6faff;
  border-radius: 6px;
  color: #40729c;
  cursor: pointer;
  min-width: 32px;
  min-height: 30px;
}
.ve-settings {
  border-top: 1px solid #e8eef7;
  margin-top: 18px;
  padding-top: 16px;
}
.ve-settings summary {
  font-size: 13px;
  cursor: pointer;
  color: #4f7598;
}
.ve-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 18px;
}
.ve-options label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #597795;
}
.ve-options select {
  width: 100%;
  font-size: 13px;
}
.ve-options small {
  font-size: 11px;
  color: #8496aa;
}
.ve-wide {
  grid-column: 1/-1;
}
.ve-export-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8eef7;
}
.ve-export-bar > span {
  font-size: 12px;
  color: #8294a9;
}
.ve-export-bar button {
  white-space: nowrap;
}
.ve-jobs {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.ve-jobs button {
  border: 1px solid #e3ebf6;
  border-radius: 9px;
  text-align: left;
  padding: 10px;
  background: #f8fbff;
  color: #577995;
  cursor: pointer;
  font-size: 12px;
}
.ve-preview .ve-help {
  display: block;
}
.ve-card [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .ve-grid {
    grid-template-columns: 1fr;
  }
  .ve-preview {
    position: static;
  }
  .ve-empty {
    min-height: 160px;
  }
  .ve-intro h2 {
    font-size: 23px;
  }
}
@media (max-width: 600px) {
  .ve-tabs {
    max-width: none;
    margin-bottom: 14px;
  }
  .ve-intro {
    align-items: flex-start;
    margin: 18px 0;
  }
  .ve-intro h2 {
    font-size: 20px;
  }
  .ve-intro p {
    font-size: 12px;
  }
  .ve-intro button {
    font-size: 11px;
    padding: 9px;
  }
  .ve-card {
    padding: 17px;
    border-radius: 16px;
  }
  .ve-grid {
    gap: 16px;
  }
  .ve-heading {
    align-items: flex-start;
  }
  .ve-heading h3 {
    font-size: 15px;
  }
  .ve-heading select {
    max-width: 130px;
    font-size: 11px;
  }
  .ve-chip {
    font-size: 10px;
  }
  .ve-attachments label {
    padding: 9px;
    font-size: 12px;
  }
  .ve-drop strong {
    font-size: 14px;
  }
  .ve-timeline li {
    grid-template-columns: 44px minmax(0, 1fr) 30px;
    gap: 8px;
    padding: 9px;
  }
  .ve-timeline img {
    width: 44px;
    height: 44px;
  }
  .ve-trim {
    gap: 3px;
  }
  .ve-trim input[type="number"] {
    width: 58px;
    font-size: 11px;
  }
  .ve-timeline strong {
    font-size: 12px;
  }
  .ve-export-bar {
    position: sticky;
    bottom: 8px;
    background: #fff;
    padding: 12px 0;
    z-index: 2;
  }
  .ve-export-bar button {
    font-size: 13px;
    padding: 12px 18px;
  }
  .ve-conversation {
    max-height: 240px;
  }
  .ve-options {
    gap: 12px;
  }
  .ve-compose-actions button {
    font-size: 12px;
    padding: 11px;
  }
  .ve-label {
    font-size: 13px;
  }
  .ve-status {
    font-size: 12px;
  }
}

/* Create-only progress and sticky action must not cover the editing workspace. */
#videoPage[data-video-tab="edit"] .video-progress,
#videoPage[data-video-tab="edit"] .video-mobile-action{display:none!important}
.theme-light #videoPage[data-video-tab="edit"]{padding-bottom:24px!important}
.video-next-steps {
  position: sticky;
  top: 8px;
  z-index: 3;
  border: 1px solid #bfddff;
  background: #f4fafff5;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 17px;
  margin: 12px 0 20px;
  box-shadow: 0 6px 20px #1634530c;
}
.video-next-steps[hidden] {
  display: none !important;
}
.video-next-heading {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.video-next-heading > span {
  background: #daf0ff;
  border-radius: 9px;
  color: #1686e8;
  padding: 8px;
  font-weight: 800;
  font-size: 12px;
}
.video-next-heading h3 {
  font-size: 16px;
  color: #214568;
  margin: 0 0 6px;
}
.video-next-heading p,
.video-next-provider {
  font-size: 12px;
  line-height: 1.65;
  color: #6b8198;
  margin: 0;
}
.video-next-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}
.video-next-actions button {
  font-size: 13px;
  padding: 12px 16px;
  min-height: 42px;
  flex: 1;
}
.video-next-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.video-next-steps details {
  font-size: 11px;
  color: #617f9b;
  margin-top: 7px;
}
.video-next-steps summary {
  cursor: pointer;
}
.video-next-steps details[open] {
  max-height: 180px;
  overflow: auto;
}
.video-next-steps details p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.video-next-steps details button {
  font-size: 11px;
  margin-left: 8px;
  padding: 8px;
}
.video-next-steps details a {
  color: #087ae5;
}
@media (max-width: 600px) {
  .video-next-steps {
    top: 0;
    padding: 12px;
    margin-top: 8px;
    border-radius: 12px;
  }
  .video-next-heading h3 {
    font-size: 14px;
  }
  .video-next-heading > span {
    display: none;
  }
  .video-next-heading p {
    font-size: 11px;
  }
  .video-next-actions {
    gap: 6px;
    margin: 9px 0 6px;
  }
  .video-next-actions button {
    font-size: 11px;
    padding: 10px 8px;
  }
  .video-next-provider {
    font-size: 10px;
  }
}
#videoProviderHelp {
  padding: 0;
  border: 0;
  margin: 5px 0 0;
  background: transparent;
}
#videoProviderHelp summary {
  padding: 4px 0;
  min-height: 0;
  font-size: 11px;
  line-height: 1.5;
  background: transparent;
}
#videoProviderHelp p {
  margin: 8px 0;
}
#videoProviderHelp button {
  min-height: 30px;
}

/* Manual editor tools retain the existing responsive workspace. */
.ve-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ve-overlay{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border:1px solid #ddd;border-radius:12px;margin:8px 0}
.ve-overlay label{display:grid;gap:4px;font-size:12px;max-width:100%}
.ve-overlay input{width:90px;min-height:40px}
.ve-overlay textarea{width:220px;max-width:100%}
.ve-overlay strong{width:100%}.ve-move{flex-wrap:wrap}.ve-move input{width:70px}
.ve-asset{flex-wrap:wrap}.ve-tools button,.ve-overlay button,.ve-move button{min-height:40px}

#vePlanPanel[data-kind="audio"] #veSettings{display:none}

/* Audio has no thumbnail: controls occupy the full row, actions wrap below. */
#vePlanPanel[data-kind="audio"] .ve-timeline li{grid-template-columns:minmax(0,1fr);align-items:stretch}
#vePlanPanel[data-kind="audio"] .ve-timeline li>div{min-width:0}
#vePlanPanel[data-kind="audio"] .ve-trim{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
#vePlanPanel[data-kind="audio"] .ve-trim label{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
#vePlanPanel[data-kind="audio"] .ve-trim input[type="number"]{box-sizing:border-box;width:100%;min-width:0;min-height:40px}
#vePlanPanel[data-kind="audio"] .ve-move{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#vePlanPanel[data-kind="audio"] .ve-move>*{min-height:40px}
