/* FMI admin panel — refined shell, responsive controls and access policy. */

:root {
    --p: #c65a0a;
    --p2: #8f3e08;
    --pbg: rgba(198, 90, 10, .09);
    --ok: #0f9f73;
    --err: #dc4b4b;
    --warn: #d38a16;
    --t1: #172033;
    --t2: #5b687c;
    --t3: #8994a6;
    --bg: #eef2f7;
    --bg2: #f6f8fb;
    --card: #ffffff;
    --bdr: #dfe5ee;
    --r: 17px;
    --shadow-sm: 0 1px 2px rgba(22, 32, 51, .04), 0 8px 26px -20px rgba(22, 32, 51, .28);
    --shadow-md: 0 18px 48px -28px rgba(22, 32, 51, .32);
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body.fp-admin,
body.fp-auth {
    min-height: 100dvh;
    font-family: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: "ss01" 1, "cv02" 1, "cv03" 1;
    background:
        radial-gradient(circle at 72% -20%, rgba(198, 90, 10, .10), transparent 34rem),
        var(--bg);
}

body.fp-admin::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(23, 32, 51, .08) .6px, transparent .6px);
    background-size: 18px 18px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent 48%);
}

.fp-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 500;
    padding: 10px 14px;
    border-radius: 9px;
    color: #fff;
    background: var(--p);
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.fp-skip-link:focus {
    transform: translateY(0);
}

.fp-side {
    width: 260px;
    color: #dce5f3;
    background:
        radial-gradient(circle at 0 0, rgba(234, 88, 12, .17), transparent 22rem),
        #111827;
    border-right: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 18px 0 50px -38px rgba(15, 23, 42, .82);
}

.fp-side-brand {
    min-height: 78px;
    padding: 17px 18px;
    border-bottom-color: rgba(255, 255, 255, .07);
}

.fp-side-brand-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fed7aa;
    background: rgba(234, 88, 12, .18);
    border: 1px solid rgba(253, 186, 116, .16);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.fp-side-brand h2 {
    color: #f8fafc;
    font-size: 15.5px;
    letter-spacing: -.2px;
}

.fp-side-brand small {
    color: #718097;
}

.fp-side-nav {
    padding: 10px 12px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

.fp-nav-group {
    padding: 18px 11px 7px;
    color: #59677c;
    font-size: 9px;
    letter-spacing: 1.35px;
}

.fp-nav-item {
    min-height: 42px;
    margin-bottom: 3px;
    padding: 10px 12px;
    color: #95a3b7;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.fp-nav-item i {
    color: #607087;
}

.fp-nav-item:hover {
    color: #e8eef7;
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .04);
    transform: translateX(2px);
}

.fp-nav-item:hover i {
    color: #fdba74;
}

.fp-nav-item.active {
    color: #fff7ed;
    background: rgba(234, 88, 12, .17);
    border-color: rgba(253, 186, 116, .12);
    box-shadow: inset 3px 0 #fb923c;
}

.fp-nav-item.active i {
    color: #fdba74;
}

.fp-side-foot {
    padding: 13px;
    border-top-color: rgba(255, 255, 255, .07);
    background: rgba(0, 0, 0, .12);
}

.fp-side .lang-switch {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .07);
}

.fp-side .lang-btn {
    color: #718097;
}

.fp-side .lang-btn:hover,
.fp-side .lang-btn.active {
    color: #fff7ed;
    background: rgba(255, 255, 255, .09);
    box-shadow: none;
}

.fp-side .fp-btn-g {
    color: #95a3b7;
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .07);
}

.fp-main {
    width: calc(100% - 260px);
    max-width: 1660px;
    margin-left: 260px;
    padding: clamp(22px, 3vw, 38px);
    min-height: 100dvh;
}

.fp-section.active {
    animation: fp-pro-enter .34s cubic-bezier(.22, 1, .36, 1);
}

@keyframes fp-pro-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fp-card,
.aid-card,
.bc-card,
.br-card,
.aid-diag,
.sh-hero {
    border-color: var(--bdr);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}

.fp-card-h,
.aid-card-h,
.bc-card-h,
.br-card-h {
    min-height: 58px;
    background: var(--card);
}

.fp-card-b,
.aid-card-b,
.bc-card-b,
.br-card-b {
    padding: clamp(18px, 2.2vw, 25px);
}

.fp-input,
.fp-select,
.aid-filter-input,
.aid-filter-select,
.bc-broadcast-area {
    min-height: 44px;
    border-color: #d8e0eb;
    border-radius: 10px;
    background-color: #fff;
    font-family: inherit;
}

.fp-input:hover,
.fp-select:hover,
.aid-filter-input:hover,
.aid-filter-select:hover,
.bc-broadcast-area:hover {
    border-color: #bdc8d8;
}

.fp-input:focus,
.fp-select:focus,
.aid-filter-input:focus,
.aid-filter-select:focus,
.bc-broadcast-area:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 4px rgba(198, 90, 10, .12);
}

.fp-btn {
    min-height: 40px;
    border-radius: 9px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.fp-btn-p {
    background: var(--p);
    box-shadow: 0 9px 20px -11px rgba(198, 90, 10, .72), inset 0 1px rgba(255, 255, 255, .16);
}

.fp-btn-p:hover {
    background: #a94707;
    transform: translateY(-1px);
    box-shadow: 0 14px 25px -12px rgba(198, 90, 10, .72);
}

.fp-btn:active {
    transform: translateY(1px) scale(.99);
}

.fp-stat,
.aid-stat,
.dh-stat,
.bc-status-card {
    border-color: var(--bdr);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.dh-stat,
.aid-stat {
    min-height: 128px;
    padding: 19px;
}

.dh-stat-n,
.aid-stat-n,
.fp-stat-n,
.dh-hero-time-val {
    font-variant-numeric: tabular-nums;
}

.dh-stat:hover,
.aid-stat:hover {
    border-color: rgba(198, 90, 10, .25);
    box-shadow: 0 18px 35px -25px rgba(22, 32, 51, .48);
}

.dh-hero,
.aid-hero,
.br-hero {
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 26px 52px -32px rgba(15, 23, 42, .72), inset 0 1px rgba(255, 255, 255, .08);
}

.dh-hero {
    background:
        radial-gradient(circle at 85% 5%, rgba(251, 146, 60, .22), transparent 17rem),
        linear-gradient(130deg, #111827, #3b1d0f 64%, #51250d);
}

.aid-hero {
    background:
        radial-gradient(circle at 88% 0%, rgba(253, 186, 116, .24), transparent 16rem),
        linear-gradient(128deg, #172033, #4a250f 64%, #6b3010);
}

.br-hero {
    background:
        radial-gradient(circle at 85% 0%, rgba(254, 215, 170, .22), transparent 17rem),
        linear-gradient(128deg, #172033, #4b2917 70%, #603518);
}

.dh-hero-txt h2,
.aid-hero-txt h2,
.br-hero-txt h2,
.sh-hero-txt h2 {
    text-wrap: balance;
}

.dh-hero-txt p,
.aid-hero-txt p,
.br-hero-txt p,
.sh-hero-txt p {
    max-width: 68ch;
    text-wrap: pretty;
}

.aid-hero-mark,
.dh-hero-mark,
.br-hero-mark {
    border-radius: 13px;
}

.sh-hero::before,
.aid-diag::before {
    background: var(--p);
}

.aid-card-b.tight {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fp-tbl th,
.aid-tbl th {
    color: #738095;
    background: #f7f9fc;
}

.fp-tbl tbody tr,
.aid-tbl tbody tr {
    transition: background .16s ease;
}

.fp-tbl tr:hover td,
.aid-tbl tr:hover td {
    background: #f7faff;
}

.aid-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.fp-code,
.aid-email,
.aid-meta,
.bc-status-val.mono,
.bc-status-sub {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

.fp-login {
    min-height: 100dvh;
    padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background:
        radial-gradient(circle at 18% 16%, rgba(198, 90, 10, .14), transparent 27rem),
        radial-gradient(circle at 88% 84%, rgba(15, 159, 115, .09), transparent 26rem);
}

.fp-login-box {
    max-width: 430px;
    padding: clamp(30px, 6vw, 48px);
    border: 1px solid rgba(216, 224, 235, .86);
    border-radius: 22px;
    box-shadow: 0 34px 80px -42px rgba(22, 32, 51, .58), inset 0 1px #fff;
}

.fp-login-ico {
    width: 68px;
    height: 68px;
    border-radius: 17px;
    background: #172033;
    color: #fed7aa;
    box-shadow: 0 18px 32px -20px rgba(23, 32, 51, .75);
}

.fp-login-box h1 {
    font-size: clamp(24px, 6vw, 30px);
    letter-spacing: -.8px;
}

.fp-login-box p {
    max-width: 34ch;
    margin-inline: auto;
    line-height: 1.6;
}

/* Access-code policy */
.access-policy {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(245px, auto);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: clamp(18px, 2.4vw, 25px);
    overflow: hidden;
    color: #e9f1fb;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 19px;
    background:
        radial-gradient(circle at 90% 0%, rgba(251, 146, 60, .18), transparent 18rem),
        #172033;
    box-shadow: 0 22px 45px -30px rgba(23, 32, 51, .8);
}

.access-policy.is-open {
    background:
        radial-gradient(circle at 90% 0%, rgba(251, 191, 36, .14), transparent 18rem),
        #202535;
}

.access-policy__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(253, 186, 116, .18);
    border-radius: 15px;
    color: #fed7aa;
    background: rgba(234, 88, 12, .15);
    font-size: 20px;
}

.is-open .access-policy__icon {
    color: #fde68a;
    border-color: rgba(253, 230, 138, .16);
    background: rgba(251, 191, 36, .11);
}

.access-policy__eyebrow {
    margin-bottom: 4px;
    color: #7188a7;
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.access-policy__copy h3 {
    margin-bottom: 5px;
    color: #f8fafc;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.2;
    letter-spacing: -.35px;
}

.access-policy__copy p {
    max-width: 67ch;
    color: #9cabbf;
    font-size: 12.5px;
    line-height: 1.55;
    text-wrap: pretty;
}

.access-policy__status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 750;
}

.is-open .access-policy__status {
    color: #fcd34d;
}

.access-policy__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.access-policy__form {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

.access-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 11px 8px 13px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .045);
    transition: background .18s ease, border-color .18s ease;
}

.access-switch:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
}

.access-switch__text {
    display: flex;
    flex-direction: column;
    min-width: 118px;
}

.access-switch__text strong {
    color: #fff7ed;
    font-size: 12px;
}

.access-switch__text small {
    margin-top: 1px;
    color: #718097;
    font-size: 9.5px;
}

.access-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.access-switch__track {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 99px;
    background: #4b5565;
    transition: background .22s ease, box-shadow .22s ease;
}

.access-switch__track span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .32);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}

.access-switch input:checked + .access-switch__track {
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .14);
}

.access-switch input:checked + .access-switch__track span {
    transform: translateX(20px);
}

.access-switch input:focus-visible + .access-switch__track {
    outline: 3px solid #fdba74;
    outline-offset: 3px;
}

.access-policy__save {
    min-height: 48px;
    padding-inline: 15px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(198, 90, 10, .46);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .access-policy {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .access-policy__form {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .fp-side {
        width: min(290px, 86vw);
        transform: translateX(-102%);
    }

    .fp-side.open {
        transform: translateX(0);
    }

    .fp-overlay.open {
        display: block;
        background: rgba(15, 23, 42, .5);
        backdrop-filter: blur(3px);
    }

    .fp-main {
        width: 100%;
        margin-left: 0;
        padding: 78px clamp(14px, 3vw, 24px) 28px;
    }

    .fp-mobile-bar {
        display: flex;
        height: 62px;
        padding: 0 max(15px, env(safe-area-inset-right)) 0 max(15px, env(safe-area-inset-left));
        background: rgba(255, 255, 255, .9);
        backdrop-filter: blur(18px) saturate(160%);
        box-shadow: 0 8px 24px -20px rgba(15, 23, 42, .55);
    }

    .fp-hamburger {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--bdr);
        border-radius: 10px;
        background: #fff;
        font-size: 17px;
    }

    .dh-stats,
    .aid-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fp-main {
        padding-inline: 12px;
    }

    .dh-hero,
    .aid-hero,
    .br-hero,
    .sh-hero {
        padding: 19px 17px;
        border-radius: 17px;
    }

    .dh-hero-row,
    .aid-hero-row,
    .br-hero-row,
    .sh-hero {
        align-items: flex-start;
    }

    .dh-hero-txt,
    .aid-hero-txt,
    .br-hero-txt {
        min-width: 0;
        flex-basis: calc(100% - 70px);
    }

    .aid-hero-actions,
    .br-hero-actions,
    .sh-hero-actions {
        width: 100%;
        margin-top: 4px;
    }

    .aid-hero-actions .fp-btn,
    .br-hero-actions .fp-btn,
    .sh-hero-actions .fp-btn {
        flex: 1 1 135px;
    }

    .fp-card-h,
    .aid-card-h,
    .bc-card-h,
    .br-card-h {
        align-items: flex-start;
        padding: 14px 15px;
    }

    .fp-card-b,
    .aid-card-b,
    .bc-card-b,
    .br-card-b {
        padding: 17px 15px;
    }

    .fp-row,
    .fp-filter-row,
    .aid-filter-row {
        align-items: stretch;
    }

    .fp-row > .fp-input,
    .fp-row > .fp-select,
    .fp-filter-row > *,
    .aid-filter-row > * {
        width: 100%;
        flex: 1 1 100%;
    }

    .fp-row > .fp-btn,
    .fp-filter-row > .fp-btn,
    .aid-filter-row > .fp-btn {
        width: 100%;
    }

    .access-policy {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 18px 16px;
    }

    .access-policy__icon {
        width: 48px;
        height: 48px;
    }

    .access-policy__form {
        grid-column: auto;
        flex-direction: column;
    }

    .access-switch {
        justify-content: space-between;
    }

    .access-policy__save {
        width: 100%;
    }

    .aid-diag-grid,
    .bc-status-grid {
        grid-template-columns: 1fr;
    }

    .aid-diag-item.aid-diag-wide {
        grid-column: auto;
    }

    .aid-diag-val {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .fp-modal {
        width: calc(100% - 20px);
        max-height: 88dvh;
        border-radius: 17px;
    }
}

@media (max-width: 460px) {
    .dh-stats,
    .aid-stats {
        gap: 9px;
    }

    .dh-stat,
    .aid-stat {
        min-height: 116px;
        padding: 15px;
    }

    .dh-stat-n,
    .aid-stat-n {
        font-size: 25px;
    }

    .dh-stat-ico,
    .aid-stat-ico {
        top: 11px;
        right: 11px;
        width: 30px;
        height: 30px;
    }

    .fp-mobile-bar .fp-pill {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .aid-confirm .row {
        flex-direction: column-reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Shared theme controls */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fp-theme-btn {
    width: 100%;
    margin-bottom: 8px;
}

.fp-theme-icon,
.panel-login-theme {
    appearance: none;
    border: 1px solid var(--bdr);
    color: var(--t2);
    background: var(--card);
    font-family: inherit;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.fp-theme-icon:hover,
.panel-login-theme:hover {
    color: var(--p);
    border-color: color-mix(in srgb, var(--p) 34%, var(--bdr));
}

.fp-theme-icon:active,
.panel-login-theme:active {
    transform: scale(.97);
}

.fp-theme-icon {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: 10px;
    font-size: 15px;
}

.fp-mobile-status {
    margin-left: 0;
}

.fp-login-box {
    position: relative;
}

.panel-login-theme {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
}

/* Account security */
.security-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: clamp(21px, 3vw, 30px);
    overflow: hidden;
    color: #fff7ed;
    border: 1px solid rgba(253, 186, 116, .15);
    border-radius: var(--r);
    background:
        radial-gradient(circle at 90% 0, rgba(251, 146, 60, .28), transparent 20rem),
        linear-gradient(135deg, #17120f 0%, #4a210e 52%, #9a3412 100%);
    box-shadow: 0 18px 48px -30px rgba(124, 45, 18, .82);
}

.security-hero::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -56px;
    bottom: -98px;
    border: 1px solid rgba(255, 237, 213, .18);
    border-radius: 50%;
}

.security-hero__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    color: #fdba74;
    border: 1px solid rgba(253, 186, 116, .20);
    border-radius: 17px;
    background: rgba(255, 255, 255, .075);
    font-size: 23px;
}

.security-hero__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #fdba74;
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.security-hero h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(21px, 2.4vw, 29px);
    letter-spacing: -.7px;
}

.security-hero p {
    max-width: 670px;
    margin: 0;
    color: rgba(255, 247, 237, .67);
    font-size: 13px;
    line-height: 1.55;
}

.security-grid {
    display: grid;
    grid-template-columns: minmax(245px, .72fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: stretch;
}

.security-state,
.security-form-card {
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.security-state {
    position: relative;
    padding: clamp(22px, 2.7vw, 30px);
    overflow: hidden;
}

.security-state::after {
    content: "";
    position: absolute;
    top: -45px;
    right: -45px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(245, 158, 11, .07);
}

.security-state.is-custom::after {
    background: rgba(16, 185, 129, .08);
}

.security-state__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: #b45309;
    border-radius: 14px;
    background: rgba(245, 158, 11, .12);
    font-size: 19px;
}

.security-state.is-custom .security-state__mark {
    color: var(--ok);
    background: rgba(16, 185, 129, .11);
}

.security-state__label,
.security-form-card__head span {
    display: block;
    margin-bottom: 5px;
    color: var(--t3);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.05px;
    text-transform: uppercase;
}

.security-state h3,
.security-form-card__head h3 {
    margin: 0;
    color: var(--t1);
    font-size: 17px;
    letter-spacing: -.25px;
}

.security-state p {
    margin: 9px 0 26px;
    color: var(--t2);
    font-size: 12.5px;
    line-height: 1.6;
}

.security-state__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 16px;
    color: var(--t3);
    border-top: 1px solid var(--bdr);
    font-size: 10.5px;
}

.security-form-card {
    overflow: hidden;
}

.security-form-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--bdr);
    background: var(--bg2);
}

.security-form-card__head > i {
    color: var(--p);
    font-size: 18px;
}

.security-form {
    padding: clamp(20px, 2.6vw, 28px);
}

.security-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--t2);
    font-size: 11px;
    font-weight: 800;
}

.security-form__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 17px;
}

.password-field {
    position: relative;
}

.password-field .fp-input {
    width: 100%;
    padding-right: 48px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--t3);
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-field button:hover,
.password-field button:focus-visible {
    color: var(--p);
    background: var(--pbg);
    outline: none;
}

.security-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bdr);
}

.security-form__foot p {
    max-width: 390px;
    margin: 0;
    color: var(--t3);
    font-size: 10.5px;
    line-height: 1.5;
}

.security-form__foot p i {
    margin-right: 4px;
    color: var(--p);
}

@media (max-width: 880px) {
    .security-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .security-hero {
        align-items: flex-start;
        padding: 20px 17px;
    }

    .security-hero__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 19px;
    }

    .security-form__cols {
        grid-template-columns: 1fr;
    }

    .security-form__foot {
        align-items: stretch;
        flex-direction: column;
    }

    .security-form__foot .fp-btn {
        width: 100%;
        min-height: 46px;
    }
}

/* Dark orange is the default panel theme; white remains one click away. */
html[data-theme="dark"] {
    --p: #f59e0b;
    --p2: #c2410c;
    --pbg: rgba(245, 158, 11, .11);
    --ok: #34d399;
    --err: #f87171;
    --warn: #fbbf24;
    --t1: #f3f5f8;
    --t2: #a8b1bf;
    --t3: #737f90;
    --bg: #0b0e13;
    --bg2: #11161d;
    --card: #161b23;
    --bdr: #29313d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 30px -22px rgba(0, 0, 0, .8);
    --shadow-md: 0 22px 50px -30px rgba(0, 0, 0, .82);
    color-scheme: dark;
}

html[data-theme="dark"] body.fp-admin,
html[data-theme="dark"] body.fp-auth {
    background:
        radial-gradient(circle at 78% -15%, rgba(194, 65, 12, .14), transparent 36rem),
        radial-gradient(circle at 18% 105%, rgba(245, 158, 11, .06), transparent 32rem),
        var(--bg);
}

html[data-theme="dark"] body.fp-admin::after {
    background-image: radial-gradient(rgba(255, 255, 255, .08) .55px, transparent .55px);
    opacity: .35;
}

html[data-theme="dark"] .fp-side {
    background:
        radial-gradient(circle at 0 0, rgba(234, 88, 12, .17), transparent 24rem),
        #0f131a;
    border-right-color: rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .fp-card,
html[data-theme="dark"] .aid-card,
html[data-theme="dark"] .bc-card,
html[data-theme="dark"] .br-card,
html[data-theme="dark"] .aid-diag,
html[data-theme="dark"] .sh-hero,
html[data-theme="dark"] .fp-stat,
html[data-theme="dark"] .aid-stat,
html[data-theme="dark"] .dh-stat,
html[data-theme="dark"] .bc-status-card {
    background: var(--card);
    border-color: var(--bdr);
}

html[data-theme="dark"] .fp-card-h,
html[data-theme="dark"] .aid-card-h,
html[data-theme="dark"] .bc-card-h,
html[data-theme="dark"] .br-card-h {
    background: #181e27;
    border-bottom-color: var(--bdr);
}

html[data-theme="dark"] .fp-input,
html[data-theme="dark"] .fp-select,
html[data-theme="dark"] .aid-filter-input,
html[data-theme="dark"] .aid-filter-select,
html[data-theme="dark"] .bc-broadcast-area {
    color: var(--t1);
    border-color: #303946;
    background-color: #10151c;
}

html[data-theme="dark"] .fp-input::placeholder,
html[data-theme="dark"] .aid-filter-input::placeholder,
html[data-theme="dark"] .bc-broadcast-area::placeholder {
    color: #657184;
}

html[data-theme="dark"] .fp-input:hover,
html[data-theme="dark"] .fp-select:hover,
html[data-theme="dark"] .aid-filter-input:hover,
html[data-theme="dark"] .aid-filter-select:hover,
html[data-theme="dark"] .bc-broadcast-area:hover {
    border-color: #465264;
}

html[data-theme="dark"] .fp-btn-g {
    color: var(--t2);
    border-color: var(--bdr);
    background: #111720;
}

html[data-theme="dark"] .fp-btn-g:hover {
    color: var(--t1);
    background: #1d242e;
}

html[data-theme="dark"] .fp-tbl th,
html[data-theme="dark"] .aid-tbl th {
    color: #828ea0;
    border-color: var(--bdr);
    background: #111720;
}

html[data-theme="dark"] .fp-tbl td,
html[data-theme="dark"] .aid-tbl td {
    border-bottom-color: #252c36;
}

html[data-theme="dark"] .fp-tbl tr:hover td,
html[data-theme="dark"] .aid-tbl tr:hover td {
    background: rgba(245, 158, 11, .035);
}

html[data-theme="dark"] .aid-filter-row,
html[data-theme="dark"] .fp-tabs {
    border-color: var(--bdr);
    background: #111720;
}

html[data-theme="dark"] .aid-diag-item,
html[data-theme="dark"] .dh-status-row,
html[data-theme="dark"] .dh-quick-btn,
html[data-theme="dark"] .bc-cmd,
html[data-theme="dark"] .bc-target,
html[data-theme="dark"] .res-details {
    background: var(--bg2);
    border-color: var(--bdr);
}

html[data-theme="dark"] .aid-diag-warn {
    color: #fcd9a0;
    border-color: rgba(245, 158, 11, .24);
    background: rgba(245, 158, 11, .08);
}

html[data-theme="dark"] .fp-alert-ok {
    color: #a7f3d0;
    background: rgba(16, 185, 129, .08);
}

html[data-theme="dark"] .fp-alert-err {
    color: #fecaca;
    background: rgba(239, 68, 68, .08);
}

html[data-theme="dark"] .fp-modal,
html[data-theme="dark"] .aid-confirm .box,
html[data-theme="dark"] .fp-toast,
html[data-theme="dark"] .fp-login-box {
    color: var(--t1);
    border: 1px solid var(--bdr);
    background: var(--card);
}

html[data-theme="dark"] .fp-login {
    background:
        radial-gradient(circle at 16% 15%, rgba(194, 65, 12, .16), transparent 28rem),
        radial-gradient(circle at 88% 86%, rgba(245, 158, 11, .07), transparent 28rem),
        #0b0e13;
}

html[data-theme="dark"] .fp-login-ico {
    color: #fed7aa;
    background: #28180e;
}

html[data-theme="dark"] .panel-login-theme,
html[data-theme="dark"] .fp-theme-icon {
    color: var(--t2);
    border-color: var(--bdr);
    background: #111720;
}

html[data-theme="dark"] .fp-mobile-bar {
    color: var(--t1);
    border-bottom-color: var(--bdr);
    background: rgba(15, 19, 26, .92);
}

html[data-theme="dark"] .fp-hamburger {
    color: var(--t1);
    border-color: var(--bdr);
    background: #171d25;
}

html[data-theme="dark"] .br-actions {
    background: linear-gradient(180deg, transparent 0%, var(--card) 30%);
}

html[data-theme="dark"] .bc-status-val,
html[data-theme="dark"] .bc-card-h-txt h3,
html[data-theme="dark"] .br-card-h-txt h3,
html[data-theme="dark"] .aid-card-h-txt h3,
html[data-theme="dark"] .dh-status-val,
html[data-theme="dark"] .dh-quick-lbl,
html[data-theme="dark"] .aid-stat-n,
html[data-theme="dark"] .dh-stat-n {
    color: var(--t1);
}

html[data-theme="dark"] .aid-icon-btn {
    color: var(--t2);
    border-color: var(--bdr);
    background: #151b23;
}

@media (max-width: 900px) {
    .fp-mobile-status {
        flex: 0 0 auto;
    }
}
