:root {
    color-scheme: dark;
    --bg: #07100f;
    --bg-elevated: #0b1715;
    --panel: rgba(15, 30, 27, 0.88);
    --panel-solid: #0f1e1b;
    --panel-soft: #132521;
    --line: rgba(191, 232, 214, 0.12);
    --line-strong: rgba(191, 232, 214, 0.22);
    --text: #f3f8f5;
    --muted: #93aaa2;
    --muted-strong: #bccdc7;
    --accent: #b8f04d;
    --accent-strong: #8fd72b;
    --accent-soft: rgba(184, 240, 77, 0.12);
    --cyan: #54d6c5;
    --danger: #ff6b75;
    --danger-soft: rgba(255, 107, 117, 0.12);
    --warning: #ffc766;
    --success: #66e3a4;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --sidebar-width: 268px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(72, 181, 137, 0.12), transparent 34rem),
        radial-gradient(circle at 92% 92%, rgba(184, 240, 77, 0.08), transparent 30rem),
        var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

button,
input,
select {
    color: inherit;
    font: inherit;
}

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

:focus-visible {
    outline: 3px solid rgba(184, 240, 77, 0.35);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: rgba(8, 18, 16, 0.94);
    backdrop-filter: blur(24px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(184, 240, 77, 0.42);
    border-radius: 13px;
    color: #0b140d;
    background: linear-gradient(145deg, #d4ff7a, #8ed62d);
    box-shadow: 0 10px 28px rgba(143, 215, 43, 0.2);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand__copy {
    min-width: 0;
}

.brand__name {
    display: block;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.brand__product {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar__body {
    flex: 1;
    padding: 22px 14px;
    overflow: auto;
}

.nav-section + .nav-section {
    margin-top: 26px;
}

.nav-section__label {
    margin: 0 10px 8px;
    color: #6f8880;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 580;
    transition: 160ms ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}

.nav-link[aria-current="page"] {
    border-color: rgba(184, 240, 77, 0.16);
    color: var(--text);
    background: linear-gradient(90deg, rgba(184, 240, 77, 0.13), rgba(184, 240, 77, 0.035));
}

.nav-link[aria-current="page"] .nav-link__icon {
    color: #0d170f;
    background: var(--accent);
}

.nav-link__icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: #a6bbb4;
    background: rgba(255, 255, 255, 0.055);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.03em;
    transition: inherit;
}

.sidebar__footer {
    padding: 16px 18px 20px;
    border-top: 1px solid var(--line);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.025);
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(102, 227, 164, 0.09), 0 0 15px rgba(102, 227, 164, 0.5);
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(24px, 4vw, 58px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 15, 0.52);
    backdrop-filter: blur(18px);
}

.topbar__context {
    min-width: 0;
}

.eyebrow {
    display: block;
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.topbar__title {
    margin: 3px 0 0;
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 520;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 8px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.user-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 11px;
    font-weight: 850;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 760;
}

.role-badge--admin {
    border-color: rgba(255, 107, 117, 0.25);
    color: #ffb1b7;
    background: var(--danger-soft);
}

.role-badge--developer {
    border-color: rgba(102, 227, 164, 0.24);
    color: #94f0c1;
    background: rgba(102, 227, 164, 0.1);
}

.role-badge--user {
    border-color: rgba(84, 214, 197, 0.24);
    color: #91e8dc;
    background: rgba(84, 214, 197, 0.1);
}

.logout-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 650;
    transition: 160ms ease;
}

.logout-link:hover {
    border-color: rgba(255, 107, 117, 0.22);
    color: #ffadb3;
    background: var(--danger-soft);
}

.content {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 58px);
}

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

.page-heading h1,
.page-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-heading p {
    max-width: 660px;
    margin: 9px 0 0;
    color: var(--muted);
}

.hero {
    position: relative;
    display: grid;
    min-height: 370px;
    align-items: end;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 82% 18%, rgba(184, 240, 77, 0.18), transparent 17rem),
        radial-gradient(circle at 8% 96%, rgba(84, 214, 197, 0.1), transparent 22rem),
        linear-gradient(135deg, rgba(23, 48, 41, 0.97), rgba(10, 23, 20, 0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero::after {
    position: absolute;
    top: -90px;
    right: -40px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(184, 240, 77, 0.13);
    border-radius: 74px;
    content: "";
    transform: rotate(24deg);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 7px 11px;
    border: 1px solid rgba(102, 227, 164, 0.19);
    border-radius: 999px;
    color: #b7e9ce;
    background: rgba(102, 227, 164, 0.07);
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(39px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 660px;
    margin: 23px 0 0;
    color: #b4c8c0;
    font-size: clamp(15px, 1.6vw, 18px);
}

.quick-grid,
.metric-grid,
.split-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

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

.quick-card,
.metric-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
}

.quick-card {
    position: relative;
    min-height: 158px;
    padding: 20px;
    overflow: hidden;
    transition: 180ms ease;
}

.quick-card::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 100px;
    height: 100px;
    border: 1px solid var(--line);
    border-radius: 30px;
    content: "";
    transform: rotate(20deg);
}

.quick-card:hover {
    border-color: rgba(184, 240, 77, 0.25);
    background: rgba(21, 42, 36, 0.92);
    transform: translateY(-3px);
}

.quick-card__index {
    color: var(--accent);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.quick-card h2 {
    margin: 30px 0 3px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.quick-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    min-height: 154px;
    padding: 22px;
}

.metric-card__label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-card__value {
    display: block;
    margin-top: 19px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 760;
    letter-spacing: -0.04em;
}

.metric-card__meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 16px;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.panel {
    padding: clamp(20px, 3vw, 30px);
}

.panel + .panel {
    margin-top: 18px;
}

.panel__header {
    margin-bottom: 24px;
}

.panel__header h2,
.panel__header h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.025em;
}

.panel__header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.split-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
}

.identity-card {
    padding: 26px;
}

.identity-card__avatar {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid rgba(184, 240, 77, 0.18);
    border-radius: 19px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 22px;
    font-weight: 900;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row dt {
    color: var(--muted);
    font-size: 13px;
}

.detail-row dd {
    margin: 0;
    font-weight: 700;
}

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

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

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

.form-field {
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: rgba(4, 12, 10, 0.64);
    transition: 160ms ease;
}

.form-control:hover {
    border-color: rgba(191, 232, 214, 0.32);
}

.form-control:focus {
    border-color: rgba(184, 240, 77, 0.52);
    box-shadow: 0 0 0 4px rgba(184, 240, 77, 0.08);
}

.form-control::placeholder {
    color: #5f7770;
}

select.form-control {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.form-actions,
.action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.form-actions {
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    cursor: pointer;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
    font-weight: 730;
    line-height: 1;
    transition: 160ms ease;
}

.btn:hover {
    border-color: rgba(191, 232, 214, 0.33);
    background: rgba(255, 255, 255, 0.075);
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--accent);
    color: #10200e;
    background: var(--accent);
    box-shadow: 0 8px 24px rgba(143, 215, 43, 0.14);
}

.btn-primary:hover {
    border-color: #cafb6b;
    background: #cafb6b;
}

.btn-danger {
    border-color: rgba(255, 107, 117, 0.22);
    color: #ffadb3;
    background: var(--danger-soft);
}

.btn-danger:hover {
    border-color: rgba(255, 107, 117, 0.4);
    background: rgba(255, 107, 117, 0.18);
}

.btn-warning {
    border-color: rgba(255, 199, 102, 0.22);
    color: #ffd995;
    background: rgba(255, 199, 102, 0.09);
}

.btn-sm {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 11px;
}

.alert {
    position: relative;
    margin-bottom: 20px;
    padding: 13px 44px 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    font-size: 13px;
}

.alert-success {
    border-color: rgba(102, 227, 164, 0.21);
    color: #b5f3d2;
    background: rgba(102, 227, 164, 0.08);
}

.alert-danger {
    border-color: rgba(255, 107, 117, 0.23);
    color: #ffc1c6;
    background: var(--danger-soft);
}

.alert__close,
.close {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: inherit;
    background: transparent;
    font-size: 20px;
    transform: translateY(-50%);
}

.alert__close:hover,
.close:hover {
    background: rgba(255, 255, 255, 0.07);
}

.table-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13px;
}

.table th,
.table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.table th {
    color: #758d85;
    background: rgba(3, 10, 8, 0.26);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.table tbody tr {
    transition: 140ms ease;
}

.table tbody tr:hover {
    background: rgba(184, 240, 77, 0.025);
}

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

.table td:first-child {
    color: var(--text);
    font-weight: 720;
}

.table .form-control {
    min-width: 90px;
    min-height: 36px;
    padding: 6px 9px;
}

.inline-form {
    margin: 0;
}

.login-page,
.error-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-shell {
    display: grid;
    width: min(1040px, 100%);
    min-height: 620px;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: rgba(9, 21, 18, 0.92);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 62px);
    background:
        radial-gradient(circle at 75% 20%, rgba(184, 240, 77, 0.2), transparent 18rem),
        linear-gradient(145deg, #153329, #0b1c18 72%);
    overflow: hidden;
}

.login-visual::after {
    position: absolute;
    right: -110px;
    bottom: -90px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(184, 240, 77, 0.14);
    border-radius: 94px;
    content: "";
    transform: rotate(28deg);
}

.login-visual__content {
    position: relative;
    z-index: 1;
}

.login-visual h1 {
    max-width: 480px;
    margin: 120px 0 20px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.login-visual h1 span {
    color: var(--accent);
}

.login-visual p {
    max-width: 460px;
    margin: 0;
    color: #aac2b8;
}

.login-security {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #88a298;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form-wrap {
    display: grid;
    align-items: center;
    padding: clamp(34px, 5vw, 62px);
}

.login-form-wrap h2 {
    margin: 7px 0 8px;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.login-form-wrap > div > p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
}

.login-form .form-field + .form-field {
    margin-top: 17px;
}

.login-form .btn {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
}

.error-card {
    width: min(620px, 100%);
    padding: clamp(30px, 5vw, 54px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--panel-solid);
    box-shadow: var(--shadow);
}

.error-code {
    display: inline-grid;
    min-width: 56px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 107, 117, 0.22);
    border-radius: 9px;
    color: #ffadb3;
    background: var(--danger-soft);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.error-card h1 {
    margin: 24px 0 12px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.error-card p {
    margin: 0;
    color: var(--muted-strong);
}

.error-card .btn {
    margin-top: 28px;
}

.mobile-bar,
.nav-backdrop {
    display: none;
}

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

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

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

@media (max-width: 860px) {
    .sidebar {
        width: min(84vw, 310px);
        transform: translateX(-102%);
        transition: transform 220ms ease;
    }

    [data-nav-open="true"] .sidebar {
        transform: translateX(0);
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 20;
        display: block;
        border: 0;
        opacity: 0;
        visibility: hidden;
        background: rgba(0, 0, 0, 0.56);
        backdrop-filter: blur(3px);
        transition: 200ms ease;
    }

    [data-nav-open="true"] .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-bar {
        display: flex;
        min-height: 72px;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(7, 16, 15, 0.86);
        backdrop-filter: blur(18px);
    }

    .mobile-bar .brand {
        min-height: auto;
        padding: 0;
        border: 0;
    }

    .mobile-bar .brand__mark {
        width: 37px;
        height: 37px;
    }

    .nav-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 11px;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.035);
    }

    .nav-toggle span,
    .nav-toggle::before,
    .nav-toggle::after {
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: var(--muted-strong);
        content: "";
    }

    .nav-toggle {
        gap: 4px;
    }

    .topbar {
        min-height: 76px;
        padding: 14px 20px;
    }

    .topbar__context {
        display: none;
    }

    .topbar {
        justify-content: flex-end;
    }

    .content {
        padding: 28px 20px 44px;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 330px;
    }

    .login-visual h1 {
        margin-top: 76px;
    }
}

@media (max-width: 620px) {
    .quick-grid,
    .metric-grid,
    .form-grid,
    .form-grid--four {
        grid-template-columns: 1fr;
    }

    .page-heading {
        align-items: start;
        flex-direction: column;
    }

    .hero {
        min-height: 420px;
        padding: 30px 24px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .user-link .role-badge {
        display: none;
    }

    .logout-link {
        padding-inline: 11px;
        font-size: 0;
    }

    .logout-link::after {
        font-size: 12px;
        content: "Exit";
    }

    .table th,
    .table td {
        padding: 13px 14px;
    }

    .login-page {
        padding: 0;
        place-items: stretch;
    }

    .login-shell {
        border: 0;
        border-radius: 0;
    }

    .login-visual {
        min-height: 290px;
        padding: 30px 24px;
    }

    .login-visual h1 {
        margin-top: 50px;
        font-size: 43px;
    }

    .login-form-wrap {
        padding: 38px 24px 48px;
    }
}

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