@import url('https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.2.0/sweetalert2.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css");

:root {
    --panel-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    --panel-ink: #1d2738;
    --panel-muted: #71809a;
    --panel-blue: #5688e8;
    --panel-lilac: #8d83e8;
    --panel-line: rgba(255, 255, 255, .78);
    --panel-shadow: 0 30px 90px rgba(101, 123, 169, .2);
    --glass-page: #fafdff;
    --glass-blue: rgba(111, 195, 255, .24);
    --glass-lilac: rgba(166, 143, 246, .2);
    --glass-grid: rgba(125, 155, 202, .055);
    --glass-wash: rgba(255, 255, 255, .44);
}

html,
body {
    min-height: 100%;
}

body {
    background: #f6f9fd;
    color: #1d293d;
    font-family: var(--panel-font) !important;
}

.container {
    max-width: 1140px;
}

.btn-default {
    background-color: #1b6ec2;
    color: #fff;
}

.btn-default:hover {
    background-color: #287fe0;
    color: #fff;
}

.key-sensi {
    filter: blur(3px);
}

body.glass-auth-page {
    min-height: 100dvh;
    overflow-x: hidden;
    background: #f7faff;
}

body.glass-auth-page > header,
body.glass-auth-page > footer {
    display: none;
}

body.glass-auth-page > main {
    min-height: 100dvh;
}

body.glass-auth-page > main > .container {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}

.ios-login {
    position: relative;
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: clamp(20px, 5vw, 72px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 14% 10%, var(--glass-blue), transparent 27%),
        radial-gradient(circle at 88% 84%, var(--glass-lilac), transparent 30%),
        linear-gradient(135deg, #f9fcff 0%, var(--glass-page) 48%, #faf7ff 100%);
}

.ios-login::before,
.ios-login::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.ios-login::before {
    z-index: -3;
    background:
        radial-gradient(ellipse at 18% 10%, var(--glass-wash), transparent 34%),
        radial-gradient(ellipse at 84% 88%, var(--glass-lilac), transparent 38%),
        radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, .54), transparent 52%),
        repeating-linear-gradient(90deg, transparent 0 47px, var(--glass-grid) 48px 49px),
        repeating-linear-gradient(0deg, transparent 0 47px, var(--glass-grid) 48px 49px);
    opacity: .9;
    filter: blur(10px) saturate(122%);
    transform: scale(1.04);
}

.ios-login::after {
    z-index: -2;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .68), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(238, 246, 255, .22));
}

.ios-login-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(14px);
}

.ios-login-glow-blue {
    top: -14%;
    left: -9%;
    width: clamp(190px, 28vw, 360px);
    aspect-ratio: 1;
    background: rgba(111, 195, 255, .2);
}

.ios-login-glow-lilac {
    right: -9%;
    bottom: -18%;
    width: clamp(220px, 32vw, 420px);
    aspect-ratio: 1;
    background: rgba(166, 143, 246, .2);
}

.ios-login-frame {
    position: relative;
    display: grid;
    gap: 14px;
    z-index: 1;
    width: min(100%, 540px);
}

.register-shell {
    align-items: start;
    overflow-x: hidden;
    overflow-y: auto;
}

.register-shell .ios-login-frame {
    margin-block: auto;
}

.register-form {
    gap: 14px;
}

.register-card .login-intro {
    margin-bottom: 28px;
}

.login-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 34px;
    background: rgba(255, 255, 255, .58);
    box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, .96);
    backdrop-filter: blur(30px) saturate(138%);
    -webkit-backdrop-filter: blur(30px) saturate(138%);
    animation: glassRise .6s cubic-bezier(.2, .8, .2, 1) both;
}

.login-card::before {
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 33px;
    content: "";
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .34), transparent 38% 76%, rgba(205, 224, 255, .18));
}

.login-card > * {
    position: relative;
    z-index: 1;
}

.login-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.login-brand,
.login-brand > span:last-child,
.secure-label,
.privacy-note,
.privacy-note > span:last-child,
.login-eyebrow,
.login-options,
.remember-check,
.encrypted-note {
    display: flex;
    align-items: center;
}

.login-brand {
    gap: 11px;
}

.login-brand > span:last-child,
.privacy-note > span:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.brand-icon,
.privacy-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(215, 232, 255, .45));
    color: #5a7fca;
    box-shadow: 0 12px 24px rgba(92, 129, 194, .12), inset 0 1px 0 #fff;
}

.login-brand strong {
    color: var(--panel-ink);
    font-size: 14px;
    letter-spacing: -.02em;
}

.login-brand small {
    color: var(--panel-muted);
    font-size: 10px;
    font-weight: 700;
}

.secure-label {
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(87, 187, 154, .22);
    border-radius: 999px;
    background: rgba(220, 251, 239, .56);
    color: #3c9c79;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.login-card-body {
    padding: 30px 34px 28px;
}

.login-intro {
    margin-bottom: 36px;
}

.login-eyebrow {
    gap: 7px;
    color: #6e83c7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.login-eyebrow i {
    color: #8c80e8;
    font-size: 13px;
}

.login-intro h1 {
    margin: 0 0 8px;
    color: var(--panel-ink);
    font-size: clamp(40px, 7vw, 56px);
    font-weight: 780;
    letter-spacing: -.075em;
    line-height: .98;
}

.login-intro h1 span {
    color: #7287d7;
}

.login-intro p {
    margin: 0;
    color: var(--panel-muted);
    font-size: 13px;
}

.login-status {
    margin-bottom: 18px;
}

.login-status:empty {
    display: none;
}

.login-status:has(> .alert-secondary.alert-dismissible) {
    display: none;
}

.login-status > .alert {
    margin: 0;
    border: 1px solid rgba(157, 179, 216, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
    color: #596b87;
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.login-form {
    display: grid;
    gap: 17px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label,
.remember-check {
    color: var(--panel-ink);
    font-size: 12px;
    font-weight: 800;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.label-row span {
    color: var(--panel-muted);
    font-size: 10px;
    font-weight: 700;
}

.field-control {
    display: flex;
    align-items: center;
    min-height: 56px;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid rgba(154, 180, 221, .4);
    border-radius: 16px;
    background: rgba(255, 255, 255, .48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 6px 18px rgba(112, 142, 196, .05);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.field-control:focus-within {
    border-color: rgba(87, 137, 232, .7);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 0 0 4px rgba(87, 137, 232, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
    transform: translateY(-1px);
}

.field-control > i {
    flex: 0 0 auto;
    color: var(--panel-blue);
    font-size: 15px;
}

.field-control input {
    min-width: 0;
    min-height: 54px;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--panel-ink);
    font: 700 13px/1 var(--panel-font);
}

.field-control input::placeholder {
    color: #8d9db7;
}

.pass-toggle {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--panel-muted);
    transition: background .18s ease, color .18s ease;
}

.pass-toggle:hover,
.pass-toggle:focus-visible {
    background: rgba(87, 137, 232, .12);
    color: var(--panel-blue);
    outline: 0;
}

.field-error {
    color: #d64768;
    font-size: 11px;
    font-weight: 700;
}

.login-options {
    justify-content: space-between;
    gap: 12px;
}

.remember-check {
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.remember-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--panel-blue);
}

.encrypted-note {
    gap: 5px;
    color: var(--panel-muted);
    font-size: 10px;
    font-weight: 700;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin-top: 2px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 16px;
    background: linear-gradient(105deg, #5a8fee, #837fe6 56%, #a28be9);
    color: #fff;
    font: 800 13px/1 var(--panel-font);
    box-shadow: 0 16px 28px rgba(103, 128, 219, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    color: #fff;
    filter: saturate(1.08) brightness(1.04);
    box-shadow: 0 20px 34px rgba(103, 128, 219, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
    transform: translateY(-2px);
    outline: 0;
}

.login-submit i,
.register-note a i {
    font-size: 12px;
}

.login-card-foot {
    justify-content: center;
    padding: 18px 28px 22px;
    border-top: 1px solid rgba(163, 182, 216, .22);
}

.privacy-note {
    gap: 10px;
}

.privacy-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 10px;
    background: rgba(231, 243, 255, .65);
    color: #6887c6;
}

.privacy-note strong {
    color: #52647f;
    font-size: 11px;
}

.privacy-note small {
    color: var(--panel-muted);
    font-size: 9px;
}

.register-note {
    margin: 0;
    color: var(--panel-muted);
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.register-note a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    color: #5f78ce;
    font-weight: 800;
    text-decoration: none;
}

.register-note a:hover,
.register-note a:focus-visible {
    color: #765fe0;
    text-decoration: underline;
}

.developer-card {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: 14px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: rgba(255, 255, 255, .42);
    box-shadow: 0 16px 36px rgba(101, 123, 169, .1), inset 0 1px 0 rgba(255, 255, 255, .8);
    backdrop-filter: blur(20px) saturate(128%);
    -webkit-backdrop-filter: blur(20px) saturate(128%);
    color: var(--panel-ink);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.developer-card:hover,
.developer-card:focus-visible {
    border-color: rgba(87, 137, 232, .42);
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 20px 42px rgba(101, 123, 169, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
    color: var(--panel-ink);
    outline: 0;
    transform: translateY(-2px);
}

.developer-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 11px;
    background: rgba(229, 239, 255, .72);
    color: var(--panel-blue);
}

.developer-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.developer-copy strong {
    font-size: 11px;
    font-weight: 800;
}

.developer-copy small {
    overflow: hidden;
    color: var(--panel-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.developer-arrow {
    margin-left: auto;
    color: var(--panel-blue);
    font-size: 12px;
}

.login-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    color: rgba(84, 109, 151, .72);
    font-size: 10px;
    font-weight: 700;
}

.login-caption i {
    color: #7598dc;
}

@keyframes glassRise {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
    .ios-login {
        align-items: center;
        padding: 18px 12px 24px;
    }

    .register-shell {
        align-items: start;
    }

    .ios-login-frame {
        width: 100%;
    }

    .login-card {
        border-radius: 28px;
    }

    .login-card-body {
        padding: 26px 20px 24px;
    }

    .register-card .login-card-body {
        padding-top: 24px;
    }

    .register-card .login-intro {
        margin-bottom: 24px;
    }

    .developer-card {
        border-radius: 19px;
    }

    .login-card-foot {
        align-items: center;
        padding: 16px 20px 20px;
    }

    .register-note {
        width: auto;
        padding-top: 0;
        border-top: 0;
        text-align: center;
    }

    .login-intro h1 {
        font-size: clamp(39px, 12vw, 50px);
    }

    .login-caption {
        margin-top: 12px;
    }
}

@media (max-width: 380px) {
    .secure-label {
        padding: 7px 8px;
        font-size: 9px;
    }

    .login-brand strong {
        font-size: 13px;
    }

    .login-card-body {
        padding-right: 17px;
        padding-left: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .field-control,
    .login-submit {
        animation: none;
        transition: none;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.login-card {
    background: rgba(255, 255, 255, .92);
}
}

/* Workspace dashboard */
.glass-app-page {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 8% 4%, rgba(111, 195, 255, .2), transparent 24%),
        radial-gradient(circle at 92% 92%, rgba(166, 143, 246, .18), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #fafdff 52%, #fbf8ff 100%);
}

.glass-app-page > main {
    min-height: calc(100dvh - 86px);
}

.glass-app-page > main > .app-container {
    width: 100%;
    max-width: 1220px;
}

.glass-app-page > footer.app-footer {
    position: static !important;
    border-top: 1px solid rgba(147, 169, 205, .18) !important;
    background: rgba(255, 255, 255, .42) !important;
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
}

.app-header {
    position: relative;
    z-index: 20;
    padding: 14px 0 0;
}

.app-navbar {
    width: min(100% - 32px, 1220px);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 22px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 16px 44px rgba(91, 120, 166, .12), inset 0 1px rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.app-navbar-inner {
    min-height: 64px;
}

.app-brand,
.app-nav-link,
.app-user-toggle {
    color: var(--panel-ink);
    text-decoration: none;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.app-brand:hover,
.app-nav-link:hover,
.app-user-toggle:hover {
    color: #476ed1;
}

.app-brand-mark,
.app-avatar {
    display: inline-grid;
    place-items: center;
    color: #5688e8;
    background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(219, 235, 255, .72));
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: 0 6px 16px rgba(86, 136, 232, .14), inset 0 1px rgba(255, 255, 255, .8);
}

.app-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    font-size: 18px;
}

.app-nav-links {
    gap: 5px;
    margin-left: clamp(22px, 4vw, 58px);
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px !important;
    border-radius: 12px;
    color: var(--panel-muted);
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.app-nav-link:hover,
.app-nav-link.active {
    color: #4c6fd0;
    background: rgba(220, 232, 255, .58);
}

.app-nav-link:hover {
    transform: translateY(-1px);
}

.app-user-area {
    margin-left: auto;
}

.app-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 5px !important;
    border: 1px solid transparent;
    border-radius: 15px;
}

.app-user-toggle::after {
    margin-left: 4px;
    color: #8491aa;
}

.app-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 16px;
}

.app-user-copy {
    display: grid;
    gap: 1px;
    text-align: left;
    line-height: 1.1;
}

.app-user-copy strong {
    max-width: 140px;
    overflow: hidden;
    color: var(--panel-ink);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-copy small {
    color: var(--panel-muted);
    font-size: 10px;
    font-weight: 600;
}

.app-user-menu {
    min-width: 240px;
    margin-top: 10px !important;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 17px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 20px 48px rgba(68, 96, 143, .18);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
}

.app-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--panel-ink);
    font-size: 12px;
    font-weight: 650;
}

.app-user-menu .dropdown-item:hover {
    background: rgba(226, 237, 255, .72);
    color: #4c6fd0;
}

.app-user-menu .dropdown-item i {
    width: 16px;
    color: #6989dd;
    text-align: center;
}

.app-menu-caption {
    padding: 5px 10px 7px;
    color: #8a96ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.app-menu-toggle {
    border: 0;
    color: #5674c5;
    font-size: 24px;
}

.dashboard-page {
    position: relative;
    isolation: isolate;
    padding: clamp(20px, 4vw, 46px) 0 30px;
}

.dashboard-page::before {
    position: absolute;
    z-index: -1;
    top: -22px;
    right: -16%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(178, 163, 255, .12);
    content: "";
    filter: blur(48px);
    pointer-events: none;
}

.dashboard-status {
    margin-bottom: 18px;
}

.dashboard-status .alert {
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(91, 120, 166, .08);
}

.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.dashboard-eyebrow,
.dashboard-kicker {
    display: block;
    color: #7687ac;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-eyebrow {
    margin-bottom: 9px;
    color: #6e82c8;
}

.dashboard-eyebrow i {
    margin-right: 4px;
    color: #8c7ee7;
}

.dashboard-heading h1 {
    margin: 0;
    color: #1e2a3e;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.dashboard-heading h1 span {
    color: #6681d9;
}

.dashboard-heading p {
    margin: 10px 0 0;
    color: #7c8ba5;
    font-size: 14px;
}

.dashboard-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 14px;
    color: #5f75c9;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 10px 24px rgba(91, 120, 166, .08), inset 0 1px rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.dashboard-action i:last-child {
    margin-left: 4px;
    font-size: 13px;
}

.dashboard-action:hover {
    color: #4d68bf;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 28px rgba(91, 120, 166, .13);
    transform: translateY(-2px);
}

.dashboard-top-grid,
.dashboard-bottom-grid {
    display: grid;
    gap: 18px;
}

.dashboard-top-grid {
    grid-template-columns: minmax(0, 1.26fr) minmax(340px, .74fr);
    margin-bottom: 18px;
}

.dashboard-bottom-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 23px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 18px 44px rgba(91, 120, 166, .1), inset 0 1px rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
}

.expiry-card {
    min-height: 286px;
    padding: clamp(22px, 4vw, 34px);
    background:
        radial-gradient(circle at 92% 12%, rgba(193, 223, 255, .72), transparent 27%),
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(234, 242, 255, .58) 55%, rgba(246, 241, 255, .62));
    overflow: hidden;
}

.dashboard-card-top,
.dashboard-section-heading,
.dashboard-card-label,
.expiry-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-label {
    justify-content: flex-start;
    gap: 11px;
}

.dashboard-card-label > span:last-child {
    display: grid;
    gap: 2px;
}

.dashboard-card-label small {
    color: #7b8aa6;
    font-size: 10px;
    font-weight: 700;
}

.dashboard-card-label strong {
    color: #24334b;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-icon,
.stat-icon,
.quick-access-icon,
.quick-link-icon,
.history-empty-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.dashboard-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 18px;
}

.dashboard-icon-blue,
.stat-icon {
    color: #5c89e5;
    background: rgba(222, 237, 255, .72);
}

.dashboard-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid rgba(83, 194, 154, .2);
    border-radius: 999px;
    color: #379d7c;
    background: rgba(222, 250, 239, .72);
    font-size: 10px;
    font-weight: 800;
}

.dashboard-status-pill i {
    font-size: 10px;
}

.expiry-content {
    min-height: 180px;
    align-items: end;
}

.expiry-content > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-kicker {
    margin-bottom: 9px;
}

.expiry-value {
    display: block;
    max-width: 100%;
    margin: 0;
    color: #253653;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1;
    text-shadow: 0 7px 22px rgba(73, 115, 194, .15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-muted {
    display: block;
    margin-top: 13px;
    color: #8291aa;
    font-size: 11px;
}

.expiry-orb {
    display: inline-grid;
    place-items: center;
    width: 105px;
    height: 105px;
    margin: 0 5% 5px 20px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    color: rgba(89, 124, 211, .78);
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .86), rgba(197, 220, 255, .4));
    box-shadow: 0 16px 35px rgba(96, 133, 204, .15), inset 0 1px 7px rgba(255, 255, 255, .8);
    font-size: 30px;
}

.stat-card {
    display: flex;
    min-height: 134px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
}

.stat-icon {
    width: 33px;
    height: 33px;
    margin-bottom: 13px;
    border-radius: 11px;
    font-size: 14px;
}

.stat-icon-lilac,
.quick-link-icon-lilac {
    color: #8d7ddd;
    background: rgba(237, 229, 255, .76);
}

.stat-icon-mint,
.quick-link-icon-mint {
    color: #4ea88d;
    background: rgba(224, 247, 238, .8);
}

.stat-icon-peach {
    color: #d18a70;
    background: rgba(255, 237, 225, .8);
}

.stat-card strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #293852;
    font-size: clamp(15px, 2vw, 20px);
    font-weight: 800;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-card,
.access-card {
    padding: clamp(20px, 3vw, 28px);
}

.dashboard-section-heading {
    align-items: start;
    margin-bottom: 20px;
}

.dashboard-section-heading h2 {
    margin: 0;
    color: #24324a;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.history-count {
    padding: 7px 10px;
    border-radius: 999px;
    color: #7383a2;
    background: rgba(231, 238, 251, .72);
    font-size: 10px;
    font-weight: 800;
}

.history-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(214, 224, 241, .84);
    border-radius: 16px;
    background: rgba(250, 252, 255, .76);
}

.dashboard-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    color: #536480;
    font-size: 11px;
}

.dashboard-table th {
    padding: 12px 13px;
    border-bottom: 1px solid rgba(214, 224, 241, .84);
    color: #8a98b2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}

.dashboard-table td {
    padding: 14px 13px;
    border-bottom: 1px solid rgba(226, 233, 244, .72);
    white-space: nowrap;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.dashboard-table tbody tr:hover {
    background: rgba(230, 239, 255, .38);
}

.history-reference,
.history-token,
.history-devices {
    display: inline-flex;
    align-items: center;
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.history-reference {
    color: #6880c6;
    background: rgba(225, 235, 255, .82);
}

.history-token {
    max-width: 88px;
    overflow: hidden;
    color: #8b7bd2;
    background: rgba(239, 233, 255, .78);
    text-overflow: ellipsis;
}

.history-devices {
    color: #4e9b83;
    background: rgba(226, 247, 238, .78);
}

.history-time {
    color: #8a97ac;
}

.history-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: #8896ae;
    text-align: center;
}

.history-empty strong {
    color: #536582;
    font-size: 13px;
}

.history-empty span:last-child {
    font-size: 11px;
}

.history-empty-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 14px;
    color: #718cdc;
    background: rgba(226, 237, 255, .75);
    font-size: 18px;
}

.dashboard-danger-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 9px 12px;
    border: 1px solid rgba(227, 93, 106, .18);
    border-radius: 11px;
    color: #c75c6b;
    background: rgba(255, 239, 241, .74);
    font-size: 11px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.dashboard-danger-action:hover {
    background: rgba(255, 226, 230, .9);
    transform: translateY(-1px);
}

.quick-access-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #8a7cdb;
    background: rgba(238, 232, 255, .78);
}

.quick-links {
    display: grid;
    gap: 9px;
}

.quick-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.quick-link:hover {
    border-color: rgba(186, 207, 241, .58);
    background: rgba(239, 245, 255, .72);
    transform: translateX(2px);
}

.quick-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #6686d9;
    background: rgba(224, 237, 255, .78);
}

.quick-link > span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.quick-link strong {
    overflow: hidden;
    color: #31405a;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-link small {
    overflow: hidden;
    color: #8a97ad;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-link > i:last-child {
    color: #8b9ab4;
    font-size: 12px;
}

@media (max-width: 980px) {
    .dashboard-top-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .access-card {
        order: -1;
    }
}

@media (max-width: 760px) {
    .app-header {
        padding-top: 9px;
    }

    .app-navbar {
        width: min(100% - 18px, 1220px);
        border-radius: 18px;
    }

    .app-navbar-inner {
        align-items: center;
        min-height: 58px;
    }

    .app-nav-links {
        gap: 2px;
        margin: 12px 0 0;
    }

    .app-nav-link {
        width: 100%;
        padding: 11px 12px !important;
    }

    .app-user-area {
        margin: 4px 0 9px;
    }

    .app-user-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .app-user-menu {
        margin-top: 4px !important;
    }

    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .dashboard-action {
        justify-content: center;
    }

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

    .expiry-card {
        min-height: 255px;
    }

    .expiry-content {
        min-height: 152px;
    }

    .expiry-orb {
        width: 77px;
        height: 77px;
        margin-right: 0;
        font-size: 23px;
    }
}

@media (max-width: 430px) {
    .glass-app-page > main > .app-container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .dashboard-page {
        padding-top: 18px;
    }

    .dashboard-heading h1 {
        font-size: 32px;
    }

    .dashboard-heading p {
        font-size: 12px;
    }

    .dashboard-stats {
        gap: 10px;
    }

    .stat-card {
        min-height: 122px;
        padding: 14px;
    }

    .stat-card strong {
        font-size: 14px;
    }

    .expiry-card,
    .history-card,
    .access-card {
        border-radius: 19px;
    }

    .history-card,
    .access-card {
        padding: 18px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-nav-link,
    .dashboard-action,
    .quick-link,
    .dashboard-danger-action {
        transition: none;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .app-navbar,
    .app-user-menu,
    .dashboard-card,
    .glass-app-page > footer.app-footer {
        background: rgba(255, 255, 255, .9);
    }
}
/* Navigation drawer, dashboard actions, and footer */
.app-sidebar-head,
.app-footer-brand,
.app-footer-meta,
.app-footer-link {
    display: flex;
    align-items: center;
}

.app-sidebar-head {
    display: none;
}

.app-sidebar-close {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 11px;
    color: #6478bd;
    background: rgba(235, 242, 255, .7);
}

.app-sidebar-backdrop {
    display: none;
}

.dashboard-card-copy {
    max-width: 540px;
    margin: -5px 0 22px;
    color: #7d8ba4;
    font-size: 12px;
    line-height: 1.6;
}

.action-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.workspace-action {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(207, 220, 243, .72);
    border-radius: 15px;
    color: inherit;
    background: rgba(248, 251, 255, .68);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.workspace-action:hover {
    border-color: rgba(142, 169, 224, .65);
    color: inherit;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 24px rgba(91, 120, 166, .1);
    transform: translateY(-2px);
}

.workspace-action-primary {
    border-color: rgba(141, 165, 228, .48);
    background: linear-gradient(145deg, rgba(235, 243, 255, .92), rgba(245, 240, 255, .82));
}

.workspace-action > span:nth-child(2) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.workspace-action strong {
    overflow: hidden;
    color: #31405a;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-action small {
    overflow: hidden;
    color: #8996ad;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-action > i:last-child {
    color: #8190ae;
    font-size: 12px;
}

.app-footer {
    min-height: 72px;
    padding: 13px 0 !important;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.app-footer-brand {
    gap: 10px;
}

.app-footer-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.app-footer-brand strong {
    color: #445474;
    font-size: 11px;
    font-weight: 800;
}

.app-footer-brand small {
    color: #8996ad;
    font-size: 9px;
}

.app-footer-mark {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 10px;
    color: #6685d8;
    background: rgba(225, 237, 255, .72);
    box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.app-footer-meta {
    gap: 9px;
    color: #8996ad;
    font-size: 10px;
    font-weight: 700;
}

.app-footer-meta i {
    margin-right: 3px;
    color: #5ca989;
}

.app-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #aeb9cb;
}

.app-footer-link {
    gap: 5px;
    color: #647bd0;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.app-footer-link:hover {
    color: #806fe0;
}

.app-footer-link i {
    font-size: 11px;
}

@media (min-width: 761px) {
    .app-sidebar {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        align-items: center;
    }

    .app-menu-toggle {
        display: none;
    }
}

@media (max-width: 760px) {
    .app-navbar {
        position: relative;
        z-index: 1250;
    }

    .app-menu-toggle {
        display: inline-grid;
        width: 38px;
        height: 38px;
        margin-left: auto;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .86);
        border-radius: 12px;
        background: rgba(235, 242, 255, .66);
        box-shadow: inset 0 1px rgba(255, 255, 255, .82);
    }

    .app-sidebar {
        position: fixed;
        z-index: 1300;
        top: 0;
        bottom: 0;
        left: 0;
        display: block !important;
        width: min(86vw, 340px);
        height: 100dvh;
        margin: 0;
        padding: 22px 18px;
        border-right: 1px solid rgba(255, 255, 255, .88);
        border-radius: 0 28px 28px 0;
        background:
            radial-gradient(circle at 0 0, rgba(211, 231, 255, .72), transparent 35%),
            rgba(249, 252, 255, .84);
        box-shadow: 18px 0 60px rgba(67, 95, 145, .2);
        -webkit-backdrop-filter: blur(24px) saturate(135%);
        backdrop-filter: blur(24px) saturate(135%);
        overflow-y: auto;
        transform: translateX(-108%);
        transition: transform .26s ease, visibility .26s ease;
        visibility: hidden;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .app-sidebar-head {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 24px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(164, 184, 220, .25);
    }

    .app-sidebar-head > div {
        display: grid;
        gap: 3px;
    }

    .app-sidebar-head small {
        color: #7b8bb0;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .app-sidebar-head strong {
        color: #263650;
        font-size: 20px;
        letter-spacing: -.04em;
    }

    .app-sidebar .app-nav-links {
        display: grid;
        gap: 6px;
        margin: 0 0 22px;
    }

    .app-sidebar .app-nav-link {
        width: 100%;
        padding: 12px 13px !important;
    }

    .app-sidebar .app-user-area {
        margin: 0;
        padding-top: 17px;
        border-top: 1px solid rgba(164, 184, 220, .25);
    }

    .app-sidebar .app-user-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .app-sidebar .app-user-menu {
        position: static !important;
        width: 100%;
        margin-top: 8px !important;
        transform: none !important;
    }

    .app-sidebar-backdrop {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: block;
        background: rgba(32, 48, 78, .16);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .26s ease;
    }

    body.sidebar-open .app-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .action-card-grid {
        grid-template-columns: 1fr;
    }

    .app-footer-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .app-footer-meta {
        order: 3;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar,
    .app-sidebar-backdrop,
    .workspace-action {
        transition: none;
    }
}

/* Shared liquid-glass edge lighting and the direct mobile navigation. */
:is(.app-navbar, .app-user-menu, .dashboard-card, .quick-link, .app-footer) {
    position: relative;
    isolation: isolate;
}

:is(.app-navbar, .app-sidebar, .app-user-menu, .dashboard-card, .quick-link, .app-footer)::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--glass-edge-light);
    content: "";
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: .92;
}

.dashboard-bottom-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-bottom-grid-single .access-card {
    display: grid;
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.dashboard-bottom-grid-single .dashboard-section-heading {
    margin-bottom: 0;
}

.app-sidebar-direct {
    display: none;
}

.app-sidebar-label {
    display: block;
    margin: 8px 4px 2px;
    color: #91a0bb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.app-sidebar-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #60718f;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.app-sidebar-item i:first-child {
    width: 18px;
    color: #6c8ee0;
    font-size: 15px;
    text-align: center;
}

.app-sidebar-item:hover,
.app-sidebar-item.active {
    border-color: rgba(181, 204, 241, .62);
    color: #4568c5;
    background: rgba(226, 237, 255, .72);
    transform: translateX(2px);
}

.app-sidebar-item-danger {
    color: #b56f87;
}

.app-sidebar-item-danger i:first-child {
    color: #c77d96;
}

.app-sidebar-item-danger:hover {
    border-color: rgba(233, 181, 199, .58);
    color: #ad5e7b;
    background: rgba(255, 235, 242, .72);
}

@media (max-width: 980px) {
    .dashboard-bottom-grid-single .access-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-bottom-grid-single .dashboard-section-heading {
        margin-bottom: 0;
    }
}

@media (max-width: 760px) {
    .app-header {
        z-index: 1300;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-sidebar > .app-nav-links,
    .app-sidebar .app-user-area {
        display: none !important;
    }

    .app-sidebar-direct {
        display: grid;
        gap: 5px;
        margin-top: 1px;
    }

    .app-sidebar-backdrop {
        background: rgba(32, 48, 78, .25);
        -webkit-backdrop-filter: blur(12px) saturate(120%);
        backdrop-filter: blur(12px) saturate(120%);
    }

    .app-footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 14px;
    }

    .app-footer-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .app-footer-link {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .app-footer-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-sidebar-item {
        transition: none;
    }
}

/* Focused footer, drawer blur, and keys inventory. */
.app-footer {
    min-height: 58px;
    padding: 11px 0 !important;
}

.app-footer-inner {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.app-footer-link {
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: #7182b6;
    font-size: 11px;
}

.app-footer-link span {
    color: #8b98b1;
    font-weight: 700;
}

.app-footer-link strong {
    color: #556ec7;
    font-weight: 850;
}

.app-footer-link i {
    margin-left: 1px;
}

.app-menu-toggle,
.app-menu-toggle:focus,
.app-menu-toggle:focus-visible,
.app-menu-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

body.sidebar-open .app-navbar::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    background: rgba(230, 239, 255, .2);
    content: "";
    pointer-events: none;
    -webkit-backdrop-filter: blur(11px) saturate(112%);
    backdrop-filter: blur(11px) saturate(112%);
}

body.sidebar-open .app-brand,
body.sidebar-open .app-menu-toggle {
    filter: blur(7px) saturate(82%);
    opacity: .42;
    pointer-events: none;
}

.keys-page {
    display: grid;
    gap: 18px;
    padding: clamp(16px, 3vw, 34px) 0 44px;
}

.keys-status:empty {
    display: none;
}

.keys-surface {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .84);
    border-radius: 25px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 18px 44px rgba(91, 120, 166, .1), inset 0 1px rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(128%);
    backdrop-filter: blur(18px) saturate(128%);
}

.keys-surface::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, .98) 0%,
        rgba(255, 255, 255, .5) 24%,
        rgba(255, 255, 255, .12) 50%,
        rgba(255, 255, 255, .5) 76%,
        rgba(255, 255, 255, .94) 100%);
    content: "";
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.keys-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: clamp(22px, 4vw, 35px);
    background:
        radial-gradient(circle at 92% 14%, rgba(192, 222, 255, .64), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(235, 243, 255, .58) 58%, rgba(246, 241, 255, .66));
}

.keys-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: #7789b2;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.keys-kicker i {
    color: #7793df;
    font-size: 11px;
}

.keys-hero h1,
.keys-panel h2 {
    margin: 0;
    color: #26354e;
    font-weight: 850;
    letter-spacing: -.055em;
}

.keys-hero h1 {
    max-width: 580px;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.02;
}

.keys-hero p {
    max-width: 560px;
    margin: 13px 0 0;
    color: #7d8ca6;
    font-size: 12px;
    line-height: 1.65;
}

.keys-hero-actions,
.keys-panel-actions,
.keys-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.keys-hero-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.keys-primary-action,
.keys-secondary-action,
.keys-panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 13px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.keys-primary-action {
    color: #fff;
    background: linear-gradient(135deg, #5b8ce9, #8c7ce2);
    box-shadow: 0 10px 22px rgba(99, 125, 220, .2), inset 0 1px rgba(255, 255, 255, .5);
}

.keys-secondary-action,
.keys-panel-action {
    color: #6377b6;
    background: rgba(247, 250, 255, .72);
    cursor: pointer;
}

.keys-panel-action-muted {
    color: #7c8aa5;
}

.keys-primary-action:hover,
.keys-secondary-action:hover,
.keys-panel-action:hover {
    color: inherit;
    box-shadow: 0 10px 22px rgba(91, 120, 166, .12);
    transform: translateY(-2px);
}

.keys-primary-action:hover {
    color: #fff;
}

.keys-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.keys-metric {
    display: grid;
    min-height: 142px;
    align-content: center;
    gap: 7px;
    padding: 18px;
}

.keys-metric-icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-bottom: 3px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .82);
}

.keys-metric-blue {
    color: #5e86df;
    background: rgba(224, 237, 255, .8);
}

.keys-metric-mint {
    color: #4da58a;
    background: rgba(224, 248, 239, .82);
}

.keys-metric-peach {
    color: #c98269;
    background: rgba(255, 237, 226, .82);
}

.keys-metric .keys-kicker {
    margin: 0;
}

.keys-metric strong {
    color: #2c3b56;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.05em;
}

.keys-panel {
    padding: clamp(18px, 3vw, 28px);
    overflow: hidden;
}

.keys-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.keys-panel h2 {
    font-size: 23px;
}

.keys-panel-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.keys-menu-list {
    min-width: 235px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    background: rgba(248, 251, 255, .9);
    box-shadow: 0 18px 45px rgba(81, 105, 151, .18);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.keys-menu-list .dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #60718f;
    font-size: 11px;
    font-weight: 700;
}

.keys-menu-list .dropdown-item:hover {
    color: #4f70c8;
    background: rgba(226, 237, 255, .72);
}

.keys-menu-list .dropdown-item i {
    width: 16px;
    color: #7895df;
    text-align: center;
}

.keys-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(213, 225, 245, .82);
    border-radius: 17px;
    background: rgba(250, 252, 255, .64);
}

.keys-table {
    min-width: 860px;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    color: #60718f;
    font-size: 11px;
}

.keys-table th {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(213, 225, 245, .82);
    color: #8b99b1;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.keys-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(226, 233, 245, .72);
    vertical-align: middle;
    white-space: nowrap;
}

.keys-table tbody tr:last-child td {
    border-bottom: 0;
}

.keys-table tbody tr:hover {
    background: rgba(238, 245, 255, .52);
}

.keys-row-number {
    display: inline-grid;
    min-width: 27px;
    min-height: 27px;
    place-items: center;
    border-radius: 9px;
    color: #7690d5;
    background: rgba(225, 237, 255, .78);
    font-size: 10px;
    font-weight: 850;
}

.keys-game {
    color: #34445f;
    font-size: 11px;
    font-weight: 850;
}

.keys-value {
    color: #526a9f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .015em;
}

.keys-value.is-inactive {
    color: #ba8290;
}

.keys-device-count {
    color: #667894;
    font-weight: 800;
}

.keys-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
}

.keys-status-active {
    color: #399a79;
    background: rgba(221, 249, 237, .78);
}

.keys-status-muted {
    color: #b67586;
    background: rgba(255, 233, 239, .78);
}

.keys-expiry-label {
    display: block;
    margin-top: 5px;
    color: #9aa6ba;
    font-size: 9px;
}

.keys-icon-action {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(207, 220, 243, .8);
    border-radius: 9px;
    color: #7087c4;
    background: rgba(246, 250, 255, .78);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.keys-icon-action:hover:not(:disabled) {
    border-color: rgba(139, 166, 224, .68);
    color: #4f70c8;
    background: #fff;
    transform: translateY(-1px);
}

.keys-icon-action:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.keys-icon-danger {
    color: #b67586;
}

.keys-table-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 13px 2px 0;
    color: #8d9ab0;
    font-size: 10px;
}

.keys-table-note i {
    color: #7994dc;
}

.keys-empty-state {
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #8492aa;
    text-align: center;
}

.keys-empty-state strong {
    color: #364760;
    font-size: 15px;
}

.keys-empty-state > span:not(.keys-empty-icon) {
    font-size: 11px;
}

.keys-empty-icon {
    display: inline-grid;
    width: 45px;
    height: 45px;
    margin-bottom: 4px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 15px;
    color: #7090e0;
    background: rgba(225, 237, 255, .72);
}

.keys-empty-state .keys-primary-action {
    margin-top: 8px;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    margin-bottom: 12px;
    color: #8492aa;
    font-size: 10px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(207, 220, 243, .82);
    border-radius: 10px;
    color: #5d6e8c;
    background: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    border-color: rgba(207, 220, 243, .72);
    color: #6781ca;
    background: rgba(255, 255, 255, .64);
    font-size: 10px;
}

@media (max-width: 760px) {
    .keys-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .keys-hero-actions {
        justify-content: stretch;
    }

    .keys-hero-actions > * {
        flex: 1 1 0;
    }

    .keys-metrics {
        gap: 9px;
    }

    .keys-metric {
        min-height: 118px;
        padding: 13px;
    }

    .keys-metric-icon {
        width: 29px;
        height: 29px;
        border-radius: 10px;
        font-size: 12px;
    }

    .keys-metric .keys-kicker {
        font-size: 8px;
        letter-spacing: .06em;
    }

    .keys-metric strong {
        font-size: 19px;
    }

    .keys-panel-head {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .keys-panel-actions {
        justify-content: stretch;
    }

    .keys-panel-actions > * {
        flex: 1 1 0;
    }

    .keys-panel-action {
        width: 100%;
    }

    .app-footer-inner {
        display: flex !important;
        justify-content: center;
    }
}

/* Compact game rows: identity on the left, usage stacked on the right. */
.keys-hero h1 {
    margin: 0;
}

.keys-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 17px;
}

.keys-table {
    min-width: 640px;
}

.keys-table th:first-child,
.keys-table td:first-child {
    width: 52px;
}

.keys-table tbody td {
    border-bottom: 0;
}

.keys-table tbody tr + tr td {
    border-top: 1px solid rgba(215, 225, 242, .72);
}

.keys-game-cell {
    display: flex;
    min-width: 220px;
    align-items: center;
    gap: 11px;
}

.keys-game-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 14px;
    box-shadow: 0 7px 15px rgba(84, 111, 164, .13), inset 0 1px rgba(255, 255, 255, .8);
}

.keys-game-cell > span {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.keys-game-cell .keys-value {
    display: block;
    overflow: hidden;
    max-width: 220px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keys-usage-cell {
    display: grid;
    gap: 7px;
    color: #71819a;
    font-size: 10px;
    font-weight: 750;
}

.keys-usage-cell span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.keys-usage-cell i {
    width: 14px;
    color: #7895df;
    font-size: 11px;
    text-align: center;
}

.keys-usage-cell b {
    color: #4d628e;
    font-weight: 850;
}

@media (max-width: 760px) {
    .keys-panel-toolbar {
        justify-content: stretch;
    }

    .keys-panel-toolbar .keys-panel-actions {
        width: 100%;
    }

    .keys-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .keys-table,
    .keys-table tbody,
    .keys-table tr,
    .keys-table td {
        display: block;
        width: 100%;
    }

    .keys-table {
        min-width: 0;
    }

    .keys-table thead {
        display: none;
    }

    .keys-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 11px 14px;
        padding: 16px 0;
    }

    .keys-table tbody tr + tr td {
        border-top: 0;
    }

    .keys-table tbody tr + tr {
        border-top: 1px solid rgba(215, 225, 242, .72);
    }

    .keys-table tbody td {
        width: auto;
        padding: 0;
        border: 0;
        white-space: normal;
    }

    .keys-table tbody td:nth-child(1) {
        display: none;
    }

    .keys-table tbody td:nth-child(2) {
        grid-column: 1;
        grid-row: 1 / span 3;
    }

    .keys-table tbody td:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }

    .keys-table tbody td:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: end;
    }

    .keys-game-cell {
        min-width: 0;
        align-items: flex-start;
    }

    .keys-game-icon {
        width: 49px;
        height: 49px;
    }

    .keys-game-cell .keys-value {
        max-width: 145px;
    }

    .keys-usage-cell {
        justify-items: end;
        text-align: right;
    }

    .keys-usage-cell span {
        justify-content: flex-end;
    }

    .keys-table tbody td:nth-child(4) .keys-status-pill {
        white-space: nowrap;
    }
}

/* Keep one predictable breathing space between the shared header and page content. */
.glass-app-page > main > .app-container {
    padding-top: clamp(12px, 2vw, 22px) !important;
}

.glass-app-page .dashboard-page,
.glass-app-page .keys-page {
    padding-top: 0;
}

.glass-app-page .dashboard-status:not(:has(.alert)),
.glass-app-page .keys-status:not(:has(.alert)) {
    display: none;
}

/* Key management keeps its column structure on small screens so every field remains reachable. */
.keys-menu-label {
    display: block;
    padding: 7px 10px 4px;
    color: #9aa7bc;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.keys-menu-scope {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 10px;
    color: #657692;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.keys-menu-scope > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.keys-menu-action {
    padding: 3px 7px;
    border: 1px solid rgba(204, 218, 242, .86);
    border-radius: 7px;
    color: #5e7ccc;
    background: rgba(244, 248, 255, .86);
    font-size: 9px;
    font-weight: 850;
}

.keys-menu-action:hover:not(:disabled) {
    border-color: rgba(126, 155, 222, .85);
    color: #4567bd;
    background: #fff;
}

.keys-menu-action-muted {
    color: #8594ad;
}

.keys-menu-action:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.keys-table-value,
.keys-expiry-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #687a98;
    font-size: 10px;
    font-weight: 750;
}

.keys-table-value i,
.keys-expiry-value i {
    width: 14px;
    color: #7895df;
    font-size: 11px;
    text-align: center;
}

.keys-table-value b {
    color: #4d628e;
    font-weight: 850;
}

.keys-expiry-value {
    color: #607491;
}

.keys-expiry-value.is-paused {
    color: #b67888;
}

.keys-expiry-value.is-paused i {
    color: #c38394;
}

.keys-icon-pause {
    color: #aa7a50;
}

.keys-icon-resume {
    color: #449477;
}

.keys-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.keys-table {
    min-width: 920px;
}

.keys-table th:nth-child(1),
.keys-table td:nth-child(1) {
    width: 52px;
}

.keys-table th:nth-child(2),
.keys-table td:nth-child(2) {
    min-width: 270px;
}

.keys-table th:nth-child(3),
.keys-table td:nth-child(3) {
    min-width: 115px;
}

.keys-table th:nth-child(4),
.keys-table td:nth-child(4) {
    min-width: 125px;
}

.keys-table th:nth-child(5),
.keys-table td:nth-child(5) {
    min-width: 155px;
}

.keys-table th:nth-child(6),
.keys-table td:nth-child(6) {
    min-width: 190px;
}

@media (max-width: 760px) {
    .keys-table-wrap {
        overflow-x: auto !important;
        overflow-y: hidden;
        border: 1px solid rgba(213, 225, 245, .82);
        background: rgba(250, 252, 255, .64);
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .keys-table,
    .keys-table tbody,
    .keys-table tr,
    .keys-table td {
        display: table-cell;
        width: auto;
    }

    .keys-table {
        display: table;
        min-width: 920px;
    }

    .keys-table tbody {
        display: table-row-group;
    }

    .keys-table thead {
        display: table-header-group;
    }

    .keys-table tr {
        display: table-row !important;
    }

    .keys-table td {
        display: table-cell !important;
        width: auto !important;
        padding: 14px;
        border-bottom: 1px solid rgba(226, 233, 245, .72);
        white-space: nowrap;
    }

    .keys-table tbody tr {
        display: table-row !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .keys-table tbody td:nth-child(1),
    .keys-table tbody td:nth-child(2),
    .keys-table tbody td:nth-child(3),
    .keys-table tbody td:nth-child(4),
    .keys-table tbody td:nth-child(5),
    .keys-table tbody td:nth-child(6) {
        display: table-cell !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .keys-table tbody tr + tr {
        border-top: 0;
    }

    .keys-table tbody tr + tr td {
        border-top: 0;
    }

    .keys-game-cell {
        min-width: 270px;
    }
}

/* Give each row a softer rhythm and keep its children away from the glass edge. */
.keys-table-wrap {
    padding: 6px;
}

.keys-table th,
.keys-table td {
    padding-top: 17px;
    padding-bottom: 17px;
    padding-left: 16px;
    padding-right: 16px;
}

.keys-game-cell {
    gap: 10px;
}

.keys-game-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.keys-row-actions {
    padding: 2px 0;
}

@media (max-width: 760px) {
    .keys-table-wrap {
        padding: 5px;
    }

    .keys-table tbody td {
        padding: 17px 15px !important;
    }

    .keys-game-icon {
        width: 42px;
        height: 42px;
    }

    .keys-game-cell {
        min-width: 260px;
    }
}

/* Key filters replace the duplicate New key action while Generate key remains the primary action. */
.keys-panel-toolbar {
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.keys-filter-bar {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    gap: 9px;
    margin: 0;
}

.keys-filter-field {
    display: grid;
    min-width: 132px;
    gap: 5px;
    color: #8997ad;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.keys-filter-field select {
    width: 100%;
    min-height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(207, 220, 243, .82);
    border-radius: 10px;
    color: #5e7090;
    background: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.keys-filter-reset {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(207, 220, 243, .72);
    border-radius: 10px;
    color: #7890c7;
    background: rgba(246, 250, 255, .72);
    font-size: 10px;
    font-weight: 800;
}

.keys-filter-reset:hover {
    color: #4f70c8;
    background: #fff;
}

/* Owner-only user directory. */
.users-page {
    display: grid;
    gap: 18px;
}

.users-status:empty {
    display: none;
}

.users-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.users-heading h1 {
    margin: 3px 0 6px;
    color: #21304a;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -.05em;
}

.users-heading p {
    margin: 0;
    color: #7f8da5;
    font-size: 12px;
}

.users-kicker {
    color: #7f91c5;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.users-role-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(212, 224, 246, .82);
    border-radius: 999px;
    color: #6174a8;
    background: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 850;
    box-shadow: inset 0 1px rgba(255, 255, 255, .86);
}

.users-role-note i {
    color: #7696e2;
}

.users-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.users-stat,
.users-surface {
    border: 1px solid rgba(255, 255, 255, .86);
    background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(244, 248, 255, .58));
    box-shadow: 0 18px 42px rgba(92, 116, 164, .1), inset 0 1px rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.users-stat {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
}

.users-stat > span:last-child {
    display: grid;
    gap: 5px;
}

.users-stat small {
    color: #8997ad;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.users-stat strong {
    color: #33435f;
    font-size: 21px;
    font-weight: 900;
}

.users-stat-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 12px;
    color: #6383d9;
    background: rgba(224, 237, 255, .78);
}

.users-stat-icon-blue {
    color: #5c91d4;
    background: rgba(222, 242, 255, .8);
}

.users-stat-icon-lilac {
    color: #8d79d7;
    background: rgba(239, 229, 255, .78);
}

.users-surface {
    overflow: hidden;
    border-radius: 23px;
    padding: 18px;
}

.users-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.users-panel-head h2 {
    margin: 4px 0 0;
    color: #34445f;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.users-search {
    display: flex;
    min-width: 210px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(207, 220, 243, .8);
    border-radius: 11px;
    color: #7891ca;
    background: rgba(255, 255, 255, .68);
}

.users-search input {
    width: 100%;
    min-height: 34px;
    border: 0;
    outline: 0;
    color: #566b8e;
    background: transparent;
    font-size: 11px;
}

.users-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(213, 225, 245, .82);
    border-radius: 16px;
    background: rgba(250, 252, 255, .64);
    -webkit-overflow-scrolling: touch;
}

.users-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    color: #687a98;
    font-size: 11px;
}

.users-table th {
    padding: 13px 15px;
    border-bottom: 1px solid rgba(213, 225, 245, .82);
    color: #8b99b1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.users-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(226, 233, 245, .72);
    vertical-align: middle;
    white-space: nowrap;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-table tbody tr:hover {
    background: rgba(238, 245, 255, .52);
}

.users-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.users-identity > span:last-child {
    display: grid;
    gap: 4px;
}

.users-identity strong {
    color: #34445f;
    font-size: 11px;
    font-weight: 900;
}

.users-identity small {
    color: #93a0b5;
    font-size: 10px;
}

.users-avatar {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 11px;
    color: #708ee0;
    background: rgba(225, 237, 255, .78);
}

.users-role,
.users-status-pill,
.users-expiry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
}

.users-role-1 { color: #a17b3c; }
.users-role-2 { color: #5f7ec9; }
.users-role-3 { color: #8c72c9; }
.users-role i { font-size: 11px; }

.users-expiry {
    color: #687a98;
}

.users-expiry i {
    color: #7895df;
}

.users-license-count {
    color: #4e6592;
    font-size: 13px;
    font-weight: 900;
}

.users-status-pill {
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
}

.users-status-pill i {
    font-size: 6px;
}

.users-status-pill.is-active { color: #399a79; background: rgba(221, 249, 237, .78); }
.users-status-pill.is-blocked { color: #b67586; background: rgba(255, 233, 239, .78); }
.users-status-pill.is-expired { color: #a98255; background: rgba(255, 242, 220, .82); }

.users-uplink {
    color: #7888a4;
    font-size: 10px;
    font-weight: 750;
}

.users-actions {
    display: inline-flex;
    gap: 6px;
}

.users-icon-action {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(207, 220, 243, .8);
    border-radius: 9px;
    color: #7087c4;
    background: rgba(246, 250, 255, .78);
    text-decoration: none;
}

.users-icon-action:hover:not(:disabled) {
    color: #4f70c8;
    background: #fff;
}

.users-icon-action:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.users-icon-danger {
    color: #b67586;
}

.users-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #8795aa;
    text-align: center;
}

.users-empty i {
    color: #7691dd;
    font-size: 28px;
}

.users-empty strong {
    color: #34445f;
}

@media (max-width: 760px) {
    .keys-panel-toolbar,
    .users-heading,
    .users-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .keys-filter-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .keys-filter-field {
        min-width: 0;
    }

    .keys-filter-reset {
        justify-content: center;
    }

    .users-summary {
        grid-template-columns: 1fr;
    }

    .users-surface {
        padding: 13px;
    }

    .users-search {
        min-width: 0;
    }
}

/* Generate key studio */
.generate-page {
    display: grid;
    width: min(100%, 900px);
    gap: 18px;
    margin: 0 auto;
}

.generate-hero,
.generate-surface,
.generate-result {
    border: 1px solid rgba(255, 255, 255, .88);
    background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(248, 251, 255, .68));
    box-shadow: 0 22px 60px rgba(96, 117, 169, .12), inset 1px 1px 0 rgba(255, 255, 255, .88), inset -1px -1px 0 rgba(212, 222, 245, .54);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    backdrop-filter: blur(24px) saturate(125%);
}

.generate-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border-radius: 26px;
}

.generate-eyebrow,
.generate-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7289c4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.generate-eyebrow i {
    font-size: 13px;
}

.generate-hero h1 {
    margin: 9px 0 5px;
    color: #26344d;
    font-size: clamp(25px, 4vw, 37px);
    font-weight: 900;
    letter-spacing: -.055em;
}

.generate-hero p,
.generate-surface-head p {
    max-width: 560px;
    margin: 0;
    color: #8796b1;
    font-size: 12px;
    line-height: 1.6;
}

.generate-hero-actions {
    display: inline-flex;
    gap: 8px;
    flex: 0 0 auto;
}

.generate-icon-btn {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(209, 222, 246, .84);
    border-radius: 13px;
    color: #7189cb;
    background: rgba(255, 255, 255, .62);
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.generate-icon-btn:hover {
    color: #536fc0;
    background: #fff;
    transform: translateY(-1px);
}

.generate-result {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border-color: rgba(164, 225, 202, .76);
    background: linear-gradient(135deg, rgba(246, 255, 251, .9), rgba(239, 252, 247, .68));
}

.generate-result-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #3b9a7c;
    background: rgba(205, 247, 228, .76);
    font-size: 18px;
}

.generate-result-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.generate-result-label,
.generate-result-copy small,
.generate-result-note {
    color: #6a8d83;
    font-size: 10px;
}

.generate-result-label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.generate-result-copy strong {
    overflow: hidden;
    color: #2b695a;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.generate-result-note {
    margin-left: auto;
    white-space: nowrap;
}

.generate-result-note i {
    margin-right: 4px;
}

.generate-surface {
    padding: 27px;
    border-radius: 28px;
}

.generate-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 27px;
}

.generate-title-row h1 {
    margin: 0;
    color: #34425c;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.generate-surface-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 27px;
}

.generate-surface-head h2 {
    margin: 7px 0 6px;
    color: #34425c;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.generate-policy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(197, 217, 244, .82);
    border-radius: 999px;
    color: #6a82ba;
    background: rgba(240, 247, 255, .66);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.generate-form {
    display: grid;
    gap: 0;
}

.generate-section {
    display: grid;
    gap: 17px;
}

.generate-section-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.generate-section-head > div {
    display: grid;
    gap: 3px;
}

.generate-step {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(205, 219, 245, .9);
    border-radius: 10px;
    color: #7189ca;
    background: rgba(233, 241, 255, .68);
    font-size: 9px;
    font-weight: 900;
}

.generate-section-head strong {
    color: #41516d;
    font-size: 12px;
    font-weight: 900;
}

.generate-section-head small {
    color: #95a2b8;
    font-size: 10px;
}

.generate-form-grid,
.generate-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.generate-field {
    display: grid;
    align-content: start;
    gap: 7px;
}

.generate-field-wide {
    grid-column: 1 / -1;
}

.generate-field > label {
    color: #4b5a74;
    font-size: 10px;
    font-weight: 900;
}

.generate-field .form-select,
.generate-field .form-control,
.generate-input-wrap {
    min-height: 46px;
    border: 1px solid rgba(210, 224, 247, .9);
    border-radius: 14px;
    color: #536985;
    background-color: rgba(255, 255, 255, .64);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .92), 0 7px 18px rgba(113, 135, 183, .045);
}

.generate-field .form-select,
.generate-field .form-control {
    padding: 0 14px;
    font-size: 11px;
}

.generate-field .form-select:focus,
.generate-field .form-control:focus {
    border-color: rgba(117, 151, 229, .76);
    box-shadow: 0 0 0 4px rgba(126, 157, 232, .13), inset 1px 1px 0 rgba(255, 255, 255, .92);
}

.generate-input-wrap {
    display: flex;
    align-items: center;
    padding-left: 14px;
}

.generate-input-wrap i {
    flex: 0 0 auto;
    color: #7695e1;
    font-size: 14px;
}

.generate-input-wrap .form-control {
    min-height: 44px;
    padding-left: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.generate-hint,
.generate-error {
    color: #99a6bc;
    font-size: 9px;
    line-height: 1.4;
}

.generate-error {
    color: #bd7689;
}

.generate-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
}

.generate-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.generate-toggle-mark {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid rgba(193, 211, 240, .95);
    border-radius: 6px;
    color: transparent;
    background: rgba(255, 255, 255, .68);
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.generate-toggle input:checked + .generate-toggle-mark {
    border-color: #7c91df;
    color: #fff;
    background: linear-gradient(135deg, #5b91e8, #9a7fe4);
}

.generate-toggle > span:last-child {
    display: grid;
    gap: 3px;
}

.generate-toggle strong {
    color: #52627c;
    font-size: 10px;
    font-weight: 900;
}

.generate-toggle small {
    color: #98a5bb;
    font-size: 9px;
}

.generate-divider {
    height: 1px;
    margin: 25px 0;
    background: linear-gradient(90deg, transparent, rgba(213, 225, 245, .85), transparent);
}

.generate-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 17px;
    border: 1px solid rgba(213, 225, 246, .78);
    border-radius: 17px;
    background: rgba(245, 249, 255, .58);
}

.generate-summary-copy {
    display: grid;
    gap: 4px;
}

.generate-summary-copy strong {
    color: #45546f;
    font-size: 12px;
    font-weight: 900;
}

.generate-summary-copy small {
    color: #96a3b8;
    font-size: 9px;
}

.generate-estimate {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8194d7;
}

.generate-estimate > span {
    font-size: 13px;
    font-weight: 900;
}

.generate-estimate input {
    width: 90px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #556fc5;
    background: transparent;
    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

.generate-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.generate-submit-note {
    color: #9aa6b9;
    font-size: 9px;
}

.generate-submit-note i {
    margin-right: 4px;
    color: #7e98dc;
}

.generate-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 155px;
    min-height: 45px;
    padding: 0 17px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5e93ee, #9c7ee4);
    box-shadow: 0 12px 22px rgba(105, 126, 218, .24), inset 1px 1px 0 rgba(255, 255, 255, .35);
    font-size: 11px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.generate-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 15px 26px rgba(105, 126, 218, .3), inset 1px 1px 0 rgba(255, 255, 255, .35);
}

.generate-submit:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.generate-custom-duration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 15px;
}

@media (max-width: 680px) {
    .generate-custom-duration-grid {
        grid-template-columns: 1fr;
    }

    .generate-hero,
    .generate-title-row,
    .generate-surface-head,
    .generate-result,
    .generate-summary,
    .generate-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .generate-hero,
    .generate-surface {
        padding: 20px;
    }

    .generate-hero-actions {
        align-self: flex-end;
    }

    .generate-policy,
    .generate-result-note {
        width: fit-content;
        margin-left: 0;
    }

    .generate-form-grid,
    .generate-mode-grid {
        grid-template-columns: 1fr;
    }

    .generate-field-wide {
        grid-column: auto;
    }

    .generate-estimate {
        justify-content: flex-end;
    }

    .generate-submit {
        width: 100%;
    }
}

/* Settings workspace */
.settings-page {
    display: grid;
    width: min(100%, 860px);
    gap: 18px;
    margin: 0 auto;
}

.settings-hero,
.settings-card,
.settings-aside-card {
    border: 1px solid rgba(255, 255, 255, .88);
    background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(248, 251, 255, .7));
    box-shadow: 0 22px 60px rgba(96, 117, 169, .11), inset 1px 1px 0 rgba(255, 255, 255, .9), inset -1px -1px 0 rgba(212, 222, 245, .52);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    backdrop-filter: blur(24px) saturate(125%);
}

.settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 27px;
    border-radius: 26px;
}

.settings-kicker,
.settings-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7289c4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.settings-hero h1 {
    margin: 8px 0 5px;
    color: #26344d;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: -.055em;
}

.settings-hero p,
.settings-card-head p,
.settings-aside-card p {
    margin: 0;
    color: #8796b1;
    font-size: 11px;
    line-height: 1.6;
}

.settings-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 9px;
    border: 1px solid rgba(208, 223, 247, .84);
    border-radius: 16px;
    background: rgba(255, 255, 255, .6);
}

.settings-profile > span:last-child {
    display: grid;
    gap: 3px;
}

.settings-profile strong {
    color: #455571;
    font-size: 11px;
    font-weight: 900;
}

.settings-profile small {
    color: #93a1b8;
    font-size: 9px;
}

.settings-avatar,
.settings-card-icon,
.settings-aside-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 13px;
    color: #718fe0;
    background: rgba(226, 238, 255, .76);
    font-size: 16px;
}

.settings-status:empty {
    display: none;
}

.settings-layout {
    display: block;
}

.settings-forms {
    display: grid;
    gap: 18px;
}

.settings-card {
    padding: 25px 27px;
    border-radius: 26px;
    border-color: rgba(191, 211, 241, .95);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 44px rgba(74, 101, 155, .13),
        inset 1px 1px 0 rgba(255, 255, 255, .98),
        inset -1px -1px 0 rgba(209, 221, 241, .7);
}

.settings-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}

.settings-card-head > div {
    display: grid;
    gap: 4px;
}

.settings-card-head h2 {
    margin: 2px 0 1px;
    color: #34425c;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.settings-card-head p {
    font-size: 10px;
}

.settings-card-icon-blue {
    color: #7384d8;
    background: rgba(232, 230, 255, .74);
}

.settings-form {
    display: grid;
    gap: 16px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-field {
    display: grid;
    align-content: start;
    gap: 7px;
}

.settings-field > label {
    color: #4b5a74;
    font-size: 10px;
    font-weight: 900;
}

.settings-input-wrap {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding-left: 13px;
    border: 1px solid rgba(210, 224, 247, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .64);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .92), 0 7px 18px rgba(113, 135, 183, .045);
}

.settings-input-wrap > i {
    flex: 0 0 auto;
    color: #7695e1;
    font-size: 14px;
}

.settings-input-wrap .form-control {
    min-height: 43px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: #536985;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
}

.settings-input-wrap:focus-within {
    border-color: rgba(117, 151, 229, .76);
    box-shadow: 0 0 0 4px rgba(126, 157, 232, .13), inset 1px 1px 0 rgba(255, 255, 255, .92);
}

.settings-password-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    margin-right: 3px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #7a90c9;
    background: transparent;
}

.settings-password-toggle:hover {
    color: #526fc4;
    background: rgba(229, 238, 255, .68);
}

.settings-input-readonly {
    opacity: .82;
}

.settings-hint,
.settings-note,
.settings-error {
    color: #98a5ba;
    font-size: 9px;
    line-height: 1.45;
}

.settings-error {
    color: #bd7689;
}

.settings-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 3px;
}

.settings-note i {
    margin-right: 4px;
    color: #7e98dc;
}

.settings-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 145px;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #697fdf, #967fe2);
    box-shadow: 0 11px 22px rgba(105, 126, 218, .22), inset 1px 1px 0 rgba(255, 255, 255, .34);
    font-size: 10px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.settings-submit-blue {
    background: linear-gradient(135deg, #5d93ed, #7f8fe2);
}

.settings-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(105, 126, 218, .3), inset 1px 1px 0 rgba(255, 255, 255, .34);
}

.settings-submit:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.settings-aside {
    position: sticky;
    top: 16px;
}

.settings-aside-card {
    display: grid;
    gap: 10px;
    padding: 23px;
    border-radius: 24px;
}

.settings-aside-icon {
    margin-bottom: 5px;
    color: #4aa287;
    background: rgba(218, 249, 237, .76);
}

.settings-aside-card h2 {
    margin: 0;
    color: #3d4f6b;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.settings-aside-card p {
    font-size: 10px;
}

.settings-aside-rule {
    height: 1px;
    margin: 6px 0 2px;
    background: linear-gradient(90deg, rgba(211, 225, 245, .85), transparent);
}

.settings-support-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6079c8;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.settings-support-link span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.settings-support-link:hover {
    color: #806fe0;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-aside {
        position: static;
    }
}

@media (max-width: 680px) {
    .settings-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px;
    }

    .settings-card {
        padding: 21px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-form-foot {
        align-items: stretch;
        flex-direction: column;
    }

.settings-submit {
    width: 100%;
}
}

/* Online LIB preview workspace */
.lib-page {
    display: grid;
    width: min(100%, 1140px);
    min-width: 0;
    max-width: 100%;
    gap: 18px;
    margin: 0 auto;
}

.lib-status:empty {
    display: none;
}

.lib-surface {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--glass-surface-border);
    border-radius: 26px;
    background: var(--glass-surface-bg);
    box-shadow: var(--glass-surface-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    backdrop-filter: blur(24px) saturate(125%);
}

.lib-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7289c4;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lib-kicker i {
    font-size: 12px;
}

.lib-panel-head p {
    margin: 0;
    color: #8796b1;
    font-size: 11px;
    line-height: 1.6;
}

.lib-count,
.lib-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.lib-surface {
    padding: 25px 27px;
    overflow: hidden;
}

.lib-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.lib-panel-head > div {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.lib-panel-head h2 {
    margin: 0;
    color: #34425c;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.lib-panel-head p {
    max-width: 520px;
    font-size: 10px;
}

.lib-panel-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 13px;
    color: #718fe0;
    background: rgba(226, 238, 255, .78);
    font-size: 16px;
}

.lib-dropzone {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 16px;
    border: 1px dashed rgba(157, 183, 226, .78);
    border-radius: 18px;
    background: rgba(247, 251, 255, .68);
    cursor: not-allowed;
}

.lib-dropzone-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 14px;
    color: #718fe0;
    background: rgba(226, 238, 255, .82);
    font-size: 17px;
}

.lib-dropzone > span:nth-child(2) {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
}

.lib-dropzone strong {
    color: #455571;
    font-size: 11px;
    font-weight: 900;
}

.lib-dropzone small {
    color: #93a1b8;
    font-size: 9px;
}

.lib-dropzone input {
    display: none;
}

.lib-browse {
    margin-left: auto;
    padding: 9px 11px;
    border: 1px solid rgba(205, 219, 245, .9);
    border-radius: 11px;
    color: #7189c9;
    background: rgba(255, 255, 255, .72);
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.lib-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.lib-submit-row > span {
    color: #96a3b8;
    font-size: 9px;
}

.lib-submit-row > span i {
    margin-right: 4px;
    color: #7e98dc;
}

.lib-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #6a8fe8, #967fe2);
    box-shadow: 0 11px 22px rgba(105, 126, 218, .2), inset 1px 1px 0 rgba(255, 255, 255, .35);
    font-size: 10px;
    font-weight: 900;
    opacity: .58;
}

.lib-panel-head-compact {
    align-items: center;
    margin-bottom: 16px;
}

.lib-count {
    padding: 7px 9px;
    color: #7186c3;
    background: rgba(231, 240, 255, .72);
}

.lib-table-wrap {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(191, 211, 241, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .56);
}

.lib-table {
    width: 100%;
    min-width: 820px;
    border-collapse: separate;
    border-spacing: 0;
    color: #71809a;
    font-size: 10px;
}

.lib-table th {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(213, 225, 245, .82);
    color: #8b99b1;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.lib-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(226, 233, 245, .72);
    white-space: nowrap;
}

.lib-table tbody tr:last-child td {
    border-bottom: 0;
}

.lib-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #435572;
}

.lib-file i {
    color: #7695e1;
    font-size: 14px;
}

.lib-file strong {
    font-weight: 900;
}

.lib-state {
    padding: 6px 8px;
    color: #399a79;
    background: rgba(221, 249, 237, .78);
}

.lib-state-muted {
    color: #a17c56;
    background: rgba(255, 242, 220, .82);
}

.lib-icon-action {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(205, 219, 245, .9);
    border-radius: 9px;
    color: #7a90c9;
    background: rgba(255, 255, 255, .7);
    opacity: .58;
}

@media (max-width: 680px) {
    .lib-surface {
        padding: 21px;
    }

    .lib-dropzone {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
    }

    .lib-browse {
        grid-column: 1 / -1;
        width: min(100%, 240px);
        margin-left: 0;
        justify-self: center;
        text-align: center;
    }

    .lib-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .lib-submit {
        width: 100%;
    }
}

/* Keep the shared app footer anchored after short pages. */
.glass-app-page {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
}

.glass-app-page > main {
    min-height: 0;
    flex: 1 0 auto;
}

.glass-app-page > footer.app-footer {
    margin-top: auto;
}

/* Shared liquid-glass contrast for every page surface. */
:root {
    --glass-surface-bg: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(247, 250, 255, .86) 58%, rgba(239, 235, 255, .8));
    --glass-surface-border: rgba(191, 211, 241, .95);
    --glass-edge-light: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, .72) 18%,
        rgba(255, 255, 255, .12) 48%,
        rgba(189, 214, 255, .22) 76%,
        rgba(255, 255, 255, .96) 100%);
    --glass-surface-shadow: 0 18px 44px rgba(74, 101, 155, .13),
        inset 1px 1px 0 rgba(255, 255, 255, .98),
        inset -1px -1px 0 rgba(185, 207, 240, .82);
}

.glass-app-page,
body.glass-auth-page {
    background:
        radial-gradient(circle at 5% 0%, rgba(96, 190, 255, .42), transparent 28%),
        radial-gradient(circle at 92% 94%, rgba(181, 164, 255, .3), transparent 32%),
        radial-gradient(circle at 78% 18%, rgba(196, 224, 255, .2), transparent 24%),
        linear-gradient(135deg, #e3f3ff 0%, #f0f8ff 48%, #f0edff 100%);
}

.glass-app-page .dashboard-card,
.glass-app-page .keys-surface,
.glass-app-page .keys-hero,
.glass-app-page .keys-metric,
.glass-app-page .keys-panel,
.glass-app-page .generate-hero,
.glass-app-page .generate-surface,
.glass-app-page .users-stat,
.glass-app-page .users-surface,
    .glass-app-page .settings-card,
    .glass-app-page .expiry-card,
    .glass-app-page .generate-result,
    .glass-app-page .lib-surface,
    body.glass-auth-page .login-card,
    body.glass-auth-page .developer-card {
    border-color: var(--glass-surface-border);
    background: var(--glass-surface-bg);
    box-shadow: var(--glass-surface-shadow);
}

.glass-app-page .expiry-card,
.glass-app-page .generate-result {
    border-color: var(--glass-surface-border);
    box-shadow: var(--glass-surface-shadow);
}

.glass-app-page .dashboard-card:not(.expiry-card),
.glass-app-page .keys-panel,
.glass-app-page .generate-surface,
.glass-app-page .users-surface,
.glass-app-page .settings-card {
    -webkit-backdrop-filter: blur(24px) saturate(125%);
    backdrop-filter: blur(24px) saturate(125%);
}

.glass-app-page .field-control,
.glass-app-page .settings-input-wrap,
.glass-app-page .generate-field .form-select,
.glass-app-page .generate-field .form-control,
.glass-app-page .generate-input-wrap,
.glass-app-page .users-search,
.glass-app-page .keys-filter-field select {
    border-color: rgba(191, 211, 241, .95);
    background-color: rgba(255, 255, 255, .78);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .98),
        inset -1px -1px 0 rgba(209, 221, 241, .42),
        0 7px 18px rgba(74, 101, 155, .06);
}

/* Shared iOS-style rim light: brighter at the top-left and bottom-right edges. */
:is(.keys-surface, .keys-hero, .keys-metric, .keys-panel, .generate-hero,
    .generate-surface, .users-stat, .users-surface, .settings-card,
    .expiry-card, .generate-result, .lib-surface, body.glass-auth-page .developer-card) {
    position: relative;
    isolation: isolate;
}

:is(.keys-surface, .keys-hero, .keys-metric, .keys-panel, .generate-hero,
    .generate-surface, .users-stat, .users-surface, .settings-card,
    .expiry-card, .generate-result, .lib-surface, body.glass-auth-page .developer-card)::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--glass-edge-light);
    content: "";
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: .94;
}
