.sl-ai-highlight-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #d7e5ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 40, 80, 0.06);
}

.sl-ai-highlight-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.sl-ai-highlight-eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sl-ai-highlight-head h2 {
  margin: 0;
  color: #13233f;
  font-size: 22px;
}

.sl-ai-highlight-head p {
  margin: 6px 0 0;
  color: #5b6b84;
}

.sl-ai-highlight-maker-head {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f4fd8, #2563eb);
  color: #fff;
}

.sl-ai-highlight-maker-head h2,
.sl-ai-highlight-maker-head p,
.sl-ai-highlight-maker-head .sl-ai-highlight-eyebrow {
  color: #fff;
}

.sl-ai-highlight-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.sl-ai-highlight-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.sl-ai-highlight-steps i {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
}

.sl-ai-highlight-maker {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.35fr) minmax(280px, .9fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.sl-ai-highlight-maker-panel {
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.sl-ai-highlight-maker-panel h3 {
  margin: 0 0 12px;
  color: #10203b;
  font-size: 17px;
}

.sl-ai-highlight-info-panel {
  display: grid;
  gap: 10px;
}

.sl-ai-highlight-info-panel label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.sl-ai-highlight-info-panel input[type="text"] {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #cbdaf0;
  border-radius: 10px;
  background: #f8fbff;
  color: #10203b;
}

.sl-ai-highlight-drop {
  padding: 14px;
  border: 1px dashed #93b4e8;
  border-radius: 14px;
  background: #f5f9ff;
  cursor: pointer;
}

.sl-ai-highlight-drop strong,
.sl-ai-highlight-drop span {
  display: block;
}

.sl-ai-highlight-drop span {
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

.sl-ai-highlight-drop input {
  margin-top: 10px;
  max-width: 100%;
}

.sl-ai-highlight-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sl-ai-highlight-counters div {
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.sl-ai-highlight-counters span,
.sl-ai-highlight-counters b {
  display: block;
}

.sl-ai-highlight-counters span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.sl-ai-highlight-counters b {
  margin-top: 4px;
  color: #10203b;
  font-size: 20px;
}

.sl-ai-highlight-preview-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.sl-ai-highlight-preview-stage {
  display: grid;
  gap: 10px;
}

.sl-ai-highlight-preview-screen {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.sl-ai-highlight-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.sl-ai-highlight-preview-image {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
}

.sl-ai-highlight-preview-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sl-ai-highlight-preview-controls button,
.sl-ai-highlight-preview-strip button {
  border: 1px solid #c8d8f4;
  border-radius: 10px;
  background: #f7fbff;
  color: #173765;
  font-weight: 900;
  cursor: pointer;
}

.sl-ai-highlight-preview-controls button {
  min-height: 38px;
  padding: 0 12px;
}

.sl-ai-highlight-preview-count {
  color: #10203b;
}

.sl-ai-highlight-preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sl-ai-highlight-preview-strip button {
  flex: 0 0 58px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  opacity: .75;
}

.sl-ai-highlight-preview-strip button.is-active {
  border-color: #2563eb;
  opacity: 1;
}

.sl-ai-highlight-preview-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sl-ai-highlight-maker-settings {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e2ebfb;
}

.sl-ai-highlight-maker-settings label {
  min-width: 136px;
}

.sl-ai-highlight-maker-settings select {
  width: 100%;
}

.sl-ai-highlight-auto-flags {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-ai-highlight-auto-flags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #174ea6;
  font-size: 12px;
  font-weight: 900;
}

.sl-ai-highlight-action-row {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-ai-highlight-save-settings,
.sl-ai-highlight-reset-settings {
  min-height: 38px;
  border: 1px solid #c8d8f4;
  border-radius: 10px;
  background: #fff;
  color: #173765;
  font-weight: 900;
  cursor: pointer;
}

.sl-ai-highlight-storyboard {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #475569;
  line-height: 1.7;
  font-weight: 800;
}

.sl-ai-highlight-refresh,
.sl-ai-highlight-create,
.sl-ai-highlight-upload-link,
.sl-ai-highlight-item button,
.sl-ai-highlight-job button,
.sl-ai-highlight-video button {
  min-height: 38px;
  border: 1px solid #c8d8f4;
  border-radius: 10px;
  background: #f7fbff;
  color: #173765;
  font-weight: 800;
  cursor: pointer;
}

.sl-ai-highlight-create {
  background: #174ea6;
  color: #fff;
  border-color: #174ea6;
}

.sl-ai-highlight-create:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.sl-ai-highlight-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.sl-ai-highlight-upload {
  display: grid;
  grid-template-columns: minmax(110px, .4fr) 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.sl-ai-highlight-upload strong {
  color: #10203b;
}

.sl-ai-highlight-upload span {
  color: #49607f;
  line-height: 1.45;
}

.sl-ai-highlight-count {
  padding: 12px;
  border-radius: 12px;
  background: #f5f8ff;
  border: 1px solid #dce8fb;
}

.sl-ai-highlight-count strong {
  display: block;
  color: #10203b;
  font-size: 26px;
}

.sl-ai-highlight-count span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.sl-ai-highlight-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.sl-ai-highlight-progress {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.sl-ai-highlight-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #10203b;
  font-weight: 900;
}

.sl-ai-highlight-progress-percent {
  color: #174ea6;
}

.sl-ai-highlight-progress-track {
  height: 10px;
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef9;
}

.sl-ai-highlight-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #174ea6, #22c55e);
  transition: width .25s ease;
}

.sl-ai-highlight-progress-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.sl-ai-highlight-progress-steps span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #5b6b84;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sl-ai-highlight-progress-steps span.is-complete {
  background: #dbeafe;
  color: #174ea6;
}

.sl-ai-highlight-progress-steps span.is-current {
  background: #174ea6;
  color: #fff;
}

.sl-ai-highlight-progress.is-done .sl-ai-highlight-progress-bar {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.sl-ai-highlight-progress.is-error .sl-ai-highlight-progress-bar {
  background: #dc2626;
}

.sl-ai-highlight-local-queue {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
}

.sl-ai-highlight-local-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.sl-ai-highlight-local-queue-head h3 {
  margin: 0;
  color: #17243d;
  font-size: 16px;
}

.sl-ai-highlight-local-queue-now {
  color: #174ea6;
  font-size: 13px;
  font-weight: 800;
}

.sl-ai-highlight-local-queue-list {
  color: #64748b;
}

.sl-ai-highlight-queue-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2ebfb;
  border-radius: 12px;
  background: #fbfdff;
  margin-bottom: 8px;
}

.sl-ai-highlight-queue-item strong {
  color: #10203b;
}

.sl-ai-highlight-queue-item p,
.sl-ai-highlight-queue-item small {
  display: block;
  margin: 4px 0 0;
  color: #64748b;
}

.sl-ai-highlight-queue-item.is-running {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sl-ai-highlight-queue-item.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.sl-ai-highlight-queue-item.is-failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.sl-ai-highlight-queue-item.is-canceled {
  border-color: #e5e7eb;
  background: #f8fafc;
}

.sl-ai-highlight-queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-ai-highlight-queue-actions button {
  min-height: 36px;
  border: 1px solid #c8d8f4;
  border-radius: 10px;
  background: #f7fbff;
  color: #173765;
  font-weight: 800;
  cursor: pointer;
}

.sl-ai-highlight-controls label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.sl-ai-highlight-controls select {
  min-height: 38px;
  min-width: 120px;
  border: 1px solid #cbdaf0;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.sl-ai-highlight-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sl-ai-highlight-body h3 {
  margin: 0 0 10px;
  color: #17243d;
  font-size: 16px;
}

.sl-ai-highlight-item,
.sl-ai-highlight-job,
.sl-ai-highlight-video {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2ebfb;
  border-radius: 12px;
  background: #fbfdff;
  margin-bottom: 8px;
}

.sl-ai-highlight-item strong,
.sl-ai-highlight-job strong,
.sl-ai-highlight-video strong {
  color: #10203b;
}

.sl-ai-highlight-item p,
.sl-ai-highlight-job p,
.sl-ai-highlight-video p,
.sl-ai-highlight-item small,
.sl-ai-highlight-job small,
.sl-ai-highlight-video small,
.sl-ai-highlight-empty,
.sl-ai-highlight-status {
  margin: 4px 0 0;
  color: #64748b;
}

.sl-ai-highlight-videos-wrap {
  margin-top: 14px;
}

.sl-ai-highlight-videos-wrap h3 {
  margin: 0 0 10px;
  color: #17243d;
  font-size: 16px;
}

.sl-ai-highlight-job-actions,
.sl-ai-highlight-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sl-ai-highlight-job-actions a,
.sl-ai-highlight-video-actions a,
.sl-ai-highlight-video-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  background: #174ea6;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.sl-ai-highlight-video-actions button {
  background: #f7fbff;
  color: #173765;
}

.sl-ai-highlight-status.is-error {
  color: #b42318;
  font-weight: 800;
}

.sl-ai-highlight-link-card {
  max-width: 980px;
}

.sl-ai-highlight-link-head {
  align-items: flex-start;
}

.sl-ai-highlight-link-body {
  display: block;
}

.sl-ai-highlight-link-panel {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
  align-items: stretch;
  gap: 18px;
}

.sl-ai-highlight-launch-panel,
.sl-ai-highlight-install-guide {
  min-height: 100%;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
}

.sl-ai-highlight-launch-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sl-ai-highlight-link-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.sl-ai-highlight-link-panel p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.65;
}

.sl-ai-highlight-link-panel small {
  display: block;
  margin-top: 12px;
  color: #64748b;
}

.sl-ai-highlight-studio-open {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06a8c8);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
}

.sl-ai-highlight-studio-open:disabled {
  opacity: .55;
  cursor: wait;
}

.sl-ai-highlight-status[data-tone="checking"] {
  color: #174ea6;
  font-weight: 900;
}

.sl-ai-highlight-status[data-tone="success"] {
  color: #15803d;
  font-weight: 900;
}

.sl-ai-highlight-status[data-tone="error"] {
  color: #b42318;
  font-weight: 900;
}

.sl-ai-highlight-install-guide {
  border: 1px solid #bfd7ff;
  background: #f8fbff;
}

.sl-ai-highlight-install-guide h4 {
  margin: 0 0 8px;
  color: #10203b;
  font-size: 17px;
}

.sl-ai-highlight-install-eyebrow {
  margin: 0 0 8px !important;
  color: #2563eb !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sl-ai-highlight-install-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.sl-ai-highlight-install-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 8px;
  color: #334155;
}

.sl-ai-highlight-install-steps li > span {
  color: #2563eb;
  font-size: 19px;
  line-height: 1.2;
}

.sl-ai-highlight-install-steps b,
.sl-ai-highlight-install-steps small {
  display: block;
}

.sl-ai-highlight-install-steps small {
  margin-top: 3px;
  color: #64748b;
  line-height: 1.45;
}

.sl-ai-highlight-install-steps .sl-ai-highlight-smartscreen {
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.sl-ai-highlight-install-steps .sl-ai-highlight-edge-warning {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.sl-ai-highlight-install-steps code {
  border-radius: 4px;
  padding: 1px 4px;
  background: rgba(15, 23, 42, .08);
  color: #0f172a;
  font-family: inherit;
  font-weight: 900;
}

.sl-ai-highlight-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sl-ai-highlight-install-actions a,
.sl-ai-highlight-install-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #c8d8f4;
  border-radius: 10px;
  background: #f7fbff;
  color: #173765;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.sl-ai-highlight-install-actions a {
  border-color: #174ea6;
  background: #174ea6;
  color: #fff;
}

.sl-ai-highlight-install-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sl-ai-highlight-installed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sl-ai-highlight-installed-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 25px;
  font-weight: 900;
}

.sl-ai-highlight-installed-open {
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  background: #174ea6;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 720px) {
  .sl-ai-highlight-card {
    padding: 14px;
  }

  .sl-ai-highlight-head,
  .sl-ai-highlight-upload,
  .sl-ai-highlight-local-queue-head,
  .sl-ai-highlight-queue-item,
  .sl-ai-highlight-item,
  .sl-ai-highlight-job,
  .sl-ai-highlight-video {
    flex-direction: column;
    align-items: stretch;
  }

  .sl-ai-highlight-counts,
  .sl-ai-highlight-maker,
  .sl-ai-highlight-body,
  .sl-ai-highlight-progress-steps {
    grid-template-columns: 1fr;
  }

  .sl-ai-highlight-controls {
    align-items: stretch;
  }

  .sl-ai-highlight-controls label,
  .sl-ai-highlight-controls button {
    width: 100%;
  }

  .sl-ai-highlight-link-panel {
    grid-template-columns: 1fr;
  }
}
