/* Editor upload (2026-11-18), the box under "Finished edit (Drive)" in a card. CineClic look: charcoal ground, hairline rules, plain words instead of pills,
   a thin progress line, no colour except the red of a problem. Tokens carry fallbacks so it reads on both looks. */
.eu { margin: 14px 0 6px; padding: 14px 0 12px; border-top: 1px solid var(--line, rgba(255,255,255,.14)); display: grid; gap: 10px; }
.eu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.eu-label { color: var(--muted, #9c9c9c); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.eu-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink, #fff); font: 500 12.5px var(--body, system-ui); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair, rgba(255,255,255,.35)); }
.eu-link:hover { text-decoration-color: var(--ink, #fff); }
.eu-link:focus-visible, .eu .btn:focus-visible { outline: 2px solid var(--ink, #fff); outline-offset: 3px; }

/* the drop zone: four corner brackets, never a coloured border (the Cinema selection mark) */
.eu-drop { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line, rgba(255,255,255,.14)); }
.eu-drop::before, .eu-drop::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--hair, rgba(255,255,255,.5)); pointer-events: none; }
.eu-drop::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.eu-drop::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.eu-drop.over { background: rgba(255,255,255,.05); }
.eu-drop.over::before, .eu-drop.over::after { border-color: var(--ink, #fff); }
.eu-line { color: var(--muted, #bdbdbd); font-size: 14px; }
.eu-drop[hidden], .eu-prog[hidden] { display: none; }
/* the card's own input styling beats the hidden attribute, so the browser's plain file field would show under the button */
.eu input[type="file"] { display: none !important; }

.eu-prog { display: grid; gap: 8px; padding: 12px 0 2px; }
.eu-file { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 13.5px; color: var(--ink, #fff); }
.eu-file span { min-width: 0; overflow-wrap: anywhere; }
.eu-bar { height: 2px; background: var(--line, rgba(255,255,255,.18)); }
.eu-bar i { display: block; height: 100%; width: 0; background: var(--ink, #fff); transition: width .25s linear; }
.eu-stat { color: var(--muted, #9c9c9c); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.eu-note { margin: 0; color: var(--dim, #8a8a8a); font-size: 12.5px; line-height: 1.5; max-width: 560px; }
.eu-msg { margin: 0; min-height: 1.2em; color: var(--ink, #fff); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.eu-msg:empty { display: none; }
.eu-msg.bad { color: var(--signal, #ff3b30); }
.eu-msg a { color: var(--ink, #fff); text-underline-offset: 3px; }
.eu[data-state="done"] .eu-msg { color: var(--ink, #fff); font-weight: 600; }
.eu[data-state="off"] .eu-label { opacity: .6; }

/* while an upload runs and the card is closed */
.eu-chip { position: fixed; right: 16px; bottom: 16px; z-index: 30; max-width: calc(100vw - 32px); padding: 9px 14px; background: var(--panel, #1b1b1b); border: 1px solid var(--line, rgba(255,255,255,.25)); color: var(--ink, #fff); font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .eu-chip { bottom: 76px; } /* above the phone's bottom menu */
  .eu-drop { padding: 12px 14px; }
  .eu .btn { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .eu-bar i { transition: none; } }

/* the "Submit a finished video" form */
.eu-new { max-width: 460px; }
.eu-new label { display: grid; gap: 6px; margin: 12px 0 0; }
.eu-new .eu-msg { min-height: 1.2em; margin-top: 10px; }
.eu-new-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* the Show me how link at the top right of a tab (walkthroughs.js) */
.wk-bar { position: absolute; top: 14px; right: 22px; z-index: 5; }
.wk-how { font-size: 13px; }
