:root {
    --ee-bg: #f4f7fb;
    --ee-surface: #ffffff;
    --ee-surface-2: #eef3f8;
    --ee-text: #152033;
    --ee-muted: #66758a;
    --ee-line: #dce5ee;
    --ee-brand: #0f7d80;
    --ee-brand-2: #123f67;
    --ee-good: #15945f;
    --ee-shadow: 0 16px 40px rgba(19, 45, 75, .09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ee-bg);
    color: var(--ee-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.ee-dark {
    --ee-bg: #101823;
    --ee-surface: #172333;
    --ee-surface-2: #213044;
    --ee-text: #edf4fb;
    --ee-muted: #a7b4c5;
    --ee-line: #2d4159;
    --ee-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}

.ee-shell {
    display: flex;
    min-height: 100vh;
}

.ee-main {
    width: 100%;
    min-width: 0;
    margin-left: 0;
}

.ee-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 82px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--ee-line);
    background: var(--ee-bg);
}

.ee-topbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    min-width: 148px;
}

.ee-topbar-brand img {
    display: block;
    max-width: 132px;
    max-height: 40px;
}

.ee-topbar h1,
.ee-panel h2,
.ee-login h1,
.ee-error h1 {
    margin: 0;
    letter-spacing: 0;
}

.ee-topbar h1 {
    font-size: 24px;
    font-weight: 750;
}

.ee-kicker {
    color: var(--ee-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ee-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.ee-icon-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ee-line);
    border-radius: 8px;
    background: var(--ee-surface);
    color: var(--ee-text);
}

.ee-icon-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    background: currentColor;
}

.ee-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 4px 12px 4px 5px;
    border: 1px solid var(--ee-line);
    border-radius: 8px;
    background: var(--ee-surface);
    color: var(--ee-text);
}

.ee-user-chip span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ee-brand);
    color: #fff;
    font-weight: 800;
}

.ee-user-type {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--ee-surface-2);
    color: var(--ee-muted);
    font-size: 12px;
    font-weight: 800;
}

.ee-content {
    padding: 28px;
}

.ee-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ee-stat-grid-compact .ee-stat strong {
    font-size: 24px;
}

.ee-stat,
.ee-panel,
.ee-login-panel,
.ee-error {
    border: 1px solid var(--ee-line);
    border-radius: 8px;
    background: var(--ee-surface);
    box-shadow: var(--ee-shadow);
}

.ee-stat {
    padding: 20px;
}

.ee-stat span,
.ee-mini-grid span {
    display: block;
    color: var(--ee-muted);
    font-size: 13px;
    font-weight: 700;
}

.ee-stat strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.1;
}

.ee-stat small {
    color: var(--ee-muted);
}

.ee-stat-good strong {
    color: var(--ee-good);
}

.ee-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 16px;
    margin-top: 16px;
}

.ee-panel {
    padding: 22px;
}

.ee-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ee-panel h2 {
    font-size: 20px;
}

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

.ee-mini-grid div {
    min-height: 92px;
    padding: 16px;
    border-radius: 8px;
    background: var(--ee-surface-2);
}

.ee-mini-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.ee-muted {
    color: var(--ee-muted);
}

.ee-login-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(15, 125, 128, .12), transparent 38%),
        linear-gradient(315deg, rgba(18, 63, 103, .18), transparent 42%),
        var(--ee-bg);
}

.ee-login {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(320px, 520px);
    width: min(980px, 100%);
    min-height: 610px;
}

.ee-login-panel {
    padding: 42px;
    border-radius: 8px 0 0 8px;
}

.ee-login-logo {
    max-width: 170px;
    margin-bottom: 42px;
}

.ee-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.ee-form label span {
    display: block;
    margin-bottom: 7px;
    color: var(--ee-muted);
    font-size: 13px;
    font-weight: 800;
}

.ee-form input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ee-line);
    border-radius: 8px;
    background: var(--ee-surface);
    color: var(--ee-text);
    outline: none;
}

.ee-form input:focus {
    border-color: var(--ee-brand);
    box-shadow: 0 0 0 4px rgba(15, 125, 128, .14);
}

.ee-password {
    display: flex;
    gap: 8px;
}

.ee-password button {
    min-width: 76px;
    border: 1px solid var(--ee-line);
    border-radius: 8px;
    background: var(--ee-surface-2);
    color: var(--ee-text);
    font-weight: 800;
}

.ee-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--ee-brand);
    color: #ffffff;
    font-weight: 850;
}

.ee-login-aside {
    display: flex;
    align-items: end;
    padding: 42px;
    border-radius: 0 8px 8px 0;
    background:
        linear-gradient(180deg, rgba(16, 38, 63, .15), rgba(16, 38, 63, .88)),
        url('/assets/images/logos/logo-white.png') center 72px / 220px auto no-repeat,
        #10263f;
    color: #ffffff;
}

.ee-login-aside span {
    display: block;
    margin-bottom: 12px;
    color: #63d4cf;
    font-weight: 850;
}

.ee-login-aside strong {
    display: block;
    max-width: 360px;
    font-size: 28px;
    line-height: 1.18;
}

.ee-error-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.ee-error {
    width: min(460px, 100%);
    padding: 42px;
    text-align: center;
}

.ee-error img {
    max-width: 160px;
    margin-bottom: 20px;
}

.ee-error h1 {
    font-size: 68px;
}

@media (max-width: 1100px) {
    .ee-stat-grid,
    .ee-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ee-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .ee-main {
        margin-left: 0;
    }

    .ee-login {
        grid-template-columns: 1fr;
    }

    .ee-login-panel {
        border-radius: 8px;
    }

    .ee-login-aside {
        display: none;
    }
}

@media (max-width: 620px) {
    .ee-topbar {
        padding: 12px 16px;
    }

    .ee-topbar-brand {
        width: 118px;
        min-width: 118px;
    }

    .ee-topbar-brand img {
        max-width: 108px;
    }

    .ee-user-chip strong {
        display: none;
    }

    .ee-content {
        padding: 16px;
    }

    .ee-stat-grid,
    .ee-mini-grid {
        grid-template-columns: 1fr;
    }

    .ee-login-panel {
        padding: 28px;
    }
}
