/* The download desk uses the site's existing palette and navigation. */
.vd-page { max-width: 1280px; padding-top: 32px; }
.vd-skip { position: fixed; top: 8px; left: 8px; z-index: 80; padding: 14px; background: var(--surface); color: var(--primary); transform: translateY(-160%); }
.vd-skip:focus { transform: none; }
.vd-top-label { color: var(--muted); font-size: 12px; }
.vd-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.vd-page-head .eyebrow { margin-bottom: 12px; font-size: 10px; }
.vd-page-head h1 { margin-bottom: 10px; font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.vd-page-head p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.vd-transfer { flex: 0 0 172px; height: 84px; color: var(--primary); }
.vd-transfer svg { width: 100%; height: 100%; }
.vd-transfer-file { fill: var(--signal); }
.vd-transfer-arrow { stroke: var(--muted); }
.vd-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; }
.vd-input-panel, .vd-result-panel { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.vd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 94px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.vd-panel-head .panel-kicker { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.vd-panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.vd-cost { flex-shrink: 0; padding: 7px 9px; border: 1px solid var(--signal); border-radius: 3px; background: var(--signal); font-size: 11px; font-weight: 700; }
.vd-form { padding: 23px 24px 24px; }
.vd-input-label { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 600; }
.vd-textarea { display: block; min-height: 178px; padding: 15px; background: var(--canvas); font-size: 13px; line-height: 1.8; }
.vd-textarea::placeholder { color: var(--muted); opacity: .85; }
.vd-textarea:read-only { color: var(--muted); cursor: wait; }
.vd-textarea[aria-invalid="true"] { border-color: #b4233c; }
.vd-input-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--muted); }
.vd-input-meta p { margin: 0; font-size: 11px; line-height: 1.6; }
#vd-input-count { flex-shrink: 0; padding-top: 2px; font: 10px/1.5 "IBM Plex Mono", monospace; }
.vd-submit-area { margin-top: 23px; }
.vd-submit { width: 100%; min-height: 48px; font-size: 13px; }
.vd-price-note { margin: 12px 0 5px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.6; }
.vd-repeat-note { margin: 0; color: var(--muted); font-size: 10px; text-align: center; line-height: 1.8; }
.vd-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; max-width: 45%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.vd-status::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.vd-result-panel { display: flex; flex-direction: column; }
.vd-result-body { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 329px; padding: 25px 28px; text-align: center; }
.vd-result-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 19px; border: 1px solid var(--line); border-radius: 3px; background: var(--canvas); color: var(--muted); }
.vd-result-icon svg { width: 43px; height: 43px; }
.vd-result-body h3 { max-width: 100%; margin: 0 0 9px; overflow-wrap: anywhere; font-size: 17px; line-height: 1.5; }
.vd-result-copy { max-width: 330px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.vd-player { display: block; width: 100%; max-height: 360px; margin-top: 18px; border-radius: 3px; }
video.vd-player { background: #121820; }
.vd-cache-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: left; }
.vd-cache-retry { min-height: 44px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--primary); font-size: 11px; }
.vd-online-download { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--primary); font-size: 11px; text-underline-offset: 3px; }
.vd-result-icon[hidden], .vd-player[hidden], .vd-cache-note[hidden], .vd-cache-retry[hidden], .vd-online-download[hidden] { display: none; }
.vd-message { width: 100%; margin: 16px 0 0; padding: 12px 14px; border-left: 2px solid #b4233c; background: #fff5f6; color: #972539; font-size: 12px; line-height: 1.7; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.vd-file-details { align-self: stretch; margin: 21px 0 0; padding: 0; text-align: left; }
.vd-file-details > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; }
.vd-file-details dt { color: var(--muted); }
.vd-file-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.vd-billing { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.vd-result-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 77px; padding: 16px 24px; border-top: 1px solid var(--line); }
.vd-result-footer p { flex: 1 1 180px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.vd-download { flex-shrink: 0; min-height: 44px; border-color: var(--primary); background: var(--primary); color: #fff; text-decoration: none; }
.vd-download:hover { border-color: var(--primary-hover); background: var(--primary-hover); color: #fff; }
.vd-download[hidden], .vd-file-details[hidden], .vd-message[hidden], .vd-billing[hidden], .vd-signin[hidden] { display: none; }
.vd-result-panel[data-state="ready"] .vd-status { border-color: #b9d9ca; color: #087a55; background: #eff9f3; }
.vd-result-panel[data-state="ready"] .vd-result-icon { border-color: var(--primary); background: var(--primary); color: var(--signal); }
.vd-result-panel[data-state="ready"] .vd-billing { color: #087a55; }
.vd-result-panel[data-state="waiting"] .vd-status { border-color: var(--primary); color: var(--primary); }
.vd-result-panel[data-state="failed"] .vd-status { border-color: #e5b9c0; color: #b4233c; }
.vd-signin { margin-top: 16px; color: var(--primary); font-size: 13px; line-height: 2; text-underline-offset: 4px; }
.vd-recent { margin-top: 29px; }
.vd-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.vd-recent-head h2 { margin: 0 0 6px; font-size: 16px; }
.vd-recent-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.vd-recent-head button { min-height: 44px; flex-shrink: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--muted); font-size: 11px; }
.vd-recent-head button:hover { border-color: var(--primary); color: var(--primary); }
.vd-recent-empty { margin: 0; padding: 22px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.vd-recent-list { display: grid; gap: 8px; }
.vd-recent-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 65px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); text-align: left; }
.vd-recent-item:hover, .vd-recent-item[aria-pressed="true"] { border-color: var(--primary); }
.vd-recent-file { color: var(--primary); font: 11px "IBM Plex Mono", monospace; }
.vd-recent-text { min-width: 0; }
.vd-recent-name { display: block; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.vd-recent-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.vd-recent-state { color: var(--muted); font-size: 10px; }
.vd-list-error { color: #b4233c; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.vd-rights-note { margin: 20px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.vd-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1120px) {
  .vd-workbench { gap: 16px; }
  .vd-panel-head, .vd-form { padding: 20px; }
  .vd-panel-head { align-items: flex-start; flex-wrap: wrap; }
  .vd-panel-head h2 { font-size: 16px; }
  .vd-result-body { padding: 24px 20px; }
  .vd-cost, .vd-status { font-size: 9px; }
}
@media (max-width: 980px) and (min-width: 801px), (max-width: 680px) {
  .vd-workbench { grid-template-columns: minmax(0, 1fr); }
  .vd-panel-head { align-items: center; }
  .vd-result-body { min-height: 265px; }
  .vd-textarea { min-height: 150px; }
}
@media (max-width: 540px) {
  .vd-page { width: calc(100% - 32px); padding-top: 25px; }
  .vd-top-label { margin-left: auto; font-size: 10px; }
  .vd-page-head { gap: 12px; margin-bottom: 22px; }
  .vd-page-head h1 { font-size: 29px; }
  .vd-page-head p:last-child { font-size: 12px; }
  .vd-transfer { flex-basis: 104px; height: 62px; }
  .vd-panel-head, .vd-form, .vd-result-footer { padding: 20px 18px; }
  .vd-input-meta { gap: 8px; }
  .vd-input-meta p { font-size: 10px; }
  .vd-result-body { padding: 24px 18px; }
  .vd-recent-item { gap: 8px; padding: 12px; }
  .vd-recent-head p { max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) { .vd-page * { scroll-behavior: auto; transition: none; } }
