/* Only the custom video API canvas footer. Other settings / providers retain
   their existing layout and handlers. Capability values never come from CSS. */
[data-canvas-video-toolbar] {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  gap: 6px;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(128, 128, 128, .15);
}
[data-canvas-video-toolbar] > [data-video-toolbar-model] {
  flex: 0 1 112px;
  min-width: 64px;
  max-width: 32%;
}
[data-canvas-video-toolbar] > [data-video-toolbar-model] > button {
  width: 100% !important;
  height: 34px;
  padding: 0 8px;
  white-space: nowrap;
  border-radius: 18px;
}
[data-canvas-video-toolbar] > [data-video-toolbar-refmenu],
[data-canvas-video-toolbar] > [data-video-toolbar-batch] {
  flex: 0 0 auto;
  white-space: nowrap;
}
[data-canvas-video-toolbar] > [data-video-toolbar-batch] {
  padding: 4px;
  font-size: 11px;
  min-width: 24px;
}
[data-canvas-video-toolbar] > [data-video-toolbar-metadata] {
  flex: 0 1 auto;
  max-width: 20%;
  min-width: 0;
}
[data-canvas-video-toolbar] > [data-video-toolbar-metadata]:empty { display: none; }
[data-canvas-video-toolbar] > [data-video-toolbar-actions] {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin-left: auto;
}
[data-canvas-video-toolbar] [data-video-toolbar-queue] {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
}
[data-canvas-video-toolbar] [data-video-toolbar-queue] svg {
  width: 14px;
  height: 14px;
}
[data-canvas-video-toolbar] [data-video-toolbar-queue-label] {
  display: none;
}
[data-canvas-video-toolbar] [aria-label="生成视频"] {
  flex: 0 0 auto;
  min-width: 84px;
  height: 34px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  word-break: keep-all;
}
.hy-video-parameters {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  color: #dedde4;
  font-size: 11px;
}
.hy-video-parameters > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 34px;
  padding: 0 7px;
  border: 1px solid rgba(160, 155, 180, .2);
  border-radius: 18px;
  background: #222126;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}
.hy-video-parameters > summary::-webkit-details-marker { display: none; }
.hy-video-parameters > summary > svg { flex: 0 0 auto; }
.hy-video-parameters > summary > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hy-video-parameters > summary:focus-visible {
  outline: 2px solid #e8ab29;
  outline-offset: 2px;
}
.hy-video-parameters[open] > summary {
  border-color: #a580d8;
  background: #302a3a;
}
.hy-video-parameter-panel {
  position: absolute;
  z-index: 140;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 40px));
  max-height: min(380px, 65vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid #4a4456;
  border-radius: 12px;
  background: #1b1920;
  color: #eceaf1;
  box-shadow: 0 10px 35px #0008;
  cursor: auto;
}
.hy-video-parameter-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}
.hy-video-parameter-panel > header > button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hy-video-parameter-panel > header > button:hover { background: #8883; }
.hy-video-parameter-panel > p { color: #aaa5b1; margin: 8px 0 0; line-height: 1.5; }
.hy-video-parameters[data-theme="light"] { color: #383341; }
.hy-video-parameters[data-theme="light"] > summary { background: #f1eff5; border-color: #d5cfdf; }
.hy-video-parameters[data-theme="light"] .hy-video-parameter-panel { background: #fff; color: #28232f; border-color: #cfc6d9; }
.hy-video-parameters[data-theme="light"] .hy-video-parameter-panel input,
.hy-video-parameters[data-theme="light"] .hy-video-parameter-panel select { background: #f7f5fa !important; color: #29232f !important; border-color: #c7c0cf !important; }
.hy-video-parameters[data-theme="light"] .hy-video-parameter-panel legend,
.hy-video-parameters[data-theme="light"] .hy-video-parameter-panel small { color: #6a6174 !important; }
@media (max-width: 480px) {
  [data-canvas-video-toolbar] { gap: 4px; }
  [data-canvas-video-toolbar] > [data-video-toolbar-model] { flex-basis: 100px; }
  [data-canvas-video-toolbar] [aria-label="生成视频"] { min-width: 72px; padding-left: 7px; padding-right: 7px; }
  .hy-video-parameters > summary { padding: 0 7px; gap: 4px; }
}
