/* [project]/src/index.css [app-client] (css) */
:root {
  --bg-primary: #0b0b0f;
  --bg-secondary: #121216;
  --bg-card: #121216;
  --bg-card-hover: #16161c;
  --bg-elevated: #18181d;
  --bg-input: #0e0e12;
  --border-color: #29292f;
  --border-hover: #3f3f46;
  --border-focus: #ff7a00;
  --accent-primary: #ff7a00;
  --accent-hover: #e66e00;
  --accent-active: #cc6200;
  --accent-light: #ff7a001f;
  --accent-border: #ff7a0052;
  --primary: #ff7a00;
  --primary-hover: #e66e00;
  --primary-active: #cc6200;
  --text-main: #f5f5f5;
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #71717a;
  --success: #10b981;
  --success-bg: #10b9811a;
  --warning: #f59e0b;
  --warning-bg: #f59e0b1a;
  --danger: #ef4444;
  --danger-bg: #ef44441a;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --transition-fast: .15s ease;
  --transition-normal: .2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, Inter, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  letter-spacing: -.02em;
  font-family: inherit;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.glass-panel:hover {
  border-color: var(--border-hover);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  border-radius: var(--radius-full);
  background: #27272a;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

.badge {
  border: 1px solid #0000;
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 500;
  display: inline-flex;
}

.badge-success {
  color: #10b981;
  background: #10b9811a;
  border-color: #10b98140;
}

.badge-warning {
  color: #f59e0b;
  background: #f59e0b1a;
  border-color: #f59e0b40;
}

.badge-primary {
  color: #ff7a00;
  background: #ff7a001f;
  border-color: #ff7a0047;
}

.badge-secondary {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border-color);
}

.badge-danger {
  color: #ef4444;
  background: #ef44441f;
  border-color: #ef444447;
}

.btn {
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  border: none;
  outline: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: .925rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary) !important;
  color: #0b0b0f !important;
  font-weight: 600 !important;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover) !important;
}

.btn-primary:active:not(:disabled) {
  background: var(--primary-active) !important;
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.btn-danger {
  color: #ef4444;
  background: #ef44441f;
  border: 1px solid #ef44444d;
}

.btn-danger:hover {
  background: #ef444433;
}

.nav-tabs {
  background-color: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 24px !important;
  padding: 6px !important;
  display: inline-flex !important;
}

.nav-tab-btn {
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  background-color: #0000 !important;
  border: 1px solid #0000 !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  font-size: .875rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
}

.nav-tab-btn:hover {
  color: var(--text-primary) !important;
  background-color: #ffffff0a !important;
}

.nav-tab-btn.active {
  background-color: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px #0000004d !important;
}

.app-header {
  border-radius: var(--radius-lg) !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 20px !important;
  padding: 16px 20px !important;
  display: flex !important;
}

.brand-section {
  align-items: center !important;
  gap: 12px !important;
  display: flex !important;
}

.brand-icon-wrapper {
  border-radius: var(--radius-sm) !important;
  background-color: var(--bg-elevated) !important;
  border: 1px solid var(--border-color) !important;
  width: 38px !important;
  height: 38px !important;
  color: var(--accent-primary) !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
}

.brand-title {
  color: var(--text-primary) !important;
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.brand-subtitle {
  color: var(--text-muted) !important;
  margin: 2px 0 0 !important;
  font-size: .8rem !important;
}

.header-badges {
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  display: flex !important;
}

.site-nav {
  z-index: 50 !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border-color) !important;
  background-color: #0b0b0ff0 !important;
  align-items: center !important;
  height: 64px !important;
  display: flex !important;
  position: sticky !important;
  top: 0 !important;
}

.site-nav-container {
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  display: flex !important;
}

.app-container {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px 20px 80px !important;
}

.video-preview-wrapper {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-color) !important;
  aspect-ratio: 16 / 9 !important;
  background: #000 !important;
  width: 100% !important;
  margin-top: 14px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px #0006 !important;
}

.analyzing-overlay {
  -webkit-backdrop-filter: blur(2px) !important;
  z-index: 10 !important;
  background: #0b0b0fc7 !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
}

.scanner-beam {
  z-index: 3 !important;
  background: linear-gradient(90deg, #0000 0%, #ff7a00 50%, #0000 100%) !important;
  height: 3px !important;
  animation: 2.4s ease-in-out infinite laserScan !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  box-shadow: 0 0 15px #ff7a00, 0 0 25px #ff7a00cc !important;
}

@keyframes laserScan {
  0% {
    opacity: .8;
    top: 0%;
  }

  50% {
    opacity: 1;
    top: 96%;
  }

  100% {
    opacity: .8;
    top: 0%;
  }
}

.scanner-grid {
  opacity: .8 !important;
  z-index: 1 !important;
  background-image: linear-gradient(#ff7a000f 1px, #0000 1px), linear-gradient(90deg, #ff7a000f 1px, #0000 1px) !important;
  background-size: 24px 24px !important;
  position: absolute !important;
  inset: 0 !important;
}

.hud-corner {
  border: 2px solid var(--accent-primary) !important;
  pointer-events: none !important;
  z-index: 4 !important;
  width: 16px !important;
  height: 16px !important;
  position: absolute !important;
}

.hud-tl {
  border-bottom: none !important;
  border-right: none !important;
  top: 10px !important;
  left: 10px !important;
}

.hud-tr {
  border-bottom: none !important;
  border-left: none !important;
  top: 10px !important;
  right: 10px !important;
}

.hud-bl {
  border-top: none !important;
  border-right: none !important;
  bottom: 10px !important;
  left: 10px !important;
}

.hud-br {
  border-top: none !important;
  border-left: none !important;
  bottom: 10px !important;
  right: 10px !important;
}

.analyzing-content {
  z-index: 5 !important;
  text-align: center !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px !important;
  display: flex !important;
  position: relative !important;
}

.analyzing-pill {
  color: #fff !important;
  letter-spacing: .5px !important;
  background: #121216eb !important;
  border: 1px solid #ff7a0073 !important;
  border-radius: 20px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  box-shadow: 0 4px 15px #0009, 0 0 10px #ff7a0040 !important;
}

.pulse-dot {
  background: #ff7a00 !important;
  border-radius: 50% !important;
  width: 8px !important;
  height: 8px !important;
  animation: 1.2s ease-in-out infinite alternate pulseGlow !important;
  box-shadow: 0 0 8px #ff7a00 !important;
}

@keyframes pulseGlow {
  0% {
    opacity: .6;
    transform: scale(.85);
  }

  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.analyzing-waves {
  align-items: center !important;
  gap: 3px !important;
  height: 16px !important;
  display: flex !important;
}

.analyzing-wave-bar {
  background: #ff7a00 !important;
  border-radius: 2px !important;
  width: 3px !important;
  animation: 1.2s ease-in-out infinite waveBar !important;
}

.analyzing-wave-bar:first-child {
  animation-delay: .1s !important;
}

.analyzing-wave-bar:nth-child(2) {
  animation-delay: .35s !important;
}

.analyzing-wave-bar:nth-child(3) {
  animation-delay: .55s !important;
}

.analyzing-wave-bar:nth-child(4) {
  animation-delay: .2s !important;
}

.analyzing-wave-bar:nth-child(5) {
  animation-delay: .45s !important;
}

@keyframes waveBar {
  0%, 100% {
    opacity: .35;
    height: 4px;
  }

  50% {
    opacity: 1;
    height: 16px;
  }
}

/* [project]/src/App.css [app-client] (css) */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.generator-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  display: grid;
}

@media (max-width: 900px) {
  .generator-grid {
    grid-template-columns: 1fr;
  }
}

.panel-section {
  padding: 24px;
}

.panel-title {
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1.25rem;
  display: flex;
}

.source-type-switcher {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  display: grid;
}

.source-toggle-btn {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-weight: 600;
  display: flex;
}

.source-toggle-btn.active {
  border-color: var(--primary);
  color: #ff7a00;
  background: #ff7a001a;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: .85rem;
  font-weight: 600;
  display: block;
}

.text-input {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  width: 100%;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
  outline: none;
  padding: 14px 16px;
  font-size: .95rem;
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px #ff7a0033;
}

.dropzone {
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: #ffffff05;
  border: 2px dashed #ffffff26;
  padding: 32px 20px;
}

.dropzone:hover, .dropzone.active {
  border-color: var(--primary);
  background: #ff7a0014;
}

.dropzone-icon {
  color: var(--primary);
  margin-bottom: 12px;
}

.format-selector {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  display: grid;
}

.format-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-normal);
  padding: 16px;
}

.format-card:hover {
  border-color: var(--border-hover);
}

.format-card.selected {
  border-color: var(--primary);
  background: #ff7a001a;
}

.ratio-preview-box {
  color: var(--text-muted);
  background: #ffffff1a;
  border: 1px solid #fff3;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  font-size: .75rem;
  display: flex;
}

.ratio-vertical {
  width: 32px;
  height: 52px;
}

.ratio-square {
  width: 44px;
  height: 44px;
}

.format-title {
  margin-bottom: 2px;
  font-size: .95rem;
  font-weight: 700;
}

.format-desc {
  color: var(--text-muted);
  font-size: .75rem;
}

.slider-container {
  align-items: center;
  gap: 16px;
  display: flex;
}

.slider-input {
  accent-color: var(--primary);
  cursor: pointer;
  flex: 1;
}

.slider-value {
  color: var(--primary);
  min-width: 30px;
  font-size: 1.1rem;
  font-weight: 800;
}

.toggle-switch-wrapper {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  display: flex;
}

.toggle-switch {
  width: 46px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  cursor: pointer;
  background-color: #ffffff26;
  border-radius: 34px;
  transition: all .3s;
  position: absolute;
  inset: 0;
}

.toggle-slider:before {
  content: "";
  background-color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  transition: all .3s;
  position: absolute;
  bottom: 3px;
  left: 3px;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.task-live-card {
  border-color: var(--border-glow);
  margin-top: 24px;
  padding: 24px;
}

.progress-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.progress-bar-track {
  border-radius: var(--radius-full);
  background: #ffffff14;
  width: 100%;
  height: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar-fill {
  border-radius: var(--radius-full);
  height: 100%;
  box-shadow: none;
  background: #ff7a00;
  transition: width .4s;
}

.pipeline-steps {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
  display: flex;
}

.step-node {
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  transition: all var(--transition-fast);
  background: #ffffff08;
  flex: 1;
  padding: 8px 4px;
  font-size: .72rem;
}

.step-node.active {
  border-color: var(--primary);
  color: #ff7a00;
  background: #ff7a001f;
  font-weight: 600;
}

.step-node.completed {
  color: #34d399;
  background: #10b9811a;
  border-color: #10b98166;
}

.terminal-box {
  border-radius: var(--radius-md);
  color: #a1a1aa;
  background: #06070a;
  border: 1px solid #ffffff14;
  max-height: 180px;
  padding: 14px 16px;
  font-family: JetBrains Mono, Fira Code, Courier New, monospace;
  font-size: .8rem;
  overflow-y: auto;
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 4px;
}

.clips-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  display: grid;
}

.clip-card {
  transition: all var(--transition-normal);
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  display: flex;
  overflow: hidden;
}

.clip-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-4px);
}

.clip-media-wrapper {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #000;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 340px;
  margin-bottom: 14px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.clip-media-wrapper.square {
  aspect-ratio: 1;
  max-height: 260px;
}

.clip-video-preview {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.play-overlay-btn {
  color: #fff;
  background: #ff7a00;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  transition: transform .2s;
  display: flex;
  position: absolute;
  box-shadow: 0 4px 20px #00000080;
}

.clip-media-wrapper:hover .play-overlay-btn {
  background: var(--primary);
  transform: scale(1.1);
}

.clip-title {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.clip-hook {
  color: var(--text-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
  font-size: .8rem;
  display: -webkit-box;
  overflow: hidden;
}

.clip-footer {
  border-top: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
}

.modal-backdrop {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1000;
  background: #000000d9;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  padding: 24px;
  position: relative;
  overflow-y: auto;
}

.modal-close-btn {
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  background: #ffffff1a;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
}

.modal-close-btn:hover {
  background: #fff3;
}

.modal-video-grid {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  display: grid;
}

@media (max-width: 768px) {
  .modal-video-grid {
    grid-template-columns: 1fr;
  }
}

.modal-video-player {
  border-radius: var(--radius-md);
  background: #000;
  width: 100%;
  max-height: 520px;
}

.reframe-modal-overlay, .clip-editor-overlay {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 1000;
  background: #04060cd9;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: .2s ease-out fadeIn;
  display: flex;
  position: fixed;
  inset: 0;
}

.reframe-modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  flex-direction: column;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px #000000b3;
}

.reframe-header, .clip-editor-header {
  border-bottom: 1px solid var(--border-color);
  background: #0f111af2;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  display: flex;
}

.btn-icon-close {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  transition: all var(--transition-fast);
  background: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.btn-icon-close:hover {
  color: #fff;
  border-color: var(--primary);
  background: #ffffff1a;
}

.reframe-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.reframe-loading-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  display: flex;
}

.reframe-error-box {
  border-radius: var(--radius-md);
  color: #fca5a5;
  background: #ef44441f;
  border: 1px solid #ef44444d;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  display: flex;
}

.reframe-instructions-card {
  border-radius: var(--radius-md);
  color: #a1a1aa;
  background: #ff7a0014;
  border: 1px solid #ff7a0026;
  padding: 12px 16px;
  font-size: .85rem;
}

.scene-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  background: #0f111a99;
  padding: 12px;
}

.scene-card.touched {
  border-color: var(--primary);
  background: #ff7a000d;
}

.scene-card-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.scene-play-btn {
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  width: 26px;
  height: 26px;
  transition: transform var(--transition-fast);
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.scene-play-btn:hover {
  transform: scale(1.08);
}

.btn-subtle-split {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #ffffff0d;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: .75rem;
  display: flex;
}

.btn-subtle-split.active {
  border-color: var(--primary);
  color: #ff7a00;
  background: #ff7a0026;
  font-weight: 700;
}

.btn-subtle-reset {
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  display: flex;
}

.btn-subtle-reset:hover {
  text-decoration: underline;
}

.scene-viewbox {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  -webkit-user-select: none;
  user-select: none;
  background: #000;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.scene-media {
  object-fit: contain;
  width: 100%;
  height: 100%;
  display: block;
}

.crop-dim-mask {
  pointer-events: none;
  background: #000000ad;
  position: absolute;
  top: 0;
  bottom: 0;
}

.scene-crop-handle {
  border: 2px solid var(--primary);
  box-shadow: none;
  cursor: ew-resize;
  z-index: 5;
  background: #ff7a001f;
  position: absolute;
  top: 0;
  bottom: 0;
}

.scene-crop-tag {
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  top: 4px;
  left: 4px;
}

.reframe-footer, .clip-editor-footer {
  border-top: 1px solid var(--border-color);
  background: #0f111af2;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  display: flex;
}

.clip-editor-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px #000c;
}

.clip-editor-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.clip-editor-grid {
  grid-template-columns: 360px 1fr;
  gap: 24px;
  display: grid;
}

@media (max-width: 900px) {
  .clip-editor-grid {
    grid-template-columns: 1fr;
  }
}

.clip-preview-col {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.clip-player-frame {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #000;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
}

.clip-video-element {
  object-fit: contain;
  cursor: pointer;
  width: 100%;
  max-height: 380px;
}

.clip-playback-bar {
  background: #0f111ae6;
  border-top: 1px solid #ffffff0f;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  display: flex;
}

.clip-settings-bar {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #0f111ab3;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.clip-label {
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 700;
  display: block;
}

.clip-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  width: 100%;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: .85rem;
}

.checkbox-row {
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  display: flex;
}

.clip-timeline-col {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.btn-small-tool {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #ffffff0f;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: .8rem;
  display: flex;
}

.btn-small-tool:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.timeline-visual-track {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #0f111acc;
  gap: 8px;
  min-height: 80px;
  padding: 8px;
  display: flex;
  overflow-x: auto;
}

.segment-block {
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #ff7a001a;
  border: 1px solid #ff7a0047;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 12px;
  display: flex;
  position: relative;
}

.segment-block:hover {
  border-color: var(--primary);
  background: #ff7a002e;
}

.segment-block.selected {
  box-shadow: none;
  background: #ff7a003d;
  border: 2px solid #ff7a00;
}

.segment-info {
  pointer-events: none;
  flex-direction: column;
  display: flex;
}

.segment-controls {
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  display: flex;
}

.seg-mini-btn {
  color: #fff;
  cursor: pointer;
  background: #00000080;
  border: 1px solid #ffffff1a;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  display: flex;
}

.seg-mini-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.seg-mini-btn.danger:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.segment-drag-handle {
  cursor: ew-resize;
  background: #ffffff26;
  border-radius: 2px;
  width: 8px;
  position: absolute;
  top: 0;
  bottom: 0;
}

.segment-drag-handle.left {
  left: 0;
}

.segment-drag-handle.right {
  right: 0;
}

.segment-drag-handle:hover {
  background: #fff;
}

.trim-fine-controls {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #0f111ab3;
  padding: 12px 14px;
}

.fine-trim-btn-group {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.btn-nudge {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  background: #ffffff14;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: .75rem;
}

.btn-nudge:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.nudge-val {
  background: var(--bg-input);
  border-radius: 4px;
  padding: 4px 6px;
  font-family: monospace;
  font-size: .8rem;
  font-weight: 700;
  display: inline-block;
}

.transcript-box-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #0f111ab3;
  flex-direction: column;
  max-height: 180px;
  padding: 12px 14px;
  display: flex;
}

.transcript-word-cloud {
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  display: flex;
  overflow-y: auto;
}

.word-token {
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #ffffff0d;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: .8rem;
}

.word-token:hover {
  color: #fff;
  background: #ffffff26;
}

.word-token.in-segment {
  color: #a1a1aa;
  background: #ff7a002e;
  border: 1px solid #ff7a0047;
  font-weight: 600;
}

.btn-icon-action {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  background: #ffffff0f;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
}

.btn-icon-action:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.btn-icon-action:not(:disabled):hover {
  background: #ffffff26;
}

.sub-modal-backdrop {
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  background: #040508d1;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.sub-modal-container {
  background: #0d0f18;
  border: 1px solid #ffffff1a;
  border-radius: 20px;
  flex-direction: column;
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  animation: .25s cubic-bezier(.16, 1, .3, 1) modalScaleIn;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px #000000b3, 0 0 40px #00e5ff1f;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(.96)translateY(12px);
  }

  to {
    opacity: 1;
    transform: scale(1)translateY(0);
  }
}

.sub-modal-header {
  background: #12152299;
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  display: flex;
}

.sub-header-title-box {
  align-items: center;
  gap: 14px;
  display: flex;
}

.sub-icon-badge {
  background: #00e5ff1f;
  border: 1px solid #00e5ff4d;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  display: flex;
  box-shadow: 0 0 15px #00e5ff33;
}

.sub-modal-title {
  color: #fff;
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.sub-modal-subtitle {
  color: var(--text-muted);
  margin-top: 2px;
  font-size: .8rem;
}

.sub-header-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.sub-export-btn {
  color: #e2e8f0;
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .2s;
  display: flex;
}

.sub-export-btn:hover {
  color: #00e5ff;
  background: #00e5ff26;
  border-color: #00e5ff66;
}

.sub-close-btn {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  cursor: pointer;
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  transition: all .2s;
  display: flex;
}

.sub-close-btn:hover {
  color: #ef4444;
  background: #ef444433;
  border-color: #ef444466;
}

.sub-loading-state, .sub-error-state {
  text-align: center;
  color: var(--text-muted);
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 24px;
  display: flex;
}

.sub-modal-body {
  flex: 1;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  padding: 20px 24px;
  display: grid;
  overflow-y: auto;
}

@media (max-width: 860px) {
  .sub-modal-body {
    grid-template-columns: 1fr;
  }
}

.sub-left-column {
  flex-direction: column;
  gap: 16px;
  display: flex;
}

.sub-video-wrapper {
  aspect-ratio: 9 / 16;
  cursor: pointer;
  background: #000;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 380px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px #00000080;
}

.sub-video-element {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.sub-video-caption-overlay {
  text-align: center;
  pointer-events: none;
  z-index: 5;
  padding: 4px 8px;
  position: absolute;
  bottom: 22%;
  left: 12px;
  right: 12px;
}

.sub-video-overlay-play {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  background: #000000a6;
  border: 1px solid #fff3;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  transition: opacity .2s, transform .2s;
  display: flex;
  position: absolute;
}

.sub-video-wrapper:hover .sub-video-overlay-play {
  opacity: 1;
  transform: scale(1.05);
}

.sub-video-timestamp {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #e2e8f0;
  background: #000000b3;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: .75rem;
  display: flex;
  position: absolute;
  top: 10px;
  left: 10px;
}

.sub-styles-card {
  background: #12152280;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
}

.sub-styles-card-title {
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: .03em;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
}

.sub-control-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.sub-control-label {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 500;
}

.sub-control-label span {
  color: #00e5ff;
  font-weight: 600;
}

.sub-select-input {
  color: #fff;
  cursor: pointer;
  background: #151826;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  outline: none;
  min-width: 140px;
  padding: 6px 10px;
  font-size: .82rem;
}

.sub-range-input {
  width: 120px;
  accent-color: var(--primary);
  cursor: pointer;
}

.sub-control-group {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.sub-color-presets {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.sub-color-pill {
  cursor: pointer;
  border: 2px solid #0000;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  transition: transform .15s, border-color .15s;
  display: flex;
}

.sub-color-pill:hover {
  transform: scale(1.15);
}

.sub-color-pill.active {
  border-color: #fff;
  box-shadow: 0 0 10px #ffffff80;
}

.sub-color-native-picker {
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  padding: 0;
}

.sub-right-column {
  flex-direction: column;
  min-height: 380px;
  display: flex;
}

.sub-lines-toolbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.sub-lines-count {
  color: #cbd5e1;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
}

.sub-add-btn {
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: .8rem;
  display: flex;
}

.sub-lines-scroll {
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  padding-right: 6px;
  display: flex;
  overflow-y: auto;
}

.sub-line-card {
  cursor: pointer;
  background: #12152280;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
}

.sub-line-card:hover {
  background: #1a1e30b3;
  border-color: #ffffff26;
}

.sub-line-card.active-line {
  background: #00e5ff14;
  border-color: #00e5ff80;
  box-shadow: 0 0 15px #00e5ff26;
}

.sub-line-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  display: flex;
}

.sub-line-idx {
  color: var(--primary);
  background: #ff7a001a;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .75rem;
  font-weight: 700;
}

.sub-line-times {
  align-items: center;
  gap: 6px;
  display: flex;
}

.sub-time-input {
  color: #cbd5e1;
  text-align: center;
  background: #111420;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  width: 60px;
  padding: 3px 6px;
  font-family: monospace;
  font-size: .78rem;
}

.sub-time-sep {
  color: var(--text-dim);
  font-size: .8rem;
}

.sub-time-unit {
  color: var(--text-dim);
  font-size: .75rem;
}

.sub-line-actions {
  align-items: center;
  gap: 4px;
  display: flex;
}

.sub-icon-btn {
  color: var(--text-dim);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  transition: all .15s;
  display: flex;
}

.sub-icon-btn.delete-btn:hover {
  color: #ef4444;
  background: #ef444426;
}

.sub-line-body {
  width: 100%;
}

.sub-line-textarea {
  color: #f8fafc;
  resize: vertical;
  background: #090a10;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  outline: none;
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: .85rem;
  transition: border-color .2s;
}

.sub-line-textarea:focus {
  border-color: #00e5ff;
}

.sub-modal-footer {
  background: #12152299;
  border-top: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  display: flex;
}

.sub-footer-status {
  font-size: .85rem;
}

.sub-footer-btns {
  align-items: center;
  gap: 12px;
  display: flex;
}

.sub-burn-btn {
  background: #ff7a00;
  border: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  display: flex;
  box-shadow: 0 4px 20px #06b6d466;
}

.sub-burn-btn:hover {
  opacity: .95;
  transform: translateY(-1px);
}

.os-results {
  margin-top: 28px;
}

.os-results-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.os-results-head h2 {
  text-transform: lowercase;
  margin: 0;
  font-family: Instrument Serif, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.os-count {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .72rem;
}

.os-head-actions {
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  padding: 14px;
  display: grid;
}

.os-player video {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
  width: 100%;
  max-height: 640px;
}

.os-body {
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.os-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.os-why {
  color: var(--text-muted);
  margin: 0;
  font-size: .82rem;
}

.os-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.os-chips span {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-primary);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .68rem;
}

.os-copyline, .os-dashed, .os-actions button {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-main);
  border-radius: 10px;
}

.os-copyline {
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.os-copyline span {
  letter-spacing: .08em;
  color: var(--text-dim);
  flex: none;
  font-size: .65rem;
}

.os-copyline p {
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  color: var(--text-muted);
  flex: 1;
  margin: 0;
  font-size: .82rem;
  overflow: hidden;
}

.os-copyline button, .os-x {
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: 0;
}

.os-dashed {
  width: 100%;
  color: var(--text-muted);
  cursor: pointer;
  border-style: dashed;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px;
  display: flex;
}

.os-actions {
  border-top: 1px solid var(--border-color);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  display: grid;
}

.os-actions button {
  text-transform: lowercase;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  font-size: .72rem;
  display: flex;
}

.os-actions button:hover {
  border-color: var(--border-hover);
  color: var(--primary);
}

.os-post {
  font-weight: 700;
  background: var(--primary) !important;
  color: #1a1208 !important;
  border-color: #0000 !important;
}

.os-note, .os-error {
  color: var(--warning);
  align-items: flex-start;
  gap: 6px;
  font-size: .8rem;
  display: flex;
}

.os-rail {
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  display: flex;
}

.os-rail-item {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  border-radius: 12px;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  display: flex;
}

.os-rail-item.on {
  border-color: var(--primary);
}

.os-rail-item span, .os-rail-item em {
  color: var(--text-muted);
  font-size: .75rem;
  font-style: normal;
}

.os-rail-item strong {
  font-weight: 600;
}

.os-modal-back {
  z-index: 80;
  background: #0000009e;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.os-sheet, .os-hook {
  border: 1px solid var(--border-color);
  width: min(520px, 100%);
  color: var(--text-main);
  background: #1b1c25;
  border-radius: 16px;
  padding: 20px;
  position: relative;
}

.os-hook {
  grid-template-columns: 280px 1fr;
  gap: 18px;
  width: min(920px, 100%);
  display: grid;
}

.os-hook-preview {
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.os-hook-video {
  object-fit: cover;
  opacity: .85;
  width: 100%;
  height: 100%;
}

.os-hook-layer {
  pointer-events: none;
  justify-content: center;
  padding-top: 18%;
  display: flex;
  position: absolute;
  inset: 0;
}

.os-hook-sample {
  text-align: center;
  border-radius: 12px;
  max-width: 88%;
  padding: 10px 14px;
  font-weight: 700;
  line-height: 1.25;
}

.os-hook-sample.is-pill, .os-style span.is-pill {
  border-radius: 999px;
}

.os-kicker {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 6px;
  font-size: .68rem;
}

.os-hook textarea, .os-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 100%;
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px;
}

.os-style-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  display: grid;
}

.os-style, .os-font-row button {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: .72rem;
}

.os-style.on, .os-font-row button.on {
  border-color: var(--primary);
  color: var(--text-main);
}

.os-style span {
  border-radius: 6px;
  width: 70%;
  margin: 0 auto 4px;
  padding: 2px 0;
  font-weight: 800;
  display: block;
}

.os-font-row {
  gap: 8px;
  display: flex;
}

.os-font-row button {
  flex: 1;
  padding: 10px;
}

.os-apply {
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  display: flex;
}

.os-x {
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  background: #ffffff14;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 12px;
  right: 12px;
}

.os-x:hover {
  color: var(--primary);
  border-color: var(--border-hover);
  background: #ffffff29;
}

.os-sheet h4 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
}

.os-sheet label {
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 10px 0 4px;
  font-size: .68rem;
  display: block;
}

.os-week {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.os-week li {
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
  padding: 8px 0;
  display: flex;
}

.os-overlay {
  z-index: 40;
  background: #0a0a0eeb;
  padding: 28px 20px 60px;
  position: fixed;
  inset: 0;
  overflow: auto;
}

.spin {
  animation: .8s linear infinite os-spin;
}

@keyframes os-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .os-card, .os-hook, .sub-modal-body, .clip-editor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal-backdrop, .sub-modal-backdrop, .reframe-modal-overlay, .clip-editor-overlay, .os-modal-back {
    padding: 8px !important;
  }

  .modal-content, .sub-modal-container, .clip-editor-container, .reframe-modal-container, .os-sheet, .os-hook {
    border-radius: 12px !important;
    width: 100% !important;
    max-height: 95vh !important;
    padding: 14px !important;
  }

  .modal-close-btn {
    width: 32px !important;
    height: 32px !important;
    top: 10px !important;
    right: 10px !important;
  }

  .sub-modal-header {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .sub-header-actions {
    justify-content: flex-end !important;
    width: 100% !important;
  }

  .sub-modal-title {
    font-size: 1.05rem !important;
  }

  .clip-editor-header, .reframe-header {
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .os-results-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .os-head-actions {
    justify-content: space-between !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .os-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .os-actions button {
    padding: 8px 4px !important;
    font-size: .7rem !important;
  }
}

/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-outline-style: solid;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --animate-spin: spin 1s linear infinite;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-success: #10b981;
    --color-danger: #ef4444;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline-flex {
    display: inline-flex;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .animate-spin {
    animation: var(--animate-spin);
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .text-danger {
    color: var(--color-danger);
  }

  .text-success {
    color: var(--color-success);
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

:root {
  --bg-primary: #0b0b0f;
  --bg-secondary: #121216;
  --bg-elevated: #18181d;
  --bg-card: #121216;
  --bg-card-hover: #16161c;
  --bg-input: #0e0e12;
  --border-color: #29292f;
  --border-hover: #3f3f46;
  --border-focus: #ff7a00;
  --accent-primary: #ff7a00;
  --accent-hover: #e66e00;
  --accent-active: #cc6200;
  --accent-light: #ff7a001f;
  --accent-border: #ff7a0052;
  --primary: #ff7a00;
  --primary-hover: #e66e00;
  --text-primary: #f5f5f5;
  --text-main: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-dim: #71717a;
  --success: #10b981;
  --success-bg: #10b9811a;
  --warning: #f59e0b;
  --warning-bg: #f59e0b1a;
  --danger: #ef4444;
  --danger-bg: #ef44441a;
  --font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --transition-fast: .15s ease;
  --transition-normal: .2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

input, select, textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  outline: none;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: .925rem;
  transition: border-color .15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=src_02730sk._.css.map*/