:root {
  --bg: #0b0b0c;
  --surface: #141415;
  --surface-2: #1b1b1d;
  --border: #252528;
  --border-strong: #35353a;
  --text: #ededee;
  --muted: #8b8b92;
  --faint: #5c5c63;
  --invert: #0b0b0c;
  --accent: #ededee;
  --success: #4ade80;
  --danger: #f87171;
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f3f3f4;
    --border: #e6e6e8;
    --border-strong: #d4d4d8;
    --text: #111113;
    --muted: #6b6b72;
    --faint: #a1a1a8;
    --invert: #ffffff;
    --accent: #111113;
    --success: #16a34a;
    --danger: #dc2626;
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  animation: fade 0.6s var(--ease) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1.5px solid var(--text);
  color: var(--text);
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 21px; height: 21px; }

.brand-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

.link {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.link:hover { color: var(--text); background: var(--surface); }

.link.inline {
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  font-size: inherit;
}

.link.inline:hover { background: none; text-decoration-color: var(--text); }

.pill-btn {
  display: inline-flex;
  color: var(--text);
  text-decoration: none;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease);
}

.pill-btn svg { width: 15px; height: 15px; }
.pill-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.pill-btn:active { transform: scale(0.97); }
.ghost-pill { border-color: transparent; color: var(--muted); }
.ghost-pill:hover { color: var(--text); }
.ghost-pill svg { width: 16px; height: 16px; transition: transform 0.3s var(--spring); }
.ghost-pill:hover svg { transform: translateY(-1px) rotate(-6deg); }

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.hero {
  width: 100%;
  max-width: 720px;
  padding-top: min(18vh, 170px);
  padding-bottom: 60px;
}


.title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-align: center;
}

.title, .subtitle { will-change: transform; }
.title.morph, .subtitle.morph { animation-duration: 0.55s; }

.subtitle {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.reveal { animation: rise 0.8s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.composer {
  position: relative;
  z-index: 5;
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.composer:focus-within { border-color: var(--border-strong); }

.composer.shake { animation: shake 0.4s var(--ease); }

@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.composer-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 6px 12px;
}

.input-icon { width: 18px; height: 18px; color: var(--faint); flex-shrink: 0; }

#url {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 16.5px;
  padding: 8px 0;
  letter-spacing: -0.01em;
}

#url::placeholder { color: var(--faint); }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }

.clear { animation: pop 0.25s var(--spring); }

@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 2px 4px;
}

.controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.segmented {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.segmented button {
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--ease), opacity 0.3s var(--ease);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.segmented button.active { color: var(--text); }
.segmented button:disabled { opacity: 0.35; cursor: not-allowed; }

.seg-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.chip-wrap { position: relative; }

.chip {
  display: inline-flex;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 10px 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease), width 0.4s var(--ease), padding 0.4s var(--ease), opacity 0.3s var(--ease);
}

.chip span, #download-label, .progress-status { display: inline-block; }
.morph { animation: morph 0.45s var(--ease) both; }

@keyframes morph {
  from { opacity: 0; transform: translateY(5px); filter: blur(3px); }
}

.chip svg { flex-shrink: 0; width: 14px; height: 14px; color: var(--muted); transition: transform 0.25s var(--ease); }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-2); }
.chip[aria-expanded="true"] svg { transform: rotate(180deg); }
.chip:disabled { opacity: 0.45; cursor: default; }
.chip:disabled svg { display: none; }
.chip:disabled { padding-right: 13px; }

.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  z-index: 20;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease);
  scrollbar-width: thin;
}

.menu.open { opacity: 1; transform: none; pointer-events: auto; }

.menu-label {
  font-size: 11.5px;
  color: var(--faint);
  padding: 8px 10px 4px;
  letter-spacing: 0.02em;
}

.menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s;
}

.menu button small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.menu button:hover { background: var(--surface-2); }
.menu button.selected { background: var(--surface-2); }
.menu button.selected::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}
.menu button.selected small { display: none; }

.send {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--invert);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s var(--spring), background 0.2s;
}

.send svg { width: 18px; height: 18px; transition: transform 0.45s var(--ease), opacity 0.35s var(--ease); }
.send:hover:not(:disabled) svg { transform: translateY(-2px); }
.send:active:not(:disabled) { transform: scale(0.92); }
.send:disabled { opacity: 0.25; cursor: default; }

.spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0;
  animation: spin 0.8s linear infinite;
  transition: opacity 0.4s var(--ease) 0.1s;
}

.send.loading svg { opacity: 0; transform: translateY(-12px); }
.send.pressed, .primary.pressed { animation: press 0.5s var(--ease); }

@keyframes press {
  30% { transform: scale(0.9); }
  70% { transform: scale(1.03); }
}
.send.loading .spinner { opacity: 1; }
.send.loading { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.platforms {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.platform {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--faint);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--spring);
}

.platform svg { width: 18px; height: 18px; }
.platform:hover { color: var(--muted); }
.platform.on { color: var(--text); background: var(--surface); transform: translateY(-2px); }
.platform.more { font-size: 12px; font-weight: 500; width: auto; padding: 0 6px; cursor: default; }

#card-stage { margin-top: 28px; }

.stage { display: grid; transition: height 0.55s var(--ease); }
.stage > * { grid-area: 1 / 1; align-self: start; min-width: 0; }
.stage > .enter { animation-delay: 0.1s; }

.enter { animation: rise var(--enter, 0.6s) var(--ease) both; }
.result { --enter: 0.8s; }
.skeleton { --enter: 0.6s; }
#download { --enter: 0.55s; }

.leaving { animation: leave 0.35s var(--ease) both; pointer-events: none; z-index: 0; }
.stage > .enter { z-index: 1; }

@keyframes leave {
  to { opacity: 0; transform: scale(0.985); filter: blur(4px); }
}

.result-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}

.thumb img.loaded { opacity: 1; transform: none; }

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 4px 2px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.badge svg { width: 13px; height: 13px; }

.media-title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.media-sub {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.items {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.items button {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.items button.selected { color: var(--invert); background: var(--accent); border-color: var(--accent); }

.action { margin-top: auto; padding-top: 16px; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--invert);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s var(--spring), opacity 0.2s;
  width: 100%;
}

.primary svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.primary:hover svg { transform: translateY(2px); }
.primary:active { transform: scale(0.98); }
.primary.small, .ghost.small { height: 38px; font-size: 13.5px; width: auto; flex: 1; }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: background 0.2s, transform 0.2s var(--spring);
}

.ghost:hover { background: var(--surface-2); }
.ghost:active { transform: scale(0.98); }

.progress { --enter: 0.6s; }

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  margin-bottom: 10px;
  gap: 10px;
}

.progress-status { font-weight: 500; }
.progress-meta { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }

.bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  border-radius: inherit;
  background: var(--accent);
  transition: transform 0.7s cubic-bezier(.25, .8, .25, 1), opacity 0.4s var(--ease);
}

.bar.waiting { animation: breathe 1.8s ease-in-out infinite; }
.bar.processing .bar-fill { animation: breathe 1.8s ease-in-out infinite; }

@keyframes breathe { 50% { opacity: 0.45; } }

.text-btn {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.text-btn:hover { color: var(--text); }

.done { --enter: 0.7s; }

.done-row { display: flex; align-items: center; gap: 12px; }

.check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--invert);
  flex-shrink: 0;
  animation: pop 0.6s 0.15s var(--spring) both;
}

.check svg { width: 16px; height: 16px; }
.check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.55s 0.4s var(--ease) forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.done-text { display: flex; flex-direction: column; min-width: 0; }
.done-text strong { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-text small { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.done-actions { display: flex; gap: 8px; margin-top: 14px; }

.sk { background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
.sk-line { display: block; height: 12px; border-radius: 6px; margin-top: 10px; }
.sk-line:first-child { margin-top: 2px; height: 20px; border-radius: 999px; }
.sk-btn { display: block; height: 44px; border-radius: 999px; margin-top: auto; }
.w30 { width: 30%; } .w60 { width: 60%; } .w90 { width: 90%; }

@keyframes pulse { 50% { opacity: 0.45; } }

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 20px 30px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  animation: fade 0.8s 0.3s var(--ease) both;
}

.footer .muted { color: var(--faint); font-size: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--invert);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
  z-index: 100;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal {
  margin: auto;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

.modal[open] { opacity: 1; transform: none; }

@starting-style {
  .modal[open] { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

.modal[open]::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); }

@starting-style {
  .modal[open]::backdrop { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); }
}

.modal-inner { padding: 22px; }

.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }

.modal-text { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.steps { list-style: none; margin-top: 18px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; }
.steps li > span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 500;
  flex-shrink: 0;
}
.steps strong { font-size: 14.5px; font-weight: 500; }
.steps p { margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .nav .link { display: none; }
  .hero { padding-top: 9vh; }
  .result-card { grid-template-columns: 1fr; }
  .thumb { aspect-ratio: 16 / 9; }
  .composer-bar { align-items: flex-end; }
  .segmented button { padding: 6px 10px; }
  .controls { gap: 5px; flex-wrap: nowrap; }
  .chip { padding: 7px 8px 7px 11px; }
  .composer-input { padding-left: 8px; }
  .input-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.mode-wrap { display: flex; justify-content: center; margin-top: 26px; }

.segmented.mode { background: transparent; }
.segmented.mode button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 12px; }
.segmented.mode svg { width: 15px; height: 15px; }

.segmented#kind {
  max-width: 220px;
  transition: max-width 0.45s var(--ease), opacity 0.3s var(--ease), margin 0.45s var(--ease), padding 0.45s var(--ease), border-width 0.45s var(--ease);
}

.segmented#kind.collapsed {
  max-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  border-width: 0;
  margin-right: -6px;
  overflow: hidden;
  pointer-events: none;
}

.input-stage { min-height: 52px; }

.composer-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
}

.drop {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 6px;
  border-radius: 16px;
  text-align: left;
  border: 1px dashed transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.drop:hover, .drop.over { background: var(--surface-2); border-color: var(--border-strong); }

.drop-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.35s var(--spring), color 0.25s;
}

.drop-icon svg { width: 18px; height: 18px; }
.drop:hover .drop-icon { transform: translateY(-2px); color: var(--text); }
.has-file .drop-icon { color: var(--text); }

.drop-text { display: flex; flex-direction: column; min-width: 0; }
.drop-text strong { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.drop-text small { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.hint-stage { margin-top: 22px; }
.hint-stage .platforms { margin-top: 0; }

.formats-hint {
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.6;
  padding: 7px 12px;
  letter-spacing: 0.01em;
}

.formats-hint span { color: var(--muted); }

.thumb-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  animation: fade 0.5s var(--ease) both;
}

.thumb-icon svg { width: 40px; height: 40px; }

.menu-label + button { margin-top: 0; }
.menu .menu-label:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 10px; }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.drop-overlay.show { opacity: 1; }

.drop-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 64px;
  border-radius: 28px;
  border: 1.5px dashed var(--border-strong);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.drop-overlay.show .drop-overlay-inner { transform: none; }
.drop-overlay svg { width: 34px; height: 34px; margin-bottom: 6px; }
.drop-overlay strong { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.drop-overlay span { color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .ghost-pill span { display: none; }
  .ghost-pill { padding: 8px 10px; }
  .drop-text small { font-size: 12px; }
  .segmented.mode button { padding: 6px 12px 6px 10px; }
}
