/* Focused interaction styles kept outside the legacy page stylesheet. */
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .48);
  outline-offset: 2px;
}

/* Keep checkboxes compact; the mobile control-height rule must not stretch them. */
.form-check-input[type="checkbox"] {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 1.1rem !important;
  min-width: 1.1rem !important;
  height: 1.1rem !important;
  min-height: 1.1rem !important;
  margin-top: .15rem;
  border-radius: .35rem;
}

.form-switch .form-check-input[type="checkbox"] {
  width: 2em !important;
  min-width: 2em !important;
  height: 1em !important;
  min-height: 1em !important;
  border-radius: 2em;
  margin-top: .25em;
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--wp-ink);
  font-size: .98rem;
  font-weight: 750;
}

.settings-card-title i {
  color: var(--wp-accent);
  font-size: 1.05rem;
}

.settings-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 38px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--wp-line);
  border-radius: 10px;
  background: rgba(248, 250, 252, .8);
  color: var(--wp-body);
  cursor: pointer;
  line-height: 1.35;
}

.settings-check:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.settings-check > span {
  min-width: 0;
}

.settings-check strong,
.settings-check small {
  display: block;
}

.settings-check strong {
  color: var(--wp-ink);
  font-weight: 650;
}

.settings-check small {
  margin-top: 3px;
  color: var(--wp-muted);
  font-size: .78rem;
}

.settings-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.file-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.file-search-box {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.file-search-box .input-group-text,
.file-search-box .form-control,
.file-search-box .btn {
  min-height: 36px !important;
}

.file-search-box .input-group-text {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
  border-radius: 10px 0 0 10px !important;
  color: var(--wp-muted);
  background: #f8fafc !important;
}

.file-search-box .form-control {
  min-width: 0;
  margin-left: -1px !important;
  border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important;
}

.file-search-box .btn {
  flex: 0 0 40px;
  width: 40px;
  margin-left: -1px !important;
  padding: 0 !important;
  border-color: #dbe3ef;
  border-radius: 0 10px 10px 0 !important;
}

.file-search-box.has-query .form-control {
  border-radius: 0 !important;
}

.tool-module-launcher > button {
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  min-height: 82px;
  padding: 11px 12px;
}

.tool-module-icon {
  align-self: center;
  width: 40px;
  height: 40px;
}

.tool-module-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  gap: 4px;
  min-height: 0;
}

.tool-module-copy strong,
.tool-module-copy small {
  align-self: auto;
  width: 100%;
  margin: 0;
}

.tool-module-copy strong {
  line-height: 1.25;
}

.tool-module-copy small {
  min-height: 0;
  line-height: 1.3;
}

.tool-module-arrow {
  align-self: center;
  justify-self: end;
}

.clickable[role="button"] {
  cursor: pointer;
}

.virtual-file-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  contain: strict;
  overscroll-behavior: contain;
}

.virtual-file-content {
  position: relative;
  min-width: 100%;
}

.virtual-file-window {
  position: absolute;
  inset: 0 0 auto;
  min-width: 100%;
  will-change: transform;
}

.virtual-file-window .file-item {
  min-height: 68px;
  box-sizing: border-box;
}

@media (max-width: 920px) {
  .btn,
  .form-control,
  .form-select {
    min-height: 40px;
  }

  .file-item .form-check-input {
    min-height: 22px;
    min-width: 22px;
  }

  .settings-check-list {
    grid-template-columns: 1fr;
  }

  .file-search-row {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) 40px;
    align-items: center !important;
    min-height: 58px;
    gap: 10px !important;
    padding: 8px 10px !important;
  }

  .mobile-toggle,
  .theme-toggle-mobile {
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px !important;
    margin: 0 !important;
    line-height: 1;
  }

  .mobile-toggle {
    display: inline-flex !important;
    gap: 6px;
  }

  .mobile-toggle i,
  .theme-toggle-mobile i {
    display: grid;
    place-items: center;
    line-height: 1;
  }

  .mobile-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 40px !important;
    padding: 0 !important;
  }

  .mobile-heading strong {
    margin: 0;
    line-height: 1.2;
  }
}

@media (max-width: 560px) {
  .tool-module-launcher > button {
    grid-template-columns: 36px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 8px;
    min-height: 86px;
    padding: 10px;
  }

  .tool-module-icon {
    width: 36px;
    height: 36px;
  }

  .tool-module-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 4px;
    min-height: 0;
  }

  .tool-module-copy strong {
    align-self: auto;
    line-height: 1.25;
  }

  .tool-module-copy small {
    align-self: auto;
    min-height: 0;
    line-height: 1.3;
  }
}

html[data-theme="dark"] .settings-check {
  border-color: #334155;
  background: rgba(15, 23, 42, .72);
  color: #cbd5e1;
}

/* Keep media workspaces compact; the top bar already names the current page. */
.media-tool-panel {
  padding-top: 12px !important;
}

.compact-page-panel {
  padding-top: 12px !important;
}

.page-toolbar-only {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.page-toolbar-only .toolbar {
  width: auto;
}

.media-tool-panel .tool-module-launcher {
  gap: 8px;
  margin-bottom: 12px;
}

.media-tool-panel .tool-module-launcher > button {
  grid-template-columns: 30px minmax(0, 1fr) 12px;
  gap: 7px;
  min-height: 58px;
  padding: 7px 9px;
  border-radius: 8px;
}

.media-tool-panel .tool-module-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: .88rem;
}

.media-tool-panel .tool-module-copy {
  gap: 1px;
}

.media-tool-panel .tool-module-copy strong {
  font-size: .84rem;
}

.media-tool-panel .tool-module-copy small {
  font-size: .67rem;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .page-toolbar-only .toolbar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-tool-panel .tool-module-launcher {
    gap: 7px;
    margin-bottom: 10px;
  }

  .media-tool-panel .tool-module-launcher > button {
    grid-template-columns: 28px minmax(0, 1fr) 10px;
    gap: 6px;
    min-height: 56px;
    padding: 7px;
    border-radius: 8px;
  }

  .media-tool-panel .tool-module-icon {
    width: 28px;
    height: 28px;
  }

  .media-tool-panel .tool-module-copy {
    min-height: 0;
  }

  .media-tool-panel .tool-module-copy small {
    display: none;
  }
}

html[data-theme="dark"] .settings-check:hover {
  border-color: #60a5fa;
  background: #1e293b;
}

html[data-theme="dark"] .settings-check strong,
html[data-theme="dark"] .settings-card-title {
  color: #e2e8f0;
}

html[data-theme="dark"] .file-search-box .input-group-text {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #94a3b8;
}

html[data-theme="dark"] .file-search-box .btn {
  border-color: #334155;
}

/* Subtitle translation and validation share one compact workflow language. */
#view-subtitle-tools .subtitle-workflow {
  padding: 0;
}

.subtitle-section {
  padding: 18px;
  border-bottom: 1px solid var(--wp-line, #e2e8f0);
}

.subtitle-section:last-child {
  border-bottom: 0;
}

.subtitle-section-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.subtitle-section-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: #eaf2ff;
  color: #2563eb;
  font-size: .95rem;
}

.subtitle-section-title {
  color: var(--wp-ink, #0f172a);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.3;
}

.subtitle-section-help,
.subtitle-field-help {
  color: var(--wp-muted, #64748b);
  font-size: .76rem;
  line-height: 1.45;
}

.subtitle-section-help {
  margin-top: 2px;
}

.subtitle-source-grid,
.subtitle-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subtitle-source-option {
  min-width: 0;
}

.subtitle-source-option + .subtitle-source-option {
  padding-left: 16px;
  border-left: 1px solid var(--wp-line, #e2e8f0);
}

.subtitle-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.subtitle-field-label {
  color: var(--wp-ink, #0f172a);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
}

.subtitle-source-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.subtitle-source-actions .btn {
  min-width: 126px;
}

.subtitle-browse-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.subtitle-browse-selection {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--wp-line, #d7e0ea);
  border-radius: 8px;
  background: var(--wp-panel, #fff);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}

.subtitle-browse-root {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--wp-line, #d7e0ea);
  background: var(--wp-soft, #f8fafc);
  color: var(--wp-sub, #64748b);
  font-size: .82rem;
  white-space: nowrap;
}

.subtitle-browse-selection .form-control {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.subtitle-browse-selection .form-control:focus {
  box-shadow: none;
}

.subtitle-browse-picker > .btn {
  min-width: 142px;
  white-space: nowrap;
}

.subtitle-storage-browser {
  margin: 14px 0 0;
  box-shadow: none;
}

.subtitle-batch-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
  background: #f8fafc;
}

.subtitle-batch-controls .meta {
  min-width: 0;
}

.subtitle-batch-actions,
.ass-sup-action-buttons,
.subtitle-template-action-buttons,
.subtitle-timeline-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.subtitle-batch-selector {
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
}

.subtitle-batch-result,
.ass-sup-batch-result:not(:empty) {
  margin-top: 14px;
}

.subtitle-batch-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .84rem;
}

.subtitle-batch-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
}

.subtitle-batch-table {
  min-width: 580px;
  margin: 0;
  font-size: .78rem;
}

.subtitle-batch-table td,
.subtitle-batch-table th {
  vertical-align: middle;
}

.subtitle-batch-table .subtitle-merge-output-actions {
  margin: 0;
  gap: 5px;
}

.subtitle-state {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
  background: #f8fafc;
  color: var(--wp-body, #334155);
  font-size: .86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.subtitle-state pre {
  max-height: 180px;
  overflow: auto;
  color: inherit;
  font-size: .76rem;
  white-space: pre-wrap;
}

.subtitle-toggle {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
  background: #f8fafc;
  cursor: pointer;
}

.subtitle-toggle span,
.subtitle-toggle strong,
.subtitle-toggle small {
  display: block;
  min-width: 0;
}

.subtitle-toggle strong {
  color: var(--wp-ink, #0f172a);
  font-size: .82rem;
}

.subtitle-toggle small {
  margin-top: 3px;
  color: var(--wp-muted, #64748b);
  font-size: .74rem;
  line-height: 1.35;
}

.subtitle-auto-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 3px solid #60a5fa;
  background: #eff6ff;
  color: #1e40af;
  font-size: .8rem;
  line-height: 1.5;
}

.subtitle-action-section {
  background: #fbfdff;
}

.subtitle-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.subtitle-primary-action {
  flex: 0 0 auto;
  min-width: 168px;
}

.subtitle-template-action-buttons {
  justify-content: flex-end;
}

.subtitle-timeline-action-buttons {
  justify-content: flex-end;
}

.subtitle-current-job:not(:empty) {
  margin-top: 14px;
}

.subtitle-merge-source-state {
  min-height: 54px;
  margin-top: 10px;
}

.subtitle-merge-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.subtitle-merge-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.subtitle-merge-metrics > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 6px;
  background: #f8fafc;
}

.subtitle-merge-metrics strong,
.subtitle-merge-metrics span {
  display: block;
}

.subtitle-merge-metrics strong {
  color: var(--wp-ink, #0f172a);
  font-size: 1rem;
}

.subtitle-merge-metrics span {
  margin-top: 2px;
  color: var(--wp-muted, #64748b);
  font-size: .72rem;
}

.subtitle-merge-output-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.subtitle-merge-output-actions > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .36rem .78rem;
  border-radius: 7px !important;
  line-height: 1.25;
}

.subtitle-output-action-set {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.subtitle-output-action-set .btn,
.subtitle-output-action-set > a,
.subtitle-output-utilities .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-width: 0;
  min-height: 36px;
  padding: .34rem .7rem;
  border-radius: 10px !important;
  font-size: .82rem;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.subtitle-output-action-set .btn:hover,
.subtitle-output-action-set > a:hover,
.subtitle-output-utilities .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 13px rgba(15, 23, 42, .1);
}

.subtitle-output-action-set .subtitle-output-transfer {
  background: #f0fdf4;
}

.subtitle-output-action-set .subtitle-output-transfer,
.subtitle-output-action-set .subtitle-output-sup {
  min-width: 86px;
}

.subtitle-output-action-set.is-effects {
  flex-wrap: nowrap;
}

.subtitle-output-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 100%;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  padding-top: 2px;
}

.subtitle-output-utilities .btn {
  min-height: 34px;
  padding: .3rem .55rem;
  border-radius: 9px !important;
  font-size: .78rem;
  box-shadow: none;
}

.subtitle-output-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: .2rem .48rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #64748b;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.subtitle-output-badge.is-effects {
  background: #6d28d9;
}

@media (max-width: 540px) {
  .subtitle-merge-output-actions { align-items: stretch; }
  .subtitle-merge-output-actions > .btn { width: 100%; }
  .subtitle-output-action-set .btn,
  .subtitle-output-action-set > a,
  .subtitle-output-utilities .btn { font-size: .82rem; }
}

.task-log-summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe4ee;
  border-left-width: 3px;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
}

.task-log-summary > i {
  margin-top: 1px;
  color: #64748b;
}

.task-log-summary strong,
.task-log-summary span {
  display: block;
}

.task-log-summary strong {
  margin-bottom: 2px;
  color: #334155;
  font-size: .76rem;
}

.task-log-summary span {
  overflow-wrap: anywhere;
  font-size: .8rem;
  line-height: 1.5;
}

.task-log-summary.is-success { border-left-color: #22c55e; background: #f0fdf4; }
.task-log-summary.is-success > i { color: #16a34a; }
.task-log-summary.is-error { border-left-color: #ef4444; background: #fef2f2; }
.task-log-summary.is-error > i { color: #dc2626; }
.task-log-summary.is-warning,
.task-log-summary.is-waiting { border-left-color: #f59e0b; background: #fffbeb; }
.task-log-summary.is-warning > i,
.task-log-summary.is-waiting > i { color: #d97706; }
.task-log-summary.is-running { border-left-color: #3b82f6; background: #eff6ff; }
.task-log-summary.is-running > i { color: #2563eb; }

.subtitle-report-body {
  min-height: 180px;
}

.subtitle-report {
  display: grid;
  gap: 14px;
}

.subtitle-report-overview,
.subtitle-report-metrics {
  display: grid;
  gap: 8px;
}

.subtitle-report-overview {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.subtitle-report-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.subtitle-report-overview > div,
.subtitle-report-metrics > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 6px;
  background: #f8fafc;
}

.subtitle-report-overview strong,
.subtitle-report-overview span,
.subtitle-report-metrics strong,
.subtitle-report-metrics span {
  display: block;
}

.subtitle-report-overview strong,
.subtitle-report-metrics strong {
  color: var(--wp-ink, #0f172a);
  font-size: 1rem;
}

.subtitle-report-overview span,
.subtitle-report-metrics span {
  margin-top: 2px;
  color: var(--wp-muted, #64748b);
  font-size: .72rem;
}

.subtitle-report-card {
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.subtitle-report-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wp-line, #e2e8f0);
  background: #f8fafc;
}

.subtitle-report-card-head strong,
.subtitle-report-card-head span {
  display: block;
}

.subtitle-report-card-head strong {
  color: #0f172a;
  font-size: .86rem;
}

.subtitle-report-card-head span {
  color: #64748b;
  font-size: .76rem;
}

.subtitle-report-table-wrap {
  overflow-x: auto;
}

.subtitle-report-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: .78rem;
}

.subtitle-report-table th,
.subtitle-report-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  white-space: nowrap;
}

.subtitle-report-table th {
  color: #475569;
  background: #fbfdff;
  font-weight: 800;
}

.subtitle-report-table td {
  color: #334155;
}

.subtitle-report-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subtitle-report-filter {
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
  background: #fff;
  color: #475569;
  padding: 6px 10px;
  font-size: .82rem;
  font-weight: 700;
}

.subtitle-report-filter.active {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
}

.subtitle-report-filter span {
  margin-left: 4px;
  color: #64748b;
  font-weight: 800;
}

.subtitle-report-list {
  display: grid;
  gap: 10px;
}

.subtitle-report-section-title {
  color: #334155;
  font-weight: 800;
  margin-top: 4px;
}

.subtitle-report-row {
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
}

.subtitle-report-row.is-removed {
  border-color: #fed7aa;
  background: #fff7ed;
}

.subtitle-report-retained-sdh .subtitle-report-table {
  min-width: 860px;
}

.subtitle-report-retained-sdh td:nth-child(3),
.subtitle-report-retained-sdh td:nth-child(4),
.subtitle-report-retained-sdh td:nth-child(5) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.subtitle-report-row-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.subtitle-report-row-head strong {
  color: #0f172a;
}

.subtitle-report-row-head code {
  color: #64748b;
  background: #f1f5f9;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: .78rem;
}

.subtitle-report-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.subtitle-report-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .72rem;
  font-weight: 800;
}

.subtitle-report-badge.change {
  background: #dcfce7;
  color: #166534;
}

.subtitle-report-badge.tag {
  background: #e0f2fe;
  color: #075985;
}

.subtitle-report-badge.muted {
  background: #f1f5f9;
  color: #64748b;
}

.subtitle-report-badge.removed {
  background: #ffedd5;
  color: #9a3412;
}

.subtitle-report-text {
  display: grid;
  gap: 2px;
  margin-top: 7px;
}

.subtitle-report-text span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
}

.subtitle-report-text p {
  margin: 0;
  color: #1f2937;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.subtitle-report-text.is-muted p {
  color: #64748b;
}

.subtitle-report-ai {
  margin-top: 8px;
  padding: 8px 9px;
  border-left: 3px solid #60a5fa;
  border-radius: 6px;
  background: #eff6ff;
}

.subtitle-report-ai strong,
.subtitle-report-ai span {
  display: block;
}

.subtitle-report-ai strong {
  color: #1d4ed8;
  font-size: .78rem;
}

.subtitle-report-ai span {
  color: #475569;
  font-size: .8rem;
  line-height: 1.5;
}

.subtitle-report-terminology {
  border-color: #0f766e;
  background: #ecfdf5;
}

.subtitle-report-terminology strong {
  color: #0f766e;
}

.job-log {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 160px;
  max-height: 320px;
  padding: 8px;
  overflow: auto;
}

.job-log-lines,
.structured-log-list {
  display: grid;
  gap: 6px;
}

.log-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 3px;
}

.log-overview > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: .75rem;
}

.log-overview > span.is-success { color: #15803d; }
.log-overview > span.is-warning { color: #a16207; }
.log-overview > span.is-error { color: #b91c1c; }

.job-log-row {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border: 1px solid #263449;
  border-radius: 5px;
  background: #0f172a;
  color: #dbeafe;
}

.job-log-row > span {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.job-log-row > b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #93c5fd;
  font-size: .72rem;
}

.job-log-row > code {
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.job-log-row.is-command { border-left: 3px solid #60a5fa; }
.job-log-row.is-success { border-left: 3px solid #22c55e; color: #bbf7d0; }
.job-log-row.is-error { border-left: 3px solid #ef4444; color: #fecaca; }
.job-log-empty { align-self: center; color: #94a3b8; text-align: center; }

.structured-log-entry {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
}

.structured-log-entry.is-success { border-left-color: #22c55e; }
.structured-log-entry.is-warning { border-left-color: #f59e0b; }
.structured-log-entry.is-error { border-left-color: #ef4444; }

.structured-log-icon {
  margin-top: 2px;
  color: #64748b;
}

.structured-log-entry.is-success .structured-log-icon { color: #16a34a; }
.structured-log-entry.is-warning .structured-log-icon { color: #d97706; }
.structured-log-entry.is-error .structured-log-icon { color: #dc2626; }

.structured-log-content {
  min-width: 0;
}

.structured-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.structured-log-head strong {
  color: #334155;
  font-size: .76rem;
}

.structured-log-head time {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}

.structured-log-message {
  margin-top: 3px;
  color: #475569;
  font-size: .82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.structured-log-path {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: #64748b;
}

.structured-log-path code {
  min-width: 0;
  color: inherit;
  font-size: .73rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.task-inline-message {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid #dbe4ee;
  border-left: 3px solid #60a5fa;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
}

.task-inline-message.is-error {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.task-inline-message.is-success {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.task-inline-message > i {
  margin-top: 1px;
  color: #64748b;
}

.task-inline-message.is-error > i { color: #dc2626; }
.task-inline-message.is-success > i { color: #16a34a; }

.task-inline-message strong,
.task-inline-message span {
  display: block;
}

.task-inline-message strong {
  margin-bottom: 2px;
  color: #334155;
  font-size: .75rem;
}

.task-inline-message span {
  font-size: .78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .task-log-summary {
  border-color: #334155;
  background: #111827;
}

html[data-theme="dark"] .task-log-summary strong { color: #e2e8f0; }
html[data-theme="dark"] .task-log-summary.is-success { background: #052e16; }
html[data-theme="dark"] .task-log-summary.is-error { background: #450a0a; }
html[data-theme="dark"] .task-log-summary.is-warning,
html[data-theme="dark"] .task-log-summary.is-waiting { background: #422006; }
html[data-theme="dark"] .task-log-summary.is-running { background: #172554; }

.subtitle-runtime-log-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 560px);
  overflow: auto;
}

.subtitle-runtime-log-entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dbe4ee;
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  background: #f8fafc;
  font-size: .84rem;
  line-height: 1.5;
}

.subtitle-runtime-log-entry time {
  color: #64748b;
  font-size: .76rem;
}

.subtitle-runtime-log-entry div {
  overflow-wrap: anywhere;
}

.subtitle-runtime-log-entry.is-output {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.subtitle-runtime-log-entry.is-error {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

html[data-theme="dark"] .subtitle-runtime-log-entry {
  border-color: #334155;
  background: #111827;
  color: #e2e8f0;
}

html[data-theme="dark"] .subtitle-runtime-log-entry.is-output { background: #052e16; }
html[data-theme="dark"] .subtitle-runtime-log-entry.is-error { background: #450a0a; color: #fecaca; }

@media (max-width: 576px) {
  .subtitle-runtime-log-entry {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

html[data-theme="dark"] .subtitle-report-overview > div,
html[data-theme="dark"] .subtitle-report-metrics > div,
html[data-theme="dark"] .subtitle-report-card,
html[data-theme="dark"] .subtitle-report-row,
html[data-theme="dark"] .subtitle-report-filter {
  border-color: #334155;
  background: #111827;
}

html[data-theme="dark"] .subtitle-report-card-head,
html[data-theme="dark"] .subtitle-report-table th {
  border-color: #334155;
  background: #0f172a;
}

html[data-theme="dark"] .subtitle-report-table td {
  border-color: #1f2937;
}

html[data-theme="dark"] .subtitle-report-overview strong,
html[data-theme="dark"] .subtitle-report-metrics strong,
html[data-theme="dark"] .subtitle-report-card-head strong,
html[data-theme="dark"] .subtitle-report-row-head strong,
html[data-theme="dark"] .subtitle-report-table td,
html[data-theme="dark"] .subtitle-report-text p,
html[data-theme="dark"] .subtitle-report-section-title {
  color: #e2e8f0;
}

html[data-theme="dark"] .subtitle-report-overview span,
html[data-theme="dark"] .subtitle-report-metrics span,
html[data-theme="dark"] .subtitle-report-card-head span,
html[data-theme="dark"] .subtitle-report-table th,
html[data-theme="dark"] .subtitle-report-filter,
html[data-theme="dark"] .subtitle-report-row-head code,
html[data-theme="dark"] .subtitle-report-text span,
html[data-theme="dark"] .subtitle-report-text.is-muted p,
html[data-theme="dark"] .subtitle-report-ai span {
  color: #94a3b8;
}

html[data-theme="dark"] .subtitle-report-filter.active,
html[data-theme="dark"] .subtitle-report-ai {
  border-color: #2563eb;
  background: #172554;
}

html[data-theme="dark"] .subtitle-report-terminology {
  border-color: #0f766e;
  background: #042f2e;
}

html[data-theme="dark"] .subtitle-report-terminology strong {
  color: #5eead4;
}

html[data-theme="dark"] .subtitle-report-row.is-removed {
  border-color: #9a3412;
  background: #431407;
}
html[data-theme="dark"] .log-overview > span,
html[data-theme="dark"] .structured-log-entry,
html[data-theme="dark"] .task-inline-message {
  border-color: #334155;
  background: #111827;
}
html[data-theme="dark"] .structured-log-head strong,
html[data-theme="dark"] .task-inline-message strong { color: #e2e8f0; }
html[data-theme="dark"] .structured-log-message,
html[data-theme="dark"] .task-inline-message span { color: #cbd5e1; }
html[data-theme="dark"] .structured-log-entry.is-error,
html[data-theme="dark"] .task-inline-message.is-error { background: #450a0a; }
html[data-theme="dark"] .structured-log-entry.is-warning { background: #422006; }
html[data-theme="dark"] .structured-log-entry.is-success,
html[data-theme="dark"] .task-inline-message.is-success { background: #052e16; }

@media (max-width: 560px) {
  .structured-log-head {
    display: block;
  }

  .structured-log-head time {
    display: block;
    margin-top: 2px;
  }

  .job-log-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .job-log-row > code {
    grid-column: 1 / -1;
    padding-left: 36px;
  }
}

.mkv-job-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: .76rem;
  font-weight: 760;
  white-space: nowrap;
}

.mkv-job-status.is-running {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.mkv-job-status.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.mkv-job-status.is-failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.mkv-job-status.is-cancelled {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

html[data-theme="dark"] .subtitle-section {
  border-bottom-color: #243244;
}

html[data-theme="dark"] .subtitle-section-icon {
  background: #1e293b;
  color: #93c5fd;
}

html[data-theme="dark"] .subtitle-source-option + .subtitle-source-option {
  border-left-color: #243244;
}

html[data-theme="dark"] .subtitle-browse-selection {
  border-color: #334155;
  background: #101b2b;
  box-shadow: none;
}

html[data-theme="dark"] .subtitle-browse-root {
  border-right-color: #334155;
  background: #172235;
  color: #9fb1c8;
}

html[data-theme="dark"] .subtitle-browse-selection .form-control {
  color: #e5edf7;
}

html[data-theme="dark"] .subtitle-state,
html[data-theme="dark"] .subtitle-toggle,
html[data-theme="dark"] .subtitle-action-section {
  border-color: #334155;
  background: #111827;
  color: var(--wp-body, #cbd5e1);
}

html[data-theme="dark"] .subtitle-merge-metrics > div {
  border-color: #334155;
  background: #111827;
}

html[data-theme="dark"] .subtitle-auto-note {
  border-left-color: #60a5fa;
  background: #172554;
  color: #dbeafe;
}

html[data-theme="dark"] .mkv-job-status {
  border-color: #334155;
  background: #111827;
  color: #cbd5e1;
}

html[data-theme="dark"] .mkv-job-status.is-running {
  border-color: #1d4ed8;
  background: #172554;
  color: #bfdbfe;
}

html[data-theme="dark"] .mkv-job-status.is-success {
  border-color: #166534;
  background: #052e16;
  color: #bbf7d0;
}

html[data-theme="dark"] .mkv-job-status.is-failed {
  border-color: #991b1b;
  background: #450a0a;
  color: #fecaca;
}

@media (max-width: 760px) {
  .subtitle-section {
    padding: 14px 12px;
  }

  .subtitle-source-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subtitle-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .subtitle-merge-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subtitle-source-option + .subtitle-source-option {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--wp-line, #e2e8f0);
    border-left: 0;
  }

  html[data-theme="dark"] .subtitle-source-option + .subtitle-source-option {
    border-top-color: #243244;
    border-left: 0;
  }

  .subtitle-source-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subtitle-source-actions .btn {
    min-width: 0;
  }

  .subtitle-browse-picker {
    grid-template-columns: 1fr;
  }

  .subtitle-browse-picker > .btn {
    width: 100%;
  }

  .subtitle-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .subtitle-primary-action {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .subtitle-section-head {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .subtitle-section-icon {
    width: 30px;
    height: 30px;
  }

  #view-subtitle-tools .input-group {
    display: grid;
    grid-template-columns: minmax(122px, auto) minmax(0, 1fr);
    align-items: stretch;
  }

  #view-subtitle-tools .input-group > .input-group-text,
  #view-subtitle-tools .input-group > .form-control {
    width: 100%;
    margin-left: 0 !important;
    min-width: 0;
  }

  #view-subtitle-tools .input-group > .input-group-text {
    border-radius: 7px 0 0 7px !important;
  }

  #view-subtitle-tools .input-group > .form-control {
    border-left: 0;
    border-radius: 0 7px 7px 0 !important;
  }
}

/* Consistent phone spacing across dashboards, task pages and media tools. */
@media (max-width: 560px) {
  .dashboard-panel {
    gap: 8px !important;
  }

  .dashboard-panel .panel-header {
    margin-bottom: 0 !important;
    padding-bottom: 8px !important;
  }

  .dashboard-panel .path-nav {
    margin-bottom: 0 !important;
  }

  .file-search-row {
    margin: 0 !important;
  }

  .dashboard-panel .file-list {
    margin: 0 !important;
  }

  #view-offline-download .compact-page-panel,
  #view-openlist-tasks .compact-page-panel,
  #view-folder-sync .compact-page-panel {
    padding-top: 12px !important;
  }

  #view-aria2-plus .panel-header,
  #view-offline-download .panel-header,
  .offline-task-column .panel-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
  }

  #view-aria2-plus > .panel {
    margin-bottom: 12px !important;
  }

  #view-aria2-plus .grid-3 {
    gap: 12px !important;
  }

  #view-aria2-plus .grid-3 > .panel {
    gap: 8px;
  }

  #view-aria2-plus .grid-3 > .panel .task-list {
    min-height: 58px;
  }

  #view-openlist-tasks .grid-2 {
    gap: 14px !important;
  }

  .copy-task-section {
    min-width: 0;
  }

  .copy-section-head {
    align-items: center !important;
    flex-direction: row !important;
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .copy-primary-head {
    flex-wrap: nowrap !important;
  }

  .copy-primary-head .title {
    flex: 0 0 auto;
  }

  .copy-done-actions {
    display: flex !important;
    width: auto !important;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  .copy-done-actions .btn {
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 4px 7px !important;
    font-size: .68rem;
  }

  .copy-done-actions .btn i {
    margin-right: 1px;
  }

  #view-openlist-tasks .task-list.fixed {
    height: auto !important;
    min-height: 150px !important;
    max-height: 52vh;
  }

  #copyDoneBox.task-list.fixed {
    min-height: 96px !important;
  }

  .mkv-subtitle-order-panel {
    padding: 8px !important;
  }

  .mkv-subtitle-order-head {
    align-items: center !important;
    flex-direction: row !important;
    margin-bottom: 8px;
  }

  .mkv-subtitle-order-head .btn {
    width: auto !important;
    flex: 0 0 auto;
  }

  .mkv-subtitle-order-row {
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    min-height: 56px;
    padding: 7px 8px !important;
  }

  .mkv-subtitle-order-actions {
    grid-column: auto !important;
    justify-self: end;
  }

  .mkv-subtitle-order-actions .btn {
    width: 34px;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }

  .subtitle-section {
    padding: 12px !important;
  }

  .subtitle-section-head {
    margin-bottom: 10px;
  }

  .subtitle-source-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .subtitle-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px;
  }

  .subtitle-field .form-select,
  .subtitle-field .form-control {
    min-width: 0;
    font-size: .84rem;
  }
}

/* Keep the desktop workspace dense while preserving the mobile drawer layout. */
@media (min-width: 921px) {
  .sidebar {
    display: flex !important;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    padding: 14px 12px !important;
    overflow: hidden;
  }

  .sidebar .brand {
    flex: 0 0 auto;
    min-height: 48px !important;
    padding: 5px 8px !important;
  }

  .sidebar .menu {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin-top: 4px !important;
    padding-right: 2px;
    gap: 2px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .sidebar .nav-section-label {
    flex: 0 0 auto;
    margin: 8px 10px 3px !important;
  }

  .sidebar .menu .btn {
    flex: 0 0 auto;
    min-height: 38px !important;
    padding: 7px 12px !important;
    border-radius: 10px !important;
  }

  .sidebar .sidebar-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    margin-top: 6px;
    padding-top: 8px !important;
  }

  .sidebar .sidebar-footer .btn {
    min-height: 38px !important;
  }

  .main {
    padding: 14px 16px 18px !important;
  }

  .workspace-head {
    align-items: center !important;
    min-height: 52px;
    margin: 0 0 10px !important;
    padding: 0 2px 8px !important;
  }

  .workspace-kicker {
    margin-bottom: 2px;
  }

  .workspace-head h1 {
    font-size: 1.55rem !important;
  }

  .workspace-note {
    font-size: .82rem !important;
    line-height: 1.35;
  }

  #view-dashboard > .grid-2 {
    gap: 12px !important;
  }

  #view-dashboard .dashboard-panel {
    height: calc(100dvh - 102px) !important;
    min-height: 520px !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .connectivity-banner:not(.d-none) ~ #view-dashboard .dashboard-panel {
    height: calc(100dvh - 176px) !important;
    min-height: 450px !important;
  }

  #view-dashboard .dashboard-panel .panel-header {
    min-height: 38px;
    margin-bottom: 0 !important;
    padding-bottom: 8px !important;
  }

  #view-dashboard .dashboard-panel .path-nav {
    min-height: 36px;
    margin-bottom: 0 !important;
    padding: 6px 9px;
  }

  #view-dashboard .file-search-row {
    margin: 0 !important;
  }

  #view-dashboard .file-search-box .input-group-text,
  #view-dashboard .file-search-box .form-control,
  #view-dashboard .file-search-box .btn {
    min-height: 34px !important;
  }

  #view-dashboard .dashboard-panel .file-list {
    max-height: none !important;
  }

  #view-dashboard .selection-header {
    min-height: 46px;
    padding: 6px 10px;
  }

  #view-dashboard .file-item {
    min-height: 58px;
    padding: 7px 10px;
    border-radius: 10px !important;
  }

  #view-dashboard .virtual-file-window .file-item {
    min-height: 58px;
  }

  #view-dashboard .bottom-actions {
    gap: 6px !important;
  }

  #view-dashboard .bottom-actions .btn {
    min-height: 36px;
  }
}

.changelog-overview {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--wp-line);
  border-radius: 8px;
  background: #f8fafc;
}

.changelog-overview > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.changelog-overview span {
  color: var(--wp-muted);
  font-size: .8rem;
}

.changelog-overview strong {
  color: var(--wp-ink);
  font-size: 1.05rem;
}

.changelog-version-rule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-left: auto;
}

.changelog-overview .btn {
  flex: 0 0 auto;
}

.changelog-list {
  padding-left: 9px;
}

.changelog-entry {
  position: relative;
  margin-left: 7px;
  padding: 0 0 22px 24px;
  border-left: 1px solid var(--wp-line);
}

.changelog-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.changelog-marker {
  position: absolute;
  top: 5px;
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--wp-accent);
  box-shadow: 0 0 0 1px var(--wp-accent);
}

.changelog-entry-head,
.changelog-version-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.changelog-entry-head {
  justify-content: space-between;
}

.changelog-entry-head h4 {
  margin: 4px 0 0;
  color: var(--wp-ink);
  font-size: .98rem;
  font-weight: 750;
}

.changelog-entry-head time {
  flex: 0 0 auto;
  color: var(--wp-muted);
  font-size: .78rem;
}

.changelog-current-badge,
.changelog-type,
.changelog-scope {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
}

.changelog-current-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.changelog-summary {
  margin: 8px 0 10px;
  color: var(--wp-muted);
  font-size: .84rem;
}

.changelog-changes {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-change {
  display: grid;
  grid-template-columns: 44px 74px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--wp-body);
  font-size: .84rem;
  line-height: 1.5;
}

.changelog-type-added { background: #dcfce7; color: #15803d; }
.changelog-type-optimized { background: #dbeafe; color: #1d4ed8; }
.changelog-type-fixed { background: #fee2e2; color: #b91c1c; }
.changelog-type-changed { background: #f1f5f9; color: #475569; }
.changelog-type-security { background: #fef3c7; color: #a16207; }

.changelog-scope {
  justify-content: center;
  border: 1px solid var(--wp-line);
  background: transparent;
  color: var(--wp-muted);
  font-weight: 600;
}

html[data-theme="dark"] .changelog-overview {
  border-color: #334155;
  background: rgba(15, 23, 42, .72);
}

html[data-theme="dark"] .changelog-marker {
  border-color: #0f172a;
}

html[data-theme="dark"] .changelog-entry-head h4,
html[data-theme="dark"] .changelog-overview strong {
  color: #e2e8f0;
}

html[data-theme="dark"] .changelog-type-changed {
  background: #334155;
  color: #cbd5e1;
}

html[data-theme="dark"] .changelog-scope {
  border-color: #334155;
}

.aria2-task-card {
  min-width: 0;
}

.aria2-task-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.aria2-task-title,
.aria2-task-path {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aria2-task-title {
  color: var(--text);
  font-weight: 750;
  line-height: 1.45;
}

.aria2-task-status {
  min-width: max-content;
}

.aria2-task-status .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  line-height: 1.25;
  white-space: nowrap;
  word-break: keep-all;
}

.copy-task-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.copy-task-name {
  min-width: 0;
}

.copy-task-status {
  min-width: max-content;
}

.copy-task-status .status-pill,
.copy-task-head .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  line-height: 1.25;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}

.aria2-task-progress {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.aria2-task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.aria2-task-actions .btn {
  white-space: nowrap;
}

.subtitle-merge-log {
  margin-top: 12px;
  border: 1px solid #f5d48b;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf7;
}

.subtitle-merge-log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #f5d48b;
  background: #fff8e8;
}

.subtitle-merge-log-toolbar > div {
  min-width: 0;
}

.subtitle-merge-log-toolbar strong,
.subtitle-merge-log-toolbar span {
  display: block;
}

.subtitle-merge-log-toolbar span {
  margin-top: 2px;
  color: #92400e;
  font-size: .78rem;
}

.subtitle-merge-log-list {
  max-height: 360px;
  overflow: auto;
  padding: 10px 12px;
}

.subtitle-merge-log-group + .subtitle-merge-log-group {
  margin-top: 14px;
}

.subtitle-merge-log-group h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: #92400e;
  font-size: .86rem;
  font-weight: 800;
}

.subtitle-merge-log-group h5 span {
  font-size: .74rem;
}

.subtitle-merge-log-row {
  padding: 9px 0;
  border-top: 1px solid #f4e6c8;
}

.subtitle-merge-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subtitle-merge-log-head strong {
  flex: 0 0 auto;
  font-size: .8rem;
}

.subtitle-merge-log-head code {
  min-width: 0;
  color: #64748b;
  font-size: .72rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.subtitle-merge-log-reason {
  margin-top: 4px;
  color: #b45309;
  font-size: .75rem;
  font-weight: 700;
}

.subtitle-merge-log-text {
  margin-top: 3px;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .subtitle-merge-log {
  border-color: #854d0e;
  background: rgba(69, 26, 3, .22);
}

html[data-theme="dark"] .subtitle-merge-log-toolbar {
  border-color: #854d0e;
  background: rgba(120, 53, 15, .28);
}

html[data-theme="dark"] .subtitle-merge-log-toolbar span,
html[data-theme="dark"] .subtitle-merge-log-group h5,
html[data-theme="dark"] .subtitle-merge-log-reason {
  color: #fbbf24;
}

html[data-theme="dark"] .subtitle-merge-log-row {
  border-color: rgba(180, 83, 9, .4);
}

html[data-theme="dark"] .subtitle-merge-log-head code {
  color: #cbd5e1;
}

.ass-sup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 18px;
  align-items: start;
}

.ass-sup-panel {
  min-width: 0;
  min-height: 0;
}

.ass-sup-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--wp-line, #e2e8f0);
}

.ass-sup-section:first-of-type {
  padding-top: 4px;
}

.ass-sup-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ass-sup-section-head h3 {
  margin: 0;
  color: var(--wp-ink, #0f172a);
  font-size: .96rem;
  font-weight: 800;
}

.ass-sup-section-head p {
  margin: 4px 0 0;
  color: var(--wp-muted, #64748b);
  font-size: .78rem;
  line-height: 1.5;
}

.ass-sup-section-head code,
.ass-sup-font-inspection code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #eaf2ff;
  color: #1d4ed8;
}

.ass-sup-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.ass-sup-source-action .btn {
  min-width: 112px;
}

.ass-sup-font-inspection {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
}

.ass-sup-font-inspection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ass-sup-font-inspection-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #15803d;
}

.ass-sup-font-inspection-head > span {
  color: var(--wp-muted, #64748b);
  font-size: .74rem;
}

.ass-sup-font-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ass-sup-font-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: #15803d;
}

.ass-sup-font-chip span,
.ass-sup-font-chip strong,
.ass-sup-font-chip small {
  display: block;
  min-width: 0;
}

.ass-sup-font-chip strong {
  color: var(--wp-ink, #0f172a);
  font-size: .77rem;
}

.ass-sup-font-chip small {
  color: var(--wp-muted, #64748b);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  overflow-wrap: anywhere;
}

.ass-sup-font-inspection p {
  margin: 9px 0 0;
  color: var(--wp-muted, #64748b);
  font-size: .73rem;
  line-height: 1.45;
}

.ass-sup-runtime-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ass-sup-runtime-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.ass-sup-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}

.ass-sup-action-row .meta {
  min-width: 0;
  line-height: 1.45;
}

.ass-sup-action-row .btn {
  min-width: 132px;
}

.ass-sup-action-buttons {
  justify-content: flex-end;
}

.ass-sup-action-buttons .btn {
  width: auto;
}

.ass-sup-job-panel {
  position: sticky;
  top: 18px;
}

.ass-sup-job-list {
  display: grid;
  gap: 12px;
}

.ass-sup-job {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--wp-line, #e2e8f0);
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
}

.ass-sup-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ass-sup-job-head > div {
  min-width: 0;
}

.ass-sup-job-head strong,
.ass-sup-job-head span {
  display: block;
}

.ass-sup-job-head strong {
  color: var(--wp-ink, #0f172a);
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.ass-sup-job-head > div > span {
  margin-top: 3px;
  color: var(--wp-muted, #64748b);
  font-size: .72rem;
}

.ass-sup-progress {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ass-sup-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width .25s ease;
}

.ass-sup-job-message {
  margin-top: 8px;
  color: var(--wp-body, #334155);
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.ass-sup-job-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.ass-sup-job-metrics span {
  min-width: 0;
  padding: 8px 6px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--wp-muted, #64748b);
  font-size: .66rem;
  text-align: center;
}

.ass-sup-job-metrics b {
  display: block;
  margin-bottom: 2px;
  color: var(--wp-ink, #0f172a);
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.ass-sup-job-meta {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid #93c5fd;
  border-radius: 0 7px 7px 0;
  background: #eff6ff;
  color: #475569;
  font-size: .71rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ass-sup-job-actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
  flex-wrap: wrap;
}

.ass-sup-log {
  margin-top: 10px;
  border-top: 1px dashed var(--wp-line, #e2e8f0);
}

.ass-sup-log summary {
  padding-top: 9px;
  color: var(--wp-muted, #64748b);
  font-size: .73rem;
  font-weight: 700;
  cursor: pointer;
}

.ass-sup-log > div {
  display: grid;
  gap: 5px;
  max-height: 220px;
  margin-top: 8px;
  padding: 9px;
  overflow: auto;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
}

.ass-sup-log > div > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
}

.ass-sup-log time {
  color: #7dd3fc;
}

.ass-sup-log span {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .ass-sup-section-head code,
html[data-theme="dark"] .ass-sup-font-inspection code {
  background: rgba(37, 99, 235, .22);
  color: #bfdbfe;
}

html[data-theme="dark"] .ass-sup-font-inspection {
  border-color: rgba(34, 197, 94, .35);
  background: linear-gradient(135deg, rgba(20, 83, 45, .28), rgba(15, 23, 42, .55));
}

html[data-theme="dark"] .ass-sup-font-chip,
html[data-theme="dark"] .ass-sup-job {
  border-color: #334155;
  background: rgba(15, 23, 42, .72);
}

html[data-theme="dark"] .ass-sup-runtime-note span,
html[data-theme="dark"] .ass-sup-job-meta {
  border-color: rgba(96, 165, 250, .3);
  background: rgba(30, 64, 175, .2);
  color: #bfdbfe;
}

html[data-theme="dark"] .ass-sup-progress,
html[data-theme="dark"] .ass-sup-job-metrics span {
  background: #1e293b;
}

@media (max-width: 1180px) {
  .ass-sup-layout {
    grid-template-columns: 1fr;
  }

  .ass-sup-job-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .ass-sup-font-grid,
  .ass-sup-job-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ass-sup-font-inspection-head,
  .ass-sup-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ass-sup-action-row .btn {
    width: 100%;
  }

  .subtitle-batch-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .subtitle-batch-actions,
  .ass-sup-action-buttons,
  .subtitle-template-action-buttons,
  .subtitle-timeline-action-buttons {
    width: 100%;
  }

  .subtitle-batch-actions .btn,
  .ass-sup-action-buttons .btn,
  .subtitle-template-action-buttons .btn,
  .subtitle-timeline-action-buttons .btn {
    flex: 1 1 0;
    width: auto;
  }
}

@media (max-width: 560px) {
  .aria2-task-head {
    gap: 8px;
  }

  .aria2-task-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aria2-task-actions .btn {
    width: 100%;
  }

  .subtitle-merge-log-toolbar {
    align-items: flex-start;
  }

  .subtitle-merge-log-toolbar .btn {
    flex: 0 0 auto;
  }

  .subtitle-merge-log-head {
    display: block;
  }

  .subtitle-merge-log-head code {
    display: block;
    margin-top: 3px;
    text-align: left;
  }

  .ass-sup-source-grid {
    grid-template-columns: 1fr;
  }

  .ass-sup-source-action .btn,
  .ass-sup-job-actions .btn {
    width: 100%;
  }

  .ass-sup-runtime-note span {
    width: 100%;
    border-radius: 8px;
  }

  .ass-sup-log > div > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .subtitle-report-overview,
  .subtitle-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subtitle-report-row-head {
    align-items: flex-start;
  }

  .changelog-overview {
    align-items: flex-start;
    gap: 9px;
  }

  .changelog-version-rule {
    display: none;
  }

  .changelog-entry {
    padding-left: 19px;
  }

  .changelog-entry-head {
    align-items: flex-start;
  }

  .changelog-change {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .changelog-change > span:last-child {
    grid-column: 1 / -1;
    padding-left: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.subtitle-editor-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 32px);
}

.subtitle-editor-browser-panel,
.subtitle-editor-panel {
  min-height: 0;
}

.subtitle-editor-browser-panel {
  padding-bottom: 10px;
}

.subtitle-editor-path {
  margin-bottom: 10px;
}

.subtitle-editor-file-list {
  display: grid;
  min-height: 0;
  overflow: auto;
  border-top: 1px solid var(--wp-line, #e2e8f0);
}

.subtitle-editor-file-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 9px 3px;
  border: 0;
  border-bottom: 1px solid var(--wp-line, #e2e8f0);
  background: transparent;
  color: inherit;
  text-align: left;
}

.subtitle-editor-file-row:not(:disabled) {
  cursor: pointer;
}

.subtitle-editor-file-row:not(:disabled):hover,
.subtitle-editor-file-row.is-current {
  background: rgba(37, 99, 235, .08);
}

.subtitle-editor-file-row:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.subtitle-editor-file-row .bi-folder-fill { color: #d97706; }
.subtitle-editor-file-row .bi-badge-cc { color: #2563eb; }
.subtitle-editor-file-row .bi-file-earmark-lock { color: #94a3b8; }

.subtitle-editor-file-copy {
  min-width: 0;
}

.subtitle-editor-file-copy strong,
.subtitle-editor-file-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subtitle-editor-file-copy strong { font-size: .82rem; }
.subtitle-editor-file-copy small { color: var(--wp-muted, #64748b); font-size: .7rem; margin-top: 2px; }

.subtitle-editor-file-row > small {
  color: var(--wp-muted, #64748b);
  font-size: .67rem;
  white-space: nowrap;
}

.subtitle-editor-header {
  align-items: flex-start;
}

.subtitle-editor-title-wrap {
  min-width: 0;
}

.subtitle-editor-file-meta {
  margin-top: 3px;
  color: var(--wp-muted, #64748b);
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.subtitle-editor-actions,
.subtitle-editor-findbar,
.subtitle-editor-statusbar {
  display: flex;
  align-items: center;
  gap: 7px;
}

.subtitle-editor-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.subtitle-editor-empty {
  display: grid;
  place-content: center;
  gap: 10px;
  flex: 1;
  min-height: 340px;
  color: var(--wp-muted, #64748b);
  text-align: center;
}

.subtitle-editor-empty .bi {
  font-size: 2rem;
  color: #93c5fd;
}

.subtitle-editor-workspace {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 9px;
}

.subtitle-editor-findbar {
  justify-content: space-between;
}

.subtitle-editor-findbar .input-group {
  max-width: 440px;
}

.subtitle-editor-find-status {
  color: var(--wp-muted, #64748b);
  font-size: .72rem;
  white-space: nowrap;
}

.subtitle-editor-find-preview {
  max-height: 86px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid rgba(96, 165, 250, .35);
  border-radius: 6px;
  background: rgba(15, 23, 42, .96);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.subtitle-editor-find-preview mark {
  padding: 0;
  background: #facc15;
  color: #111827;
}

.subtitle-editor-text {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 460px;
  flex: 1;
  resize: none;
  tab-size: 2;
  padding: 13px 14px;
  border: 1px solid var(--wp-line, #cbd5e1);
  border-radius: 6px;
  outline: none;
  background: #101827;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .8rem;
  line-height: 1.55;
  overflow: auto;
}

.subtitle-editor-text:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.subtitle-editor-text::selection {
  background: rgba(250, 204, 21, .45);
  color: #f8fafc;
}

.subtitle-editor-statusbar {
  justify-content: space-between;
  color: var(--wp-muted, #64748b);
  font-size: .71rem;
}

.subtitle-editor-statusbar span:last-child { white-space: nowrap; }

html[data-theme="dark"] .subtitle-editor-file-row:not(:disabled):hover,
html[data-theme="dark"] .subtitle-editor-file-row.is-current {
  background: rgba(96, 165, 250, .15);
}

@media (max-width: 980px) {
  .subtitle-editor-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .subtitle-editor-browser-panel {
    min-height: 290px;
  }

  .subtitle-editor-file-list { max-height: 330px; }
}

@media (max-width: 620px) {
  .subtitle-editor-header,
  .subtitle-editor-actions,
  .subtitle-editor-findbar {
    align-items: stretch;
    flex-direction: column;
  }

  .subtitle-editor-actions .btn { width: 100%; }
  .subtitle-editor-findbar .input-group { max-width: none; }
  .subtitle-editor-find-status { min-height: 16px; }
  .subtitle-editor-text { min-height: 420px; font-size: .75rem; }
}

@media (max-width: 920px) {
  .sidebar {
    display: flex !important;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .sidebar .brand,
  .sidebar .sidebar-footer {
    flex: 0 0 auto;
  }

  .sidebar .menu {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .sidebar .sidebar-footer {
    position: static !important;
    inset: auto !important;
    margin-top: 8px;
    padding-top: 8px;
  }
}

/* Structural page shells stay unframed; lists, tasks and dialogs retain boundaries. */
.view > .panel,
.view > .grid-3 > .panel,
.offline-task-grid > .offline-task-column,
.ass-sup-layout > .ass-sup-panel,
.subtitle-editor-layout > .subtitle-editor-browser-panel,
.subtitle-editor-layout > .subtitle-editor-panel,
.media-tool-panel .tool-module-stage > .tool-pane,
html[data-theme="dark"] .view > .panel,
html[data-theme="dark"] .view > .grid-3 > .panel,
html[data-theme="dark"] .offline-task-grid > .offline-task-column,
html[data-theme="dark"] .ass-sup-layout > .ass-sup-panel,
html[data-theme="dark"] .subtitle-editor-layout > .subtitle-editor-browser-panel,
html[data-theme="dark"] .subtitle-editor-layout > .subtitle-editor-panel,
html[data-theme="dark"] .media-tool-panel .tool-module-stage > .tool-pane {
  padding-right: 0 !important;
  padding-left: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.media-tool-panel .tool-module-stage > .tool-pane > .tool-pane-head {
  padding-right: 0 !important;
  padding-left: 0 !important;
  background: transparent !important;
}

#view-dashboard .dashboard-panel > .panel-header,
html[data-theme="dark"] #view-dashboard .dashboard-panel > .panel-header {
  background: transparent !important;
}

.media-tool-panel .tool-module-stage > .tool-pane > .tool-pane-body {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

#view-dashboard .dashboard-panel > .path-nav {
  padding-right: 2px !important;
  padding-left: 2px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--wp-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#view-dashboard .dashboard-panel .file-item {
  border-right: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 920px) {
  .topbar,
  html[data-theme="dark"] .topbar {
    padding-right: 0 !important;
    padding-left: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 560px) {
  #view-dashboard .dashboard-panel {
    padding: 0 !important;
  }

  #view-dashboard .bottom-actions > *,
  #view-dashboard .bottom-actions .btn {
    min-width: 0 !important;
  }
}
