@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #f2f3f6;
    --surface: #ffffff;
    --surface-alt: #f1f2f5;
    --surface-strong: #1d2126;
    --text: #1c1f24;
    --muted: #6f747c;
    --accent: #6a4dff;
    --accent-dark: #4a33c2;
    --accent-soft: rgba(106, 77, 255, 0.16);
    --accent-glow: rgba(106, 77, 255, 0.22);
    --gold: #c9a35a;
    --success: #1f8f5b;
    --success-soft: rgba(31, 143, 91, 0.14);
    --danger: #cf4a4a;
    --danger-soft: rgba(207, 74, 74, 0.14);
    --stroke: rgba(28, 32, 36, 0.08);
    --stroke-strong: rgba(28, 32, 36, 0.14);
    --shadow: none;
    --shadow-soft: none;
    --glow: 0 0 0 1px rgba(106, 77, 255, 0.14);
    --sidebar-width: 96px;
    --sidebar-width-expanded: 300px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --page-max-width: min(100%, clamp(1120px, 84vw, 1560px));
    --sidebar-pad: clamp(6px, 1.2vh, 12px);
    --nav-gap: clamp(3px, 0.7vh, 6px);
    --nav-box: clamp(28px, 4.2vh, 36px);
    --nav-icon: clamp(14px, 1.6vh, 16px);
}

[data-theme="dark"] {
    --bg: #151a1d;
    --surface: #1e2428;
    --surface-alt: #262d32;
    --surface-strong: #e6f0ed;
    --text: #f2f1ed;
    --muted: #c0b7ad;
    --accent: #9a7bff;
    --accent-dark: #6e55db;
    --accent-soft: rgba(154, 123, 255, 0.2);
    --accent-glow: rgba(154, 123, 255, 0.25);
    --gold: #d1b378;
    --success: #3cc98a;
    --success-soft: rgba(60, 201, 138, 0.16);
    --danger: #ff6a6a;
    --danger-soft: rgba(255, 106, 106, 0.16);
    --stroke: rgba(245, 243, 238, 0.12);
    --stroke-strong: rgba(245, 243, 238, 0.18);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.25);
    --glow: 0 0 0 1px rgba(154, 123, 255, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(106, 77, 255, 0.08), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(0, 0, 0, 0.05), transparent 55%),
        linear-gradient(135deg, var(--bg) 0%, #ebeef2 100%);
    color: var(--text);
    min-height: 100vh;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at 12% 10%, rgba(154, 123, 255, 0.12), transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.04), transparent 55%),
        linear-gradient(135deg, var(--bg) 0%, #12161a 100%);
}

.app {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

.sidebar {
    width: var(--sidebar-width);
    --nav-box: 38px;
    --nav-icon: 18px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.9));
    border-right: 1px solid rgba(28, 32, 36, 0.1);
    padding: var(--sidebar-pad) calc(var(--sidebar-pad) - 2px) calc(var(--sidebar-pad) - 2px);
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: clamp(8px, 1.6vh, 14px);
    transition: width 0.04s linear, transform 0.04s linear;
    will-change: width, transform;
    box-shadow: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: visible;
    backdrop-filter: blur(6px);
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
}

.sidebar:not(.sidebar--expanded) .nav-link {
    justify-content: center;
}

.sidebar:not(.sidebar--expanded) .nav-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(28, 32, 36, 0.08);
    box-shadow: none;
}

.sidebar:not(.sidebar--expanded) .nav-icon {
    opacity: 0.65;
}

[data-theme="dark"] .sidebar:not(.sidebar--expanded) .nav-icon-wrap {
    background: rgba(23, 28, 31, 0.8);
    border-color: rgba(245, 243, 238, 0.12);
    box-shadow: none;
}

.sidebar.is-animating {
    box-shadow: none;
}

.sidebar.is-animating .nav-icon-wrap {
    box-shadow: none;
}

.sidebar.is-animating .nav-link:hover .nav-icon-wrap,
.sidebar.is-animating .nav-link.active .nav-icon-wrap {
    box-shadow: none;
}

.sidebar__nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(106, 77, 255, 0.25);
    border-radius: 999px;
}

[data-theme="dark"] .sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(154, 123, 255, 0.35);
}

.sidebar__nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 77, 255, 0.3) transparent;
}

[data-theme="dark"] .sidebar__nav {
    scrollbar-color: rgba(154, 123, 255, 0.4) transparent;
}

[data-theme="dark"] .sidebar {
    background:
        radial-gradient(circle at 18% 20%, rgba(154, 123, 255, 0.14), transparent 55%),
        linear-gradient(160deg, rgba(26, 31, 35, 0.96), rgba(23, 28, 31, 0.92));
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sidebar__user {
    background: rgba(23, 28, 31, 0.72);
    border-color: rgba(245, 243, 238, 0.12);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background: rgba(23, 28, 31, 0.7);
    box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.12);
    border-color: rgba(154, 123, 255, 0.2);
}

[data-theme="dark"] .nav-link.active {
    background: rgba(154, 123, 255, 0.2);
    color: #f5f3ee;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(28, 32, 36, 0.08);
}

.sidebar__user span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

[data-theme="dark"] .sidebar__user strong {
    color: rgba(245, 243, 238, 0.86);
}

.sidebar:not(.sidebar--expanded) .sidebar__user {
    justify-content: center;
}

.sidebar:not(.sidebar--expanded) .sidebar__user strong,
.sidebar:not(.sidebar--expanded) .sidebar__user span {
    display: none;
}

.sidebar:not(.sidebar--expanded) .brand-text {
    display: none;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, var(--accent), var(--accent-dark));
    color: white;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(12, 32, 46, 0.18);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}


.sidebar__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 2px 6px 0;
}

.brand-dot {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(22, 20, 18, 0.18);
    border: 1px solid var(--stroke);
}

.brand-logo--sidebar {
    width: 60px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
    border: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar:not(.sidebar--expanded) .brand-text {
    display: none;
}

.brand-logo--login {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.login-logo {
    width: min(200px, 60vw);
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: none;
    border: none;
    margin-bottom: 16px;
    display: block;
}

.sidebar__brand span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: var(--nav-gap);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 0 8px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

.sidebar:not(.sidebar--expanded) .sidebar__nav {
    padding-top: 8px;
}

.nav-accordion {
    display: grid;
    gap: 4px;
}

.nav-accordion + .nav-accordion {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(28, 32, 36, 0.06);
}

.nav-accordion__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border 0.12s ease;
}

.nav-accordion__icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(28, 32, 36, 0.08);
}

.nav-accordion__icon .nav-icon {
    width: 14px;
    height: 14px;
    opacity: 0.75;
}

.nav-accordion.has-active .nav-accordion__icon {
    background: var(--accent-soft);
    border-color: var(--accent-glow);
    color: var(--accent);
    box-shadow: var(--glow);
}

.nav-accordion.has-active .nav-accordion__icon .nav-icon {
    opacity: 1;
}

.nav-accordion__label {
    flex: 1;
    text-align: left;
}

.nav-accordion__toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(28, 32, 36, 0.08);
}

.nav-accordion__chevron {
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"6 9 12 15 18 9\"/></svg>') center / contain no-repeat;
    transition: transform 0.18s ease;
}

.nav-accordion.is-open .nav-accordion__chevron {
    transform: rotate(180deg);
}

.nav-accordion__panel {
    display: grid;
    gap: var(--nav-gap);
    padding-left: 2px;
    overflow: hidden;
    max-height: 0;
    opacity: 0.8;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.nav-accordion.is-open .nav-accordion__panel {
    opacity: 1;
}

.sidebar:not(.sidebar--expanded) .nav-accordion__toggle {
    justify-content: center;
    padding: 6px;
}

.sidebar:not(.sidebar--expanded) .nav-accordion__label,
.sidebar:not(.sidebar--expanded) .nav-accordion__chevron {
    display: none;
}

.sidebar:not(.sidebar--expanded) .nav-accordion__panel {
    display: none;
}

html.sidebar-expanded .sidebar .nav-accordion__toggle {
    padding: 8px 10px;
    justify-content: space-between;
}

html.sidebar-expanded .sidebar .nav-accordion__label,
html.sidebar-expanded .sidebar .nav-accordion__chevron {
    display: inline-flex;
}

html.sidebar-expanded .sidebar .nav-accordion__panel {
    display: grid;
}

[data-theme="dark"] .nav-accordion__icon {
    background: rgba(23, 28, 31, 0.7);
    border-color: rgba(245, 243, 238, 0.12);
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 16px;
    background: transparent;
    transition: background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    justify-content: center;
    border: none;
    cursor: pointer;
    min-height: 44px;
    font-family: inherit;
    text-align: left;
    border: 1px solid transparent;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(106, 77, 255, 0.14), rgba(201, 163, 90, 0.08));
    opacity: 0;
    transition: opacity 0.08s ease;
}

.nav-link > * {
    position: relative;
    z-index: 1;
}

.nav-link--theme {
    width: 100%;
    text-align: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(28, 32, 36, 0.08);
    border-color: rgba(28, 32, 36, 0.12);
}

.nav-link.active {
    color: #ffffff;
    background: var(--accent);
    box-shadow: none;
    border-color: transparent;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link.active::before {
    opacity: 0;
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent-glow);
    outline-offset: 2px;
}

.nav-link--logout {
    color: #e35b6b;
}

.nav-link--logout:hover,
.nav-link--logout.active {
    color: #c74355;
    background: rgba(227, 91, 107, 0.12);
    box-shadow: inset 0 0 0 1px rgba(227, 91, 107, 0.25);
}

.nav-icon {
    width: var(--nav-icon);
    height: var(--nav-icon);
    display: inline-block;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.nav-icon-wrap {
    width: var(--nav-box);
    height: var(--nav-box);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(240, 242, 246, 0.9));
    border: 1px solid rgba(28, 32, 36, 0.1);
    box-shadow: none;
    transition: transform 0.1s ease, border 0.1s ease, box-shadow 0.1s ease;
}

.sidebar:not(.sidebar--expanded) .nav-icon-wrap {
    width: 36px;
    height: 36px;
}

.nav-icon {
    opacity: 0.78;
    transition: opacity 0.1s ease, transform 0.1s ease;
    --icon-scale: 1;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
    --icon-scale: 1.03;
}

[data-theme="dark"] .nav-icon-wrap {
    background: var(--surface);
    border-color: var(--stroke);
}

.nav-link:hover .nav-icon-wrap,
.nav-link.active .nav-icon-wrap {
    border-color: rgba(106, 77, 255, 0.35);
    box-shadow: 0 10px 20px rgba(18, 22, 26, 0.12);
    transform: translateY(-0.5px);
}

.nav-link.active .nav-icon-wrap {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

[data-theme="dark"] .nav-icon-wrap {
    background: linear-gradient(160deg, rgba(23, 28, 31, 0.96), rgba(32, 36, 40, 0.92));
    border-color: rgba(154, 123, 255, 0.22);
}

.nav-label {
    opacity: 0;
    width: 0;
    transform: translateX(-6px);
    transition: all 0.14s ease;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 0.92rem;
}

.sidebar__nav .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    opacity: 0;
    pointer-events: none;
    background: var(--surface);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--stroke);
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.sidebar__nav .nav-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar.sidebar--expanded .sidebar__brand {
    align-items: flex-start;
    text-align: left;
}

.sidebar.sidebar--expanded .brand-logo--sidebar {
    width: 108px;
}

.sidebar.sidebar--expanded .sidebar__nav .nav-link {
    justify-content: flex-start;
    padding: 10px 14px;
    gap: 14px;
}

.sidebar.sidebar--expanded .sidebar__section-label {
    padding-left: 14px;
}

.sidebar.sidebar--expanded .nav-label {
    opacity: 1;
    width: auto;
    transform: translateX(0);
}

.sidebar.sidebar--expanded .sidebar__nav .nav-link::after {
    display: none;
}

html.sidebar-expanded .sidebar {
    width: var(--sidebar-width-expanded);
}

html.sidebar-expanded .sidebar .sidebar__brand {
    align-items: flex-start;
    text-align: left;
}

html.sidebar-expanded .sidebar .brand-logo--sidebar {
    width: 108px;
}

html.sidebar-expanded .sidebar .sidebar__nav .nav-link {
    justify-content: flex-start;
    padding: 6px 10px;
    gap: 12px;
}

html.sidebar-expanded .sidebar .sidebar__section-label {
    display: block;
    padding-left: 14px;
}

html.sidebar-expanded .sidebar .nav-label {
    opacity: 1;
    width: auto;
    transform: translateX(0);
}

html.sidebar-expanded .sidebar .sidebar__nav .nav-link::after {
    display: none;
}

html.sidebar-expanded .sidebar .sidebar__user strong,
html.sidebar-expanded .sidebar .sidebar__user span {
    display: block;
}

html.sidebar-expanded .sidebar .brand-text {
    display: flex;
}

html.sidebar-expanded .sidebar .nav-link {
    justify-content: flex-start;
}

.nav-icon--dashboard {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"8\" height=\"8\"/><rect x=\"13\" y=\"3\" width=\"8\" height=\"5\"/><rect x=\"13\" y=\"10\" width=\"8\" height=\"11\"/><rect x=\"3\" y=\"13\" width=\"8\" height=\"8\"/></svg>');
}

.nav-icon--payable {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7h18\"/><path d=\"M5 7l2 12h10l2-12\"/><path d=\"M8 11h8\"/><path d=\"M9 15h6\"/></svg>');
}

.nav-icon--receivable {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 8v4l3 2\"/></svg>');
}

.nav-icon--clients {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"9\" cy=\"8\" r=\"3.5\"/><path d=\"M2.5 19a6.5 6.5 0 0113 0\"/><circle cx=\"18\" cy=\"9\" r=\"2.5\"/><path d=\"M16 19a4.5 4.5 0 016-1\"/></svg>');
}

.nav-icon--suppliers {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7h18\"/><path d=\"M5 7v10\"/><path d=\"M19 7v10\"/><path d=\"M7 11h10\"/><path d=\"M7 15h10\"/></svg>');
}

.nav-icon--goal {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 12l4-4\"/></svg>');
}

.nav-icon--hours {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8\"/><path d=\"M12 8v4l3 2\"/><path d=\"M4.5 4.5l2.5 2.5\"/></svg>');
}

.nav-icon--users {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 20a8 8 0 0116 0\"/></svg>');
}

.nav-icon--profile {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M6 20a6 6 0 0112 0\"/></svg>');
}

.nav-icon--reports {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z\"/><path d=\"M14 2v6h6\"/><path d=\"M8 13h8\"/><path d=\"M8 17h8\"/><path d=\"M8 9h4\"/></svg>');
}

.nav-icon--projects {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7h18\"/><path d=\"M5 7v10\"/><path d=\"M19 7v10\"/><path d=\"M7 11h6\"/><path d=\"M7 15h10\"/></svg>');
}

.nav-icon--finance {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 6h18\"/><path d=\"M5 10h14\"/><path d=\"M7 14h10\"/><path d=\"M9 18h6\"/></svg>');
}

.nav-icon--technology {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"2\"/><path d=\"M9 1v4\"/><path d=\"M15 1v4\"/><path d=\"M9 19v4\"/><path d=\"M15 19v4\"/><path d=\"M1 9h4\"/><path d=\"M1 15h4\"/><path d=\"M19 9h4\"/><path d=\"M19 15h4\"/></svg>');
}

.nav-icon--integrations {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"7\" cy=\"12\" r=\"3\"/><circle cx=\"17\" cy=\"7\" r=\"3\"/><circle cx=\"17\" cy=\"17\" r=\"3\"/><path d=\"M9.5 10.5l5-2\"/><path d=\"M9.5 13.5l5 2\"/></svg>');
}

.nav-icon--management {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7h18\"/><path d=\"M7 7v10\"/><path d=\"M17 7v10\"/><path d=\"M3 17h18\"/></svg>');
}

.nav-icon--system {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M19.4 15a1 1 0 00.2 1.1l.1.1a1.5 1.5 0 01-2.1 2.1l-.1-.1a1 1 0 00-1.1-.2 1 1 0 00-.6.9V20a1.5 1.5 0 01-3 0v-.1a1 1 0 00-.6-.9 1 1 0 00-1.1.2l-.1.1a1.5 1.5 0 01-2.1-2.1l.1-.1a1 1 0 00.2-1.1 1 1 0 00-.9-.6H4a1.5 1.5 0 010-3h.1a1 1 0 00.9-.6 1 1 0 00-.2-1.1l-.1-.1a1.5 1.5 0 012.1-2.1l.1.1a1 1 0 001.1.2 1 1 0 00.6-.9V4a1.5 1.5 0 013 0v.1a1 1 0 00.6.9 1 1 0 001.1-.2l.1-.1a1.5 1.5 0 012.1 2.1l-.1.1a1 1 0 00-.2 1.1 1 1 0 00.9.6H20a1.5 1.5 0 010 3h-.1a1 1 0 00-.9.6z\"/></svg>');
}

.nav-icon--tasks {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 5h11\"/><path d=\"M4 6l2 2 3-3\"/><path d=\"M9 12h11\"/><path d=\"M4 13l2 2 3-3\"/><path d=\"M9 19h11\"/><circle cx=\"6\" cy=\"19\" r=\"1.5\"/></svg>');
}

.nav-icon--adjustments {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"7\"/><path d=\"M12 9v3l2 1\"/><path d=\"M19 7h4\"/><path d=\"M21 5v4\"/></svg>');
}

.nav-icon--drive {
    background: none;
    mask: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"%230F9D58\" d=\"M6.6 3L2 11l4.6 8h4.8L6.8 11 11.4 3z\"/><path fill=\"%234285F4\" d=\"M11.4 3l4.6 8h6L17.4 3z\"/><path fill=\"%23F4B400\" d=\"M10.4 19h10.6L22 17H11.4z\"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-icon--servers {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"7\" rx=\"2\"/><rect x=\"3\" y=\"14\" width=\"18\" height=\"7\" rx=\"2\"/><path d=\"M7 7h2\"/><path d=\"M7 18h2\"/></svg>');
}

.nav-icon--logout {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4\"/><path d=\"M16 17l5-5-5-5\"/><path d=\"M21 12H9\"/></svg>');
}

.nav-icon--analytics {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 3v18h18\"/><path d=\"M7 15l4-4 3 3 5-6\"/></svg>');
}

.nav-icon--calendar {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"17\" rx=\"2\"/><path d=\"M8 2v4\"/><path d=\"M16 2v4\"/><path d=\"M3 10h18\"/><path d=\"M7 14h4\"/><path d=\"M7 18h4\"/><path d=\"M13 14h4\"/><path d=\"M13 18h4\"/></svg>');
}

.sidebar__footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    background: transparent;
}

.sidebar__footer .icon-button {
    width: calc(var(--nav-box) + 6px);
    height: calc(var(--nav-box) + 6px);
    padding: 0;
    display: grid;
    place-items: center;
}

.content {
    flex: 1;
    padding: clamp(24px, 3.2vw, 36px) clamp(22px, 4vw, 48px) clamp(28px, 5vw, 52px);
    min-width: 0;
}

.content--center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content--login {
    justify-content: center;
    min-height: 100vh;
}

.content--login .page-shell {
    align-items: center;
}

.page-shell {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.5fr);
    gap: 24px;
    align-items: start;
}

.page-stack {
    display: grid;
    gap: 24px;
}

.page-stack > .card {
    width: 100%;
}

.page-shell > .card {
    margin-bottom: 4px;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto 32px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 8px 20px;
    box-shadow: none;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 30;
}

[data-theme="dark"] .topbar {
    background: var(--surface);
    border-color: var(--stroke);
}

.topbar h1 {
    margin: 0;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    letter-spacing: -0.02em;
    font-weight: 600;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
}


.topbar__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.topbar__center {
    display: flex;
    justify-content: center;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-left: auto;
    justify-content: flex-end;
}

.app-search {
    position: relative;
    width: min(560px, 62vw);
}

.app-search__input {
    width: 100%;
    border-radius: 999px;
    padding: 10px 48px 10px 40px;
    border: 1px solid var(--stroke-strong);
    background: var(--surface);
    font-size: 0.95rem;
    box-shadow: none;
}

[data-theme="dark"] .app-search__input {
    background: var(--surface);
    border-color: var(--stroke);
}

.app-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: currentColor;
    opacity: 0.6;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"M20 20l-3.5-3.5\"/></svg>') center / contain no-repeat;
}

.app-search__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: none;
    background: rgba(106, 77, 255, 0.12);
    color: var(--accent-dark);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.app-search__clear.is-visible {
    display: inline-flex;
}

.app-search__results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--stroke);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
    z-index: 40;
}

[data-theme="dark"] .app-search__results {
    background: rgba(23, 28, 31, 0.98);
    border-color: rgba(154, 123, 255, 0.2);
}

.app-search__results.is-visible {
    display: block;
}

.app-search__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.app-search__filter {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(106, 77, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.app-search__filter.is-active {
    background: var(--accent-soft);
    border-color: rgba(106, 77, 255, 0.3);
    color: var(--accent-dark);
}

.app-search__list {
    display: grid;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 77, 255, 0.3) transparent;
}

.app-search__list::-webkit-scrollbar {
    width: 8px;
}

.app-search__list::-webkit-scrollbar-track {
    background: transparent;
}

.app-search__list::-webkit-scrollbar-thumb {
    background: rgba(106, 77, 255, 0.25);
    border-radius: 999px;
}

[data-theme="dark"] .app-search__list {
    scrollbar-color: rgba(154, 123, 255, 0.4) transparent;
}

[data-theme="dark"] .app-search__list::-webkit-scrollbar-thumb {
    background: rgba(154, 123, 255, 0.35);
}

.app-search__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: inherit;
}

[data-theme="dark"] .app-search__item {
    background: rgba(23, 28, 31, 0.7);
}

.app-search__item.is-active {
    border-color: rgba(106, 77, 255, 0.35);
    background: rgba(106, 77, 255, 0.12);
}

.app-search__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(106, 77, 255, 0.12);
    display: grid;
    place-items: center;
}

.app-search__item-icon span {
    width: 18px;
    height: 18px;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.app-search__item-title {
    font-weight: 600;
}

.app-search__item-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.app-search__item-arrow {
    opacity: 0.5;
}

.icon-button {
    border: none;
    background: var(--surface);
    color: var(--text);
    font-size: 1.2rem;
    padding: 10px 12px;
    border-radius: 16px;
    box-shadow: none;
    cursor: pointer;
    border: 1px solid var(--stroke);
    transition: transform 0.18s ease, border 0.18s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(106, 77, 255, 0.35);
}

.icon-button:active {
    transform: translateY(0);
}

.icon-button--ghost {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    border: 1px solid var(--stroke-strong);
}

[data-theme="dark"] .icon-button {
    background: var(--surface);
    border-color: var(--stroke);
    box-shadow: none;
}

[data-theme="dark"] .icon-button--ghost {
    background: rgba(30, 36, 41, 0.55);
    border-color: rgba(154, 123, 255, 0.2);
}

.icon-button--menu {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: var(--surface);
}

.icon-button--menu.is-open {
    border-color: rgba(106, 77, 255, 0.35);
}

.menu-icon {
    position: relative;
    width: 20px;
    height: 2px;
    display: inline-block;
    background: currentColor;
    border-radius: 999px;
    box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

@keyframes icon-float {
    0% {
        transform: translateY(0) rotate(0deg) scale(var(--icon-scale, 1));
    }
    50% {
        transform: translateY(-2px) rotate(-3deg) scale(calc(var(--icon-scale, 1) + 0.02));
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(var(--icon-scale, 1));
    }
}

.nav-link:hover .nav-icon {
    animation: icon-float 0.5s ease;
}

.card.stat:hover .stat-icon,
.icon-button:hover .theme-icon,
.icon-button:hover .menu-icon {
    animation: icon-float 0.6s ease;
}

.ghost--pill {
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
}

.ghost--compact {
    padding: 6px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.ghost--danger {
    border-color: rgba(207, 74, 74, 0.4);
    color: #cf4a4a;
    background: rgba(207, 74, 74, 0.08);
}

.ghost--neutral {
    border-color: var(--stroke);
    color: var(--text);
    background: var(--surface);
}

.ghost--toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ghost--toggle::before {
    content: "";
    width: 12px;
    height: 12px;
    display: inline-block;
    background-color: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6 9l6 6 6-6\"/></svg>') center / contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6 9l6 6 6-6\"/></svg>') center / contain no-repeat;
    transition: transform 0.2s ease;
}

[aria-expanded="true"].ghost--toggle::before {
    transform: rotate(180deg);
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-icon {
    width: var(--nav-icon);
    height: var(--nav-icon);
}

.nav-link .nav-label {
    font-size: 0.92rem;
}

.icon-button--menu.is-open .menu-icon {
    background: transparent;
    box-shadow: none;
    transform: rotate(90deg);
}

.icon-button--menu.is-open .menu-icon::before,
.icon-button--menu.is-open .menu-icon::after {
    opacity: 1;
}

.icon-button--menu.is-open .menu-icon::before {
    transform: rotate(45deg);
}

.icon-button--menu.is-open .menu-icon::after {
    transform: rotate(-45deg);
}


.theme-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.8 1.42-1.42zm10.45 14.32l1.79 1.79 1.41-1.41-1.79-1.79-1.41 1.41zM12 4V1h-2v3h2zm0 19v-3h-2v3h2zM4 12H1v2h3v-2zm19 0h-3v2h3v-2zM6.76 19.16l-1.79 1.79 1.41 1.41 1.79-1.79-1.41-1.41zM20.45 5.66l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zM11 6a6 6 0 100 12 6 6 0 000-12z\"/></svg>') center / contain no-repeat;
}

[data-theme="dark"] .theme-icon {
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M21.64 13.65A9 9 0 1110.35 2.36 7 7 0 0021.64 13.65z\"/></svg>') center / contain no-repeat;
}

.grid-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.stats-panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.stats-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 8px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.stats-panel__header h2 {
    margin: 0;
}

.stats-panel__header p {
    margin: 6px 0 0;
}

.stats-panel__toggle {
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.85);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--accent-dark);
    position: relative;
    z-index: 2;
}

.stats-panel__toggle:hover {
    border-color: rgba(106, 77, 255, 0.3);
    box-shadow: 0 10px 20px rgba(22, 20, 18, 0.12);
}

.stats-chevron {
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') center / contain no-repeat;
    transition: transform 0.2s ease;
    color: var(--accent-dark);
}

.stats-panel__body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    padding: 0 6px;
}

.stats-panel__body .grid-cards {
    margin-top: 16px;
    margin-bottom: 0;
    gap: 16px;
}

.stats-panel.is-open .stats-panel__body {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
}

.stats-panel.is-open .stats-chevron {
    transform: rotate(180deg);
}

[data-theme="dark"] .stats-panel__toggle {
    background: rgba(30, 36, 41, 0.9);
    border-color: rgba(154, 123, 255, 0.25);
}

[data-theme="dark"] .stats-panel__header {
    background: transparent;
    border-color: transparent;
}

[data-theme="dark"] .stat-icon {
    background: rgba(23, 28, 31, 0.7);
    border-color: rgba(245, 243, 238, 0.12);
}

.alerts-card .card-header {
    margin-bottom: 10px;
}

.alerts-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.table--alerts .table__row,
.table--alerts .table__header {
    grid-template-columns: 0.9fr 2fr 1.5fr 1fr 1fr 0.9fr 0.9fr;
}

.card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: none;
    border: 1px solid rgba(28, 32, 36, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-1px);
    border-color: rgba(28, 32, 36, 0.14);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-header h3,
.card-header h2 {
    margin: 0;
    font-weight: 600;
}

.card-header p {
    margin: 6px 0 0;
}

.card.stat {
    border: 1px solid rgba(28, 32, 36, 0.08);
    overflow: hidden;
    --stat-color: rgba(106, 77, 255, 0.9);
    --stat-color-soft: rgba(106, 77, 255, 0.18);
    padding: 18px 18px 16px;
    min-height: 160px;
    display: grid;
    gap: 8px;
    background: #ffffff;
}

.card.stat::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.card.stat strong {
    font-size: clamp(1.9rem, 3.2vw, 2.4rem);
    letter-spacing: -0.02em;
}

.card.stat .muted {
    font-size: 0.86rem;
}

.stat--payable {
    --stat-color: rgba(207, 74, 74, 0.9);
    --stat-color-soft: rgba(207, 74, 74, 0.18);
}

.stat--receivable {
    --stat-color: rgba(31, 143, 91, 0.9);
    --stat-color-soft: rgba(31, 143, 91, 0.18);
}

.stat--result {
    --stat-color: rgba(106, 77, 255, 0.9);
    --stat-color-soft: rgba(106, 77, 255, 0.18);
}

.stat--goal {
    --stat-color: rgba(64, 132, 255, 0.9);
    --stat-color-soft: rgba(64, 132, 255, 0.18);
}

.stat--payable .stat-icon {
    border-color: rgba(207, 74, 74, 0.35);
}

.stat--receivable .stat-icon {
    border-color: rgba(31, 143, 91, 0.35);
}

.stat--result .stat-icon {
    border-color: rgba(106, 77, 255, 0.35);
}

.stat--goal .stat-icon {
    border-color: rgba(64, 132, 255, 0.35);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 4px;
    background: linear-gradient(140deg, var(--stat-color), rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    position: absolute;
    top: 16px;
    right: 16px;
}

.card.stat h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card.stat .card-header {
    margin-bottom: 10px;
}

.card.stat .card-header h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(28, 32, 36, 0.55);
}

.card.stat.highlight {
    border-color: rgba(28, 32, 36, 0.08);
    box-shadow: none;
}

.card.stat .progress {
    margin: 10px 0 4px;
    height: 8px;
}

.stat-icon::before {
    content: "";
    width: 20px;
    height: 20px;
    background: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    color: #ffffff;
}

.stat-icon--payable::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7h18\"/><path d=\"M5 7l2 12h10l2-12\"/><path d=\"M8 11h8\"/><path d=\"M9 15h6\"/></svg>');
}

.stat-icon--receivable::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 7h14\"/><path d=\"M7 7l2 12h6l2-12\"/><path d=\"M9 11h6\"/></svg>');
}

.stat-icon--result::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 3v18h18\"/><path d=\"M7 15l4-4 3 3 5-6\"/></svg>');
}

.stat-icon--goal::before {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"8\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/><path d=\"M12 12l4-4\"/></svg>');
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(106, 77, 255, 0.06), transparent 52%),
        radial-gradient(circle at 90% 20%, rgba(0, 0, 0, 0.03), transparent 55%);
    opacity: 0.45;
    pointer-events: none;
}

[data-theme="dark"] .card {
    background: linear-gradient(160deg, rgba(30, 36, 41, 0.96), rgba(26, 31, 35, 0.92));
    border-color: rgba(245, 243, 238, 0.12);
}

[data-theme="dark"] .network-core__hex {
    background: radial-gradient(circle at 30% 20%, rgba(23, 28, 31, 0.85), rgba(154, 123, 255, 0.2));
    border-color: rgba(154, 123, 255, 0.3);
}

[data-theme="dark"] .network-node {
    background: rgba(23, 28, 31, 0.85);
    border-color: rgba(154, 123, 255, 0.3);
}

[data-theme="dark"] .network-node .visual-icon {
    background: var(--accent);
    opacity: 0.9;
}

.card h2 {
    margin-top: 0;
    font-weight: 600;
}

.card h3 {
    margin-top: 0;
    font-weight: 600;
}

.card--form::after,
.card--list::after {
    content: none;
}

.card--list {
    overflow: visible;
}

.card--form .form,
.card--list .table {
    margin-top: 4px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat strong {
    font-size: 1.6rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(22, 20, 18, 0.18);
}

.stat.highlight {
    border: 1px solid rgba(28, 32, 36, 0.08);
    background: #ffffff;
}

.table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.table--striped .table__row:nth-of-type(even) {
    background: var(--surface-alt);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.table-wrap::-webkit-scrollbar {
    height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(106, 77, 255, 0.25);
    border-radius: 999px;
}

[data-theme="dark"] .table-wrap::-webkit-scrollbar-thumb {
    background: rgba(154, 123, 255, 0.35);
}

.table-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(106, 77, 255, 0.3) transparent;
}

[data-theme="dark"] .table-wrap {
    scrollbar-color: rgba(154, 123, 255, 0.4) transparent;
}

.chart-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.kanban {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.kanban__column {
    background: var(--surface-alt);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.kanban__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.kanban__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban__card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban__column.is-dragover {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
}

.kanban__card.is-dragging {
    opacity: 0.6;
}

.kanban__card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.kanban__card-head h3 {
    margin: 0;
    font-size: 1rem;
}

.kanban__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.kanban__actions {
    flex-wrap: wrap;
}

.kanban__empty {
    padding: 12px;
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
}

.modal[hidden] {
    display: none;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 18, 26, 0.6);
}

.modal__panel {
    position: relative;
    z-index: 1;
    width: min(980px, 92vw);
    max-height: 88vh;
    overflow: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    box-shadow: 0 22px 50px rgba(10, 16, 24, 0.25);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.modal__header h2 {
    margin: 0;
}

.modal__body {
    display: grid;
    gap: 16px;
}

.modal__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.modal__section {
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border: 1px dashed var(--stroke);
}

.modal__timer {
    font-size: 1.1rem;
}

.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.modal__spacer {
    flex: 1 1 auto;
}

.modal__form {
    display: grid;
    gap: 12px;
}

.modal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.modal__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.analytics-stack {
    display: grid;
    gap: 28px;
}

.analytics-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 255, 0.9));
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(106, 77, 255, 0.16);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.analytics-card + .analytics-card {
    margin-top: 6px;
}

.analytics-card--wide {
    min-height: 360px;
}

.analytics-card--split {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
    align-items: center;
}

[data-theme="dark"] .analytics-card {
    background: linear-gradient(160deg, rgba(23, 28, 31, 0.96), rgba(28, 32, 36, 0.9));
    border-color: rgba(154, 123, 255, 0.2);
}

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

@media (max-width: 900px) {
    .analytics-card--split {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.chart {
    width: 100%;
    min-height: 240px;
}

.chart--bars {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(16px, 1fr);
    gap: 8px;
    align-items: end;
    min-height: 240px;
    padding: 16px 8px 0;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.chart-bars {
    display: grid;
    align-items: end;
    gap: 6px;
    height: 200px;
    width: 100%;
}

.chart-bar {
    width: 100%;
    border-radius: 999px 999px 6px 6px;
    transition: height 0.3s ease;
}

.chart-bar--payable {
    background: linear-gradient(180deg, rgba(207, 74, 74, 0.8), rgba(207, 74, 74, 0.35));
}

.chart-bar--receivable {
    background: linear-gradient(180deg, rgba(31, 143, 91, 0.85), rgba(31, 143, 91, 0.35));
}

.chart-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.chart-tooltip {
    position: absolute;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -110%);
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 5;
}

[data-theme="dark"] .chart-tooltip {
    background: rgba(23, 28, 31, 0.95);
    border-color: rgba(154, 123, 255, 0.2);
}

.chart--line svg {
    width: 100%;
    height: 220px;
}

.chart--line polyline {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 10px rgba(106, 77, 255, 0.35));
}

.chart--horizontal {
    display: grid;
    gap: 12px;
}

.hbar {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 2fr auto;
    align-items: center;
    gap: 12px;
}

.hbar__label {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hbar__track {
    height: 12px;
    background: rgba(106, 77, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(106, 77, 255, 0.2);
}

[data-theme="dark"] .hbar__track {
    background: rgba(154, 123, 255, 0.16);
    border-color: rgba(154, 123, 255, 0.25);
}

.hbar__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(106, 77, 255, 0.9), rgba(154, 123, 255, 0.6));
    border-radius: 999px;
}

.hbar__value {
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}
.chart-axis {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: -6px;
}

.analytics-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.goal-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.donut {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.donut__ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        rgba(31, 143, 91, 0.85) 0%,
        rgba(31, 143, 91, 0.85) calc(var(--rec) * 1%),
        rgba(207, 74, 74, 0.7) calc(var(--rec) * 1%),
        rgba(207, 74, 74, 0.7) 100%
    );
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .donut__ring {
    box-shadow: inset 0 0 0 14px rgba(23, 28, 31, 0.9);
}

.donut__center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.donut__center strong {
    font-size: 1.3rem;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--muted);
}

.legend-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.legend-item--payable::before {
    background: rgba(207, 74, 74, 0.8);
}

.legend-item--receivable::before {
    background: rgba(31, 143, 91, 0.85);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.calendar-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    text-align: right;
}

.calendar-toolbar--inline {
    flex-wrap: wrap;
    align-items: center;
}

.calendar-summary--inline {
    display: flex;
    gap: 18px;
    text-align: left;
    margin-left: auto;
}

.calendar-summary--inline > div {
    min-width: 120px;
}

@media (max-width: 1100px) {
    .calendar-toolbar--inline {
        flex-wrap: wrap;
    }

    .calendar-summary--inline {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 12px;
}

.calendar-weekday {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
}

.calendar-cell {
    background: var(--surface);
    border-radius: 18px;
    padding: 8px;
    border: 1px solid var(--stroke);
    min-height: 84px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

[data-theme="dark"] .calendar-cell {
    background: var(--surface);
    border-color: var(--stroke);
}

.calendar-cell--empty {
    background: transparent;
    border: none;
}

.calendar-cell--today {
    border-color: rgba(106, 77, 255, 0.35);
}

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.calendar-day span {
    font-weight: 700;
}

.calendar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.calendar-more {
    font-size: 0.74rem;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .calendar-grid {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
}

@media (max-width: 900px) {
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

.card--list .table {
    margin-top: 10px;
}

.table__header,
.table__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
}

.table__row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table__header span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.table__row span {
    font-weight: 500;
    min-width: 0;
}

.table--users .table__row {
    padding-top: 8px;
    padding-bottom: 8px;
}

.table--users .table__header {
    padding-top: 8px;
    padding-bottom: 8px;
}

.table--users .table__row,
.table--users .table__header {
    grid-template-columns: 1.2fr 1.1fr 1.4fr 0.6fr 1fr 1.4fr;
}

.table--users .table__row span {
    align-items: flex-start;
}

.table--users .inline-form {
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.table--users input[type="password"],
.table--users input[type="file"] {
    min-width: 120px;
    width: 100%;
}

.table--users .ghost {
    padding: 4px 10px;
    font-size: 0.8rem;
}

.table--users .table__row span:last-child {
    display: grid;
    gap: 6px;
}

.table--users .inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.table--users .inline-form input[type="file"] {
    width: 100%;
}

.table--users .table__row span:not(.row-actions) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.table__row span:not(.row-actions) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.users-pure .users-list {
    display: grid;
    gap: 16px;
}

.users-pure .users-card {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.users-pure .users-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface-alt);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--muted);
    overflow: hidden;
}

.users-pure .users-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.users-pure .users-card__header {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stroke);
}

.users-pure .users-title {
    display: grid;
    gap: 4px;
}

.users-pure .users-title strong {
    font-size: 1rem;
}

.users-pure .users-title span {
    color: var(--muted);
    font-size: 0.85rem;
    word-break: break-word;
}

.users-pure .users-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.users-pure .users-card__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    padding-top: 6px;
}

.users-pure .users-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.users-pure .users-action input[type="password"],
.users-pure .users-action input[type="file"] {
    width: 100%;
    min-width: 0;
}

.users-pure .users-remove {
    display: flex;
    align-items: center;
}

.users-pure .users-card__body .ghost {
    min-width: 170px;
    justify-content: center;
}

.users-pure .card-header {
    border-bottom: 1px solid var(--stroke);
}

@media (max-width: 1100px) {
    .users-pure .users-card__header {
        grid-template-columns: 56px 1fr;
    }
    .users-pure .users-badges {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .users-pure .users-card__body {
        grid-template-columns: 1fr;
    }
    .users-pure .users-action {
        grid-template-columns: 1fr;
    }
    .users-pure .users-card__body .ghost {
        width: 100%;
    }
}

.table--dense .ghost,
.table--dense .ghost--compact {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.table--dense input[type="password"],
.table--dense input[type="file"],
.table--dense input[type="text"],
.table--dense input[type="email"] {
    padding: 8px 10px;
    font-size: 0.85rem;
    min-height: 34px;
}


.row-actions .ghost {
    text-decoration: none;
}

.table__link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.table__link:hover {
    background: var(--surface-alt);
}

.table--wide .table__row,
.table--wide .table__header {
    grid-template-columns: 0.8fr 2fr 1.4fr 1fr 0.8fr 1fr 1fr 1.2fr;
}

.table__header {
    background: var(--surface-alt);
    font-weight: 600;
    border: 1px solid var(--stroke);
}

.table__row {
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    z-index: 1;
}

.table__row.row--payable {
    border-left: 4px solid var(--danger);
    background: rgba(207, 74, 74, 0.06);
}

.table__row.row--receivable {
    border-left: 4px solid var(--success);
    background: rgba(31, 143, 91, 0.06);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--stroke);
    background: var(--surface-alt);
}

.pill--payable {
    color: var(--danger);
    border-color: rgba(207, 74, 74, 0.35);
    background: var(--danger-soft);
}

.pill--receivable {
    color: var(--success);
    border-color: rgba(31, 143, 91, 0.35);
    background: var(--success-soft);
}

.pill--status {
    color: var(--accent-dark);
    background: rgba(106, 77, 255, 0.12);
    border-color: rgba(106, 77, 255, 0.25);
}

.pill--ok {
    color: var(--success);
    border-color: rgba(31, 143, 91, 0.35);
    background: var(--success-soft);
}

.pill--info {
    color: #1f4f99;
    border-color: rgba(31, 79, 153, 0.45);
    background: rgba(31, 79, 153, 0.2);
}

.pill--warning {
    color: #b86a00;
    border-color: rgba(255, 171, 64, 0.35);
    background: rgba(255, 171, 64, 0.16);
}

.pill--danger {
    color: var(--danger);
    border-color: rgba(207, 74, 74, 0.35);
    background: var(--danger-soft);
}

.pill--muted {
    color: var(--muted);
    border-color: var(--stroke);
    background: rgba(0, 0, 0, 0.03);
}

.table__row:hover {
    transform: translateY(-1px);
    border-color: var(--stroke-strong);
}

.table__details {
    margin-top: 6px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--stroke-strong);
    background: var(--surface-alt);
    display: grid;
    gap: 10px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-shadow: none;
}

.table__details[hidden] {
    display: none;
}

.table__details.is-open {
    display: grid;
}

.table__details .detail {
    display: grid;
    gap: 6px;
}

.table__details .detail__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.table__details .detail--full {
    grid-column: 1 / -1;
}

[data-theme="dark"] .table__details {
    background: var(--surface-alt);
    border-color: var(--stroke-strong);
}

[data-theme="dark"] .table__row {
    background: rgba(23, 28, 31, 0.6);
    border-color: rgba(154, 123, 255, 0.12);
}

[data-theme="dark"] .table__header {
    background: linear-gradient(135deg, rgba(23, 28, 31, 0.9), rgba(23, 28, 31, 0.7));
    border-color: rgba(154, 123, 255, 0.16);
}

[data-theme="dark"] .table__row.row--payable {
    background: linear-gradient(90deg, rgba(255, 106, 106, 0.12), rgba(23, 28, 31, 0.65));
    border-left-color: var(--danger);
}

[data-theme="dark"] .table__row.row--receivable {
    background: linear-gradient(90deg, rgba(60, 201, 138, 0.12), rgba(23, 28, 31, 0.65));
    border-left-color: var(--success);
}

[data-theme="dark"] .pill {
    background: rgba(23, 28, 31, 0.7);
    border-color: rgba(245, 243, 238, 0.14);
}

.table--dense .table__row,
.table--dense .table__header {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    padding: 10px 14px;
}

.table--hours .table__row,
.table--hours .table__header {
    grid-template-columns: 1.1fr 1.5fr 2fr 0.9fr 1.3fr 1fr;
}

.table--clients .table__row,
.table--clients .table__header {
    grid-template-columns: 2fr 1.2fr 1.8fr;
}

.table--clients .table__row span {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    word-break: break-word;
}

.table--clients .table__row span .copy-btn {
    margin-top: 2px;
}

.table--servers .table__row,
.table--servers .table__header {
    grid-template-columns: 1.3fr 1.05fr 1fr 1fr 0.75fr 0.8fr 0.6fr;
}

.due-soon {
    color: var(--danger);
    font-weight: 700;
}

.card--overview {
    background:
        radial-gradient(circle at 6% 20%, rgba(106, 77, 255, 0.08), transparent 55%),
        linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 250, 0.9));
}

.servers-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}

.servers-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    min-height: 86px;
    box-shadow: var(--shadow-soft);
}

.metric-card__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 700;
}

.metric-card__value {
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    color: var(--text);
}

.metric-card__hint {
    font-size: 0.72rem;
    color: var(--muted);
}

.metric-card--danger {
    border-color: rgba(207, 74, 74, 0.25);
    background: linear-gradient(140deg, rgba(207, 74, 74, 0.12), rgba(255, 255, 255, 0.9));
}

.metric-card--warning {
    border-color: rgba(201, 163, 90, 0.35);
    background: linear-gradient(140deg, rgba(201, 163, 90, 0.12), rgba(255, 255, 255, 0.9));
}

.metric-card--neutral {
    border-color: rgba(106, 77, 255, 0.2);
    background: linear-gradient(140deg, rgba(106, 77, 255, 0.1), rgba(255, 255, 255, 0.9));
}

.metric-card--ok {
    border-color: rgba(31, 143, 91, 0.25);
    background: linear-gradient(140deg, rgba(31, 143, 91, 0.1), rgba(255, 255, 255, 0.9));
}

.metric-card--muted {
    border-color: rgba(28, 32, 36, 0.12);
    background: linear-gradient(140deg, rgba(28, 32, 36, 0.05), rgba(255, 255, 255, 0.92));
}

.servers-visual {
    display: grid;
    gap: 12px;
}

.servers-bar {
    display: flex;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(28, 32, 36, 0.06);
}

.servers-bar__slice {
    height: 100%;
}

.servers-bar__slice.is-expired {
    background: linear-gradient(120deg, #cf4a4a, #ff6a6a);
}

.servers-bar__slice.is-soon {
    background: linear-gradient(120deg, #c9a35a, #f0c27b);
}

.servers-bar__slice.is-warning {
    background: linear-gradient(120deg, rgba(106, 77, 255, 0.75), rgba(106, 77, 255, 0.45));
}

.servers-bar__slice.is-ok {
    background: linear-gradient(120deg, #1f8f5b, #3cc98a);
}

.servers-bar__slice.is-muted {
    background: linear-gradient(120deg, rgba(28, 32, 36, 0.18), rgba(28, 32, 36, 0.08));
}

.servers-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.78rem;
    color: var(--muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
    transform: translateY(-1px);
}

.legend-dot.is-expired {
    background: #cf4a4a;
}

.legend-dot.is-soon {
    background: #c9a35a;
}

.legend-dot.is-warning {
    background: rgba(106, 77, 255, 0.8);
}

.legend-dot.is-ok {
    background: #1f8f5b;
}

.legend-dot.is-muted {
    background: rgba(28, 32, 36, 0.4);
}

.servers-soon {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.servers-soon__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.servers-soon__header h3 {
    margin: 0;
    font-size: 1rem;
}

.servers-soon__list {
    display: grid;
    gap: 10px;
}

.servers-soon__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(201, 163, 90, 0.08);
}

.servers-soon__row strong {
    display: block;
    color: var(--text);
}

.servers-soon__row .muted {
    display: block;
    font-size: 0.78rem;
}

.servers-plans {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.servers-plans__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.plan-card {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(140deg, rgba(106, 77, 255, 0.08), rgba(255, 255, 255, 0.9));
    display: grid;
    gap: 4px;
}

.plan-card__label {
    font-size: 0.74rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-card__value {
    font-size: 1.2rem;
    color: var(--text);
}

@media (max-width: 1100px) {
    .servers-dashboard {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .servers-metrics {
        grid-template-columns: 1fr;
    }

    .servers-soon__row {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 26, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.inline-form {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.year-filter label {
    font-weight: 600;
}

.year-filter select {
    min-width: 120px;
}

.year-filter--topbar {
    margin: 0;
}

.year-filter--topbar select {
    border-radius: 999px;
    padding: 8px 14px;
}

.row-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    white-space: nowrap;
}

.row-actions--start {
    justify-content: flex-start;
}

.row-actions form {
    margin: 0;
    display: inline-flex;
}

.row-actions .ghost {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 999px;
}

.status-menu {
    position: relative;
    z-index: 20;
}

.status-menu[open] {
    z-index: 9999;
}

.status-menu summary {
    list-style: none;
    cursor: pointer;
}

.status-menu summary::-webkit-details-marker {
    display: none;
}

.status-menu__options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10000;
    min-width: 130px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-menu__options form {
    margin: 0;
    display: block;
}

.status-menu__options .ghost {
    width: 100%;
    justify-content: flex-start;
}

.status-menu__options .ghost--status-option {
    border-width: 1px;
}

.status-menu__options .ghost--status-aberto {
    color: var(--danger);
    border-color: rgba(207, 74, 74, 0.35);
    background: var(--danger-soft);
}

.status-menu__options .ghost--status-agendado {
    color: #b86a00;
    border-color: rgba(255, 171, 64, 0.35);
    background: rgba(255, 171, 64, 0.16);
}

.status-menu__options .ghost--status-pago {
    color: var(--success);
    border-color: rgba(31, 143, 91, 0.35);
    background: var(--success-soft);
}

.status-menu__options .ghost--status-recebido {
    color: #1f4f99;
    border-color: rgba(31, 79, 153, 0.45);
    background: rgba(31, 79, 153, 0.2);
}

.status-menu__options .ghost--status-cancelada {
    color: var(--muted);
    border-color: var(--stroke);
    background: rgba(0, 0, 0, 0.03);
}

.inline-form {
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form input[type="password"] {
    min-width: 160px;
}

.edit-panel {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface-alt);
    border: 1px dashed var(--stroke-strong);
}

.form__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    grid-column: 1 / -1;
}

.form__actions--split {
    width: 100%;
}

.form__actions--split > .primary,
.form__actions--split > .ghost {
    flex: 1 1 0;
    justify-content: center;
}

.page-intro {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-intro h2 {
    margin: 0;
    font-size: 1.35rem;
}

.result.positive {
    color: var(--success);
}

.result.negative {
    color: var(--danger);
}

.progress {
    margin: 12px 0 6px;
    height: 10px;
    background: var(--surface-alt);
    border-radius: 999px;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    background: linear-gradient(120deg, var(--accent), var(--accent-dark));
}

.form {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-column: 1 / -1;
}

.form__actions .primary,
.form__actions .ghost {
    white-space: nowrap;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, var(--surface-alt), rgba(106, 77, 255, 0.06));
}

.profile-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, var(--accent), var(--accent-dark));
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(16, 20, 38, 0.18);
    overflow: hidden;
}

.profile-hero__avatar--image {
    background: transparent;
    box-shadow: none;
}

.profile-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-hero__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-hero__info strong {
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.profile-hero__info > span {
    color: var(--muted);
    font-size: 0.95rem;
}

.profile-hero__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-hero__avatar {
        width: 64px;
        height: 64px;
    }
}


.context-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.context-actions .ghost {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 238, 255, 0.6));
    border-color: rgba(106, 77, 255, 0.2);
    box-shadow: 0 8px 18px rgba(22, 20, 18, 0.08);
    padding: 6px 12px;
    font-size: 0.88rem;
}

.context-actions .ghost:hover {
    border-color: rgba(106, 77, 255, 0.35);
    box-shadow: 0 12px 22px rgba(22, 20, 18, 0.12);
}

[data-theme="dark"] .context-actions .ghost {
    background: linear-gradient(135deg, rgba(23, 28, 31, 0.9), rgba(30, 34, 38, 0.7));
    border-color: rgba(154, 123, 255, 0.25);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.app--perf .card,
.app--perf .table__row,
.app--perf .nav-icon-wrap {
    box-shadow: none;
}

.app--perf .card,
.app--perf .table__row,
.app--perf .filters,
.app--perf .topbar {
    backdrop-filter: none;
}

.app--perf .card:hover {
    transform: none;
}

.app--perf .table__row {
    transition: none;
}


.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__group--full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
}

label.is-required::after {
    content: ' *';
    color: var(--danger);
    font-weight: 700;
}

input {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    font-size: 0.98rem;
    transition: border 0.2s ease, background 0.2s ease;
}

input[type="file"] {
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--stroke-strong);
    background: var(--surface-alt);
    color: var(--muted);
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button {
    margin-right: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button {
    border-color: var(--stroke-strong);
    background: var(--surface-alt);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.password-toggle::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>') center / contain no-repeat;
}

.password-toggle.is-visible::before {
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M2 12s4-7 10-7c2.9 0 5.4 1.4 7.3 3.1\"/><path d=\"M22 12s-4 7-10 7c-2.2 0-4.2-.8-5.9-2\"/><path d=\"M4 4l16 16\"/><path d=\"M10.6 10.6a3 3 0 004.2 4.2\"/></svg>') center / contain no-repeat;
}

.password-toggle:hover {
    color: var(--text);
    border-color: var(--accent);
    box-shadow: none;
}

[data-theme="dark"] .password-toggle {
    background: rgba(23, 28, 31, 0.8);
    border-color: rgba(245, 243, 238, 0.12);
}

.primary.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.primary.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(106, 77, 255, 0.4);
    background: var(--surface);
}

select,
textarea {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    font-size: 0.98rem;
    font-family: inherit;
}

small {
    color: var(--muted);
}

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

.primary {
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: none;
}

.primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.primary:active {
    transform: translateY(0);
}

.primary--compact {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ghost {
    border: 1px solid var(--stroke);
    background: transparent;
    color: var(--text);
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ghost:hover {
    background: var(--surface-alt);
    border-color: var(--stroke-strong);
}

.copy-btn {
    border: none;
    background: transparent;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    cursor: pointer;
    color: var(--muted);
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M16 1H4a2 2 0 00-2 2v12h2V3h12V1zm3 4H8a2 2 0 00-2 2v14a2 2 0 002 2h11a2 2 0 002-2V7a2 2 0 00-2-2zm0 16H8V7h11v14z\"/></svg>') center / contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M16 1H4a2 2 0 00-2 2v12h2V3h12V1zm3 4H8a2 2 0 00-2 2v14a2 2 0 002 2h11a2 2 0 002-2V7a2 2 0 00-2-2zm0 16H8V7h11v14z\"/></svg>') center / contain no-repeat;
    background-color: currentColor;
}

.copy-btn--done {
    color: var(--accent);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--stroke);
    box-shadow: none;
}

.alert--error {
    background: rgba(227, 91, 107, 0.12);
    color: #e35b6b;
}

.alert--success {
    background: rgba(44, 155, 104, 0.12);
    color: #2c9b68;
}

.login {
    max-width: 420px;
    width: 100%;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    align-items: center;
    gap: 64px;
    width: 100%;
    max-width: 1200px;
}

.login-shell--split {
    gap: 72px;
}

.login-intro h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    color: var(--text);
}

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

.login-intro .muted {
    max-width: 460px;
    margin-bottom: 28px;
}

.login-card {
    width: 100%;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.login-actions {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.login-client-link {
    font-size: 0.92rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.login-client-link a {
    color: #9764ff;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.login-client-link a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.login-client-link a:hover::after,
.login-client-link a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.twofa-setup {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.twofa-setup__qr img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    background: var(--surface);
}

.twofa-setup__key strong {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}

.security-status {
    margin-bottom: 16px;
}

.security-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.backup-codes {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
    background: var(--surface-alt);
}

.backup-codes__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.backup-codes__list span {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px dashed var(--stroke-strong);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: var(--surface);
}

.content--login {
    background: transparent;
    border-radius: 0;
    padding: 48px 32px;
    border: none;
}

.login-visual {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.login-visual--network {
    min-height: 440px;
    border-radius: 28px;
}

.login-visual::before,
.login-visual::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 77, 255, 0.18), transparent 60%);
    filter: blur(8px);
    opacity: 0.6;
    animation: glowFloat 10s ease-in-out infinite;
    z-index: 0;
}

.login-visual::before {
    top: 8%;
    right: 10%;
}

.login-visual::after {
    bottom: 6%;
    left: 6%;
    animation-delay: 2.5s;
}

.network-core {
    position: relative;
    width: 140px;
    height: 140px;
    display: grid;
    place-items: center;
    z-index: 2;
}

.network-core__hex {
    width: 88px;
    height: 88px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(106, 77, 255, 0.18));
    border: 1px solid rgba(106, 77, 255, 0.25);
    border-radius: 18px;
    transform: rotate(45deg);
    box-shadow: 0 18px 40px rgba(106, 77, 255, 0.18);
    position: relative;
}

.network-core__hex::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    border: 1px dashed rgba(106, 77, 255, 0.35);
    transform: rotate(0deg);
    animation: corePulse 5s ease-in-out infinite;
}

.network-lines {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
}

.network-line {
    position: absolute;
    width: 320px;
    height: 2px;
    transform: rotate(var(--angle));
}

.network-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(106, 77, 255, 0.04), rgba(106, 77, 255, 0.4), rgba(106, 77, 255, 0.04));
    border-radius: 999px;
    opacity: 0.7;
}

.network-line::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(106, 77, 255, 0.8);
    border-radius: 50%;
    left: 0;
    top: -2px;
    box-shadow: 0 0 10px rgba(106, 77, 255, 0.4);
    animation: lineTravel 4.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

.network-nodes {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 3;
}

.network-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(106, 77, 255, 0.28);
    display: grid;
    place-items: center;
    transform: rotate(var(--angle)) translateX(170px) rotate(calc(var(--angle) * -1));
    box-shadow: 0 10px 22px rgba(106, 77, 255, 0.14);
}

.network-node .nav-icon {
    width: 16px;
    height: 16px;
    background: var(--accent);
    opacity: 0.9;
}

@keyframes lineTravel {
    0% {
        transform: translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: translateX(314px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }
}

@keyframes corePulse {
    0%,
    100% {
        opacity: 0.5;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: rotate(8deg) scale(1.02);
    }
}

.visual-card {
    border-radius: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.9);
    padding: 24px;
    position: relative;
    z-index: 1;
}

.visual-card--main {
    width: min(520px, 100%);
    display: grid;
    gap: 18px;
    animation: floatMain 6s ease-in-out infinite;
}

.visual-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visual-orbit {
    position: relative;
    height: 30px;
}

.visual-orbit span {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(106, 77, 255, 0.25);
    animation: orbitPulse 6s ease-in-out infinite;
}

.visual-orbit span:nth-child(1) {
    width: 100%;
    height: 26px;
    left: 0;
    top: 2px;
}

.visual-orbit span:nth-child(2) {
    width: 80%;
    height: 22px;
    left: 10%;
    top: 4px;
    animation-delay: 0.6s;
}

.visual-orbit span:nth-child(3) {
    width: 60%;
    height: 18px;
    left: 20%;
    top: 6px;
    animation-delay: 1.2s;
}

.visual-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--muted);
}

.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.visual-chart {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: end;
    height: 150px;
    padding: 10px 0;
}

.visual-chart span {
    display: block;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(106, 77, 255, 0.65), rgba(106, 77, 255, 0.12));
    height: 40%;
    animation: chartPulse 4s ease-in-out infinite;
}

.visual-chart span:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.visual-chart span:nth-child(3) { height: 90%; animation-delay: 0.4s; }
.visual-chart span:nth-child(4) { height: 55%; animation-delay: 0.6s; }
.visual-chart span:nth-child(5) { height: 70%; animation-delay: 0.8s; }

.visual-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.visual-badges--icons {
    justify-content: flex-start;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(106, 77, 255, 0.18);
    background: rgba(106, 77, 255, 0.06);
    font-size: 0.72rem;
    color: var(--muted);
}

.visual-badge--icon {
    padding: 8px;
    border-radius: 14px;
    animation: badgeFloat 5s ease-in-out infinite;
}

.visual-badge--icon .visual-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.visual-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.visual-tiles .visual-tile:nth-child(2) {
    animation-delay: 0.3s;
}

.visual-tiles .visual-tile:nth-child(3) {
    animation-delay: 0.6s;
}

.visual-tiles .visual-tile:nth-child(4) {
    animation-delay: 0.9s;
}

.visual-badges--icons .visual-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.visual-badges--icons .visual-badge:nth-child(3) {
    animation-delay: 0.4s;
}

.visual-badges--icons .visual-badge:nth-child(4) {
    animation-delay: 0.6s;
}

.visual-tile {
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(106, 77, 255, 0.12);
    background: rgba(106, 77, 255, 0.04);
    display: grid;
    place-items: center;
    animation: tileFloat 6s ease-in-out infinite;
}

.visual-tile .visual-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

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

.visual-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(106, 77, 255, 0.12);
    background: rgba(106, 77, 255, 0.04);
}

.visual-metric strong {
    display: block;
    font-size: 0.95rem;
}

.visual-metric span {
    font-size: 0.76rem;
    color: var(--muted);
}

.visual-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    position: relative;
    background: linear-gradient(145deg, rgba(106, 77, 255, 0.2), rgba(106, 77, 255, 0.05));
    border: 1px solid rgba(106, 77, 255, 0.18);
    flex-shrink: 0;
}

.visual-icon::before,
.visual-icon::after {
    content: '';
    position: absolute;
    background: rgba(106, 77, 255, 0.55);
    border-radius: 6px;
}

.visual-icon--wallet::before {
    width: 18px;
    height: 10px;
    left: 9px;
    top: 12px;
}

.visual-icon--wallet::after {
    width: 10px;
    height: 6px;
    left: 13px;
    top: 8px;
    background: rgba(106, 77, 255, 0.35);
}

.visual-icon--outflow::before {
    width: 18px;
    height: 4px;
    left: 9px;
    top: 12px;
}

.visual-icon--outflow::after {
    width: 10px;
    height: 10px;
    left: 13px;
    top: 16px;
    transform: rotate(45deg);
    background: rgba(106, 77, 255, 0.35);
}

.visual-icon--stack::before {
    width: 16px;
    height: 4px;
    left: 10px;
    top: 10px;
}

.visual-icon--stack::after {
    width: 16px;
    height: 4px;
    left: 10px;
    top: 18px;
    background: rgba(106, 77, 255, 0.35);
    box-shadow: 0 8px 0 rgba(106, 77, 255, 0.2);
}

.visual-icon--flow::before {
    width: 18px;
    height: 2px;
    left: 9px;
    top: 12px;
}

.visual-icon--flow::after {
    width: 6px;
    height: 6px;
    left: 20px;
    top: 9px;
    border-radius: 2px;
}

.visual-card--side {
    position: absolute;
    right: 0;
    top: 10px;
    width: 190px;
    padding: 16px;
    animation: floatSide 7s ease-in-out infinite;
}

.visual-card__mini {
    display: grid;
    gap: 8px;
}

.visual-card__mini span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(106, 77, 255, 0.2);
}

.visual-card__mini span:nth-child(2) {
    width: 70%;
}

.visual-card__mini span:nth-child(3) {
    width: 45%;
}

.visual-card--float {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 190px;
    text-align: center;
    animation: floatMini 5s ease-in-out infinite;
}

.visual-float {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-align: left;
}

.visual-float--icon {
    gap: 12px;
}

.visual-float--icon .visual-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    animation: iconPulse 4s ease-in-out infinite;
}

.visual-float--icon .visual-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.visual-float--icon .visual-icon:nth-child(3) {
    animation-delay: 0.8s;
}

.visual-float strong {
    display: block;
    font-size: 0.92rem;
    color: var(--accent);
}

.visual-float span {
    font-size: 0.72rem;
    color: var(--muted);
}

.visual-icon--trend::before {
    width: 16px;
    height: 2px;
    left: 10px;
    top: 18px;
    transform: rotate(-25deg);
}

.visual-icon--trend::after {
    width: 6px;
    height: 6px;
    left: 20px;
    top: 12px;
    border-radius: 2px;
}

.visual-icon--spark::before {
    width: 10px;
    height: 10px;
    left: 13px;
    top: 10px;
    transform: rotate(45deg);
}

.visual-icon--spark::after {
    width: 6px;
    height: 6px;
    left: 15px;
    top: 20px;
    border-radius: 2px;
}

.visual-icon--shield::before {
    width: 14px;
    height: 16px;
    left: 11px;
    top: 9px;
    border-radius: 0 0 10px 10px;
}

.visual-icon--shield::after {
    width: 10px;
    height: 2px;
    left: 13px;
    top: 16px;
    background: rgba(106, 77, 255, 0.35);
}

.visual-mini-icons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-top: 12px;
}

.visual-mini-icons .visual-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.visual-icon--check::before {
    width: 12px;
    height: 2px;
    left: 8px;
    top: 14px;
    transform: rotate(-35deg);
}

.visual-icon--check::after {
    width: 6px;
    height: 2px;
    left: 14px;
    top: 16px;
    transform: rotate(35deg);
    background: rgba(106, 77, 255, 0.35);
}

.visual-icon--pulse::before {
    width: 16px;
    height: 2px;
    left: 6px;
    top: 13px;
}

.visual-icon--pulse::after {
    width: 6px;
    height: 6px;
    left: 16px;
    top: 10px;
    border-radius: 50%;
}

.visual-icon--grid::before {
    width: 6px;
    height: 6px;
    left: 8px;
    top: 8px;
}

.visual-icon--grid::after {
    width: 6px;
    height: 6px;
    left: 18px;
    top: 8px;
    box-shadow: 0 10px 0 rgba(106, 77, 255, 0.55);
}

.visual-icon--folder::before {
    width: 18px;
    height: 10px;
    left: 9px;
    top: 14px;
    border-radius: 4px;
}

.visual-icon--folder::after {
    width: 10px;
    height: 4px;
    left: 11px;
    top: 10px;
    border-radius: 4px;
    background: rgba(106, 77, 255, 0.35);
}

.visual-icon--clock::before {
    width: 16px;
    height: 16px;
    left: 10px;
    top: 10px;
    border-radius: 50%;
}

.visual-icon--clock::after {
    width: 2px;
    height: 8px;
    left: 18px;
    top: 12px;
    box-shadow: -4px 4px 0 rgba(106, 77, 255, 0.35);
}

.visual-icon--list::before {
    width: 14px;
    height: 2px;
    left: 11px;
    top: 12px;
}

.visual-icon--list::after {
    width: 14px;
    height: 2px;
    left: 11px;
    top: 18px;
    box-shadow: 0 6px 0 rgba(106, 77, 255, 0.35);
}
.testimonials {
    width: min(560px, 100%);
    display: grid;
    gap: 18px;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 8% -8% 8% -8%;
    background: radial-gradient(circle at top, rgba(106, 77, 255, 0.18), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(106, 77, 255, 0.12), transparent 55%);
    filter: blur(10px);
    z-index: 0;
}

.testimonials__frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    z-index: 1;
}

.testimonials__track {
    display: grid;
    gap: 14px;
    animation: testimonialsSlide 16s ease-in-out infinite;
}

.testimonial-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(106, 77, 255, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.06);
}

.testimonial-card:nth-child(odd) {
    align-self: flex-start;
}

.testimonial-card:nth-child(even) {
    align-self: flex-end;
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.testimonial-card__header strong {
    display: block;
    font-size: 0.95rem;
}

.testimonial-card__header span {
    font-size: 0.74rem;
    color: var(--muted);
}

.testimonial-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text);
}

.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(145deg, rgba(106, 77, 255, 0.9), rgba(106, 77, 255, 0.55));
}

.testimonials__controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 1;
}

.testimonials__dot {
    width: 22px;
    height: 6px;
    border-radius: 999px;
    background: rgba(106, 77, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.testimonials__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(106, 77, 255, 0.6);
    transform: translateX(-100%);
    animation: dotSlide 16s ease-in-out infinite;
}

.testimonials__dot:nth-child(2)::after {
    animation-delay: 5.3s;
}

.testimonials__dot:nth-child(3)::after {
    animation-delay: 10.6s;
}

@keyframes floatMain {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes floatSide {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes floatMini {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes chartPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes orbitPulse {
    0%, 100% { opacity: 0.35; transform: scaleX(1); }
    50% { opacity: 0.7; transform: scaleX(0.98); }
}

@keyframes tileFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes glowFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
    50% { transform: translateY(-8px) scale(1.05); opacity: 0.8; }
}

.filters {
    margin: 18px 0 28px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

.filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.filters.is-collapsed .form {
    display: none;
}

.filters .form__actions {
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .filters {
    background: var(--surface);
    border-color: var(--stroke);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 14px;
}

.filter-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface-alt);
    font-size: 0.82rem;
    color: var(--muted);
}

.filter-chip strong {
    color: var(--text);
    font-weight: 600;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--surface);
    border-color: var(--stroke);
    color: var(--text);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: rgba(245, 243, 238, 0.55);
}

[data-theme="dark"] label {
    color: rgba(245, 243, 238, 0.82);
}

.form--filters .form__actions {
    justify-content: flex-start;
    gap: 12px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .page-shell {
        max-width: var(--page-max-width);
    }

    .grid-cards {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }
}

.report-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grid-cards .card,
.table,
.filters,
.topbar {
    animation: fadeUp 0.2s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card__header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.login-card__header h2 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.login-card__header h2 {
    margin: 0;
}

.login-card__header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.login-shell {
    gap: 24px;
}

.theme-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
}

@media (min-width: 1600px) {
    .page-shell {
        max-width: var(--page-max-width);
    }
}

@media (max-width: 900px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        height: 100%;
        z-index: 10;
        border-top-right-radius: 24px;
        border-bottom-right-radius: 24px;
        transform: translateX(-100%);
        width: min(85vw, 320px);
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }

    .sidebar__nav .nav-link::after {
        display: none;
    }

    .sidebar .nav-label {
        opacity: 1;
        width: auto;
        transform: translateX(0);
    }

    .sidebar .sidebar__nav .nav-link {
        justify-content: flex-start;
    }

    .sidebar.sidebar--open .brand-text {
        display: flex;
    }

    .sidebar.sidebar--open .sidebar__user strong,
    .sidebar.sidebar--open .sidebar__user span {
        display: block;
    }

    .sidebar.sidebar--open .sidebar__user {
        justify-content: flex-start;
    }

    .content {
        padding: 24px;
    }

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

    .login-visual {
        display: none;
    }

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

    .login-shell {
        max-width: 360px;
    }

    .topbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .topbar__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .topbar__center {
        justify-content: flex-start;
    }

    .app-search {
        width: 100%;
    }

    .table__header,
    .table__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .table--wide .table__header,
    .table--wide .table__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .table--wide .table__header span:nth-child(3),
    .table--wide .table__header span:nth-child(4),
    .table--wide .table__header span:nth-child(5),
    .table--wide .table__header span:nth-child(6),
    .table--wide .table__header span:nth-child(7),
    .table--wide .table__row span:nth-child(3),
    .table--wide .table__row span:nth-child(4),
    .table--wide .table__row span:nth-child(5),
    .table--wide .table__row span:nth-child(6),
    .table--wide .table__row span:nth-child(7) {
        display: none;
    }

    .table__header span:nth-child(3),
    .table__header span:nth-child(4),
    .table__row span:nth-child(3),
    .table__row span:nth-child(4) {
        display: none;
    }

    .table--clients .table__header span:nth-child(3),
    .table--clients .table__header span:nth-child(4),
    .table--clients .table__header span:nth-child(5),
    .table--clients .table__header span:nth-child(6),
    .table--clients .table__row span:nth-child(3),
    .table--clients .table__row span:nth-child(4),
    .table--clients .table__row span:nth-child(5),
    .table--clients .table__row span:nth-child(6) {
        display: none;
    }

    .table--servers .table__header,
    .table--servers .table__row {
        grid-template-columns: 1.4fr 0.8fr 0.6fr;
    }

    .table--servers .table__header span:nth-child(2),
    .table--servers .table__header span:nth-child(3),
    .table--servers .table__header span:nth-child(5),
    .table--servers .table__row span:nth-child(2),
    .table--servers .table__row span:nth-child(3),
    .table--servers .table__row span:nth-child(5) {
        display: none;
    }
}

@media (max-height: 720px) {
    :root {
        --sidebar-pad: 12px;
        --nav-gap: 4px;
        --nav-box: 36px;
        --nav-icon: 16px;
    }

    .brand-logo--sidebar {
        width: 48px;
    }
}

@media (max-height: 640px) {
    :root {
        --sidebar-pad: 10px;
        --nav-gap: 3px;
        --nav-box: 32px;
        --nav-icon: 14px;
    }

    .brand-logo--sidebar {
        width: 44px;
    }

    .sidebar__user {
        padding: 6px 8px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

@media (max-height: 600px) {
    :root {
        --sidebar-pad: 8px;
        --nav-gap: 2px;
        --nav-box: 30px;
        --nav-icon: 13px;
    }

    .brand-logo--sidebar {
        width: 40px;
    }
}

.card,
.grid-cards .card,
.table__row,
.table__details,
.sidebar,
.topbar,
.app-search__input,
.nav-icon-wrap,
.sidebar__footer .icon-button,
.user-avatar,
.brand-logo,
.brand-dot,
.stat-icon,
.stats-panel__header,
.stats-panel__toggle,
.context-actions .ghost,
.icon-button,
.theme-fab,
.pagination .ghost {
    box-shadow: none;
}

.card,
.grid-cards .card,
.box,
.table__header,
.table__row,
.table__details {
    border-width: 1px;
    border-style: solid;
    border-color: var(--stroke);
}

.card:hover,
.table__row:hover,
.stats-panel__toggle:hover,
.context-actions .ghost:hover {
    box-shadow: none;
}
