:root {
    --v3-sidebar-width: 276px;
    --v3-topbar-height: 64px;
    --v3-card-bg: linear-gradient(180deg, rgba(24, 28, 25, .96), rgba(15, 18, 17, .98));
    --v3-card-border: rgba(183,170,114,.15);
    --v3-card-border-strong: rgba(209,193,137,.28);
    --v3-muted-border: rgba(255,255,255,.055);
    --v3-shadow-soft: 0 18px 54px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.035);
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(183,170,114,.075), transparent 30%),
        radial-gradient(circle at 100% 8%, rgba(126,159,105,.055), transparent 28%),
        linear-gradient(180deg, #111514 0%, #090b0b 100%);
}

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

.standard-sidebar {
    width: var(--v3-sidebar-width);
    background: linear-gradient(180deg, rgba(14,18,18,.98), rgba(8,11,11,.995));
    border-right: 1px solid rgba(183,170,114,.13);
}

.standard-sidebar-inner {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.standard-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(209,193,137,.38);
    color: var(--accent-2);
    background: rgba(183,170,114,.055);
    font-size: 18px;
}

.brand-name {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #d8d0b9;
    text-transform: none;
}

.standard-sidebar-close {
    display: none;
}

.standard-nav {
    overflow-y: auto;
    padding-right: 2px;
}

.standard-nav.nav-accordion,
.standard-nav .nav-sublist {
    gap: 8px;
}

.standard-nav .nav-group {
    border: 0;
    background: transparent;
}

.standard-nav .nav-group summary,
.standard-nav .nav-link {
    min-height: 46px;
    border: 1px solid transparent;
    background: transparent;
    color: #d0d4cc;
    text-transform: none;
    letter-spacing: .01em;
    font-size: 15px;
    font-weight: 600;
}

.standard-nav .nav-group summary {
    padding: 0 14px;
}

.standard-nav .nav-group[open] summary {
    border: 1px solid rgba(183,170,114,.10);
    background: rgba(255,255,255,.025);
}

.standard-nav .nav-link {
    padding: 0 14px;
}

.standard-nav .nav-sublist {
    padding: 8px 0 8px 18px;
}

.standard-nav .nav-sublist .nav-link {
    min-height: 38px;
    font-size: 14px;
    color: rgba(212,208,191,.82);
}

.standard-nav .nav-link:hover,
.standard-nav .nav-link.is-active,
.standard-nav .nav-group summary:hover {
    border-color: rgba(209,193,137,.18);
    background: linear-gradient(90deg, rgba(183,170,114,.20), rgba(183,170,114,.07));
    color: #f0ead5;
}

.standard-nav .nav-link.is-active {
    box-shadow: inset 3px 0 0 rgba(209,193,137,.62);
}

.nav-caret {
    color: var(--muted);
    font-size: 11px;
    transition: transform var(--transition-fast);
}

.nav-group[open] .nav-caret {
    transform: rotate(180deg);
}

.standard-sidebar-status {
    margin-top: auto;
    border-top: 1px solid rgba(183,170,114,.12);
    padding-top: 16px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.standard-sidebar-status .status-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126,159,105,.34);
    background: rgba(126,159,105,.12);
    color: #a8cc8d;
}

.standard-sidebar-status strong,
.standard-sidebar-status span {
    display: block;
}

.standard-sidebar-status strong {
    color: #d5d0be;
    font-size: 12px;
}

.standard-page-wrap {
    min-height: 100vh;
}

.standard-topbar {
    min-height: var(--v3-topbar-height);
    padding: 12px 18px;
    background: rgba(13,16,16,.86);
    border-bottom: 1px solid rgba(183,170,114,.12);
    backdrop-filter: blur(14px);
}

.standard-topbar-left {
    flex: 1 1 auto;
}

.standard-topbar-search {
    flex: 0 1 520px;
    height: 42px;
    margin: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    border: 1px solid rgba(183,170,114,.12);
    background: rgba(255,255,255,.028);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}

.standard-topbar-search input {
    min-height: 34px;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.standard-topbar-search kbd {
    min-width: 34px;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.standard-date-pill,
.standard-family-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(183,170,114,.12);
    background: rgba(255,255,255,.025);
    color: #d6d3c6;
    font-size: 13px;
}

.standard-page-content {
    max-width: 1680px;
    width: 100%;
    margin: 0 auto;
    gap: 16px;
}

.standard-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.standard-title-block {
    min-width: 0;
}

.standard-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.standard-title-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--accent-2);
    border: 1px solid rgba(209,193,137,.22);
    background: rgba(183,170,114,.06);
}

.standard-title-block h1,
.standard-title-block h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: #e1ded0;
    text-transform: none;
}

.standard-page-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.standard-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.standard-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.standard-metric-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 96px;
    padding: 16px;
    background: var(--v3-card-bg);
    border: 1px solid var(--v3-card-border);
    box-shadow: var(--v3-shadow-soft);
}

.metric-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(183,170,114,.14);
    background: rgba(183,170,114,.07);
    color: var(--accent-2);
    font-size: 19px;
}

.metric-value {
    font-size: 25px;
    line-height: 1;
    color: #ece7d4;
    font-weight: 700;
}

.metric-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

@media (min-width: 1025px) {
    .standard-sidebar.left-drawer {
        transform: none;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 32;
    }

    .standard-page-wrap {
        margin-left: var(--v3-sidebar-width);
    }

    .standard-menu-btn {
        display: none;
    }

    .standard-topbar {
        left: var(--v3-sidebar-width);
    }
}

/* V3 second-pass: colder, denser application shell. */
:root {
    --v3-sidebar-width: 236px;
    --v3-topbar-height: 60px;
    --v3-card-bg: linear-gradient(180deg, rgba(25, 29, 28, .96), rgba(15, 18, 18, .985));
    --v3-card-border: rgba(207, 197, 151, .10);
    --v3-card-border-strong: rgba(207, 197, 151, .24);
    --v3-muted-border: rgba(255,255,255,.055);
    --v3-shadow-soft: 0 14px 42px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.025);
}

body {
    background:
        radial-gradient(circle at 82% 0%, rgba(176, 166, 105, .07), transparent 24%),
        radial-gradient(circle at 0% 10%, rgba(89, 112, 100, .055), transparent 28%),
        linear-gradient(180deg, #0c1010 0%, #080a0a 100%);
}

body::before {
    opacity: .42;
    background-size: 80px 80px;
}

.standard-sidebar {
    background: linear-gradient(180deg, rgba(13,16,16,.99), rgba(8,10,10,1));
    border-right-color: rgba(207,197,151,.105);
}

.standard-sidebar-inner {
    padding: 15px 14px;
    gap: 16px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
    color: #c9bd83;
    background: rgba(207,197,151,.045);
    border-color: rgba(207,197,151,.30);
}

.brand-name {
    font-size: 25px;
    font-weight: 650;
    color: #d7cbb0;
}

.standard-nav.nav-accordion,
.standard-nav .nav-sublist {
    gap: 6px;
}

.standard-nav .nav-group summary,
.standard-nav .nav-link {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(221, 220, 208, .86);
}

.standard-nav .nav-sublist {
    padding: 7px 0 7px 22px;
}

.standard-nav .nav-sublist .nav-link {
    min-height: 34px;
    font-size: 13px;
    color: rgba(214,211,194,.76);
}

.standard-nav .nav-link:hover,
.standard-nav .nav-link.is-active,
.standard-nav .nav-group summary:hover {
    background: linear-gradient(90deg, rgba(129,139,78,.36), rgba(129,139,78,.10));
    border-color: rgba(207,197,151,.22);
    color: #f1ead3;
}

.standard-nav .nav-link.is-active {
    box-shadow: inset 3px 0 0 #a9a15f;
}

.standard-topbar {
    min-height: var(--v3-topbar-height);
    padding: 10px 18px;
    background: rgba(12,15,15,.92);
    border-bottom-color: rgba(207,197,151,.10);
    box-shadow: 0 1px 0 rgba(255,255,255,.025), 0 10px 22px rgba(0,0,0,.18);
}

.standard-topbar-search {
    flex-basis: 440px;
    height: 39px;
    border-color: rgba(207,197,151,.13);
    background: rgba(255,255,255,.025);
}

.standard-date-pill,
.standard-family-chip,
.logout-chip,
.topbar-user .chip {
    min-height: 36px;
    border-color: rgba(207,197,151,.12);
    background: rgba(255,255,255,.025);
    color: rgba(226,222,205,.88);
}

.standard-page-content {
    max-width: 1580px;
    padding: 18px 20px;
    gap: 14px;
}

.standard-page-header {
    align-items: center;
    padding: 4px 0 2px;
}

.standard-title-row {
    gap: 10px;
}

.standard-title-icon {
    width: 31px;
    height: 31px;
    border-color: rgba(207,197,151,.20);
    background: rgba(207,197,151,.045);
    color: #c9bd83;
}

.standard-title-block h1,
.standard-title-block h2 {
    font-size: 26px;
    color: #e1decf;
    font-weight: 650;
}

.standard-page-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(204, 199, 178, .70);
}

.standard-page-actions {
    gap: 8px;
}

.standard-metric-grid {
    gap: 12px;
}

.standard-metric-grid.is-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.standard-metric-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 82px;
    padding: 13px 14px;
    background: linear-gradient(180deg, rgba(25,29,28,.92), rgba(17,20,20,.98));
    border-color: rgba(207,197,151,.095);
    box-shadow: var(--v3-shadow-soft);
}

.metric-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-color: rgba(207,197,151,.14);
    background: rgba(129,139,78,.10);
    color: #c9bd83;
}

.metric-value {
    font-size: 22px;
    color: #ede8d5;
    font-weight: 650;
}

.metric-label {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(204,199,178,.70);
}

.standard-sidebar-status {
    padding-top: 14px;
    border-top-color: rgba(207,197,151,.10);
}

@media (max-width: 1380px) {
    .standard-metric-grid.is-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* V3 third-pass: menu returns to the V2 left slide-in drawer pattern. */
:root {
    --v3-sidebar-width: min(100vw, var(--left-drawer-width));
}

.standard-sidebar,
.standard-sidebar.left-drawer {
    width: min(100vw, var(--left-drawer-width));
    max-width: 438px;
}

.standard-sidebar.left-drawer {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 40;
    transform: translateX(-103%);
}

.standard-sidebar.left-drawer.is-open {
    transform: translateX(0);
}

.standard-page-wrap {
    margin-left: 0 !important;
}

.standard-menu-btn {
    display: inline-grid !important;
}

.standard-sidebar-close {
    display: inline-grid;
}

.standard-topbar {
    left: 0 !important;
}

.standard-topbar-left {
    flex: 0 0 auto;
}

.standard-topbar-user {
    flex: 1 1 auto;
    align-items: center;
    gap: 18px;
}

.standard-topbar-date,
.standard-alert-indicator,
.standard-account-block {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: rgba(226,222,205,.88);
}

.standard-topbar-date {
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.standard-topbar-date-icon {
    color: #c9bd83;
}

.standard-topbar-separator {
    color: rgba(204,199,178,.45);
}

.standard-alert-indicator {
    gap: 6px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: rgba(226,222,205,.88);
}

.standard-alert-indicator span {
    color: #c9bd83;
    font-size: 17px;
}

.standard-alert-indicator strong {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(207,197,151,.18);
    background: rgba(129,139,78,.18);
    color: #f1ead3;
    font-size: 11px;
    line-height: 1;
}

.standard-account-block {
    gap: 10px;
    min-width: 220px;
    justify-content: flex-end;
}

.standard-account-avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(207,197,151,.22);
    background: linear-gradient(180deg, rgba(207,197,151,.10), rgba(129,139,78,.10));
    color: #eee4c7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.standard-account-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.standard-account-copy strong,
.standard-account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standard-account-copy strong {
    color: #e5deca;
    font-size: 13px;
    font-weight: 700;
}

.standard-account-copy small {
    color: rgba(204,199,178,.62);
    font-size: 11px;
}

.standard-account-logout {
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid rgba(207,197,151,.12);
    background: rgba(255,255,255,.018);
    color: rgba(226,222,205,.70);
    font-size: 11px;
}

.standard-account-logout:hover,
.standard-account-logout:focus-visible {
    border-color: rgba(207,197,151,.26);
    background: rgba(129,139,78,.11);
    color: #f1ead3;
}

/* tighter metric cards; five should stay one row on normal desktop widths */
.standard-metric-grid {
    gap: 8px;
}

.standard-metric-grid.is-five {
    grid-template-columns: repeat(5, minmax(108px, 1fr));
}

.standard-metric-card {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 10px;
    gap: 8px;
}

.metric-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

.metric-value {
    font-size: 18px;
}

.metric-label {
    margin-top: 2px;
    font-size: 10.5px;
    line-height: 1.15;
}

@media (max-width: 920px) {
    .standard-metric-grid.is-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .standard-topbar-user {
        gap: 10px;
    }

    .standard-account-copy,
    .standard-account-logout,
    .standard-topbar-separator,
    .standard-topbar-date span:last-child {
        display: none;
    }

    .standard-account-block {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .standard-metric-grid.is-five {
        grid-template-columns: 1fr;
    }

    .standard-topbar-date {
        display: none;
    }
}

/* V3 fourth-pass: header brand and safer menu toggle hit area. */
.standard-sidebar-brand-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.standard-sidebar-brand-button:hover .brand-mark,
.standard-sidebar-brand-button:focus-visible .brand-mark,
.standard-topbar-brand:hover .brand-mark,
.standard-topbar-brand:focus-visible .brand-mark {
    border-color: rgba(207,197,151,.44);
    background: rgba(129,139,78,.14);
}

.standard-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.standard-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #d7cbb0;
    min-height: 38px;
}

.standard-topbar-brand .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.standard-topbar-brand .brand-name {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -.04em;
}

@media (max-width: 560px) {
    .standard-topbar-brand .brand-name {
        display: none;
    }

    .standard-account-block {
        min-width: 0;
    }
}

/* V3 fifth-pass: header cleanup and corrected menu brand background. */
.standard-sidebar-brand,
.standard-sidebar-brand-button,
.standard-sidebar-brand-button.brand-lockup {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.standard-sidebar-brand-button {
    color: #d8d0b9;
}

.standard-sidebar-brand-button .brand-mark {
    background: rgba(183,170,114,.055) !important;
}

.standard-sidebar-brand-button:hover,
.standard-sidebar-brand-button:focus-visible {
    background: transparent !important;
}

.standard-topbar-left {
    gap: 14px;
}

.standard-topbar-brand {
    gap: 13px;
}

.standard-account-block {
    padding-right: 12px;
}

/* V3 sixth-pass: Font Awesome icon normalization. */
.brand-mark i,
.nav-icon i,
.nav-caret i,
.metric-icon i,
.standard-title-icon i,
.standard-topbar-date-icon i,
.standard-alert-indicator i,
.status-icon i {
    display: inline-block;
    line-height: 1;
}

.nav-icon {
    width: 20px;
    display: inline-grid;
    place-items: center;
}

.nav-caret {
    display: inline-grid;
    place-items: center;
}

.nav-caret i {
    font-size: 10px;
}

.standard-menu-btn i,
.standard-sidebar-close i,
.standard-drawer-close i,
.btn i {
    line-height: 1;
}

.standard-topbar-brand .brand-name,
.standard-sidebar-brand-button .brand-name {
    margin-left: 1px;
}

/* V3 seventh-pass: screenshot-style metric cards. */
.standard-metric-grid.is-two {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.standard-metric-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid rgba(169, 161, 95, .70);
}

.standard-metric-card .metric-icon {
    border: 0 !important;
    box-shadow: none !important;
    background: rgba(169, 161, 95, .10);
    color: #c9bd83;
    border-radius: 6px !important;
}

.metric-card-olive { border-left-color: #a7a15d; }
.metric-card-olive .metric-icon { color: #c9bd83; background: rgba(167, 161, 93, .13); }
.metric-card-green { border-left-color: #7fa66b; }
.metric-card-green .metric-icon { color: #9ed088; background: rgba(127, 166, 107, .13); }
.metric-card-blue { border-left-color: #5e91bc; }
.metric-card-blue .metric-icon { color: #81b8e4; background: rgba(94, 145, 188, .13); }
.metric-card-red { border-left-color: #b84c4c; }
.metric-card-red .metric-icon { color: #dd6c6c; background: rgba(184, 76, 76, .13); }
.metric-card-orange { border-left-color: #c28445; }
.metric-card-orange .metric-icon { color: #e0a35c; background: rgba(194, 132, 69, .13); }

.metric-mini-star {
    color: #dd6c6c;
    font-size: .64em;
    vertical-align: .18em;
    margin-left: 1px;
}

.standard-permission-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.permission-role-card {
    border: 1px solid rgba(207, 197, 151, .10);
    border-left: 4px solid rgba(169, 161, 95, .70);
    background: rgba(0, 0, 0, .14);
    padding: 12px;
}

.permission-role-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: #e8e2cf;
    font-size: 13px;
}

.permission-role-card span {
    display: block;
    color: rgba(204, 199, 178, .68);
    font-size: 11px;
    margin-bottom: 8px;
}

.permission-role-card ul {
    margin: 0;
    padding-left: 16px;
    color: rgba(224, 220, 205, .82);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 840px) {
    .standard-metric-grid.is-two,
    .standard-permission-matrix {
        grid-template-columns: 1fr;
    }
}

/* V3 eighth-pass: permission drawer matrix by permission type. */
.standard-permission-stack {
    display: grid;
    gap: 10px;
}

.permission-type-card {
    border: 1px solid rgba(207, 197, 151, .105);
    border-left: 4px solid rgba(169, 161, 95, .70);
    background: rgba(0, 0, 0, .14);
}

.permission-type-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(207, 197, 151, .085);
    background: rgba(255, 255, 255, .014);
}

.permission-type-header h4 {
    margin: 0;
    color: #e8e2cf;
    font-size: 13px;
    font-weight: 700;
}

.permission-type-header span {
    display: block;
    margin-top: 2px;
    color: rgba(204, 199, 178, .56);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.permission-type-header p {
    margin: 0;
    color: rgba(204, 199, 178, .70);
    font-size: 12px;
    line-height: 1.35;
}

.permission-member-list {
    display: grid;
}

.permission-member-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border-top: 1px solid rgba(207, 197, 151, .055);
}

.permission-member-row:first-child {
    border-top: 0;
}

.permission-member-name {
    color: rgba(232, 226, 207, .90);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-member-role {
    color: rgba(204, 199, 178, .58);
    font-size: 11px;
}

.permission-checkbox {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, .018);
    font-size: 11px;
}

.permission-member-row.is-on .permission-checkbox {
    color: #9ed088;
    background: rgba(127, 166, 107, .11);
}

.permission-member-row.is-off .permission-checkbox {
    color: #dd6c6c;
    background: rgba(184, 76, 76, .10);
}

/* V3 ninth-pass: extra compact metric variants. */
.standard-metric-grid.is-three {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.metric-card-yellow { border-left-color: #d6bf54; }
.metric-card-yellow .metric-icon { color: #f0d76a; background: rgba(214, 191, 84, .13); }

/* V3 standard metric behavior: desktop/laptop cards reserve five equal slots, even when fewer cards are present. */
@media (min-width: 1024px) {
    .standard-metric-grid,
    .standard-metric-grid.is-two,
    .standard-metric-grid.is-three,
    .standard-metric-grid.is-five {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Header/menu brand typography: Chakra Petch Bold for LifeHUD wordmark. */
.standard-topbar-brand .brand-name,
.standard-sidebar-brand-button .brand-name,
.brand-lockup .brand-name {
    font-family: "Chakra Petch", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}


/* LifeHUD wordmark: Chakra Petch Bold in top header and menu. */
.standard-topbar-brand .brand-name,
.standard-sidebar-brand-button .brand-name,
.brand-lockup .brand-name {
    font-family: "Chakra Petch", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
}
