/* Light palette — toned-down Reddit orange + muted semantics */
:root {
    --bg:         #F5F5F7;
    --card:       #FFFFFF;
    --text:       #1D1D1F;
    --text2:      #2C2C2E;
    --text3:      #6E6E73;
    --accent:     #D9431A;       /* Reddit orange, slightly desaturated */
    --accent2:    #B7361A;
    --green:      #3E8F5E;
    --red:        #C53030;
    --yellow:     #C58A00;
    --blue:       #2563AF;
    --border:     #E5E5EA;
    --input:      #F2F2F7;
    --hover:      #F7F7F9;
    --pill-idle-bg:     #F2F2F7;  --pill-idle-fg:     #6E6E73;
    --pill-waiting-bg:  #E3F2FD;  --pill-waiting-fg:  #1565C0;
    --pill-running-bg:  #E8F2EB;  --pill-running-fg:  #2E6B42;
    --pill-error-bg:    #FCE4E4;  --pill-error-fg:    #A31919;
    --pill-success-bg:  #E8F2EB;  --pill-success-fg:  #2E6B42;
    --scrollbar-thumb:  #CBD5E1;
    --scrollbar-track:  #F1F5F9;
    --fnt:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark palette — Reddit-style warm greys, toned-down accents */
html[data-theme="dark"] {
    --bg:         #1A1A1B;
    --card:       #272729;
    --text:       #D7DADC;
    --text2:      #D7DADC;
    --text3:      #818384;
    --accent:     #D9431A;       /* same muted Reddit orange in both themes */
    --accent2:    #B7361A;
    --green:      #4E9360;
    --red:        #C94343;
    --yellow:     #D4B03A;
    --blue:       #4D87C0;
    --border:     #343536;
    --input:      #1A1A1B;
    --hover:      #353535;
    --pill-idle-bg:     #343536;  --pill-idle-fg:     #A3A5A7;
    --pill-waiting-bg:  #142A47;  --pill-waiting-fg:  #7AA7D9;
    --pill-running-bg:  #1B3324;  --pill-running-fg:  #6AA07C;
    --pill-error-bg:    #3A1C1C;  --pill-error-fg:    #D48585;
    --pill-success-bg:  #1B3324;  --pill-success-fg:  #6AA07C;
    --scrollbar-thumb:  #474748;
    --scrollbar-track:  #272729;
}

/* ---------- Theme switch animation (ported from lk-v3) ---------- */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 9999; }
::view-transition-new(root) {
    z-index: 10000;
    animation: theme-circle-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-group(root) {
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes theme-circle-reveal {
    from { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); }
    to   { clip-path: circle(var(--r, 200%) at var(--x, 50%) var(--y, 50%)); }
}
@supports not (view-transition-name: root) {
    html { transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
    body { transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
    html, body { transition: none !important; }
}

html, body { scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--fnt);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
button {
    cursor: pointer;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    transition: background 120ms, border-color 120ms;
}
button:hover { background: var(--border); }
button.primary,
button.accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
button.primary:hover,
button.accent:hover { background: var(--accent2); border-color: var(--accent2); }
button.danger  { background: var(--red); border-color: var(--red); color: #fff; }
button.danger:hover { filter: brightness(0.9); }
button.success { background: var(--green); border-color: var(--green); color: #fff; }
button.success:hover { filter: brightness(0.9); }
/* Outlined secondary actions (Открыть / Настроить): tinted border + text */
button.outline-info {
    background: transparent;
    color: var(--blue);
    border: 1px solid var(--blue);
}
button.outline-info:hover { background: var(--blue); color: #fff; }
button.outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
button.outline-accent:hover { background: var(--accent); color: #fff; }

/* Icon-only action buttons (play / stop) — same rounded-rectangle shape as other row buttons */
button.icon-btn {
    width: 44px;
    min-width: 44px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    border: none;
    color: #fff;
}
button.icon-btn.success { background: var(--accent); }
button.icon-btn.success:hover { background: var(--accent2); }
button.icon-btn.danger { background: var(--red); }
button.icon-btn.danger:hover { filter: brightness(0.9); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.small {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 110px;
    height: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
button.tiny {
    padding: 3px 10px;
    font-size: 11px;
    min-width: 0;
    height: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Inputs ---------- */
input, select, textarea {
    background: var(--input);
    color: var(--text);
    border: 1px solid transparent;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    transition: border-color 120ms, background 120ms;
}
input[type="checkbox"], input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    flex: none;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card);
}
label {
    display: block;
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 4px;
    font-weight: 500;
}

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 28px; }

.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
}
.header nav { display: flex; gap: 4px; margin-left: 24px; }
.header nav a {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
}
.header nav a.active { background: var(--bg); color: var(--text); }
.header nav a:hover:not(.active) { background: var(--hover); text-decoration: none; }
.user-info { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text2); }

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.card h2 { margin: 0 0 16px; font-size: 17px; font-weight: 600; color: var(--text); }
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--text); }

/* ---------- Login page (CRM-style, pink-purple gradient) ---------- */
/* ---------- Toast ---------- */
.toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    min-width: 240px;
    animation: toast-in 200ms ease-out;
}
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
@keyframes toast-in {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 25% 25%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #FEFBFF 0%, #F8F4FF 100%);
}
.login-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 72, 153, 0.08);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 16px 48px rgba(236, 72, 153, 0.12);
    text-align: center;
}
.login-logo-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(236, 72, 153, 0.2));
}
.login-box h1 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1D1D1F;
}
.login-box .subtitle {
    color: #6E6E73;
    font-size: 16px;
    margin-bottom: 32px;
}
.login-box button.sso-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
    transition: box-shadow 200ms, background 200ms;
}
.login-box button.sso-btn:hover {
    background: linear-gradient(135deg, #DB2777 0%, #7C3AED 100%);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.4);
}
.login-box .alert {
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: left;
}
.login-box .alert.error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.login-box .alert.warn  { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.login-box .footer-note {
    margin-top: 24px;
    font-size: 13px;
    color: #6E6E73;
    line-height: 1.5;
}
.login-box .copyright {
    margin-top: 24px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Tables ---------- */
/* Card wraps the table and scrolls horizontally on narrow viewports so the profiles
   table doesn't break the page layout on phones / split-view windows. */
.card > table {
    min-width: 900px;
}
.card {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    table-layout: fixed;
}
th, td {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
    overflow-wrap: anywhere;
}
th {
    color: var(--text3);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    background: transparent;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--hover); }
/* Analytics table: frozen / non-frozen cells need solid opaque backgrounds
   that survive even the tr:hover override above. Without !important the hover
   rule wins for tags-cell painting and the frozen sticky column looks see-
   through when scrolled horizontally. */
.analytics-cell-row-even { background-color: var(--bg) !important; }
.analytics-cell-row-odd  { background-color: var(--card) !important; }
/* When a conditional-formatting tint applies to a body cell, let it override
   the row stripe so the gradient is visible. The colour itself is fully
   opaque, so the stacking issue is solved either way. */
.analytics-cell-cf { background-color: var(--cf-bg) !important; }
td strong { color: var(--text); font-weight: 600; display: block; line-height: 1.35; }
td .muted { color: var(--text3); }

/* Actions cell: flex goes on a wrapper div, NOT on the td itself
   (flex on td breaks row height alignment) */
.row-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.row-actions button { white-space: nowrap; }

/* ---------- Status pills ---------- */
.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.status-idle    { background: var(--pill-idle-bg); color: var(--pill-idle-fg); }
.status-waiting { background: var(--pill-waiting-bg); color: var(--pill-waiting-fg); }
.status-running { background: var(--pill-running-bg); color: var(--pill-running-fg); }
.status-error   { background: var(--pill-error-bg); color: var(--pill-error-fg); }
.status-success { background: var(--pill-success-bg); color: var(--pill-success-fg); }

/* ---------- Grid & flex helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.flex-row { display: flex; gap: 8px; align-items: center; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.muted { color: var(--text3); }
.small { font-size: 12px; }

/* ---------- Live log stream ---------- */
.log-stream {
    background: #0B0D12;
    color: #E4E6EB;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: "SF Mono", "Consolas", ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.55;
    max-height: 420px;
    overflow-y: auto;
}
.log-line { padding: 1px 0; white-space: pre-wrap; }
.log-info    { color: #E4E6EB; }
.log-warn    { color: #FCD34D; }
.log-error   { color: #FCA5A5; }
.log-success { color: #6EE7B7; }
.log-ts      {
    color: #6B7280;
    margin-right: 10px;
    display: inline-block;
    width: 64px;
    text-align: right;
}
.log-separator {
    color: #9CA3AF;
    text-align: center;
    padding: 10px 0;
    margin: 8px 0;
    font-size: 11px;
    letter-spacing: 1px;
    border-top: 1px dashed #374151;
    border-bottom: 1px dashed #374151;
    background: rgba(156, 163, 175, 0.05);
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal {
    background: var(--card);
    border-radius: 14px;
    padding: 28px;
    width: 640px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.modal h3 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ---------- Day-of-week picker ---------- */
.dow-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.dow-chip {
    min-width: 44px;
    padding: 6px 10px;
    text-align: center;
    background: var(--input);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    user-select: none;
    transition: all 120ms;
}
.dow-chip:hover { background: var(--border); }
.dow-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ---------- Hours range ---------- */
.hours-range { display: flex; gap: 10px; align-items: center; }
.hours-range input { flex: 1; text-align: center; }
.hours-range .dash { color: var(--text3); }

/* ---------- Page title row ---------- */
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.page-title h2 { margin: 0; }

/* ---------- User avatar menu (lk-v3 style) ---------- */
.avatar-btn {
    background: none;
    border: 2px solid transparent;
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    transition: border-color 0.2s;
}
.avatar-btn:hover { border-color: var(--accent); background: none; }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 50;
}
.user-menu-head {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--hover) 100%);
    border-bottom: 1px solid var(--border);
}
.user-menu-name { font-weight: 700; font-size: 14px; color: var(--text); }
.user-menu-sub  { font-size: 11px; color: var(--text3); margin-top: 2px; }
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
}
.user-menu-item:hover { background: var(--hover); color: var(--text); }
/* Logout item: neutral text until hover, then red background + white text for clarity on both themes */
.user-menu-item.danger { color: var(--red); font-weight: 600; }
.user-menu-item.danger:hover { background: var(--red); color: #fff; }
.user-menu-wrap { position: relative; }

/* ---------- Theme toggle (lk-v3 style) ---------- */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle.light {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #FCD34D;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.theme-toggle.dark {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border: 1px solid #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(148, 163, 184, 0.1);
}
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle.light:hover { box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4); }
.theme-toggle.dark:hover  { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.theme-toggle:hover .theme-icon { animation: theme-rotate 0.6s ease-in-out; }
.theme-toggle:active { transform: scale(0.95); }

.theme-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.theme-toggle.light::before {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
}
.theme-toggle.dark::before {
    background: radial-gradient(circle at 30% 30%, rgba(148, 163, 184, 0.2) 0%, transparent 70%);
}

.theme-icon {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    animation: theme-fade-in 0.3s ease-in-out;
}
.theme-toggle.light .theme-icon { color: #F59E0B; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5)); }
.theme-toggle.dark  .theme-icon { color: #FCD34D; filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.5)); }

.theme-toggle .star {
    position: absolute;
    border-radius: 50%;
    background: #FCD34D;
    animation: theme-fade-in 0.4s ease-in-out both;
}
.theme-toggle .star-1 {
    top: 20%; right: 25%;
    width: 3px; height: 3px;
    box-shadow: 0 0 4px #FCD34D;
    animation-delay: 0.1s;
}
.theme-toggle .star-2 {
    bottom: 25%; left: 20%;
    width: 2px; height: 2px;
    box-shadow: 0 0 3px #FCD34D;
    animation-delay: 0.2s;
}

@keyframes theme-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes theme-fade-in {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------- Segmented control (mode toggle) ---------- */
.seg {
    display: inline-flex;
    background: var(--input);
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
}
.seg-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
}
.seg-btn.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.seg-btn:hover:not(.active) { color: var(--text); }

/* ---------- Readonly inputs (poster view) ---------- */
input:disabled, select:disabled, textarea:disabled {
    opacity: 0.7;
    cursor: default;
}

/* ---------- Browser screencast preview ---------- */
.screencast-wrap {
    background: #0B0D12;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.screencast {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.screencast-empty {
    color: #6B7280;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Spinner: thin ring using conic-gradient */
.spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 270deg, transparent 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login alert in dark mode stays on the light login surface, so use explicit colors */
