@font-face {
    font-family:Jost;
    src:url('../fonts/jost-regular.ttf');
    font-weight:400;
    font-display:swap
}
@font-face {
    font-family:Jost;
    src:url('../fonts/jost-semibold.ttf');
    font-weight:500 700;
    font-display:swap
}
:root {
    --gold:#B6995B;
    --card-surface:#181817;
    --line:#363128;
    --muted:#bcb7ad;
    --error:#ffc1b3
}
* {
    box-sizing:border-box
}
body {
    margin:0;
    background:#000;
    color:#fff;
    font:16px/1.55 Jost,sans-serif
}
a {
    color:inherit;
    text-decoration:none
}
button,input,select {
    font:inherit;
    border-radius:3px;
    min-height:46px
}
button {
    cursor:pointer
}
input,select {
    width:100%;
    min-width:0;
    background:#090908;
    color:#fff;
    border:1px solid #645945;
    padding:11px 13px
}
input:disabled {
    color:var(--muted);
    background:#1b1915
}
button:disabled,select:disabled {
    opacity:.6;
    cursor:wait
}
:focus-visible {
    outline:2px solid var(--gold);
    outline-offset:3px
}
[hidden] {
    display:none!important
}
h1,h2,h3,p {
    margin:0
}
h1,h2,h3 {
    font-weight:600
}
h1 {
    font-size:30px;
    line-height:1.2;
    color:var(--gold);
    overflow-wrap:anywhere
}
h2 {
    font-size:21px;
    line-height:1.35;
    color:#dfcda7
}
.muted {
    color:var(--muted);
    font-size:14px
}
.intro {
    margin:12px 0 28px
}
.eyebrow {
    color:var(--gold);
    font-size:10px;
    letter-spacing:2px;
    margin-bottom:10px
}
.button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-height:46px;
    padding:11px 20px;
    border:1px solid var(--gold);
    background:var(--gold);
    color:#080706;
    border-radius:3px;
    font-size:14px;
    font-weight:600;
    line-height:1.4;
    text-align:center
}
.button:hover {
    background:#cfb57d
}
.button.secondary {
    background:transparent;
    color:#e7d7b5;
    border-color:#6b5938
}
.button.secondary:hover {
    background:#292215
}
.button.small {
    padding:10px 12px;
    min-height:44px;
    font-size:12px
}
.full-width {
    width:100%
}
.text-link {
    color:#dbc28f;
    font-size:14px
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap
}
.skip-link {
    position:fixed;
    top:-80px;
    left:16px;
    padding:12px;
    background:var(--gold);
    color:#000;
    z-index:100
}
.skip-link:focus {
    top:12px
}
.app-shell {
    min-height:100dvh
}
.main-shell {
    display:flex;
    flex-direction:column;
    min-height:100dvh;
    min-width:0
}
.menu-toggle {
    width:44px;
    min-height:44px;
    flex-shrink:0;
    background:transparent;
    color:#fff;
    border:1px solid #514b3e;
    font-size:20px
}
main {
    margin:0 auto;
    padding:28px 20px 36px
}
.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:28px;
    flex-wrap:wrap
}
.page-heading .muted {
    margin-top:10px
}
.panel h2 {
    margin-bottom:12px
}
.welcome-panel {
    background:var(--card-surface);
    padding:clamp(16px, 2.5vw, 26px);
    border-radius:14px;
}
.welcome-panel h1 {
    font-size:clamp(21px, 3vw, 28px);
    line-height:1.15;
    color:#f2e6cb;
    margin-bottom:6px;
    overflow-wrap:anywhere;
}
.welcome-panel p {
    color:#d1cdc3;
    font-size:14px;
}
.dashboard-users {
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:6px 16px;
    width:min(100%, 320px);
    margin-top:16px;
    padding:20px 24px;
    border-radius:14px;
    background:var(--card-surface);
    color:#d1cdc3;
}
.dashboard-users-icon {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    margin-bottom:6px;
    border-radius:12px;
    background:#b6995b26;
    color:#e7cc8c;
}
.dashboard-users-arrow {
    justify-self:end;
    color:#e7cc8c;
}
.dashboard-users strong {
    grid-column:1 / -1;
    color:#f2e6cb;
    font-size:36px;
    line-height:1.2;
}
.dashboard-users:hover,.dashboard-users:focus-visible {
    background:#222221;
}
@media(max-width:767px) {
    .dashboard-users {
        width:50%;
        padding:14px;
    }
}
.page-footer {
    padding:20px;
    margin-top:auto;
    border:0;
    color:var(--muted);
    font-size:11px;
    text-align:center;
}
.nav-backdrop {
    position:fixed;
    inset:0;
    background:#000b;
    z-index:35;
    border:0;
    width:100%;
    height:100%;
    border-radius:0;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .24s ease, visibility 0s linear .24s
}
.menu-open {
    overflow:hidden
}
.menu-open .sidebar {
    transform:translateX(0)
}
.toast {
    position:fixed;
    bottom:24px;
    left:20px;
    right:20px;
    max-width:480px;
    margin:auto;
    z-index:60;
    background:#242015;
    border:1px solid var(--gold);
    padding:16px;
    border-radius:3px;
    box-shadow:0 8px 30px #0008;
    font-size:14px
}
.toast.is-error {
    border-color:var(--error)
}
.field {
    display:flex;
    flex-direction:column;
    gap:7px;
    margin-bottom:20px;
    min-width:0
}
.field label {
    font-size:14px
}
.field-error {
    color:var(--error);
    font-size:12px
}
.field-error:empty {
    display:none
}
[aria-invalid=true] {
    border-color:var(--error)
}
.form-errors {
    background:#2b1613;
    color:#ffd5cc;
    border:1px solid #b77c6e;
    padding:14px;
    margin-bottom:24px;
    font-size:14px;
    overflow-wrap:anywhere
}
.form-errors>div {
    margin-top:4px
}
.form-grid {
    display:grid;
    gap:0 22px;
    min-width:0
}
.form-actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    border-top:1px solid var(--line);
    padding-top:24px;
    margin-top:12px
}
.form-section-title {
    margin-top:26px
}
.password-hint {
    margin-bottom:20px
}
.permissions-box {
    margin:8px 0 0;
    border:1px solid #5e5038;
    border-radius:3px;
    padding:18px;
    min-width:0
}
.permissions-box legend {
    padding:0 8px;
    color:#e1ceaa;
    font-size:14px
}
.checkbox-label {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:46px;
    font-size:14px;
    cursor:pointer
}
.checkbox-label input {
    accent-color:var(--gold);
    width:20px;
    height:20px;
    min-height:20px;
    flex-shrink:0
}
.permissions-box small {
    display:block
}
.account-role {
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:24px;
    padding-top:3px
}
.login-page {
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:32px 20px;
    background:radial-gradient(ellipse at 50% 5%,#282113 0,transparent 60%)
}
.login-brand {
    text-align:center;
    margin-bottom:30px
}
.login-brand img {
    display:block;
    width:200px;
    max-width:100%;
    height:auto;
    margin-inline:auto;
    object-fit:contain
}
.login-card {
    width:100%;
    max-width:440px;
    padding:28px 24px;
    background:var(--card-surface);
    border:0;
    border-radius:3px
}
.login-card .button {
    margin-top:6px
}
.login-help {
    font-size:12px;
    color:var(--muted);
    text-align:center;
    margin-top:22px
}
.users-heading {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 12px;
}
.users-heading .button {
    grid-column:2;
    grid-row:1 / span 2;
}
.users-heading .muted {
    margin-top:0;
}
@media(max-width:599px) {
    .users-heading {
        gap:6px 12px;
        margin-bottom:16px;
    }
    .users-heading h1 {
        font-size:26px;
        line-height:1.15;
    }
    .users-heading .button {
        grid-row:1;
        width:44px;
        height:44px;
        min-height:44px;
        padding:0;
        border-radius:50%;
        font-size:26px;
        line-height:1;
    }
    .users-add-label {
        display:none;
    }
    .users-heading .muted {
        grid-column:1 / -1;
        font-size:14px;
        line-height:1.4;
    }
}
.users-count {
    display:flex;
    align-items:center;
    gap:16px;
    width:min(100%, 280px);
    margin-bottom:20px;
    padding:18px 20px;
    border-radius:14px;
    background:var(--card-surface);
    color:#d1cdc3;
    font-size:13px;
}
.users-count .dashboard-users-icon {
    flex-shrink:0;
    margin:0;
}
.users-count strong {
    display:block;
    color:#f2e6cb;
    font-size:30px;
    line-height:1.15;
}
.filter-bar {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:end;
    gap:12px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
}
.filter-bar .field {
    min-width:0;
    margin:0;
}
.filter-bar .search-field {
    grid-column:1 / -1;
}
.filter-bar .button {
    justify-self:start;
}
.main-shell .user-filter-trigger {
    display:none;
}
.main-shell .panel.user-filter-sheet {
    position:fixed;
    inset:auto 0 0;
    box-sizing:border-box;
    width:100%;
    max-width:none;
    height:55dvh;
    max-height:100dvh;
    margin:0;
    padding:20px 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:20px 20px 0 0;
    color:#fff;
}
.user-filter-sheet::backdrop {
    background:#0009;
}
body:has(.user-filter-sheet[open]) {
    overflow:hidden;
}
.user-filter-sheet-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.user-filter-sheet-heading h2 {
    margin:0;
}
.user-filter-sheet-heading .button,
.main-shell .user-filter-trigger {
    width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    border-radius:50%;
}
.user-filter-sheet .filter-bar {
    border-bottom:0;
    padding-bottom:0;
}
@media(max-width:599px) {
    .main-shell .has-filter-sheet > .user-filter-trigger {
        display:flex;
        margin-inline-start:auto;
    }
    .has-filter-sheet > .filter-bar {
        display:none;
    }
}
@media(prefers-reduced-motion:no-preference) {
    .user-filter-sheet[open] {
        animation:user-sheet-in .22s ease-out;
    }
}
@keyframes user-sheet-in {
    from { transform:translateY(100%); }
    to { transform:translateY(0); }
}
.user-search-control {
    position:relative;
}
.user-search-control .icon {
    position:absolute;
    inset-inline-start:12px;
    top:50%;
    transform:translateY(-50%);
    color:var(--muted);
    pointer-events:none;
}
.user-search-control input {
    padding-inline-start:40px;
}
.listing-summary {
    font-size:13px;
    color:var(--muted);
    padding:14px 0;
}
.users-table {
    width:100%;
    border-collapse:collapse;
    font-size:14px
}
.users-table thead {
    display:none
}
.users-table tbody {
    display:grid;
    gap:16px
}
.users-table tr {
    display:block;
    border:1px solid var(--line);
    padding:6px 16px;
    background:#0b0b0a;
    border-radius:3px
}
.users-table td {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    padding:12px 0;
    border-bottom:1px solid #282620;
    overflow-wrap:anywhere
}
.users-table td::before {
    content:attr(data-label);
    font-size:12px;
    color:var(--muted);
    min-width:68px
}
.users-table td:last-child {
    border:0
}
.user-identity {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.user-avatar {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:40px;
    height:40px;
    border-radius:50%;
    background:#b6995b26;
    color:#e7cc8c;
    font-size:16px;
    font-weight:600;
    text-transform:uppercase;
}
.user-details {
    min-width:0;
    overflow-wrap:anywhere;
}
.users-table td strong {
    color:#f5f2ea;
    font-size:15px;
    font-weight:600
}
.user-email {
    display:block;
    font-size:12px;
    color:var(--muted);
    overflow-wrap:anywhere
}
.row-actions {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end
}
.badge {
    border:1px solid #5d5143;
    color:#d9c4aa;
    padding:3px 8px;
    border-radius:3px;
    font-size:11px;
    white-space:nowrap
}
.badge-active {
    border-color:#42664b;
    color:#b5d9be;
    background:#16261a
}
.pagination {
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
    margin-top:22px;
    padding-top:20px;
    border-top:1px solid var(--line);
    font-size:12px;
    color:var(--muted)
}
.empty-state {
    padding:45px 15px;
    text-align:center;
    color:var(--muted)
}
#user-list[aria-busy=true] {
    opacity:.55;
    pointer-events:none
}
@media(min-width:600px) {
    main {
        padding:34px
    }
    .page-footer {
        padding-inline:34px
    }
    .form-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .login-card {
        padding:36px
    }
}
@media(min-width:961px) {
    .main-shell {
        margin-left:264px
    }
    .menu-toggle {
        display:none
    }
    main {
        padding:36px 40px
    }
    .page-footer {
        padding-inline:40px
    }
    .menu-open {
        overflow:auto
    }
}
@media(min-width:680px) and (max-width:960px), (min-width:1100px) {
    .filter-bar {
        grid-template-columns:minmax(0,1fr) repeat(2,minmax(130px,160px)) auto;
    }
    .filter-bar .search-field {
        grid-column:auto;
    }
}
@media(min-width:1200px) {
    .users-table thead {
        display:table-header-group
    }
    .users-table tbody {
        display:table-row-group
    }
    .users-table tr {
        display:table-row;
        border:0;
        background:transparent;
        padding:0
    }
    .users-table tbody tr:hover {
        background:#20201f;
    }
    .users-table th {
        background:#20201f;
        font-size:11px;
        text-transform:uppercase;
        letter-spacing:.8px;
        color:var(--muted);
        text-align:left;
        padding:14px 10px;
        border-bottom:1px solid #5b4c30;
        font-weight:400
    }
    .users-table th:first-child {
        border-radius:8px 0 0 8px;
    }
    .users-table th:last-child {
        border-radius:0 8px 8px 0;
    }
    .users-table td {
        display:table-cell;
        padding:18px 10px;
        vertical-align:middle;
        border-bottom:1px solid var(--line);
        max-width:260px
    }
    .users-table td::before {
        display:none
    }
    .users-table td:last-child {
        border-bottom:1px solid var(--line)
    }
    .row-actions {
        justify-content:flex-start
    }
    .user-email {
        margin-top:4px
    }
}
/* Shared signed-in panels and controls. */
.main-shell .panel {
    --line:#2b2b29;
    min-width:0;
    background:var(--card-surface);
    border:0;
    border-radius:16px;
    padding:clamp(14px, 3vw, 28px);
    color-scheme:dark;
}
.main-shell .panel input:not([type=checkbox]),.main-shell .panel select {
    background:#232322;
    border-color:transparent;
    border-radius:8px;
}
.main-shell .panel input[aria-invalid=true],.main-shell .panel select[aria-invalid=true] {
    border-color:var(--error);
}
.main-shell .panel .button.secondary {
    background:#292928;
    border-color:transparent;
    color:#e1ded6;
}
.main-shell .panel .button.secondary:hover {
    background:#343431;
}
.main-shell .panel .permissions-box {
    background:#20201f;
    border:0;
    border-radius:12px;
    margin-top:16px;
}
.main-shell .panel .permissions-box legend {
    padding-inline:0;
    color:#e1ded6;
}
.main-shell .panel .form-actions,.main-shell .panel .pagination {
    border-top:0;
}
.main-shell .panel .badge {
    border:0;
    border-radius:999px;
    background:#2d2925;
    padding:4px 10px;
}
.main-shell .panel .badge-active {
    background:#1c3022;
}
.users-table td,.users-table th {
    border-bottom-color:var(--line);
}
@media(max-width:1199px) {
    .users-table tr {
        border:0;
        border-radius:12px;
        background:#20201f;
    }
    .users-table td:first-child {
        padding-block:14px;
    }
    .users-table td:first-child::before {
        display:none;
    }
}
@media(prefers-reduced-motion:reduce) {
    * {
        transition:none!important;
        scroll-behavior:auto!important
    }
}
/* Login loading state uses the existing AJAX helper's aria-busy attribute. */
.button-loading {
    display:none;
    align-items:center;
    justify-content:center;
    gap:8px
}
.button[aria-busy="true"] .button-idle {
    display:none
}
.button[aria-busy="true"] .button-loading {
    display:inline-flex
}
.button-spinner {
    display:inline-block;
    width:13px;
    height:13px;
    border:2px solid currentColor;
    border-right-color:transparent;
    border-radius:50%;
    animation:button-spin .65s linear infinite;
    flex-shrink:0
}
@keyframes button-spin {
    to {
        transform:rotate(360deg)
    }
}
@media(prefers-reduced-motion:reduce) {
    .button-spinner {
        animation:none
    }
}
/* Extra bottom space places the centered card slightly higher on phones. */
@media(max-width:599px) {
    .login-page {
        padding-bottom:96px
    }
}
/* Compact sidebar: charcoal navigation, GTT identity and pinned account controls. */
.icon {
    width:19px;
    height:19px;
    flex-shrink:0;
    vertical-align:middle
}
.sidebar {
    width:252px;
    max-width:88vw;
    position:fixed;
    inset:8px auto 8px 8px;
    z-index:40;
    background:#0c0c0b;
    border:1px solid #191918;
    border-radius:24px;
    display:flex;
    flex-direction:column;
    padding:14px 12px 10px;
    transform:translateX(calc(-100% - 8px));
    transition:transform .32s cubic-bezier(.22,1,.36,1);
    will-change:transform;
    overflow-y:auto;
    overscroll-behavior:contain
}
.sidebar-heading {
    display:flex;
    align-items:center;
    gap:4px;
    position:relative;
    margin-bottom:18px;
    min-height:88px
}
.sidebar-brand {
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    flex:1;
    justify-content:center;
    padding:0 4px
}
.sidebar-brand img {
    width:130px;
    height:78px;
    object-fit:contain;
    flex-shrink:0
}
.sidebar-close {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:36px;
    min-height:44px;
    color:var(--gold);
    background:none;
    border:0;
    flex-shrink:0
}
.sidebar-close {
    color:#c9c7c1;
    position:absolute;
    top:0;
    right:0;
    min-width:32px;
    padding:0
}
.sidebar-search {
    position:relative;
    display:flex;
    align-items:center;
    margin:0 2px 12px;
    background:#20201f;
    border-radius:12px
}
.sidebar-search>.icon {
    position:absolute;
    left:12px;
    width:17px;
    height:17px;
    color:#aaa9a3;
    pointer-events:none
}
.sidebar-search input {
    min-height:44px;
    padding:10px 35px 10px 37px;
    font-size:13px;
    background:transparent;
    border:1px solid transparent;
    border-radius:12px;
    color:#fff
}
.sidebar-search input::placeholder {
    color:#b2b0a9;
    opacity:1
}
.sidebar-search input:focus {
    border-color:transparent;
    outline:none;
    box-shadow:none
}
.sidebar-search input::-webkit-search-cancel-button {
    cursor:pointer
}
.sidebar-search kbd {
    position:absolute;
    right:12px;
    border:1px solid #57544c;
    border-radius:4px;
    width:15px;
    height:18px;
    font:11px/16px Jost,sans-serif;
    text-align:center;
    color:#b3b0a7;
    pointer-events:none
}
.sidebar-search:focus-within kbd {
    display:none
}
.sidebar-nav {
    display:flex;
    flex-direction:column;
    gap:3px
}
.nav-item {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:44px;
    padding:10px 12px;
    border:0;
    border-radius:12px;
    color:#d9d8d4;
    font-size:14px;
    line-height:1.4
}
.nav-item .icon {
    color:#aaa9a3;
    width:18px;
    height:18px
}
.nav-item.active {
    background:#2b2b29;
    color:#fff
}
.nav-item.active .icon {
    color:#fff
}
.nav-item:hover {
    background:#222220;
    color:#fff
}
.sidebar-empty {
    padding:15px 12px;
    color:var(--muted);
    font-size:12px
}
.sidebar-footer {
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:auto;
    padding:14px 4px 0;
    border-top:1px solid #292824
}
.sidebar-account {
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    flex:1;
    min-height:44px;
    border-radius:8px
}
.account-avatar {
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#2b2b29;
    color:#d1cec4;
    font-size:12px;
    flex-shrink:0
}
.account-copy {
    display:flex;
    flex-direction:column;
    min-width:0
}
.account-copy strong {
    display:block;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    line-height:1.5
}
.account-copy small {
    font-size:10px;
    color:#aaa79f;
    line-height:1.6
}
.sidebar-logout {
    margin:0;
    flex-shrink:0
}
.logout-button {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
    padding:0;
    color:var(--gold);
    background:transparent;
    border:0;
    border-radius:8px
}
.logout-button .icon {
    width:18px;
    height:18px
}
.logout-button:hover {
    background:#232018
}
@media(min-width:961px) {
    .sidebar {
        transform:none
    }
    .sidebar-close {
        display:none
    }
}

@media(prefers-reduced-motion:reduce) {
    .sidebar {
        transition:none
    }
}

.menu-open .nav-backdrop {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition-delay:0s;
}
.keyboard-navigation .sidebar-search input:focus {
    outline:1px solid #77766f;
    outline-offset:2px;
}


.main-shell > main {
    flex:1;
    width:100%;
}
.mobile-header {
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 48px;
    align-items:center;
    padding:6px 10px;
    min-height:70px;
    background:#18181a;
    border-bottom:1px solid #29292b;
    border-radius:0 0 18px 18px;
}
.mobile-header .menu-toggle {
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:transparent;
    padding:0;
    width:48px;
    min-height:48px;
}
.mobile-header .menu-toggle .icon {
    width:24px;
    height:24px;
}
.mobile-header-logo {
    justify-self:center;
    line-height:0;
}
.mobile-header-logo img {
    display:block;
    width:88px;
    height:52px;
    object-fit:contain;
}
@media(max-width:960px) {
    .sidebar {
        width:300px;
        max-width:calc(100% - 32px);
        inset:12px auto 12px 12px;
        background:#101010;
        border-color:#242424;
        box-shadow:0 16px 40px #0008;
        opacity:0;
        transform:translateX(calc(-100% - 12px));
        transition:transform .36s cubic-bezier(.22,1,.36,1), opacity .22s ease;
    }
    .menu-open .sidebar {
        opacity:1;
        transform:translateX(0);
    }
    .sidebar-close {
        min-width:44px;
    }
    .sidebar-close .icon {
        width:23px;
        height:23px;
    }
    .nav-backdrop {
        background:#0009;
    }
}
@media(max-width:960px) and (prefers-reduced-motion:reduce) {
    .sidebar,.nav-backdrop {
        transition:none;
    }
}
@media(min-width:961px) {
    .mobile-header { display:none; }
}

/* Shared page/AJAX activity line; it never blocks clicks or shifts the layout. */
.page-loader {
    position:fixed;
    inset:0 0 auto;
    height:4px;
    z-index:1000;
    background:rgba(182,153,91,.2);
    opacity:0;
    pointer-events:none;
    overflow:hidden;
    transition:opacity .18s ease;
}
.page-loader.is-loading { opacity:1; transition:none; }
.page-loader span {
    display:block;
    width:100%;
    height:100%;
    transform:scaleX(1);
    transform-origin:left;
    background:linear-gradient(90deg, #b6995b, #e7cc8c);
    box-shadow:0 0 8px rgba(217,184,109,.7);
}
.page-loader.is-loading span { animation:page-loading 1.4s ease-out both; }
@keyframes page-loading {
    from { transform:scaleX(.18); }
    to { transform:scaleX(.85); }
}
@media(prefers-reduced-motion:reduce) {
    .page-loader.is-loading span { animation:none; }
    .page-loader { transition:none; }
}
