body.page {
    --interactive-hover-transform: translateY(-1px);
    --interactive-press-transform: translateY(0) scale(0.985);
    --interactive-icon-hover-transform: translateY(-1px) scale(1.05);
    --interactive-icon-press-transform: translateY(0) scale(0.97);
    --interactive-soft-shadow: 0 14px 24px rgba(0, 42, 5, 0.14);
    --repo-content-max-width: 1268px;
    --repo-content-padding-x: clamp(14px, 1.7vw, 22px);
    --repo-auth-tabs-gap: 14px;
    --repo-page-title-size: clamp(1.48rem, 1.28rem + 0.62vw, 1.9rem);
    --repo-section-title-size: clamp(1.14rem, 1.04rem + 0.36vw, 1.34rem);
    --repo-subsection-title-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
}

body.page .content-container {
    width: min(100%, var(--repo-content-max-width));
    padding-inline: var(--repo-content-padding-x);
}

body.page .layout-stack {
    gap: clamp(16px, 1.9vw, 24px);
}

body.page .module-header,
body.page .card-header {
    margin-bottom: 8px;
}

body.page .page-title,
body.page h1.section-title,
body.page h1.settings-page-title,
body.page h1.public-page-title {
    font-size: var(--repo-page-title-size);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

body.page h2.section-title,
body.page h2.page-title,
body.page h2.settings-section-title,
body.page .card-header > .section-title:not(h1),
body.page .module-header > .section-title:not(h1) {
    font-size: var(--repo-section-title-size);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

body.page h3.section-title,
body.page h3.page-title,
body.page .subsection-title {
    font-size: var(--repo-subsection-title-size);
    line-height: 1.16;
    letter-spacing: -0.015em;
}

body.page .auth-layout-stack {
    margin-top: calc(var(--module-tabs-h, 0px) + var(--repo-auth-tabs-gap));
}

body.page:has(.auth-primary-tabs:not(.auth-primary-tabs--hidden)) .auth-layout-stack {
    margin-top: calc(max(var(--module-tabs-h, 0px), 54px) + var(--repo-auth-tabs-gap));
}

body.page .auth-primary-tabs .fb-tabs-scroll {
    width: 100%;
    justify-content: center;
    align-items: center;
}

body.page .auth-primary-tabs .fb-tabsbar.has-scroll .fb-tabs-scroll {
    justify-content: flex-start;
}

body.page .btn,
body.page a.btn,
body.page button.btn,
body.page input.btn[type="button"],
body.page input.btn[type="submit"] {
    --repo-btn-fg: #ffffff;
    --repo-btn-bg: var(--dls-green);
    --repo-btn-border: transparent;
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: #08592f;
    --repo-btn-hover-border: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 26px;
    padding: 4px 10px;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--repo-btn-border);
    background-color: var(--repo-btn-bg) !important;
    background-image: linear-gradient(90deg, var(--repo-btn-hover-bg) 0%, var(--repo-btn-hover-bg) 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 0% 100% !important;
    background-position: left top !important;
    box-shadow: 0 4px 10px rgba(0, 42, 5, 0.10);
    color: var(--repo-btn-fg) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body.page .btn,
body.page a.btn,
body.page button.btn,
body.page input.btn[type="button"],
body.page input.btn[type="submit"],
body.page .repository-shell-header .thm-btn,
body.page .nav > a,
body.page .nav-dd-btn,
body.page .nav-user-btn,
body.page .nav-mobile-action,
body.page .nav-bell-btn,
body.page .admin-role-tab,
body.page .fb-tab,
body.page .fb-tab-scroll-btn,
body.page .gh-edit-cover-btn,
body.page .flash .flash__close,
body.page .ui-modal__close,
body.page .chat-compose-send,
body.page .repository-shell-utility-link,
body.page .repository-shell-login-link,
body.page .repository-shell-utility-btn,
body.page .repository-shell-user-btn,
body.page .repository-shell-nav .mobile-nav__toggler {
    transition:
        color .18s ease,
        background-color .18s ease,
        background-size .24s ease,
        background-position .65s ease,
        border-color .18s ease,
        box-shadow .24s ease,
        transform .18s ease,
        opacity .18s ease,
        filter .18s ease;
}

body.page .btn__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    color: inherit !important;
    transition: color .18s ease;
}

body.page .status-flash.flash,
body.page .error-flash.flash {
    margin-top: 0;
    align-items: flex-start;
}

body.page .status-flash.flash .flash__msg,
body.page .error-flash.flash .flash__msg {
    min-width: 0;
}

body.page .status-flash.flash .flash__close,
body.page .error-flash.flash .flash__close {
    flex: 0 0 auto;
    align-self: flex-start;
    color: inherit;
}

body.page .btn svg,
body.page .btn i,
body.page a.btn svg,
body.page a.btn i,
body.page button.btn svg,
body.page button.btn i,
body.page .repository-shell-header .thm-btn svg,
body.page .repository-shell-header .thm-btn i,
body.page .nav-bell-btn svg,
body.page .nav-bell-btn i,
body.page .fb-tab-scroll-btn svg,
body.page .fb-tab-scroll-btn i,
body.page .gh-edit-cover-btn svg,
body.page .gh-edit-cover-btn i,
body.page .flash .flash__close svg,
body.page .flash .flash__close i,
body.page .ui-modal__close svg,
body.page .ui-modal__close i,
body.page .chat-compose-send svg,
body.page .chat-compose-send i,
body.page .repository-shell-utility-link svg,
body.page .repository-shell-utility-link i,
body.page .repository-shell-login-link svg,
body.page .repository-shell-login-link i,
body.page .repository-shell-utility-btn svg,
body.page .repository-shell-utility-btn i,
body.page .repository-shell-user-btn svg,
body.page .repository-shell-user-btn i,
body.page .repository-shell-nav .mobile-nav__toggler svg,
body.page .repository-shell-nav .mobile-nav__toggler i {
    transition:
        transform .18s ease,
        color .18s ease,
        stroke .18s ease,
        fill .18s ease,
        opacity .18s ease,
        filter .18s ease;
    transform-origin: center;
}

body.page .nav-bell-btn .nav-bell-icon,
body.page .nav-bell-btn .nav-bell-icon svg {
    color: #ffffff;
    opacity: 1;
    filter: none;
}

body.page .nav-bell-btn .nav-bell-icon svg path {
    stroke: currentColor;
    opacity: 1;
}

body.page .nav-notifications .nav-bell-btn:hover .nav-bell-icon,
body.page .nav-notifications .nav-bell-btn:hover .nav-bell-icon svg,
body.page .nav-notifications .nav-bell-btn:focus-visible .nav-bell-icon,
body.page .nav-notifications .nav-bell-btn:focus-visible .nav-bell-icon svg,
body.page .nav-notifications:focus-within .nav-bell-btn .nav-bell-icon,
body.page .nav-notifications:focus-within .nav-bell-btn .nav-bell-icon svg,
body.page .nav-notifications.is-open .nav-bell-btn .nav-bell-icon,
body.page .nav-notifications.is-open .nav-bell-btn .nav-bell-icon svg {
    color: var(--site-navbar-color);
    opacity: 1;
    filter: none;
}

body.page .btn:focus-visible,
body.page a.btn:focus-visible,
body.page button.btn:focus-visible,
body.page input.btn[type="button"]:focus-visible,
body.page input.btn[type="submit"]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring, 0 0 0 4px rgba(11, 107, 58, 0.14)), 0 10px 18px rgba(0, 42, 5, 0.16);
}

body.page .repository-shell-header .thm-btn:focus-visible,
body.page .nav > a:focus-visible,
body.page .nav-dd-btn:focus-visible,
body.page .nav-user-btn:focus-visible,
body.page .nav-mobile-action:focus-visible,
body.page .nav-bell-btn:focus-visible,
body.page .admin-role-tab:focus-visible,
body.page .fb-tab:focus-visible,
body.page .fb-tab-scroll-btn:focus-visible,
body.page .gh-edit-cover-btn:focus-visible,
body.page .flash .flash__close:focus-visible,
body.page .ui-modal__close:focus-visible,
body.page .chat-compose-send:focus-visible,
body.page .repository-shell-utility-link:focus-visible,
body.page .repository-shell-login-link:focus-visible,
body.page .repository-shell-utility-btn:focus-visible,
body.page .repository-shell-user-btn:focus-visible,
body.page .repository-shell-nav .mobile-nav__toggler:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring, 0 0 0 4px rgba(11, 107, 58, 0.14)), var(--interactive-soft-shadow);
}

body.page .btn.secondary,
body.page a.btn.secondary,
body.page button.btn.secondary {
    --repo-btn-fg: #0b4228;
    --repo-btn-bg: #ffffff;
    --repo-btn-border: rgba(0, 42, 5, 0.14);
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: var(--dls-green);
    --repo-btn-hover-border: transparent;
    box-shadow: 0 3px 8px rgba(0, 42, 5, 0.06);
}

body.page .btn.danger,
body.page a.btn.danger,
body.page button.btn.danger {
    --repo-btn-fg: #ffffff;
    --repo-btn-bg: #8b1d12;
    --repo-btn-border: transparent;
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: #74170e;
    --repo-btn-hover-border: transparent;
    box-shadow: 0 4px 10px rgba(139, 29, 18, 0.12);
}

body.page .btn.secondary.is-active,
body.page a.btn.secondary.is-active,
body.page button.btn.secondary.is-active {
    --repo-btn-fg: #ffffff;
    --repo-btn-bg: var(--dls-green);
    --repo-btn-border: transparent;
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: #08592f;
    --repo-btn-hover-border: transparent;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 42, 5, 0.12);
}

body.page .btn.secondary.is-active *,
body.page a.btn.secondary.is-active *,
body.page button.btn.secondary.is-active * {
    color: inherit !important;
}

body.page .btn:hover,
body.page .btn:focus-visible,
body.page a.btn:hover,
body.page a.btn:focus-visible,
body.page button.btn:hover,
body.page button.btn:focus-visible,
body.page input.btn[type="button"]:hover,
body.page input.btn[type="button"]:focus-visible,
body.page input.btn[type="submit"]:hover,
body.page input.btn[type="submit"]:focus-visible {
    color: var(--repo-btn-hover-fg) !important;
    background-size: 100% 100% !important;
    border-color: var(--repo-btn-hover-border);
    box-shadow: 0 7px 14px rgba(0, 42, 5, 0.12);
}

body.page .btn:active,
body.page a.btn:active,
body.page button.btn:active,
body.page input.btn[type="button"]:active,
body.page input.btn[type="submit"]:active {
    color: var(--repo-btn-hover-fg) !important;
    background-size: 100% 100% !important;
    border-color: var(--repo-btn-hover-border);
    box-shadow: 0 4px 10px rgba(0, 42, 5, 0.10);
}

body.page .btn.is-disabled,
body.page .btn[disabled],
body.page .btn[aria-disabled="true"],
body.page span.btn {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    filter: saturate(0.72);
    transform: none !important;
}

body.page .btn.is-disabled *,
body.page .btn[disabled] *,
body.page .btn[aria-disabled="true"] *,
body.page span.btn * {
    pointer-events: none;
}

body.page .btn-row,
body.page .table-actions,
body.page .table-toolbar .toolbar-right,
body.page .print-preview-toolbar__actions {
    align-items: stretch;
}

body.page .global-hero-cover {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body.page .global-hero > .fb-profilebar {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

body.page .btn-row > .btn,
body.page .btn-row > a.btn,
body.page .btn-row > button.btn,
body.page .table-actions > .btn,
body.page .table-actions > a.btn,
body.page .table-actions > button.btn,
body.page .table-toolbar .toolbar-right > .btn,
body.page .table-toolbar .toolbar-right > a.btn,
body.page .table-toolbar .toolbar-right > button.btn,
body.page .print-preview-toolbar__actions > .btn,
body.page .print-preview-toolbar__actions > a.btn,
body.page .print-preview-toolbar__actions > button.btn {
    min-width: 0;
}

body.page .form-actions .btn,
body.page .reply-compose .btn,
body.page .ui-form button[type="submit"],
body.page .ui-form input[type="submit"] {
    min-width: 64px;
}

body.page .chat-gif-picker .btn {
    min-width: 64px;
}

body.page .table-toolbar .btn,
body.page .reply-compose .btn {
    height: auto;
    min-height: 26px;
    padding: 4px 10px;
}

body.page .post-image-preview-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 700;
}

@media (max-width: 900px) {
    body.page .actions .btn {
        padding: 4px 10px;
    }
}

body.page .dash-card .dash-card-head.dash-card-head--with-search {
    display: grid;
    gap: 12px;
    align-items: start;
    padding-bottom: 14px;
}

body.page .dash-card-head--with-search .dash-card-head-label {
    display: block;
}

body.page .dash-card .active-user-search {
    width: 100%;
    padding: 0;
}

body.page .active-user-search .input {
    display: block;
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    border-radius: 14px;
    padding: 0 14px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.2;
    font-weight: 400;
}

body.page .active-user-search .input::placeholder {
    color: #748377;
    font-weight: 400;
}

body.page .active-user-list[hidden],
body.page .active-user-row[hidden] {
    display: none !important;
}

@media (min-width: 1081px) {
    body.page .topbar .container {
        padding-inline: 14px;
    }

    body.page .content-container {
        padding-inline: max(18px, var(--repo-content-padding-x));
    }

    body.page .topbar-surface {
        min-height: 68px;
        gap: 12px;
    }

    body.page .topbar .brand {
        flex: 1 1 420px;
        gap: 8px;
    }

    body.page .brand-link {
        gap: 10px !important;
    }

    body.page .logo-img,
    body.page .brand-logo-img {
        width: 44px;
        height: 44px;
        max-width: 44px;
        max-height: 44px;
    }

    body.page .brand-title {
        font-size: clamp(0.95rem, 0.92rem + 0.28vw, 1.12rem);
        line-height: 1.03;
    }

    body.page .brand-subtitle {
        font-size: 0.68rem;
        line-height: 1.16;
    }

    body.page .topbar-clock {
        min-width: 156px;
        padding: 8px 12px;
        border-radius: 16px;
    }

    body.page .clock-time {
        font-size: 0.84rem;
        line-height: 1.04;
    }

    body.page .clock-date {
        margin-top: 1px;
        font-size: 0.62rem;
    }

    body.page .nav {
        gap: 6px;
    }

    body.page .nav > a,
    body.page .nav-dd-btn,
    body.page .nav-user-btn,
    body.page .nav-bell-btn {
        min-height: 36px;
        padding: 0 13px;
        font-size: 0.82rem;
    }

    body.page .nav-user-cluster {
        gap: 6px;
        margin-left: 2px;
    }

    body.page .nav-user-chip {
        gap: 8px;
        padding: 4px 7px 4px 12px;
    }

    body.page .nav-user-copy strong {
        font-size: 0.81rem;
        line-height: 1.03;
    }

    body.page .nav-user-copy span {
        font-size: 0.62rem;
        line-height: 1.08;
    }

    body.page .nav-avatar-wrap {
        width: 28px;
        height: 28px;
    }

    body.page .nav-bell-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        line-height: 1;
    }

    body.page .nav-bell-icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.page .nav-bell-count {
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: 0.58rem;
        line-height: 18px;
    }
}

@media (max-width: 576px) {
    body.page {
        --repo-content-padding-x: 12px;
        --repo-auth-tabs-gap: 10px;
        --repo-page-title-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.52rem);
        --repo-section-title-size: clamp(1.06rem, 0.98rem + 0.36vw, 1.18rem);
    }

    body.page .dash-card .dash-card-head.dash-card-head--with-search {
        gap: 10px;
        padding-bottom: 12px;
    }
}

html[data-theme='dark'] body.page {
    --dls-green: var(--site-theme-color);
    --dls-green-dark: var(--site-theme-color-dark);
    --dls-gold: var(--site-theme-color-secondary);
    --bg: #0d1511;
    --card: #17211c;
    --text: #edf5f0;
    --muted: #a8bbb0;
    --border: rgba(181, 214, 192, 0.16);
    --focus-ring: 0 0 0 4px rgba(109, 205, 143, 0.2);
    --interactive-soft-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
    background:
        radial-gradient(circle at top, var(--site-theme-color-soft), transparent 26%),
        radial-gradient(circle at 86% 0%, var(--site-theme-color-tertiary-soft), transparent 30%),
        linear-gradient(180deg, #0d1511 0%, #101b16 220px, #0f1713 100%);
    color: var(--text);
}

html[data-theme='dark'] body.page .topbar {
    background:
        linear-gradient(180deg, rgba(7, 17, 13, 0.84) 0%, rgba(15, 28, 22, 0.74) 100%),
        linear-gradient(180deg, var(--site-navbar-color-dark) 0%, var(--site-navbar-color) 100%);
    box-shadow: 0 26px 40px rgba(0, 0, 0, 0.36);
}

html[data-theme='dark'] body.page .topbar::after {
    background: linear-gradient(90deg, rgba(216, 188, 108, 0.9), rgba(129, 231, 161, 0.72), rgba(23, 102, 63, 0.96));
    opacity: 0.84;
}

html[data-theme='dark'] body.page .topbar-clock,
html[data-theme='dark'] body.page .nav > a,
html[data-theme='dark'] body.page .nav-dd-btn,
html[data-theme='dark'] body.page .nav-user-btn,
html[data-theme='dark'] body.page .nav-bell-btn,
html[data-theme='dark'] body.page .nav-user-chip,
html[data-theme='dark'] body.page .repository-shell-utility-link,
html[data-theme='dark'] body.page .repository-shell-login-link,
html[data-theme='dark'] body.page .repository-shell-utility-btn,
html[data-theme='dark'] body.page .repository-shell-user-btn,
html[data-theme='dark'] body.page .repository-shell-nav .mobile-nav__toggler {
    border-color: rgba(237, 245, 240, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f7fbf8;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme='dark'] body.page .nav > a:hover,
html[data-theme='dark'] body.page .nav > a.active,
html[data-theme='dark'] body.page .nav-dd-btn:hover,
html[data-theme='dark'] body.page .nav-dd:focus-within .nav-dd-btn,
html[data-theme='dark'] body.page .nav-user-btn:hover,
html[data-theme='dark'] body.page .nav-user:focus-within .nav-user-btn,
html[data-theme='dark'] body.page .nav-notifications .nav-bell-btn:hover,
html[data-theme='dark'] body.page .nav-notifications .nav-bell-btn:focus-visible,
html[data-theme='dark'] body.page .nav-notifications:focus-within .nav-bell-btn,
html[data-theme='dark'] body.page .nav-notifications.is-open .nav-bell-btn,
html[data-theme='dark'] body.page .repository-shell-utility-link:hover,
html[data-theme='dark'] body.page .repository-shell-utility-link:focus-visible,
html[data-theme='dark'] body.page .repository-shell-login-link:hover,
html[data-theme='dark'] body.page .repository-shell-login-link:focus-visible,
html[data-theme='dark'] body.page .repository-shell-utility-btn:hover,
html[data-theme='dark'] body.page .repository-shell-utility-btn:focus-visible,
html[data-theme='dark'] body.page .repository-shell-user-btn:hover,
html[data-theme='dark'] body.page .repository-shell-user-btn:focus-visible,
html[data-theme='dark'] body.page .repository-shell-nav .mobile-nav__toggler:hover,
html[data-theme='dark'] body.page .repository-shell-nav .mobile-nav__toggler:focus-visible {
    background: rgba(109, 205, 143, 0.16);
    color: #f7fbf8;
    border-color: rgba(109, 205, 143, 0.24);
}

html[data-theme='dark'] body.page .panel,
html[data-theme='dark'] body.page .card,
html[data-theme='dark'] body.page .dash-card,
html[data-theme='dark'] body.page .registry-top-card,
html[data-theme='dark'] body.page .registry-results-card,
html[data-theme='dark'] body.page .table-shell,
html[data-theme='dark'] body.page .table-wrap,
html[data-theme='dark'] body.page .auto-table-wrap,
html[data-theme='dark'] body.page .re-modal-dialog,
html[data-theme='dark'] body.page .re-status-dialog,
html[data-theme='dark'] body.page .re-progress-dialog,
html[data-theme='dark'] body.page .dd-menu,
html[data-theme='dark'] body.page .chat-picker,
html[data-theme='dark'] body.page .meta-card,
html[data-theme='dark'] body.page .fb-profilebar,
html[data-theme='dark'] body.page .fb-tabs,
html[data-theme='dark'] body.page .admin-role-tabs,
html[data-theme='dark'] body.page .login-panel,
html[data-theme='dark'] body.page .asmc-entry-panel--login {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] body.page .card-header,
html[data-theme='dark'] body.page .module-header,
html[data-theme='dark'] body.page .dash-card .dash-card-head,
html[data-theme='dark'] body.page .dash-card .dash-card-h,
html[data-theme='dark'] body.page .toolbar,
html[data-theme='dark'] body.page .table-toolbar {
    background: linear-gradient(180deg, rgba(109, 205, 143, 0.08), rgba(23, 33, 28, 0));
    border-bottom-color: rgba(181, 214, 192, 0.12);
}

html[data-theme='dark'] body.page .footerbar {
    background: rgba(13, 21, 17, 0.9);
    border-top-color: var(--border);
}

html[data-theme='dark'] body.page .fb-name,
html[data-theme='dark'] body.page .page-title,
html[data-theme='dark'] body.page .section-title,
html[data-theme='dark'] body.page .subsection-title,
html[data-theme='dark'] body.page .brand-title,
html[data-theme='dark'] body.page .clock-time,
html[data-theme='dark'] body.page .clock-date,
html[data-theme='dark'] body.page .nav-user-copy strong,
html[data-theme='dark'] body.page .nav-user-fullname,
html[data-theme='dark'] body.page .nav-user-theme-copy strong,
html[data-theme='dark'] body.page .dd-menu a,
html[data-theme='dark'] body.page .dd-menu .logout-link,
html[data-theme='dark'] body.page .table th,
html[data-theme='dark'] body.page .table td {
    color: var(--text);
}

html[data-theme='dark'] body.page .fb-sub,
html[data-theme='dark'] body.page .hint,
html[data-theme='dark'] body.page .small,
html[data-theme='dark'] body.page .meta-label,
html[data-theme='dark'] body.page .nav-user-copy span,
html[data-theme='dark'] body.page .nav-user-dept,
html[data-theme='dark'] body.page .nav-user-theme-copy span,
html[data-theme='dark'] body.page label,
html[data-theme='dark'] body.page .badge {
    color: var(--muted);
}

html[data-theme='dark'] body.page .dd-menu a:hover,
html[data-theme='dark'] body.page .dd-menu a:focus-visible,
html[data-theme='dark'] body.page .dd-menu .logout-link:hover,
html[data-theme='dark'] body.page .dd-menu .logout-link:focus-visible {
    background: rgba(109, 205, 143, 0.12);
    color: var(--text);
}

html[data-theme='dark'] body.page .dd-sep {
    background: rgba(181, 214, 192, 0.12);
}

html[data-theme='dark'] body.page .fb-tab,
html[data-theme='dark'] body.page .admin-role-tab,
html[data-theme='dark'] body.page .fb-tab-scroll-btn {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

html[data-theme='dark'] body.page .fb-tab:hover,
html[data-theme='dark'] body.page .admin-role-tab:hover,
html[data-theme='dark'] body.page .fb-tab-scroll-btn:hover,
html[data-theme='dark'] body.page .fb-tab:focus-visible,
html[data-theme='dark'] body.page .admin-role-tab:focus-visible,
html[data-theme='dark'] body.page .fb-tab-scroll-btn:focus-visible {
    background: rgba(109, 205, 143, 0.12);
    color: var(--text);
    border-color: rgba(109, 205, 143, 0.18);
}

html[data-theme='dark'] body.page .fb-tab.active,
html[data-theme='dark'] body.page .module-tab-link.active,
html[data-theme='dark'] body.page .admin-role-tab.active {
    background: var(--dls-green);
    color: #f8fffb;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
}

html[data-theme='dark'] body.page .btn,
html[data-theme='dark'] body.page a.btn,
html[data-theme='dark'] body.page button.btn,
html[data-theme='dark'] body.page input.btn[type='button'],
html[data-theme='dark'] body.page input.btn[type='submit'] {
    --repo-btn-fg: #f8fffb;
    --repo-btn-bg: var(--dls-green);
    --repo-btn-border: transparent;
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: #22925b;
    --repo-btn-hover-border: transparent;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.20);
}

html[data-theme='dark'] body.page .btn.secondary,
html[data-theme='dark'] body.page a.btn.secondary,
html[data-theme='dark'] body.page button.btn.secondary {
    --repo-btn-fg: #edf5f0;
    --repo-btn-bg: #1a2821;
    --repo-btn-border: rgba(181, 214, 192, 0.18);
    --repo-btn-hover-fg: #08120d;
    --repo-btn-hover-bg: #9dd6b6;
    --repo-btn-hover-border: #9dd6b6;
}

html[data-theme='dark'] body.page .btn.secondary.is-active,
html[data-theme='dark'] body.page a.btn.secondary.is-active,
html[data-theme='dark'] body.page button.btn.secondary.is-active {
    --repo-btn-fg: #f8fffb;
    --repo-btn-bg: var(--dls-green);
    --repo-btn-border: transparent;
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: #22925b;
    --repo-btn-hover-border: transparent;
}

html[data-theme='dark'] body.page .btn.danger,
html[data-theme='dark'] body.page a.btn.danger,
html[data-theme='dark'] body.page button.btn.danger {
    --repo-btn-fg: #fff7f6;
    --repo-btn-bg: #9c3b32;
    --repo-btn-border: transparent;
    --repo-btn-hover-fg: #ffffff;
    --repo-btn-hover-bg: #bb493e;
    --repo-btn-hover-border: transparent;
}

html[data-theme='dark'] body.page .input,
html[data-theme='dark'] body.page select,
html[data-theme='dark'] body.page textarea,
html[data-theme='dark'] body.page .chat-search,
html[data-theme='dark'] body.page .chat-compose-input,
html[data-theme='dark'] body.page .composer-trigger-input {
    background: #0f1713;
    color: var(--text);
    border-color: rgba(181, 214, 192, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme='dark'] body.page .input::placeholder,
html[data-theme='dark'] body.page textarea::placeholder,
html[data-theme='dark'] body.page .chat-search::placeholder,
html[data-theme='dark'] body.page .chat-compose-input::placeholder {
    color: #7f9488;
}

html[data-theme='dark'] body.page .active-user-search .input::placeholder {
    color: #82978b;
}

html[data-theme='dark'] body.page .input:focus,
html[data-theme='dark'] body.page select:focus,
html[data-theme='dark'] body.page textarea:focus,
html[data-theme='dark'] body.page .chat-search:focus,
html[data-theme='dark'] body.page .chat-compose-input:focus,
html[data-theme='dark'] body.page .composer-trigger-input:focus {
    border-color: rgba(109, 205, 143, 0.48);
    box-shadow: 0 0 0 3px rgba(109, 205, 143, 0.14);
}

html[data-theme='dark'] body.page .table th,
html[data-theme='dark'] body.page .table td {
    border-color: var(--border);
}

html[data-theme='dark'] body.page .table thead th {
    background: #1b2922;
}

html[data-theme='dark'] body.page .table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.016);
}

html[data-theme='dark'] body.page .table tbody tr:hover td {
    background: rgba(109, 205, 143, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    body.page .btn:hover,
    body.page a.btn:hover,
    body.page button.btn:hover,
    body.page input.btn[type="button"]:hover,
    body.page input.btn[type="submit"]:hover,
    body.page .repository-shell-header .thm-btn:hover,
    body.page .nav > a:hover,
    body.page .nav-dd-btn:hover,
    body.page .nav-user-btn:hover,
    body.page .nav-mobile-action:hover,
    body.page .nav-bell-btn:hover,
    body.page .admin-role-tab:hover,
    body.page .fb-tab:hover,
    body.page .fb-tab-scroll-btn:hover,
    body.page .gh-edit-cover-btn:hover,
    body.page .flash .flash__close:hover,
    body.page .ui-modal__close:hover,
    body.page .chat-compose-send:hover,
    body.page .repository-shell-utility-link:hover,
    body.page .repository-shell-login-link:hover,
    body.page .repository-shell-utility-btn:hover,
    body.page .repository-shell-user-btn:hover,
    body.page .repository-shell-nav .mobile-nav__toggler:hover {
        transform: var(--interactive-hover-transform);
    }

    body.page .fb-tab-scroll-btn:hover,
    body.page .gh-edit-cover-btn:hover,
    body.page .repository-shell-utility-btn:hover,
    body.page .repository-shell-user-btn:hover,
    body.page .chat-compose-send:hover,
    body.page .repository-shell-utility-link:hover,
    body.page .repository-shell-login-link:hover {
        box-shadow: var(--interactive-soft-shadow);
    }

    body.page .btn:hover svg,
    body.page .btn:hover i,
    body.page a.btn:hover svg,
    body.page a.btn:hover i,
    body.page button.btn:hover svg,
    body.page button.btn:hover i,
    body.page .repository-shell-header .thm-btn:hover svg,
    body.page .repository-shell-header .thm-btn:hover i,
    body.page .nav-bell-btn:hover svg,
    body.page .nav-bell-btn:hover i,
    body.page .fb-tab-scroll-btn:hover svg,
    body.page .fb-tab-scroll-btn:hover i,
    body.page .gh-edit-cover-btn:hover svg,
    body.page .gh-edit-cover-btn:hover i,
    body.page .flash .flash__close:hover svg,
    body.page .flash .flash__close:hover i,
    body.page .ui-modal__close:hover svg,
    body.page .ui-modal__close:hover i,
    body.page .chat-compose-send:hover svg,
    body.page .chat-compose-send:hover i,
    body.page .repository-shell-utility-link:hover svg,
    body.page .repository-shell-utility-link:hover i,
    body.page .repository-shell-login-link:hover svg,
    body.page .repository-shell-login-link:hover i,
    body.page .repository-shell-utility-btn:hover svg,
    body.page .repository-shell-utility-btn:hover i,
    body.page .repository-shell-user-btn:hover svg,
    body.page .repository-shell-user-btn:hover i,
    body.page .repository-shell-nav .mobile-nav__toggler:hover svg,
    body.page .repository-shell-nav .mobile-nav__toggler:hover i,
    body.page .btn:focus-visible svg,
    body.page .btn:focus-visible i,
    body.page a.btn:focus-visible svg,
    body.page a.btn:focus-visible i,
    body.page button.btn:focus-visible svg,
    body.page button.btn:focus-visible i,
    body.page .repository-shell-header .thm-btn:focus-visible svg,
    body.page .repository-shell-header .thm-btn:focus-visible i,
    body.page .nav-bell-btn:focus-visible svg,
    body.page .nav-bell-btn:focus-visible i,
    body.page .fb-tab-scroll-btn:focus-visible svg,
    body.page .fb-tab-scroll-btn:focus-visible i,
    body.page .gh-edit-cover-btn:focus-visible svg,
    body.page .gh-edit-cover-btn:focus-visible i,
    body.page .flash .flash__close:focus-visible svg,
    body.page .flash .flash__close:focus-visible i,
    body.page .ui-modal__close:focus-visible svg,
    body.page .ui-modal__close:focus-visible i,
    body.page .chat-compose-send:focus-visible svg,
    body.page .chat-compose-send:focus-visible i,
    body.page .repository-shell-utility-link:focus-visible svg,
    body.page .repository-shell-utility-link:focus-visible i,
    body.page .repository-shell-login-link:focus-visible svg,
    body.page .repository-shell-login-link:focus-visible i,
    body.page .repository-shell-utility-btn:focus-visible svg,
    body.page .repository-shell-utility-btn:focus-visible i,
    body.page .repository-shell-user-btn:focus-visible svg,
    body.page .repository-shell-user-btn:focus-visible i,
    body.page .repository-shell-nav .mobile-nav__toggler:focus-visible svg,
    body.page .repository-shell-nav .mobile-nav__toggler:focus-visible i {
        transform: var(--interactive-icon-hover-transform);
    }
}

body.page .btn:active,
body.page a.btn:active,
body.page button.btn:active,
body.page input.btn[type="button"]:active,
body.page input.btn[type="submit"]:active,
body.page .repository-shell-header .thm-btn:active,
body.page .nav > a:active,
body.page .nav-dd-btn:active,
body.page .nav-user-btn:active,
body.page .nav-mobile-action:active,
body.page .nav-bell-btn:active,
body.page .admin-role-tab:active,
body.page .fb-tab:active,
body.page .fb-tab-scroll-btn:active,
body.page .gh-edit-cover-btn:active,
body.page .flash .flash__close:active,
body.page .ui-modal__close:active,
body.page .chat-compose-send:active,
body.page .repository-shell-utility-link:active,
body.page .repository-shell-login-link:active,
body.page .repository-shell-utility-btn:active,
body.page .repository-shell-user-btn:active,
body.page .repository-shell-nav .mobile-nav__toggler:active {
    transform: var(--interactive-press-transform);
}

body.page .btn:active svg,
body.page .btn:active i,
body.page a.btn:active svg,
body.page a.btn:active i,
body.page button.btn:active svg,
body.page button.btn:active i,
body.page .repository-shell-header .thm-btn:active svg,
body.page .repository-shell-header .thm-btn:active i,
body.page .nav-bell-btn:active svg,
body.page .nav-bell-btn:active i,
body.page .fb-tab-scroll-btn:active svg,
body.page .fb-tab-scroll-btn:active i,
body.page .gh-edit-cover-btn:active svg,
body.page .gh-edit-cover-btn:active i,
body.page .flash .flash__close:active svg,
body.page .flash .flash__close:active i,
body.page .ui-modal__close:active svg,
body.page .ui-modal__close:active i,
body.page .chat-compose-send:active svg,
body.page .chat-compose-send:active i,
body.page .repository-shell-utility-link:active svg,
body.page .repository-shell-utility-link:active i,
body.page .repository-shell-login-link:active svg,
body.page .repository-shell-login-link:active i,
body.page .repository-shell-utility-btn:active svg,
body.page .repository-shell-utility-btn:active i,
body.page .repository-shell-user-btn:active svg,
body.page .repository-shell-user-btn:active i,
body.page .repository-shell-nav .mobile-nav__toggler:active svg,
body.page .repository-shell-nav .mobile-nav__toggler:active i {
    transform: var(--interactive-icon-press-transform);
}

@media (max-width: 640px) {
    body.page .btn,
    body.page a.btn,
    body.page button.btn {
        width: 100%;
    }

    body.page .btn__label {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.page .btn,
    body.page a.btn,
    body.page button.btn,
    body.page .repository-shell-header .thm-btn,
    body.page .nav > a,
    body.page .nav-dd-btn,
    body.page .nav-user-btn,
    body.page .nav-mobile-action,
    body.page .nav-bell-btn,
    body.page .admin-role-tab,
    body.page .fb-tab,
    body.page .fb-tab-scroll-btn,
    body.page .gh-edit-cover-btn,
    body.page .flash .flash__close,
    body.page .ui-modal__close,
    body.page .chat-compose-send,
    body.page .repository-shell-utility-link,
    body.page .repository-shell-login-link,
    body.page .repository-shell-utility-btn,
    body.page .repository-shell-user-btn,
    body.page .repository-shell-nav .mobile-nav__toggler,
    body.page .panel,
    body.page .card,
    body.page .dash-card,
    body.page .registry-top-card {
        transition: none !important;
        animation: none !important;
    }

    body.page .btn svg,
    body.page .btn i,
    body.page a.btn svg,
    body.page a.btn i,
    body.page button.btn svg,
    body.page button.btn i,
    body.page .repository-shell-header .thm-btn svg,
    body.page .repository-shell-header .thm-btn i,
    body.page .nav-bell-btn svg,
    body.page .nav-bell-btn i,
    body.page .fb-tab-scroll-btn svg,
    body.page .fb-tab-scroll-btn i,
    body.page .gh-edit-cover-btn svg,
    body.page .gh-edit-cover-btn i,
    body.page .flash .flash__close svg,
    body.page .flash .flash__close i,
    body.page .ui-modal__close svg,
    body.page .ui-modal__close i,
    body.page .chat-compose-send svg,
    body.page .chat-compose-send i,
    body.page .repository-shell-utility-link svg,
    body.page .repository-shell-utility-link i,
    body.page .repository-shell-login-link svg,
    body.page .repository-shell-login-link i,
    body.page .repository-shell-utility-btn svg,
    body.page .repository-shell-utility-btn i,
    body.page .repository-shell-user-btn svg,
    body.page .repository-shell-user-btn i,
    body.page .repository-shell-nav .mobile-nav__toggler svg,
    body.page .repository-shell-nav .mobile-nav__toggler i {
        transition: none !important;
        animation: none !important;
    }
}

/* -------------------------------------------------
   Compact density refresh
   ------------------------------------------------- */
body.page {
    --repo-content-max-width: 1236px;
    --repo-content-padding-x: clamp(10px, 1.15vw, 16px);
    --repo-page-title-size: clamp(1.28rem, 1.14rem + 0.42vw, 1.58rem);
    --repo-section-title-size: clamp(1.02rem, 0.96rem + 0.18vw, 1.14rem);
    --repo-subsection-title-size: clamp(0.94rem, 0.91rem + 0.1vw, 1rem);
}

body.page .content-container {
    padding-top: clamp(12px, 2vw, 22px);
}

body.page .layout-stack,
body.page .stack {
    gap: 10px;
}

body.page .split,
body.page .meta-grid,
body.page .module-grid {
    gap: 8px;
}

body.page .toolbar,
body.page .table-toolbar,
body.page .card-header,
body.page .module-header,
body.page .btn-row,
body.page .table-actions,
body.page .print-preview-toolbar__actions {
    gap: 8px;
}

body.page .toolbar,
body.page .table-toolbar,
body.page .card-header,
body.page .module-header {
    align-items: flex-start;
}

body.page .panel,
body.page .card,
body.page .registry-top-card,
body.page .registry-results-card,
body.page .module-card,
body.page .empty-state,
body.page .flash,
body.page .re-modal-dialog,
body.page .re-status-dialog,
body.page .re-progress-dialog {
    border-radius: 14px;
}

body.page .panel,
body.page .card,
body.page .registry-top-card,
body.page .registry-results-card,
body.page .module-card,
body.page .empty-state {
    padding: 10px 12px;
}

body.page .meta-card {
    padding: 8px 10px;
    border-radius: 12px;
}

body.page .field {
    gap: 5px;
}

body.page h1.section-title,
body.page h1.page-title,
body.page h1.settings-page-title,
body.page h1.public-page-title {
    font-weight: 650;
}

body.page h2.section-title,
body.page h2.page-title,
body.page h2.settings-section-title,
body.page .card-header > .section-title:not(h1),
body.page .module-header > .section-title:not(h1),
body.page .registry-card-title,
body.page .dash-card-head,
body.page .dash-card-h {
    font-weight: 620;
}

body.page h3.section-title,
body.page h3.page-title,
body.page .subsection-title,
body.page strong,
body.page b,
body.page .meta-value,
body.page .table th {
    font-weight: 580;
}

body.page .meta-label,
body.page .field label,
body.page .badge,
body.page .btn,
body.page a.btn,
body.page button.btn,
body.page .repository-shell-header .thm-btn {
    font-weight: 560;
}

body.page .hint,
body.page .small {
    font-size: 0.78rem;
    line-height: 1.38;
}

body.page .meta-label,
body.page .field label {
    font-size: 0.74rem;
}

body.page .meta-value {
    margin-top: 4px;
    font-size: clamp(1rem, 0.94rem + 0.2vw, 1.12rem);
    line-height: 1.08;
}

body.page .badge {
    padding: 2px 6px;
    font-size: 0.72rem;
}

body.page .btn,
body.page a.btn,
body.page button.btn,
body.page input.btn[type="button"],
body.page input.btn[type="submit"] {
    min-height: 26px;
    padding: 2px 8px;
    font-size: 0.7rem;
    line-height: 1.05;
}

body.page .btn-row > .btn,
body.page .btn-row > a.btn,
body.page .btn-row > button.btn,
body.page .table-actions > .btn,
body.page .table-actions > a.btn,
body.page .table-actions > button.btn,
body.page .table-toolbar .toolbar-right > .btn,
body.page .table-toolbar .toolbar-right > a.btn,
body.page .table-toolbar .toolbar-right > button.btn,
body.page .print-preview-toolbar__actions > .btn,
body.page .print-preview-toolbar__actions > a.btn,
body.page .print-preview-toolbar__actions > button.btn {
    min-width: 0;
}

body.page .table-toolbar .btn,
body.page .reply-compose .btn,
body.page .post-image-preview-remove {
    min-height: 26px;
    padding: 2px 8px;
    font-size: 0.7rem;
}

body.page .input,
body.page input[type="text"]:not(.input),
body.page input[type="email"]:not(.input),
body.page input[type="password"]:not(.input),
body.page input[type="number"]:not(.input),
body.page input[type="search"]:not(.input),
body.page select:not(.input),
body.page textarea:not(.input) {
    min-height: 38px;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 0.81rem;
    line-height: 1.2;
}

body.page textarea.input,
body.page textarea:not(.input) {
    min-height: 84px;
}

body.page .table th,
body.page .table td {
    padding: 7px 8px;
    font-size: 0.82rem;
    line-height: 1.3;
}

body.page .flash {
    padding: 10px 12px;
}

body.page .repository-shell-header .thm-btn {
    padding: 6px 18px;
}

body.page [style*="font-weight: 900"],
body.page [style*="font-weight:900"] {
    font-weight: 650 !important;
}

body.page [style*="font-weight: 800"],
body.page [style*="font-weight:800"] {
    font-weight: 600 !important;
}

body.page [style*="font-weight: 700"],
body.page [style*="font-weight:700"] {
    font-weight: 550 !important;
}
