:root {
  --bg: #f6f7fb;
  --bg-alt: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.65);
  --surface-2: rgba(255, 255, 255, 0.82);
  --border: #e5e7eb;
  --glass-border: rgba(255, 255, 255, 0.55);
  --text: #111827;
  --text-2: #0f172a;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --brand: #2563eb;
  --brand-soft: #60a5fa;
  --brand-muted: #1e3a8a;
  --success: #1f7d38;
  --warning: #ff9500;
  --danger: #dc3545;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-island: 0 8px 30px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  background: #eef0f7;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(60% 50% at 85% 5%, rgba(255, 200, 220, 0.55), transparent 60%),
    radial-gradient(55% 50% at 5% 25%, rgba(180, 215, 255, 0.55), transparent 65%),
    radial-gradient(55% 50% at 95% 95%, rgba(200, 230, 255, 0.50), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(230, 215, 255, 0.50), transparent 65%),
    linear-gradient(180deg, #f6f7fb 0%, #eef0f7 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 85% 5%, rgba(255, 200, 220, 0.55), transparent 60%),
    radial-gradient(55% 50% at 5% 25%, rgba(180, 215, 255, 0.55), transparent 65%),
    linear-gradient(180deg, #f6f7fb 0%, #eef0f7 100%);
}

.login-overlay[hidden] {
  display: none;
}

.login-panel {
  width: min(380px, 100%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 24px 90px -38px rgba(0, 0, 0, 0.85);
  padding: 22px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-brand h1 {
  font-size: 22px;
}

.login-brand span:not(.brand-mark) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-field {
  margin-bottom: 12px;
}

.login-submit {
  width: 100%;
}

.login-error {
  min-height: 18px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.login-error[hidden] {
  display: block;
  visibility: hidden;
}

.is-auth-locked {
  overflow: hidden;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 85% 5%, rgba(255, 200, 220, 0.55), transparent 60%),
    radial-gradient(55% 50% at 5% 25%, rgba(180, 215, 255, 0.55), transparent 65%),
    linear-gradient(180deg, #f6f7fb 0%, #eef0f7 100%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.app-loading[hidden] {
  display: none;
}

.app-loading-card {
  width: min(360px, calc(100vw - 48px));
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 22px;
  box-shadow: 0 24px 90px -38px rgba(0, 0, 0, 0.85);
}

.app-loading-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand) 58%, var(--brand-soft));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 36px -18px rgba(37, 99, 235, 0.35);
}

.app-loading-brand strong,
.app-loading-brand span:not(.brand-mark) {
  display: block;
}

.app-loading-brand strong {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.2;
}

.app-loading-brand span:not(.brand-mark) {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.app-loading-bar {
  position: relative;
  overflow: hidden;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--border);
}

.app-loading-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft), var(--brand));
  animation: app-loading-slide 1050ms ease-in-out infinite;
}

@keyframes app-loading-slide {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(85%); }
  100% { transform: translateX(260%); }
}

.app-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.version-pill,
.page-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 7px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.86);
  color: var(--brand-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
}

.statusbar {
  display: flex;
  flex: 1 1 420px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-color: rgba(37, 99, 235, 0.35) rgba(255, 255, 255, 0.55);
  scrollbar-width: thin;
}

.statusbar > * {
  flex: 0 0 auto;
}

.metric {
  appearance: none;
  display: inline-flex;
  min-width: 86px;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: inherit;
  padding: 8px 12px;
  transition: border-color 140ms ease, background 140ms ease, filter 140ms ease, transform 120ms ease;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  color: var(--brand-soft);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.metric:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.82);
  filter: brightness(1.06);
}

.status-pill {
  appearance: none;
  display: inline-flex;
  min-width: 76px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill-ready {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.status-pill-starting {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-pill-offline {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.view-tabs {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-card);
}

.view-tab {
  appearance: none;
  min-width: 96px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
}

.view-tab b,
.seg b,
.tool-btn b,
.btn-primary b,
.btn-secondary b {
  font: inherit;
  min-width: 0;
}

.view-tab:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.view-tab.active {
  background: rgba(219, 234, 254, 0.86);
  color: var(--brand-muted);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.app-view-hidden {
  display: none !important;
}

.view-grid,
.media-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.panel {
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 20px;
  box-shadow: var(--shadow-island);
}

.panel-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.panel-title > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-actions,
.output-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.brand-dot { background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.success-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
.warning-dot { background: var(--warning); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12); }

.composer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wide {
  grid-column: span 2;
}

.full {
  grid-column: span 4;
}

.script-field {
  grid-column: span 2;
}

.field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.choice-field {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px;
}

.choice-chip {
  position: relative;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.choice-chip input:checked + span {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--primary-light, #dbeafe);
  color: var(--brand-muted);
}

.choice-chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.task-filter {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 10px;
}

.task-filter input {
  width: 100px;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
}

.task-filter-select {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 0 10px;
}

.update-message {
  min-height: 20px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.update-details {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.update-details summary {
  cursor: pointer;
  color: var(--text-2);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 800;
}

.update-details .runtime-box {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.field > span {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(219, 234, 254, 0.74);
  color: var(--brand-muted);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.field > span::after {
  content: attr(title);
  position: absolute;
  left: 32px;
  top: -1px;
  width: max-content;
  max-width: 128px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.field input,
.field select {
  height: 54px;
  padding: 17px 12px 0 44px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  padding: 38px 12px 12px;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--subtle);
}

.color-field input {
  height: 54px;
  padding: 21px 8px 6px 44px;
}

.color-field input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-field input::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}

.file-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.file-field {
  min-height: 74px;
}

.file-picker {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 44px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.file-picker .tool-btn,
.file-picker .icon-btn {
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
}

.file-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact {
  width: 112px;
}

.advanced {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.46);
  padding: 10px;
}

.advanced summary {
  cursor: pointer;
  color: var(--brand-muted);
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.advanced summary::-webkit-details-marker {
  display: none;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.seg {
  min-width: max-content;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}

.segmented .seg {
  flex: 1 1 auto;
}

.seg:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.seg:disabled,
.seg.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.seg.active {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18), 0 4px 14px rgba(37, 99, 235, 0.08);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.switch {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0 10px;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch span {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface-2);
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 140ms ease, background 140ms ease;
}

.switch input:checked + span {
  background: rgba(219, 234, 254, 0.9);
}

.switch input:checked + span::after {
  transform: translateX(16px);
  background: var(--brand-muted);
}

.switch b {
  color: var(--muted);
  font-size: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 140ms ease, background 140ms ease, filter 140ms ease, transform 120ms ease, opacity 140ms ease;
}

.btn-primary {
  border: 0;
  background: linear-gradient(to right, var(--brand), var(--brand-soft));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
}

.composer-submit {
  width: 100%;
  margin-top: 16px;
}

.icon-btn {
  display: inline-flex;
  width: 34px;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 120ms ease;
}

.icon-btn.ghost {
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}

.icon-btn.ghost:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.icon-btn.violet-on {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(219, 234, 254, 0.88);
  color: var(--brand-muted);
}

.tool-btn {
  display: inline-flex;
  min-width: 0;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 120ms ease;
}

.tool-btn:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.tool-btn.violet-on {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(219, 234, 254, 0.88);
  color: var(--brand-muted);
}

.tool-btn.drive-sync-btn {
  border-color: rgba(66, 133, 244, 0.28);
  background: rgba(232, 240, 254, 0.88);
  color: #185abc;
}

.tool-btn.drive-sync-btn.is-syncing {
  cursor: wait;
  opacity: 0.78;
}

.tool-btn.drive-sync-btn.is-synced {
  border-color: rgba(31, 125, 56, 0.3);
  background: rgba(220, 252, 231, 0.9);
  color: var(--success);
}

.tool-btn.danger-soft {
  color: #be123c;
}

.tool-btn.danger-soft:hover {
  border-color: rgba(244, 63, 94, 0.34);
  background: rgba(244, 63, 94, 0.10);
}

.icon-btn.danger-soft {
  color: #fda4af;
}

.icon-btn.danger-soft:hover {
  border-color: rgba(244, 63, 94, 0.38);
  background: rgba(244, 63, 94, 0.14);
  color: #fecdd3;
}

.now-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.progress-ring {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 55%, transparent 56%),
    conic-gradient(var(--brand) calc(var(--p) * 1%), rgba(229, 231, 235, 0.9) 0);
}

.progress-ring span {
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 18px;
  font-weight: 900;
}

.now-meta {
  min-width: 0;
}

.now-meta strong,
.now-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-meta strong {
  color: var(--text);
  font-size: 18px;
}

.now-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.step {
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.step.active {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(219, 234, 254, 0.86);
  color: var(--brand-muted);
}

.preview-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #0f172a;
  object-fit: contain;
}

.output-actions {
  width: 100%;
  margin-top: 12px;
}

.output-actions > * {
  flex: 1 1 0;
}

.icon-command {
  min-width: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.task-list,
.tile-list,
.capability-grid {
  display: grid;
  gap: 10px;
}

.task-item,
.tile,
.capability {
  display: grid;
  min-width: 0;
  gap: 6px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  padding: 11px 12px;
}

.task-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.task-icon,
.tile-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #dbeafe;
  color: var(--brand-muted);
  font-weight: 900;
}

.task-main,
.tile-main {
  min-width: 0;
}

.task-main strong,
.tile-main strong {
  display: block;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-main span,
.tile-main span,
.capability span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dependency-pack-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.dependency-pack-title {
  margin-top: 4px;
}

.dependency-pack-list {
  display: grid;
  gap: 8px;
}

.dependency-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.dependency-pack-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dependency-pack-main strong,
.dependency-pack-main span,
.dependency-pack-main small {
  overflow-wrap: anywhere;
}

.dependency-pack-main small {
  color: var(--muted);
}

.dependency-pack-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dependency-pack-modules span {
  padding: 2px 6px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.dependency-pack-modules span.ready {
  color: var(--success);
}

.dependency-pack-modules span.missing {
  color: var(--warning);
}

.task-progress {
  width: 74px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.task-progress span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--brand-soft);
}

.media-grid {
  align-items: start;
}

.footage-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  gap: 20px;
  align-items: start;
}

.footage-head,
.footage-list-panel {
  grid-column: 1 / 2;
}

.footage-workflow-panel {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
}

.footage-editor-panel {
  grid-column: 1 / -1;
}

.editor-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 180px)) minmax(160px, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.editor-duration {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--brand-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 900;
}

.editor-job-bar span {
  background: linear-gradient(90deg, var(--brand), #8b5cf6);
}

.editor-output {
  display: grid;
  grid-template-columns: minmax(0, 360px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.editor-output video {
  width: 100%;
  max-height: 240px;
  border-radius: 10px;
  background: #0f172a;
}

.editor-timeline {
  display: grid;
  gap: 10px;
}

.editor-clip {
  display: grid;
  grid-template-columns: 48px 180px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  padding: 10px;
}

.editor-clip-order {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  align-content: center;
}

.editor-clip-order strong {
  grid-column: 1 / -1;
  color: var(--brand-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  text-align: center;
}

.editor-clip-order button {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.editor-clip > video {
  width: 100%;
  min-height: 102px;
  border-radius: 8px;
  background: #0f172a;
  object-fit: cover;
}

.editor-clip-main {
  min-width: 0;
}

.editor-clip-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.editor-clip-title strong {
  overflow: hidden;
  color: var(--text-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-clip-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
}

.editor-clip-title span.rights-clear {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.editor-clip-title span.rights-restricted {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.editor-clip-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.editor-clip-fields label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.editor-clip-fields input[type="number"],
.editor-clip-fields select {
  width: 100%;
  height: 30px;
  margin-top: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-2);
  padding: 0 7px;
}

.editor-clip-fields .editor-enabled {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 17px;
}

.editor-clip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.footage-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.footage-extract-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.footage-url-field {
  min-width: 0;
}

.footage-limit-field {
  min-width: 0;
}

.footage-target-field {
  min-width: 0;
}

.footage-rerun {
  min-height: 42px;
  padding: 0 10px;
}

.footage-submit {
  min-height: 42px;
  padding-inline: 18px;
}

.footage-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.footage-history-field {
  min-width: 0;
}

.footage-readiness {
  overflow: hidden;
  min-height: 34px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  line-height: 32px;
  padding: 0 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footage-readiness.ready {
  border-color: rgba(31, 125, 56, 0.24);
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
}

.footage-readiness.missing {
  border-color: rgba(220, 53, 69, 0.24);
  background: rgba(220, 53, 69, 0.12);
  color: var(--danger);
}

.footage-job-box {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  padding: 12px;
}

.footage-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 900;
}

.footage-job-top span {
  color: var(--brand-muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.footage-job-bar {
  overflow: hidden;
  height: 8px;
  margin: 10px 0 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.footage-job-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.rights-job-bar span {
  background: linear-gradient(90deg, #0f766e, #22c55e);
}

.motion-job-bar span {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.rights-check-btn:not(:disabled) {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(204, 251, 241, 0.72);
  color: #0f766e;
}

.footage-job-message {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footage-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.footage-job-logs {
  overflow: auto;
  max-height: 170px;
  margin: 10px 0 0;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.72);
  color: var(--text-2);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  line-height: 1.5;
  padding: 10px;
  white-space: pre-wrap;
}

.footage-stat {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  padding: 12px;
}

.footage-stat strong,
.footage-stat span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footage-stat strong {
  color: var(--text-2);
  font-size: 18px;
  font-weight: 900;
}

.footage-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.footage-provenance {
  grid-column: 1 / -1;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.72);
  padding: 12px;
}

.footage-provenance-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footage-provenance-head strong {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footage-provenance-head span {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 800;
}

.footage-provenance p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.footage-provenance .rights-disclaimer {
  color: #9a3412;
  font-weight: 700;
}

.footage-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.footage-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  border: 1px dashed rgba(100, 116, 139, 0.42);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.68);
  color: var(--muted);
  padding: 28px;
}

.footage-empty strong,
.footage-empty span {
  display: block;
}

.footage-empty strong {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 900;
}

.footage-empty span {
  max-width: 640px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.footage-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.70);
}

.footage-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.footage-card-body {
  padding: 12px;
}

.footage-card-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.footage-card-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-pill {
  flex: 0 0 auto;
  min-width: 34px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  line-height: 22px;
  text-align: center;
}

.score-pill.strong {
  border-color: rgba(31, 125, 56, 0.24);
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
}

.footage-meta,
.footage-card p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.footage-rights {
  margin: 10px 0;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.72);
  padding: 9px 10px;
}

.footage-rights > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.footage-rights strong,
.footage-rights span,
.footage-rights small,
.footage-rights a {
  font-size: 11px;
  line-height: 1.4;
}

.footage-rights strong {
  color: #b45309;
}

.footage-rights span,
.footage-rights small {
  color: var(--muted);
}

.footage-rights p {
  display: block;
  min-height: 0;
  margin: 6px 0;
  -webkit-line-clamp: unset;
}

.footage-rights a {
  display: block;
  margin-top: 5px;
  color: var(--brand);
  overflow-wrap: anywhere;
}

.footage-rights.rights-clear {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.78);
}

.footage-rights.rights-clear strong {
  color: var(--success);
}

.footage-rights.rights-restricted {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(254, 242, 242, 0.82);
}

.footage-rights.rights-restricted strong {
  color: var(--danger);
}

.footage-motion-result {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 10px;
  background: rgba(245, 243, 255, 0.76);
  padding: 9px 10px;
}

.footage-motion-result strong {
  color: #6d28d9;
  font-size: 12px;
  text-transform: uppercase;
}

.footage-motion-result span,
.footage-motion-result small,
.footage-motion-result a {
  color: var(--muted);
  font-size: 11px;
}

.footage-motion-result a {
  color: var(--brand);
}

.footage-meta {
  margin-top: 6px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  white-space: nowrap;
}

.footage-card p {
  display: -webkit-box;
  min-height: 34px;
  margin: 8px 0 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.footage-actions {
  display: flex;
  gap: 8px;
}

.footage-workflow {
  overflow: auto;
  max-height: 720px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  line-height: 1.55;
  padding: 12px;
  white-space: pre-wrap;
}

.tile {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.tile.material-selected {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(219, 234, 254, 0.7);
}

.local-material-picker {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid rgba(147, 197, 253, 0.5);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.62);
  padding: 10px;
}

.local-material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.local-material-head > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--brand-muted);
  font-size: 12px;
}

.local-material-head small {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.local-material-choices {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 2px;
}

.material-choice {
  display: inline-flex;
  max-width: 210px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.material-choice span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-choice.active {
  border-color: rgba(37, 99, 235, 0.4);
  background: #dbeafe;
  color: var(--brand);
}

.material-empty {
  color: var(--muted);
  font-size: 11px;
}

.mp3-table {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
}

.mp3-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 70px 82px 44px;
  min-width: 420px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.78);
}

.mp3-row:first-child {
  border-top: 0;
}

.mp3-head {
  background: rgba(219, 234, 254, 0.54);
  color: var(--brand-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mp3-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp3-row .mp3-name {
  color: var(--text-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.capability strong {
  color: var(--text);
  font-size: 13px;
}

.runtime-box {
  overflow: auto;
  max-height: 520px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  line-height: 1.55;
  padding: 12px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.settings-switch {
  align-self: end;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: var(--shadow-island);
  padding: 12px 14px;
  font-size: 13px;
}

.modal {
  width: min(680px, calc(100vw - 32px));
  border: 0;
  background: transparent;
  padding: 0;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-island);
  padding: 18px;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.version-status {
  margin-bottom: 12px;
}

.artifact-list {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .view-grid,
  .media-grid,
  .settings-grid,
  .footage-view {
    grid-template-columns: 1fr;
  }

  .footage-head,
  .footage-list-panel,
  .footage-workflow-panel {
    grid-column: auto;
    grid-row: auto;
  }

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

  .full {
    grid-column: span 2;
  }

  .editor-clip {
    grid-template-columns: 44px 150px minmax(0, 1fr);
  }

  .editor-clip-fields {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 22px 14px 40px;
  }

  .statusbar {
    justify-content: flex-start;
  }

  .view-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .view-tab {
    min-width: 0;
  }

  .composer-grid {
    grid-template-columns: 1fr;
  }

  .wide,
  .script-field {
    grid-column: span 1;
  }

  .full {
    grid-column: span 1;
  }

  .advanced-grid,
  .settings-form,
  .version-grid,
  .footage-summary,
  .footage-extract-form,
  .footage-history-row {
    grid-template-columns: 1fr;
  }

  .editor-settings,
  .editor-output,
  .editor-clip,
  .editor-clip-fields {
    grid-template-columns: 1fr;
  }

  .editor-duration {
    justify-content: flex-start;
  }

  .editor-clip-order {
    grid-template-columns: auto 40px 40px;
  }

  .editor-clip-order strong {
    grid-column: auto;
    align-self: center;
  }

  .file-pickers {
    grid-template-columns: 1fr;
  }

  .footage-submit,
  .footage-rerun,
  .footage-history-row .tool-btn {
    width: 100%;
  }
}

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