:root {
    --ur-bg:           #f4f3ef;
    --ur-card-bg:      #ffffff;
    --ur-ink:          #1a1a18;
    --ur-ink-soft:     #6b6b67;
    --ur-ink-faint:    #aaaaaa;
    --ur-border:       rgba(0, 0, 0, 0.1);

    --ur-navy:         #0d3b6e;
    --ur-blue:         #185fa5;
    --ur-blue-soft:    #e6f1fb;
    --ur-blue-line:    #b5d4f4;

    --ur-green:        #3b6d11;
    --ur-green-soft:   #eaf3de;
    --ur-amber:        #854f0b;
    --ur-amber-soft:   #faeeda;
    --ur-red:          #791f1f;
    --ur-red-soft:     #fcebeb;

    --ur-radius:       12px;
    --ur-radius-sm:    8px;
}

body {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    background-color: var(--ur-bg);
    color: var(--ur-ink);
}

/* ---- Override leggeri Bootstrap ------------------------------------- */

.card {
    background: var(--ur-card-bg);
    border: 0.5px solid var(--ur-border);
    border-radius: var(--ur-radius);
}

.btn {
    border-radius: var(--ur-radius-sm);
}
.btn-primary {
    background: var(--ur-blue-soft);
    color: var(--ur-blue);
    border-color: var(--ur-blue-line);
    font-weight: 500;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--ur-blue-line);
    color: var(--ur-blue);
    border-color: var(--ur-blue-line);
}

.alert {
    border-radius: var(--ur-radius-sm);
}

.table {
    --bs-table-bg: transparent;
}
.table > thead > tr > th {
    font-size: 11px;
    font-weight: 500;
    color: var(--ur-ink-soft);
    border-bottom: 0.5px solid var(--ur-border);
}
.table > tbody > tr > td {
    vertical-align: middle;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}
/* Rows whose cells hold several lines (name over username, course over its title): aligned
   at the top, so the first lines read across */
.table.ur-table-top > tbody > tr > td { vertical-align: top; }
/* A link made of a text and an icon after it (download a report): apart, the icon muted and never
   underlined, the text underlined only on hover */
a.ur-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-decoration: none;
}
a.ur-icon-link > .bi { color: var(--ur-ink-soft); }
a.ur-icon-link:hover > span { text-decoration: underline; }

/* A long text on one line, cut with an ellipsis (the whole text in its title). Clamped rather
   than nowrap: in a table the column can still shrink to fit the page, down to min-width */
.ur-ellipsis {
    min-width: 140px;
    max-width: 280px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}

.badge {
    font-weight: 500;
    border-radius: 10px;
}
/* ---- Topbar --------------------------------------------------------- */

.ur-topbar {
    background: var(--ur-navy);
    height: 52px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}
.ur-topbar-logo {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}
.ur-topbar-logo span {
    color: #7fb3e8;
}
.ur-topbar-user {
    color: #b5d4f4;
    font-size: 12px;
}
/* Logout is a form (POST + CSRF) that reads as a link */
.ur-topbar-logout {
    display: inline;
}
.ur-topbar-logout button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #7fb3e8;
    cursor: pointer;
}
.ur-topbar-logout button:hover {
    text-decoration: underline;
}
/* Links in the bar of the shared shell (platform/app.twig): the other app, one's sign-in */
.ur-topbar-link {
    color: #7fb3e8;
    text-decoration: none;
}
.ur-topbar-link:hover {
    text-decoration: underline;
}
/* An admin viewing the app as someone else: another colour for the whole bar, in every shell */
.ur-topbar-impersonating {
    background: var(--ur-amber);
}
.ur-impersonation-banner {
    color: #fff;
    font-size: 13px;
}
.ur-topbar-impersonating .ur-topbar-user,
.ur-topbar-impersonating .ur-topbar-logout button {
    color: var(--ur-amber-soft);
}
.ur-impersonation-banner .ur-topbar-logout button {
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
}

/* ---- Sidebar -------------------------------------------------------- */

.left-column {
    background-color: var(--ur-navy);
    color: white;
    padding: 10px;
    height: 100%;
    padding-top: 72px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
}
h2 {
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 6px;
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7fb3e8;
}
a.menu-item {
    display: block;
    padding: 7px 10px 7px 30px;
    margin-bottom: 1px;
    color: #c9d8e8;
    text-decoration: none;
    border-radius: var(--ur-radius-sm);
    transition: background .15s;
}
a.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ---- Layout --------------------------------------------------------- */

.ur-main {
    padding-top: 52px;
}
.ur-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}
/* The admin page's column: a flex item never narrower than its content by default, so a wide
   table pushed the whole page sideways, under the fixed sidebar. At 0 it stays in the window
   and a wide table scrolls in its card (.table-responsive) */
.ur-admin-column {
    min-width: 0;
}
.ur-admin-content {
    padding: 24px 24px 48px;
}
.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
}
.btn {
    font-size: 14px;
}
.form-control, .form-select {
    font-size: 14px;
}
.form-control::placeholder {
    opacity: 0.5 !important;
}
#fiass-header {
    background-color: #006f9e;
    height: 80px;
    background-image: url('../images/testa_fiass_bianca.png');
    background-repeat: no-repeat;
    text-align: right;
    color: white;
    font-weight: bold;
    padding: 20px 30px 0 0;
}
#fiass-header a {
    color: #DDDDDD;
    text-decoration: none;
}

#restricted-content {
    margin-top: 20px;
    padding-bottom: 50px;
}

#user-closed-courses a {
    color: #1a85b3;
    text-decoration: none;
    font-weight: bold;
}
.filter-badge a {
    color: white;
}
#sso-output {
    outline: none;
    resize: none;
    font-family: monospace;
    font-size: 12px;
    width: 100%;
}
#verify-output {
    outline: none;
    resize: none;
    font-family: monospace;
    font-size: 12px;
    width: 100%;
}
.sortable-header {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.page-link {
    cursor: pointer;
}
.certificate-delete {
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}
#node-content a {
    /*color: #4684be;*/
    color: #000000;
    text-decoration: none;
}
#node-content a:hover {
    text-decoration: underline;
}
#nodes-breadcrumb {
    margin: 5px 0px;
}
#node-content .nodes-crumb {
    color: #1975ec;
}
#year-select {
    padding: 0px 10px 5px 10px;
}
/* year-selector dentro la sidebar scura (skeleton-admin) */
/* In coda al menu admin: la versione del codice in esecuzione (AppVersion). */
.left-column .ur-app-version {
    margin-top: 24px;
    padding: 0 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--bs-font-monospace);
}

.left-column #year-select .input-group-text,
.left-column #year-select .form-select {
    background-color: #1f3a5c;
    color: #fff;
    border-color: #2f5070;
}

/* ==================================================================== */
/* Componenti UNiREPORT (ur-)                                           */
/* ==================================================================== */

[x-cloak] { display: none !important; }

/* ---- KPI tile ------------------------------------------------------- */

.ur-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.ur-kpi {
    background: var(--ur-bg);
    border-radius: var(--ur-radius-sm);
    padding: 12px 14px;
}
.ur-kpi-val {
    font-size: 24px;
    font-weight: 600;
}
.ur-kpi-lbl {
    font-size: 11px;
    color: var(--ur-ink-soft);
    margin-top: 2px;
    line-height: 1.3;
}
.ur-kpi-sub {
    font-size: 11px;
    color: var(--ur-ink-soft);
    margin-top: 4px;
}
.ur-val-green { color: var(--ur-green); }
.ur-val-amber { color: var(--ur-amber); }
.ur-val-blue  { color: var(--ur-blue); }
.ur-val-red   { color: var(--ur-red); }

/* placeholder per dati non ancora esposti dal backend */
.ur-kpi-tbd .ur-kpi-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--ur-ink-faint);
    letter-spacing: .04em;
}

@media (max-width: 1100px) {
    .ur-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tab nav colorate ----------------------------------------------- */

.ur-tabs {
    display: flex;
    border-bottom: 0.5px solid var(--ur-border);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ur-tab {
    font-size: 12px;
    padding: 8px 14px;
    color: var(--ur-ink-soft);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .15s;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
}
.ur-tab:hover { color: var(--ur-ink); }
/* Tabs that are links (server-side tabs, e.g. the send status page) */
a.ur-tab { text-decoration: none; }
.ur-tab.act  { font-weight: 600; }
.ur-tab[data-color="blue"].act   { color: #0c3d6b; border-bottom-color: #1d6fa8; background: #e3f0fa; }
.ur-tab[data-color="green"].act  { color: #1b5e20; border-bottom-color: #2e7d32; background: #e8f5e9; }
.ur-tab[data-color="teal"].act   { color: #005662; border-bottom-color: #00838f; background: #e0f7fa; }
.ur-tab[data-color="purple"].act { color: #3d1f7a; border-bottom-color: #6a4c9c; background: #f0ebfa; }
.ur-tab[data-color="orange"].act { color: #bf360c; border-bottom-color: #e65100; background: #fff3e0; }
.ur-tab[data-color="slate"].act  { color: #263238; border-bottom-color: #546e7a; background: #eceff1; }
.ur-tab[data-color="rose"].act   { color: #880e4f; border-bottom-color: #ad1457; background: #fce4ec; }

/* Filters that are links, above a table (e.g. why reports are missing, on the send status page) */
.ur-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.ur-chip {
    font-size: 12px;
    padding: 3px 10px;
    border: 0.5px solid var(--ur-border);
    border-radius: 999px;
    color: var(--ur-ink-soft);
    text-decoration: none;
    white-space: nowrap;
}
.ur-chip:hover { color: var(--ur-ink); }
.ur-chip.act { color: #bf360c; border-color: #e65100; background: #fff3e0; font-weight: 600; }

/* A tab only the office sees: its node hides it from the user and the referent. Translucent
   stripes, so they show over the active tab's colour too */
.ur-tab.ur-tab-admin-only[data-color] {
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .03) 0 6px, rgba(0, 0, 0, .08) 6px 12px);
}

/* An e-mail as it was received, inside its sandboxed frame */
.ur-email-frame { width: 100%; height: 480px; border: 1px solid var(--ur-border); border-radius: var(--ur-radius-sm); background: var(--ur-card-bg); }
.ur-email-text { white-space: pre-wrap; font-size: 0.875rem; background: var(--ur-bg); padding: 0.75rem; border-radius: var(--ur-radius-sm); }

/* ---- Progress bar --------------------------------------------------- */

.ur-progress {
    background: #e4e3df;
    border-radius: 4px;
    height: 7px;
    margin: 7px 0 3px;
    overflow: hidden;
}
.ur-progress-fill {
    height: 100%;
    border-radius: 4px;
}

.ur-mini-progress {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ur-mini-track {
    background: #e4e3df;
    border-radius: 3px;
    height: 5px;
    width: 90px;
    overflow: hidden;
    flex-shrink: 0;
}
.ur-mini-fill {
    height: 100%;
    border-radius: 3px;
}
.ur-fill-green { background: #639922; }
.ur-fill-amber { background: #ba7517; }
.ur-fill-red   { background: #a32d2d; }

/* ---- Badge pillola -------------------------------------------------- */

.ur-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
}
.ur-badge-green { background: var(--ur-green-soft); color: #27500a; }
.ur-badge-amber { background: var(--ur-amber-soft); color: #633806; }
.ur-badge-red   { background: var(--ur-red-soft);   color: #791f1f; }
.ur-badge-blue  { background: var(--ur-blue-soft);  color: #0c447c; }
.ur-badge-gray  { background: #f1efe8;              color: #5f5e5a; }

/* ---- Semaforo ------------------------------------------------------- */

.ur-semaphore {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.ur-sem-green { background: #2e7d32; }
.ur-sem-amber { background: #ba7517; }
.ur-sem-red   { background: #a32d2d; }

/* ---- Tag nodo / sezione -------------------------------------------- */

/* The name of the page, at the top of its first card */
.ur-page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--ur-ink);
    margin: 0;
}

.ur-section-label {
    font-size: 12px;
    color: var(--ur-ink-soft);
    margin-bottom: 10px;
}
.ur-nodo-tag {
    display: inline-block;
    background: var(--ur-blue-soft);
    color: #0c447c;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
    border: 0.5px solid var(--ur-blue-line);
}

/* Dato etichettato in una scheda di dettaglio: etichetta minuta sopra, valore sotto. */
.ur-field {
    font-size: 12px;
    color: var(--ur-ink-soft);
}
.ur-field-label {
    font-size: 11px;
    color: var(--ur-ink-faint);
}

/* Stato vuoto di una tabella: discreto e centrato, non un buco nella pagina. */
.ur-empty {
    font-size: 12px;
    color: var(--ur-ink-soft);
    padding: 10px 0;
    text-align: center;
}

/* ---- Al posto degli style="" inline ------------------------------- */
/* La Content-Security-Policy non ammette stili inline (niente
   'unsafe-inline'): ogni stile dei template vive in questo file.      */

.ur-clickable { cursor: pointer; }

.ur-mb-14 { margin-bottom: 14px; }
.ur-mb-18 { margin-bottom: 18px; }
.ur-mt-6  { margin-top: 6px; }

/* Larghezze fisse delle colonne di tabella. */
.ur-w-40  { width: 40px; }
.ur-w-50  { width: 50px; }
.ur-w-90  { width: 90px; }
.ur-w-100 { width: 100px; }
.ur-w-110 { width: 110px; }
.ur-w-130 { width: 130px; }
.ur-w-150 { width: 150px; }
.ur-w-170 { width: 170px; }
.ur-w-200 { width: 200px; }
.ur-w-300 { width: 300px; }

.ur-login {
    max-width: 380px;
    margin-top: 8vh;
}

/* UniLogin: the QR code of the second factor, and its secret to type by hand */
.ur-qr {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
}
.ur-totp-secret {
    font-size: 0.85rem;
    letter-spacing: .08em;
    word-break: break-all;
}

/* Pagine d'errore (errors/page.twig): il codice della richiesta, da comunicare alla segreteria. */
.ur-error-code {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

/* Pagine pubbliche (verifica degli attestati): una colonna leggibile anche dal telefono. */
.ur-public {
    max-width: 560px;
    /* below the fixed top bar (52px), then some air */
    margin-top: calc(52px + 6vh);
    margin-bottom: 6vh;
}

/* Intestazione con avatar, nome e dati della persona (utente, referente). */
.ur-person-bar {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}
.ur-person-main {
    flex: 1;
    min-width: 0;
}
.ur-person-name {
    font-size: 15px;
    font-weight: 600;
}
.ur-person-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    margin-top: 7px;
}
.ur-section-label.ur-tight { margin: 2px 0 0; }

.ur-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ur-blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--ur-blue);
    flex-shrink: 0;
}

.ur-note {
    font-size: 12px;
    color: var(--ur-ink-soft);
    padding: 14px 0;
    text-align: center;
}

/* "Accedi come utente": suggestions under the lookup field */
.ur-lookup-list {
    max-height: 320px;
    overflow-y: auto;
}
.ur-lookup-list .dropdown-item {
    white-space: normal;
}

/* "Report generati": the day between its arrows keeps one width from day to day */
.ur-day-label {
    min-width: 230px;
}

/* Course profile: the code as a title, the live preview beside the form. The frame draws an A4
   page at its real width and is scaled to the column (--scale, set by profile-preview.js). */
.ur-course-code {
    font-size: 18px;
    font-weight: 600;
}
.ur-live-preview {
    position: sticky;
    top: 14px;
}
.ur-live-preview-frame {
    --scale: 0.7;
    /* one A4 page and its margins (1150 px at 96 dpi), scaled */
    height: calc(1150px * var(--scale));
    overflow: hidden;
    background: #e9e9e6;
    border-radius: var(--ur-radius-sm);
}
.ur-live-preview-frame iframe {
    width: 794px;
    height: 1150px;
    border: 0;
    transform: scale(var(--scale));
    transform-origin: 0 0;
}

/* The verdict of a check, at a glance: ready, blocked, or off on purpose */
.ur-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--ur-radius-sm);
    border-left: 4px solid;
}
.ur-status-ok  { background: var(--ur-green-soft); border-color: #2e7d32; color: #27500a; }
.ur-status-ko  { background: var(--ur-red-soft);   border-color: #a32d2d; color: #791f1f; }
.ur-status-off { background: #f1efe8;              border-color: #8a8984; color: #5f5e5a; }

/* File pickers of the course configuration (partials/file-picker.twig) */
.ur-file-picker { position: relative; }
.ur-file-picker-current { display: flex; align-items: center; gap: 8px; }
.ur-file-picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ur-file-thumb { width: 48px; height: 48px; object-fit: contain; background: #f1efe8; border-radius: 4px; flex-shrink: 0; }
.ur-file-icon { font-size: 28px; color: #a32d2d; }
.ur-file-picker-list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    margin-top: 4px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    background: var(--ur-card-bg);
    border: 1px solid var(--ur-border);
    border-radius: var(--ur-radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.ur-file-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 6px;
    border: 0;
    background: none;
    text-align: left;
    border-radius: 4px;
}
.ur-file-option:hover, .ur-file-option-current { background: #eef4fa; }
.ur-file-option-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---- Admin dashboard (admin/dashboard.twig, charts from DashboardCharts) ---- */

.ur-mb-10 { margin-bottom: 10px; }

/* Not the sidebar's h2 (uppercase, light blue): a heading of the page */
.ur-dash-heading { font-size: 15px; font-weight: 600; margin: 22px 0 10px; padding: 0; text-transform: none; letter-spacing: normal; color: var(--ur-ink); }

.ur-dash-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.ur-dash-grid > .card { min-width: 0; }
.ur-dash-health { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.ur-big { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ur-health { border-top: 3px solid var(--ur-border); }
.ur-health-ok { border-top-color: var(--ur-green); }
.ur-health-warn { border-top-color: #d9a441; }
.ur-health-bad { border-top-color: #c0392b; }
.ur-health-title { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ur-ink-soft); margin-bottom: 4px; }
.ur-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ur-dot-ok { background: var(--ur-green); }
.ur-dot-warn { background: #d9a441; }
.ur-dot-bad { background: #c0392b; }

.ur-swatch { width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.ur-key { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin: 0 2px; }
.ur-key-line { border-top: 2px solid var(--ur-blue); }
.ur-key-ref { border-top: 2px dashed #8a8a86; }

svg.ur-chart { display: block; width: 100%; height: auto; overflow: visible; }
.ur-ch-text { fill: var(--ur-ink-soft); font-size: 11px; }
.ur-ch-value { fill: var(--ur-ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.ur-ch-grid { stroke: rgba(0, 0, 0, .07); stroke-width: 1; }
.ur-ch-track { fill: rgba(0, 0, 0, .07); }
.ur-ch-muted { fill: #c9d6e3; }
.ur-ch-c1 { fill: var(--ur-blue); stroke: var(--ur-blue); }
.ur-ch-c2 { fill: #2a9d8f; stroke: #2a9d8f; }
.ur-ch-c3 { fill: #e0a43a; stroke: #e0a43a; }
.ur-ch-bad { fill: #c0392b; stroke: #c0392b; }
.ur-ch-line { fill: none; stroke: var(--ur-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* A line takes its series' colour: after .ur-ch-line, which would make it blue */
.ur-ch-line.ur-ch-c2 { stroke: #2a9d8f; }
.ur-ch-line.ur-ch-c3 { stroke: #e0a43a; }
.ur-ch-ref { fill: none; stroke: #8a8a86; stroke-width: 1.5; stroke-dasharray: 4 3; }
rect.ur-ch-c1, rect.ur-ch-c2, rect.ur-ch-c3, rect.ur-ch-bad, rect.ur-ch-muted { stroke: none; }
svg.ur-meter { display: block; width: 100%; height: 8px; margin-top: 6px; }

/* ---- User search: while the next results load (search-form.js, sortableSearch.busy) ---- */

.ur-results { position: relative; overflow: hidden; }
.ur-results-busy .card-body { opacity: .45; pointer-events: none; transition: opacity .15s; }
.ur-results-busy::before {
    content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 3px;
    background: var(--ur-blue); animation: ur-loading 1s ease-in-out infinite;
}
@keyframes ur-loading { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .ur-results-busy::before { animation: none; left: 0; width: 100%; opacity: .6; }
}
