/*
 * The guided layer's look: the app's own dark UI, so it reads as part of NSB, not as an overlay from
 * somewhere else. Everything is scoped under html.nsb-demo-on, which guide.js sets, so ?demo=v1 (the old
 * behaviour) gets none of it.
 */
html.nsb-demo-on {
  --nsb-demo-bg: #17181c;
  --nsb-demo-line: rgba(255, 255, 255, 0.12);
  --nsb-demo-ink: #f2f3f5;
  --nsb-demo-dim: #a3a7b0;
  --nsb-demo-red: #d4323a;
  --nsb-demo-red-ink: #ff6b6b;
  --nsb-demo-focus: #ffffff;      /* the keyboard ring is white, so it never reads as the pink hint ring */
}

/* Things that cannot mean anything in a browser demo: window buttons, licence actions, pairing. */
html.nsb-demo-on app-menu .btn.close-btn,
html.nsb-demo-on app-menu .btn.max-btn,
html.nsb-demo-on app-menu .btn.min-btn,
html.nsb-demo-on app-menu .btn.pin-btn,
html.nsb-demo-on .deactivate-btn,
html.nsb-demo-on .version-card.dashboard,
html.nsb-demo-on .version-card.hotfix,
html.nsb-demo-on button.phone-hero { display: none !important; }

/* No prices on the Copped tab: the result, not the money. (Other screens keep their counters.) */
html.nsb-demo-on .copped-card-price,
html.nsb-demo-on .share-range,
html.nsb-demo-on .copped-card-actions .action-share,
html.nsb-demo-on[data-nsb-route="copped"] .tab-analytics-stats .analytic-info:nth-child(2),
html.nsb-demo-on[data-nsb-route="copped"] .analytic-note { display: none !important; }

/* Controls that open a window of the computer app (a captcha solver, a PayPal login, a proxy test browser, a
   YouTube warm-up). There is no such window in a web page, so they are not offered. */
html.nsb-demo-on[data-nsb-route="captcha"] button[title="Paypal"],
html.nsb-demo-on[data-nsb-route="captcha"] button[title="Open All"],
html.nsb-demo-on[data-nsb-route="captcha"] button[title="Open All YouTube"],
html.nsb-demo-on[data-nsb-route="captcha"] button[title="AYCD"],
html.nsb-demo-on[data-nsb-route="captcha"] button[title="Clear All Sessions"],
html.nsb-demo-on[data-nsb-route="captcha"] .row-actions .start-solver,
html.nsb-demo-on[data-nsb-route="proxies"] button[title^="Proxy Tester"] { display: none !important; }

/* Accounts: the items that open a real browser window of the computer app (a manual sign-in, the saved
   session, the orders page, the live task browser). The sample accounts have none of that to show. */
html.nsb-demo-on a.dropdown-item[data-function-name="openManualBrowser"],
html.nsb-demo-on a.dropdown-item[data-function-name="openSavedSessionBrowser"],
html.nsb-demo-on a.dropdown-item[data-function-name="openOrdersBrowser"],
html.nsb-demo-on a.dropdown-item[data-function-name="showBrowser"],
html.nsb-demo-on[data-nsb-route="accounts"] .row-eye-btn { display: none !important; }

/* ---- the simple view: six screens. Automation, Captchas, Monitors, IMAP and Calendar are not offered. ----
   The shim puts html.nsb-demo-simple on before the app draws, so the five never flash up. */
html.nsb-demo-simple .nsb-tabs li[title="Automation"],
html.nsb-demo-simple .nsb-tabs li[title="Captchas"],
html.nsb-demo-simple .nsb-tabs li[title="Monitors"],
html.nsb-demo-simple .nsb-tabs li[title="IMAP"],
html.nsb-demo-simple .nsb-tabs li[title="Calendar"] { display: none !important; }

/* ---- the simple view, inside the screens: the same six, with only what a first look needs ----
   Every one of these is the app's own control, shown again with ?view=full. Nothing the six-step tour uses is here. */
html.nsb-demo-simple app-menu .clock-style,                                                  /* the clock above the toolbar */
html.nsb-demo-simple .top-buttons button[title="Import"],
html.nsb-demo-simple .top-buttons button[title^="Export"],
html.nsb-demo-simple .top-buttons .filter-area,                                              /* Tasks: filter box */
html.nsb-demo-simple .top-buttons .billing-search,                                           /* Billings: search, ALL, flag filter */
html.nsb-demo-simple .top-buttons div:has(> input.filter),                                   /* Accounts: filter box */
html.nsb-demo-simple .status-sort-header[title^="Sort tasks by queue time"],
html.nsb-demo-simple .status-sort-icon,
html.nsb-demo-simple button[title="Copy Proxy"],
html.nsb-demo-simple .protocol-badge,
html.nsb-demo-simple button[title^="Profile Health"],
html.nsb-demo-simple .billing-chip.used,                                                     /* its tooltip counts automations and quick tasks */
html.nsb-demo-simple button[title^="Screenshot"],
html.nsb-demo-simple button[title^="Export Copped"],
html.nsb-demo-simple button[title="Choose what each card shows"],
html.nsb-demo-simple button[title="The last twelve months, rolling"],
html.nsb-demo-simple button[title="Pick your own dates"],
html.nsb-demo-simple #pageModal .col-3:has(select[name=method]) { display: none !important; }   /* New task: Mode */

.nsb-demo-usage-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--nsb-demo-ink, #f2f3f5); }

/* Buttons that open a window of the computer app (the task monitor, the folder of a log file): nothing to open here. */
html.nsb-demo-on[data-nsb-route="tasks"] .top-buttons button[title="Monitor"],
html.nsb-demo-on button[title="Open log file"] { display: none !important; }

/* "Show hints" is for when the hints are put away. */
html.nsb-demo-simple .nsb-demo-bar.is-hinting .nsb-demo-show { display: none; }

/* A dialog of the app is open: the card and the two pills step aside, so they never cover its buttons. */
html.nsb-demo-modal .nsb-demo-card, html.nsb-demo-modal .nsb-demo-bar { display: none !important; }

/* The app's own toasts (Task added, Exported ...) sit above the hint card, not under it. */
html.nsb-demo-on .iziToast-wrapper-bottomCenter { bottom: 100px !important; }

/* While the New task form is open the app's toasts sit at the top, clear of the form's Close and Save buttons. */
html.nsb-demo-form .iziToast-wrapper-bottomCenter { bottom: auto !important; top: 16px; }
html.nsb-demo-form .nsb-demo-toast { top: auto; bottom: 14px; transform: translate(-50%, 8px); }
html.nsb-demo-form .nsb-demo-toast.is-on { transform: translate(-50%, 0); }

/* Room under the last tiles (Settings) and the last cards (Copped) for the card and the pills. */
html.nsb-demo-on .profile-content { padding-bottom: 80px; }
html.nsb-demo-on .copped-cards-container { padding-bottom: 96px; }

/* ---- a quiet notice, and the monitor window ---- */
.nsb-demo-toast {
  position: fixed; top: 14px; left: 50%; z-index: 10000; transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 12px; font-size: 13px; line-height: 1.35;
  background: var(--nsb-demo-bg, #17181c); color: var(--nsb-demo-ink, #f2f3f5); border: 1px solid var(--nsb-demo-line, rgba(255,255,255,.12));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); transition: opacity .2s ease, transform .2s ease;
}
.nsb-demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .nsb-demo-toast { transition: none; } }

.nsb-demo-feed { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); padding: 16px; }
.nsb-demo-feed[hidden] { display: none; }
.nsb-demo-feed__panel {
  width: min(560px, 100%); max-height: min(520px, 100%); display: flex; flex-direction: column; overflow: hidden;
  background: var(--nsb-demo-bg, #17181c); color: var(--nsb-demo-ink, #f2f3f5); border: 1px solid var(--nsb-demo-line, rgba(255,255,255,.12));
  border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.nsb-demo-feed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--nsb-demo-line, rgba(255,255,255,.12)); }
.nsb-demo-feed__name { font-size: 15px; font-weight: 700; }
.nsb-demo-feed__sub { font-size: 12px; color: var(--nsb-demo-dim, #a3a7b0); margin-top: 2px; }
.nsb-demo-feed ul { list-style: none; margin: 0; padding: 6px 8px 10px; overflow-y: auto; }
.nsb-demo-feed li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.nsb-demo-feed li:hover { background: #1f2127; }
.nsb-demo-feed li.is-empty { color: var(--nsb-demo-dim, #a3a7b0); font-size: 13px; padding: 18px 8px; }
.nsb-demo-feed li img { border-radius: 8px; background: #fff; object-fit: contain; flex: none; }
.nsb-demo-feed__title { font-size: 13.5px; font-weight: 600; }
.nsb-demo-feed__meta { font-size: 12px; color: var(--nsb-demo-dim, #a3a7b0); margin-top: 2px; }

/* Room under the left pane for the two small controls, so the last card or counter is never hidden behind them. */
html.nsb-demo-on .nsb-sidebar { box-sizing: border-box; padding-bottom: 64px; }

/* ---- the two small controls ---- */
.nsb-demo-bar { position: fixed; left: 76px; bottom: 12px; z-index: 9990; display: flex; gap: 8px; }
.nsb-demo-pill {
  font: 600 12px/1 inherit; font-family: inherit; color: var(--nsb-demo-ink, #f2f3f5); background: rgba(23, 24, 28, 0.92);
  border: 1px solid var(--nsb-demo-line, rgba(255,255,255,.12)); border-radius: 999px; padding: 0 14px; height: 32px; cursor: pointer;
  backdrop-filter: blur(8px);
}
.nsb-demo-pill:hover { background: #22242a; }
.nsb-demo-pill:focus-visible, .nsb-demo-btn:focus-visible { outline: 2px solid var(--nsb-demo-focus, #fff); outline-offset: 2px; }
@media (pointer: coarse) { .nsb-demo-pill, .nsb-demo-btn { min-height: 44px; } }

/* ---- the hint card: a slim bar along the bottom, clear of the task table and of the Start button ---- */
.nsb-demo-card {
  position: fixed; right: 16px; bottom: 12px; z-index: 9991; box-sizing: border-box;
  width: min(680px, calc(100vw - 308px)); display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px;
  background: var(--nsb-demo-bg, #17181c); color: var(--nsb-demo-ink, #f2f3f5); border: 1px solid var(--nsb-demo-line, rgba(255,255,255,.12));
  border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  animation: nsb-demo-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nsb-demo-card[hidden], .nsb-demo-card.is-away { display: none; }
.nsb-demo-head { flex: none; min-width: 78px; }
.nsb-demo-step { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nsb-demo-red-ink, #ff6b6b); font-weight: 700; white-space: nowrap; }
.nsb-demo-title { margin-top: 2px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.nsb-demo-text { margin: 0; flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--nsb-demo-dim, #a3a7b0); }
.nsb-demo-row { display: flex; align-items: center; gap: 8px; flex: none; align-self: flex-end; }   /* bottom-anchored: Next stays put when the text takes another line */
.nsb-demo-btn { font: 600 12.5px/1 inherit; font-family: inherit; height: 32px; padding: 0 14px; border-radius: 10px; cursor: pointer; color: var(--nsb-demo-ink, #f2f3f5); background: transparent; border: 1px solid var(--nsb-demo-line, rgba(255,255,255,.12)); }
.nsb-demo-btn, .nsb-demo-pill { transition: background-color .15s ease, transform .1s ease; }
.nsb-demo-btn:hover { background: #22242a; }
.nsb-demo-primary { background: var(--nsb-demo-red, #d4323a); border-color: transparent; }
.nsb-demo-primary:hover { background: #e23d45; }
.nsb-demo-btn:active, .nsb-demo-pill:active { transform: translateY(1px); }
.nsb-demo-btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* While the New task form is open the card sits above it, centred, with the title dropped. */
.nsb-demo-card.is-compact { top: 10px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); animation: none; }
.nsb-demo-card.is-compact .nsb-demo-title { display: none; }
.nsb-demo-card.is-compact .nsb-demo-head { min-width: 0; }
.nsb-demo-card.is-compact .nsb-demo-skip { display: none; }
html.nsb-demo-form .nsb-demo-bar { display: none; }

/* ---- what the current hint points at ---- */
html.nsb-demo-on .nsb-demo-target { position: relative; z-index: 9980; border-radius: 10px; box-shadow: 0 0 0 2px var(--nsb-demo-red-ink, #ff6b6b); animation: nsb-demo-pulse 1.8s ease-in-out infinite; }

html.nsb-demo-modal .nsb-demo-target, html.nsb-demo-form .nsb-demo-target { z-index: auto; box-shadow: none; animation: none; }   /* a dialog is open: nothing behind it lights up */

/* ---- dialogs open calmly ----
   The app opens every dialog by scaling it up from a tenth of its size. Here a dialog rises a little and fades in instead.
   The New task form is also kept out of sight while it is filled in and finishes drawing (guide.js, settleForm), then fades in
   whole, so nobody watches its fields appear, disappear and the box change size. */
html.nsb-demo-on .modal.scale .modal-dialog { transform: translateY(10px); }
html.nsb-demo-on .modal.scale.show .modal-dialog { transform: none; }
html.nsb-demo-on #pageModal.nsb-demo-settling .modal-dialog { opacity: 0 !important; transition: none !important; animation: none !important; }
html.nsb-demo-on #pageModal.nsb-demo-reveal .modal-dialog { animation: nsb-demo-form-in .26s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes nsb-demo-form-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* The hint card waits too, so it is not placed against a dialog that is still changing size. */
html.nsb-demo-settling .nsb-demo-card { visibility: hidden; }

/* The New task form has one thing to do: press Submit. Submit pulses, and when the card is not above the form to say so (a small
   window, or the hints put away) the line sits in the button row beside it. */
.nsb-demo-foothint { margin-right: auto; align-self: center; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--nsb-demo-ink, #f2f3f5); }
#pageModal input[type=submit].nsb-demo-cue { animation: nsb-demo-pulse 1.8s ease-in-out infinite; }
/* The simple demo offers one way to make the task. (Save & Start makes it and starts it in one go; ?view=full keeps it.) */
html.nsb-demo-simple #pageModal button[title="Save & Start"] { display: none; }

/* ---- plain-language help under the task form's fields ---- */
.nsb-demo-help { font-size: 11px; line-height: 1.3; color: var(--nsb-demo-dim, #a3a7b0); margin: 4px 4px 2px; }

@keyframes nsb-demo-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nsb-demo-pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--nsb-demo-red-ink, #ff6b6b), 0 0 0 0 rgba(255, 107, 107, 0.45); } 50% { box-shadow: 0 0 0 2px var(--nsb-demo-red-ink, #ff6b6b), 0 0 0 8px rgba(255, 107, 107, 0); } }

/* Reduced motion: no entrance, no pulse. The ring stays, as a plain outline. */
@media (prefers-reduced-motion: reduce) {
  .nsb-demo-card { animation: none; }
  html.nsb-demo-on .nsb-demo-target { animation: none; }
  #pageModal input[type=submit].nsb-demo-cue { animation: none; box-shadow: 0 0 0 2px var(--nsb-demo-red-ink, #ff6b6b); }
  html.nsb-demo-on #pageModal.nsb-demo-reveal .modal-dialog { animation: none; }
  html.nsb-demo-on .modal.scale .modal-dialog { transform: none; }
}


/* ---- the practice line on the Copped tab ---- */
.nsb-demo-note { display: block; margin-top: 4px; font-size: 12px; color: var(--nsb-demo-dim, #a3a7b0); }

/* ---- keyboard: a ring wherever focus lands, on the app's own controls too ----
   The ring is for people using the keyboard: guide.js puts html.nsb-demo-kbd on when Tab or an arrow key is pressed and takes it
   off at the next mouse or touch press, so a click never leaves a white box behind. On the app's pickers the ring goes on the
   rounded box inside the picker (the picker's own wrapper is square), so it follows the corners. */
html.nsb-demo-kbd a:focus-visible, html.nsb-demo-kbd button:focus-visible, html.nsb-demo-kbd select:focus-visible,
html.nsb-demo-kbd [tabindex]:focus-visible, html.nsb-demo-kbd .select2-selection:focus-visible,
html.nsb-demo-kbd input:not(.select2-offscreen):not([type=checkbox]):not([type=radio]):focus-visible, html.nsb-demo-kbd textarea:focus-visible,
html.nsb-demo-kbd .select2-container.select2-container-active .select2-choice,
html.nsb-demo-kbd .select2-container.select2-container-active .select2-choices {
  outline: 2px solid var(--nsb-demo-focus, #fff) !important; outline-offset: 2px !important;
}

/* ---- narrow windows (the 794 and 780 wide embeds): nothing may run past the right edge ----
   Calendar and IMAP were wider than the window (the page area would not shrink below its content); the toolbars wrap into a second
   row instead of squeezing the filter to nothing; a task's status shortens with "..." instead of being cut at the cell's edge. */
html.nsb-demo-on .loaded-tab, html.nsb-demo-on .loaded-tab > *, html.nsb-demo-on .main-body, html.nsb-demo-on .dark-body,
html.nsb-demo-on .timeline-container { min-width: 0 !important; max-width: 100%; }
html.nsb-demo-on .status-cell-wrapper { display: block; max-width: 100%; }
html.nsb-demo-on .task-log { max-width: 100%; overflow: hidden; }
html.nsb-demo-on .task-log > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.nsb-demo-on .col-visibility-dropdown { max-height: calc(100vh - 168px); overflow-y: auto; }
@media (max-width: 900px) {
  html.nsb-demo-on .task-log { padding-left: 8px !important; padding-right: 8px !important; font-size: 12px; }
  html.nsb-demo-on .top-buttons { flex-wrap: wrap; height: auto !important; min-height: 32px !important; max-height: none !important; row-gap: 8px; }
  html.nsb-demo-on .top-buttons input.filter { max-width: none; }
  html.nsb-demo-on .imap-stats { display: none; }
}

/* A focused table row: the ring sits inside the row (the row is as wide as its scroll area, so a ring outside it loses its sides). */
html.nsb-demo-kbd tbody tr[tabindex]:focus-visible { outline-offset: -2px !important; border-radius: 10px; }

/* The open picker list: no blue edge, no underline on the letters that matched. */
html.nsb-demo-on .select2-drop.select2-drop-active, html.nsb-demo-on .select2-drop.select2-drop-above.select2-drop-active { border-color: rgba(255, 255, 255, 0.15); }
html.nsb-demo-on .select2-results .select2-match { text-decoration: none; color: #fff; }

/* The arrow on the form's pickers: one clean chevron, drawn the same on every system (the app's is a ">" in a font a Mac lacks). */
html.nsb-demo-on .nsb-select-container::after {
  content: ''; font-size: 0; width: 12px; height: 22px; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") center / 12px 8px no-repeat;
}

/* Profile Health is the one toolbar icon drawn pure white; its neighbours are grey until hovered. */
html.nsb-demo-on .top-buttons button[title^="Profile Health"] lucide-icon { color: rgba(255, 255, 255, 0.55); }
html.nsb-demo-on .top-buttons button[title^="Profile Health"]:hover lucide-icon { color: #fff; }

/* ---- short windows, full view (?view=full): all eleven screens stay on the left pane, the last one and the status light included ---- */
@media (max-height: 680px) { html.nsb-demo-on:not(.nsb-demo-simple) .nsb-tabs li[title] { margin-bottom: 8px !important; } }
@media (max-height: 620px) { html.nsb-demo-on:not(.nsb-demo-simple) .nsb-tabs li[title] { margin-bottom: 6px !important; padding: 7px !important; } }
@media (max-height: 580px) { html.nsb-demo-on:not(.nsb-demo-simple) .nsb-tabs li[title] { padding: 6px !important; } }

/* ---- tall dialogs (Billing profile, Settings): the header and the buttons stay on screen and the fields scroll between them ----
   Without this the Billing form's buttons sat half below a 700 px window, and the Settings "APIs" dialog was two screens tall. */
html.nsb-demo-on .billing-modal .modal-dialog { max-width: min(800px, calc(100vw - 24px)); margin: 8px auto; min-height: calc(100% - 16px); }
html.nsb-demo-on .billing-modal .modal-content { max-height: calc(100vh - 16px); display: flex; flex-direction: column; }
html.nsb-demo-on .billing-modal .modal-content > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
html.nsb-demo-on .billing-modal .modal-body { overflow-y: auto; min-height: 0; }
html.nsb-demo-on .billing-modal .modal-header, html.nsb-demo-on .billing-modal .modal-footer { flex: none; }
@media (max-width: 991.98px) { html.nsb-demo-on app-profile .modal-dialog.modal-lg { max-width: min(800px, calc(100vw - 24px)); } }
html.nsb-demo-on #settingsModal .modal-dialog { margin-top: 8px; margin-bottom: 8px; max-height: calc(100vh - 16px); }
html.nsb-demo-on #settingsModal .modal-content { max-height: calc(100vh - 16px); display: flex; flex-direction: column; }
html.nsb-demo-on #settingsModal .modal-content > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
html.nsb-demo-on #settingsModal .modal-body { overflow-y: auto; min-height: 0; }
html.nsb-demo-on #settingsModal .modal-header, html.nsb-demo-on #settingsModal .modal-footer { flex: none; }

/* The left pane that slides out on hover (tabs, groups) also opens when the keyboard reaches it, so Tab never lands on something unseen. */
html.nsb-demo-on .nsb-sidebar-autohide:focus-within nav.nsb-sidebar { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

/* The counters on the Copped screen shorten with "..." instead of being cut mid-letter. */
html.nsb-demo-on .site-pill { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the smallest supported window (560 high): the helper lines give way to their tooltips so the form fits ---- */
@media (max-height: 599px) {
  html.nsb-demo-on .nsb-demo-help { display: none; }
}

/* ---- a short window (the 780 x 600 embed): the form's own margins give the room it needs ---- */
@media (max-height: 680px) {
  html.nsb-demo-on #pageModal .modal-dialog { margin-top: 8px; margin-bottom: 8px; }
  html.nsb-demo-on .nsb-demo-help { margin: 2px 4px 0; line-height: 1.2; }
  html.nsb-demo-on #pageModal .modal-body { padding-top: 18px; padding-bottom: 16px; }
}

/* ---- reduced motion: the status text changes, nothing else moves ---- */
@media (prefers-reduced-motion: reduce) {
  html.nsb-demo-on *, html.nsb-demo-on *::before, html.nsb-demo-on *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
  }
}

/* the app's checkboxes are a hidden input plus a drawn box: the ring goes on the box */
html.nsb-demo-kbd .custom-control-input:focus-visible ~ .custom-control-label::before {
  outline: 2px solid var(--nsb-demo-focus, #fff); outline-offset: 2px;
}
/* Bootstrap turns a clicked box's border blue; the app's boxes keep their own border. */
html.nsb-demo-on .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: rgba(255, 255, 255, 0.15); }
