:root {
    --ink: #1c2d24;
    --muted: #54635a;
    --canvas: #f4f6f1;
    --surface: #fff;
    --line: #dde4da;
    --forest: #14271f;
    --leaf: #c7e894;
    --accent: #2c5d43;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 100%;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body, p, h1, h2, dl, dd, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #658e4a; outline-offset: 3px; }
.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed;
    z-index: 10;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: .65rem 1rem;
}

.sidebar {
    --sidebar-width: min(18rem, 86vw);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 6;
    width: var(--sidebar-width);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--forest);
    color: #dbebe0;
    padding: 1.65rem 1.05rem 1.05rem;
    box-shadow: .15rem 0 .9rem #14271f35;
}
.brand { display: inline-flex; align-items: center; gap: .72rem; width: fit-content; }
.sidebar .brand { margin: .08rem 0 1.55rem; }
.sidebar-heading { display: flex; align-items: start; justify-content: space-between; gap: .35rem; }
.sidebar-close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid #536d5b;
    border-radius: .55rem;
    color: #e8f1e8;
    background: transparent;
    flex-shrink: 0;
}
.sidebar-close:hover { background: #263e31; }
.brand-name { font-weight: 800; font-size: .98rem; letter-spacing: .065em; white-space: nowrap; }
.brand-name small { color: var(--leaf); font-size: .76rem; margin-left: .12rem; letter-spacing: .01em; }
.brand-mark {
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    display: grid;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 2px;
    border-radius: .66rem;
    background: var(--leaf);
}
.brand-mark i {
    display: block;
    width: 17px;
    height: 4px;
    border-radius: 2px;
    background: var(--forest);
    transform: skewX(-28deg);
}
.brand-mark i:nth-child(2) { width: 13px; }
.brand-mark i:nth-child(3) { width: 9px; }
.sidebar-nav { display: grid; gap: .31rem; }
.nav-item {
    width: 100%;
    min-height: 2.76rem;
    display: flex;
    align-items: center;
    gap: .76rem;
    border: 0;
    border-radius: .56rem;
    padding: .62rem .8rem;
    font-size: .92rem;
    font-weight: 590;
    color: #d8e6db;
    background: transparent;
    text-align: left;
}
.nav-item .icon { color: #add0b7; }
.nav-item:hover { background: #263e31; color: #fff; }
.nav-item[aria-current="page"] { color: #1d3828; background: var(--leaf); font-weight: 740; }
.nav-item[aria-current="page"] .icon { color: #2b4f39; }
.nav-group > summary { cursor: pointer; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after {
    content: '';
    width: .38rem;
    height: .38rem;
    margin: -.18rem .15rem 0 auto;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.nav-group[open] > summary::after { margin-top: .17rem; transform: rotate(225deg); }
.nav-reports {
    display: grid;
    gap: .15rem;
    margin: .2rem 0 .2rem 1.22rem;
    padding: 0 0 0 .62rem;
    border-left: 1px solid #506c59;
    list-style: none;
}
.nav-reports .nav-item { min-height: 2.35rem; padding: .4rem .58rem; font-size: .86rem; }
.sidebar .nav-item:focus-visible, .sidebar .brand:focus-visible { outline-color: var(--leaf); }
.sidebar-footer { margin: auto 0 0; padding-top: 1rem; }
.sidebar-footer .nav-item { border-top: 1px solid #34493d; border-radius: 0; }

@media (min-width: 34rem) {
    .nav-group > summary::after,
    .nav-group[open] > summary::after { margin-top: 0; transform: rotate(-45deg); }
    .nav-group[open] > summary { background: #263e31; color: #fff; }
    .nav-reports[popover] {
        position: fixed;
        inset: auto;
        inset-block-start: var(--nav-reports-top, .5rem);
        inset-inline-start: calc(var(--sidebar-width) + .45rem);
        width: 14rem;
        max-height: min(23rem, calc(100dvh - 1rem));
        overflow-y: auto;
        overscroll-behavior: contain;
        margin: 0;
        padding: .5rem;
        border: 1px solid #466252;
        border-radius: .65rem;
        background: #1d3528;
        color: inherit;
        box-shadow: 0 .4rem 1.1rem #14271f40;
    }
    .nav-reports[popover]:not(:popover-open) { display: none; }
}

.workspace-main { display: flex; flex-direction: column; min-height: 100dvh; }
.topbar {
    position: sticky;
    inset-block-start: 0;
    z-index: 3;
    min-height: 4.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .64rem clamp(1.2rem, 3vw, 2.6rem);
}
.topbar-start, .topbar-end, .account, .breadcrumbs {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}
.topbar-end { gap: 1.22rem; flex: 0 0 auto; }
.breadcrumbs { font-size: .875rem; color: var(--muted); }
.breadcrumbs i {
    width: .36rem;
    height: .36rem;
    border: solid #687c6d;
    border-width: 1px 1px 0 0;
    transform: rotate(45deg);
    flex: 0 0 auto;
}
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .22em; }
.breadcrumbs [aria-current] { font-weight: 710; color: var(--ink); }
.preview-tag {
    display: inline-flex;
    align-items: center;
    gap: .43rem;
    font-size: .82rem;
    font-weight: 670;
    white-space: nowrap;
    color: #365042;
    background: #ecf2e9;
    border: 1px solid #e2ebdf;
    border-radius: 1rem;
    padding: .28rem .58rem;
}
.preview-tag i { width: .39rem; height: .39rem; border-radius: 50%; background: #547c4b; }
.account { font-size: .875rem; font-weight: 690; }
.account > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 13rem; }
.avatar {
    display: grid;
    place-items: center;
    width: 2.05rem;
    height: 2.05rem;
    flex-shrink: 0;
    border-radius: 50%;
    color: #2d5037;
    background: #dfebdb;
}
.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
    min-height: 2.45rem;
    padding: .32rem .62rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    color: var(--ink);
    background: var(--surface);
    font-size: .85rem;
    font-weight: 680;
}
.menu-toggle:hover { background: #ecf2e9; }

.main { flex: 1; min-width: 0; padding: 1.8rem clamp(1.2rem, 3vw, 2.6rem) 2.4rem; }
.main:focus { outline: none; }
.page-heading { margin-bottom: 1.22rem; }
h1 { letter-spacing: -.045em; line-height: 1.13; font-size: clamp(2.04rem, 3.3vw, 2.65rem); font-weight: 800; }
.page-heading p { color: var(--muted); margin-top: .32rem; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(62%, 34rem);
    align-items: center;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(120deg, var(--forest), #284235);
    color: #fff;
}
.hero-image, .login-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--forest);
}
.hero-copy { padding: 1.9rem clamp(1.4rem, 4vw, 2.75rem); }
.hero h2 {
    max-width: 26rem;
    font-weight: 780;
    font-size: clamp(1.85rem, 3.35vw, 2.8rem);
    letter-spacing: -.044em;
    line-height: 1.08;
}

.summary { margin-top: 1.65rem; }
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .26rem .8rem;
    margin-bottom: .75rem;
}
.section-heading h2, .panel h2 { font-size: 1.16rem; font-weight: 760; letter-spacing: -.025em; }
.section-heading > span { font-size: .88rem; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .88rem; }
.metric, .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: .8rem;
    box-shadow: 0 1px 2px #203b1610;
}
.metric {
    min-width: 0;
    min-height: 7.3rem;
    padding: .95rem 1rem;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: .35rem;
    align-items: start;
}
.metric dt {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: .36rem;
    font-size: .91rem;
    color: var(--muted);
    font-weight: 630;
}
.metric dt .icon { margin: .08rem .14rem 0 0; color: var(--accent); }
.metric dd { color: #31523e; font-size: 1.7rem; line-height: 1.2; font-weight: 740; align-self: end; }
.home-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: .88rem;
    margin-top: 1.12rem;
}
.panel { padding: 1.1rem 1.15rem; }
.shortcut-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .48rem;
    padding: 0;
    margin-top: .78rem;
}
.shortcut {
    min-height: 3rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: .57rem;
    padding: .34rem .48rem;
    border: 1px solid #e5ebe1;
    border-radius: .52rem;
    font-size: .9rem;
    font-weight: 670;
}
.shortcut:hover { background: #f4f8f0; border-color: #bdcfb9; }
.shortcut-icon, .section-empty-icon {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    color: #345d44;
    background: #eaf1e6;
    border-radius: .4rem;
}
.connections { margin-top: .59rem; }
.connections > div {
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .24rem .5rem;
    padding: .35rem 0;
    border-bottom: 1px solid #ebefe8;
    font-size: .9rem;
}
.connections > div:last-child { border-bottom: 0; }
.connections dd {
    flex: 0 0 auto;
    background: #f0f2ed;
    border-radius: 1rem;
    color: #536256;
    padding: .2rem .56rem;
    font-size: .8rem;
    font-weight: 660;
}
.section-empty { padding: 2rem; max-width: 42rem; }
.section-empty-icon { margin-bottom: .9rem; height: 2.7rem; width: 2.7rem; }
.secondary-button {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    border-radius: .5rem;
    padding: .45rem .8rem;
    border: 1px solid #b8c9b7;
    color: #244a36;
    font-weight: 690;
}
.secondary-button:hover { background: #eef5ea; }

.login-layout {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(20rem, .82fr) minmax(0, 1fr);
    background: #fbfcf9;
}
.login-content {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 2.2rem clamp(1.4rem, 4vw, 3.8rem);
}
.login-brand .brand-name small { color: #466345; }
.login-form-area { width: min(100%, 24rem); align-self: center; justify-self: center; margin-block: 2rem 4rem; }
.login-form-area h1 { margin-bottom: 1.55rem; }
.login-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .32rem; }
.field label { font-size: .94rem; font-weight: 670; }
.field input {
    width: 100%;
    min-height: 3.02rem;
    border: 1px solid #b9c7bc;
    border-radius: .58rem;
    background: var(--surface);
    padding: .62rem .76rem;
    color: var(--ink);
}
.form-error {
    color: #782b20;
    background: #fff0ec;
    border-radius: .46rem;
    padding: .55rem .7rem;
    font-size: .95rem;
}
.primary-button {
    margin-top: .24rem;
    min-height: 3.05rem;
    border: 0;
    border-radius: .55rem;
    background: #284e3a;
    color: #fff;
    font-weight: 730;
}
.primary-button:hover { background: #183e2b; }
.login-visual {
    display: grid;
    place-items: center;
    margin: .9rem .9rem .9rem 0;
    border-radius: .9rem;
    padding: clamp(.75rem, 2.5vw, 2.25rem);
    background: linear-gradient(145deg, var(--forest), #284235);
}
.login-visual img {
    border-radius: .5rem;
}

.icon {
    display: inline-grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
}
.icon::before, .icon::after, .icon i { position: absolute; box-sizing: border-box; display: block; }
.icon::before, .icon::after { content: ""; }
.icon--home::before { width: 89%; height: 89%; border: 1.5px solid currentColor; border-radius: 3px; }
.icon--home::after { width: 1.5px; height: 76%; background: currentColor; }
.icon--home i { width: 79%; height: 1.5px; background: currentColor; }
.icon--analytics::before {
    width: 85%;
    height: 85%;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    border-bottom-left-radius: 2px;
}
.icon--analytics::after {
    width: 2px;
    height: 48%;
    right: 17%;
    bottom: 20%;
    border-radius: 1px;
    background: currentColor;
}
.icon--analytics i {
    width: 2px;
    height: 31%;
    right: 39%;
    bottom: 20%;
    border-radius: 1px;
    background: currentColor;
    box-shadow: -4px 2px currentColor;
}
.icon--sales::before { width: 91%; height: 69%; border: 1.5px solid currentColor; border-radius: 3px; }
.icon--sales::after { width: 78%; height: 1.5px; top: 39%; background: currentColor; }
.icon--sales i { width: 22%; height: 1.5px; right: 19%; bottom: 27%; background: currentColor; }
.icon--locations::before {
    width: 73%;
    height: 73%;
    top: 8%;
    border: 1.5px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.icon--locations::after {
    width: 22%;
    height: 22%;
    top: 32%;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}
.icon--chairs::before {
    width: 65%;
    height: 67%;
    top: 6%;
    border: 1.5px solid currentColor;
    border-radius: 4px 4px 2px 2px;
}
.icon--chairs::after {
    width: 86%;
    height: 32%;
    top: 50%;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    background: inherit;
}
.icon--chairs i { width: 65%; height: 20%; border: solid currentColor; border-width: 0 1.5px; bottom: 4%; }
.icon--finance::before { width: 78%; height: 87%; border: 1.5px solid currentColor; border-radius: 3px; }
.icon--finance::after {
    width: 43%;
    height: 2px;
    top: 33%;
    background: currentColor;
    box-shadow: 0 4px currentColor;
}
.icon--investors::before {
    width: 37%;
    height: 39%;
    top: 6%;
    left: 17%;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}
.icon--investors::after {
    width: 67%;
    height: 44%;
    bottom: 8%;
    left: 4%;
    border: 1.5px solid currentColor;
    border-radius: 52% 52% 3px 3px;
}
.icon--investors i {
    width: 29%;
    height: 41%;
    right: 6%;
    top: 14%;
    border: solid currentColor;
    border-width: 1.5px 1.5px 1.5px 0;
    border-radius: 20% 50% 50% 20%;
}
.icon--administration::before {
    width: 77%;
    height: 77%;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    transform: rotate(45deg);
}
.icon--administration::after { width: 35%; height: 35%; border: 1.5px solid currentColor; border-radius: 50%; }
.icon--logout::before {
    width: 57%;
    height: 81%;
    left: 4%;
    border: 1.5px solid currentColor;
    border-right: 0;
    border-radius: 3px 0 0 3px;
}
.icon--logout::after {
    width: 38%;
    height: 38%;
    right: 7%;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
}
.icon--logout i { width: 57%; height: 1.5px; right: 9%; background: currentColor; }
.icon--menu i {
    width: 86%;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 -5px currentColor, 0 5px currentColor;
}
.icon--close::before, .icon--close::after {
    width: 90%;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}
.icon--close::after { transform: rotate(-45deg); }

@media (max-width: 1060px) {
    .topbar-end { gap: .72rem; }
    .metric { padding-inline: .8rem; }
}
@media (max-width: 860px) {
    .main { padding-top: 1.25rem; }
}
@media (max-width: 680px) {
    .hero { grid-template-columns: minmax(0, 1fr); border-radius: .8rem; }
    .hero-copy { padding: 1.2rem 1rem; }
}
@media (max-width: 570px) {
    .topbar { padding: .58rem .88rem; gap: .5rem; }
    .topbar-start, .topbar-end { gap: .52rem; }
    .breadcrumbs { font-size: .88rem; display: block; }
    .breadcrumbs > :first-child, .breadcrumbs i { display: none; }
    .breadcrumbs [aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account > span:last-child { display: none; }
    .main { padding-inline: .93rem; }
    .page-heading { margin-bottom: .95rem; }
    .summary { margin-top: 1.22rem; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
    .metric { min-height: 5.6rem; }
    .home-columns { grid-template-columns: minmax(0, 1fr); gap: .62rem; margin-top: .75rem; }
    .panel { padding-inline: .82rem; }
    .login-layout { grid-template-columns: minmax(0, 1fr); }
    .login-content { min-height: 100dvh; padding-top: 1.25rem; }
    .login-visual { display: none; }
}
