/* The Library flow in the console (10 November 2026): upload, dubbing and captions in few steps.
   Only the Library screens. Colours and type come from the console tokens, so this file follows the look. */

/* ── the Upload screen: what is made of every video, chosen before it starts. One block, "For every video", the same
   before any video is chosen and once there are videos (17 November 2026): a quiet heading, then one line for each thing,
   its name on the left and its one control beside it, a hairline between the lines. ── */
.lf-plan { display: flex; flex-direction: column; }
.lf-sets { gap: 0; margin: 16px 0 0; }
/* before any video is chosen the block is a card of its own under the drop card */
.lf-sets--page { margin: 0; padding: 22px 26px 8px; border: 1px solid var(--cl-line); border-radius: 16px; background: var(--cl-surface); }
.lf-sets--page .lf-set { min-height: 54px; }
.lf-sets-h { margin: 0 0 8px; font-size: 16px; line-height: 1.3; color: var(--cl-ink); }
.lf-set { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 0 16px; min-height: 48px; padding: 5px 0; border-top: 1px solid var(--cl-line); }
.lf-set-lab { margin: 0; font-size: 15px; color: var(--cl-ink-3); }
.lf-set-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-width: 0; }
.lf-set-ctl .ud-off { font-size: 15px; }
.lf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lf-chips:empty { display: none; }
/* a language that is chosen: its name, and the mark that takes it off (the whole chip is the button) */
.lf-tok { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; background: var(--cl-lilac-soft); color: var(--cl-ink); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; transition: background-color .15s var(--cl-out); }
.lf-tok i { font-size: 13px; color: var(--cl-ink-3); transition: color .15s var(--cl-out); }
.lf-tok:hover { background: color-mix(in srgb, var(--cl-lilac-soft) 82%, var(--cl-ink)); }
.lf-tok:hover i { color: var(--cl-ink); }
.lf-none { font-size: 15px; color: var(--cl-ink-3); }
/* every other choice of a line: quiet words with a plus */
.lf-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--cl-ink-2); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; transition: background-color .15s var(--cl-out), color .15s var(--cl-out); }
.lf-link i { font-size: 14px; color: var(--cl-ink-3); }
.lf-link:hover, .lf-link[aria-expanded="true"] { background: var(--cl-hover); color: var(--cl-ink); }
/* the chips of the dubbing sheet (Videos, Dub): one press each, the chosen ones marked */
.lf-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-card); color: var(--color-foreground); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; transition: background-color .15s var(--ease-out, ease), border-color .15s var(--ease-out, ease), color .15s var(--ease-out, ease); }
.lf-chip:hover { border-color: var(--oryn-border-hover); background: var(--oryn-surface-hover); }
.lf-chip.on { background: var(--brand-soft); border-color: var(--color-brand); color: var(--color-brand-ink); }
.lf-chip--more { border-color: transparent; background: transparent; color: var(--oryn-text-2); }
.lf-chip--more i { font-size: 14px; }
.lf-chip:focus-visible, .lf-tok:focus-visible, .lf-link:focus-visible, .lf-opt:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.lf-sw { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; font-size: 15px; color: var(--cl-ink); cursor: pointer; }
.lf-sum { margin: 0; }
.lf-sum:empty { display: none; }
/* the foot of the card with videos: what will be made in one sentence, and beside it the one button that starts it.
   It stays at the foot of the window while the list is longer than the window, so the button is never out of sight. */
.lf-go { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 14px 0 22px; border-top: 1px solid var(--cl-line); background: var(--cl-surface); }
/* the foot carries the card's own room under it, so nothing shows between it and the foot of the window */
.lf-card:has(> .lf-go) { padding-bottom: 0; }
.lf-go > .lf-sum { flex: 1 1 420px; max-width: 76ch; text-wrap: pretty; }
.lf-go > .lib-form-acts { flex: none; margin: 0; }
.lf-off { margin: 0; }
.lf-made { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.lf-made i { font-size: 18px; color: var(--color-brand); }
/* every other language: a small sheet under its button, or over it when the window ends first */
.lf-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 320px; max-width: 92vw; padding: 10px; text-align: left; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.lf-pop--up { top: auto; bottom: calc(100% + 6px); }
.lf-find { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.lf-find:focus-within { outline: 2px solid var(--color-ring); outline-offset: 1px; }
.lf-find i { color: var(--color-muted-foreground); }
.lf-find-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; }
/* the frame of the field shows the focus, so the words inside it carry no second ring */
.lf-pop .lf-find-in:focus, .lf-pop .lf-find-in:focus-visible { outline: none !important; box-shadow: none; }
.lf-opts { max-height: 240px; overflow-y: auto; margin: 8px 0; display: flex; flex-direction: column; gap: 2px; }
.lf-opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-foreground); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lf-opt:hover { background: var(--oryn-surface-hover); }
.lf-opt-box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border: 1px solid var(--oryn-border-hover); border-radius: 5px; }
.lf-opt.on .lf-opt-box { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.lf-opt-none { margin: 8px; }
.lf-opts-h { flex: none; margin: 8px 8px 2px; font-size: 14px; line-height: 1.3; color: var(--cl-ink-3); }
.lf-opts-h:first-child { margin-top: 2px; }
.lf-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--color-border); }
.lf-pop-foot .adm-hint { margin: 0; }

/* the drop card (17 November 2026): the steps at its head, where they stay once there are videos; under them one thing,
   the place to drop, with its one main button. The other ways in are two quiet words under the button. */
.lf-drop { align-items: stretch; gap: 0; margin-bottom: 16px; padding: 24px 26px 44px; text-align: left; }
.lf-drop-in { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 30px; text-align: center; }
.lf-drop .lib-drop-ic { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; font-size: 24px; }
.lf-drop .adm-sub { max-width: 72ch; }
.lf-drop .lib-form-acts { margin-top: 18px; }
.lf-drop .adm-hint { margin-top: 10px; font-size: 15px; }
.lf-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-top: 8px; }
/* a quiet way: a word with its icon, and a soft ground when the hand comes to it */
.lf-way { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--cl-ink-2); font: inherit; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--cl-out), color .15s var(--cl-out); }
.lf-way i { font-size: 17px; color: var(--cl-ink-3); transition: color .15s var(--cl-out); }
.lf-way:hover { background: var(--cl-hover); color: var(--cl-ink); }
.lf-way:hover i { color: var(--cl-ink); }
.lf-way:focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }

.ud-row :focus-visible, .ud-grp-h :focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
/* ── the list of chosen videos (17 November 2026): groups, each said once above its rows; rows are lines on the card
   with a hairline between them and room to breathe; what is left out is one light line a row ── */
.ud-box { display: flex; flex-direction: column; margin: 6px 0 0; }
.ud-grp + .ud-grp { margin-top: 20px; }
.ud-grp-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; min-height: 40px; }
/* the head of the videos that go: their name as a group and, at the end of that line, what is the same for every video;
   under it the AI switch with its sentence */
.ud-grp-h--new { gap: 2px 24px; min-height: 0; padding-bottom: 10px; }
.ud-grp-h--new > .fl-ai { flex: 1 0 100%; order: 3; padding: 4px 0; }
.ud-grp-t { margin: 0; font-size: 16px; line-height: 1.3; color: var(--cl-ink); }
.ud-grp-c { margin-left: 8px; font-size: 15px; color: var(--cl-ink-3); }
.ud-fold { min-height: 40px; margin: 0 -12px 0 0; padding: 0 12px; border-radius: 999px; font-size: 15px; }
.ud-fold i { font-size: 13px; }
.ud-list { display: flex; flex-direction: column; margin: 0; }
.ud-row { display: grid; grid-template-columns: 32px minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 4px 14px; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--cl-line); }
.ud-n { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--cl-ink-3); }
.ud-main { min-width: 0; }
.ud-t, .ud-s, .ud-gets { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-t { font-size: 15px; line-height: 1.4; color: var(--cl-ink); }
.ud-s { font-size: 15px; line-height: 1.4; color: var(--cl-ink-3); }
.ud-gets { font-size: 15px; color: var(--cl-ink-2); }
.ud-why { display: flex; align-items: center; gap: 6px; color: var(--color-alert-ink); white-space: normal; }
.ud-why i { flex: none; font-size: 16px; }
/* a row that is left out: its name in the reading ink, and at its end only what its group does not say */
.ud-row.is-out { grid-template-columns: 32px minmax(0, 1fr) fit-content(62%); }
.ud-row.is-out .ud-t { color: var(--cl-ink-2); }
/* its name starts where the titles of the rows that go start (their fields keep their words 11 px in) */
.ud-row.is-out .ud-main { padding-left: 11px; }
.ud-row.is-out .ud-gets { max-width: 100%; }
/* under a group's rows: the rest of them, and what is the same for every video (opened only when it is wanted) */
.ud-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 8px 0 0 46px; border-top: 1px solid var(--cl-line); }
.ud-foot:empty { display: none; }
.ud-notes { margin: 18px 0 0; min-width: 0; font-size: 15px; color: var(--cl-ink-3); }
.ud-same { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-left: auto; }
.ud-same.is-open { flex: 1 0 100%; order: 2; margin: 0; padding: 4px 0; }
.ud-same-lab { flex: none; margin: 0 6px 0 0; font-size: 15px; color: var(--cl-ink-3); }
.ud-same .ud-cell { flex: 0 1 200px; }
/* a video that goes: its title to type, the line of its file, its specialty, and the rest of its details on asking */
.ud-row--edit { grid-template-columns: 32px minmax(0, 1fr) 200px 68px; min-height: 0; padding: 6px 0 8px; }
/* in a row the specialty reads as a word with its arrow, and shows it is a button when the hand comes to it */
.ud-row--edit > .ud-cell .ud-pick { justify-content: flex-start; gap: 6px; width: auto; max-width: 100%; background: transparent; }
.ud-row--edit > .ud-cell .ud-pick:hover, .ud-row--edit > .ud-cell .ud-pick[aria-expanded="true"] { background: var(--oryn-surface-hover); border-color: transparent; }
.ud-list--links .ud-row--edit { grid-template-columns: 32px minmax(0, 1fr) 200px minmax(0, 270px) 110px; }
.ud-in, .ud-pick { box-sizing: border-box; width: 100%; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--oryn-surface-hover); color: var(--color-foreground); font: inherit; font-size: 14px; transition: background-color .15s var(--ease-out, ease), border-color .15s var(--ease-out, ease); }
.ud-in:hover, .ud-pick:hover, .ud-pick[aria-expanded="true"] { border-color: var(--oryn-border-hover); }
.ud-in:focus { background: var(--color-card); border-color: var(--oryn-border-hover); }
.ud-in::placeholder { color: var(--color-muted-foreground); opacity: 1; }
/* a title reads as a line of the list, and shows it is a field when the hand or the keyboard comes to it */
.ud-title { background: transparent; font-size: 15px; text-overflow: ellipsis; }
.ud-title:hover { background: var(--oryn-surface-hover); border-color: transparent; }
textarea.ud-in { display: block; height: auto; min-height: 56px; padding: 7px 10px; line-height: 1.4; resize: vertical; }
.ud-row--edit .ud-s { margin: 2px 0 0; padding: 0 11px; }
.ud-row--edit .ud-note { color: var(--color-alert-ink); }
.ud-cell { position: relative; display: block; min-width: 0; }
.ud-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.ud-pick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-pick.is-empty span, .ud-pick i { color: var(--color-muted-foreground); }
.ud-pick i { flex: none; font-size: 14px; }
.ud-more { display: inline-flex; align-items: center; justify-self: end; gap: 4px; height: 30px; padding: 0 8px; border: 0; border-radius: var(--radius-md); background: none; color: var(--oryn-text-2); font: inherit; font-size: 14px; cursor: pointer; }
.ud-more:hover { background: var(--oryn-surface-hover); color: var(--color-foreground); }
.ud-more i { font-size: 13px; }
.ud-extra { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 12px; padding: 8px 0 6px; }
.ud-lab { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ud-lab > span:first-child { padding: 0 2px; font-size: 14px; color: var(--color-muted-foreground); }
.ud-lab--wide { grid-column: 1 / -1; }
/* the whole name of the file, written out with the rest of the details */
.ud-path { grid-column: 1 / -1; margin: 0; padding: 0 2px; font-size: 15px; line-height: 1.45; color: var(--cl-ink-3); overflow-wrap: anywhere; }
.ud-path > span { margin-right: 10px; color: var(--cl-ink-2); }
.ud-pop { width: 280px; }
.ud-pop--end { left: auto; right: 0; }
.ud-pop .lf-opts { margin-bottom: 0; }
.ud-opt { flex: none; justify-content: space-between; width: 100%; }
.ud-opt.on { font-weight: 600; }
.ud-opt.on svg { flex: none; color: var(--color-brand); }
.ud-opt--none { color: var(--color-muted-foreground); }
/* the head of the card: how many videos, and the one way back */
.ud-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; }
.ud-head .adm-h2 { margin: 0; }
/* a quiet way at the end of a head: its words end where the card's own words end */
.ud-head > .lf-way { margin-right: -14px; }
.ud-quiet { margin-left: 8px; font-family: var(--cl-sans, inherit); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--color-muted-foreground); }

/* the Upload card ends the page: the room kept under every page for the bar of chosen videos is not needed here */
.adm-page:has(.lf-card) { padding-bottom: 28px; }
@media (max-width: 900px) {
  .ud-row--edit, .ud-list--links .ud-row--edit { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .ud-row--edit > .ud-cell, .ud-row--edit > .ud-gets { grid-column: 2; }
  .ud-row--edit > .ud-more { grid-column: 3; }
  .ud-row.is-out { grid-template-columns: 24px minmax(0, 1fr) fit-content(62%); }
  .ud-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ud-foot { padding-left: 38px; }
  .ud-same.is-open { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .lf-set { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .ud-row.is-out { grid-template-columns: 24px minmax(0, 1fr); }
  .ud-row.is-out > .ud-gets { grid-column: 2; }
  .ud-same { margin-left: -12px; }
  .lf-drop { padding-bottom: 32px; }
  .lf-drop-in { padding-top: 22px; }
  /* on a phone the foot is the end of the card, not a bar over it */
  .lf-go { position: static; }
}
.ud-off { margin: 0; }
.ud-title::placeholder { font-weight: 400; }

/* ── the dubbing sheet and the Dubbing screen ── */
.lf-mode { flex-wrap: wrap; }
.lf-mode button:disabled { color: var(--color-muted-foreground); opacity: .55; cursor: not-allowed; }
.lf-cover { padding: 16px 20px; margin: 16px 0; }
.lf-cover-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.lf-cover-row { display: grid; grid-template-columns: 190px minmax(80px, 1fr) minmax(200px, 1.2fr) 176px; align-items: center; gap: 16px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--color-border); }
.lf-cover-n { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-foreground); }
.lf-cover-s { margin: 0; font-size: 14px; color: var(--color-muted-foreground); }
.lf-cover-row > .adm-btn { justify-self: end; }
.lf-cover-more { padding-top: 10px; border-top: 1px solid var(--color-border); }
.lf-bar { display: flex; height: 6px; border-radius: 999px; background: var(--color-muted); overflow: hidden; }
.lf-bar i { display: block; height: 100%; background: var(--color-primary); }
.lf-bar i.lf-bar-way { background: var(--color-brand); opacity: .45; }
@media (max-width: 900px) {
  .lf-cover-row { grid-template-columns: 1fr auto; }
  .lf-bar { grid-column: 1 / -1; order: 3; }
}

/* ── Videos: one row of filters, quiet choosing, a bar of worded buttons ── */
.lib-bar { flex-wrap: nowrap; margin-bottom: 12px; }
.lib-bar .adm-find { flex: 1 1 220px; min-width: 0; max-width: none; }
.lib-bar .lib-sel { flex: 0 1 170px; min-width: 0; }
.lib-bar .lib-sel .fld { width: 100%; min-width: 0; }
.lib-bar2 { margin-bottom: 20px; }
.lib-viewseg > button { padding: 0 14px; }
@media (max-width: 1100px) { .lib-bar { flex-wrap: wrap; } .lib-bar .lib-sel { flex: 1 1 150px; } }
/* the square that chooses a video: the page's own checkbox look is taken off the input, so the square is drawn once */
.lib-check { width: 24px; height: 24px; border: 1px solid var(--cl-line-3); border-radius: 7px; background: var(--cl-surface); color: transparent; }
.lib-check > input[type="checkbox"]:not(.sr-only) { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; border: 0; border-radius: inherit; background: none; box-shadow: none; opacity: 0; cursor: pointer; }
.lib-check > input[type="checkbox"]:not(.sr-only)::before { content: none; }
.lib-check > i { font-size: 14px; }
.lib-check:has(input:checked) { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); }
.lib-check:has(input:focus-visible) { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }
.lib-card.is-on { border-color: var(--cl-ink); box-shadow: 0 0 0 1px var(--cl-ink); }
.lib-row.is-on { background: var(--cl-hover); }
.lib-selbar { padding: 8px 10px 8px 20px; border: 1px solid var(--cl-line-2); background: var(--cl-surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lib-selbar-acts { gap: 2px; }
.lib-selbar-acts .adm-btn { border-color: transparent; background: transparent; box-shadow: none; }
.lib-selbar-acts .adm-btn:hover { background: var(--cl-hover); }
.lib-selbar-acts .adm-btn.lf-main { background: var(--brand-soft); }
.lib-selbar-n .adm-link { margin-left: 12px; }

/* ── one video: its switch, its dubbings, its file ── */
.lf-showrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.lf-showrow-t { margin: 0; font-size: 14.5px; color: var(--color-foreground); }
.lf-vrows { display: flex; flex-direction: column; gap: 2px; }
.lf-vrow { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; align-items: center; gap: 4px 14px; min-height: 40px; }
.lf-vrow-n { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--color-foreground); }
.lf-vrow-s { margin: 0; font-size: 14px; color: var(--color-muted-foreground); }
.lf-vrow-e { grid-column: 1 / -1; margin: 0 0 6px; font-size: 14px; }
.lf-facts .adm-fact { padding: 8px 0; border-bottom: 0; }
#admDrawerBody .lib-danger { margin-top: 28px; padding-top: 0; border-top: 0; }

/* ── the dubbing sheet: chips, two choices, one sentence ── */
.lf-sheet { gap: 24px; }
.lib-lp-field[hidden] { display: none; }
.lf-sheet .lib-lp-field { min-height: 44px; margin-top: 12px; border-color: var(--cl-line-2); border-radius: 12px; background: var(--cl-surface); box-shadow: none; }
.lf-sheet .lib-lp-field > .ph-magnifying-glass { top: 13px; }
.lf-say { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cl-ink-2); transition: opacity .15s ease; }
.lf-say.is-busy { opacity: .5; }

/* ── Dubbing: by language without rules between the rows, a quiet queue ── */
.lf-cover { padding: 20px 24px 16px; margin: 20px 0 28px; }
.lf-cover > .adm-h3 { margin: 0 0 6px; }
.lf-cover-row { grid-template-columns: 150px minmax(80px, 1fr) minmax(220px, 1.3fr) 170px; min-height: 48px; padding: 4px 0; border-top: 0; }
.lf-cover-s { color: var(--cl-ink-2); }
.lf-cover-more { padding-top: 6px; border-top: 0; }
.lf-cover-row > .adm-btn { border-color: transparent; background: var(--brand-soft); }
.lf-qbar { margin-bottom: 12px; }
@media (max-width: 900px) {
  .lf-cover-row { grid-template-columns: 1fr auto; }
}

/* ── The words of each video: the transcript line of an upload row and of the drawer (10 November 2026) ── */
.ud-words { grid-column: 2 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: -2px 0 0; padding: 0 11px 4px; font-size: 14px; line-height: 1.45; color: var(--color-muted-foreground); }
.ud-words.is-left { color: var(--color-alert-ink); }
.ud-words-b { display: inline-flex; align-items: center; gap: 5px; margin: 0 -6px; padding: 2px 6px; border: 0; border-radius: var(--radius-md); background: none; color: var(--oryn-text-2); font: inherit; cursor: pointer; }
.ud-words-b:hover { background: var(--oryn-surface-hover); color: var(--color-foreground); }
.ud-words-b i { font-size: 13px; }
.lf-words .lib-sub-h { margin-bottom: 10px; }
.lf-words-s { margin: 0; font-size: 14px; line-height: 1.45; color: var(--cl-ink-2, var(--color-muted-foreground)); }

/* ── one video: its details, kept as each field is left; the mark on what was written from the video (10 November 2026) ── */
.vd { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 4px; }
.vd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; margin-bottom: -4px; }
.vd-h { margin: 0; }
.vd-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.vd-head .vd-saved { margin-left: 4px; }
/* the words of the mark, said once; each field written by itself carries the same dot beside its name */
.vd-legend { display: flex; align-items: center; gap: 8px; margin: -6px 0 0; font-size: 14px; line-height: 1.45; color: var(--cl-ink-2, var(--color-muted-foreground)); }
.vd-legend[hidden] { display: none; }
.vd-legend::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cl-lilac, var(--brand)); }
.vd-head .adm-btn { display: inline-flex; align-items: center; gap: 6px; }
.vd-head .adm-btn[hidden], .vd-more[hidden], .vd-mark[hidden], .vd-line[hidden] { display: none; }
.vd-saved { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--cl-ink-3, var(--color-muted-foreground)); opacity: 0; transition: opacity .3s ease; }
.vd-saved.is-on { opacity: 1; }
.vd-line { margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: var(--cl-ink-2, var(--color-muted-foreground)); }
.vd-line .adm-link { font-size: inherit; margin-left: 4px; }
.vd-f { min-width: 0; }
.vd-l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vd-mark { display: inline-flex; align-items: center; height: 21px; padding: 0 2px; }
.vd-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cl-lilac, var(--brand)); }
.vd-l { justify-content: flex-start; align-items: flex-start; gap: 6px; }
.vd-l > .lbl { line-height: 21px; }
.vd-more { display: flex; flex-direction: column; gap: 14px; }
.vd-more-b { align-self: flex-start; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.vd-pill { background: var(--cl-lilac-soft, var(--brand-soft)); color: var(--cl-ink, var(--color-foreground)); }
/* the same card after Start: its state and bar in the place of the head, the rows under it, what follows at its foot */
.ud-going { gap: 0; }
.ud-going .lib-prog { gap: 10px; }
.ud-going .lib-bar-track { height: 6px; }
.ud-going .lib-prog-line { color: var(--cl-ink-2, var(--color-muted-foreground)); }
.ud-going .lib-sending { padding-top: 10px; }
.lib-prog-top.ud-head { min-height: 34px; }
.lib-prog-top.ud-head .adm-h2 { margin: 0; }
.ud-while { margin-top: 22px; }
.ud-while-h { display: flex; align-items: baseline; gap: 12px; min-height: 22px; }
.ud-while-h .adm-sub { margin: 0; }
.ud-while > .vd-line { margin: 6px 0 0; }
.ud-going .ud-box { border-bottom: 0; }
.ud-going-foot:empty { display: none; }
.ud-going-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.ud-going-foot .lf-made { margin: 0; }
.ud-going-foot .lib-form-acts { margin-top: 2px; }
/* each row says how far its own file is */
.ud-s--up { display: flex; align-items: baseline; gap: 10px; }
.ud-where { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-up { flex: none; font-variant-numeric: tabular-nums; color: var(--cl-ink-2, var(--color-muted-foreground)); }
.ud-up.is-done { color: var(--color-foreground); }
.ud-up.is-bad { color: var(--color-alert-ink); }
@media (prefers-reduced-motion: reduce) { .vd-saved, .lf-chip, .lf-tok, .lf-tok i, .lf-link, .lf-way, .lf-way i, .ud-acts .ud-words-b { transition: none; } }

.lib-row-p .vd-pill { margin-top: 4px; }
/* the link of the list's foot keeps its words to the left when a narrow window wraps them */
.ud-samelink { height: auto; min-height: 36px; margin-right: -12px; text-align: left; line-height: 1.3; }
@media (max-width: 600px) { .vd-acts { flex-basis: 100%; margin-left: 0; } }

/* ── the Upload card as one flow (10 November 2026, after the owner's first real upload): a step line that always says where
   things are (1 Details, 2 Upload, 3 Dubbing, 4 Ready), then one stage at a time. Words to read are 15 px or more here. ── */
.fl-steps { display: flex; align-items: center; flex-wrap: nowrap; margin: 0 0 20px; padding: 0; list-style: none; }
.fl-step { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 1; color: var(--cl-ink-3); white-space: nowrap; }
.fl-step + .fl-step::before { content: ""; flex: none; width: 24px; height: 1px; margin: 0 10px; background: var(--cl-line-3); }
.fl-dot { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--cl-line-3); border-radius: 50%; font-size: 15px; font-variant-numeric: tabular-nums; }
.fl-dot svg { width: 13px; height: 13px; }
.fl-step.is-now { color: var(--cl-ink); font-weight: 600; }
.fl-step.is-now .fl-dot { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); font-weight: 500; }
.fl-step.is-done { color: var(--cl-ink-2); }
.fl-step.is-done .fl-dot { border-color: transparent; background: var(--cl-lilac-soft); color: var(--cl-ink); }

/* the reading size of the whole card */
.fl-card .adm-sub, .fl-card .lf-sum, .fl-card .lib-prog-line, .fl-card .adm-hint, .fl-card .ud-s, .fl-card .ud-up, .fl-card .ud-lab > span:first-child,
.fl-card .lf-set-lab, .fl-card .lf-sw, .fl-card .lf-chip, .fl-card .lf-link, .fl-card .ud-in, .fl-card .ud-pick, .fl-card .ud-more, .fl-card .ud-words, .fl-card .ud-same-lab, .fl-card .ud-quiet { font-size: 15px; }
.fl-card .ud-head { min-height: 36px; }
.fl-card .lf-sum { color: var(--cl-ink-2); }

/* 1. Details: the one button for AI, at the top of the form */
.fl-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 40px; margin: 0 0 10px; }
.fl-top .fl-steps { margin: 0; }
.fl-top-r { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; margin-right: -14px; }
.fl-file { min-width: 0; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--cl-ink-3); }
.fl-card .adm-btn--sm { font-size: 15px; }
/* the one control for AI: a switch with its name and its sentence, one quiet line at the head of the details */
.fl-ai { display: flex; align-items: flex-start; gap: 12px; min-height: 0; max-width: 100%; cursor: pointer; }
.fl-ai .sw { margin-top: -1px; }
.fl-ai-t { min-width: 0; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.fl-ai-n { margin-right: 8px; color: var(--cl-ink); }
.fl-ai-s { color: var(--cl-ink-3); }
.fl-ai.is-off { cursor: default; }
.fl-ai.is-off .fl-ai-n { color: var(--cl-ink-3); }
/* one video: the whole form, every field named above it */
.fl-card .ud-box:has(.ud-row--one) { border-bottom: 0; margin-top: 4px; }
.ud-row.ud-row--one { display: block; min-height: 0; padding: 0; border-top: 0; }
.ud-extra.ud-extra--whole { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; padding: 12px 0 2px; }
.ud-extra--whole .ud-lab--title { grid-column: span 2; }
.fl-card .ud-in, .fl-card .ud-pick { height: 38px; }
.fl-card .ud-row--edit .ud-title { height: 32px; }
.fl-card textarea.ud-in { height: auto; min-height: 60px; }
.fl-card .ud-in:disabled { color: var(--cl-ink-3); cursor: not-allowed; }
.fl-card .ud-in:disabled:hover { border-color: transparent; }
.ud-file { width: 100%; }
.ud-file-s { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; font-size: 15px; color: var(--cl-ink-2); }
.ud-file-s.is-left { color: var(--color-alert-ink); line-height: 1.35; }
.ud-file-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cl-ink); }
.ud-row--one .ud-s--up { margin: 8px 0 0; padding: 0 2px; }

/* 2. Upload: the time left, said in words above the bar */
.fl-eta { margin: 2px 0 0; font-size: 17px; color: var(--cl-ink); }
.fl-card .lib-prog-line { margin: 0; }

/* 3. Dubbing: each piece in a row, with its state and about how long */
.fl-lead { margin: 6px 0 0; max-width: 72ch; font-size: 15px; line-height: 1.5; color: var(--cl-ink-2); }
.fl-rows { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--cl-line-2); }
.fl-r { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.5fr) minmax(0, 1.1fr); align-items: center; gap: 4px 16px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--cl-line); font-size: 15px; }
.fl-r-n { color: var(--cl-ink); font-weight: 500; }
.fl-r-s { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--cl-ink-2); }
.fl-r-s.is-ok { color: var(--cl-ink); }
.fl-r-s.is-bad { color: var(--cl-bad-ink); }
.fl-r-t { text-align: right; color: var(--cl-ink-3); font-variant-numeric: tabular-nums; }
.fl-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--cl-line-3); border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.fl-mark svg { width: 10px; height: 10px; }
.is-work .fl-mark { border-color: var(--cl-lilac); background: radial-gradient(circle, var(--cl-lilac) 0 3.5px, transparent 4px); }
.is-ok .fl-mark { border-color: transparent; background: var(--cl-ink); color: var(--cl-surface); }
.is-bad .fl-mark, .fl-fail-r .fl-mark { border-color: transparent; background: var(--cl-bad); color: var(--cl-on-bad); }
.fl-vt { margin: 16px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--cl-line); font-size: 15px; font-weight: 600; color: var(--cl-ink); }
.fl-rows > .fl-vt:first-child { margin-top: 10px; }

/* 4. Ready: what was made, where it is, what went wrong and the next steps */
.fl-made { color: var(--cl-ink); }
.fl-where { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
.fl-where .adm-pill { height: 30px; padding: 0 12px; font-size: 15px; }
.fl-where-s { font-size: 15px; color: var(--cl-ink-2); }
.fl-fail { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cl-line-2); }
.fl-fail-r { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--cl-ink-2); }
.fl-fail-r .fl-mark { transform: translateY(3px); }
.fl-fail-r b { font-weight: 600; color: var(--cl-ink); }
.fl-stage .lib-prog-top { margin: 0; }

.fl-card .ud-n, .fl-card .vd-saved, .fl-card .vd-line { font-size: 15px; }
@media (min-width: 901px) {
  .fl-card .ud-row--edit { grid-template-columns: 32px minmax(0, 1fr) 200px 124px; }
  .fl-card .ud-list--links .ud-row--edit { grid-template-columns: 32px minmax(0, 1fr) 200px minmax(0, 270px) 124px; }
  .fl-card .ud-extra:not(.ud-extra--whole) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ud-extra.ud-extra--whole { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fl-steps { margin-bottom: 16px; }
  .fl-step + .fl-step::before { width: 14px; margin: 0 8px; }
  .fl-step:not(.is-now) > span:last-child { display: none; }
  .ud-extra.ud-extra--whole { grid-template-columns: minmax(0, 1fr); }
  .ud-extra--whole .ud-lab--title { grid-column: auto; }
  .fl-r { grid-template-columns: minmax(0, 1fr) auto; }
  .fl-r-n { grid-column: 1; }
  .fl-r-s { grid-column: 1 / -1; grid-row: 2; }
  .fl-r-t { grid-column: 2; grid-row: 1; text-align: right; }
}

/* ── Safe for thousands of videos (16 November 2026): a row the Library already holds says so and offers its two ways on,
   and a video that did not work offers Try again. Nothing else of the card changes. ── */
.ud-dupe { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2px 18px; overflow: visible; white-space: normal; }
.ud-own { color: var(--cl-ink-2); }
/* the ways on of such a row are quiet words (17 November 2026): they take the ink when the hand or the keyboard comes */
.ud-acts { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; margin-right: -12px; }
.ud-acts .ud-words-b { min-height: 36px; margin: 0; padding: 0 12px; border-radius: 999px; color: var(--cl-ink-3); transition: background-color .15s var(--cl-out), color .15s var(--cl-out); }
.ud-row.is-out:hover .ud-acts .ud-words-b, .ud-acts .ud-words-b:focus-visible { color: var(--cl-ink); }
@media (hover: none) { .ud-acts .ud-words-b { color: var(--cl-ink-2); } }
.fl-card .ud-gets { font-size: 15px; }
/* the full plan: one sentence where the time left was, in the same place and size */
.fl-eta[data-fl-full] { max-width: 72ch; line-height: 1.4; }
.lib-player--wait .adm-btn { margin-top: 12px; }
.lib-player--wait .adm-btn i { font-size: 16px; color: inherit; }
