@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
    --bg: #f5f7f6;
    --panel: #fff;
    --ink: #18322e;
    --muted: #73817c;
    --line: #e3eae6;
    --green: #226d5b;
    --green-dark: #165240;
    --mint: #e9f4ee;
    --danger: #b13d3d;
    --radius: 18px;
    --shadow: 0 12px 38px #163f2b06;
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font:
        14px/1.6 'DM Sans',
        Arial,
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
a {
    color: var(--green);
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.6;
    cursor: wait;
}
h1,
h2,
h3 {
    font-family: Manrope, Arial, sans-serif;
    line-height: 1.3;
    margin: 0;
}
h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.8px;
}
h2 {
    font-size: 19px;
}
h3 {
    font-size: 16px;
}
p {
    margin: 0;
}
.muted {
    color: var(--muted);
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 1.8px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}
.shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 28px 18px;
    z-index: 10;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
    padding: 0 10px;
    margin-bottom: 37px;
}
.brand img {
    width: 40px;
    height: 40px;
}
.brand strong {
    display: block;
    font:
        800 19px Manrope,
        Arial;
}
.brand small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
}
.nav-label {
    font-size: 10px;
    color: #98a49c;
    letter-spacing: 1.4px;
    font-weight: 700;
    margin: 22px 14px 9px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #6a7973;
    text-decoration: none;
    border-radius: 10px;
    margin: 3px 0;
    font-weight: 500;
}
.nav-item svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.nav-item:hover {
    background: #f5f8f6;
}
.nav-item.active {
    background: var(--mint);
    color: var(--green);
    font-weight: 700;
}
.sidebar-bottom {
    margin-top: auto;
    padding: 16px 10px 0;
    border-top: 1px solid var(--line);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.sidebar-user strong {
    display: block;
    font-size: 12px;
}
.sidebar-user small {
    color: var(--muted);
}
.signout {
    border: 0;
    background: transparent;
    padding: 10px 0;
    color: var(--muted);
    font-size: 12px;
}
.main-area {
    grid-column: 2;
    min-width: 0;
}
.topbar {
    height: 83px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: #fcfdfc;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}
.breadcrumb svg {
    width: 17px;
    height: 17px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.topbar-right time {
    font-size: 12px;
    color: var(--muted);
}
.avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e4efe7;
    color: #2c7258;
    font: 700 13px Manrope;
    overflow: hidden;
    text-decoration: none;
    object-fit: cover;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar.large {
    width: 88px;
    height: 88px;
    font-size: 26px;
    background: #dcebe1;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
}
.content {
    width: min(1250px, 100%);
    margin: 0 auto;
    padding: 34px 40px 50px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}
.page-heading p {
    margin-top: 7px;
    color: var(--muted);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    min-height: 42px;
    padding: 10px 16px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.btn svg {
    width: 16px;
    height: 16px;
}
.btn.primary {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.btn.primary:hover {
    background: var(--green-dark);
}
.btn.danger {
    color: var(--danger);
}
.btn.quiet {
    border-color: transparent;
    background: transparent;
}
.btn.small {
    min-height: 34px;
    padding: 6px 12px;
}
.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e7dc;
    border-radius: var(--radius);
    padding: 31px 34px;
    margin-bottom: 29px;
    background: linear-gradient(110deg, #edf6ef, #f8faf6 75%);
}
.hero h1 {
    font-size: 28px;
    margin: 9px 0;
}
.hero p {
    max-width: 570px;
    color: #728778;
}
.hero-top {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    align-items: center;
}
.hero-art {
    width: 145px;
    height: 132px;
    position: relative;
    flex-shrink: 0;
}
.hero-art:before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid #c4dbc7;
    background: #e2f0e2;
    border-radius: 32px;
    transform: rotate(12deg);
}
.hero-art svg {
    position: relative;
    margin: 30px;
    color: #638a66;
    width: 70px;
    height: 70px;
    stroke-width: 1;
}
.hero-footer {
    display: flex;
    gap: 21px;
    margin-top: 23px;
    padding-top: 19px;
    border-top: 1px solid #dce8dc;
    font-size: 12px;
    color: #6a7d6b;
}
.hero-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-footer i {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #6e9b76;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-title h2 {
    font-size: 16px;
}
.section-title span {
    font-size: 11px;
    color: var(--muted);
}
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 27px;
}
.module-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 23px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition:
        transform 0.15s,
        border-color 0.15s;
}
.module-card:hover {
    transform: translateY(-3px);
    border-color: #94bca5;
}
.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ecf4ef;
    color: #4b8669;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
}
.module-icon svg {
    width: 23px;
    height: 23px;
}
.module-card:nth-child(2) .module-icon {
    background: #eff2fb;
    color: #6b81b2;
}
.module-card:nth-child(3) .module-icon {
    background: #fbf1e5;
    color: #b49157;
}
.module-card h3 {
    font-size: 15px;
}
.module-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
    min-height: 40px;
    margin: 9px 0 20px;
}
.module-card .open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #587166;
    font-size: 11px;
    font-weight: 600;
    border-top: 1px solid #f0f3f0;
    padding-top: 14px;
}
.module-card .open svg {
    width: 15px;
    height: 15px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 20px;
}
.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf1ed;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.panel-title p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}
.panel-title > svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--muted);
}
.panel-title > div,
.profile-layout > div {
    min-width: 0;
}
.profile-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 23px;
    align-items: start;
}
.profile-card {
    text-align: center;
    padding: 29px 24px;
}
.profile-card h2 {
    margin: 15px 0 2px;
    font-size: 19px;
}
.profile-card .username {
    font-size: 12px;
    color: var(--muted);
}
.profile-meta {
    text-align: left;
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 18px;
}
.meta-line {
    padding: 8px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.meta-line span {
    color: var(--muted);
}
.meta-line strong {
    text-align: right;
    font-weight: 500;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    background: #eef4ef;
    color: #547861;
    white-space: nowrap;
}
.badge.probation {
    background: #fcf1df;
    color: #a48747;
}
.badge.pending {
    background: #edf0fa;
    color: #6b77a4;
}
.badge.disabled {
    background: #f8e9e9;
    color: #aa5c5c;
}
.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field.full {
    grid-column: 1/-1;
}
.field label {
    font-size: 12px;
    font-weight: 600;
    color: #51655b;
}
.field input,
.field select,
.field textarea,
.search-input {
    border: 1px solid #dfe7e1;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--ink);
    width: 100%;
    min-width: 0;
}
.field textarea {
    resize: vertical;
    min-height: 88px;
}
.field input:read-only {
    background: #f8faf8;
    color: #829087;
}
.field small {
    font-size: 10px;
    color: var(--muted);
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #bce1cf;
    outline-offset: 1px;
    border-color: #78b293;
}
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #edf1ed;
}
.form-footer small {
    color: var(--muted);
    font-size: 11px;
}
.avatar-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}
.member-photo-setup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.avatar-help {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
}
.permission-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.permission-chips span {
    border-radius: 5px;
    background: #f3f7f4;
    padding: 5px 9px;
    color: #678270;
    font-size: 11px;
}
.note {
    background: #f3f8f4;
    color: #647e6b;
    border-radius: 9px;
    padding: 13px 16px;
    font-size: 12px;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 23px;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 19px 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat strong {
    display: block;
    font: 800 27px Manrope;
}
.stat small {
    color: var(--muted);
    font-size: 11px;
}
.stat svg {
    width: 25px;
    height: 25px;
    color: #81a88c;
}
.tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 23px;
}
.tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 2px solid transparent;
}
.tab.active {
    color: var(--green);
    border-bottom-color: var(--green);
}
.table-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
}
.table-toolbar {
    padding: 18px 21px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.search-input {
    max-width: 300px;
    padding: 9px 12px;
    font-size: 12px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left;
}
th {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #859188;
    font-weight: 600;
    background: #f9fbf9;
    padding: 13px 21px;
    border-top: 1px solid #edf1ed;
    border-bottom: 1px solid #edf1ed;
    white-space: nowrap;
}
td {
    padding: 18px 21px;
    border-bottom: 1px solid #f0f4f0;
}
tr:last-child td {
    border: 0;
}
.person-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}
.person-cell strong {
    display: block;
    font-size: 12px;
}
.person-cell small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}
.actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}
.empty {
    padding: 42px 20px;
    text-align: center;
    color: var(--muted);
}
.notice {
    border-radius: 9px;
    margin-bottom: 18px;
    padding: 12px 15px;
    font-size: 12px;
    background: #edf5ef;
    color: #476f52;
}
.notice.error {
    background: #fcf0ec;
    color: #a55342;
}
.loading {
    padding: 80px 20px;
    text-align: center;
    color: var(--muted);
}
.footer {
    color: #96a299;
    font-size: 10px;
    margin-top: 28px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #162f2780;
    backdrop-filter: blur(3px);
}
.modal-card {
    width: 680px;
    max-width: 100%;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 27px;
    box-shadow: 0 20px 70px #0003;
}
.modal-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.modal-title button {
    border: 0;
    background: #f5f8f5;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: var(--muted);
}
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 13px 0;
}
.permission-option {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px;
    font-size: 12px;
}
.permission-option:has(input:checked) {
    background: #f2f8f3;
    border-color: #b6d5bf;
}
.permission-option input {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
}
.permission-option small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}
.permission-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 23px 0 5px;
}
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}
.role-card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.role-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}
.role-card .actions {
    margin-top: 22px;
}
.mobile-menu {
    display: none;
    border: 0;
    background: none;
    color: var(--ink);
}
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}
.auth-art {
    position: relative;
    padding: 60px;
    background: #edf4ee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.auth-art .brand {
    padding: 0;
    margin: 0;
}
.auth-art h1 {
    font-size: 40px;
    max-width: 440px;
    line-height: 1.35;
    letter-spacing: -1.3px;
}
.auth-art p {
    margin-top: 20px;
    max-width: 350px;
    font-size: 14px;
    color: #7f9587;
}
.auth-art .art-box {
    position: relative;
    width: 230px;
    height: 180px;
    margin: 40px auto;
    border: 1px solid #c4d8c6;
    border-radius: 32px;
    background: #dfebdf;
    display: grid;
    place-items: center;
    transform: rotate(-8deg);
}
.auth-art .art-box svg {
    height: 95px;
    width: 95px;
    color: #85a188;
    transform: rotate(8deg);
    stroke-width: 1;
}
.auth-art small {
    font-size: 10px;
    color: #91a295;
}
.auth-main {
    display: grid;
    place-items: center;
    padding: 45px 28px;
}
.auth-card {
    width: 365px;
    max-width: 100%;
}
.auth-card h1 {
    font-size: 27px;
    margin-top: 8px;
}
.auth-card > p {
    margin-top: 10px;
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--muted);
}
.auth-card .field {
    margin-bottom: 17px;
}
.auth-card .btn {
    width: 100%;
    margin-top: 11px;
    min-height: 46px;
    font-size: 13px;
}
.auth-links {
    margin: 21px 0;
    text-align: center;
    font-size: 12px;
}
.auth-links a {
    text-decoration: none;
    font-weight: 600;
}
.auth-small {
    font-size: 10px;
    color: #98a79e;
    text-align: center;
    margin-top: 40px;
}
.password-wrapper {
    display: flex;
    position: relative;
}
.password-wrapper input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 5px;
    top: 6px;
    border: 0;
    background: none;
    color: #8c9c90;
    width: 32px;
    height: 32px;
    font-size: 12px;
}
.strength {
    height: 3px;
    background: #e4ebe6;
    border-radius: 3px;
    margin-top: 5px;
}
.strength span {
    height: 100%;
    display: block;
    background: #84ad8c;
    width: 0;
}
.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
@media (max-width: 1150px) {
    .sidebar {
        width: 210px;
    }
    .shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }
    .content {
        padding: 28px;
    }
    .topbar {
        padding: 0 28px;
    }
    .profile-layout {
        grid-template-columns: 250px minmax(0, 1fr);
    }
    .module-grid {
        gap: 12px;
    }
    .module-card {
        padding: 20px;
    }
    .auth-art {
        padding: 40px;
    }
    .auth-art h1 {
        font-size: 32px;
    }
}
@media (max-width: 900px) {
    .module-grid,
    .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 24px;
    }
    .profile-meta {
        flex: 1;
        min-width: 200px;
        margin-top: 0;
        border-top: 0;
        border-left: 1px solid var(--line);
        padding: 0 0 0 20px;
    }
    .profile-card h2 {
        margin-top: 0;
    }
    .hero-art {
        display: none;
    }
    .auth-art {
        display: none;
    }
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-main {
        min-height: 100vh;
    }
}
@media (max-width: 650px) {
    .shell {
        display: block;
    }
    .main-area {
        grid-column: auto;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
        box-shadow: 12px 0 35px #0b292722;
        width: 240px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-menu {
        display: block;
    }
    .topbar {
        height: 65px;
        padding: 0 20px;
    }
    .topbar-right time {
        display: none;
    }
    .content {
        padding: 25px 18px;
    }
    h1 {
        font-size: 25px;
    }
    .hero {
        padding: 23px;
    }
    .hero h1 {
        font-size: 23px;
    }
    .hero-footer {
        flex-wrap: wrap;
        gap: 10px;
    }
    .module-grid,
    .role-grid {
        grid-template-columns: 1fr;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-heading > .btn {
        font-size: 10px;
        padding: 9px 11px;
    }
    .field-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }
    .panel {
        padding: 20px;
    }
    .stats-row {
        gap: 8px;
    }
    .stat {
        padding: 15px 13px;
    }
    .stat strong {
        font-size: 23px;
    }
    .stat svg {
        display: none;
    }
    .profile-card {
        display: block;
    }
    .profile-meta {
        border-left: 0;
        border-top: 1px solid var(--line);
        margin-top: 22px;
        padding: 15px 0 0;
    }
    .table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .table-toolbar .search-input {
        max-width: 100%;
    }
    .modal {
        padding: 10px;
    }
    .modal-card {
        padding: 20px;
    }
    .form-footer small {
        max-width: 60%;
    }
    .tabs {
        gap: 20px;
    }
    .footer {
        gap: 15px;
    }
    .auth-main {
        padding: 35px 22px;
    }
    .auth-card {
        width: 370px;
    }
}
