html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #f5f7f8;
    color: #1f2933;
    font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

:root {
    --rz-primary: #1f8f5f;
    --rz-primary-light: #34b77b;
    --rz-primary-lighter: #e8f7ef;
    --rz-primary-dark: #176d4a;
    --rz-primary-darker: #0f5137;
    --app-green-950: #0b2f24;
    --app-green-900: #104331;
    --app-green-800: #176d4a;
    --app-green-700: #1f8f5f;
    --app-green-600: #25a86f;
    --app-green-100: #e8f7ef;
}

body {
    overflow: hidden;
}

.rz-header {
    position: relative;
    z-index: 100;
    overflow: visible;
    background: linear-gradient(90deg, var(--app-green-900), var(--app-green-700));
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(16, 67, 49, 0.22);
}

.rz-sidebar {
    border-right: 1px solid #dce8e1;
    background: #ffffff;
}

.rz-panel-menu .rz-navigation-item-link {
    border-radius: 8px;
}

.rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-link,
.rz-panel-menu .rz-navigation-item-link.rz-state-active,
.rz-panel-menu .rz-navigation-item-link[aria-current="page"],
.rz-panel-menu .rz-navigation-item-link:hover {
    background: var(--app-green-100) !important;
    color: var(--app-green-800) !important;
}

.rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-link *,
.rz-panel-menu .rz-navigation-item-link.rz-state-active *,
.rz-panel-menu .rz-navigation-item-link[aria-current="page"] * {
    color: var(--app-green-800) !important;
    fill: currentColor;
    stroke: currentColor;
}

.rz-button.rz-primary {
    background-color: var(--app-green-700);
    border-color: var(--app-green-700);
}

.app-header {
    height: 56px;
    padding: 0 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    min-height: 38px;
    line-height: 1.1;
}

.brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.header-spacer {
    flex: 1;
}

.current-user {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.account-menu {
    position: relative;
    z-index: 110;
}

.account-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.account-menu-trigger span {
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1;
    transform: translateY(1px);
}

.account-menu-trigger:hover,
.account-menu-trigger:focus-visible,
.account-menu.is-open .account-menu-trigger {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.34);
    outline: none;
    transform: translateY(-1px);
}

.account-menu-chevron {
    font-size: 18px;
    transition: transform 0.16s ease;
}

.account-menu.is-open .account-menu-chevron {
    transform: rotate(180deg);
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    min-width: 210px;
    overflow: hidden;
    border: 1px solid rgba(16, 67, 49, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #f4fbf7 0, #ffffff 96px),
        #ffffff;
    color: #1f2933;
    box-shadow:
        0 20px 46px rgba(17, 24, 39, 0.2),
        0 2px 8px rgba(16, 67, 49, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.account-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 14;
    border: 0;
    background: transparent;
    cursor: default;
}

.sidebar-backdrop {
    display: none;
}

.account-menu.is-open .account-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu-user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 64px;
    padding: 14px 18px 12px;
    color: #1f2933;
    text-align: left;
    border-bottom: 1px solid #e5eee9;
}

.account-menu-user strong {
    color: #18231f;
    font-size: 14px;
    line-height: 1.25;
}

.account-menu-form {
    margin: 0;
}

.account-menu-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    background: #ffffff;
    color: #b42318;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, padding-left 0.14s ease;
}

.account-menu-logout:hover,
.account-menu-logout:focus-visible {
    background: #fef3f2;
    color: #b42318;
    outline: none;
    padding-left: 20px;
}

.account-menu-logout .rz-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #fef3f2;
    color: #b42318;
    font-size: 16px;
}

.account-menu-logout:hover .rz-icon,
.account-menu-logout:focus-visible .rz-icon {
    background: #ffe4e2;
}

.main-menu {
    padding: 8px;
}

.home-welcome {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 16%, rgba(31, 143, 95, 0.09), transparent 38%),
        #ffffff;
}

.home-welcome-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(560px, 100%);
    padding: 34px 24px;
}

.home-welcome-logo {
    display: block;
    width: min(238px, 72vw);
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.home-welcome-card h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    color: #182820;
    font-weight: 800;
    text-align: center;
}

.app-content:has(.home-welcome) {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    overflow: hidden;
    padding: 0;
}

.app-content {
    height: calc(100vh - 56px);
    overflow: auto;
    padding: 20px;
}

.page-block h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.page-block p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 14px;
}

.page-block {
    background: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.muted {
    color: #98a2b3;
    padding: 0 4px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    padding: 16px;
}

.metric-card span {
    color: #667085;
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.metric-card strong {
    font-size: 20px;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 22px;
    min-height: 300px;
    margin-bottom: 16px;
    padding: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(11, 47, 36, 0.98) 0%, rgba(23, 109, 74, 0.96) 54%, rgba(31, 143, 95, 0.94) 100%),
        url("/images/login-hero.svg") center / cover;
    color: #ffffff;
    box-shadow: 0 22px 50px rgba(17, 24, 39, 0.16);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -28% 36%;
    height: 220px;
    transform: rotate(-7deg);
    background: linear-gradient(90deg, rgba(185, 243, 214, 0.24), rgba(52, 183, 123, 0.06));
    pointer-events: none;
}

.home-hero-copy,
.home-hero-panel {
    position: relative;
    z-index: 1;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 780px;
}

.home-kicker,
.home-section-title span,
.home-panel-head span,
.home-metric-card > span,
.home-radar span,
.home-sync-card span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-kicker {
    color: #b9f3d6;
    margin-bottom: 10px;
}

.home-hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: 0;
}

.home-hero p {
    max-width: 690px;
    margin: 16px 0 0;
    color: rgba(248, 251, 250, 0.82);
    font-size: 16px;
    line-height: 1.75;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.home-primary-action,
.home-system-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-action-icon,
.home-sync-icon,
.home-card-icon span {
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    line-height: 1;
}

.home-action-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--app-green-100);
    color: var(--app-green-800);
    font-size: 12px;
}

.home-primary-action {
    padding: 0 16px;
    background: #ffffff;
    color: var(--app-green-800);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.home-primary-action:hover {
    color: var(--app-green-900);
    filter: brightness(1.04);
}

.home-system-pill {
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #eef7f4;
}

.home-pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b9f3d6;
    box-shadow: 0 0 0 4px rgba(185, 243, 214, 0.14);
}

.home-hero-panel {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(7, 17, 19, 0.42);
    backdrop-filter: blur(12px);
}

.home-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.home-panel-head span,
.home-radar span,
.home-sync-card span {
    color: rgba(238, 247, 244, 0.68);
}

.home-panel-head strong {
    color: #b9f3d6;
    font-size: 13px;
}

.home-radar {
    display: grid;
    gap: 12px;
}

.home-radar div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-radar div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-radar strong {
    color: #ffffff;
    font-size: 18px;
    text-align: right;
}

.home-sync-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.home-sync-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(185, 243, 214, 0.16);
    color: #b9f3d6;
    font-size: 15px;
}

.home-sync-card strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 15px;
}

.home-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.home-metric-card,
.home-flow,
.home-status {
    background: #ffffff;
    border: 1px solid #dce3e8;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.04);
}

.home-metric-card {
    position: relative;
    min-height: 178px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 18px;
}

.home-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--home-accent);
}

.home-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--home-accent) 12%, #ffffff);
    color: var(--home-accent);
}

.home-card-icon span {
    width: 100%;
    height: 100%;
    font-size: 15px;
}

.home-metric-card > span,
.home-section-title span {
    color: #667085;
}

.home-metric-card strong {
    display: block;
    color: #182820;
    font-size: 22px;
    line-height: 1.25;
}

.home-metric-card p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.accent-green {
    --home-accent: #1f8f5f;
}

.accent-blue {
    --home-accent: #14936f;
}

.accent-amber {
    --home-accent: #50a36a;
}

.accent-red {
    --home-accent: #0f5137;
}

.home-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
}

.home-flow,
.home-status {
    padding: 18px;
}

.home-section-title {
    margin-bottom: 16px;
}

.home-section-title h2 {
    margin: 4px 0 0;
    color: #1f2933;
    font-size: 18px;
    line-height: 1.35;
}

.home-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e4eaee;
    border-radius: 8px;
    overflow: hidden;
}

.home-flow-step {
    min-height: 150px;
    box-sizing: border-box;
    padding: 18px;
    border-right: 1px solid #e4eaee;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.home-flow-step:last-child {
    border-right: 0;
}

.home-flow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--app-green-100);
    color: var(--app-green-800);
    font-size: 12px;
    font-weight: 800;
}

.home-flow-step strong {
    display: block;
    color: #182820;
    font-size: 17px;
}

.home-flow-step p {
    margin: 9px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.home-status-list {
    display: grid;
    gap: 10px;
}

.home-status-list div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e4eaee;
    border-radius: 8px;
    background: #fbfcfd;
}

.home-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.home-status-dot.is-ready {
    background: var(--app-green-700);
    box-shadow: 0 0 0 4px rgba(31, 143, 95, 0.12);
}

.home-status-dot.is-progress {
    background: #67c587;
    box-shadow: 0 0 0 4px rgba(103, 197, 135, 0.16);
}

.home-status-list strong {
    color: #1f2933;
    font-size: 14px;
}

.home-status-list em {
    color: #667085;
    font-size: 13px;
    font-style: normal;
}

.login-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    padding: 24px 24px 78px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(232, 247, 239, 0.88) 0%, rgba(255, 255, 255, 0.96) 58%, #f5f7f8 100%),
        radial-gradient(circle at 50% 0%, rgba(31, 143, 95, 0.14), transparent 42%);
}

.login-stage {
    width: min(560px, 100%);
    height: auto;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 236px auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9e5df;
    border-radius: 8px;
    box-shadow:
        0 22px 54px rgba(16, 24, 40, 0.16),
        0 2px 8px rgba(31, 143, 95, 0.08);
}

.login-media {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px 26px;
    background:
        linear-gradient(145deg, #eefbe9 0%, #e5f7df 52%, #f6fff3 100%);
}

.login-brand-card {
    width: auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.login-brand-logo {
    width: min(258px, 68vw);
    max-width: 258px;
    height: auto;
    display: block;
}

.login-brand-title {
    color: #182820;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 34px 48px 44px;
    background: #ffffff;
}

.login-panel > * {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}

.login-alert-slot {
    min-height: 38px;
    margin-top: -6px;
}

.login-alert,
.login-alert-spacer {
    min-height: 24px;
}

.login-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2px 10px;
    color: #8a4b0f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.login-alert-spacer {
    visibility: hidden;
}

.login-footer {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: grid;
    gap: 6px;
    justify-items: center;
    width: min(520px, calc(100vw - 48px));
    color: #41554d;
    text-align: center;
}

.login-footer strong {
    color: #173b2d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.25;
}

.login-record {
    color: #789188;
    font-size: 12px;
    line-height: 1.35;
}

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

.login-form {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.login-field {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.login-input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd8df;
    border-radius: 8px;
    padding: 0 18px;
    background: #f8fbfa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input-shell:focus-within {
    border-color: #2d7f68;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 127, 104, 0.12);
}

.login-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: #789188;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input-shell input {
    width: 100%;
    min-width: 0;
    height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #182820;
    font-size: 16px;
}

.login-input-shell input::placeholder {
    color: #9aa9a4;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #2d7f68 0%, #205f50 100%);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(45, 127, 104, 0.26);
    cursor: pointer;
}

.login-button:hover {
    filter: brightness(1.04);
}

.login-button-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

    .app-content {
        height: auto;
        min-height: calc(100vh - 56px);
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 14px;
    }

    .app-header {
        padding: 0 10px;
        gap: 0;
        align-items: center;
    }

    .app-header .rz-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin: 0 4px 0 0 !important;
        padding: 13px !important;
        line-height: 1;
    }

    .app-header .rz-sidebar-toggle .rz-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        line-height: 1;
    }

    .brand-block {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 50px;
    }

    .brand-title {
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }

    .account-menu-trigger {
        max-width: 128px;
        padding: 0 8px;
        font-size: 13px;
    }

    .account-menu-trigger span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-menu-panel {
        width: min(220px, calc(100vw - 24px));
        right: 0;
    }

    .account-menu-user {
        min-height: 54px;
        padding: 14px 16px;
    }

    .account-menu-user strong,
    .account-menu-logout {
        font-size: 13px;
    }

    .rz-layout,
    .rz-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .rz-body {
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 56px 0 0;
        z-index: 26;
        border: 0;
        background: rgba(15, 23, 42, 0.2);
    }

    .rz-sidebar {
        position: fixed !important;
        top: 56px !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 30 !important;
        width: min(300px, 78vw) !important;
        max-width: 78vw;
        height: calc(100vh - 56px) !important;
        height: calc(100dvh - 56px) !important;
        overflow-y: auto;
        box-shadow: 14px 0 30px rgba(15, 23, 42, 0.18);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .rz-sidebar:not(.rz-sidebar-expanded) {
        transform: translateX(-100%) !important;
        box-shadow: none;
    }

    .rz-sidebar.rz-sidebar-expanded {
        transform: translateX(0) !important;
    }

    .main-menu {
        padding: 10px 8px 18px;
    }

    .rz-panel-menu .rz-navigation-item-link {
        min-height: 46px;
    }

    .home-welcome {
        min-height: 100%;
        padding: 0;
        border: 0;
        margin: 0;
        background:
            linear-gradient(180deg, #f1faf4 0%, #ffffff 68%),
            radial-gradient(circle at 50% 12%, rgba(31, 143, 95, 0.12), transparent 48%);
    }

    .home-welcome-card {
        min-height: calc(100vh - 56px);
        min-height: calc(100dvh - 56px);
        padding: 32px 20px;
        align-content: center;
    }

    .home-welcome-logo {
        width: min(204px, 76vw);
    }

    .home-welcome-card h1 {
        max-width: 320px;
        font-size: 24px;
        line-height: 1.35;
    }

    .metric-grid,
    .home-hero,
    .home-metric-grid,
    .home-workspace,
    .home-flow-steps {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: 0;
        padding: 24px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero-panel {
        padding: 16px;
    }

    .home-radar strong {
        font-size: 16px;
    }

    .home-flow-step {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #e4eaee;
    }

    .home-flow-step:last-child {
        border-bottom: 0;
    }

    .login-shell {
        min-height: 100vh;
        min-height: 100dvh;
        overflow: auto;
        place-items: stretch center;
        padding: 0 0 72px;
        background:
            radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.72), transparent 36%),
            linear-gradient(180deg, #e7f8e1 0%, #f2fbef 42%, #ffffff 78%, #f7faf8 100%);
    }

    .login-stage {
        width: 100%;
        max-width: 430px;
        min-height: calc(100vh - 72px);
        min-height: calc(100dvh - 72px);
        height: auto;
        max-height: none;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(238px, 33vh) 1fr;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .login-media {
        min-height: 238px;
        padding: 28px 28px 10px;
        background:
            radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.68), transparent 44%);
    }

    .login-brand-card {
        width: auto;
        padding: 0;
    }

    .login-brand-logo {
        width: min(256px, 72vw);
        max-width: 256px;
    }

    .login-panel {
        justify-content: flex-start;
        min-height: 0;
        padding: 10px 32px 36px;
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    .login-panel > * {
        max-width: none;
    }

    .login-form {
        gap: 20px;
    }

    .login-field {
        gap: 10px;
        color: #12345c;
        font-size: 15px;
    }

    .login-input-shell {
        gap: 18px;
        border-color: #cbd8df;
        border-radius: 8px;
        padding: 0 22px;
        background: #fbfdfc;
    }

    .login-input-shell:focus-within {
        box-shadow: 0 0 0 4px rgba(45, 127, 104, 0.14);
    }

    .login-icon {
        width: 30px;
        height: 30px;
    }

    .login-input-shell input {
        height: 64px;
        font-size: 18px;
    }

    .login-button {
        min-height: 64px;
        margin-top: 8px;
        border-radius: 8px;
        font-size: 18px;
        box-shadow: 0 20px 42px rgba(31, 143, 95, 0.26);
    }

    .login-button-icon {
        width: 26px;
        height: 26px;
    }

    .login-footer {
        position: absolute;
        bottom: 18px;
        width: min(360px, calc(100vw - 40px));
    }

    .login-footer strong {
        font-size: 12px;
        font-weight: 400;
    }
}

@media (max-width: 380px) {
    .login-stage {
        grid-template-rows: minmax(220px, 31vh) 1fr;
        border-left: 0;
        border-right: 0;
    }

    .login-media {
        min-height: 220px;
        padding: 24px 22px 8px;
    }

    .login-brand-logo {
        width: min(232px, 70vw);
    }

    .login-panel {
        padding: 8px 24px 30px;
    }
}
