:root {
    color-scheme: dark;
    --black: #03050a;
    --ink: #050913;
    --navy: #081426;
    --navy-soft: #0b1b31;
    --panel: rgba(8, 17, 31, 0.9);
    --panel-solid: #08111f;
    --line: rgba(150, 201, 255, 0.12);
    --line-strong: rgba(137, 202, 255, 0.24);
    --blue: #57c7ff;
    --blue-bright: #92ddff;
    --purple: #9c6bff;
    --purple-soft: #6947c7;
    --white: #f6f9ff;
    --muted: #8294ad;
    --muted-light: #b0bdd0;
    --success: #55e6bd;
    --danger: #ff8fba;
    --sidebar-width: 268px;
    --subnav-width: 248px;
    --topbar-height: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

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

html {
    background: var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    width: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.is-hidden {
    display: none !important;
}

.eyebrow {
    display: inline-block;
    color: var(--blue);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(85, 230, 189, 0.85);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(115, 209, 255, 0.46);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(75, 197, 255, 0.16), rgba(121, 78, 220, 0.22));
    box-shadow: inset 0 0 20px rgba(92, 190, 255, 0.08), 0 0 28px rgba(86, 174, 255, 0.08);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.brand-mark::before {
    width: 17px;
    height: 17px;
    border: 1px solid var(--blue);
    box-shadow: 0 0 10px rgba(87, 199, 255, 0.7);
}

.brand-mark::after {
    width: 5px;
    height: 5px;
    background: var(--white);
    box-shadow: 0 0 8px var(--blue-bright);
}

.brand-mark span {
    width: 28px;
    height: 11px;
    border: 1px solid rgba(170, 121, 255, 0.8);
    transform: rotate(-24deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    font-size: 0.98rem;
    font-weight: 690;
    letter-spacing: 0.01em;
}

.brand-copy small {
    margin-top: 0.38rem;
    color: var(--muted);
    font-size: 0.51rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.login-view {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #02060d url("../assets/LoginBackground.png") center center / cover no-repeat;
}

.login-view::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(1, 4, 9, 0.66) 0%, rgba(1, 5, 11, 0.34) 29%, transparent 58%),
        linear-gradient(180deg, rgba(0, 3, 9, 0.12), rgba(0, 2, 8, 0.32));
}

.login-view::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image: radial-gradient(rgba(180, 220, 255, 0.65) 0.55px, transparent 0.55px);
    background-size: 4px 4px;
    mix-blend-mode: soft-light;
}

.login-ambient {
    position: absolute;
    z-index: 1;
    left: 22%;
    top: 50%;
    width: 42vw;
    height: 75vh;
    border-left: 1px solid rgba(89, 201, 255, 0.14);
    transform: translateY(-50%);
    pointer-events: none;
}

.login-ambient::before,
.login-ambient::after {
    content: "";
    position: absolute;
    left: -2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
}

.login-ambient::before {
    top: 8%;
}

.login-ambient::after {
    bottom: 12%;
}

.login-panel {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(43%, 680px);
    min-width: 520px;
    min-height: 100vh;
    align-items: center;
    padding: 4rem clamp(3rem, 6vw, 7rem);
}

.login-card {
    width: min(100%, 380px);
    animation: login-in 0.8s var(--ease) both;
}

@keyframes login-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand--login {
    margin-bottom: clamp(3.5rem, 8vh, 6.5rem);
}

.login-heading {
    margin-bottom: 2rem;
}

.login-heading h1 {
    margin: 0.72rem 0 0.8rem;
    font-size: clamp(2.25rem, 3.3vw, 3.45rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.login-heading p {
    max-width: 360px;
    margin: 0;
    color: var(--muted-light);
    font-size: 0.94rem;
    line-height: 1.65;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.field-label {
    margin: 0 0 0.55rem;
    color: #c8d4e5;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.field-label:not(:first-child) {
    margin-top: 1.15rem;
}

.field-control {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.95rem;
    border: 1px solid rgba(137, 191, 243, 0.18);
    border-radius: 12px;
    background: rgba(4, 12, 23, 0.73);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(15px);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field-control:focus-within {
    border-color: rgba(87, 199, 255, 0.7);
    background: rgba(5, 17, 31, 0.86);
    box-shadow: 0 0 0 3px rgba(87, 199, 255, 0.08), 0 0 24px rgba(87, 199, 255, 0.06);
}

.field-control > svg {
    width: 17px;
    color: #738ba7;
}

.field-control input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    font-size: 0.9rem;
}

.field-control input::placeholder {
    color: #52637a;
}

.field-action {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-right: -0.5rem;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.field-action:hover {
    color: var(--blue-bright);
    background: rgba(87, 199, 255, 0.07);
}

.form-error {
    min-height: 1.2rem;
    margin: 0.7rem 0 0;
    color: var(--danger);
    font-size: 0.76rem;
}

.login-button {
    position: relative;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.2rem;
    overflow: hidden;
    border: 1px solid rgba(137, 219, 255, 0.48);
    border-radius: 12px;
    color: #03101b;
    background: linear-gradient(112deg, #8ee3ff 0%, #63c6ff 54%, #a88aff 130%);
    box-shadow: 0 12px 40px rgba(66, 174, 255, 0.15);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.login-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 650ms ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 46px rgba(66, 174, 255, 0.24);
}

.login-button:hover::before {
    transform: translateX(110%);
}

.login-button svg {
    position: relative;
    width: 17px;
}

.local-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
    color: #667991;
    font-size: 0.68rem;
}

.reset-profile {
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
    color: #64768d;
    background: transparent;
    cursor: pointer;
    font-size: 0.68rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.reset-profile:hover {
    color: var(--muted-light);
    text-decoration-color: currentColor;
}

.app-view,
.app-grid {
    min-height: 100vh;
}

.app-view {
    background:
        radial-gradient(circle at 78% 18%, rgba(78, 91, 199, 0.11), transparent 32%),
        radial-gradient(circle at 55% 90%, rgba(35, 160, 220, 0.06), transparent 38%),
        var(--ink);
}

.app-grid {
    display: grid;
    grid-template-columns: var(--sidebar-width) var(--subnav-width) minmax(0, 1fr);
}

.primary-sidebar,
.secondary-sidebar {
    position: relative;
    z-index: 5;
    display: flex;
    min-width: 0;
    flex-direction: column;
    min-height: 100vh;
}

.primary-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(3, 8, 16, 0.92);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.09);
}

.primary-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image: linear-gradient(rgba(86, 167, 221, 0.025) 1px, transparent 1px);
    background-size: 100% 44px;
}

.primary-header {
    position: relative;
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 1.35rem;
    border-bottom: 1px solid var(--line);
}

.primary-navigation {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.65rem 0.85rem;
}

.primary-link {
    position: relative;
    display: grid;
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #8799b1;
    font-size: 0.81rem;
    font-weight: 560;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-link::before {
    content: "";
    position: absolute;
    left: -0.9rem;
    top: 50%;
    width: 2px;
    height: 22px;
    border-radius: 0 4px 4px 0;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
    opacity: 0;
    transform: translateY(-50%) scaleY(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.primary-link > svg {
    width: 15px;
    opacity: 0.42;
}

.primary-link:hover {
    color: #d5e3f5;
    background: rgba(75, 136, 193, 0.06);
}

.primary-link.is-active {
    border-color: rgba(94, 194, 255, 0.1);
    color: var(--white);
    background: linear-gradient(90deg, rgba(68, 166, 226, 0.12), rgba(100, 79, 188, 0.06));
}

.primary-link.is-active::before {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.primary-link.is-active > svg {
    color: var(--blue);
    opacity: 0.9;
}

.nav-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #7790ac;
    background: rgba(103, 146, 193, 0.055);
}

.nav-icon svg {
    width: 17px;
}

.primary-link.is-active .nav-icon {
    color: var(--blue-bright);
    background: rgba(79, 190, 249, 0.12);
    box-shadow: inset 0 0 14px rgba(82, 182, 255, 0.08);
}

.primary-footer {
    position: relative;
    padding: 1rem;
    border-top: 1px solid var(--line);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem;
}

.profile-avatar,
.account-button > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid rgba(138, 204, 255, 0.24);
    border-radius: 10px;
    color: #dff5ff;
    background: linear-gradient(145deg, rgba(64, 183, 239, 0.2), rgba(136, 86, 226, 0.22));
    font-size: 0.78rem;
    font-weight: 750;
}

.profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.profile-copy strong {
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy small {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: #64778e;
    font-size: 0.62rem;
}

.secondary-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(7, 15, 28, 0.78);
    backdrop-filter: blur(24px);
}

.secondary-header {
    min-height: 178px;
    padding: 2rem 1.35rem 1.35rem;
    border-bottom: 1px solid var(--line);
}

.secondary-header h2 {
    margin: 0.55rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 640;
    letter-spacing: -0.02em;
}

.secondary-header p {
    margin: 0;
    color: #6f8198;
    font-size: 0.7rem;
    line-height: 1.55;
}

.secondary-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 0.75rem;
}

.secondary-link {
    display: grid;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.8rem 0.65rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #8597af;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.secondary-link > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.secondary-link strong {
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 580;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.secondary-link small {
    margin-top: 0.3rem;
    color: #52667d;
    font-size: 0.59rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.secondary-link > svg {
    width: 14px;
    opacity: 0.35;
}

.secondary-link:hover {
    color: #d8e5f4;
    background: rgba(100, 162, 222, 0.055);
}

.secondary-link.is-active {
    border-color: rgba(118, 194, 255, 0.13);
    color: var(--white);
    background: linear-gradient(105deg, rgba(64, 170, 233, 0.1), rgba(106, 78, 194, 0.07));
}

.secondary-link.is-active small,
.secondary-link.is-active > svg {
    color: var(--blue);
    opacity: 0.9;
}

.secondary-footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.25rem 1.35rem;
    border-top: 1px solid var(--line);
    color: #587087;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pulse-ring {
    width: 8px;
    height: 8px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(87, 199, 255, 0.55);
}

.workspace {
    display: grid;
    min-width: 0;
    min-height: 100vh;
    grid-template-rows: var(--topbar-height) minmax(0, 1fr);
}

.topbar {
    position: relative;
    z-index: 4;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 2.5vw, 2.25rem);
    border-bottom: 1px solid var(--line);
    background: rgba(4, 9, 17, 0.74);
    backdrop-filter: blur(22px);
}

.topbar-context,
.topbar-actions,
.breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
}

.topbar-context {
    gap: 0.75rem;
}

.breadcrumb {
    gap: 0.65rem;
    overflow: hidden;
    color: #62758b;
    font-size: 0.72rem;
}

.breadcrumb > svg {
    width: 12px;
    flex: 0 0 12px;
}

.breadcrumb span,
.breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb strong {
    color: #c5d4e5;
    font-weight: 580;
}

.topbar-actions {
    gap: 0.45rem;
}

.icon-button,
.account-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #71869e;
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.account-button:hover {
    border-color: var(--line);
    color: #d9e9f8;
    background: rgba(88, 159, 218, 0.06);
}

.icon-button svg {
    width: 17px;
}

.notification-button {
    position: relative;
}

.notification-button > span {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple);
}

.topbar-divider {
    width: 1px;
    height: 22px;
    margin: 0 0.45rem;
    background: var(--line);
}

.account-button {
    display: flex;
    width: auto;
    gap: 0.45rem;
    padding: 0 0.35rem;
}

.account-button > span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 9px;
    font-size: 0.7rem;
}

.account-button svg {
    width: 15px;
}

.content-area {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    outline: none;
}

@keyframes slow-spin {
    to { transform: rotate(360deg); }
}

.document-view {
    position: relative;
    min-height: 100%;
    padding: 1rem;
}

.content-loader {
    position: absolute;
    z-index: 1;
    inset: 1rem;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--muted);
    background: var(--ink);
}

.content-loader span {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(87, 199, 255, 0.18);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: slow-spin 0.8s linear infinite;
}

.content-loader small {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.content-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - var(--topbar-height) - 2rem);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.toast {
    position: fixed;
    z-index: 50;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: min(360px, calc(100vw - 3rem));
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: #d7e7f6;
    background: rgba(7, 18, 32, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(18px);
    font-size: 0.76rem;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mobile-only,
.mobile-backdrop {
    display: none;
}

.back-button {
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 0.72rem;
}

.back-button svg {
    width: 14px;
}

@media (max-width: 1120px) {
    :root {
        --sidebar-width: 232px;
        --subnav-width: 224px;
    }

    .brand-copy small {
        letter-spacing: 0.14em;
    }

    .primary-link {
        font-size: 0.76rem;
    }
}

@media (max-width: 820px) {
    body {
        overflow: hidden;
    }

    .app-grid {
        display: block;
    }

    .mobile-only {
        display: grid;
    }

    .back-button.mobile-only {
        display: flex;
    }

    .primary-sidebar,
    .secondary-sidebar {
        position: fixed;
        z-index: 20;
        inset: 0 auto 0 0;
        width: min(300px, calc(100vw - 54px));
        min-height: 100vh;
        box-shadow: 35px 0 80px rgba(0, 0, 0, 0.55);
        transform: translateX(-105%);
        transition: transform 280ms var(--ease);
    }

    .primary-sidebar {
        background: rgba(3, 8, 16, 0.98);
    }

    .secondary-sidebar {
        background: rgba(7, 15, 28, 0.98);
    }

    .app-view[data-mobile-panel="primary"] .primary-sidebar,
    .app-view[data-mobile-panel="secondary"] .secondary-sidebar {
        transform: translateX(0);
    }

    .mobile-backdrop {
        position: fixed;
        z-index: 15;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(0, 3, 8, 0.68);
        opacity: 0;
        pointer-events: none;
        transition: opacity 220ms ease;
        backdrop-filter: blur(3px);
    }

    .app-view[data-mobile-panel="primary"] .mobile-backdrop,
    .app-view[data-mobile-panel="secondary"] .mobile-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .workspace {
        min-height: 100vh;
    }

}

@media (max-width: 620px) {
    .login-view {
        background-position: 65% center;
    }

    .login-view::before {
        background: rgba(1, 5, 12, 0.72);
        backdrop-filter: blur(2px);
    }

    .login-ambient {
        display: none;
    }

    .login-panel {
        width: 100%;
        min-width: 0;
        padding: 2.25rem 1.5rem;
    }

    .login-card {
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
        padding: 1.35rem;
        border: 1px solid rgba(137, 191, 243, 0.13);
        border-radius: 22px;
        background: rgba(2, 8, 17, 0.76);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(18px);
    }

    .brand--login {
        margin-bottom: 3.5rem;
    }

    .login-heading h1 {
        font-size: 2.25rem;
    }

    .topbar {
        padding: 0 0.85rem;
    }

    .breadcrumb > span,
    .breadcrumb > svg {
        display: none;
    }

    .topbar-actions {
        gap: 0.1rem;
    }

    .topbar-divider {
        margin: 0 0.18rem;
    }

    .document-view {
        padding: 0;
    }

    .content-loader {
        inset: 0;
        border: 0;
        border-radius: 0;
    }

    .content-frame {
        min-height: calc(100vh - var(--topbar-height));
        border: 0;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Authentication shares the existing visual language, including small screens. */
[hidden] { display: none !important; }
.login-view { height: 100dvh; overflow-y: auto; }
.login-panel { padding-top: 2rem; padding-bottom: 2rem; }
.login-form > [data-auth-modes] { margin-top: 1.15rem; }
.login-form > [data-auth-modes]:first-child { margin-top: 0; }
.login-form [data-auth-modes] .field-label { display: block; }
.auth-hint, .auth-status { font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.auth-hint { color: var(--muted-light); }
.auth-status { color: var(--blue-bright); }
.auth-status:empty, .form-error:empty { display: none; }
.auth-links { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 1.2rem; }
.auth-links button, .auth-link { border: 0; background: none; padding: .4rem 0; color: var(--blue); cursor: pointer; font-size: .85rem; }
.remember-label { display: flex; gap: .65rem; align-items: center; color: var(--muted-light); font-size: .85rem; }
.remember-label input { accent-color: var(--blue); }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.account-dialog { width: min(540px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.8rem; color: var(--white); background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 18px; }
.account-dialog::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(6px); }
.account-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.account-dialog h2 { margin: 0; }
.account-dialog form + form, .delete-account { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.account-dialog h3 { font-size: 1rem; }
.auth-secondary { margin-top: 1rem; border: 1px solid var(--line-strong); padding: .8rem 1rem; border-radius: 10px; background: var(--navy-soft); cursor: pointer; }
.delete-account summary, .danger { color: var(--danger); cursor: pointer; }
.delete-account p { color: var(--muted-light); font-size: .85rem; line-height: 1.6; }
@media (max-width: 600px) { .account-dialog { padding: 1.2rem; } .brand--login { margin-bottom: 2rem; } }
