/*!
 * PROTO SMS theme (protosms.css) - Satoshi + Bootstrap 5.3 refinements.
 * Contract: loaded via <link rel="stylesheet" href="{{ asset('css/protosms.css') }}">
 * AFTER the Bootstrap CDN link. Brand colour arrives per layout as inline
 * :root vars from settings (theme.primary_color). See docs/42-ui-ux-guidelines.md.
 * Sleek = typography, spacing, hairlines, restrained colour.
 * NO gradients, NO glassmorphism/blur (docs/42 ban).
 */

/* ---------- 1. Satoshi (self-hosted, Fontshare source, free for commercial use) ---------- */
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/satoshi-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/satoshi-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/satoshi-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Satoshi";
    src: url("../fonts/satoshi-900.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- 2. Tokens: Bootstrap overrides + brand vars ---------- */
:root {
    /* Brand (layouts override inline from settings; --primary kept for BC). Robust palette: navy #1B2A4A / gold #C89B3C + button/header/accent. */
    --proto-primary: var(--primary, #1B2A4A);
    --proto-primary-ink: #ffffff;
    --proto-secondary: var(--secondary, #C89B3C);
    --proto-accent: var(--accent, var(--proto-secondary, #C89B3C));
    --proto-button: var(--button, var(--proto-primary, #1B2A4A));
    --proto-button-text: var(--button-text, #FFFFFF);
    --proto-button-hover: var(--button-hover, #12203A);
    --proto-header: var(--header, var(--proto-primary, #1B2A4A));
    --proto-sidebar: var(--sidebar, var(--proto-header, var(--proto-primary, #1B2A4A)));

    /* Bootstrap type + shape + surface tokens. */
    --bs-body-font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-bg: #f1f5f9;
    --bs-body-color: #0f172a;
    --bs-secondary-color: #64748b;
    --bs-border-color: #e2e8f0;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-sm: 0.5rem;
    --bs-border-radius-lg: 1rem;
    --bs-border-radius-xl: 1.25rem;
    --bs-border-radius-2xl: 1.5rem;

    /* Primary driven by the school brand var (solid fallback first, then color-mix). */
    --bs-primary: var(--proto-primary);
    --bs-link-color: var(--proto-primary);
    --bs-link-hover-color: var(--proto-primary);
    --bs-link-hover-color: color-mix(in srgb, var(--proto-primary) 78%, black);
}

/* ---------- 3. Base typography ---------- */
body {
    font-family: var(--bs-body-font-family);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    letter-spacing: -0.015em;
}
::selection {
    background-color: #c7d2fe;
    background-color: color-mix(in srgb, var(--proto-primary) 22%, white);
}
:focus-visible {
    outline: 3px solid var(--proto-primary);
    outline-offset: 2px;
}

/* ---------- 4. Buttons (taller, rounded, weighty; ≥44px targets per docs/42) ---------- */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.65rem;
}
.btn-sm {
    min-height: 44px;
    font-size: 0.85rem;
}
.btn-primary {
    --bs-btn-color: var(--proto-button-text, var(--proto-primary-ink));
    --bs-btn-bg: var(--proto-button, var(--proto-primary));
    --bs-btn-border-color: var(--proto-button, var(--proto-primary));
    --bs-btn-hover-color: var(--proto-button-text, var(--proto-primary-ink));
    --bs-btn-hover-bg: var(--proto-button-hover, var(--proto-button, var(--proto-primary)));
    --bs-btn-hover-bg: color-mix(in srgb, var(--proto-button, var(--proto-primary)) 88%, black);
    --bs-btn-hover-border-color: var(--proto-button-hover, var(--proto-button, var(--proto-primary)));
    --bs-btn-hover-border-color: color-mix(in srgb, var(--proto-button, var(--proto-primary)) 88%, black);
    --bs-btn-active-color: var(--proto-button-text, var(--proto-primary-ink));
    --bs-btn-active-bg: var(--proto-button-hover, var(--proto-button, var(--proto-primary)));
    --bs-btn-active-bg: color-mix(in srgb, var(--proto-button, var(--proto-primary)) 80%, black);
    --bs-btn-active-border-color: var(--proto-button-hover, var(--proto-button, var(--proto-primary)));
    --bs-btn-active-border-color: color-mix(in srgb, var(--proto-button, var(--proto-primary)) 80%, black);
    --bs-btn-disabled-color: var(--proto-button-text, var(--proto-primary-ink));
    --bs-btn-disabled-bg: var(--proto-button, var(--proto-primary));
    --bs-btn-disabled-border-color: var(--proto-button, var(--proto-primary));
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.22rem #c7d2fe;
    box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--proto-primary) 28%, transparent);
}
.btn-outline-primary {
    --bs-btn-color: var(--proto-button, var(--proto-primary));
    --bs-btn-border-color: var(--proto-button, var(--proto-primary));
    --bs-btn-hover-color: var(--proto-button-text, var(--proto-primary-ink));
    --bs-btn-hover-bg: var(--proto-button, var(--proto-primary));
    --bs-btn-hover-border-color: var(--proto-button, var(--proto-primary));
    --bs-btn-active-color: var(--proto-button-text, var(--proto-primary-ink));
    --bs-btn-active-bg: var(--proto-button, var(--proto-primary));
    --bs-btn-active-bg: color-mix(in srgb, var(--proto-button, var(--proto-primary)) 85%, black);
    --bs-btn-active-border-color: var(--proto-button, var(--proto-primary));
}
.btn-link {
    --bs-btn-color: var(--proto-accent, var(--proto-primary));
}

/* ---------- 4b. Glow tiers: light bloom hugging every button's border (NOT a
   drop shadow - zero offset, tight spread). Tint follows the button variant via
   --proto-glow; hero CTAs marked .btn-glow get a stronger tier; disabled flat. ---------- */
.btn {
    --proto-glow: var(--proto-primary);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.2s ease;
}
.btn-primary, .btn-outline-primary { --proto-glow: var(--proto-button, var(--proto-primary)); }
.btn-secondary, .btn-outline-secondary { --proto-glow: #6c757d; }
.btn-success, .btn-outline-success { --proto-glow: #198754; }
.btn-danger, .btn-outline-danger { --proto-glow: #dc3545; }
.btn-warning, .btn-outline-warning { --proto-glow: #e0a800; }
.btn-info, .btn-outline-info { --proto-glow: #0aa6c2; }
.btn-light, .btn-outline-light { --proto-glow: #adb5bd; }
.btn-dark, .btn-outline-dark { --proto-glow: #212529; }
.btn:not(:disabled) {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px color-mix(in srgb, var(--proto-glow) 15%, transparent),
        0 0 10px -6px color-mix(in srgb, var(--proto-glow) 35%, transparent);
}
.btn:not(:disabled):hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1.5px color-mix(in srgb, var(--proto-glow) 24%, transparent),
        0 0 14px -5px color-mix(in srgb, var(--proto-glow) 50%, transparent);
}
.btn:not(:disabled):focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1.5px color-mix(in srgb, var(--proto-glow) 30%, transparent),
        0 0 0 0.3rem color-mix(in srgb, var(--proto-glow) 26%, transparent),
        0 0 16px -4px color-mix(in srgb, var(--proto-glow) 55%, transparent);
}
.btn-glow:not(:disabled) {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 0 1px color-mix(in srgb, var(--proto-glow) 22%, transparent),
        0 0 14px -4px color-mix(in srgb, var(--proto-glow) 48%, transparent);
}
.btn-glow:not(:disabled):hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1.5px color-mix(in srgb, var(--proto-glow) 36%, transparent),
        0 0 18px -3px color-mix(in srgb, var(--proto-glow) 64%, transparent);
}
.btn-glow:not(:disabled):active {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px color-mix(in srgb, var(--proto-glow) 30%, transparent),
        0 0 10px -5px color-mix(in srgb, var(--proto-glow) 40%, transparent);
}

/* ---------- 5. Forms (taller inputs, hairline borders, brand focus ring) ---------- */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.form-control, .form-select {
    min-height: 44px;
    font-size: 1rem;
    border-radius: 0.65rem;
    border-color: #cbd5e1;
}
.form-control:focus, .form-select:focus {
    border-color: var(--proto-primary);
    box-shadow: 0 0 0 0.2rem #c7d2fe;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--proto-primary) 22%, transparent);
}
.form-check-input {
    width: 1.15em;
    height: 1.15em;
}
.form-check-input:checked {
    background-color: var(--proto-primary);
    border-color: var(--proto-primary);
}
.form-check-input:focus {
    border-color: var(--proto-primary);
    box-shadow: 0 0 0 0.2rem #c7d2fe;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--proto-primary) 22%, transparent);
}
.input-group-text {
    border-radius: 0.65rem;
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #475569;
}
.invalid-feedback {
    font-size: 0.85rem;
}

/* ---------- 6. Cards: soft 1px hairline, restrained radius, no heavy shadow ---------- */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    padding: 0.85rem 1.1rem;
}
.card-header:first-child {
    border-radius: 0.9rem 0.9rem 0 0;
}
.card-footer {
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
}
.card-footer:last-child {
    border-radius: 0 0 0.9rem 0.9rem;
}

/* Auth card (guest layout) - centred, narrow, quiet. */
.guest-card, .auth-card {
    max-width: 460px;
}
.guest-card .card, .auth-card .card {
    border-radius: 1rem;
}
.brand-mark {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background-color: var(--proto-accent, var(--proto-primary));
    color: var(--proto-primary-ink);
    font-weight: 700;
}

/* Brand utilities */
.bg-accent { background-color: var(--proto-accent) !important; color: #fff !important; }
.text-accent { color: var(--proto-accent) !important; }
.border-accent { border-color: var(--proto-accent) !important; }
.bg-button { background-color: var(--proto-button) !important; color: var(--proto-button-text) !important; }

/* ---------- 7. Sidebar: slim, sticky, brand-solid, white active pill ---------- */
.sidebar {
    background-color: var(--proto-sidebar, var(--proto-primary));
    color: var(--proto-primary-ink);
}
.sidebar a, .sidebar .roadmap-item, .sidebar .nav-link, .sidebar .sidebar-link {
    min-height: 44px;
    border-radius: 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
}
.sidebar .nav-link, .sidebar nav a, .sidebar .sidebar-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.sidebar .nav-link:hover, .sidebar nav a:hover, .sidebar .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
/* Canonical active pill (white pill on brand). Works with aria-current or .active. */
.sidebar .nav-link.active,
.sidebar nav a.active,
.sidebar a[aria-current="page"] {
    background-color: #fff;
    color: #0f172a;
    font-weight: 600;
}
.sidebar .nav-heading {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}
.sidebar .badge {
    font-size: 0.68rem;
}
@media (min-width: 992px) {
    .sidebar {
        width: 248px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        /* Bootstrap's responsive offcanvas forces transparent !important at lg+;
           re-assert the brand background or white text sits on a light page. */
        background-color: var(--proto-sidebar, var(--proto-primary)) !important;
        color: var(--proto-primary-ink);
    }
    .app-main {
        min-width: 0;
    }
}
@media (max-width: 991.98px) {
    .sidebar.offcanvas-start {
        width: 280px;
    }
}
/* Flex item must shrink below content width on phones, otherwise wide
   descendants (tables, filter rows) push the whole page past 375px. */
.app-main {
    min-width: 0;
}

/* ---------- 8. Topbar: slim white bar with hairline (overridden inline to --proto-header when branded) ---------- */
.topbar {
    background-color: var(--proto-header, #fff);
    border-bottom: 1px solid #e2e8f0;
    min-height: 56px;
}
.topbar.bg-white { background-color: var(--proto-header, #fff) !important; }
.topbar .container-fluid {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.topbar .btn {
    min-height: 40px;
}

/* ---------- 9. Public site chrome ---------- */
.site-header {
    background-color: var(--proto-header, var(--proto-primary));
}
.site-header .nav-link {
    color: rgba(255, 255, 255, 0.8);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}
.site-header .nav-link:hover {
    color: #fff;
}
.site-header .navbar-brand {
    letter-spacing: -0.01em;
}
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
}
.site-footer a {
    color: #e2e8f0;
}

/* ---------- 10. Tables: hairline wrap, compact type, sticky head, row hover ---------- */
.table-responsive {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background-color: #fff;
}
.table-responsive .table {
    margin-bottom: 0;
}
.table {
    font-size: 0.925rem;
}
.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.table > :not(caption) > * > * {
    padding: 0.7rem 0.85rem;
}
.table-hover > tbody > tr:hover > * {
    --bs-table-hover-bg: #f8fafc;
    --bs-table-hover-bg: color-mix(in srgb, var(--proto-primary) 5%, white);
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-striped-bg: #f8fafc;
}
/* Sticky filter bar above tables. */
.filter-bar {
    position: sticky;
    top: 64px;
    z-index: 1015;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem;
}

/* ---------- 11. Badges (solid only per docs/42) ---------- */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.text-bg-primary, .badge.bg-primary {
    background-color: var(--proto-button, var(--proto-primary)) !important;
    color: var(--proto-button-text, var(--proto-primary-ink)) !important;
}
.text-bg-secondary, .badge.bg-secondary {
    background-color: var(--proto-accent, var(--proto-secondary)) !important;
    color: #fff !important;
}

/* ---------- 12. Pills, list groups, dropdowns, pagination, alerts, progress ---------- */
.nav-pills .nav-link {
    border-radius: 0.6rem;
    font-weight: 600;
    color: #334155;
}
.nav-pills .nav-link.active {
    background-color: var(--proto-button, var(--proto-primary));
    color: var(--proto-button-text, var(--proto-primary-ink));
}
.list-group-item {
    border-color: #e2e8f0;
}
.list-group-item.active {
    background-color: var(--proto-button, var(--proto-primary));
    border-color: var(--proto-button, var(--proto-primary));
    color: var(--proto-button-text, var(--proto-primary-ink));
}
.dropdown-item:active, .dropdown-item.active {
    background-color: var(--proto-button, var(--proto-primary));
    color: var(--proto-button-text, var(--proto-primary-ink));
}
.page-link {
    color: var(--proto-button, var(--proto-primary));
    border-color: #e2e8f0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-link:hover {
    color: var(--proto-primary);
    background-color: #f1f5f9;
    background-color: color-mix(in srgb, var(--proto-primary) 7%, white);
}
.page-item.active .page-link {
    background-color: var(--proto-button, var(--proto-primary));
    border-color: var(--proto-button, var(--proto-primary));
    color: var(--proto-button-text, var(--proto-primary-ink));
}
.page-link:focus {
    box-shadow: 0 0 0 0.2rem #c7d2fe;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--proto-primary) 22%, transparent);
}
.alert {
    border-radius: 0.75rem;
    border-width: 1px;
}
.alert-primary {
    background-color: #eef2ff;
    background-color: color-mix(in srgb, var(--proto-primary) 10%, white);
    border-color: #c7d2fe;
    border-color: color-mix(in srgb, var(--proto-primary) 30%, white);
    color: #1e3a8a;
    color: color-mix(in srgb, var(--proto-primary) 75%, black);
}
.progress-bar {
    background-color: var(--proto-button, var(--proto-primary));
}
.border-primary {
    border-color: var(--proto-accent, var(--proto-primary)) !important;
}
.text-primary, .link-primary {
    color: var(--proto-accent, var(--proto-primary)) !important;
}
.bg-primary {
    background-color: var(--proto-button, var(--proto-primary)) !important;
    color: var(--proto-button-text, var(--proto-primary-ink)) !important;
}
.bg-brand {
    background-color: var(--proto-button, var(--proto-primary));
    color: var(--proto-button-text, var(--proto-primary-ink));
}
.form-check-input:checked[type="radio"] {
    background-color: var(--proto-button, var(--proto-primary));
}

/* ---------- 13. Modals, toasts, empty states ---------- */
.modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}
.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}
.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 0.9rem 1.25rem;
}
.modal-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}
.toast {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: inherit;
}
/* Notiflix injects inline styles; keep its type in the school font. */
[id^="Notiflix"] {
    font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #64748b;
}
.empty-state .bi {
    font-size: 2rem;
    color: #94a3b8;
}
.empty-state .empty-state-title {
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.5rem;
}

/* ---------- 14. Print (nav/actions/filters hidden; 12mm margins; B/W-safe) ---------- */
@page {
    margin: 12mm;
}
@media print {
    .sidebar, .topbar, .site-header, .site-footer, .no-print,
    .filter-bar, .pagination, .btn, .toast, [id^="Notiflix"] {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    main {
        margin: 0 !important;
    }
    .card, .table-responsive {
        border: 1px solid #999;
        box-shadow: none !important;
    }
    * {
        text-shadow: none !important;
        box-shadow: none !important;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ---------- 10b. Responsive tables: sticky first column on phones ---------- */
@media (max-width: 767.98px) {
    .table-sticky-first > thead > tr > :first-child {
        position: sticky;
        left: 0;
        z-index: 3;
    }
    .table-sticky-first > tbody > tr > :first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        background-color: #fff;
        box-shadow: inset -1px 0 0 #e2e8f0;
        min-width: 9rem;
    }
    .table-striped.table-sticky-first > tbody > tr:nth-of-type(odd) > :first-child {
        background-color: #f8fafc;
    }
    /* Tap-friendly row actions inside horizontal scroll areas. */
    .table-sticky-first .btn-sm {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ---------- 10c. Sortable column headers ---------- */
.sort-th {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.sort-th:hover {
    color: var(--proto-primary);
    text-decoration: underline;
}
.sort-th .bi {
    font-size: 0.7rem;
}
.sort-th-active {
    color: var(--proto-primary);
}

/* ---------- 11. Skeleton loaders + image preloaders ---------- */
/* Shimmer skeleton blocks for loading states. */
.proto-skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e8edf3;
    color: transparent !important;
    border-radius: 6px;
    pointer-events: none;
    user-select: none;
}
.proto-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: proto-shimmer 1.4s infinite;
}
.proto-skeleton-text { height: 0.9em; margin-bottom: 0.45em; }
.proto-skeleton-title { height: 1.4em; width: 60%; margin-bottom: 0.6em; }
.proto-skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.proto-skeleton-thumb { width: 100%; height: 100%; border-radius: inherit; }
.proto-skeleton-card { min-height: 88px; border-radius: 12px; }
@keyframes proto-shimmer {
    100% { transform: translateX(100%); }
}
/* Image preloader: shimmer behind the photo + fade-in when loaded.
   Applied automatically by the img-preload partial. */
img.proto-img {
    background-color: #e8edf3;
    transition: opacity 0.35s ease;
}
img.proto-img-loading {
    opacity: 0;
    background: linear-gradient(90deg, #e8edf3 25%, #f5f8fb 50%, #e8edf3 75%);
    background-size: 200% 100%;
    animation: proto-img-pan 1.4s infinite linear;
}
img.proto-img-loaded {
    opacity: 1;
    background-color: transparent;
    background-image: none;
    animation: none;
}
@keyframes proto-img-pan {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .proto-skeleton::after,
    img.proto-img-loading {
        animation: none;
    }
    img.proto-img {
        transition: none;
    }
}
