@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('break-engine.css');

/* --------------------------------------------------------------------------
   Legacy variable bridge
   Maps old site.css variables to the new design-tokens for a gradual migration.
   New code should use --nr-* tokens directly.
   -------------------------------------------------------------------------- */
:root {
    --bg-color: var(--nr-background);
    --text-color: var(--nr-foreground);
    --content-bg: var(--nr-card);
    --border-color: var(--nr-border);
    --top-row-bg: var(--nr-secondary);
    --link-color: #0071c1;
    --btn-primary-bg: #1b6ec2;
    --btn-primary-border: #1861ac;
    --sidebar-gradient-start: var(--nr-sidebar-gradient-start);
    --sidebar-gradient-end: var(--nr-sidebar-gradient-end);
    --navbar-bg: #343a40;
    --card-bg: var(--nr-card);
    --input-bg: var(--nr-background);
    --input-border: var(--nr-border);
}

body.dark-mode {
    --bg-color: var(--nr-background);
    --text-color: var(--nr-foreground);
    --content-bg: transparent;           /* let main's gradient show through */
    --border-color: var(--nr-border);
    --top-row-bg: var(--nr-muted);
    --link-color: #66b3ff;
    --btn-primary-bg: #2e7bd4;
    --btn-primary-border: #2563b8;
    --sidebar-gradient-start: var(--nr-sidebar-gradient-start);
    --sidebar-gradient-end: var(--nr-sidebar-gradient-end);
    --navbar-bg: #1f1f1f;
    --card-bg: var(--nr-card);
    --input-bg: var(--nr-input-background);
    --input-border: var(--nr-border);
}

html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
                 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--link-color);
}

.btn-primary {
    color: #fff;
    background-color: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
}

.dark-mode-toggle {
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    margin-left: 1rem;
    border: none;
    background: transparent;
}

.dark-mode-toggle:hover {
    opacity: 0.7;
}

.content {
    padding-top: 1.1rem;
    background-color: var(--content-bg);
    /* Ensure text inherits the foreground token in both modes */
    color: var(--text-color);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Blazor fatal-error banner.
   This appears when the circuit is dead (Blazor JS sets display:block). Keep it compact and usable.
   Must NOT rely on Blazor for click handlers (Reload is plain JS). */
#blazor-error-ui {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1070; /* above connection banner (1060) */
    background: linear-gradient(to right, #dc2626, #e11d48);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
    padding-top: env(safe-area-inset-top);
}

.blazor-error-ui__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.blazor-error-ui__icon-wrap {
    flex-shrink: 0;
}

.blazor-error-ui__icon-wrap svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.blazor-error-ui__text {
    flex: 1;
    min-width: 0;
}

.blazor-error-ui__heading {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.blazor-error-ui__body {
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.3;
}

.blazor-error-ui__reload-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.25rem;
    padding: 0 1rem;
    background: #fff;
    color: #111;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.blazor-error-ui__reload-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    display: block;
}

.blazor-error-ui__reload-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 576px) {
    .blazor-error-ui__inner {
        flex-wrap: wrap;
        row-gap: 0.5rem;
        align-items: flex-start;
    }

    .blazor-error-ui__text {
        min-width: 0;
        flex: 1 1 100%;
    }

    .blazor-error-ui__reload-btn {
        margin-left: auto;
        height: 2.1rem;
        padding: 0 0.85rem;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Hide the Blazor Server reconnection overlay (shown when iOS/mobile backgrounds the tab).
   The page will silently reconnect; if it fails the user can still manually reload. */
#components-reconnect-modal {
    display: none !important;
}

/* ── Navigation toast ───────────────────────────────────────────────────── */
.nr-nav-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translate(-50%, 12px);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
    opacity: 0;
    z-index: 1080;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.nr-nav-toast--show {
    opacity: 1;
    transform: translate(-50%, 0);
}
/* ── Profile Experience ───────────────────────────────────────────── */
.profile-page {
    min-height: 100vh;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    background: #f9fafb;
    color: #111827;
}

.profile-shell {
    box-sizing: border-box;
    width: min(100%, 34rem);
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.profile-hero {
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
}

.profile-hero .profile-shell {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.profile-identity,
.profile-account-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-account-identity {
    width: 100%;
    min-width: 0;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
}

.profile-account-identity > div:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.profile-account-identity h2,
.profile-identity h1 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.profile-account-identity p,
.profile-identity p,
.profile-muted {
    margin: .15rem 0 0;
    color: #6b7280;
    font-size: .875rem;
    overflow-wrap: anywhere;
}

.profile-account-identity button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #4f46e5;
    font-weight: 700;
}

.profile-avatar-wrap {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
}

.profile-avatar {
    position: relative;
    z-index: 1;
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 22px rgba(79, 70, 229, .25);
}

.profile-avatar-ring {
    position: absolute;
    inset: -.2rem;
    z-index: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.profile-premium-badge,
.profile-pro-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: .45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
}

.profile-premium-badge {
    padding: .32rem .62rem;
}

.profile-pro-badge {
    margin: 0 0 0 .35rem;
    padding: .22rem .4rem;
    font-size: .62rem;
    vertical-align: middle;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-top: 1.25rem;
}

.profile-stat {
    border-radius: .75rem;
    background: #f9fafb;
    padding: .55rem .5rem;
    text-align: center;
}

.profile-stat div {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.1;
}

.profile-stat span {
    display: block;
    margin-top: .15rem;
    color: #6b7280;
    font-size: .65rem;
    line-height: 1.1;
}

.profile-card-stack {
    display: grid;
    gap: .85rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.profile-card-stack--tight {
    gap: .5rem;
    padding: 0;
}

.profile-section-card,
.profile-add-row,
.profile-alert-card,
.profile-settings-card,
.profile-empty-card,
.profile-coming-soon,
.profile-info-card,
.profile-usage-card,
.profile-perks-card {
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.profile-section-card,
.profile-add-row {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border-color: #f3f4f6;
    color: inherit;
    text-align: left;
    transition: transform .12s ease;
}

.profile-section-card:active,
.profile-add-row:active {
    transform: scale(.99);
}

.profile-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .8rem;
    font-weight: 800;
}

.profile-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.profile-icon--indigo { background: #eef2ff; color: #4f46e5; }
.profile-icon--amber { background: #fffbeb; color: #d97706; }
.profile-icon--violet { background: #f5f3ff; color: #7c3aed; }
.profile-icon--gray { background: #f3f4f6; color: #4b5563; }
.profile-icon--blue { background: #eff6ff; color: #2563eb; }
.profile-icon--green { background: #ecfdf5; color: #059669; }
.profile-icon--purple { background: #faf5ff; color: #9333ea; }
.profile-icon--orange { background: #fff7ed; color: #ea580c; }

.profile-card-body {
    min-width: 0;
    flex: 1;
}

.profile-card-row,
.profile-alert-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.profile-card-row strong,
.profile-alert-title strong {
    min-width: 0;
    color: #111827;
    font-size: .92rem;
}

.profile-card-row span {
    flex: 0 0 auto;
    color: #6b7280;
    font-size: .72rem;
}

.profile-section-card p,
.profile-assistant p,
.profile-info-card p,
.profile-usage-card p,
.profile-empty-card p,
.profile-subscription-card p,
.profile-footnote {
    margin: .2rem 0 0;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.35;
}

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .65rem;
}

.profile-chip,
.profile-status,
.profile-provider {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    max-width: 100%;
    border-radius: 999px;
    padding: .3rem .5rem;
    font-size: .7rem;
    font-weight: 700;
}

.profile-chip--green { background: #ecfdf5; color: #047857; }
.profile-chip--blue { background: #eff6ff; color: #1d4ed8; }
.profile-chip--purple { background: #faf5ff; color: #7e22ce; }
.profile-provider { background: #f3f4f6; color: #374151; }
.profile-status { background: #ecfdf5; color: #047857; }
.profile-status i,
.profile-preview-list i {
    width: .38rem;
    height: .38rem;
    border-radius: 999px;
    background: #10b981;
}

.profile-provider .profile-icon-svg {
    width: .78rem;
    height: .78rem;
}

.profile-preview-list {
    display: grid;
    gap: .25rem;
    margin-top: .65rem;
}

.profile-preview-list span {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    color: #4b5563;
    font-size: .72rem;
}

.profile-preview-list em {
    color: #4f46e5;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

.profile-assistant,
.profile-subscription-card {
    display: flex;
    gap: .75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #4f46e5, #4338ca 55%, #7e22ce);
    color: #fff;
    padding: 1rem;
    box-shadow: 0 16px 30px rgba(79, 70, 229, .18);
}

.profile-assistant strong,
.profile-subscription-card h2,
.profile-subscription-card span {
    color: #fff;
}

.profile-assistant p,
.profile-subscription-card p {
    color: #e0e7ff;
}

.profile-assistant-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .18);
}

.profile-assistant-icon .profile-icon-svg,
.profile-usage-icon .profile-icon-svg {
    width: 1.15rem;
    height: 1.15rem;
}

.profile-sub-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #f3f4f6;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.profile-sub-header__inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 4.25rem;
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.profile-sub-header h1 {
    margin: 0;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
}

.profile-sub-header p {
    margin: .1rem 0 0;
    color: #6b7280;
    font-size: .75rem;
}

.profile-back-btn {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: .8rem;
    background: transparent;
    color: #4b5563;
    font-size: 1.2rem;
}

.profile-add-btn {
    margin-left: auto;
    border: 0;
    border-radius: .8rem;
    background: #4f46e5;
    color: #fff;
    padding: .45rem .75rem;
    font-size: .82rem;
    font-weight: 800;
}

.profile-inline-message,
.profile-info-card {
    border: 1px solid #bfdbfe;
    border-radius: .9rem;
    background: #eff6ff;
    color: #1e40af;
    padding: .8rem .9rem;
    font-size: .85rem;
}

.profile-inline-message a {
    color: #1e3a8a;
    font-weight: 700;
    text-decoration: underline;
}

.profile-inline-message a:hover,
.profile-inline-message a:focus-visible {
    color: #172554;
}

.profile-empty-card {
    display: grid;
    gap: .35rem;
    padding: 1rem;
}

.profile-empty-card strong {
    color: #111827;
    font-size: .92rem;
    line-height: 1.25;
}

.profile-empty-card p {
    margin: 0;
}

.profile-info-card button,
.profile-empty-card button {
    width: max-content;
    margin-top: .35rem;
    border: 0;
    border-radius: .75rem;
    background: #4f46e5;
    color: #fff;
    padding: .55rem .85rem;
    font-size: .82rem;
    font-weight: 800;
}

.profile-usage-card,
.profile-info-card {
    display: flex;
    gap: .75rem;
    padding: .9rem;
}

.profile-usage-card--premium {
    border-color: #fde68a;
    background: #fffbeb;
}

.profile-usage-icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .75rem;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #fff;
    font-weight: 800;
}

.profile-progress {
    height: .45rem;
    margin-top: .65rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.profile-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #4f46e5;
}

.profile-section-label {
    margin: 0 0 .5rem .25rem;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-alert-card {
    overflow: hidden;
}

.profile-alert-card--disabled {
    opacity: .6;
}

.profile-alert-main {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    padding: .9rem;
    text-align: left;
    transition: background .15s ease;
}

.profile-alert-main:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: -2px;
}

.profile-alert-main:active {
    background: #f9fafb;
}

.profile-alert-copy {
    min-width: 0;
    flex: 1;
}

.profile-alert-title {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.profile-alert-title span {
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    padding: .2rem .45rem;
    font-size: .68rem;
    font-weight: 700;
}

.profile-alert-copy p {
    margin: .25rem 0 0;
    color: #6b7280;
    font-size: .76rem;
}

.profile-alert-copy small {
    color: #9ca3af;
    font-size: .68rem;
}

.profile-alert-chevron {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .65rem;
    flex: 0 0 auto;
    color: #9ca3af;
    transition: transform .2s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-alert-card--expanded .profile-alert-chevron {
    transform: rotate(180deg);
}

.profile-alert-body-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-alert-body-wrapper--expanded {
    max-height: 30rem;
}

.profile-alert-body {
    border-top: 1px solid #f9fafb;
    padding: .85rem .9rem .9rem;
}

.profile-alert-detail-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.profile-alert-detail-row > div {
    min-width: 0;
    flex: 1;
}

.profile-alert-body p {
    margin: 0;
    color: #6b7280;
    font-size: .76rem;
}

.profile-alert-body small {
    display: block;
    margin-top: .2rem;
    color: #9ca3af;
    font-size: .68rem;
}

.profile-switch {
    position: relative;
    width: 2.75rem;
    height: 1.625rem;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: #e5e7eb;
    padding: .1875rem;
    transition: background .2s ease;
}

.profile-switch span,
.profile-switch i {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
    transition: transform .2s ease;
}

.profile-switch--on {
    background: #4f46e5;
}

.profile-switch--on span,
.profile-switch--on i {
    transform: translateX(1.125rem);
}

.profile-threshold-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    border-top: 1px solid #f3f4f6;
    padding-top: .75rem;
    color: #6b7280;
    font-size: .78rem;
}

.profile-threshold-row input {
    width: 5rem;
    border: 1px solid #d1d5db;
    border-radius: .55rem;
    padding: .35rem .45rem;
}

.profile-threshold-editor {
    margin-top: .75rem;
    border-top: 1px solid #f3f4f6;
    padding-top: .75rem;
}

.profile-alert-footer {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: .75rem;
    border-top: 1px solid #f9fafb;
    padding-top: .7rem;
}

.profile-alert-footer span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-right: auto;
    color: #6b7280;
    font-size: .72rem;
    text-transform: capitalize;
}

.profile-alert-footer i {
    width: .4rem;
    height: .4rem;
    border-radius: 999px;
    background: #9ca3af;
}

.profile-alert-footer i.is-live {
    background: #10b981;
    animation: nr-profile-pulse 1.8s ease-in-out infinite;
}

.profile-alert-footer button {
    border: 0;
    background: transparent;
    color: #4f46e5;
    font-size: .75rem;
    font-weight: 800;
}

.profile-alert-footer .profile-danger-link {
    color: #ef4444;
}

.profile-icon-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.profile-icon-link .profile-icon-svg {
    width: .78rem;
    height: .78rem;
}

.profile-add-row {
    align-items: center;
}

.profile-add-row span:nth-child(2) {
    display: grid;
    min-width: 0;
    flex: 1;
}

.profile-add-row small {
    color: #6b7280;
    font-size: .75rem;
}

.profile-add-row b {
    color: #9ca3af;
}

.profile-alert-creator {
    display: grid;
    gap: .9rem;
    border: 1px solid #c7d2fe;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 14px 28px rgba(79, 70, 229, .12);
    padding: 1rem;
}

.profile-alert-creator__head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.profile-alert-creator__head div {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.profile-alert-creator__head strong {
    color: #111827;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
}

.profile-alert-creator__head small,
.profile-alert-creator__loading {
    color: #6b7280;
    font-size: .76rem;
    line-height: 1.35;
}

.profile-alert-field {
    display: grid;
    gap: .35rem;
}

.profile-alert-field > span {
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-alert-select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: .85rem;
    background: #fff;
    color: #111827;
    padding: .6rem .75rem;
    font-size: .86rem;
    font-weight: 700;
}

.profile-alert-select:focus {
    border-color: #4f46e5;
    outline: 2px solid rgba(79, 70, 229, .18);
    outline-offset: 0;
}

.profile-alert-slider {
    display: grid;
    gap: .65rem;
}

.profile-alert-slider__value {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.profile-alert-slider__value span {
    color: #6b7280;
    font-size: .78rem;
}

.profile-alert-slider__value strong {
    color: #4f46e5;
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.profile-alert-slider__track {
    position: relative;
    display: flex;
    align-items: center;
    height: 1.5rem;
}

.profile-alert-slider__track::before,
.profile-alert-slider__track > span {
    position: absolute;
    left: 0;
    height: .4rem;
    border-radius: 999px;
    content: "";
}

.profile-alert-slider__track::before {
    right: 0;
    background: #e5e7eb;
}

.profile-alert-slider__track > span {
    background: #4f46e5;
}

.profile-alert-slider__track input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.profile-alert-slider__track i {
    position: absolute;
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #4f46e5;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(79, 70, 229, .22);
    pointer-events: none;
}

.profile-alert-slider__ticks {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: .64rem;
    user-select: none;
}

.profile-alert-creator__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.profile-alert-creator__actions button {
    min-height: 2.65rem;
    border-radius: .85rem;
    font-size: .84rem;
    font-weight: 800;
}

.profile-alert-creator__actions button:disabled {
    opacity: .6;
}

.profile-alert-creator__cancel {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
}

.profile-alert-creator__create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    background: #4f46e5;
    color: #fff;
}

.profile-alert-creator__create .profile-icon-svg {
    width: 1rem;
    height: 1rem;
}

.profile-coming-soon,
.profile-perks-card {
    display: grid;
    gap: .55rem;
    padding: 1rem;
}

.profile-coming-soon {
    border-style: dashed;
}

.profile-coming-soon span,
.profile-perks-card span {
    color: #6b7280;
    font-size: .84rem;
}

.profile-settings-card {
    overflow: hidden;
}

.profile-settings-section {
    display: grid;
    gap: .45rem;
}

.profile-notification-section {
    display: grid;
    gap: .55rem;
}

.profile-notification-section-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-left: .1rem;
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-notification-section-label span {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border-radius: .45rem;
    background: #eef2ff;
    color: #4f46e5;
}

.profile-notification-section-label .profile-icon-svg {
    width: .8rem;
    height: .8rem;
}

.profile-notification-section-label--blue span {
    background: #eef2ff;
    color: #2563eb;
}

.profile-notification-section-label--amber span {
    background: #fff7ed;
    color: #f59e0b;
}

.profile-notification-section-label--green span {
    background: #ecfdf5;
    color: #059669;
}

.profile-notification-section-label--gray span {
    background: #f1f5f9;
    color: #64748b;
}

.profile-settings-card h2 {
    margin: 0;
    padding: .9rem 1rem .5rem;
    color: #111827;
    font-size: .9rem;
    font-weight: 800;
}

.profile-setting-row,
.profile-action-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 0;
    border-top: 1px solid #f3f4f6;
    background: transparent;
    color: #111827;
    padding: .82rem 1rem;
    text-align: left;
    text-decoration: none;
}

.profile-setting-row:first-child {
    border-top: 0;
}

.profile-setting-row--select {
    cursor: default;
}

.profile-setting-row > span:first-child {
    display: grid;
    min-width: 0;
    gap: .18rem;
}

.profile-setting-row-title {
    color: inherit;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.25;
}

.profile-setting-row small {
    color: #6b7280;
    font-size: .72rem;
    line-height: 1.35;
}

.profile-setting-select {
    min-width: 150px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    padding: .55rem .75rem;
    font-weight: 800;
}

.profile-setting-select:disabled {
    opacity: .65;
}

.profile-push-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid #bfdbfe;
    border-radius: .9rem;
    background: #eff6ff;
    color: #1d4ed8;
    padding: .8rem .9rem;
}

.profile-push-banner__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .75rem;
    background: #dbeafe;
    color: #2563eb;
}

.profile-push-banner__icon .profile-icon-svg {
    width: 1rem;
    height: 1rem;
}

.profile-push-banner__body {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: .15rem;
}

.profile-push-banner__body strong {
    color: #1e3a8a;
    font-size: .84rem;
    font-weight: 800;
}

.profile-push-banner__body small {
    color: #2563eb;
    font-size: .7rem;
    line-height: 1.35;
}

.profile-push-banner button {
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: #2563eb;
    padding: .45rem .55rem;
    font-size: .72rem;
    font-weight: 800;
}

.profile-push-banner button:disabled {
    opacity: .6;
}

.profile-action-row span {
    font-weight: 700;
}

.profile-action-row-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .65rem;
    background: #f1f5f9;
    color: #64748b;
}

.profile-action-row-icon .profile-icon-svg {
    width: 1rem;
    height: 1rem;
}

.profile-action-row-label {
    min-width: 0;
    flex: 1;
    font-size: .84rem;
    font-weight: 800;
}

.profile-action-row b {
    color: #9ca3af;
    font-size: 1.1rem;
}

.profile-action-row--danger .profile-action-row-label,
.profile-action-row--danger b {
    color: #dc2626;
}

.profile-action-row--danger .profile-action-row-icon {
    background: #fef2f2;
    color: #dc2626;
}

.profile-delete-card {
    display: grid;
    gap: .85rem;
    margin: .8rem;
    border: 1px solid #fecaca;
    border-radius: .9rem;
    background: #fff1f2;
    color: #7f1d1d;
    padding: .9rem;
}

.profile-delete-card__head {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.profile-delete-card__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .75rem;
    background: #fee2e2;
    color: #dc2626;
}

.profile-delete-card__icon .profile-icon-svg {
    width: 1rem;
    height: 1rem;
}

.profile-delete-card strong {
    color: #7f1d1d;
    font-size: .9rem;
    line-height: 1.25;
}

.profile-delete-card p {
    margin: .2rem 0 0;
    color: #991b1b;
    font-size: .76rem;
    line-height: 1.35;
}

.profile-delete-card__notice {
    border: 1px solid #fecaca;
    border-radius: .75rem;
    background: #fff;
    color: #991b1b;
    padding: .7rem .8rem;
    font-size: .78rem;
    font-weight: 800;
}

.profile-delete-card__form {
    display: grid;
    gap: .6rem;
}

.profile-delete-card__form label {
    color: #7f1d1d;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-delete-card__form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #fca5a5;
    border-radius: .75rem;
    background: #fff;
    color: #111827;
    padding: .7rem .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.profile-delete-card__form input:focus {
    border-color: #dc2626;
    outline: 2px solid rgba(220, 38, 38, .18);
}

.profile-delete-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.profile-delete-card__actions button {
    min-width: 0;
    border-radius: .75rem;
    padding: .65rem .75rem;
    font-size: .82rem;
    font-weight: 800;
}

.profile-delete-card__cancel {
    border: 1px solid #fecaca;
    background: #fff;
    color: #7f1d1d;
}

.profile-delete-card__submit {
    border: 0;
    background: #dc2626;
    color: #fff;
}

.profile-delete-card__submit:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.account-deleted-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: #f9fafb;
    color: #111827;
    padding: 1rem;
}

.account-deleted-panel {
    display: grid;
    width: min(100%, 24rem);
    gap: .75rem;
    justify-items: center;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    background: #fff;
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.account-deleted-panel__logo {
    width: 4rem;
    height: 4rem;
}

.account-deleted-panel h1 {
    margin: 0;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 800;
}

.account-deleted-panel p {
    margin: 0;
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.4;
}

.account-deleted-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .5rem;
    border-radius: .8rem;
    background: #4f46e5;
    color: #fff;
    padding: .7rem 1rem;
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}

.profile-subscription-card {
    display: grid;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: .55rem;
}

.profile-subscription-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.profile-subscription-head span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    font-size: .95rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.profile-subscription-head .profile-icon-svg {
    width: .9rem;
    height: .9rem;
    color: #fbbf24;
}

.profile-subscription-head--basic .profile-icon-svg {
    color: #34d399;
}

.profile-subscription-head b {
    flex: 0 0 auto;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    padding: .45rem .65rem;
    font-size: .72rem;
}

.profile-subscription-card small {
    color: #e0e7ff;
    font-size: .72rem;
}

.profile-subscription-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
    gap: .5rem;
    margin-top: .65rem;
}

.profile-subscription-card button {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: .75rem;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    padding: .55rem .75rem;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.profile-perks-card {
    border-color: rgba(245, 158, 11, .35);
    background: #120b18;
}

.profile-perks-card strong {
    color: #facc15;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-perks-card span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    color: #facc15;
    font-size: .74rem;
    font-weight: 700;
}

.profile-perks-card .profile-icon-svg {
    width: .72rem;
    height: .72rem;
    fill: currentColor;
}

.profile-version,
.profile-footnote {
    color: #9ca3af;
    text-align: center;
    font-size: .72rem;
}

@keyframes nr-profile-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

body.dark-mode .profile-page {
    background: #020817;
    color: #f8fafc;
}

body.dark-mode .profile-hero,
body.dark-mode .profile-sub-header,
body.dark-mode .profile-section-card,
body.dark-mode .profile-add-row,
body.dark-mode .profile-alert-card,
body.dark-mode .profile-settings-card,
body.dark-mode .profile-empty-card,
body.dark-mode .profile-info-card,
body.dark-mode .profile-account-identity {
    border-color: #243149;
    background: #111827;
}

body.dark-mode .profile-stat,
body.dark-mode .profile-alert-title span {
    background: #1e293b;
}

body.dark-mode .profile-alert-main:active {
    background: #0f172a;
}

body.dark-mode .profile-section-card {
    box-shadow: 0 8px 26px rgba(0, 0, 0, .18);
}

body.dark-mode .profile-icon--indigo { background: rgba(79, 70, 229, .22); color: #818cf8; }
body.dark-mode .profile-icon--amber { background: rgba(217, 119, 6, .22); color: #fbbf24; }
body.dark-mode .profile-icon--violet { background: rgba(124, 58, 237, .24); color: #a78bfa; }
body.dark-mode .profile-icon--gray { background: #1f2937; color: #9ca3af; }
body.dark-mode .profile-icon--blue { background: rgba(37, 99, 235, .22); color: #60a5fa; }
body.dark-mode .profile-icon--green { background: rgba(5, 150, 105, .22); color: #34d399; }
body.dark-mode .profile-icon--purple { background: rgba(147, 51, 234, .22); color: #c084fc; }
body.dark-mode .profile-icon--orange { background: rgba(234, 88, 12, .22); color: #fb923c; }

body.dark-mode .profile-chip--green {
    background: rgba(5, 150, 105, .18);
    color: #34d399;
}

body.dark-mode .profile-chip--blue {
    background: rgba(37, 99, 235, .2);
    color: #93c5fd;
}

body.dark-mode .profile-chip--purple {
    background: rgba(124, 58, 237, .22);
    color: #d8b4fe;
}

body.dark-mode .profile-status {
    background: rgba(5, 150, 105, .18);
    color: #34d399;
}

body.dark-mode .profile-provider {
    background: #1f2937;
    color: #cbd5e1;
}

body.dark-mode .profile-card-row strong,
body.dark-mode .profile-alert-title strong,
body.dark-mode .profile-sub-header h1,
body.dark-mode .profile-settings-card h2,
body.dark-mode .profile-account-identity h2,
body.dark-mode .profile-identity h1,
body.dark-mode .profile-stat div,
body.dark-mode .profile-action-row,
body.dark-mode .profile-setting-row {
    color: #f8fafc;
}

body.dark-mode .profile-card-row span,
body.dark-mode .profile-section-card p,
body.dark-mode .profile-alert-copy p,
body.dark-mode .profile-alert-body p,
body.dark-mode .profile-alert-footer span,
body.dark-mode .profile-muted,
body.dark-mode .profile-preview-list span,
body.dark-mode .profile-setting-row small,
body.dark-mode .profile-add-row small,
body.dark-mode .profile-coming-soon span,
body.dark-mode .profile-perks-card span,
body.dark-mode .profile-sub-header p {
    color: #94a3b8;
}

body.dark-mode .profile-preview-list em {
    color: #818cf8;
}

body.dark-mode .profile-usage-card,
.dark-mode .profile-usage-card {
    border-color: #243149;
    background: #111827;
}

body.dark-mode .profile-inline-message,
.dark-mode .profile-inline-message {
    border-color: #1d4ed8;
    background: #06113a;
    color: #bfdbfe;
}

body.dark-mode .profile-inline-message a,
.dark-mode .profile-inline-message a {
    color: #dbeafe;
}

body.dark-mode .profile-inline-message a:hover,
body.dark-mode .profile-inline-message a:focus-visible,
.dark-mode .profile-inline-message a:hover,
.dark-mode .profile-inline-message a:focus-visible {
    color: #ffffff;
}

body.dark-mode .profile-empty-card strong,
.dark-mode .profile-empty-card strong {
    color: #f8fafc;
}

body.dark-mode .profile-usage-card--premium,
.dark-mode .profile-usage-card--premium {
    border-color: rgba(245, 158, 11, .45);
    background: #211316;
}

body.dark-mode .profile-coming-soon,
.dark-mode .profile-coming-soon {
    border-color: #334155;
    background: #111827;
}

body.dark-mode .profile-coming-soon span,
.dark-mode .profile-coming-soon span {
    color: #64748b;
}

body.dark-mode .profile-push-banner,
.dark-mode .profile-push-banner {
    border-color: #1d4ed8;
    background: #06113a;
    color: #93c5fd;
}

body.dark-mode .profile-push-banner__icon,
.dark-mode .profile-push-banner__icon {
    background: rgba(37, 99, 235, .18);
    color: #60a5fa;
}

body.dark-mode .profile-push-banner__body strong,
.dark-mode .profile-push-banner__body strong {
    color: #f8fafc;
}

body.dark-mode .profile-push-banner__body small,
body.dark-mode .profile-push-banner button,
.dark-mode .profile-push-banner__body small,
.dark-mode .profile-push-banner button {
    color: #93c5fd;
}

body.dark-mode .profile-setting-row,
.dark-mode .profile-setting-row {
    border-top-color: #243149;
}

body.dark-mode .profile-setting-select,
.dark-mode .profile-setting-select {
    border-color: #374151;
    background: #111827;
    color: #f8fafc;
}

body.dark-mode .profile-action-row,
.dark-mode .profile-action-row {
    border-top-color: #243149;
}

body.dark-mode .profile-action-row-icon,
.dark-mode .profile-action-row-icon {
    background: #1f2937;
    color: #94a3b8;
}

body.dark-mode .profile-action-row--danger .profile-action-row-icon,
.dark-mode .profile-action-row--danger .profile-action-row-icon {
    background: rgba(220, 38, 38, .14);
    color: #ef4444;
}

body.dark-mode .profile-action-row--danger .profile-action-row-label,
body.dark-mode .profile-action-row--danger b,
.dark-mode .profile-action-row--danger .profile-action-row-label,
.dark-mode .profile-action-row--danger b {
    color: #ef4444;
}

body.dark-mode .profile-delete-card,
.dark-mode .profile-delete-card {
    border-color: rgba(248, 113, 113, .36);
    background: #1f1115;
    color: #fecaca;
}

body.dark-mode .profile-delete-card__icon,
.dark-mode .profile-delete-card__icon {
    background: rgba(220, 38, 38, .16);
    color: #f87171;
}

body.dark-mode .profile-delete-card strong,
.dark-mode .profile-delete-card strong {
    color: #fee2e2;
}

body.dark-mode .profile-delete-card p,
.dark-mode .profile-delete-card p {
    color: #fca5a5;
}

body.dark-mode .profile-delete-card__notice,
.dark-mode .profile-delete-card__notice {
    border-color: rgba(248, 113, 113, .32);
    background: #2a1418;
    color: #fecaca;
}

body.dark-mode .profile-delete-card__form label,
.dark-mode .profile-delete-card__form label {
    color: #fecaca;
}

body.dark-mode .profile-delete-card__form input,
.dark-mode .profile-delete-card__form input {
    border-color: rgba(248, 113, 113, .45);
    background: #0f172a;
    color: #f8fafc;
}

body.dark-mode .profile-delete-card__cancel,
.dark-mode .profile-delete-card__cancel {
    border-color: rgba(248, 113, 113, .35);
    background: #111827;
    color: #fecaca;
}

body.dark-mode .account-deleted-page,
.dark-mode .account-deleted-page {
    background: #020817;
    color: #f8fafc;
}

body.dark-mode .account-deleted-panel,
.dark-mode .account-deleted-panel {
    border-color: #243149;
    background: #111827;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

body.dark-mode .account-deleted-panel h1,
.dark-mode .account-deleted-panel h1 {
    color: #f8fafc;
}

body.dark-mode .account-deleted-panel p,
.dark-mode .account-deleted-panel p {
    color: #94a3b8;
}

body.dark-mode .profile-perks-card,
.dark-mode .profile-perks-card {
    border-color: rgba(245, 158, 11, .35);
    background: #100818;
}

body.dark-mode .profile-perks-card strong,
body.dark-mode .profile-perks-card span,
.dark-mode .profile-perks-card strong,
.dark-mode .profile-perks-card span {
    color: #facc15;
}

body.dark-mode .profile-alert-body,
body.dark-mode .profile-threshold-row,
body.dark-mode .profile-threshold-editor,
body.dark-mode .profile-alert-footer,
.dark-mode .profile-alert-body,
.dark-mode .profile-threshold-row,
.dark-mode .profile-threshold-editor,
.dark-mode .profile-alert-footer {
    border-top-color: #243149;
}

body.dark-mode .profile-alert-creator,
.dark-mode .profile-alert-creator {
    border-color: #3730a3;
    background: #111827;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
}

body.dark-mode .profile-alert-creator__head strong,
.dark-mode .profile-alert-creator__head strong {
    color: #f8fafc;
}

body.dark-mode .profile-alert-creator__head small,
body.dark-mode .profile-alert-creator__loading,
body.dark-mode .profile-alert-field > span,
body.dark-mode .profile-alert-slider__value span,
.dark-mode .profile-alert-creator__head small,
.dark-mode .profile-alert-creator__loading,
.dark-mode .profile-alert-field > span,
.dark-mode .profile-alert-slider__value span {
    color: #94a3b8;
}

body.dark-mode .profile-alert-select,
.dark-mode .profile-alert-select {
    border-color: #374151;
    background: #0f172a;
    color: #f8fafc;
}

body.dark-mode .profile-alert-slider__track::before,
.dark-mode .profile-alert-slider__track::before {
    background: #334155;
}

body.dark-mode .profile-alert-slider__track i,
.dark-mode .profile-alert-slider__track i {
    background: #f8fafc;
}

body.dark-mode .profile-alert-creator__cancel,
.dark-mode .profile-alert-creator__cancel {
    border-color: #374151;
    background: #111827;
    color: #cbd5e1;
}

body.dark-mode .profile-notification-section-label,
.dark-mode .profile-notification-section-label {
    color: #94a3b8;
}

body.dark-mode .profile-notification-section-label--blue span,
.dark-mode .profile-notification-section-label--blue span {
    background: rgba(37, 99, 235, .18);
    color: #60a5fa;
}

body.dark-mode .profile-notification-section-label--amber span,
.dark-mode .profile-notification-section-label--amber span {
    background: rgba(217, 119, 6, .18);
    color: #f59e0b;
}

body.dark-mode .profile-notification-section-label--green span,
.dark-mode .profile-notification-section-label--green span {
    background: rgba(5, 150, 105, .18);
    color: #34d399;
}

body.dark-mode .profile-notification-section-label--gray span,
.dark-mode .profile-notification-section-label--gray span {
    background: #1f2937;
    color: #94a3b8;
}

body.dark-mode .def-prefs__container--profile .def-prefs__info-banner,
.dark-mode .def-prefs__container--profile .def-prefs__info-banner {
    border-color: #243149 !important;
    background: #111827 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .def-prefs__container--profile .def-prefs__info-title,
.dark-mode .def-prefs__container--profile .def-prefs__info-title {
    color: #f8fafc !important;
}

body.dark-mode .def-prefs__container--profile .def-prefs__info-list,
body.dark-mode .def-prefs__container--profile .def-prefs__info-list strong,
.dark-mode .def-prefs__container--profile .def-prefs__info-list,
.dark-mode .def-prefs__container--profile .def-prefs__info-list strong {
    color: #93c5fd !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__stat--must,
.dark-mode .def-prefs__container--profile .ride-prefs__stat--must {
    border-color: rgba(245, 158, 11, .5) !important;
    background: rgba(245, 158, 11, .16) !important;
    color: #fcd34d !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__stat--nice,
.dark-mode .def-prefs__container--profile .ride-prefs__stat--nice {
    border-color: rgba(59, 130, 246, .5) !important;
    background: rgba(59, 130, 246, .16) !important;
    color: #93c5fd !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__stat--skip,
.dark-mode .def-prefs__container--profile .ride-prefs__stat--skip {
    border-color: rgba(148, 163, 184, .35) !important;
    background: rgba(148, 163, 184, .12) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__stat--unset,
.dark-mode .def-prefs__container--profile .ride-prefs__stat--unset {
    border-color: rgba(167, 139, 250, .5) !important;
    background: rgba(124, 58, 237, .18) !important;
    color: #d8b4fe !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn,
.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn {
    border-color: #334155 !important;
    background: #111827 !important;
    color: #94a3b8 !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn:hover,
.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn:hover {
    border-color: #6366f1 !important;
    background: rgba(99, 102, 241, .14) !important;
    color: #c7d2fe !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn--must-active,
.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn--must-active {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, .22) !important;
    color: #fcd34d !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn--nice-active,
.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn--nice-active {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, .22) !important;
    color: #bfdbfe !important;
}

body.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn--skip-active,
.dark-mode .def-prefs__container--profile .ride-prefs__pref-btn--skip-active {
    border-color: #64748b !important;
    background: rgba(148, 163, 184, .16) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel,
body.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel--fab,
.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel,
.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel--fab {
    border-color: #475569 !important;
    background: #111827 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel:hover,
body.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel--fab:hover,
.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel:hover,
.dark-mode .def-prefs__container--profile .def-prefs__btn-cancel--fab:hover {
    border-color: #64748b !important;
    background: #1e293b !important;
    color: #f8fafc !important;
}
