/* =========================================================
   MP4 Concat — app.css
   Futuriste & Sobre — Indigo/Slate dark
   ========================================================= */

/* --- Variables ------------------------------------------ */
:root {
  --bg:           #0b0c0f;
  --surface:      #12141a;
  --surface-alt:  #171921;
  --surface-high: #1e2129;
  --border:       #252832;
  --border-light: #353847;
  --text:         #f0f2f7;
  --text-muted:   #8b91a6;
  --text-dim:     #4c5168;
  --accent:       #818cf8;
  --accent-hover: #6366f1;
  --accent-dim:   rgba(129,140,248,0.08);
  --success:      #34d399;
  --warning:      #fbbf24;
  --error:        #f87171;
  --radius:       8px;
  --radius-lg:    12px;
  --transition:   0.15s ease;
}

/* --- Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
ul { list-style: none; }

/* --- Scrollbar ------------------------------------------ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* --- Monospace tokens ----------------------------------- */
.clip-card__duration,
.clip-card__meta span,
.summary-bar__value,
.hero__stat-value,
.section__count,
.upload-progress__pct,
.clip-order,
.step__number,
.section-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* --- Display font --------------------------------------- */
.hero__title,
.lp-section__title,
.app-header__title {
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* =========================================================
   Header
   ========================================================= */

.app-header {
  background: rgba(11,12,15,0.92);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.app-header__logo {
  width: 30px;
  height: 30px;
  background: var(--accent-dim);
  border: 1px solid rgba(129,140,248,0.28);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.app-header__brand:hover .app-header__logo {
  background: rgba(129,140,248,0.14);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(129,140,248,0.2);
  transform: scale(1.05);
}

.app-header__logo svg {
  width: 13px;
  height: 13px;
  fill: var(--accent);
}

.app-header__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

.app-header__sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 2px;
}

.app-header__nav {
  display: flex;
  gap: 2px;
  margin-left: 28px;
  flex: 1;
}

.app-header__nav a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 11px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: -0.1px;
  outline: none;
}

.app-header__nav a:hover { color: var(--text); background: var(--surface-high); }

.app-header__nav a:focus-visible {
  color: var(--text);
  box-shadow: 0 0 0 2px var(--accent);
}

.app-header__logout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim) !important;
}

.app-header__logout:hover {
  color: var(--error) !important;
  background: rgba(248,113,113,0.08) !important;
}

.app-header__cta {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(129,140,248,0.25);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  letter-spacing: -0.1px;
  outline: none;
}

.app-header__cta:hover {
  background: rgba(129,140,248,0.14);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(129,140,248,0.15);
}

.app-header__cta:active { transform: scale(0.97); }

.app-header__cta:focus-visible { box-shadow: 0 0 0 3px rgba(129,140,248,0.3); }

/* =========================================================
   Layout helpers
   ========================================================= */

.app-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.section-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-wrap--narrow { max-width: 720px; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 84px 20px 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(129,140,248,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Radial vignette to fade grid at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 20% 50%, transparent 40%, var(--bg) 90%);
  pointer-events: none;
  z-index: 1;
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__content { position: relative; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 26px;
  letter-spacing: 0.1px;
}

.hero__badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(52,211,153,0.6);
  flex-shrink: 0;
}

.hero__title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.8px;
  margin-bottom: 22px;
  max-width: 640px;
}

.hero__title-accent { color: var(--accent); }

.hero__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: -0.2px;
  outline: none;
}

.btn-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 22px rgba(99,102,241,0.4);
  transform: translateY(-1px);
}

.btn-cta:active { transform: scale(0.98) translateY(0); box-shadow: none; }
.btn-cta:focus-visible { box-shadow: 0 0 0 3px rgba(129,140,248,0.4); }

.btn-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.hero__link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-light);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.hero__link:hover {
  color: var(--text);
  text-decoration-color: var(--text-muted);
}

.hero__stats {
  display: flex;
  align-items: center;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 36px 0 0;
}

.hero__stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1;
}

.hero__stat-value small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.hero__stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.hero__stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 36px 0 0;
  flex-shrink: 0;
  align-self: center;
}

/* =========================================================
   Tool Section
   ========================================================= */

.tool-section {
  padding: 60px 0 68px;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   Drop Zone
   ========================================================= */

.dropzone {
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
  outline: none;
  background: var(--surface);
}

/* Corner brackets */
.dropzone::before,
.dropzone::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0.4;
}

.dropzone::before {
  top: 12px; left: 12px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 3px 0 0 0;
}

.dropzone::after {
  bottom: 12px; right: 12px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-radius: 0 0 3px 0;
}

.dropzone:hover::before,
.dropzone:hover::after,
.dropzone.drag-over::before,
.dropzone.drag-over::after { opacity: 1; }

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(129,140,248,0.04);
  box-shadow: 0 0 0 1px rgba(129,140,248,0.18), 0 0 32px rgba(129,140,248,0.06), inset 0 0 48px rgba(129,140,248,0.03);
}

.dropzone:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(129,140,248,0.3);
}

.dropzone:hover .dropzone__icon,
.dropzone.drag-over .dropzone__icon {
  color: var(--accent);
  transform: translateY(-4px);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.25s ease;
}

.dropzone__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.dropzone__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.dropzone__hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.dropzone__hint strong {
  color: var(--accent);
  font-weight: 600;
}

/* Compact mode */
.dropzone--compact {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.dropzone--compact::before,
.dropzone--compact::after { display: none; }

.dropzone--compact .dropzone__icon { margin: 0; width: 24px; height: 24px; flex-shrink: 0; }
.dropzone--compact .dropzone__title { font-size: 13px; margin-bottom: 1px; }
.dropzone--compact .dropzone__hint  { font-size: 11px; }

/* =========================================================
   Section
   ========================================================= */

.section { margin-top: 24px; }

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

.section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-dim);
}

.section__count {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-high);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
  line-height: 1.6;
}

/* =========================================================
   Clip List
   ========================================================= */

.clip-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@keyframes clipEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Clip Card */
.clip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 24px 96px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  transition:
    border-color var(--transition),
    border-left-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  user-select: none;
  animation: clipEnter 0.22s ease both;
}

.clip-card:hover {
  border-color: var(--border-light);
  border-left-color: var(--accent);
  background: var(--surface-alt);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.clip-card.dragging { opacity: 0.3; pointer-events: none; }
.clip-card.drag-target {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}

/* Stagger */
.clip-card:nth-child(1)  { animation-delay: 0ms; }
.clip-card:nth-child(2)  { animation-delay: 40ms; }
.clip-card:nth-child(3)  { animation-delay: 80ms; }
.clip-card:nth-child(4)  { animation-delay: 120ms; }
.clip-card:nth-child(5)  { animation-delay: 160ms; }
.clip-card:nth-child(6)  { animation-delay: 200ms; }
.clip-card:nth-child(7)  { animation-delay: 240ms; }
.clip-card:nth-child(8)  { animation-delay: 280ms; }
.clip-card:nth-child(9)  { animation-delay: 320ms; }
.clip-card:nth-child(10) { animation-delay: 360ms; }

/* Handle */
.clip-card__handle {
  cursor: grab;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  touch-action: none;
  transition: color var(--transition);
}

.clip-card__handle:hover { color: var(--text-muted); }
.clip-card__handle:active { cursor: grabbing; }

.clip-card__handle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

/* Thumbnail */
.clip-card__thumb {
  width: 96px;
  height: 54px;
  background: var(--surface-high);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 16 / 9;
}

.clip-card__thumb video,
.clip-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.clip-card__thumb-placeholder svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.clip-card__duration {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

/* Info */
.clip-card__info { min-width: 0; }

.clip-card__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  letter-spacing: -0.1px;
  color: var(--text);
}

.clip-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.clip-card__meta span {
  font-size: 11px;
  color: var(--text-dim);
}

.clip-card__meta span + span {
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.clip-card__meta span strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* Actions */
.clip-card__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.clip-card__sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 3px;
  flex-shrink: 0;
}

/* =========================================================
   Icon buttons
   ========================================================= */

.btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  outline: none;
  flex-shrink: 0;
}

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

.btn-icon:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
  color: var(--text);
}

.btn-icon.btn-danger:hover { background: rgba(248,113,113,0.12); color: var(--error); }
.btn-icon.btn-danger:focus-visible { box-shadow: 0 0 0 2px var(--error); }

.btn-icon:disabled { opacity: 0.2; cursor: default; pointer-events: none; }

.btn-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

/* Order badge */
.clip-order {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  min-width: 18px;
  text-align: center;
  letter-spacing: 0.2px;
  opacity: 0.7;
  padding: 0 2px;
}

/* =========================================================
   Summary Bar
   ========================================================= */

.summary-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 12px;
}

.summary-bar__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 24px;
  position: relative;
}

.summary-bar__item:first-child { padding-left: 0; }
.summary-bar__item:last-child  { padding-right: 0; }

.summary-bar__item + .summary-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--border);
}

.summary-bar__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-weight: 600;
}

.summary-bar__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.summary-bar__value--accent { color: var(--accent); }

/* =========================================================
   Action Area
   ========================================================= */

.action-area {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: -0.2px;
  outline: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.btn-primary:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }

.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(129,140,248,0.4); }

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

.btn-primary svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  outline: none;
}

.btn-secondary:hover {
  background: var(--surface-high);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-secondary:active { transform: scale(0.97); }

.btn-secondary:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
  color: var(--text);
}

.btn-secondary svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid rgba(248,113,113,0.4);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  outline: none;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(248,113,113,0.1);
  border-color: var(--error);
  color: var(--error);
}

.btn-danger:active:not(:disabled) { transform: scale(0.97); }

.btn-danger:focus-visible {
  box-shadow: 0 0 0 2px rgba(248,113,113,0.4);
}

.btn-danger:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-danger svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  outline: none;
}

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

.btn-ghost svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* =========================================================
   Status Panel
   ========================================================= */

.status-panel {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.status-panel__header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.6;
}

.status-badge--queued {
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.25);
}

.status-badge--queued .status-badge__dot {
  animation: pulseDot 1.8s ease-in-out infinite;
}

.status-badge--uploaded {
  background: rgba(139,145,166,0.1);
  color: var(--text-muted);
  border: 1px solid rgba(139,145,166,0.2);
}

.status-badge--processing {
  background: rgba(129,140,248,0.1);
  color: var(--accent);
  border: 1px solid rgba(129,140,248,0.25);
}

.status-badge--ready {
  background: rgba(52,211,153,0.1);
  color: var(--success);
  border: 1px solid rgba(52,211,153,0.25);
}

.status-badge--error {
  background: rgba(248,113,113,0.1);
  color: var(--error);
  border: 1px solid rgba(248,113,113,0.25);
}

.status-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-badge--processing .status-badge__dot {
  animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

.status-panel__body { padding: 16px; }

.progress-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: visible;
  margin-bottom: 12px;
}

.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 0 8px rgba(129,140,248,0.4);
}

.status-message {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}

/* ─── Progress bar indéterminée (statut queued) ─── */

.progress-bar--indeterminate {
  overflow: hidden;
}

.progress-bar--indeterminate .progress-bar__fill {
  width: 100% !important;
  background: #f59e0b;
  box-shadow: none;
  transition: none;
  animation: queuedPulse 2s ease-in-out infinite;
}

@keyframes queuedPulse {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.6; }
}

/* =========================================================
   Queue Card
   ========================================================= */

.queue-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius);
  margin-top: 12px;
}

.queue-card__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245,158,11,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f59e0b;
}

.queue-card__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.queue-card__content {
  flex: 1;
  min-width: 0;
}

.queue-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
}

.queue-card__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

.queue-card__stats {
  display: flex;
  gap: 20px;
}

.queue-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.queue-card__stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1.2;
}

.queue-card__stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

/* Result area */
.result-area {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.result-area__video {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius);
  background: #000;
  display: block;
  margin-bottom: 14px;
}

.result-area__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filename-input {
  background: var(--surface-high);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius);
  flex: 1;
  min-width: 180px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.filename-input:hover { border-color: var(--border-light); }

.filename-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(129,140,248,0.15);
}

.filename-input::placeholder { color: var(--text-dim); }

/* =========================================================
   Upload Progress
   ========================================================= */

.upload-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-progress__bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-progress__name {
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.upload-progress__track {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.upload-progress__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s;
  width: 0%;
}

.upload-progress__pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

/* =========================================================
   Empty State
   ========================================================= */

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}

.empty-state svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  margin-bottom: 10px;
}

.empty-state p { font-size: 13px; line-height: 1.6; }

/* =========================================================
   Alert
   ========================================================= */

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  line-height: 1.5;
}

.alert svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert--error   { background: rgba(248,113,113,0.08); color: var(--error);   border: 1px solid rgba(248,113,113,0.2); }
.alert--success { background: rgba(52,211,153,0.08);  color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.alert--info    { background: rgba(139,145,166,0.06); color: var(--text-muted); border: 1px solid var(--border); }

/* =========================================================
   Utilities
   ========================================================= */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =========================================================
   Landing — sections
   ========================================================= */

.lp-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.lp-section--alt { background: var(--surface); }

.lp-section__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.24;
  margin-bottom: 10px;
}

.lp-section__sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.75;
}

/* =========================================================
   Steps
   ========================================================= */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step { flex: 1; }

.step__number {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.step__icon {
  width: 46px;
  height: 46px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--transition);
}

.step:hover .step__icon {
  background: var(--accent-dim);
  border-color: rgba(129,140,248,0.3);
  box-shadow: 0 0 14px rgba(129,140,248,0.1);
}

.step:hover .step__icon svg { stroke: var(--accent); }

.step__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

.step__arrow {
  flex-shrink: 0;
  padding: 0 20px;
  margin-top: 52px;
  color: var(--text-dim);
}

.step__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* =========================================================
   Features grid
   ========================================================= */

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

.feat-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: background var(--transition), border-left-color var(--transition), box-shadow var(--transition);
}

.feat-card:hover {
  background: var(--surface-high);
  border-left-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.feat-card__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.feat-card:hover .feat-card__icon { transform: scale(1.08); }

.feat-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.feat-card__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: -0.1px;
}

.feat-card__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  letter-spacing: -0.1px;
  outline: none;
}

.faq-item__question:hover { background: var(--surface-alt); }

.faq-item__question:focus-visible,
.faq-item__question[aria-expanded="true"] {
  background: var(--surface-alt);
  box-shadow: inset 3px 0 0 var(--accent);
}

.faq-item__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item__answer {
  background: var(--surface-alt);
  overflow: hidden;
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__answer:not([hidden]) { grid-template-rows: 1fr; }

.faq-item__answer > p {
  overflow: hidden;
  min-height: 0;
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item__answer > p strong { color: var(--text); font-weight: 600; }

/* =========================================================
   Footer
   ========================================================= */

.page-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.page-footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.page-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-muted);
  letter-spacing: -0.1px;
}

.page-footer__nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.page-footer__nav a {
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.page-footer__nav a:hover {
  color: var(--text-muted);
  background: var(--surface-high);
}

.page-footer__copy {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  letter-spacing: 0.1px;
}

/* =========================================================
   Responsive — Tool
   ========================================================= */

@media (max-width: 640px) {
  .clip-card {
    grid-template-columns: 0 72px 1fr auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .clip-card__handle { display: none; }
  .clip-card__thumb { width: 72px; height: 41px; }
  .clip-card__meta span + span { padding-left: 6px; }

  .summary-bar { padding: 10px 14px; }
  .summary-bar__item { padding: 0 16px; }
  .summary-bar__value { font-size: 16px; }

  .action-area { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; width: 100%; }

  .result-area__actions { flex-direction: column; }
  .filename-input { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  .clip-card__meta span + span { display: none; }
  .clip-card__meta span:first-child + span { display: inline; }
}

/* =========================================================
   Responsive — Global
   ========================================================= */

@media (max-width: 768px) {
  .app-header__nav { display: none; }

  .hero { padding: 56px 16px 48px; }
  .hero__title { font-size: 30px; letter-spacing: -0.8px; }
  .hero__desc  { font-size: 14px; }
  .hero__stats { flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 28px; }
  .hero__stat-sep { display: none; }
  .hero__stat { padding: 0; min-width: 80px; }

  .steps { flex-direction: column; gap: 32px; }
  .step__arrow { display: none; }

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

  .lp-section { padding: 52px 0; }
  .lp-section__title { font-size: 22px; }
  .lp-section__sub   { font-size: 13px; margin-bottom: 32px; }
  .section-wrap { padding: 0 16px; }

  .page-footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-footer__copy  { margin-left: 0; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 26px; letter-spacing: -0.5px; }
  .hero__stat-value { font-size: 22px; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-footer__nav { flex-wrap: wrap; }
  .btn-cta { width: 100%; justify-content: center; }
}

@media (max-width: 375px) {
  .hero { padding: 42px 14px 38px; }
  .hero__title { font-size: 22px; }
  .app-header { padding: 0 14px; }
  .tool-section { padding: 40px 0 48px; }
}

/* =========================================================
   Dashboard
   ========================================================= */

.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.dashboard__header {
  margin-bottom: 36px;
}

.dashboard__title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.dashboard__subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.dashboard__log-hint {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard__log-hint code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

/* ── Channel grid ─────────────────────────────────────────── */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Channel card ─────────────────────────────────────────── */

.channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}

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

.channel-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.channel-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.channel-card__channel-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Token status ─────────────────────────────────────────── */

.channel-card__token-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.channel-card__token-status--ok {
  border-color: rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.06);
}

.channel-card__token-status--error {
  border-color: rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.06);
}

.channel-card__token-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.channel-card__token-status--ok    .channel-card__token-dot { background: var(--success); }
.channel-card__token-status--error .channel-card__token-dot { background: var(--error); }

.channel-card__token-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-card__token-label {
  font-size: 13px;
  font-weight: 500;
}

.channel-card__token-status--ok    .channel-card__token-label { color: var(--success); }
.channel-card__token-status--error .channel-card__token-label { color: var(--error); }

.channel-card__token-since {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Stats ────────────────────────────────────────────────── */

.channel-card__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-card__stat {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
}

.channel-card__stat-label {
  font-size: 12px;
  color: var(--text-muted);
  grid-column: 1;
  grid-row: 1;
}

.channel-card__stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  grid-column: 2;
  grid-row: 1 / 3;
  text-align: right;
}

.channel-card__stat-value--pending   { color: var(--warning); }
.channel-card__stat-value--ready     { color: var(--accent); }
.channel-card__stat-value--published { color: var(--success); }

.channel-card__bar-wrap {
  grid-column: 1;
  grid-row: 2;
  height: 4px;
  background: var(--surface-high);
  border-radius: 2px;
  overflow: hidden;
}

.channel-card__bar {
  height: 100%;
  border-radius: 2px;
  min-width: 2px;
  transition: width 0.4s ease;
}

.channel-card__bar--pending   { background: var(--warning); }
.channel-card__bar--ready     { background: var(--accent); }
.channel-card__bar--published { background: var(--success); }

/* ── Feedback ─────────────────────────────────────────────── */

.channel-card__feedback {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.channel-card__feedback--info {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.channel-card__feedback--success {
  background: rgba(52,211,153,0.08);
  border-color: var(--success);
  color: var(--success);
}

.channel-card__feedback--error {
  background: rgba(248,113,113,0.08);
  border-color: var(--error);
  color: var(--error);
}

/* ── Card actions ─────────────────────────────────────────── */

.channel-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13px;
  gap: 6px;
}

.btn--sm svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 480px) {
  .channel-grid { grid-template-columns: 1fr; }
  .channel-card__actions { flex-direction: column; }
  .channel-card__actions .btn--sm,
  .channel-card__actions .btn-ghost { width: 100%; justify-content: center; }
}

/* ── Queue panel ──────────────────────────────────────────── */

.queue-panel {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px 20px;
}

.queue-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.queue-panel__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.queue-panel__badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--surface-high);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.queue-panel__badge--active {
  background: rgba(52,211,153,0.1);
  color: var(--success);
  border-color: rgba(52,211,153,0.3);
}

/* Current running job */

.queue-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.queue-current--idle { opacity: 0.55; }

.queue-current--running { border-color: rgba(52,211,153,0.25); }

.queue-current__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.queue-current--running .queue-current__dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(52,211,153,0.55);
  animation: queueDotPulse 1.6s ease-in-out infinite;
}

@keyframes queueDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.queue-current__info {
  flex: 1;
  min-width: 0;
}

.queue-current__label {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.queue-current__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 7px;
}

.queue-current__elapsed {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Type badges */

.queue-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.queue-type--concat  { background: var(--accent-dim); color: var(--accent); }
.queue-type--creator { background: rgba(251,191,36,0.1); color: var(--warning); }
.queue-type--postor  { background: rgba(52,211,153,0.1); color: var(--success); }
.queue-type--unknown { background: var(--surface-high); color: var(--text-muted); }

/* Pending list */

.queue-pending-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.queue-pending-empty {
  font-size: 12px;
  color: var(--text-dim);
  padding: 10px 2px 4px;
}

.queue-pending-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-high);
}

.queue-pending-row__pos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.queue-pending-row__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-pending-row__age {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
