/* «Проверить скорость» (0.72, public/net-test.js): the button beside the quality choice and the panel. */
.nt-open {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px;
  background-color: #0d0f13; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer;
}
.nt-open[hidden] { display: none; }
.nt-open:hover, .nt-open:focus-visible { border-color: var(--accent); color: var(--accent); }
.nt-open .ico { display: inline-flex; }
.nt-open .ico svg { width: 16px; height: 16px; }
/* The player's row is one line above the phone layout. While it has room the button sits in it — with its name, or
   as the icon alone once player.js marks the row .tight (names hidden). A player narrower than that (the Activity
   panel, a small window) has no room in the row at all — the choices already squeeze each other — so there the button
   hangs right under the quality choice, with its name. */
.track-controls.tight .nt-open { width: 34px; padding: 0; justify-content: center; }
@media (min-width: 761px) and (max-width: 1240px) {
  .track-controls .nt-open, .track-controls.tight .nt-open { position: absolute; right: 16px; top: 52px; width: auto; padding: 0 10px; background-color: rgba(13, 15, 19, .92); }
  .track-controls.tight .nt-open .tc-name { display: inline; }
}
/* A phone: the quality choice and the button share a row (each a half, as the audio and subtitle choices above). */
@media (max-width: 760px) { .track-controls .nt-open, .track-controls.tight .nt-open { flex: 1 1 calc(50% - 4px); min-width: 132px; width: auto; padding: 0 10px; justify-content: center; font-size: 11px; } }

.nt-card { max-width: 440px; }
.nt-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 34px 12px 0; }
.nt-card h3 .ico { display: inline-flex; color: var(--accent); }
.nt-card h3 .ico svg { width: 20px; height: 20px; }
.nt-body { display: flex; flex-direction: column; gap: 10px; }
.nt-body p { margin: 0; }
.nt-lead { color: var(--text); font-size: 14px; line-height: 1.45; }
.nt-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.nt-line { color: var(--muted); font-size: 13px; line-height: 1.4; }
.nt-line.nt-warn { color: #f1c56b; }
.nt-big { font: 700 34px/1.1 system-ui; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: -.01em; }
.nt-big small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nt-meter { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 2px; }
.nt-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nt-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--accent); transition: width .25s linear; }
.nt-result { padding: 14px 14px 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); border-left: 4px solid var(--muted); }
.nt-result .nt-verdict { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); }
.nt-result.nt-fast { border-left-color: #4ccb7f; }
.nt-result.nt-medium { border-left-color: #6fb2f2; }
.nt-result.nt-slow { border-left-color: #f1c56b; }
.nt-result.nt-none { border-left-color: #ef6b6b; }
p.nt-verdict { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); }
p.nt-verdict.ok { color: #6fd99a; }
p.nt-verdict.bad { color: #f29a8f; }
.nt-secs { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.nt-secs i { flex: 1 1 0; min-width: 6px; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .22); }
.nt-rows { display: flex; flex-direction: column; gap: 5px; }
.nt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nt-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.nt-row.ok b { color: #6fd99a; }
.nt-row.bad b { color: #f29a8f; }
.nt-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 2px; }
.nt-btn {
  min-height: 38px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #20242d; color: var(--text);
  font: 600 13px/1.2 system-ui; cursor: pointer;
}
.nt-btn:hover, .nt-btn:focus-visible { border-color: var(--accent); }
.nt-btn.nt-primary { background: var(--accent); border-color: var(--accent); color: #101216; }
.nt-btn.nt-switch { align-self: stretch; text-align: center; border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255, .04); }
.nt-admin { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.nt-admin h4 { margin: 0 0 4px; font-size: 13px; color: var(--text); }
.nt-admin-open { margin-top: 8px; }
@media (max-width: 520px) {
  .nt-modal { padding: 10px; align-items: flex-end; }
  .nt-card { max-height: 88vh; padding: 18px 16px; border-radius: 16px 16px 12px 12px; }
  .nt-big { font-size: 30px; }
  .nt-actions .nt-btn, .nt-btn.nt-switch { flex: 1 1 100%; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .nt-bar i { transition: none; } }
