/* SA Roleplay ? UCP design system
   Tokens below are the single source of truth. Components must not hardcode
   colors, spacing, or type sizes. */

:root {
    /* Surfaces */
    --bg-app: #0B0D12;
    --bg-surface: #12151C;
    --bg-surface-2: #171B24;
    --bg-inset: #0E1015;

    /* Borders ? separators, not container outlines */
    --border-hairline: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    /* Text */
    --text-primary: #F4F5F7;
    --text-secondary: #9CA3AF;
    --text-muted: #5B6270;

    /* Single brand accent (WP, logo mark) */
    --accent: #D9A441;
    --accent-hover: #C7922F;
    --accent-soft: rgba(217, 164, 65, 0.12);
    --accent-ink: #17130A;
    --ui-action: #0088cc;
    --ui-action-hover: #0070a8;
    --ui-action-border: #006699;
    --ui-action-soft: rgba(0, 136, 204, 0.16);
    --ui-tab: #458cff;

    /* Status semantics only */
    --status-good: #34D399;
    --status-warn: #F59E0B;
    --status-bad: #EF4444;
    --status-good-soft: rgba(52, 211, 153, 0.12);
    --status-warn-soft: rgba(245, 158, 11, 0.12);
    --status-bad-soft: rgba(239, 68, 68, 0.1);

    /* 4px spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    --radius-card: 8px;
    --radius-control: 6px;
    --shadow-raised: 0 12px 32px rgba(0, 0, 0, 0.4);

    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --sidebar-w: 300px;
    --topbar-h: 100px;
    --page-header-h: 72px;
    --skyline: url('../default/ucp/header-ambrosia.jpg?v=1');

    /* Panel chrome tokens */
    --ucp-panel: #2e353e;
    --ucp-app: #1d2127;
    --ucp-table-head: #242830;
    --ucp-text-muted: #808697;
    --ucp-link: var(--ui-action);
    --ucp-tab-underline: var(--ui-tab);

        /* Legacy aliases ? keep older selectors resolving to the new palette */
    --gd-bg: var(--bg-app);
    --gd-bg-elevated: var(--bg-inset);
    --gd-surface: var(--bg-surface);
    --gd-surface-hover: var(--bg-surface-2);
    --gd-border: var(--border-hairline);
    --gd-border-strong: var(--border-strong);
    --gd-text: var(--text-primary);
    --gd-text-muted: var(--text-secondary);
    --gd-text-dim: var(--text-muted);
    --gd-accent: var(--accent);
    --gd-accent-soft: var(--accent-soft);
    --gd-accent-hover: var(--accent-hover);
    --gd-success: var(--status-good);
    --gd-danger: var(--status-bad);
    --gd-info: var(--accent);
    --gd-sidebar-w: var(--sidebar-w);
    --gd-topbar-h: var(--topbar-h);
    --gd-radius: var(--radius-card);
    --gd-radius-sm: var(--radius-control);
    --gd-shadow: var(--shadow-raised);
    --gd-font: var(--font-ui);
    --gd-font-display: var(--font-ui);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.gd-body {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    background: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.gd-body a {
    color: var(--ui-action);
    text-decoration: none;
}

.gd-body a:hover {
    color: var(--ui-action-hover);
    text-decoration: underline;
}

/* Kill buggy UA/Bootstrap focus rings (mouse click); keep a tight keyboard ring */
.gd-body a:focus,
.gd-body button:focus,
.gd-body input:focus,
.gd-body select:focus,
.gd-body textarea:focus,
.gd-body summary:focus,
.gd-body [tabindex]:focus {
    outline: none;
}

.gd-body a:focus-visible,
.gd-body button:focus-visible,
.gd-body input:focus-visible,
.gd-body select:focus-visible,
.gd-body textarea:focus-visible,
.gd-body summary:focus-visible,
.gd-body [tabindex]:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.35);
    outline-offset: -1px;
}

.gd-app {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.gd-topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 0;
    background-color: #0b0d12;
    background-image:
        linear-gradient(90deg, rgba(11, 13, 18, 0.88) 0%, rgba(11, 13, 18, 0.45) 42%, rgba(11, 13, 18, 0.55) 100%),
        linear-gradient(180deg, rgba(11, 13, 18, 0.2) 0%, rgba(11, 13, 18, 0.72) 100%),
        var(--skyline);
    background-size: cover;
    background-position: center 35%;
    position: sticky;
    top: 0;
    z-index: 1020;
    animation: gd-header-in 0.4s ease-out;
}

@keyframes gd-header-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.gd-topbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-6);
    min-width: var(--sidebar-w);
    align-self: stretch;
}

.gd-topbar-brand a {
    display: flex;
    align-items: center;
}

.gd-topbar-brand a:hover { text-decoration: none; }

.gd-topbar-brand img {
    height: 88px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.gd-topbar-brand-text {
    display: none;
}

.gd-topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
}

.gd-topbar-balances {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0.35rem;
}

.gd-currency {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-control);
    background: rgba(11, 13, 18, 0.6);
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.gd-currency strong {
    color: var(--text-primary);
    font-weight: 650;
}

.gd-currency span {
    color: var(--text-muted);
    font-family: var(--font-ui, Inter, system-ui, sans-serif);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gd-currency i { color: var(--text-muted); }
.gd-currency--points { color: var(--text-primary); }
.gd-currency--points i { color: #c5cad3; }
.gd-currency--ap i { color: var(--ui-action, #0088cc); }
.gd-currency--cash { color: var(--text-primary); }

.gd-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-control);
    border: none;
    background: rgba(11, 13, 18, 0.6);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.gd-icon-btn:hover {
    background: rgba(23, 27, 36, 0.9);
    color: var(--text-primary);
}

.gd-user-menu { position: relative; }

.gd-user-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
    border-radius: var(--radius-control);
    background: transparent;
    cursor: pointer;
    color: var(--text-primary);
}

.gd-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #151a22;
    color: #7ec8e3;
    border: 1px solid rgba(46, 196, 224, 0.28);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    user-select: none;
    pointer-events: none;
}

.gd-user-avatar i {
    font-size: 0.85rem;
    color: inherit;
}

.gd-user-trigger img {
    display: none;
}

.gd-user-trigger .gd-user-name {
    font-size: 13px;
    font-weight: 600;
}

.gd-user-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.25rem;
    row-gap: 0;
    min-width: 0;
}

.gd-user-meta .gd-user-role {
    flex-basis: 100%;
}

.gd-user-trigger .gd-user-role {
    font-size: 11px;
    color: var(--text-secondary);
}

.gd-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + var(--space-2));
    min-width: 200px;
    background: var(--bg-surface-2);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-raised);
    padding: var(--space-1);
    z-index: 200;
}

.gd-user-menu.open .gd-user-dropdown { display: block; }

.gd-user-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-control);
    color: var(--text-secondary);
    font-size: 14px;
}

.gd-user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    text-decoration: none;
}

.gd-user-dropdown hr {
    border: 0;
    border-top: 1px solid var(--border-hairline);
    margin: var(--space-1) 0;
}

.gd-menu-toggle {
    display: none;
    margin-left: var(--space-3);
    align-self: center;
}

/* ??? Frame ??? */
.gd-frame {
    display: flex;
    flex: 1;
    min-height: calc(100vh - var(--topbar-h));
}

.gd-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-app);
    color: #777;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1010;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.gd-sidebar-header {
    position: relative;
    flex-shrink: 0;
    height: 50px;
    background: var(--bg-app);
}

.gd-sidebar-header__search {
    height: 50px;
    padding: 0 73px 0 10px;
    display: flex;
    align-items: center;
}

.gd-sidebar-search {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #abb4be;
    font-size: 0.8rem;
}

.gd-sidebar-search::placeholder {
    color: #465162;
}

.gd-sidebar-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.03);
}

.gd-sidebar-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 73px;
    height: 50px;
    border: 0;
    border-radius: 0 0 0 5px;
    background: transparent;
    color: #c3c3c3;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    outline: none;
    box-shadow: none;
}

.gd-sidebar-toggle:hover {
    color: #ccc;
    background: rgba(255, 255, 255, 0.03);
}

.gd-sidebar-toggle:focus,
.gd-sidebar-toggle:focus-visible,
.gd-sidebar-toggle:active {
    outline: none;
    box-shadow: none;
    color: #ccc;
}

.gd-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 24px;
    margin-right: 0;
    scrollbar-width: thin;
    scrollbar-color: #3a424c transparent;
}

.gd-sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.gd-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gd-sidebar-scroll::-webkit-scrollbar-thumb {
    background: #3a424c;
    border-radius: 4px;
    border: 2px solid transparent;
}

.gd-sidebar-label { display: none; }

.gd-nav {
    list-style: none;
    margin: 0 5px 0 0;
    padding: 0;
}

.gd-nav > li,
.gd-nav li {
    width: 100%;
    position: relative;
    margin: 0;
}

.gd-nav a.gd-nav-link,
.gd-nav a {
    display: block;
    color: #abb4be;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 0;
    background: transparent;
}

.gd-nav > li > a.gd-nav-link {
    padding: 12px 25px;
}

.gd-nav > li > a.gd-nav-link:hover,
.gd-nav > li > a.gd-nav-link:focus,
.gd-nav > li > a.gd-nav-link:focus-visible {
    filter: brightness(1.2);
    text-decoration: none;
    color: #abb4be;
    outline: none;
    box-shadow: none;
}

.gd-nav a .gd-nav-label {
    display: inline;
    vertical-align: middle;
}

.gd-nav a .gd-nav-label-text {
    vertical-align: middle;
}

.gd-nav a > i {
    font-size: 1.15rem;
    width: 1.1em;
    margin-right: 0.5em;
    text-align: center;
    vertical-align: middle;
    color: inherit;
}

.gd-nav > li.gd-nav-active > a.gd-nav-link {
    box-shadow: 2px 0 0 #ccc inset;
    background: transparent;
    color: #abb4be;
    font-weight: 400;
}

.gd-nav > li.gd-nav-expanded > a.gd-nav-link {
    background: transparent;
}

.gd-nav-parent > a.gd-nav-link {
    cursor: pointer;
    position: relative;
    padding-right: 48px;
}

.gd-nav-parent > a.gd-nav-link::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f107";
    color: #abb4be;
    position: absolute;
    right: 0;
    top: 0;
    padding: 12px 25px;
    filter: none;
}

.gd-nav-parent.gd-nav-expanded > a.gd-nav-link::after {
    content: "\f106";
}

.gd-nav-children {
    list-style: none;
    margin: 0;
    padding: 6px 0 10px;
    display: none;
    background: transparent;
    box-shadow: none;
}

.gd-nav-parent.gd-nav-expanded > .gd-nav-children {
    display: block;
}

.gd-nav-children > li > a.gd-nav-link {
    padding: 6px 15px 6px 57px;
}

.gd-nav-children > li > a.gd-nav-link:hover,
.gd-nav-children > li > a.gd-nav-link:focus,
.gd-nav-children > li > a.gd-nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    filter: none;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.gd-nav-children .gd-nav-parent > a.gd-nav-link::after {
    padding: 6px 25px;
}

.gd-nav-children .gd-nav-children {
    box-shadow: none;
    padding: 0;
}

.gd-nav-children .gd-nav-children > li > a.gd-nav-link {
    padding: 6px 15px 6px 82px;
}

.gd-nav-children .gd-nav-children .gd-nav-children > li > a.gd-nav-link {
    padding: 6px 15px 6px 97px;
}

.gd-nav-children li.gd-nav-active > a.gd-nav-link {
    color: #ccc;
    background: transparent;
    box-shadow: none;
    font-weight: 400;
}

.gd-nav-leaf {
    position: relative;
}

.gd-nav-fav {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.7em;
    z-index: 10;
}

.gd-nav-leaf:hover .gd-nav-fav,
.gd-nav-fav.is-active,
.gd-nav-fav:focus-visible {
    opacity: 1;
}

.gd-nav-fav:hover,
.gd-nav-fav.is-active {
    color: var(--ui-action);
}

.gd-nav-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0.2em 0.55em;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.08);
    color: #999;
}

.gd-nav-badge--danger {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

.gd-charity-bar {
    position: sticky;
    top: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 48px 10px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #3567ff, #2b70d8);
}

.gd-charity-bar__text a {
    color: #fff;
    text-decoration: underline;
    margin-left: 8px;
}

.gd-charity-bar__text a:hover {
    color: #fff;
    text-decoration: none;
}

.gd-charity-bar__close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gd-charity-bar__close:hover {
    opacity: 1;
}

.gd-nav-muted,
.gd-nav-muted:hover {
    color: #999 !important;
    font-style: italic;
    font-size: 0.85em;
    cursor: default;
    filter: none !important;
}

.gd-nav-accent-danger > a.gd-nav-link,
.gd-nav-accent-danger > a.gd-nav-link .gd-nav-label-text {
    color: #ff0000 !important;
}

.gd-nav-accent-gold > a.gd-nav-link,
.gd-nav-accent-gold > a.gd-nav-link .gd-nav-label-text {
    color: #f1c40f !important;
}

.gd-nav-accent-star > a.gd-nav-link {
    color: #abb4be !important;
}

.gd-nav-accent-green > a.gd-nav-link,
.gd-nav-accent-green > a.gd-nav-link .gd-nav-label-text {
    color: #2ecc71 !important;
}

.gd-sidebar-separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: none;
    margin: 20px 10px;
}

.gd-sidebar-footer {
    padding: 0 25px 8px;
    border-top: none;
    font-family: var(--font-ui);
    font-size: 12px;
    color: #abb4be;
}

.gd-sidebar-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gd-sidebar-footer__label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #777;
    margin-bottom: 4px;
}

.gd-sidebar-footer__stat {
    font-size: 12px;
    color: #abb4be;
    font-variant-numeric: tabular-nums;
}

.gd-sidebar-footer__meta {
    display: block;
    font-size: 12px;
    color: #abb4be;
    font-variant-numeric: tabular-nums;
}

.gd-sidebar-footer strong,
.gd-sidebar-footer small {
    font-family: inherit;
    font-weight: inherit;
}

.gd-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    overflow: hidden;
    margin: 6px 0 14px;
}

.gd-progress-bar {
    height: 100%;
    background: var(--ui-action);
    border-radius: 0;
    transition: width 0.4s ease;
}

/* ??? Main content ??? */
.gd-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 28px clamp(1.25rem, 3vw, 2.5rem) 40px;
    overflow-x: hidden;
}

.gd-page-head { display: none; }
.gd-page-header {
    position: sticky;
    top: var(--topbar-h);
    z-index: 1001;
    height: var(--page-header-h);
    margin: -40px -40px 40px;
    padding: 0;
    background: var(--bg-app);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 0;
    box-shadow: none;
    overflow: visible;
}

.gd-page-header::after {
    content: '';
    display: table;
    clear: both;
}

.gd-page-header__menu {
    display: none;
    float: left;
    width: 36px;
    height: 36px;
    margin: 18px 0 0 12px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gd-page-header__menu:focus,
.gd-page-header__menu:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.gd-page-header__title {
    box-sizing: content-box;
    display: inline-block;
    float: left;
    height: var(--page-header-h);
    margin: 0 0 0 -1px;
    padding: 0 24px 0 22px;
    border-bottom: 4px solid #ccc;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: normal;
    line-height: var(--page-header-h);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 480px);
}

.gd-page-header__right {
    float: right;
    height: var(--page-header-h);
    padding-right: 12px;
    text-align: right;
    white-space: nowrap;
}

.gd-page-header__balances {
    display: inline-block;
    font-size: 0;
    line-height: var(--page-header-h);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gd-page-header__balances > li {
    display: inline-block;
}

.gd-page-header__balance {
    box-sizing: content-box;
    display: inline-block;
    height: var(--page-header-h);
    margin: 0;
    padding: 0 14px 0 10px;
    border-bottom: none;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: var(--page-header-h);
    vertical-align: top;
}

.gd-page-header__balance img {
    height: 30px;
    width: auto;
    margin-left: 4px;
    vertical-align: middle;
}

.gd-page-header__balance--cash img {
    border-radius: 50%;
}

@media (max-width: 991px) {
    .gd-page-header {
        margin: -16px -16px 20px;
        padding-right: 0;
    }
    .gd-page-header__menu { display: inline-flex; }
    .gd-page-header__title {
        font-size: 16px;
        padding: 0 15px 0 8px;
        max-width: 42vw;
    }
    .gd-page-header__balance {
        font-size: 16px;
        padding-left: 5px;
        padding-right: 10px;
    }
}

.gd-breadcrumbs {
    margin-bottom: var(--space-2);
}

.gd-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--text-muted);
}

.gd-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.gd-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-1);
    color: var(--text-muted);
    opacity: 0.7;
}

.gd-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.gd-breadcrumbs a:hover {
    color: var(--ui-action);
}

.gd-breadcrumbs span {
    color: var(--text-muted);
}

.gd-main--loadable {
    position: relative;
}

.gd-nav-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    background: rgba(11, 13, 18, 0.55);
    backdrop-filter: blur(1px);
}

.gd-nav-loader[hidden] {
    display: none !important;
}

.gd-nav-loader__bounce {
    display: flex;
    gap: 6px;
}

.gd-nav-loader__bounce > div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    animation: gd-nav-loader-bounce 1.2s infinite ease-in-out both;
}

.gd-nav-loader__bounce > div:nth-child(1) { animation-delay: -0.24s; }
.gd-nav-loader__bounce > div:nth-child(2) { animation-delay: -0.12s; }

@keyframes gd-nav-loader-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.45; }
    40% { transform: scale(1); opacity: 1; }
}

.gd-empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--text-secondary);
}

.gd-empty-state i {
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.gd-empty-state h6 {
    margin: 0 0 var(--space-2);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-empty-state p {
    margin: 0 auto;
    max-width: 360px;
    font-size: 13px;
    line-height: 1.5;
}

.gd-empty-state--compact {
    padding: var(--space-6) var(--space-4);
}

.gd-empty-state--compact i {
    font-size: 22px;
}

.gd-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.gd-quick-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.gd-quick-link:hover {
    background: var(--bg-surface-2);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.gd-quick-link__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
}

.gd-quick-link__label {
    font-size: 14px;
    font-weight: 600;
}

.gd-dash-anchor {
    scroll-margin-top: var(--space-4);
}

@media (max-width: 991px) {
    .gd-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .gd-quick-links {
        grid-template-columns: 1fr;
    }
}

/* ??? Panels ???
   Cards are separated from the page by fill, not by an outline. */
.gd-card,
.gd-body .card {
    background: var(--bg-surface);
    border: 0;
    border-radius: var(--radius-card);
    margin-bottom: var(--space-4);
    overflow: hidden;
    box-shadow: none;
}

/* Tier 1 ? the thing the page is for */
.gd-panel-primary,
.gd-body .card.gd-panel-primary {
    background: var(--bg-surface-2);
}

.gd-card-header,
.gd-body .card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-hairline);
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-secondary);
}

.gd-card-body,
.gd-body .card-body {
    padding: var(--space-6);
}

.gd-card-body.p-0,
.gd-body .card-body.p-0 { padding: 0; }

/* Tier 3 ? ambient stats, no card treatment */
.gd-meta-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-2) 0;
}

.gd-meta-item + .gd-meta-item {
    border-top: 1px solid var(--border-hairline);
    padding-top: var(--space-6);
}

.gd-meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.gd-meta-value {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
}

.gd-meta-value small {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: var(--space-1);
}

.gd-meta-sub {
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--text-secondary);
}

/* Functional monospace for IDs, timestamps and record numbers */
.gd-mono {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

/* ??? Empty states ??? */
.gd-empty-line {
    padding: var(--space-6) 0;
    font-size: 14px;
    color: var(--text-muted);
}

.gd-empty-line--center { text-align: center; }

/* ??? Link callout ??? */
.gd-link-callout {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    background: var(--accent-soft);
    border-radius: var(--radius-card);
    animation: gd-fade-up 0.3s ease-out;
}

@keyframes gd-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.gd-link-callout-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    background: rgba(217, 164, 65, 0.16);
    color: var(--accent);
    font-size: 15px;
}

.gd-link-callout h3 {
    margin: 0 0 var(--space-2);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-link-callout p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-link-callout code {
    display: inline-block;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-inset);
    border-radius: var(--radius-control);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ??? Section headings ??? */
.gd-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.gd-section-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.gd-section-title p {
    margin: var(--space-1) 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-char-empty {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.gd-char-empty h3 {
    margin: 0 0 var(--space-2);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-char-empty p {
    margin: 0 auto;
    max-width: 440px;
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-char-empty code {
    font-family: var(--font-mono);
    color: var(--accent);
}

/* ??? Dashboard secondary widgets ??? */
.gd-dash-secondary {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-8);
}

@media (max-width: 991px) {
    .gd-dash-secondary { grid-template-columns: 1fr; }
}

.gd-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gd-event-list li {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-hairline);
}

.gd-event-list li:last-child { border-bottom: none; }

.gd-event-thumb {
    width: 72px;
    height: 52px;
    border-radius: var(--radius-control);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-inset);
}

.gd-event-list h4 {
    margin: 0 0 var(--space-1);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-event-list .gd-event-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.gd-event-list p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-presence { padding: var(--space-6); }

.gd-presence-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.gd-presence-count {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
}

.gd-presence-count span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.gd-presence-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

.gd-online-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-control);
    background: var(--status-good-soft);
    color: var(--status-good);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gd-online-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-good);
}

.gd-service-list {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
}

.gd-service-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-top: 1px solid var(--border-hairline);
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-service-status {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--status-good);
}

.gd-service-status.is-info { color: var(--text-secondary); }

/* ??? Stat cards (secondary surfaces) ??? */
.gd-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

@media (max-width: 1199px) { .gd-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .gd-stat-grid { grid-template-columns: 1fr; } }

.gd-stat-card {
    background: var(--ucp-panel);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border: 0;
}

.gd-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.gd-stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ucp-text-muted);
    margin-bottom: var(--space-2);
}

.gd-stat-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ??? Tables ??? */
.gd-body .table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.gd-body .table thead th {
    border-top: none;
    border-bottom: 1px solid var(--border-hairline);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: var(--space-3) var(--space-6);
    background: transparent;
    white-space: nowrap;
}

.gd-body .table td {
    border-top: 1px solid var(--border-hairline);
    padding: var(--space-3) var(--space-6);
    height: 44px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-body .table td:first-child { color: var(--text-primary); }

/* Row separation comes from hairlines, not zebra fill */
.gd-body .table-striped tbody tr:nth-of-type(odd) { background: transparent; }

.gd-body .table tbody tr { transition: background 0.15s; }
.gd-body .table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.gd-body .table .gd-cell-mono,
.gd-body .table td.gd-cell-mono {
    font-family: var(--font-mono);
    font-size: 13px;
}

/* ??? Buttons ??? */
.gd-btn,
.gd-body .btn {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    border-radius: var(--radius-control);
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gd-body .btn:hover { text-decoration: none; }
.gd-btn-primary,
.gd-body .btn-primary,
.gd-body .btn-success,
.gd-body .btn-set-primary {
    background: var(--ui-action);
    border-color: var(--ui-action-border);
    color: #ffffff;
}

.gd-btn-primary:hover,
.gd-body .btn-primary:hover,
.gd-body .btn-success:hover,
.gd-body .btn-set-primary:hover {
    background: var(--ui-action-hover);
    border-color: var(--ui-action-border);
    color: #ffffff;
}

/* Secondary ? outlined, no fill */
.gd-body .btn-default,
.gd-body .btn-secondary,
.gd-body .btn-outline-light,
.gd-body .btn-warning,
.gd-body .btn-add-secondary {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.gd-body .btn-default:hover,
.gd-body .btn-secondary:hover,
.gd-body .btn-outline-light:hover,
.gd-body .btn-warning:hover,
.gd-body .btn-add-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

/* Destructive ? outlined until hover */
.gd-body .btn-danger {
    background: transparent;
    border-color: var(--status-bad);
    color: var(--status-bad);
}

.gd-body .btn-danger:hover {
    background: var(--status-bad-soft);
    border-color: var(--status-bad);
    color: var(--status-bad);
}

.gd-body .btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 13px;
}

.gd-body .btn-block + .btn-block { margin-top: var(--space-2); }

/* —— Forms —— */
.gd-body .form-control,
.gd-body .form-control:hover,
.gd-body .form-control:active {
    background: var(--bg-inset);
    background-clip: padding-box;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-control);
    font-size: 14px;
    padding: var(--space-2) var(--space-3);
    height: auto;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.gd-body textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.gd-body .form-control::placeholder { color: var(--text-muted); }

.gd-body .form-control:focus,
.gd-body .form-control:focus-visible {
    background: var(--bg-inset);
    border-color: var(--border-strong);
    color: var(--text-primary);
    box-shadow: none !important;
    outline: none !important;
}

/* Kill Bootstrap / browser invalid flash on empty required fields */
.gd-body .form-control:invalid,
.gd-body .form-control:required:invalid {
    border-color: var(--border-subtle);
    box-shadow: none !important;
}

.gd-body .form-control:invalid:focus,
.gd-body .form-control:required:invalid:focus {
    border-color: var(--border-strong);
    box-shadow: none !important;
}

.gd-body .form-control:-webkit-autofill,
.gd-body .form-control:-webkit-autofill:hover,
.gd-body .form-control:-webkit-autofill:focus,
.gd-body .form-control:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary);
    transition: background-color 99999s ease-out;
    box-shadow: 0 0 0 1000px var(--bg-inset) inset !important;
    border: 1px solid var(--border-subtle) !important;
}

.gd-onboard-main .form-control,
.ucp-onboarding-main .form-control {
    background: #0c0f14;
    border-color: rgba(255, 255, 255, 0.08);
}

.gd-onboard-aside img,
.ucp-onboarding-aside img {
    display: block;
    width: auto !important;
    max-width: 200px;
    height: auto !important;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: var(--space-6);
}

.gd-body label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: var(--space-2);
}

.gd-body .badge {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.03em;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-control);
}

.gd-body .badge-primary { background: var(--ui-action-border); color: #ffffff; }
.gd-body .badge-success { background: var(--status-good-soft); color: var(--status-good); }
.gd-body .badge-warning { background: var(--status-warn-soft); color: var(--status-warn); }
.gd-body .badge-info { background: rgba(255, 255, 255, 0.06); color: var(--text-secondary); }

.gd-body .alert {
    border: 0;
    border-radius: var(--radius-control);
    padding: var(--space-4);
    font-size: 14px;
}

.gd-body .alert-info {
    background: var(--bg-inset);
    color: var(--text-secondary);
}

.gd-body .alert-warning {
    background: var(--status-warn-soft);
    color: var(--text-primary);
}

.gd-body .alert-danger {
    background: var(--status-bad-soft);
    color: var(--text-primary);
}

.gd-body .text-muted { color: var(--text-secondary) !important; }
.gd-body .text-danger { color: var(--status-bad) !important; }
.gd-body hr { border-top: 1px solid var(--border-hairline); }

/* ??? Tabs ??? */
.gd-tabs,
.material-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid transparent;
    background: var(--ucp-panel);
    padding: 0;
}

.gd-tabs a,
.material-tabs a {
    display: inline-block;
    padding: 22px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    margin-bottom: 0;
}

.gd-tabs a:hover,
.material-tabs a:hover {
    color: #ffffff;
    text-decoration: none;
}

.gd-tabs a.active,
.material-tabs a.active {
    color: #ffffff;
    font-weight: 700;
    border-bottom-color: var(--ucp-tab-underline);
}

.gd-material-tabs {
    position: relative;
}

.gd-material-tabs .yellow-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #2b70d8;
    transition: left 0.2s ease, width 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.gd-material-tabs a.active {
    border-bottom-color: transparent;
}

.gd-sidebar-search-wrap {
    display: none;
}

.gd-sidebar-search-icon {
    display: none;
}

.gd-nav-search-hidden {
    display: none !important;
}

.gd-notifications {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.gd-notifications__item {
    position: relative;
}

.gd-notification-icon {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #777;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.gd-notification-icon:hover,
.gd-notification-icon.is-open,
.gd-notification-icon:focus,
.gd-notification-icon:focus-visible {
    color: #333;
    background: #fff;
    outline: none;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.gd-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d2312d;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.gd-notification-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 20em;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-raised);
    z-index: 220;
    overflow: hidden;
}

.gd-notification-menu--large {
    width: 24em;
}

.gd-notification-menu__title {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.gd-notification-menu__content {
    padding: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.gd-notification-menu__content p {
    margin-bottom: 12px;
}

.gd-help-pin-display {
    margin: 10px 0 0;
    font-weight: 600;
    color: var(--accent);
}

.gd-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.gd-notification-list li {
    border-bottom: 1px solid var(--border-hairline);
}

.gd-notification-list li a {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

.gd-notification-list li a:hover {
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.gd-notification-list .title {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.gd-notification-list .message {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.gd-notification-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(43, 112, 216, 0.15);
    color: #5b9bff;
}

.gd-notification-item__icon.is-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.gd-notification-item__icon.is-success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.gd-notification-item__body {
    min-width: 0;
    flex: 1;
}

.gd-notification-item__time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.gd-notification-empty {
    padding: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.gd-notification-view-more {
    display: block;
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-hairline);
}

.gd-profile-widget__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.gd-profile-widget__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b70d8;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.12);
}

.gd-profile-widget__identity {
    min-width: 0;
}

.gd-profile-widget__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.gd-linked-account__name {
    font-weight: 600;
    color: var(--text-primary);
}

.gd-linked-account__meta {
    font-size: 12px;
    color: var(--text-muted);
}

.ucp-tab-panel { display: none !important; padding: 20px; }
.ucp-tab-panel.active { display: block !important; }

/* ??? Profile / character ??? */
.ucp-profile-layout {
    margin-left: calc(var(--space-2) * -1);
    margin-right: calc(var(--space-2) * -1);
}

.ucp-profile-layout > [class*="col-"] {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

.ucp-profile-layout .card,
.ucp-profile-layout .gd-panel-primary {
    background: var(--ucp-panel);
    border: 0;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.ucp-profile-side .card-body {
    padding: 20px;
}

.ucp-profile-layout .tab-content.rounded-0.shadow {
    background: var(--ucp-panel);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.thumb-info {
    position: relative;
}

.thumb-info-title {
    display: block;
}

.thumb-info-inner {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.thumb-info-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    color: #ffffff;
    background: #006699;
    text-transform: uppercase;
}

.ucp-profile-side h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ucp-profile-side .text-2 {
    font-size: 13px;
    color: var(--ucp-text-muted);
}

.ucp-profile-side .text-2 b {
    color: var(--text-primary);
    font-weight: 600;
}

.ucp-profile-side .text-2 i {
    font-style: italic;
    color: var(--ucp-text-muted);
}

hr.dotted.short {
    border: 0;
    border-top: 1px dotted rgba(255, 255, 255, 0.18);
    margin: 14px 0;
    width: 55%;
}

.accordion-toggle {
    display: block;
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ucp-link);
    text-decoration: none;
}

.accordion-toggle i {
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

.accordion-toggle:hover {
    color: #33a0e0;
    text-decoration: none;
}

.accordion-toggle.open i.fa-plus-circle::before {
    content: "\f056"; /* fa-minus-circle */
}

.ucp-collapse {
    display: none;
    padding: 0 0 6px 18px;
}

.ucp-collapse.open {
    display: block;
}

.ucp-activity-widget {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ucp-activity-widget__body {
    flex: 1 1 auto;
    min-width: 0;
}

.ucp-activity-widget__icon {
    flex: 0 0 auto;
    width: 44px;
    text-align: center;
    color: rgba(255, 255, 255, 0.28);
    font-size: 36px;
    line-height: 1;
    padding-top: 2px;
}

.ucp-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ucp-widget-metric {
    position: static;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    padding-right: 0;
    min-height: 0;
    line-height: 1.2;
    word-break: break-word;
}

.ucp-widget-metric__icon {
    display: none;
}

.ucp-widget-caption {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ucp-text-muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ucp-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ucp-text-muted);
    margin: var(--space-4) 0 var(--space-2);
}

.ucp-section-label:first-child { margin-top: 0; }

.ucp-section-label--tight {
    margin: var(--space-3) 0 var(--space-1);
}

.ucp-asset-heading {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--ucp-text-muted);
    margin: var(--space-4) 0 var(--space-2);
}

.ucp-asset-heading:first-child {
    margin-top: 0;
}

.ucp-profile-side .ucp-empty,
.ucp-profile-side .text-muted.small {
    font-size: 12px;
    line-height: 1.35;
    color: var(--ucp-text-muted);
}

.ucp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 767px) { .ucp-stats-grid { grid-template-columns: 1fr; } }

.ucp-stats-block {
    background: var(--bg-inset);
    border-radius: var(--radius-control);
    padding: var(--space-4);
}

.ucp-stats-block h6 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.ucp-stats-block p {
    margin-bottom: var(--space-1);
    font-size: 14px;
    color: var(--text-secondary);
}

.ucp-stats-block p strong { color: var(--text-primary); font-weight: 500; }

.ucp-settings-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-hairline);
}

.ucp-settings-icon { color: var(--text-muted); text-align: center; }

.ucp-settings-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.ucp-datatable-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: var(--space-3);
}

.ucp-activity-value {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.ucp-activity-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.ucp-widget-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ucp-widget-stat i { font-size: 24px; color: var(--text-muted); }

.ucp-assets-subtabs {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-hairline);
}

.ucp-assets-subtabs > a {
    display: inline-block;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    border-bottom: 3px solid transparent;
}

.ucp-assets-subtabs > a:hover { color: #ffffff; text-decoration: none; }

.ucp-assets-subtabs > a.active {
    color: #ffffff;
    font-weight: 700;
    border-bottom-color: var(--ucp-tab-underline);
}

.ucp-assets-panel { display: none; }
.ucp-assets-panel.active { display: block; }
.gd-asset-box {
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
    margin-bottom: var(--space-2);
}

.gd-asset-box--empty {
    padding: 6px 0;
    font-size: 13px;
    color: var(--ucp-text-muted);
    background: transparent;
    border-radius: 0;
}

.gd-body .gd-asset-box .gd-asset-table {
    color: #ffffff;
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

.gd-body .gd-asset-box .gd-asset-table thead th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    color: #ffffff;
    border: 0;
    border-bottom: 0;
    padding: 10px 18px;
    background: var(--ucp-table-head);
    white-space: nowrap;
}

.gd-body .gd-asset-box .gd-asset-table tbody td {
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 18px;
    height: auto;
    vertical-align: middle;
}

.gd-body .gd-asset-box .gd-asset-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.12);
}

.gd-body .gd-asset-box .gd-asset-table tbody tr:first-child td {
    border-top: 0;
}

.gd-body .gd-asset-box .gd-asset-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gd-asset-model {
    color: var(--text-primary);
    font-weight: 500;
}

.gd-asset-table .gd-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
}

/* Assets tab ? softer scrollbars on the main panel */
#tab-assets.ucp-tab-panel {
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    scrollbar-width: thin;
}

#tab-assets.ucp-tab-panel::-webkit-scrollbar {
    width: 8px;
}

#tab-assets.ucp-tab-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

#tab-assets.ucp-tab-panel::-webkit-scrollbar-track {
    background: transparent;
}

.ucp-server-record-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

.ucp-server-record-stats > div {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.ucp-server-record-stats strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.ucp-status-good { color: var(--status-good); font-weight: 600; }

.ucp-2fa-alert {
    background: var(--status-warn-soft);
    color: var(--text-primary);
    padding: var(--space-4);
    border-radius: var(--radius-control);
    margin-bottom: var(--space-4);
    font-size: 14px;
}

.ucp-danger-zone {
    background: var(--status-bad-soft);
    padding: var(--space-4);
    border-radius: var(--radius-control);
    margin-top: var(--space-6);
}

.gd-ucp-modal-danger {
    background: var(--status-bad-soft);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: var(--radius-control);
    padding: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.gd-ucp-modal-danger strong {
    color: var(--text-primary);
}

.gd-ucp-modal-character-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-ucp-modal-error {
    margin: var(--space-3) 0 0;
    font-size: 13px;
    color: var(--status-bad);
}

.ucp-timeline-heading {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: var(--space-4) 0 var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-hairline);
}

/* ??? Legacy dashboard widgets ??? */
.gd-event-slide {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gd-event-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-6);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    color: #fff;
}

.gd-discord-card { overflow: hidden; }

.gd-discord-header {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-4) var(--space-6);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-hairline);
}

.gd-discord-body {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-6);
    font-size: 14px;
}

.gd-discord-member {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) 0;
}

.gd-discord-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.gd-discord-footer {
    padding: var(--space-4) var(--space-6);
    text-align: right;
    border-top: 1px solid var(--border-hairline);
}

/* ??? Wizard ??? */
.gd-wizard-steps,
.ucp-wizard-steps {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.gd-wizard-step,
.ucp-wizard-step {
    flex: 1;
    min-width: 140px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: var(--space-3) var(--space-4);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-control);
}

.gd-wizard-step.active,
.ucp-wizard-step.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.ucp-form-icon-group { position: relative; margin-bottom: var(--space-4); }

.ucp-form-icon-group i {
    position: absolute;
    left: var(--space-3);
    bottom: 11px;
    color: var(--text-muted);
}

.ucp-form-icon-group .form-control { padding-left: var(--space-8); }

.ucp-guidelines-box {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: var(--space-6);
    height: 100%;
}

/* ??? Auth pages ??? */
.gd-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    position: relative;
    background-color: #0b0d12;
    background-image:
        linear-gradient(105deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.72) 42%, rgba(8, 10, 14, 0.55) 100%),
        url('../default/ucp/splash-auth.jpg?v=3');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.gd-auth-brand {
    text-align: center;
    margin-bottom: 1.25rem;
}

.gd-auth-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gd-auth-brand img {
    height: clamp(160px, 22vh, 240px);
    width: auto;
    max-width: min(92vw, 520px);
    object-fit: contain;
    margin: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.6));
}

.gd-auth-brand h1 {
    margin: 0.75rem 0 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gd-auth-brand p {
    margin: var(--space-2) 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.gd-auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(18, 21, 28, 0.94);
    border-radius: var(--radius-card);
    padding: 1.35rem 1.4rem 1.25rem;
    box-shadow: var(--shadow-raised);
}

.gd-auth-card h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    text-align: center;
    letter-spacing: -0.02em;
}

.gd-auth-card .gd-auth-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 0.25rem 0 1rem;
    line-height: 1.35;
}

.gd-field { margin-bottom: 0.75rem; }

.gd-field--tight { margin-bottom: 0.35rem; }

.gd-field input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    background: #0e1118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-ui);
    outline: none;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.gd-field input::placeholder { color: var(--text-muted); }

.gd-field input:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.gd-field input:focus,
.gd-field input:focus-visible {
    outline: none !important;
    border-color: rgba(46, 196, 224, 0.55);
    box-shadow: 0 0 0 3px rgba(46, 196, 224, 0.14);
}

.gd-field input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.gd-field input:-webkit-autofill,
.gd-field input:-webkit-autofill:hover,
.gd-field input:-webkit-autofill:focus,
.gd-field input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary);
    box-shadow: 0 0 0 1000px #0e1118 inset !important;
    transition: background-color 99999s ease-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.gd-auth-page .gd-field input:focus,
.gd-auth-page .gd-field input:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}

.gd-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.gd-auth-actions a {
    font-size: 0.86rem;
    color: var(--ui-action);
    text-decoration: none;
}

.gd-auth-actions a:hover { color: #7ec8e3; text-decoration: underline; }

.gd-auth-switch {
    text-align: center;
    margin: 0.95rem 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.gd-auth-switch a { color: var(--ui-action); }

.gd-auth-note {
    margin: 0.9rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: center;
}

.gd-auth-status {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.gd-auth-status.is-ok {
    background: rgba(52, 211, 153, 0.12);
    color: #86efac;
}

.gd-auth-status.is-err {
    background: rgba(255, 107, 107, 0.12);
    color: #ffb0b0;
}

.gd-auth-footer {
    text-align: center;
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gd-auth-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gd-auth-links a {
    color: var(--text-secondary);
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.gd-auth-links a:hover { color: var(--accent); }

/* —— Onboarding —— */
.gd-onboard-wrap {
    max-width: min(1280px, 100%);
    width: 100%;
    padding: var(--space-6) var(--space-6);
    margin: 0 auto;
}

.gd-onboard-card {
    background: var(--bg-surface-2);
    border: 0;
    border-radius: var(--radius-card);
    box-shadow: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    width: 100%;
    min-height: calc(100vh - 3rem);
}

.gd-onboard-aside {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    padding: var(--space-8) var(--space-6);
    border-right: 0;
}

.gd-onboard-aside img {
    display: block;
    width: auto;
    max-width: 176px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: var(--space-6);
}

.gd-onboard-aside h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--space-1);
}

.gd-onboard-steps {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0 0;
}

.gd-onboard-steps li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: 14px;
    color: var(--text-secondary);
}

.gd-onboard-steps li span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.gd-onboard-steps li.active,
.gd-onboard-steps li.done { color: var(--text-primary); }

.gd-onboard-steps li.active span,
.gd-onboard-steps li.done span {
    background: var(--ui-action);
    border-color: var(--ui-action);
    color: #fff;
}

.gd-onboard-steps li.passed {
    color: var(--text-primary);
}

.gd-onboard-steps li.passed span {
    background: var(--status-good);
    border-color: var(--status-good);
    color: #052e1a;
}

.gd-onboard-steps li.failed {
    color: var(--text-primary);
}

.gd-onboard-steps li.failed span {
    background: var(--status-bad);
    border-color: var(--status-bad);
    color: #fff;
}

.gd-onboard-links {
    color: var(--text-muted);
}

.gd-onboard-links a {
    color: #60A5FA;
    font-weight: 500;
    text-decoration: none;
}

.gd-onboard-links a:hover {
    color: #93C5FD;
    text-decoration: underline;
}

.gd-onboard-signout {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-8);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.gd-onboard-signout:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

.gd-onboard-signout i {
    font-size: 12px;
    opacity: 0.8;
}

.gd-onboard-main {
    flex: 1;
    min-width: 0;
    padding: var(--space-8) clamp(var(--space-6), 4vw, var(--space-12));
    background: var(--bg-surface-2);
}

@media (max-width: 900px) {
    .gd-onboard-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .gd-onboard-aside {
        border-right: 0;
        border-bottom: 0;
    }

    .gd-onboard-main {
        padding: var(--space-6) var(--space-4);
    }
}

.gd-field-hint {
    margin: var(--space-1) 0 var(--space-2);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.gd-onboard-main .form-group label {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-quiz-option {
    display: block;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-inset);
    border-radius: var(--radius-control);
    margin-bottom: var(--space-2);
    cursor: pointer;
    font-size: 14px;
}

.gd-quiz-option:hover { background: rgba(255, 255, 255, 0.05); }

.gd-quiz-option input { margin-right: var(--space-3); }

.gd-pending-icon { font-size: 48px; color: var(--ui-action); }

/* ??? Mobile ??? */
@media (max-width: 991px) {
    :root { --topbar-h: 84px; }

    .gd-menu-toggle { display: inline-flex; }

    .gd-topbar {
        align-items: center;
        padding: 0 var(--space-4) 0 0;
    }

    .gd-topbar-brand {
        min-width: auto;
        padding: 0 var(--space-3);
    }

    .gd-topbar-brand img { height: 68px; max-width: 220px; }

    .gd-sidebar {
        position: fixed;
        left: 0;
        top: var(--topbar-h);
        bottom: 0;
        z-index: 90;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-raised);
    }

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

    .gd-main { padding: var(--space-4); }

    .gd-user-trigger .gd-user-name,
    .gd-user-trigger .gd-user-role { display: none; }

    .gd-topbar-balances { margin-right: 0; }
    .gd-currency span { display: none; }
    .gd-currency { padding: 0.35rem 0.5rem; font-size: 11px; }

    .gd-card-body,
    .gd-body .card-body,
    .ucp-tab-panel { padding: var(--space-4); }

    .gd-body .table thead th,
    .gd-body .table td { padding: var(--space-3) var(--space-4); }
}

/* Legacy aliases retained for older markup */
.ucp-event-slide { min-height: 220px; background-size: cover; background-position: center; position: relative; }
.ucp-event-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6); background: linear-gradient(transparent, rgba(0,0,0,0.88)); color: #fff; }
.ucp-discord-card { overflow: hidden; }
.ucp-discord-header { background: transparent; color: var(--text-secondary); padding: var(--space-4) var(--space-6); font-weight: 600; border-bottom: 1px solid var(--border-hairline); }
.ucp-discord-body { background: transparent; color: var(--text-secondary); padding: var(--space-6); }
.ucp-discord-member { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) 0; font-size: 14px; }
.ucp-discord-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.ucp-discord-footer { padding: var(--space-4) var(--space-6); text-align: right; border-top: 1px solid var(--border-hairline); }

.ucp-onboarding-body { background: var(--bg-app); min-height: 100vh; }
.ucp-onboarding-wrap { max-width: min(1280px, 100%); width: 100%; padding: var(--space-6); margin: 0 auto; }
.ucp-onboarding-card { background: var(--bg-surface-2); border: 0; border-radius: var(--radius-card); box-shadow: none; overflow: hidden; }
.ucp-onboarding-aside { background: var(--bg-surface); color: var(--text-primary); padding: var(--space-8) var(--space-6); }
.ucp-onboarding-main { padding: var(--space-8) clamp(var(--space-6), 4vw, var(--space-12)); }
.ucp-onboarding-steps { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.ucp-onboarding-steps li { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); font-size: 14px; color: var(--text-secondary); }
.ucp-onboarding-steps li span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; color: var(--text-secondary); }
.ucp-onboarding-steps li.active, .ucp-onboarding-steps li.done { color: var(--text-primary); }
.ucp-onboarding-steps li.active span, .ucp-onboarding-steps li.done span { background: var(--ui-action); border-color: var(--ui-action); color: #fff; }
.ucp-onboarding-steps--denied li.passed { color: var(--text-primary); }
.ucp-onboarding-steps--denied li.passed span { background: var(--status-good); color: #052e1a; }
.ucp-onboarding-steps--denied li.failed { color: var(--text-primary); }
.ucp-onboarding-steps--denied li.failed span { background: var(--status-bad); color: #fff; }
.ucp-quiz-option { display: block; padding: var(--space-3) var(--space-4); background: var(--bg-inset); border-radius: var(--radius-control); margin-bottom: var(--space-2); cursor: pointer; }
.ucp-pending-icon { font-size: 48px; color: var(--ui-action); }

.gd-onboard-section-title {
    margin: 0 0 var(--space-4);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.gd-onboard-checklist {
    list-style: none;
    margin: 0 0 var(--space-6);
    padding: 0;
}

.gd-onboard-checklist li {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border-hairline);
}

.gd-onboard-checklist li:first-child {
    border-top: 0;
    padding-top: 0;
}

.gd-onboard-checklist strong {
    display: block;
    margin-bottom: var(--space-1);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.gd-onboard-checklist span {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.gd-onboard-checklist code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
}

.gd-onboard-checklist--ordered {
    list-style: decimal;
    padding-left: var(--space-6);
}

.gd-onboard-checklist--ordered li {
    padding-left: var(--space-2);
}

.gd-onboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-2);
}

.gd-onboard-actions--single {
    justify-content: flex-end;
}

.gd-denial-note {
    margin: 0 0 var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-subtle);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.gd-review-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.gd-review-heading h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gd-review-heading__icon {
    width: 28px;
    height: 28px;
    color: var(--ui-action);
    flex-shrink: 0;
}

.gd-review-copy {
    margin: 0 0 var(--space-3);
    font-size: 15px;
    line-height: 1.6;
    max-width: 58ch;
}

.gd-review-copy:last-of-type {
    margin-bottom: var(--space-6);
}

.gd-review-track {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 var(--space-8);
    padding: 0;
}

.gd-review-track li {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.gd-review-track li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 13px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 1px;
    background: var(--border-hairline);
}

.gd-review-track li.done:not(:last-child)::after {
    background: var(--ui-action);
    opacity: 0.55;
}

.gd-review-track li span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gd-review-track li strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.gd-review-track li.done span,
.gd-review-track li.active span {
    background: var(--ui-action);
    color: #ffffff;
}

.gd-review-track li.active strong,
.gd-review-track li.done strong {
    color: var(--text-primary);
}

@media (max-width: 575px) {
    .gd-review-track {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }

    .gd-review-track li {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .gd-review-track li:not(:last-child)::after {
        display: none;
    }
}

/* ??? Application result faces ??? */
.gd-application-face {
    margin: 0 0 var(--space-6);
    display: grid;
    place-items: center;
}

.gd-application-face--accepted {
    --face-accent: var(--status-good);
}

.gd-application-face--denied {
    --face-accent: var(--status-bad);
}

.gd-application-face__ring {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.42);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.12);
}

.gd-application-face--accepted .gd-application-face__ring {
    background: var(--status-good-soft);
    border-color: rgba(52, 211, 153, 0.42);
    box-shadow: 0 4px 18px rgba(52, 211, 153, 0.12);
}

.gd-application-face__ring svg {
    width: 42px;
    height: 42px;
    color: var(--face-accent);
}

/* ??? Denial messaging ??? */
.gd-denial-intro {
    margin: 0 0 var(--space-4);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.gd-denial-intro strong {
    color: var(--text-primary);
}

.gd-denial-reason {
    margin-bottom: var(--space-6);
}

.gd-denial-template {
    background: var(--bg-inset);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    padding: var(--space-6);
}

.gd-denial-template__lead {
    margin: 0 0 var(--space-4);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.55;
}

.gd-denial-template__points {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.gd-denial-template__points li + li {
    margin-top: var(--space-2);
}

.gd-denial-template__footer {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.gd-denial-template--plain .gd-denial-template__lead {
    font-weight: 400;
}

.gd-denial-preview,
.gd-admin-deny-panel .gd-denial-preview {
    background: var(--bg-inset);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-control);
    padding: var(--space-4);
}

.gd-admin-deny-panel .deny-template-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.gd-staff-scroll {
    max-height: 220px;
    overflow: auto;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    white-space: pre-wrap;
    font-size: 0.92rem;
    line-height: 1.5;
}

.gd-staff-quiz-item {
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-hairline);
}

.gd-staff-quiz-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.gd-staff-quiz-q {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
}

.gd-staff-quiz-num {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 22px;
}

.gd-staff-quiz-status {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-top: 7px;
}

.gd-staff-quiz-status--ok {
    background: var(--status-good);
    box-shadow: 0 0 0 2px var(--status-good-soft);
}

.gd-staff-quiz-status--bad {
    background: var(--status-bad);
    box-shadow: 0 0 0 2px var(--status-bad-soft);
}

.gd-staff-quiz-prompt {
    flex: 1;
    min-width: 0;
}

.gd-staff-quiz-a {
    margin: var(--space-2) 0 0 calc(22px + var(--space-2) + 7px + var(--space-2));
    font-size: 13px;
    line-height: 1.55;
    color: #B8BEC8;
}

/* ??? Staff application review ??? */
.gd-main--staff {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gd-staff-workspace {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: var(--space-4);
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.gd-staff-queue,
.gd-staff-review {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - var(--topbar-h) - 140px);
    overflow: hidden;
}

.gd-staff-queue-head,
.gd-staff-review-head {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.gd-staff-queue-head {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.gd-staff-queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 var(--space-2);
    border-radius: 999px;
    background: var(--ui-action-soft);
    color: var(--ui-action);
    font-size: 12px;
}

.gd-staff-queue-head-actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

.gd-staff-queue-list,
.gd-staff-review-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.gd-staff-queue-empty,
.gd-staff-review-empty,
.gd-staff-review-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: var(--space-8);
    color: var(--text-muted);
    text-align: center;
}

.gd-staff-review-empty i {
    font-size: 28px;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

.gd-staff-queue-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border: 0;
    border-bottom: 1px solid var(--border-hairline);
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.gd-staff-queue-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gd-staff-queue-item.is-selected {
    background: rgba(46, 196, 224, 0.1);
    box-shadow: inset 3px 0 0 #2ec4e0;
}

.gd-staff-queue-item__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 2px;
}

.gd-staff-queue-item__row strong {
    font-size: 14px;
    font-weight: 600;
}

.gd-staff-queue-item__sub {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gd-staff-queue-item__sep {
    color: var(--text-muted);
}

.gd-staff-queue-item__type {
    margin: 0.15rem 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gd-staff-ucp-user {
    color: #f4f5f7;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.gd-staff-review-type {
    margin: 0.2rem 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
}

.gd-staff-char-name {
    color: #d5dae3;
    font-weight: 500;
}

.gd-staff-review-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-1);
    font-size: 13px;
    color: var(--text-secondary);
}

.gd-staff-review-head__meta .gd-staff-ucp-user {
    font-size: 0.95rem;
}


.gd-staff-queue-item__meta {
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.gd-staff-review-head {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    flex-shrink: 0;
}

.gd-staff-review-head__main {
    min-width: 0;
    flex: 1;
}

.gd-staff-review-head__aside {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.gd-staff-review-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-1);
    font-size: 13px;
    color: var(--text-secondary);
}

.gd-staff-review-head__dot {
    color: var(--text-muted);
}

.gd-staff-review-progress {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    margin-right: var(--space-2);
}

.gd-staff-review-head .gd-staff-queue-item__viewing {
    margin-top: var(--space-2);
}

.gd-staff-review-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.gd-staff-review-body {
    padding: var(--space-4);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.gd-staff-guidelines__prompt {
    margin: 0 0 var(--space-2);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
}

.gd-staff-review-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
    min-height: 0;
}

.gd-staff-review-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 var(--space-2);
}

.gd-staff-review-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border-hairline);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.gd-staff-review-step:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.gd-staff-review-step.is-active {
    border-color: var(--ui-action);
    background: var(--ui-action-soft);
    color: #fff;
}

.gd-staff-review-step.is-pass {
    border-color: rgba(46, 160, 67, 0.45);
}

.gd-staff-review-step.is-fail {
    border-color: rgba(218, 54, 51, 0.45);
}

.gd-staff-review-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.gd-staff-review-step.is-active .gd-staff-review-step__index {
    background: var(--ui-action);
    color: #fff;
}

.gd-staff-review-step__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-staff-review-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

.gd-staff-answer-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-inset);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gd-staff-answer-card--compact {
    min-height: 0;
    margin-bottom: 0.75rem;
}

.gd-staff-answer-card--compact .gd-staff-answer-card__body {
    color: #f4f5f7;
    font-size: 0.95rem;
    line-height: 1.5;
}

.gd-staff-answer-card--compact .gd-staff-answer-card__head h3 {
    color: #c5cad3;
}

.gd-staff-answer-card--pass .gd-staff-answer-card__head {
    background: rgba(52, 211, 153, 0.06);
}

.gd-staff-answer-card--fail .gd-staff-answer-card__head {
    background: rgba(239, 68, 68, 0.06);
}

.gd-staff-answer-card--pass .gd-staff-answer-card__head h3,
.gd-staff-answer-card--fail .gd-staff-answer-card__head h3 {
    color: var(--text-secondary);
}

.gd-staff-guidelines {
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-hairline);
    flex-shrink: 0;
}

.gd-staff-guidelines__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.gd-staff-guidelines__list {
    margin: 0;
    padding: 0 0 0 var(--space-4);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.gd-staff-guidelines__list li + li {
    margin-top: 2px;
}

.gd-staff-guidelines__links {
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
}

.gd-staff-guidelines__links a {
    color: #60A5FA;
    font-weight: 500;
    text-decoration: none;
}

.gd-staff-guidelines__links a:hover {
    color: #93C5FD;
    text-decoration: underline;
}

.gd-staff-answer-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-hairline);
    flex-shrink: 0;
}

.gd-staff-answer-card__head h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.gd-staff-answer-card__body {
    flex: 1;
    min-height: 0;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: var(--space-4);
    font-size: 14px;
    line-height: 1.6;
    color: #C5CBD3;
    white-space: pre-wrap;
}

.gd-staff-answer-card .gd-staff-review-feedback {
    padding: 0 var(--space-4);
    flex-shrink: 0;
}

.gd-staff-answer-card .gd-staff-review-feedback.is-open {
    padding-bottom: var(--space-4);
    max-height: 200px;
}

.gd-staff-review-feedback__inner {
    padding: var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
}

.gd-staff-answer-card .section-feedback-note {
    background: var(--bg-inset);
    border: 1px solid var(--border-hairline);
    color: var(--text-primary);
    resize: vertical;
    min-height: 72px;
}

.gd-staff-answer-card .section-feedback-note::placeholder {
    color: var(--text-muted);
}

.gd-staff-answer-card .section-feedback-note:focus {
    background: var(--bg-inset);
    border-color: var(--border-strong);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.gd-staff-deny-drawer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-surface-2);
    animation: gd-staff-drawer-in 0.22s ease;
}

@keyframes gd-staff-drawer-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gd-staff-deny-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-hairline);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.gd-staff-deny-drawer__body {
    padding: var(--space-4);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) auto;
    gap: var(--space-3);
    align-items: start;
}

.gd-staff-deny-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.gd-staff-deny-drawer .gd-staff-deny-preview {
    max-height: 120px;
    overflow: auto;
}

.gd-staff-deny-drawer .reject-btn {
    align-self: end;
    white-space: nowrap;
}

.gd-staff-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.gd-staff-meta-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.gd-staff-meta-value {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-word;
}

.gd-staff-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.gd-staff-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.gd-staff-scroll--tall {
    max-height: none;
}

.gd-staff-review-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.gd-staff-review-block {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-hairline);
}

.gd-staff-review-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gd-staff-review-actions {
    display: none;
}

.gd-staff-review-actions__buttons {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.gd-staff-review-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.gd-staff-review-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.gd-staff-review-btn--pass.is-active {
    border-color: var(--status-good);
    background: var(--status-good-soft);
    color: var(--status-good);
}

.gd-staff-review-btn--fail.is-active {
    border-color: var(--status-bad);
    background: var(--status-bad-soft);
    color: var(--status-bad);
}

.gd-staff-review-feedback {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.28s ease;
}

.gd-staff-review-feedback.is-open {
    max-height: 220px;
    opacity: 1;
    margin-top: var(--space-3);
}

.gd-staff-review-feedback__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.gd-staff-queue-item__viewing {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--accent);
}

.gd-staff-view-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.gd-staff-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.gd-staff-pill--accent {
    background: var(--ui-action-soft);
    color: var(--ui-action);
}

.gd-staff-pill--warn {
    background: var(--status-warn-soft);
    color: var(--status-warn);
}

.gd-staff-pill--good {
    background: var(--status-good-soft);
    color: var(--status-good);
}

.gd-staff-pill--bad {
    background: var(--status-bad-soft);
    color: var(--status-bad);
}

.gd-staff-deny-panel {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gd-staff-deny-templates {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.gd-staff-deny-preview {
    max-height: 180px;
    overflow: auto;
}

.gd-staff-section {
    margin-bottom: var(--space-6);
}

.gd-staff-review-stack--user-detail {
    gap: var(--space-4);
}

.gd-staff-review-stack--user-detail .gd-staff-section {
    margin-bottom: 0;
}

.gd-staff-review-stack--user-detail .gd-staff-section h3 {
    margin-bottom: var(--space-2);
}

.gd-staff-kv {
    display: grid;
    gap: 6px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.gd-staff-kv strong {
    color: var(--text-primary);
    font-weight: 500;
}

.gd-staff-empty-line {
    font-size: 13px;
    color: var(--text-muted);
}

.gd-staff-inline-note {
    margin: 0;
    padding: var(--space-3);
    background: var(--bg-inset);
    border-radius: var(--radius-control);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.gd-staff-user-char-table {
    margin-bottom: 0;
}

.gd-staff-user-char-table .gd-staff-col-action {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-left: var(--space-3);
}

.gd-main--staff .gd-page-head {
    margin-bottom: var(--space-4);
}

.gd-staff-queue-item__row + .gd-staff-queue-item__sub {
    margin-top: 4px;
}

.gd-staff-queue-item__sub + .gd-staff-queue-item__sub {
    margin-top: 2px;
}

.gd-staff-queue-item__claimed {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.gd-staff-queue-item__claimed.is-mine {
    color: var(--accent);
}

.gd-staff-queue-item.is-mine:not(.is-selected) {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.04);
}

.gd-staff-handlers {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-card);
}

.gd-staff-handlers__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.gd-staff-handlers__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.gd-staff-handlers__empty {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.gd-staff-handler-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e8eaed;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-hairline);
}

.gd-staff-handler-chip--primary {
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
}

.gd-staff-handler-chip__remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1;
    padding: 0 0 0 0.15rem;
    cursor: pointer;
}

.gd-staff-handler-chip__remove:hover {
    color: #f87171;
}

.gd-staff-handlers__add {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-hairline);
}

.gd-staff-handlers__add label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.gd-staff-handlers__row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.gd-staff-handlers__row .form-control {
    max-width: 240px;
}

.gd-staff-handlers__hint {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gd-staff-profile-identity {
    display: block;
    padding: var(--space-4);
    border-radius: var(--radius-card);
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
}

.gd-staff-profile-identity__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gd-staff-profile-identity__name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.gd-staff-profile-identity__email {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    word-break: break-word;
}

.gd-staff-profile-identity__email i {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.gd-staff-profile-identity__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.gd-staff-account-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.gd-staff-account-badge--staff {
    background: rgba(245, 158, 11, 0.14);
    color: #F59E0B;
}

.gd-staff-account-badge--player {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.gd-staff-queue-item__badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gd-staff-review-head .gd-staff-profile-identity__label {
    margin-bottom: 2px;
}

.gd-staff-review-head h2.gd-mono {
    margin: 0 0 var(--space-1);
}

.gd-staff-section h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--space-3);
}

.gd-staff-audit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.gd-staff-audit-item {
    background: var(--bg-inset);
    border-radius: var(--radius-control);
    padding: var(--space-3);
}

.gd-staff-audit-item__head {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: 13px;
}

.gd-staff-audit-item__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

@media (max-width: 1200px) {
    .gd-staff-workspace {
        grid-template-columns: 1fr;
    }

    .gd-staff-queue,
    .gd-staff-review {
        max-height: none;
    }

    .gd-staff-queue {
        max-height: 220px;
    }

    .gd-staff-review-grid {
        min-height: 0;
    }

    .gd-staff-answer-card {
        min-height: 0;
    }

    .gd-staff-deny-drawer__body {
        grid-template-columns: 1fr;
    }

    .gd-staff-meta-grid,
    .gd-staff-content-grid {
        grid-template-columns: 1fr;
    }
}

/* Account restriction screens */
.gd-restriction-box {
    background: var(--bg-inset);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    padding: var(--space-4);
}

.gd-restriction-box p {
    margin-bottom: 0;
}

.gd-restriction-box p + p {
    margin-top: var(--space-2);
}

/* Staff moderation modal */
.gd-staff-modal[hidden] {
    display: none !important;
}

.gd-staff-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.gd-staff-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.gd-staff-modal__dialog {
    position: relative;
    width: min(480px, 100%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.gd-staff-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    border-top: 3px solid var(--ui-action);
}

.gd-staff-modal__head h3 {
    margin: 0;
    font-size: 16px;
}

.gd-staff-modal__body {
    padding: var(--space-4);
}

.gd-staff-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.gd-staff-ban-duration {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.gd-staff-ban-duration__option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-size: 13px;
    cursor: pointer;
}

.gd-staff-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 13px;
    cursor: pointer;
}

.gd-staff-inline-note--danger {
    border-left: 3px solid var(--danger, #dc3545);
    padding-left: var(--space-3);
}

.gd-staff-inline-note--warn {
    border-left: 3px solid var(--warning, #ffc107);
    padding-left: var(--space-3);
}

/* Staff profile moderation sidebar + history */
.gd-staff-mod-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gd-staff-mod-badge--ban {
    background: rgba(220, 53, 69, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.gd-staff-mod-badge--lock {
    background: rgba(255, 193, 7, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.gd-staff-mod-sidebar__clear {
    font-size: 13px;
    color: var(--text-muted);
}

.gd-staff-mod-sidebar__clear i {
    color: #34d399;
    margin-right: 6px;
}

.gd-staff-mod-sidebar__status {
    border-radius: var(--radius-control);
    padding: var(--space-3);
    margin-top: var(--space-2);
}

.gd-staff-mod-sidebar__status--ban {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.gd-staff-mod-sidebar__status--lock {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.gd-staff-mod-sidebar__status-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: var(--space-2);
}

.gd-staff-mod-sidebar__status--ban .gd-staff-mod-sidebar__status-head i {
    color: #f87171;
}

.gd-staff-mod-sidebar__status--lock .gd-staff-mod-sidebar__status-head i {
    color: #fbbf24;
}

.gd-staff-mod-sidebar__reason {
    font-size: 13px;
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
}

.gd-staff-mod-sidebar__meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-staff-mod-sidebar__meta span {
    color: var(--text-muted);
    opacity: 0.8;
    margin-right: 4px;
}

.gd-staff-mod-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-top: 0;
}

.gd-staff-mod-table__active {
    background: rgba(220, 53, 69, 0.06) !important;
}

.gd-staff-mod-table__reason {
    max-width: 280px;
    word-break: break-word;
}

.gd-staff-char-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-staff-char-links a {
    color: #5eb3ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.gd-staff-char-links a:hover {
    text-decoration: underline;
}

.gd-staff-char-links__deleted {
    opacity: 0.65;
}

.gd-staff-char-links__deleted .gd-staff-char-links__name {
    font-size: 13px;
    text-decoration: line-through;
}

.gd-staff-char-links__deleted i {
    color: #f87171;
    font-size: 11px;
}

.gd-staff-signal-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-height: 180px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a424c #1d2127;
}
.gd-staff-signal-list li {
    margin: 3px 0;
    font-size: 12px;
    word-break: break-all;
}
.gd-staff-signal-list__type {
    display: inline-block;
    min-width: 64px;
    color: #808697;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.gd-staff-linked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gd-staff-linked-list li {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gd-staff-linked-list__tier {
    font-size: 11px;
    font-weight: 700;
}
.gd-staff-linked-list__tier--soft { color: #abb4be; }
.gd-staff-linked-list__tier--high { color: #f59e0b; }
.gd-staff-linked-list__tier--strong { color: #ef4444; }

.gd-staff-audit-item__detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}
.gd-staff-profile-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) minmax(300px, 340px);
    gap: var(--space-3);
    align-items: start;
}

.gd-staff-profile-aside__name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
    word-break: break-word;
}

.gd-staff-profile-aside__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-3);
}

.gd-staff-aside-kv {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-3);
    font-size: 13px;
}

.gd-staff-aside-kv__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gd-staff-aside-kv__row span {
    color: var(--text-muted);
    font-size: 12px;
}

.gd-staff-profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 8px;
    background: var(--ucp-panel);
    min-height: 64px;
    align-items: stretch;
}

.gd-staff-profile-tabs__tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 20px 18px;
    margin-bottom: 0;
    cursor: pointer;
}

.gd-staff-profile-tabs__tab:hover {
    color: #ffffff;
}

.gd-staff-profile-tabs__tab.is-active {
    color: #ffffff;
    font-weight: 700;
    border-bottom-color: var(--ucp-tab-underline);
}

.gd-staff-profile-aside .card-body,
.gd-staff-profile-meta .card-body,
.gd-staff-profile-main .card-body {
    padding: var(--space-4) var(--space-4) var(--space-6);
}

.gd-staff-aside-section + .gd-staff-aside-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-hairline);
}

.gd-staff-aside-section--identity {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.gd-staff-aside-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.gd-staff-aside-section__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.gd-staff-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-staff-status-badge i {
    font-size: 7px;
}

.gd-staff-status-badge--online {
    background: var(--status-good-soft);
    color: var(--status-good);
}

.gd-staff-status-badge--offline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.gd-staff-status-badge--app {
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 11px;
}

.gd-staff-details {
    margin: 0;
}

.gd-staff-details__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-hairline);
    font-size: 13px;
}

.gd-staff-details__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gd-staff-details__row dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.gd-staff-details__row dd {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.gd-staff-details__row--stack {
    flex-direction: column;
    align-items: stretch;
}

.gd-staff-details__row--stack dd {
    text-align: left;
    max-width: none;
}

.gd-staff-meta-section .gd-staff-details__row:not(.gd-staff-details__row--stack) dd {
    max-width: 62%;
}

.gd-staff-char-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-staff-char-links__deleted {
    opacity: 0.55;
}

.gd-staff-char-links__name {
    color: var(--text-secondary);
}

.gd-staff-truncate {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.gd-staff-admin-section + .gd-staff-admin-section {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-hairline);
}

.gd-staff-admin-section__hint {
    margin: -4px 0 var(--space-3);
    font-size: 12px;
    color: var(--text-muted);
}

.gd-staff-admin-section__actions {
    margin-top: var(--space-3);
}

.gd-staff-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.gd-staff-action-grid--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gd-staff-action-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--radius-control);
    border: 1px solid var(--border-subtle);
    background: var(--bg-inset);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gd-staff-action-btn:hover,
.gd-staff-action-btn:focus {
    border-color: var(--border-strong);
    background: var(--bg-surface-2);
    color: var(--text-primary);
    text-decoration: none;
    outline: none;
}

.gd-staff-action-btn--danger {
    border-color: rgba(239, 68, 68, 0.35);
    background: var(--status-bad-soft);
    color: #f87171;
}

.gd-staff-action-btn--danger:hover,
.gd-staff-action-btn--danger:focus {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.gd-staff-action-btn--warn {
    border-color: rgba(245, 158, 11, 0.35);
    background: var(--status-warn-soft);
    color: #fbbf24;
}

.gd-staff-action-btn--warn:hover,
.gd-staff-action-btn--warn:focus {
    border-color: rgba(245, 158, 11, 0.55);
    color: #fcd34d;
}

.gd-staff-action-btn--secondary {
    background: transparent;
    color: var(--text-secondary);
}

.gd-staff-action-btn--secondary:hover,
.gd-staff-action-btn--secondary:focus {
    border-color: var(--accent);
    color: var(--accent);
}

.gd-staff-action-btn--primary {
    border-color: rgba(217, 164, 65, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
}

.gd-staff-action-btn--primary:hover,
.gd-staff-action-btn--primary:focus {
    border-color: var(--accent);
    color: var(--accent-hover);
}

.gd-staff-action-btn--neutral {
    background: transparent;
    color: var(--text-secondary);
}

.gd-staff-field-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.gd-staff-textarea {
    min-height: 120px;
    resize: vertical;
    background: var(--bg-inset);
    border-color: var(--border-subtle);
    color: var(--text-primary);
    font-size: 13px;
}

.gd-staff-textarea:focus {
    background: var(--bg-inset);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.2);
    color: var(--text-primary);
}

.gd-staff-inline-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.gd-staff-inline-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.gd-staff-record-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.gd-staff-record-stat {
    padding: 10px 12px;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-control);
    background: var(--bg-inset);
}

.gd-staff-record-stat span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gd-staff-record-stat strong {
    font-size: 14px;
    color: var(--text-primary);
}

.gd-staff-record-block {
    margin-top: var(--space-4);
}

.gd-staff-record-block__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #fff;
}

.gd-staff-app-summary {
    margin-bottom: var(--space-4);
}

.gd-staff-app-answer {
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-hairline);
}

.gd-staff-app-answer__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.gd-staff-app-answer__body {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.gd-staff-modal__dialog--wide {
    width: min(560px, 100%);
}

.gd-staff-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.gd-staff-modal__close:hover {
    color: var(--text-primary);
}

.gd-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(380px, calc(100vw - 1.5rem));
    pointer-events: none;
}

.gd-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-card, 10px);
    background: #1a1f27;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: #f3f4f6;
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gd-toast.is-in {
    opacity: 1;
    transform: translateY(0);
}

.gd-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.gd-toast > i {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.gd-toast--info > i { color: #38bdf8; }
.gd-toast--success > i { color: #34d399; }
.gd-toast--warning > i { color: #fbbf24; }
.gd-toast--error > i { color: #f87171; }

.gd-toast__msg {
    flex: 1;
    min-width: 0;
}

.gd-toast__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.gd-toast__close:hover {
    color: #fff;
}

.gd-app-scenario-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gd-app-scenario-tag--break {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.gd-referral-card {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.gd-referral-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: min(100%, 22rem);
    flex: 1 1 16rem;
}

.gd-referral-strip .form-control {
    flex: 1;
    min-width: 12rem;
}

.gd-path-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-path-divider::before,
.gd-path-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-hairline);
}

.gd-founder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 0.35rem;
    padding: 0;
    width: 1rem;
    height: 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e8c76a;
    font-size: 0;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
    overflow: hidden;
    white-space: nowrap;
}

.gd-founder-badge::before {
    content: '\f521';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1;
    color: inherit;
    speak: never;
}

.gd-founder-badge i {
    display: none;
}

.gd-user-meta .gd-founder-badge {
    display: inline-flex;
    flex-shrink: 0;
}

.gd-staff-modal-intro {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.gd-staff-duration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
}

.gd-staff-duration-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.gd-staff-duration-custom {
    margin-top: var(--space-3);
}

.gd-staff-modal-effects {
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-hairline);
}

.gd-staff-effect-list {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.gd-staff-effect-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.gd-staff-effect-list i {
    color: var(--status-good);
    font-size: 11px;
}

@media (max-width: 1200px) {
    .gd-staff-profile-layout {
        grid-template-columns: 1fr;
    }

    .gd-staff-action-grid,
    .gd-staff-action-grid--secondary,
    .gd-staff-record-stats {
        grid-template-columns: 1fr;
    }
}


.gd-staff-admin-section + .gd-staff-admin-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.gd-staff-admin-section__title,
.gd-staff-meta-section__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 var(--space-3);
}

.gd-staff-action-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-staff-action-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #5eb3ff;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.gd-staff-action-link:hover,
.gd-staff-action-link--anchor:hover {
    color: #8ec9ff;
    text-decoration: underline;
}

.gd-staff-meta-section + .gd-staff-meta-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.gd-staff-meta-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: 13px;
    margin-bottom: 10px;
}

.gd-staff-meta-row span {
    color: var(--text-muted);
    flex-shrink: 0;
}

.gd-staff-meta-row strong {
    text-align: right;
    word-break: break-word;
}

.gd-staff-meta-row--stack {
    flex-direction: column;
    align-items: stretch;
}

.gd-staff-meta-row--stack strong {
    text-align: left;
}

.gd-staff-char-links a.gd-staff-action-link {
    display: inline;
}

@media (max-width: 1200px) {
    .gd-staff-profile-layout {
        grid-template-columns: 1fr;
    }
}
.gd-staff-lookup {
    max-width: 100%;
}

.gd-staff-datatable__head {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
}

.gd-staff-datatable__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gd-staff-datatable__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.gd-staff-datatable__page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.gd-staff-datatable__page-size select {
    width: 72px;
}

.gd-staff-datatable__search {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    margin-left: auto;
}

.gd-staff-datatable__table thead th {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--text-muted);
    border-top: 0;
    white-space: nowrap;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

.gd-staff-datatable__table tbody td {
    font-size: 13px;
    vertical-align: middle;
    border-color: var(--border-subtle);
}

.gd-staff-datatable__table tbody tr:hover {
    background: rgba(94, 179, 255, 0.04);
}

.gd-staff-datatable__empty {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-5) var(--space-3) !important;
}

.gd-staff-datatable__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.gd-staff-datatable__pager {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-staff-datatable__page-btn {
    appearance: none;
    background: var(--bg-inset);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    color: #5eb3ff;
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
}

.gd-staff-datatable__page-btn:hover {
    border-color: #5eb3ff;
}

.gd-staff-datatable__page-current {
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
}

.gd-staff-datatable__section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--space-3);
}

.gd-staff-datatable__wrap {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-control);
    overflow: hidden;
}

.gd-staff-sec-row--warn td {
    background: rgba(245, 158, 11, 0.06);
}
.gd-page-head {
    position: relative;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-2);
}

.gd-page-head::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: var(--space-4);
    background: linear-gradient(90deg, var(--ui-tab), transparent 70%);
    opacity: 0.55;
}

.gd-body .card,
.gd-card {
    background: var(--ucp-panel);
    border: 0;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gd-card-header,
.gd-body .card-header {
    background: #282d36;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.gd-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

@media (max-width: 991px) {
    .gd-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.gd-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ucp-panel);
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.gd-quick-link:hover {
    background: #343b46;
    color: #ffffff !important;
}

.gd-quick-link__icon {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-action-soft);
    color: var(--ui-action);
}

.gd-section-title h2 {
    font-size: 18px;
    font-weight: 600;
}

.gd-body .table thead th {
    background: var(--ucp-table-head);
    color: #ffffff;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
}

.gd-body .table td {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 16px;
}

.gd-body .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.12);
}

.material-tabs,
.ucp-assets-subtabs {
    flex-wrap: wrap;
    overflow-x: visible;
}

.material-tabs a,
.ucp-assets-subtabs > a {
    padding: 14px 16px;
    font-size: 12px;
}

@media (min-width: 1200px) {
    .material-tabs a {
        padding: 18px 16px;
        font-size: 13px;
    }
}

.gd-material-tabs .yellow-bar {
    background: var(--ui-tab);
    height: 3px;
}

.ucp-settings-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3);
    align-items: end;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ucp-settings-row .ucp-settings-icon {
    display: none;
}

.ucp-settings-label {
    font-size: 12px;
    color: var(--ucp-text-muted);
    margin-bottom: 6px;
}

.ucp-settings-action .btn {
    min-width: 88px;
}

.alert-info {
    background: rgba(0, 136, 204, 0.12) !important;
    border-color: rgba(0, 136, 204, 0.28) !important;
    color: #c8e4f5 !important;
}
@media (min-width: 992px) {
    .gd-app.gd-sidebar-collapsed .gd-sidebar {
        width: 73px;
    }

    .gd-app.gd-sidebar-collapsed .gd-sidebar-header__search,
    .gd-app.gd-sidebar-collapsed .gd-nav span,
    .gd-app.gd-sidebar-collapsed .gd-nav-fav,
    .gd-app.gd-sidebar-collapsed .gd-sidebar-footer,
    .gd-app.gd-sidebar-collapsed .gd-sidebar-separator,
    .gd-app.gd-sidebar-collapsed .gd-nav-parent > a.gd-nav-link::after {
        display: none !important;
    }

    .gd-app.gd-sidebar-collapsed .gd-sidebar-toggle {
        width: 73px;
        right: 0;
    }

    .gd-app.gd-sidebar-collapsed .gd-nav > li > a.gd-nav-link {
        padding: 12px 0;
        text-align: center;
    }

    .gd-app.gd-sidebar-collapsed .gd-nav a > i {
        margin-right: 0;
    }

    .gd-app.gd-sidebar-collapsed .gd-nav-children {
        display: none !important;
    }
}

.gd-sidebar-collapse-btn { display: none !important; }

.ucp-profile-layout {
    margin-left: -8px;
    margin-right: -8px;
}

@media (max-width: 767px) {
    .gd-main { padding: 16px; }
}

.gd-menu-toggle { display: none; }
@media (max-width: 991px) {
    .gd-menu-toggle { display: inline-flex; }
    .gd-sidebar-toggle { display: none; }
}
.ucp-stats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.ucp-stats-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.ucp-stats-row { margin-right: -8px; }
.ucp-stat-card {
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    overflow: hidden;
}
.ucp-stat-card .card-header {
    background: #282d36 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 10px 14px;
}
.ucp-stat-card .card-header p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.ucp-stat-card .list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--ucp-text-muted);
    font-size: 13px;
    padding: 8px 14px;
}
.ucp-stat-card .list-group-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Staff server record */
.gd-staff-record__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.gd-staff-record__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.gd-staff-record__last {
    font-size: 13px;
    color: var(--ucp-text-muted);
}
.gd-staff-profile-stats {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.gd-staff-profile-stats li {
    flex: 1 1 120px;
    min-width: 110px;
    padding: 4px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.gd-staff-profile-stats li:last-child { border-right: 0; }
.gd-staff-profile-stats h5 {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ucp-text-muted);
}
.gd-staff-profile-stats h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}
.gd-staff-record-panel[hidden] { display: none !important; }
.gd-staff-record-status { font-size: 14px; color: var(--text-secondary); }
.gd-staff-record-status--good { color: var(--status-good); font-weight: 700; }
.gd-staff-record-status--warn { color: var(--status-warn); font-weight: 700; }
.gd-staff-record-status--bad { color: var(--status-bad); font-weight: 700; }
.gd-staff-record-note { font-size: 13px; color: var(--ucp-text-muted); }
.gd-staff-lookup-shell {
    background: #2e353e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.gd-staff-lookup-shell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 14px 20px;
    background: #242830;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 3px solid var(--ui-action);
}
.gd-staff-lookup-shell__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.gd-staff-lookup-shell__hint {
    margin: 0;
    font-size: 12px;
    color: #808697;
}
.gd-staff-lookup-shell__body {
    padding: 16px 18px 18px;
    background: #2e353e;
}
.gd-staff-lookup-shell .ifm-datatable__tools {
    margin-bottom: 12px;
}
.gd-staff-lookup-shell .ifm-datatable__right {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.gd-staff-lookup-shell .gd-staff-datatable__page-size {
    color: #abb4be;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gd-staff-lookup-search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-width: min(100%, 420px);
    flex: 1 1 320px;
}
.gd-staff-lookup-search .ifm-search {
    flex: 1;
    min-height: 38px;
}
.gd-staff-lookup-search__btn {
    white-space: nowrap;
    min-height: 38px;
    padding: 0 16px;
}
.gd-staff-lookup-status {
    margin: 0 0 10px;
    font-size: 12px;
    color: #808697;
    min-height: 16px;
}
.gd-staff-admin-links {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.gd-staff-admin-link {
    display: block;
    width: 100%;
    text-align: left;
    appearance: none;
    background: transparent;
    border: 0;
    color: #5eb3ff;
    font-size: 14px;
    padding: 4px 0;
    cursor: pointer;
}
.gd-staff-admin-link:hover {
    color: #8ec8ff;
    text-decoration: underline;
}
.gd-staff-email-change__row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.gd-staff-email-change__row .ifm-form__control {
    flex: 1;
}
.gd-staff-email-change__btn {
    background: #28a745 !important;
    border: 1px solid #1e7e34 !important;
    color: #fff !important;
    padding: 0 16px !important;
    white-space: nowrap;
}
.gd-staff-email-change__btn:hover {
    background: #218838 !important;
    color: #fff !important;
}
.gd-staff-widget {
    background: #21262d;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.gd-staff-widget__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    padding: 14px 16px;
    background: #2e353e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.gd-staff-widget__body {
    padding: 12px;
    font-size: 13px;
}
.gd-staff-meta-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5eb3ff;
    margin: 0 0 10px;
}
.gd-staff-meta-section__title i {
    width: 16px;
    text-align: center;
}
.gd-staff-meta-hint {
    margin-top: 2px;
    font-size: 11px;
    color: #808697;
}
.gd-staff-meta-section {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gd-staff-meta-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.gd-staff-aside-hero {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gd-staff-aside-hero--banned {
    margin: -8px -8px 14px;
    padding: 16px 14px 14px;
    background: #5c1a1a;
    border-bottom: 0;
    border-radius: 4px;
}
.gd-staff-aside-hero--banned .gd-staff-profile-aside__name {
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gd-staff-char-links {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}
.gd-staff-char-links li {
    margin: 4px 0;
    font-size: 13px;
}
.gd-staff-char-links__deleted .gd-staff-char-links__name {
    color: #abb4be;
}
.gd-staff-signal-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    max-height: 180px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a424c #1d2127;
}
.gd-staff-signal-list li {
    margin: 3px 0;
    font-size: 12px;
    word-break: break-all;
}
.gd-staff-signal-list__type {
    display: inline-block;
    min-width: 64px;
    color: #808697;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.gd-staff-linked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gd-staff-linked-list li {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gd-staff-linked-list__tier {
    font-size: 11px;
    font-weight: 700;
}
.gd-staff-linked-list__tier--soft { color: #abb4be; }
.gd-staff-linked-list__tier--high { color: #f59e0b; }
.gd-staff-linked-list__tier--strong { color: #ef4444; }

/* Kill legacy content page-title block */
.gd-page-head,
.gd-page-head::after {
    display: none !important;
}
.ifm-page .ifm-tabs.material-tabs {
    background: var(--ucp-panel);
    margin: 0 0 20px;
    border-radius: 0;
}

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

.ifm-export {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ifm-export__btn {
    background: #3a424c !important;
    border: 1px solid #4a525c !important;
    color: #e8eaed !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    line-height: 1.4 !important;
}

.ifm-export__btn:hover {
    background: #4a525c !important;
    color: #fff !important;
}

.ifm-datatable__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.ifm-search {
    width: 200px;
    max-width: 40vw;
    height: 34px;
    background: #21262d !important;
    border: 1px solid #3a424c !important;
    color: #fff !important;
    font-size: 13px !important;
}

.ifm-datatable__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #abb4be;
}

.ifm-datatable__pager {
    display: flex;
    gap: 4px;
}

.ifm-page-btn {
    appearance: none;
    background: #2e353e;
    border: 1px solid #3a424c;
    color: #abb4be;
    font-size: 13px;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 2px;
}

.ifm-page-btn:hover:not(:disabled) {
    color: #fff;
    border-color: #5a6570;
}

.ifm-page-btn.is-active,
.ifm-page-btn:disabled.is-active {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
    cursor: default;
}

.ifm-page-btn:disabled:not(.is-active) {
    opacity: 0.45;
    cursor: default;
}

.ifm-datatable__wrap {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--ucp-panel);
}

.ifm-table {
    margin: 0;
    color: #fff;
}

.ifm-table thead th {
    background: #242830 !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    white-space: nowrap;
    vertical-align: middle;
}

.ifm-table tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    vertical-align: middle;
    background: transparent;
}

.ifm-table.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(0, 0, 0, 0.18) !important;
}

.ifm-table.table-striped tbody tr:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

.ifm-datatable__empty {
    text-align: center;
    color: #808697 !important;
    padding: 28px 14px !important;
}

.ifm-btn-edit {
    background: #0088cc !important;
    border: 1px solid #006699 !important;
    color: #fff !important;
    font-size: 12px !important;
    padding: 3px 10px !important;
    border-radius: 3px !important;
}

.ifm-btn-edit:hover {
    background: #0070a8 !important;
    color: #fff !important;
}

.ifm-btn-primary {
    background: #0088cc !important;
    border: 1px solid #006699 !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    border-radius: 3px !important;
}

.ifm-btn-primary:hover {
    background: #0070a8 !important;
    color: #fff !important;
}

.ifm-btn-cancel {
    background: #2e353e !important;
    border: 1px solid #3a424c !important;
    color: #fff !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    border-radius: 3px !important;
}

.ifm-btn-cancel:hover {
    background: #3a424c !important;
    color: #fff !important;
}

.ifm-icon-thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 2px;
    background: transparent;
}

.ifm-modal__dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #2e353e !important;
    border: 0 !important;
    border-radius: 4px !important;
    overflow: hidden;
}

.ifm-modal__head {
    background: #2e353e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 22px !important;
    flex-shrink: 0;
}

.ifm-modal__head h3 {
    font-size: 16px !important;
    font-weight: 600;
    color: #fff;
}

.ifm-modal__body {
    background: #1d2127;
    padding: 20px 22px !important;
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #3a424c #1d2127;
}

.ifm-modal__body::-webkit-scrollbar {
    width: 8px;
}

.ifm-modal__body::-webkit-scrollbar-track {
    background: #1d2127;
}

.ifm-modal__body::-webkit-scrollbar-thumb {
    background: #3a424c;
    border-radius: 4px;
    border: 2px solid #1d2127;
}

.ifm-modal__body::-webkit-scrollbar-thumb:hover {
    background: #4a525c;
}

.ifm-modal__body::-webkit-scrollbar-corner {
    background: #1d2127;
}

.ifm-modal__foot {
    background: #2e353e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
    flex-shrink: 0;
    padding: 14px 22px !important;
}

.ifm-form__field {
    margin-bottom: 14px;
}

.ifm-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #a0a7b4;
    text-transform: none;
    letter-spacing: 0;
}

.ifm-form__control {
    background: #21262d !important;
    border: 1px solid #3a424c !important;
    color: #fff !important;
    font-size: 13px !important;
    height: 38px;
    border-radius: 3px !important;
}

.ifm-form__control:focus {
    background: #21262d !important;
    border-color: #0088cc !important;
    box-shadow: none !important;
    color: #fff !important;
    outline: none;
}

.ifm-icon-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.ifm-icon-row .ifm-icon-thumb {
    margin-right: 8px;
    align-self: center;
}

.ifm-icon-row .ifm-form__control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    flex: 1;
}

.ifm-icon-search-btn {
    background: #0088cc !important;
    border: 1px solid #006699 !important;
    border-left: 0 !important;
    color: #fff !important;
    border-radius: 0 3px 3px 0 !important;
    padding: 0 12px !important;
    height: 38px;
}

.ifm-icon-upload-btn {
    background: #3a424c !important;
    border: 1px solid #4a525c !important;
    color: #fff !important;
    margin-left: 6px !important;
    border-radius: 3px !important;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    padding: 0 10px !important;
    cursor: pointer;
}

.ifm-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #c9ced8;
    font-size: 13px;
}

.ifm-icon-picker {
    margin-top: 10px;
    border: 1px solid #3a424c;
    border-radius: 4px;
    padding: 10px;
    background: #171b22;
    max-height: 220px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a424c #171b22;
}

.ifm-icon-picker::-webkit-scrollbar {
    width: 8px;
}

.ifm-icon-picker::-webkit-scrollbar-track {
    background: #171b22;
}

.ifm-icon-picker::-webkit-scrollbar-thumb {
    background: #3a424c;
    border-radius: 4px;
    border: 2px solid #171b22;
}

.ifm-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.ifm-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #21262d;
    color: #c9ced8;
    cursor: pointer;
}

.ifm-icon-option:hover {
    border-color: #0088cc;
}

.ifm-icon-option img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ifm-icon-option span {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    word-break: break-all;
}
