/* Lenci · Nawaa tools — the video package (v3/nawaa-tools-ui/script.js + youtube.js, v3/docs/tools/video.md): the script's timeline, pace
   meters, beats, shot-list table and teleprompter; the YouTube titles, search preview, thumbnails and chapters. Builds on nawaa-tools.css;
   logical properties only (Arabic mirrors itself), time stamps stay LTR islands, nothing wider than its column at 390 px. */
.nv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nv-modes .nw-chip { padding: 8px 14px; }
.nv-budget { display: block; color: #a5f3fc; }
.nv-format-hint { display: block; margin-top: 2px; }
.nv-dialect { min-width: 150px; }
.nv-ok { color: #6ee7b7; } .nv-bad { color: #fca5a5; }
.nv-time { font-family: var(--mono); font-size: 11.5px; color: #8be9fd; unicode-bidi: isolate; white-space: nowrap; }

/* head + checks */
.nv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nv-head-text { min-width: 0; flex: 1 1 260px; display: grid; gap: 4px; }
.nv-title { margin: 0; font-family: var(--display); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.nv-title:lang(ar), [dir="rtl"] .nv-title { font-family: var(--arabic); }
.nv-tp-open { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 13px; }
.nv-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nv-check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: 12px; min-width: 0; max-width: 100%; }
.nv-check-ico { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.nv-check.ok .nv-check-ico { background: rgba(52,211,153,.18); color: #6ee7b7; }
.nv-check.warn { border-color: rgba(245,176,65,.35); } .nv-check.warn .nv-check-ico { background: rgba(245,176,65,.2); color: #fcd34d; }
.nv-check.fail { border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.06); } .nv-check.fail .nv-check-ico { background: rgba(248,113,113,.22); color: #fca5a5; }
.nv-check-text { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.nv-check-text strong { font-weight: 600; color: var(--ink); }
.nv-check-text small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.nv-src { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; color: var(--dim); border: 1px solid var(--line-2); white-space: nowrap; }
.nv-src.official { color: #93c5fd; border-color: rgba(147,197,253,.35); } .nv-src.partner { color: #c4b5fd; border-color: rgba(196,181,253,.35); }
[dir="rtl"] .nv-src { letter-spacing: 0; text-transform: none; font-size: 10.5px; }
.nv-score { display: grid; gap: 6px; }
.nv-actions { position: static; }

/* the timeline bar: one segment per beat, its width its seconds, its colour its pace */
.nv-tl-wrap { display: grid; gap: 4px; }
.nv-tl { display: flex; gap: 3px; min-width: 0; }
.nv-tl-seg { flex: 1 1 0; min-width: 6px; display: grid; gap: 1px; align-content: center; padding: 6px 6px 5px; border-radius: 8px; border: 1px solid transparent; background: rgba(52,211,153,.16); color: #d1fae5; font: 600 10.5px/1.25 var(--display); text-align: start; cursor: pointer; overflow: hidden; transition: filter .15s var(--ease), transform .15s var(--ease); }
.nv-tl-seg span:not(.nv-time) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-tl-seg .nv-time { font-size: 9.5px; color: inherit; opacity: .75; overflow: hidden; }
.nv-tl-seg:hover, .nv-tl-seg:focus-visible { filter: brightness(1.25); transform: translateY(-1px); outline: none; border-color: rgba(255,255,255,.35); }
.nv-tl-seg.hook { background: linear-gradient(135deg, rgba(34,211,238,.35), rgba(139,92,246,.35)); color: #fff; }
.nv-tl-seg.brisk { background: rgba(245,176,65,.2); color: #fde68a; }
.nv-tl-seg.over { background: rgba(248,113,113,.28); color: #fecaca; border-color: rgba(248,113,113,.5); }
.nv-tl-seg.silent { background: rgba(255,255,255,.06); color: var(--muted); }
.nv-tl-seg.hook.over { background: linear-gradient(135deg, rgba(248,113,113,.45), rgba(139,92,246,.35)); }
.nv-tl-ends { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nv-tl-ends small { color: var(--dim); font-size: 11px; text-align: center; }

/* sections, the hook, the beats */
.nv-sec { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); min-width: 0; }
.nv-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.nv-sec-head h3, .nv-shots summary h3 { margin: 0; font-family: var(--display); font-size: 14.5px; }
.nv-sec-head .nt-hint { max-width: 60ch; }
.nv-sec > .nv-chip { justify-self: start; }
.nv-sec p.nt-hint, .nv-sec p.nt-note, .nv-check-out p.nt-note { margin: 0; }
.nv-hook { border-color: rgba(34,211,238,.35); background: linear-gradient(180deg, rgba(34,211,238,.07), rgba(139,92,246,.04)); }
.nv-line, .nv-screen { display: grid; gap: 6px; min-width: 0; }
.nv-line-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nv-vo { font-size: 15px; line-height: 1.6; min-height: 2.6em; }
.nv-line.big .nv-vo { font-size: 17px; font-weight: 600; }
.nv-pace { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.nv-pace.ok { background: rgba(52,211,153,.14); color: #6ee7b7; } .nv-pace.brisk { background: rgba(245,176,65,.15); color: #fcd34d; } .nv-pace.over { background: rgba(248,113,113,.18); color: #fca5a5; } .nv-pace.silent { background: rgba(255,255,255,.06); color: var(--muted); }
.nv-pace-meter { position: relative; height: 16px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; display: flex; align-items: center; }
.nv-pace-meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(52,211,153,.3), rgba(52,211,153,.55)); transition: width .2s var(--ease); }
.nv-pace-meter.brisk i { background: linear-gradient(90deg, rgba(245,176,65,.3), rgba(245,176,65,.6)); } .nv-pace-meter.over i { background: rgba(248,113,113,.6); }
.nv-pace-meter b { position: absolute; inset-block: 2px; width: 2px; background: rgba(255,255,255,.35); border-radius: 2px; }
.nv-pace-meter small { position: relative; margin-inline-start: auto; padding-inline-end: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink); }
.nv-labelled { margin: 0; display: grid; gap: 3px; font-size: 13.5px; color: var(--muted); }
.nv-labelled span:last-child { color: var(--ink); }
.nv-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); align-items: stretch; }
.nv-alts > .nt-label { grid-column: 1 / -1; }
.nv-alt .nt-res-foot { margin-top: auto; }
.nv-alt { display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,10,16,.45); min-width: 0; }
.nv-alt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nv-alt-spoken { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.nv-alt-screen { margin: 0; font-size: 12.5px; color: #c7d2fe; overflow-wrap: anywhere; }
.nv-alt .nt-hint { margin: 0; }
.nv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line-2); max-width: 100%; overflow-wrap: anywhere; }
.nv-chip.ghost { background: transparent; color: var(--muted); font-weight: 500; }
.nv-chip.good { color: #6ee7b7; border-color: rgba(52,211,153,.35); } .nv-chip.warn { color: #fcd34d; border-color: rgba(245,176,65,.35); } .nv-chip.bad { color: #fca5a5; border-color: rgba(248,113,113,.4); }
.nv-beats { gap: 10px; }
.nv-beat { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,10,16,.4); min-width: 0; scroll-margin: 90px; transition: border-color .3s, box-shadow .3s; }
.nv-beat.flash, .nv-hook.flash { border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.nv-beat-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nv-beat-head strong { font-family: var(--display); font-size: 13.5px; }
.nv-beat-head strong:lang(ar) { font-family: var(--arabic); }
.nv-secs { color: var(--dim); font-size: 11px; }
.nv-shot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nv-broll { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.nv-broll::before { content: "🎬 "; }
.nv-cta { border-color: rgba(139,92,246,.35); }
.nv-cta-line { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }

/* the shot list table (scrolls inside its box on a phone) */
.nv-shots { display: block; padding: 0; }
.nv-shots summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 16px; cursor: pointer; list-style: none; }
.nv-shots summary::-webkit-details-marker { display: none; }
.nv-shots summary::before { content: "▸"; color: var(--dim); transition: transform .2s; }
[dir="rtl"] .nv-shots summary::before { content: "◂"; }
.nv-shots[open] summary::before { transform: rotate(90deg); }
[dir="rtl"] .nv-shots[open] summary::before { transform: rotate(-90deg); }
.nv-shots .nv-tablewrap { margin: 0 16px 16px; }
.nv-tablewrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); max-width: 100%; }
.nv-tablewrap:focus-visible { outline: 2px solid rgba(34,211,238,.6); outline-offset: 2px; }
.nv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.nv-fit .nv-table { min-width: 420px; }
.nv-table th, .nv-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; line-height: 1.5; }
.nv-table th { position: sticky; top: 0; background: var(--panel-2); color: var(--dim); font-family: var(--display); font-size: 11px; font-weight: 600; white-space: nowrap; }
.nv-table td.nv-td-time { white-space: nowrap; font-family: var(--mono); font-size: 11.5px; color: #8be9fd; }
.nv-table tr:last-child td { border-bottom: 0; }
.nv-table tr.st-over td { background: rgba(248,113,113,.06); }

.nv-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; align-items: start; }
.nv-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.nv-rule { margin: 0; }

/* the free fit check */
.nv-dur { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nv-secs-wrap { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.nv-secs { width: 84px; padding: 6px 10px; }
.nv-fit-out:empty { display: none; }
.nv-fit { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.nv-fit.ok { border-color: rgba(52,211,153,.4); } .nv-fit.brisk { border-color: rgba(245,176,65,.4); } .nv-fit.over { border-color: rgba(248,113,113,.5); }
.nv-fit-verdict { display: grid; gap: 3px; }
.nv-fit-verdict strong { font-family: var(--display); font-size: 17px; }
.nv-fit.ok .nv-fit-verdict strong { color: #6ee7b7; } .nv-fit.brisk .nv-fit-verdict strong { color: #fcd34d; } .nv-fit.over .nv-fit-verdict strong { color: #fca5a5; }
[dir="rtl"] .nv-fit-verdict strong { font-family: var(--arabic); }
.nv-fit-verdict small { color: var(--muted); font-size: 12.5px; }
.nv-fit .nv-td-time { white-space: nowrap; }
.nv-fit tr.late td { background: rgba(248,113,113,.1); }
.nv-beats-dropped { margin: 0; }
.nv-beats-dropped .nv-list { margin-top: 6px; }
.nv-trimmed { margin: 0; }
p.nv-removed { margin: 0; }

/* the teleprompter */
html.nv-tp-on, html.nv-tp-on body { overflow: hidden; }
.nv-tp { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #050508; color: #fff; animation: panelIn .2s var(--ease) both; }
.nv-tp-bar { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(10,10,16,.92); }
.nv-tp-progress { position: absolute; inset-inline-start: 0; bottom: -1px; width: 0; height: 2px; background: var(--nw); box-shadow: 0 0 8px var(--nw-glow); }
.nv-tp-btn { min-width: 40px; min-height: 36px; font-size: 14px !important; padding: 6px 10px !important; }
.nv-tp-btn.play { min-width: 52px; background: var(--nw); color: #fff; border-color: transparent; }
.nv-tp-btn.close { margin-inline-start: auto; }
.nv-tp-btn[aria-pressed="true"] { border-color: rgba(34,211,238,.7); color: #a5f3fc; }
.nv-tp-clock { font-family: var(--mono); font-size: 14px; color: #a5f3fc; min-width: 92px; }
.nv-tp-grp { display: inline-flex; align-items: center; gap: 4px; }
.nv-tp-speed { font-family: var(--mono); font-size: 12px; min-width: 38px; text-align: center; color: var(--muted); }
.nv-tp-view { position: relative; overflow-y: auto; padding: 38vh 6vw 60vh; scrollbar-width: thin; }
.nv-tp-text { max-width: 980px; margin: 0 auto; display: grid; gap: .9em; font-size: 34px; line-height: 1.45; }
.nv-tp-text:lang(ar) { font-family: var(--arabic); line-height: 1.7; }
.nv-tp-text.mirror { transform: scaleX(-1); }
.nv-tp-seg { display: grid; gap: .2em; opacity: .38; transition: opacity .3s var(--ease); cursor: pointer; }
.nv-tp-seg.now { opacity: 1; } .nv-tp-seg.past { opacity: .22; }
.nv-tp-meta { font-size: 13px; color: #8be9fd; font-family: var(--latin); }
.nv-tp-line { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.nv-tp-line.silent { font-weight: 400; font-style: italic; color: var(--muted); font-size: .6em; }
.nv-tp-screen { margin: 0; font-size: .5em; color: #c7d2fe; }
.nv-tp-guide { position: absolute; inset-inline: 0; top: 40%; height: 2px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.55), transparent); pointer-events: none; } /* top: set by script.js on the reading line */
.nv-tp-keys { margin: 0; padding: 8px 14px; font-size: 11.5px; color: var(--dim); text-align: center; border-top: 1px solid rgba(255,255,255,.06); }
iframe.nv-print { position: fixed; width: 0; height: 0; border: 0; inset-inline-start: -9999px; top: 0; }

/* YouTube: the form */
.nv-stamps.good { color: #6ee7b7; }
.nv-len { max-width: 140px; font-family: var(--mono); }
.nv-links { display: grid; gap: 8px; }
.nv-links-list { display: grid; gap: 6px; }
.nv-link { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.nv-links > .ghost { justify-self: start; }
.nv-check-out { display: grid; gap: 12px; }
.nv-check-out:empty { display: none; }
/* the title meter: the 100 limit, the ~60 mobile cut marked */
.nv-title-meter { position: relative; height: 16px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; display: flex; align-items: center; }
.nv-title-meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(52,211,153,.3), rgba(52,211,153,.55)); }
.nv-title-meter.near i { background: linear-gradient(90deg, rgba(245,176,65,.3), rgba(245,176,65,.6)); } .nv-title-meter.over i { background: rgba(248,113,113,.6); }
.nv-title-meter b { position: absolute; inset-block: 1px; width: 2px; background: rgba(255,255,255,.45); }
.nv-title-meter small { position: relative; margin-inline-start: auto; padding-inline-end: 8px; font-family: var(--mono); font-size: 10px; }
/* the keyword head, titles to pick */
.nv-kw-label { color: var(--dim); font-size: 12px; font-weight: 600; margin-inline-end: 8px; font-family: var(--display); }
.nv-kw { color: #a5f3fc; }
.nv-title-list { display: grid; gap: 8px; }
.nv-tcard { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,10,16,.4); cursor: pointer; transition: border-color .2s, background .2s; min-width: 0; }
.nv-tcard:hover { border-color: var(--line-2); }
.nv-tcard:focus-visible { outline: 2px solid rgba(34,211,238,.6); outline-offset: 2px; }
.nv-tcard.on { border-color: rgba(34,211,238,.6); background: linear-gradient(135deg, rgba(34,211,238,.09), rgba(139,92,246,.06)); }
.nv-tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nv-tcard-text { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.nv-tcard-text mark, .nv-serp mark { background: rgba(34,211,238,.22); color: #e0faff; border-radius: 4px; padding: 0 2px; }
.nv-tcard-top .spacer { flex: 1; }
.nv-tcard-top .nt-copy { padding: 4px 10px; }
/* the search previews (a phone, a computer) + thumbnails */
.nv-serps { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 12px; align-items: start; }
.nv-serp { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #0f0f0f; border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.nv-serp.desktop { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: start; }
.nv-serp-dev { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #717171; }
[dir="rtl"] .nv-serp-dev { letter-spacing: 0; text-transform: none; font-size: 11.5px; }
.nv-serp-text { display: grid; gap: 4px; min-width: 0; }
.nv-serp-title { font-family: Roboto, var(--latin); font-size: 15px; line-height: 1.35; color: #f1f1f1; overflow-wrap: anywhere; }
.nv-serp-title:lang(ar), [dir="rtl"] .nv-serp-title { font-family: var(--arabic); }
.nv-serp-ch { color: #aaa; font-size: 12px; }
.nv-serp-desc { margin: 0; color: #aaa; font-size: 12px; line-height: 1.45; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* a thumbnail mock: the text sized to the frame (container units), so it reads the same small or large */
.nv-thumb { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; padding: 6%; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--tc) 70%, #fff 0%), color-mix(in srgb, var(--tc) 35%, #000) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.nv-thumb.vertical { aspect-ratio: 9 / 16; max-height: 240px; justify-self: center; width: auto; }
.nv-thumb span { font: 900 clamp(13px, 11cqw, 48px)/1.08 var(--display); color: #fff; text-align: center; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 .06em 0 rgba(0,0,0,.45), 0 0 .5em rgba(0,0,0,.35); overflow-wrap: anywhere; }
.nv-thumb.vertical span { font-size: clamp(12px, 14cqw, 34px); }
.nv-thumb span:lang(ar), [dir="rtl"] .nv-thumb span { font-family: var(--arabic); letter-spacing: 0; line-height: 1.3; }
.nv-thumb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.nv-dropped summary { cursor: pointer; color: var(--dim); font-size: 12px; }
.nv-dropped p { margin: 6px 0 0; }
.nv-thumb-card { display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,10,16,.4); min-width: 0; align-content: start; }
.nv-thumb-card .nt-text { margin: 0; }
.nv-thumb-card p.nt-hint { margin: 0; }
/* the description, chapters */
.nv-desc-ta { min-height: 220px; max-height: 70vh; overflow-y: auto; font-size: 13.5px; line-height: 1.6; }
.nv-above { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(34,211,238,.35); background: rgba(34,211,238,.05); }
.nv-above .nt-text { font-size: 13.5px; }
.nv-chap { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.nv-chap li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.03); font-size: 13px; }
.nv-chap li.bad { background: rgba(248,113,113,.08); }
.nv-chapters .nt-hint { margin: 0; }

/* the shell's History rows take their title's full width as a minimum (a grid item's min-content), so a long run title pushes Save / × out
   of the panel on a phone: kept inside here for the video tools (the same one line belongs in nawaa-tools.css for every tool) */
.nw-tools[data-tool="script"] .nt-history-list, .nw-tools[data-tool="youtube"] .nt-history-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .nv-tp-view { padding: 34vh 5vw 58vh; }
  .nv-tp-keys { display: none; }
  .nv-serps { grid-template-columns: minmax(0, 1fr); }
  .nv-serp.desktop { display: none; } /* on a phone, the phone result is the one that matters */
}
@media (max-width: 560px) {
  .nv-head .nv-tp-open { width: 100%; justify-content: center; }
  .nv-sec { padding: 12px; }
  .nv-beat { padding: 10px 11px; }
  .nv-tl-seg span:not(.nv-time) { display: none; }
  .nv-tl-seg { padding: 7px 3px; min-height: 30px; }
  .nv-check { font-size: 11.5px; }
  .nv-link { grid-template-columns: minmax(0, 1fr) auto; }
  .nv-link input[type="url"] { grid-column: 1 / -1; grid-row: 2; }
  .nv-link > .ghost { grid-column: 2; grid-row: 1; }
  .nv-tp-bar { gap: 6px; padding: 8px 10px; }
  .nv-tp-clock { min-width: 0; font-size: 12.5px; }
  .nv-shots .nv-tablewrap { margin: 0 10px 12px; }
  /* the fit table becomes one card per part: the time and its verdict on top, the words under them (nothing scrolled out of view) */
  .nv-fit .nv-table { min-width: 0; }
  .nv-fit .nv-table thead { display: none; }
  .nv-fit .nv-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); }
  .nv-fit .nv-table tr:last-child { border-bottom: 0; }
  .nv-fit .nv-table td { border-bottom: 0; }
  .nv-fit .nv-table td.nv-td-time { grid-column: 1; grid-row: 1; padding-bottom: 2px; }
  .nv-fit .nv-table td.nv-td-pace { grid-column: 2; grid-row: 1; padding-bottom: 2px; }
  .nv-fit .nv-table td.nv-td-text { grid-column: 1 / -1; grid-row: 2; padding-top: 0; overflow-wrap: anywhere; }
}
/* Arabic never goes through the mono face (no Arabic glyphs: the letters would not join) */
[dir="rtl"] .nv-pace-meter small, [dir="rtl"] .nv-title-meter small, [dir="rtl"] .nv-tp-speed, [dir="rtl"] .nv-time, [dir="rtl"] .nv-tp-clock { font-family: var(--arabic); }
@media (prefers-reduced-motion: reduce) { .nv-tp, .nv-tl-seg, .nv-tp-seg { animation: none !important; transition: none !important; } .nv-tl-seg:hover { transform: none; } }
@media print { .nv-tp { display: none; } }
